html {
    scroll-behavior: smooth;
}

:root {
    --nav-height: 100px; 
}

.collection-hero {
    display: flex;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    margin-top: var(--nav-height);
    background-color: var(--hero-bg);
    overflow: hidden;
    position: relative;
}

.hero-reverse { flex-direction: row-reverse; }

/* Layout Split */
.hero-image-pane {
    flex: 0 0 60%;
    height: 100%;
}

.hero-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content-pane {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5%;
    background-color: var(--hero-bg);
}

.inner-content {
    display: flex;
    flex-direction: column;
    align-items: center;      /* This centers the Logo and Title */
    width: 100%;
}

/* Dynamic Text Styling */
.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--title-clr); /* Dynamic */
    letter-spacing: 4px;
    line-height: 1.2;
}

.hero-blurb {
    font-family: 'Montserrat';
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--desc-clr); /* Dynamic */
}

.hero-button {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid var(--btn-brd); /* Dynamic */
    background-color: var(--btn-brd);
    color: var(--hero-bg); /* Dynamic */
    transition: 0.3s ease;
}

.hero-button:hover {
    background: transparent;
    color: var(--btn-brd);
}

/* --- MOBILE OVERLAY FIX --- */
@media (max-width: 1025px){
    .collection-hero {
        display: block;
        height: 75vh;
    }

    .hero-image-pane {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-content-pane {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3); /* Darker overlay for better contrast */
        z-index: 2;
        padding: 30px;
        text-align: center;
    }

    .hero-blurb { display: none; }

    /* Forced contrast for mobile overlay */
    .hero-title {
        color: #ffffff; 
        font-size: 2.2rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .hero-button {
        background: #ffffff;
        color: #000000;
        border-color: #ffffff;
    }
}

.cinematic-story-section {
    background-color: #241F1E;
    padding: 120px 0;
    text-align: center;
    color: #ffffff;
}

.story-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Margin Adjustment based on Video existence */
.has-video .story-content-wrapper { margin-bottom: 70px; }
.no-video .story-content-wrapper { margin-bottom: 40px; }

.collection-label {
    color: #B8A686; /* Signature Muted Gold */
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-bottom: 25px;
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 35px 0;
}

.editorial-title.two-line {
    display: flex;
    flex-direction: column; /* Forces the vertical stack */
    align-items: center;    /* Keeps everything centered */
    line-height: 1.1;
}

.title-main {
    display: block;
    margin-bottom: 5px; /* Space between the two lines */
}

.title-sub {
    display: block;
    font-size: 0.6em;   /* Slightly smaller than the main title for hierarchy */
    font-style: italic;  /* Adds that premium Bloomingdale's touch */
    opacity: 0.9;
}

.brand-narrative p {
    font-family: 'Montserrat';
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto;
}


/* Video Container Scaling */
.video-frame-container {
    position: relative;
    width: 100%;
    /* Increase this value to make the video larger on screen */
    max-width: 1280px; 
    margin: 0 auto;
    
    /* Maintains 16:9 ratio automatically */
    aspect-ratio: 16 / 9; 
    
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    background: #000;
}

/* Ensure the iframe fills the entire container */
.video-frame-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Adjust spacing for the cinematic section */
.cinematic-story-section {
    padding: 100px 40px; /* Wider side padding for larger video display */
    scroll-margin-top: 95px;
}

@media (max-width: 768px) {
    .video-frame-container {
        max-width: 100%; /* Fill screen width on mobile */
    }

    .brand-narrative p {
        line-height: 1.2;
    }
}

/* Lineup Section Styles */
:root {
    --shifman-taupe: #8c7662;
    --shifman-mahogany: #7c534e;
    --shifman-cream: #f9f7f2;
}

.lineup-section { 
    background-color: var(--shifman-cream); 
    padding: 60px 20px; 
}

.canvas-frame {
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--shifman-taupe);
    padding: 80px 60px;
    box-sizing: border-box;
}

.lineup-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--shifman-taupe);
    letter-spacing: 5px;
    margin-bottom: 80px;
    text-transform: uppercase;
    font-size: 1.6rem;
}

/* Symmetrical Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    row-gap: 80px; /* Uniform spacing between rows */
}

.grid-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0; /* Subtle horizontal separation */
}

/* Clear vertical lines on desktop for that "framed" look */
.grid-item:nth-child(odd) {
    border-right: 1px solid #f0f0f0;
    padding-right: 40px;
}
.grid-item:nth-child(even) {
    padding-left: 40px;
}

.product-media {
    background: #ffffff;
    height: 400px;
    display: flex;
    align-items: center; /* Changed from flex-end to center */
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px; /* Use a small positive margin instead */
}

.product-media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Typography */
.product-feel {
    display: block;
    color: var(--shifman-taupe);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: bold;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--shifman-taupe);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    min-height: 3.2em; /* Ensures text blocks stay relatively even */
}

/* Feature Tags */
.feature-tags {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-tags li {
    font-size: 0.75rem;
    color: #888;
    background: #f9f9f9;
    padding: 4px 10px;
    border: 1px solid #eee;
}

/* Buttons */
.button-set { display: flex; gap: 10px; }
.btn-mahogany, .btn-taupe {
    display: inline-flex;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 1px;
    align-items: center;    /* Vertically centers text */
    justify-content: center;
    flex: 1; /* Makes buttons equal width */
}
.btn-mahogany { background: var(--shifman-mahogany); }
.btn-taupe { background: var(--shifman-taupe); }

/* Tablet & Mobile */
@media (max-width: 991px) {
    .grid-container { grid-template-columns: 1fr; row-gap: 60px; }
    .grid-item { border-right: none !important; padding: 0 !important; text-align: center; }
    .feature-tags { justify-content: center; }
    .button-set { justify-content: center; }
    .canvas-frame { padding: 40px 20px; }
}

@media (max-width: 767px) {
    .product-media {
        margin-bottom: -40px; /* Reduced from 30px to pull text up */
        height: 280px; /* Force a consistent, shorter height */
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .product-media {
        margin-bottom: -40px; /* Reduced from 30px to pull text up */
        height: 370px; /* Force a consistent, shorter height */
    }
}
