/* =================================
   COLLECTIONS PAGE STYLES
   ================================= */

/* Collections Header */
.collections-header {
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('images/collections_header.jpg') center/cover;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
    position: relative;
}

/* Page-specific header imagery */
.page-footwear .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('manual_download/female_highheels_extravagant.avif') center/cover;
}

.page-female .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('manual_download/female_white_suite.avif') center/cover;
}

.page-tailoring .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('manual_download/male_blazer.avif') center/cover;
}

.page-heritage .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('images/heritage.jpg') center/cover;
}

.page-bags .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('images/bag_05.jpg') center/cover;
}

.page-stores .collections-header {
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
                url('images/store_paris_01.jpg') center/cover;
}

.collections-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%);
}

.collections-header-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.collections-header h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    margin-bottom: 20px;
    color: var(--white);
}

.collections-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.filter-bar {
    position: sticky;
    top: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    border-bottom: 1px solid var(--light-gray);
    z-index: 999;
}

.filter-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--primary-black);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

.sort-select {
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-black);
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:hover {
    border-color: var(--primary-black);
}

/* Collection Sections */
.collection-section {
    padding: 100px 0;
    background: var(--white);
}

.collection-section.alt-bg {
    background: var(--cream);
}

.collection-section-header {
    text-align: center;
    margin-bottom: 70px;
}

.collection-section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 15px;
    color: var(--primary-black);
}

.collection-section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    font-style: italic;
}

.collection-section-header .btn-primary {
    margin-top: 20px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Lookbook */
.lookbook {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.lookbook-item {
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.lookbook-item .product-image {
    height: 100%;
}

.lookbook-item .product-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    padding: 14px 16px;
    backdrop-filter: blur(6px);
}

.product-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Store Locator */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.store-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    background: var(--white);
}

.store-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.store-card:hover .store-image {
    transform: scale(1.05);
}

.store-info {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 18px;
    backdrop-filter: blur(6px);
}

.store-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.store-info p {
    margin-bottom: 6px;
    color: var(--gray);
    font-size: 0.95rem;
}

.store-hours {
    color: var(--primary-black);
    font-weight: 500;
}

/* Product Background Images */
.oxford-black {
    background: url('images/oxford_black.jpg') center/cover;
}

.loafer-brown {
    background: url('images/loafer_brown.jpg') center/cover;
}

.derby-tan {
    background: url('images/derby_tan.jpg') center/cover;
}

.boot-black {
    background: url('images/boot_black.jpg') center/cover;
}

.pump-black {
    background: url('images/pump_black.jpg') center/cover;
}

.flat-nude {
    background: url('images/flat_nude.jpg') center/cover;
}

.sandal-gold {
    background: url('images/sandal_gold.jpg') center/cover;
}

.ankle-boot {
    background: url('images/ankle_boot.jpg') center/cover;
}

.blazer-navy {
    background: url('images/blazer_navy.jpg') center/cover;
}

.shirt-white {
    background: url('images/shirt_white.jpg') center/cover;
}

.trousers-gray {
    background: url('images/trousers_gray.jpg') center/cover;
}

.belt-leather {
    background: url('images/belt_leather.jpg') center/cover;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--white);
    color: var(--primary-black);
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.bestseller {
    background: var(--gold);
    color: var(--white);
}

/* Product Hover Icons */
.product-hover-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-hover-icons {
    opacity: 1;
}

.product-hover-icons .icon-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-hover-icons .icon-btn:hover {
    background: var(--gold);
    color: var(--white);
}

/* Product Info */
.product-info {
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Product Colors */
.product-colors {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.color-swatch:hover {
    border-color: var(--primary-black);
    transform: scale(1.15);
}

/* Collections CTA */
.collections-cta {
    padding: 120px 0;
    background: linear-gradient(rgba(201, 169, 97, 0.9), rgba(166, 138, 78, 0.9)),
                url('https://images.unsplash.com/photo-1575489272413-cb506258027e?w=1600&q=80') center/cover;
    color: var(--white);
    text-align: center;
}

.collections-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.collections-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 25px;
    color: var(--white);
}

.collections-cta p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.collections-cta .btn-primary {
    background: var(--white);
    color: var(--primary-black);
    border-color: var(--white);
}

.collections-cta .btn-primary::before {
    background: var(--primary-black);
}

.collections-cta .btn-primary:hover {
    color: var(--white);
}

/* =================================
   PRODUCT MODAL
   ================================= */

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 1100px;
    margin: 50px auto;
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--primary-black);
}

.modal-close:hover {
    background: var(--gold);
    color: var(--white);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.modal-image {
    background-size: cover;
    background-position: center;
    background-color: var(--cream);
}

.modal-details {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-black);
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 30px;
}

.modal-description {
    flex: 1;
    margin-bottom: 30px;
}

.modal-description p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray);
    margin-bottom: 15px;
    font-style: italic;
}

.modal-colors {
    margin-bottom: 30px;
}

.modal-colors h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: var(--primary-black);
}

#modalColorSwatches {
    display: flex;
    gap: 12px;
}

#modalColorSwatches .color-swatch {
    width: 35px;
    height: 35px;
}

.modal-add-cart {
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .collections-header {
        height: 50vh;
        min-height: 400px;
    }

    .filter-bar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: center;
    }

    .sort-select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .collection-section,
    .collections-cta {
        padding: 80px 20px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 350px;
    }

    .modal-details {
        padding: 40px 30px;
    }

    .modal-content {
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .collections-header {
        margin-top: 70px;
    }

    .filter-btn {
        flex: 1;
        min-width: calc(50% - 8px);
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 400px;
    }

    .collection-section-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        min-width: 100%;
    }

    .product-image {
        height: 350px;
    }
}
