/* watches.css - Watches page specific styles */


/* ─── Listing grid override: 3 columns for watches ─── */
.watches-page .listing-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ─── Sort dropdown ─── */
.sort-dropdown-wrapper {
    display: flex;
    align-items: center;
}

.sort-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #efefef;
    padding: 8px 14px;
    height: 42px;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 0.32px;
    color: #2a190e;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.3s ease;
}

.sort-dropdown-btn:hover {
    border-color: var(--color-brand);
}

/* ─── Out of Stock Badge ─── */
.product-out-of-stock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 11px 13px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.32px;
    color: #2a190e;
    text-transform: lowercase;
    white-space: nowrap;
    z-index: 4;
    pointer-events: none;
}

/* ─── Watches Hero Banner ─── */
.watches-hero {
    width: 100%;
    margin-top: 172px;
    /* Push below the fixed navbar */
}

@media (max-width: 1024px) {
    .watches-hero {
        margin-top: 77px;
        /* Match mobile header height */
    }
}

/* 1. Full-width banner image */
.watches-hero-banner {
    width: 100%;
    overflow: hidden;
}

.watches-hero-banner img {
    width: 100%;
    height: 714px;
    display: block;
    object-fit: cover;
}

/* 2. Brand logo + text row */
.watches-hero-info {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding-top: 80px;
    padding-bottom: 0;
}

/* Brand logo: fixed at 203×142, at x:102 (container left edge) */
.watches-hero-brand {
    width: 203px;
    min-width: 203px;
    height: 142px;
    flex-shrink: 0;
    margin-right: 111px;
    /* gap to reach x:416 from x:102: 416-102-203=111 */
}

.watches-hero-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
    display: block;
}

/* Text block: heading + description */
.watches-hero-text {
    flex: 1;
    min-width: 0;
}

.watches-hero-heading {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #2a190e;
    margin: 0 0 24px 0;
}

.watches-hero-description {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 2;
    letter-spacing: 0.32px;
    color: #2a190e;
    margin: 0;
}

/* 3. Wide collection image — offset right to match Figma x:522, y:1422 */
/* x:522 out of 1440px wide = right half, left edge of collection = 522px from page left */
/* container starts at 102px, so offset from container left = 522-102 = 420px */
.watches-hero-collection {
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 102px 80px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
}

.watches-hero-collection img {
    width: 825px;
    height: 430px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

/* ─── Listing Section ─── */
.watches-listing-section {
    padding: 0 0 80px;
}

/* Listing heading block */
.watches-listing-header {
    padding-top: 48px;
    padding-bottom: 0;
}

.watches-listing-header .section-title {
    max-width: 887px;
    margin-bottom: 16px;
}

.watches-listing-desc {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.32px;
    color: #2a190e;
    max-width: 772px;
    margin: 0;
}

/* Toolbar: sort box left, results count right */
.watches-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 0 40px;
}

/* Sort box — matches Figma: bordered, 230×42px, "Default sorting" + polygon arrow */
.watches-sort-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 230px;
    height: 42px;
    border: 1px solid #efefef;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    user-select: none;
}

/* Product grid — 3 columns matching Figma */
.watches-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* ─── Two-Banner Section (Figma 54:1032) ─── */
.watches-banner-section {
    display: flex;
    width: 100%;
    height: 850px;
}

.watches-banner-half {
    width: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.watches-banner-half img {
    display: block;
}

/* Left image: exact Figma positioning and scaling */
.watches-banner-half:first-child img {
    position: absolute;
    width: 177.13% !important;
    height: 100% !important;
    left: -51.34% !important;
    top: 0 !important;
    max-width: none !important;
    object-fit: fill !important;
}

/* Right image: exact Figma positioning and scaling */
.watches-banner-overlay img {
    position: absolute;
    width: 101.56% !important;
    height: 129% !important;
    left: -0.78% !important;
    top: -27.68% !important;
    max-width: none !important;
    object-fit: fill !important;
}

/* Right half: image + text overlay at bottom-left — Figma x:80, y:513 inside 720px panel */
.watches-banner-overlay {
    position: relative;
}

/* Dark overlay: rgba(0,0,0,0.3) matching Figma */
.watches-banner-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.watches-banner-content {
    position: absolute;
    top: 513px;
    left: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 506px;
}

.watches-banner-heading {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.watches-banner-price {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* ─── Collections Split Sections ─── */
.watches-collections {
    margin-top: 0;
}



.watches-collection-section {
    display: flex;
    width: 100%;
    height: 850px;
    overflow: hidden;
}

/* Each half: plain image or overlay panel */
.watches-collection-image {
    width: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Figma-precise crop: image is 127.02% tall, shifted up 27.04% so the
   visible centre of the image matches the Figma frame exactly */
.watches-collection-image img {
    position: absolute;
    width: 100%;
    height: 127.02%;
    top: -27.04%;
    left: 0;
    object-fit: cover;
    display: block;
}

/* ── Last split section: image bleeds 107px over footer (desktop only ≥1025px) ── */
/* Only applies when the section has a FIXED 850px height so calc(100%+107px)
   resolves correctly. Tablet uses height:auto which would break percentage math. */
@media (min-width: 1025px) {
    .watches-collection-section:last-child {
        overflow: visible;
        position: relative;
        z-index: 5;
    }

    .watches-collection-section:last-child .watches-collection-image {
        overflow: hidden;
        /* clips the top overhang from -27.04% offset */
        /* Extends the container 107px below the section so the image
           overlaps the top of the footer — matching the Figma design */
        height: calc(100% + 107px);
    }
}

/* Right/left panel with text overlaid on the image */
.watches-collection-overlay-panel {
    position: relative;
}

/* Content sits in lower portion of the image, matching Figma y:513 out of 850px */
.watches-collection-overlay-content {
    position: absolute;
    bottom: 203px;
    left: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 427px;
}

.watches-collection-heading {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.watches-collection-price {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.watches-collection-shop-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
    padding-bottom: 8px;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.watches-collection-shop-btn:hover {
    opacity: 0.75;
}

/* Content-only panel — white background, no image */
.watches-collection-content-only {
    width: 50%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    background: #ffffff;
    /* Section 1: content at x:188, y:203 from panel top-left */
    padding: 203px 80px 0 188px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Section 2: content panel on the RIGHT — x:227, y:217 from right panel top-left */
.watches-collection-section .watches-collection-image+.watches-collection-content-only {
    padding: 217px 80px 0 227px;
}

/* Dark text variant for content-only panel */
.watches-collection-heading--dark {
    color: #2a190e;
}

.watches-collection-text-body {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.32px;
    color: #2a190e;
    margin: 0;
    max-width: 305px;
}

.watches-collection-explore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 16px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #af6f44;
    text-decoration: none;
    border-bottom: 1px solid #af6f44;
    padding: 16px;
    width: fit-content;
    transition: opacity 0.3s ease;
}

.watches-collection-explore-btn:hover {
    opacity: 0.6;
}

/* Keep old text/btn refs to avoid breakage but hide them */
.watches-collection-text {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 2;
    letter-spacing: 0.32px;
    color: #2a190e;
    margin: 0;
    max-width: 340px;
}

.watches-collection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: none;
    border-bottom: 1px solid #af6f44;
    background: none;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #af6f44;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.watches-collection-btn:hover {
    opacity: 0.75;
}

/* ─── Responsive: 1280px ─── */
@media (max-width: 1280px) {
    .watches-hero-banner img {
        height: 560px;
    }

    .watches-hero-info {
        padding-top: 60px;
    }

    .watches-hero-brand {
        margin-right: 60px;
    }

    .watches-hero-collection {
        padding: 40px 80px 60px;
    }

    .watches-hero-collection img {
        width: 100%;
        max-width: 700px;
        height: 360px;
    }
}

/* ─── Responsive: 1024px ─── */
@media (max-width: 1024px) {
    .watches-hero-banner img {
        height: 460px;
    }

    .watches-hero-info {
        padding-top: 48px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .watches-hero-brand {
        width: 160px;
        min-width: 160px;
        height: auto;
        margin-right: 48px;
    }

    .watches-hero-heading {
        font-size: 28px;
        letter-spacing: 2.8px;
    }

    .watches-hero-collection {
        padding: 32px 40px 48px;
    }

    .watches-hero-collection img {
        width: 100%;
        max-width: 600px;
        height: 300px;
    }

    .watches-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .watches-banner-section {
        height: auto;
        min-height: 500px;
    }

    .watches-banner-content {
        bottom: 60px;
        left: 48px;
    }

    .watches-banner-heading,
    .watches-banner-price {
        font-size: 28px;
        letter-spacing: 2.8px;
    }

    .watches-collection-section {
        height: auto;
        min-height: 600px;
    }

    .watches-collection-content-only {
        padding: 120px 48px 0 80px;
    }

    .watches-collection-section .watches-collection-image+.watches-collection-content-only {
        padding: 120px 80px 0 48px;
    }

    .watches-collection-overlay-content {
        bottom: 60px;
        left: 48px;
    }

    .watches-collection-heading {
        font-size: 28px;
        letter-spacing: 2.8px;
    }

    .watches-collection-price {
        font-size: 28px;
        letter-spacing: 2.8px;
    }
}

/* ─── Responsive: 768px ─── */
@media (max-width: 768px) {
    .watches-hero-banner img {
        height: 300px;
    }

    .watches-hero-info {
        flex-direction: column;
        padding: 32px 20px 0;
        gap: 24px;
    }

    .watches-hero-brand {
        width: 140px;
        min-width: 0;
        height: auto;
        margin-right: 0;
    }

    .watches-hero-heading {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .watches-hero-collection {
        padding: 24px 20px 40px;
        justify-content: flex-start;
    }

    .watches-hero-collection img {
        width: 100%;
        max-width: 100%;
        height: 240px;
    }

    .watches-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .watches-listing-header {
        padding-top: 36px;
    }

    .watches-listing-header .section-title {
        font-size: 28px;
        letter-spacing: 2.8px;
    }

    .watches-toolbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 28px 0 24px;
    }

    .watches-sort-box {
        width: auto;
        min-width: 180px;
    }

    .watches-banner-section {
        flex-direction: column;
        height: auto;
    }

    .watches-banner-half {
        width: 100%;
        height: 400px;
    }

    .watches-banner-content {
        bottom: 32px;
        left: 24px;
        max-width: 90%;
    }

    .watches-banner-heading,
    .watches-banner-price {
        font-size: 24px;
        letter-spacing: 2px;
    }

    /* Section 1: DOM = content, image — column keeps content first */
    .watches-collection-section:first-child {
        flex-direction: column;
        height: auto;
    }

    /* Section 2: DOM = image, content — column-reverse puts content first */
    .watches-collection-section:last-child {
        flex-direction: column-reverse;
        height: auto;
    }

    .watches-collection-image {
        width: 100%;
        height: 400px;
        /* Reset desktop overflow override */
        overflow: hidden;
    }

    /* Restore normal flow on mobile — no footer bleed */
    .watches-collection-section:last-child {
        overflow: hidden;
        z-index: auto;
    }

    .watches-collection-section:last-child .watches-collection-image {
        overflow: hidden;
        height: 400px;
    }

    /* Reset desktop Figma absolute crop on mobile — use simple block layout
       so the full image shows without bottom cropping */
    .watches-collection-image img {
        position: relative;
        width: 100%;
        height: 400px;
        top: auto;
        left: auto;
        object-fit: cover;
        object-position: center center;
    }

    /* Anchor "Defined by Distinction" image to bottom so watch on wrist is visible */
    .watches-collection-section:last-child .watches-collection-image img {
        object-position: center bottom;
    }

    .watches-collection-content-only,
    .watches-collection-section .watches-collection-image+.watches-collection-content-only {
        width: 100%;
        padding: 48px 24px;
    }

    .watches-collection-overlay-content {
        bottom: 40px;
        left: 24px;
        max-width: 90%;
    }

    .watches-collection-heading {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .watches-collection-price {
        font-size: 24px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .watches-product-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .watches-listing-header {
        padding-top: 32px;
    }

    .watches-listing-header .section-title {
        font-size: 24px;
        letter-spacing: 2.4px;
    }

    .watches-listing-desc {
        font-size: 14px;
    }

    .watches-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 24px 0 20px;
    }

    .watches-sort-box {
        width: 100%;
        justify-content: space-between;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .results-count {
        font-size: 13px;
    }
}

.footer {
    padding-top: 200px !important;

    @media(max-width : 991px) {
        padding-top: 60px !important;
    }
}