/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'HelveticaNeue-CondensedBlack', 'Helvetica Neue', 'Arial Narrow', Arial, sans-serif;
    color: #278240;
    /* Specified Green */
    background-color: white;
    overflow: hidden;
    /* Wrapper handles scrolling */
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Deepest Base layer, but above body bg */
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white;
    /* Neutral fallback */
    background-size: cover;
    opacity: 0;
    /* Hidden until playing */
    /* transition: opacity 0.5s ease; REMOVED for instant reveal */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #278240;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0s, visibility 0s 1.5s;
}

/* Cover bottom area for Safari address bar leak */
#preloader::after {
    content: '';
    position: absolute;
    bottom: -100px;
    /* Extend below viewport */
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #278240;
    /* Match preloader green */
    z-index: 9998;
}

#preloader.hidden {
    background-color: transparent;
    visibility: hidden;
    pointer-events: none;
}

#preloader .content {
    opacity: 1;
    transition: opacity 0.25s ease-out;
}

#preloader.hidden .content {
    opacity: 0;
}

#preloader.hidden::after {
    display: none;
}

.preloader-text {
    font-size: 8rem;
    font-weight: 900;
    font-stretch: condensed;
    text-transform: uppercase;
    line-height: 0.9;
    text-align: center;
    color: white;
}

.preloader-logo {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    max-width: 40%;
    height: auto;
    z-index: 10000;
    transition: opacity 0.25s ease-out;
}

#preloader.hidden .preloader-logo {
    opacity: 0;
}

@media (max-width: 768px) {
    .preloader-logo {
        width: 120px;
        bottom: 8vh;
    }
}

.intro-logo {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    max-width: 40%;
    height: auto;
    z-index: 20;
    /* Above intro content, ensures visibility */
}

@media (max-width: 768px) {
    .intro-logo {
        width: 120px;
        bottom: 8vh;
    }
}

@media (max-width: 767px) {
    .preloader-text {
        font-size: 11vw;
    }
}

/* Preloader State Management */
#preloader .dynamic-headline {
    color: white;
    /* Initial White Text */
    transition: color 0.1s ease;
}

#preloader.loaded {
    background-color: transparent !important;
    transition: background-color 0s linear;
    /* Instant BG removal */
}

#preloader.loaded::after {
    display: none !important;
}

#preloader.loaded .dynamic-headline {
    color: #278240 !important;
    /* Transition to Green */
}

#preloader.loaded .preloader-logo {
    opacity: 0 !important;
    transition: none !important;
}

#preloader.finished {
    display: none;
}

/* Intro Section */
.intro-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    transition: transform 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    /* Visible to show intro-logo immediately */
}

.intro-section .content {
    opacity: 0;
    transition: opacity 0s linear;
}

.intro-section.visible .content {
    opacity: 1;
}

.intro-section.exit {
    transform: translateY(-100%);
}

.content {
    /* Kept for structure inside intro */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic Headline (Intro) */
.dynamic-headline {
    font-size: 8rem;
    font-weight: 900;
    font-stretch: condensed;
    text-transform: uppercase;
    line-height: 0.9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    color: #278240;
}

.static-text {
    display: block;
}

.changing-text-container {
    display: block;
    height: 0.9em;
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.changing-text {
    display: block;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.5s ease-in-out;
}

.changing-text.active {
    transform: translate(-50%, 0);
}

.changing-text.enter {
    transform: translate(-50%, 100%);
}

.changing-text.exit {
    transform: translate(-50%, -100%);
}


/* Scrolling Wrapper */
#scrolling-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    transition: top 1s ease-in-out;
    z-index: auto;
    /* Changed from 1 to allow blending */
    visibility: hidden;
    /* Prevent peeking on mobile */
}

#scrolling-content.active {
    top: 0;
    visibility: visible;
}

/* Main Section */
.main-section {
    position: relative;
    /* Relative in wrapper */
    width: 100%;
    height: 100vh;
    min-height: 90vw;
    /* Desktop Requirement: Min 90% Width */
    /* Ensure it fills screen */
    background: transparent;
    z-index: 2;
}

/* Removed .main-section.active as wrapper handles it */

/* Layer 2: White background with Cutout Text */
/* Layer 2: Cutout Container (Holds Video + Mask) */
.cutout-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: auto;
    /* Allow blending with background */
    overflow: hidden;
}

.cutout-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* The Mask Layer: White BG + Black Text + Screen Blend */
.cutout-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    mix-blend-mode: screen;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    /* Match desktop cutout padding */
}

.cutout-text {
    font-size: 15vw;
    /* Huge for cutout */
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: black;
    /* Black becomes transparent in Screen mode */
    margin-bottom: 2rem;
    width: 90%;
}

.sub-header-mobile {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    margin-bottom: 2rem;
    display: none;
    /* Mobile only usually? or Desktop too? */
    text-align: center;
}

.slogan {
    font-size: 5rem;
    line-height: 0.9;
    color: #278240;
    /* Green */
    text-transform: uppercase;
    text-align: center;
    margin-top: 2rem;
}

.logo-container {
    width: 200px;
    margin: 1rem 0;
}

.mogann-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Layer 3: Products Grid (floating on top) */
.products-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through if needed */
    z-index: 10;
    /* Above cutout layer */
}

.product-group {
    position: absolute;
    width: 30vw;
    /* Adjust size */
    transition: all 0.5s ease;
    display: grid;
    /* Use Grid to stack images */
    grid-template-areas: "stack";
}

/* Mini Pop Animation */
@keyframes miniPop {
    0% {
        transform: scale(0.98);
    }

    50% {
        transform: scale(1.005);
    }

    100% {
        transform: scale(1);
    }
}

.product-img {
    width: 100%;
    height: auto;
    grid-area: stack;
    /* Stack all images in same cell */
    opacity: 0;
    /* Hidden by default but layout remains */
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0.5% 0.5% 0% 0.5%);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.product-img.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: miniPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Responsive & Layouts */

/* Desktop Layout (Default) */
@media (min-width: 768px) {
    .dynamic-headline {
        flex-direction: column;
        font-size: 10vw;
        /* Increased from 8vw */
    }

    .cutout-text {
        font-size: 16vw;
        /* Increased size */
        text-align: left;
        padding-left: 2vw;
        line-height: 0.8;
        margin-bottom: 0;
    }

    .sub-header-mobile {
        display: none;
    }

    .cutout-mask {
        align-items: flex-start;
        padding-top: 1.6vw;
        /* Match left padding */
    }

    .overlay-content {
        align-items: flex-start;
        padding-top: 2vw;
        /* Match left padding */
    }

    /* Hide Logo on Desktop */
    .logo-container {
        display: none;
    }

    .middle-section {
        width: 100%;
        align-items: flex-start;
        /* Align Slogan Left */
        padding-left: 2vw;
        margin-top: -2vh;
        /* Pull up closer to text */
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        z-index: 10;
        /* Slogan Layer */
    }

    .slogan {
        font-size: 8.7vw;
        /* Increased by 15% */
        text-align: left;
        margin-top: 1vh;
        white-space: nowrap;
    }

    .products-grid {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        /* Bottom aligned */
        padding-bottom: 2vh;
        gap: 0;
        width: 100%;
        top: 6vh;
        /* Replaces transform to avoid stacking context */
        transform: none;
        /* Remove transform */
        z-index: auto;
        /* Allow interleaving */
    }

    .product-group {
        position: relative;
        transition: all 0.5s ease;
        flex-shrink: 0;
        /* Prevent shrinking: Critical for overflowing */
        filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2));
        /* Lighter Shadow */
    }

    /* CENTER (Back) */
    .group-3 {
        width: 32vw;
        /* +10% */
        z-index: 5;
        /* Below Slogan (10) */
        margin-bottom: 1vh;
        /* Moved Down */
        filter: brightness(0.9);
    }

    /* INNER LEFT (Middle Layer) */
    .group-2 {
        width: 30vw;
        /* +10% */
        z-index: 15;
        /* Above Slogan (10) */
        margin-right: -6vw;
        margin-bottom: 0;
        /* Moved Down */
    }

    /* INNER RIGHT (Middle Layer) */
    .group-4 {
        width: 31vw;
        /* +10% */
        z-index: 15;
        /* Above Slogan (10) */
        margin-left: -7vw;
        margin-bottom: 0;
        /* Moved Down */
    }

    /* OUTER LEFT (Front Layer) */
    .group-1 {
        width: 24vw;
        /* +10% */
        z-index: 20;
        /* Highest */
        margin-right: -9.5vw;
        margin-bottom: 0;
    }

    /* OUTER RIGHT (Front Layer) */
    .group-5 {
        width: 24vw;
        /* +10% */
        z-index: 20;
        /* Highest */
        margin-left: -6vw;
        margin-bottom: 0;
    }
}

/* Cap size growth after 1280px width */
@media (min-width: 1280px) {

    /* Cap Text Sizes & Center Alignment Block, Keep Text Left */
    .cutout-text {
        font-size: 208px;
        /* 17vw * 12.8 = 217.6px */
        text-align: left;
        padding-left: 0;
        width: auto;
        /* Allow align-items to center it */
    }

    .slogan {
        font-size: 114px;
        /* 8.6vw * 12.8 = 110.08px */
        text-align: center;
        /* User request */
        width: 100%;
        /* Ensure it spans full width to center text */
        margin-top: 1vh;
        white-space: nowrap;
    }

    .cutout-mask,
    .overlay-content {
        align-items: center;
        /* Center the block */
        padding-left: 0;
        padding-top: 26px;
    }

    .middle-section {
        align-items: center;
        /* Center the block */
        padding-left: 0;
    }

    .group-3 {
        width: 410px;
        margin-bottom: 29px;
    }

    .group-2 {
        width: 384px;
        margin-right: -77px;
    }

    .group-4 {
        width: 397px;
        margin-left: -90px;
    }

    .group-1 {
        width: 307px;
        margin-right: -122px;
    }

    .group-5 {
        width: 307px;
        margin-left: -77px;
    }
}

/* Mobile Layout (iPhone) */
@media (max-width: 767px) {
    .dynamic-headline {
        font-size: 11vw;
    }

    .main-section {
        min-height: 220vw;
        /* 2.2x width */
        height: 100vh;
        /* If screen > 220vw, fill screen */
    }

    #bg-video,
    .cutout-video {
        object-position: 47% center;
    }

    /* Mobile Layout Adjustment - Reference Matching */

    .cutout-mask {
        padding-top: 2vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        /* z-index: 2; handled above */
    }

    /* TOP SECTION: Left Aligned, Top */
    .top-section {
        width: 100%;
        padding-left: 5%;
        /* Left align margin */
        padding-right: 5%;
        margin-bottom: auto;
        /* Push middle section down if needed, or just let absolute positioning handle middle */
        z-index: 2;
    }

    .cutout-text {
        font-size: 15vw;
        /* Adjusted size */
        line-height: 0.8;
        font-weight: 900;
        text-transform: uppercase;
        text-align: left;
        /* Left align */
        color: black;
        margin-bottom: 1vh;
        width: 100%;
    }

    .sub-header-mobile {
        display: block;
        font-size: 5.3vw;
        /* Smaller as requested */
        color: black;
        /*letter-spacing: 0.05em;*/
        /* Tighter letter spacing helps fit width */
        text-transform: uppercase;
        font-weight: 700;
        text-align: left;
        /* Reset to left align for cleaner look at smaller size */
        width: 100%;
        /* Force full width */
        white-space: nowrap;
        /* Ensure single line */
        margin-bottom: 0;
        line-height: 1;
        margin-top: -0.5vh;
    }

    /* OVERLAY CONTENT (For Logo, Slogan, Products to sit above cutout) */
    .overlay-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5;
        /* Above cutout (z-1) */
        pointer-events: none;
        /* Let clicks pass */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 2vh;
        /* Match cutout padding for ghost spacer alignment */
    }

    /* Adjust padding-top for desktop overlay too if needed */


    /* MIDDLE SECTION: Bottom aligned to Middle of Screen (50%) */
    .middle-section {
        position: absolute;
        top: 52%;
        left: 50%;
        transform: translate(-50%, -100%);
        /* Bottom of element is at 50% of screen */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 10;
        /* Slogan Layer (Between groups) */
        padding-bottom: 2vh;
        /* Slight gap from the exact centerline if needed, or 0 */
    }

    .logo-container {
        position: absolute;
        /* Behind text */
        top: -40%;
        /* Moved higher (was 50%) */
        left: 50%;
        transform: translate(-50%, -50%);
        /* Centered relative to container */
        width: 40vw;
        /* Larger logo */
        z-index: -1;
        opacity: 1;
        /* Full opacity */
    }

    .slogan {
        font-size: 13vw;
        /* Bigger Slogan */
        line-height: 0.85;
        color: #278240;
        text-transform: uppercase;
        text-align: center;
        font-weight: 900;
        margin: 0;
        position: relative;
        z-index: 2;
        text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.9);
        /* Legibility */
    }

    /* Product Grid Container - Fixed Positioning */
    .products-grid {
        height: 50vh;
        width: 100%;
        left: 0;
        bottom: 0;
        top: auto;
        z-index: auto;
        /* Allow interleaving */
        pointer-events: none;
        position: absolute;
        /* Ensure absolute */
        display: block;
        /* Reset flex */
        transform: none;
        /* Remove desktop offset */
        padding-bottom: 0;
    }

    /* Center (Group 3) - Anchor */
    .group-3 {
        width: 60vw;
        /* Reduced from 70vw */
        left: 50%;
        transform: translateX(-50%);
        bottom: -5vh;
        z-index: 20;
    }

    /* Back Left (Group 2) - Position Adjustment */
    .group-2 {
        width: 45vw;
        left: -5%;
        bottom: 10vh;
        /* Lowered from 12vh */
        z-index: 5;
        filter: brightness(0.9);
    }

    /* Back Right (Group 4) - Match vertical align if needed or keep same? User only mentioned Group 2 lower */
    .group-4 {
        width: 48vw;
        /* Increased from 45vw */
        right: -5%;
        bottom: 12vh;
        /* Adjusted per request (was 13vh) */
        /* Aligned with group 2 for symmetry */
        z-index: 5;
        filter: brightness(0.9);
    }

    /* Front Left (Group 1) - Halfway Adjustment */
    .group-1 {
        width: 40vw;
        left: -9%;
        /* Adjusted from -12% to -9% */
        bottom: -5vh;
        z-index: 25;
    }

    /* Front Right (Group 5) - Halfway Adjustment */
    .group-5 {
        width: 40vw;
        right: -9%;
        /* Adjusted from -12% to -9% */
        bottom: -3vh;
        z-index: 25;
    }
}



/* About Section Styles */
.about-section {
    position: relative;
    /* Relative in wrapper */
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    /* 2nd Viewport */
    z-index: 10;
    /* Raised to sit above fixed video (z=1) */
    background: transparent;
    /* Transparent again */
    margin-top: 6vh;
    /* Adjusted to 6vh */
}

.about-text-container {
    padding: 0 5%;
    /* Safety margin */
}

.about-description {
    position: absolute;
    top: 15%;
    /* Fixed Top Position */
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Center without Transform (fixes blend mode) */
    width: 70%;
    /* 70% Width on Mobile */
    font-size: 1.3rem;
    /* Responsive capped at 430px width */
    line-height: 1.2;
    color: #278240;
    text-transform: none;
    /* Normal case for description */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* Thin */
    text-align: left;
    /* Left align text (centered container) */
}

.about-description .text-white {
    font-family: 'HelveticaNeue-CondensedBlack', 'Helvetica Neue', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    /* Keep bold/thick for the highlight */
}

.text-white {
    color: rgb(211, 211, 211);
    /*mix-blend-mode: hue;*/
    display: inline;
}

.about-brand-text {
    position: absolute;
    bottom: 10%;
    /* Adjusted to 10% */
    left: 50%;
    transform: translateX(-50%);
    /* Center Horizontally */
    width: 70%;
    /* Match description width */
    font-size: min(11.7vw, 60px);
    /* Responsive capped at 430px width */
    line-height: 0.8;
    color: #278240;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
}

/* Desktop About Adjustments */
@media (min-width: 768px) {
    .about-description {
        /* Font size controlled by base class (1.1rem) */
        width: 90vw;
        font-size: 1.6rem;
        /* Much wider */
        text-align: left;
        left: 0;
        right: 0;
        margin: 0 auto;
        /* Centered wide block without transform */
        max-width: 1280px;
        /* Cap width at 1280px */
    }

    .about-brand-text {
        font-size: 100px;
        /* Reduced from 120px */
        left: 5%;
        transform: none;
        width: auto;
        /* Reset mobile centering */
    }
}

/* 1280px+ Footer Container */
@media (min-width: 1420px) {
    .about-brand-text {
        left: 50%;
        transform: translateX(-50%);
        /* Centered Position */
        width: 1280px;
        /* Fixed container width */
        text-align: left;
    }
}

/* Product Section Styles */
.product-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 20;
    padding: 0;
    /* Remove padding from container, handle inside layers */
    display: grid;
    /* Grid for stacking */
    grid-template-areas: "stack";
}

.product-layer {
    grid-area: stack;
    width: 100%;
    height: 100%;
    padding: 10vh 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cutout-layer {
    background-color: white;
    mix-blend-mode: screen;
    z-index: 1;
    align-items: flex-start;
    /* Align top to match content flow */
}

.content-layer {
    background: transparent;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through if needed, or auto */
    align-items: flex-start;
}

.product-content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

/* Left Side - Image */
/* Left Side - Image */
/* Left Side - Image */
.product-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Apply shadow to PARENT to avoid being clipped by child's clip-path */
    /* Lighter/Tighter shadow to mimimize box artifacts */
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.25));
}

.hero-product-img {
    width: 140%;
    /* Exceed container */
    max-width: 800px;
    height: auto;
    clip-path: inset(0.5% 0.5% 0% 0.5%);
    /* Trim sides/top but NOT bottom */
    margin-left: -20%;
    /* Shift Left */
    margin-bottom: -10%;
    /* Shift Bottom */
}

@media (min-width: 768px) {
    .hero-product-img {
        margin-left: -45%;
        /* Slightly more left on desktop */
    }
}

/* Right Side - Info */
.product-info-side {
    flex: 1;
    padding-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bulk-choice-title {
    font-size: min(12vw, 160px);
    /* Responsive capped at 1280px */
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    color: black;
    margin-bottom: 4rem;
    /* More space */
    text-align: left;
}

.bulk-choice-title.invisible {
    visibility: hidden;
}

.product-categories {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* No gap */
    margin-bottom: 3rem;
    width: 100%;
}

.category-item {
    font-size: min(5.5vw, 72px);
    /* Responsive capped */
    font-weight: 900;
    color: #278240;
    text-transform: uppercase;
    line-height: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Ensure container can hold absolute positioned animated words */
    position: relative;
}

.category-item.active {
    opacity: 0.6;
}

/* Animation Styles */
.anim-container {
    position: relative;
    display: inline-grid;
    grid-template-columns: 100%;
    grid-template-rows: 100%;
    align-items: center;
    overflow: hidden;
    height: 1.1em;
    line-height: 1;
    vertical-align: bottom;
}

.anim-word {
    display: block;
    white-space: nowrap;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
}

.anim-word.next {
    position: relative;
    transform: translateY(100%);
}

.anim-word.sliding-out {
    animation: slideUpOut 0.4s forwards;
}

.anim-word.sliding-in {
    animation: slideUpIn 0.4s forwards;
}

@keyframes slideUpOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.brand-logos-container {
    width: 100%;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    align-items: center;
    margin-top: 0;
}

.brand-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .product-section {
        min-height: 100vh;
        /* Restore height for layout */
        padding-bottom: 0;
    }

    .product-layer {
        flex-direction: column;
        padding: 0;
        min-height: 100vh;
        align-items: center;
        position: relative;
        justify-content: flex-start;
    }

    .product-content-wrapper {
        flex-direction: row;
        width: 100%;
        height: auto;
        align-items: flex-start;
        /* Align top to control vertical pos */
        margin-top: 20vh;
        /* Moved lower (was 15vh) */
        transform: none;
    }

    .product-image-side {
        width: 55%;
        flex: 0 0 55%;
        margin-left: -60px;
        margin-bottom: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        /* Mobile Shadow Adjustment */
    }

    .hero-product-img {
        width: 77vw;
        /* Adjusted width */
        display: block;
        transform: none;
        /* Reset lift */
    }

    .product-info-side {
        padding-left: min(7.1vw, 25px);
        /* Responsive capped at 25px */
        width: 45%;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 23vw;
        /* Responsive padding to match image scale */
        z-index: 5;
    }

    .bulk-choice-title {
        font-size: 12.9vw;
        /* Adjusted size */
        margin-bottom: 12vw;
        /* Increased spacing */
        line-height: 0.85;
    }

    .product-categories {
        gap: 0;
        /* Reduced gap */
        margin-bottom: 0;
    }

    .category-item {
        font-size: 7.4vw;
        /* Adjusted size */
        line-height: 0.9;
    }

    .brand-logos-container {
        position: absolute;
        bottom: 20px;
        /* Closer to bottom/image */
        left: 0;
        width: 100%;
        padding: 0 20px;
    }

    .brand-grid {
        grid-template-columns: repeat(7, 1fr);
        /* Back to 7 cols */
        gap: 0.25rem;
    }
}

/* Helper visibility classes for Product Section */
.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Mobile Logos Styling - Natural Flow */
    .brand-logos-container.mobile-only {
        position: relative;
        bottom: auto;
        left: -6vw;
        /* Shift left */
        margin-top: 8vh;
        padding-bottom: 5vh;
        width: 80%;
        /* Reduced width */
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }
}

/* Cap brand logos offset for wider mobile screens */
@media (min-width: 430px) and (max-width: 767px) {
    .brand-logos-container.mobile-only {
        left: -35px;
    }
}

/* Product Section Cutout Video */
.product-cutout-video {
    position: fixed;
    /* Fixed relative to screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: cover;
    z-index: -1;
    /* Behind Content, Above Main BG */
    pointer-events: none;
}

/* Product Video Wrapper - Key to fixing alignment/overflow */
.product-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    clip-path: inset(0);
    /* Clips the fixed video child to this container's bounds */
}

/* Update Product Cutout Video to reside in wrapper */
.product-cutout-video {
    position: fixed;
    /* Parallax / Stationary */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

/* Review Section Styles */
/* Review Section Styles - Refactored for Robust Cutout */
.review-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: 30vh;
    z-index: 20;
    /* Grid stack to align layers perfectly */
    display: grid;
    grid-template-areas: "stack";
    overflow: hidden;
    /* important */
}

.review-video-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    clip-path: inset(0);
}

/* Layer 1: The Mask (Green BG + Cutout Title) */
.review-cutout-layer {
    grid-area: stack;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #278240;
    /* The Wall */
    isolation: isolate;
    /* Crucial */
    z-index: 1;
    /* Layout */
    padding: 15vh 10% 10vh 10%;
    padding-right: max(10%, calc((100vw - 1280px) / 2));
    /* Center content on huge screens */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    /* Right align title */
}

/* The Title that Cuts the Hole */
/* The Title that Cuts the Hole */
.cutout-text-review {
    font-size: min(11vw, 141px);
    /* Capped size */
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
    width: 45%;
    margin-bottom: 0;
    color: white;
    /* Solid White */
    /* No cutout blend mode */
}

/* Layer 2: The Content (White Text on Top) */
.review-text-layer {
    grid-area: stack;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass to below if needed */
    /* Layout matching Layer 1 */
    padding: 15vh 10% 10vh 10%;
    padding-right: max(10%, calc((100vw - 1280px) / 2));
    /* Sync Padding */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    /* Right align content */
}

/* Invisible Spacer Title to keep alignment sync */
.review-title-spacer {
    font-size: min(11vw, 141px);
    /* Capped size */
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    text-align: left;
    width: 45%;
    margin-bottom: 0;
    visibility: hidden;
    /* Occupies space */
}

.review-count {
    font-size: 2.5vw;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    text-align: left;
    width: 45%;
    margin-top: -5px;
    /* Pull closer to title */
    margin-bottom: auto;
    /* Push rest down */
    pointer-events: auto;
    padding-left: 5px;
    /* Added padding */
}

/* Review Continuous Scrolling Styles */
/* Review Continuous Scrolling Styles */
/* Review Continuous Scrolling Styles */
.review-scroll-container {
    width: 35%;
    /* Reduced width */
    height: 50vh;
    overflow: hidden;
    position: absolute;
    bottom: 10vh;
    right: max(10%, calc((100vw - 1280px) / 2));
    /* Match container padding exactly */
    left: auto;
    text-align: left;
    pointer-events: auto;
    margin-top: 0;
    /* No shadow mask */
}

/* Cap responsiveness above 1600px */
@media (min-width: 1600px) {
    .review-count {
        font-size: 40px;
        /* 2.5% of 1600px = 40px */
    }

    .review-scroll-container {
        width: 560px;
        /* 35% of 1600px = 560px */
    }

    .cutout-text-review,
    .review-title-spacer,
    .review-count {
        width: 565px;
    }
}

.review-track {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Full height of container */
}

.review-item {
    width: 100%;
    max-width: 455px;
    height: 100%;
    /* Occupy full container */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Anchor content to bottom */
}

.review-body {
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* Thin */
    line-height: 1.2;
    margin-bottom: 2rem;
    /* Gap between text and name */
    color: white;
}

.review-author {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin: 0;
    line-height: 0.9;
}

/* Mobile Layout */
@media (max-width: 767px) {

    .review-cutout-layer,
    .review-text-layer {
        padding: 0;
        padding-top: 10vh;
        width: 100%;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .cutout-text-review,
    .review-title-spacer {
        font-size: 19vw;
        width: 70%;
        margin-left: 15%;
        margin-bottom: 0;
    }

    .review-count {
        font-size: 6vw;
        width: 70%;
        margin-left: 15%;
        margin-bottom: 0;
    }

    .review-scroll-container {
        width: 70%;
        margin-left: 15%;
        margin-top: auto;
        padding-bottom: 5vh;
        max-height: none;
        /* Allow full growth */
        height: auto;
        overflow: visible;
        /* Don't clip */
        /* Tighter on mobile */
        position: relative;
        /* Reset desktop absolute */
        bottom: auto;
        left: auto;
        right: auto;
    }



    .review-author {
        font-size: min(8vw, 40px);
    }
}

/* STORE SECTION */
.store-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #278240;
    /* Brand Green */
    color: white;
    padding: 0 10%;
    /* Full height for carousel */
    display: flex;
    align-items: center;
    z-index: 21;
    /* Above Review Section */
}

.store-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    /* Full height */
    /* Constraint for layout */
    gap: 5%;
}

/* Text Column */
/* Text Column */
.store-text-col {
    flex: 1;
    gap: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .store-text-col {
        display: flex;
        flex-direction: column;
        /* Ensure column layout */
        justify-content: center;
        /* Vertically Centered relative to view */
        padding-top: 0;
    }

    .store-carousel-track {
        padding-top: 0;
        /* Reset offset */
    }
}

.store-location:not(:last-child) {
    margin-bottom: 5vh;
}

.store-location h2 {
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 0.9;
    cursor: pointer;
    /* Clickable */
}

/* Also ensure container has pointer */
.store-location {
    cursor: pointer;
}

.store-address {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* Thin */
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.store-hours {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* Thin */
    font-size: 1rem;
    line-height: 1.4;
    /* Removed text-transform: uppercase here */
}

.store-hours strong {
    font-family: 'Inter', sans-serif;
    /* Keep original font for bold part or match? User said 'except Opening Hours' */
    font-weight: 800;
    /* Bold */
}

/* Image Column (Carousel) */
/* Image Column (Carousel) */
.store-image-col {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.store-carousel-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    /* Removed border-radius */
}

.store-carousel-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    animation: scrollUp 15s linear infinite;
    gap: 0;
    /* Gap handled by margins */
}

.store-carousel-reset {
    animation: none !important;
}

.store-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 2rem;
    /* Spacing between images */
    cursor: pointer;
    /* Clickable */
}

/* Keyframes for Desktop (Up) */
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .store-section {
        padding: 5vh 5%;
        height: auto;
        min-height: auto;
    }

    .store-content {
        flex-direction: column;
        height: auto;
        gap: 2rem;
    }

    /* Images Top on Mobile */
    .store-image-col {
        order: -1;
        width: 100vw;
        margin-left: -5%;
        height: 400px;
        /* Bigger height */
    }

    .store-carousel-window {
        width: 100%;
        height: 100%;
    }

    .store-carousel-track {
        flex-direction: row;
        width: max-content;
        height: 100%;
        animation: scrollLeft 15s linear infinite;
    }

    .store-img {
        width: 300px;
        /* Bigger Width */
        height: 400px;
        /* Bigger Height */
        object-fit: cover;
        margin-bottom: 0;
        margin-right: 1rem;
        /* Horizontal spacing */
    }

    /* Text Adjustments */
    /* Text Adjustments */
    .store-text-col {
        padding: 0 5%;
        gap: 3rem;
        margin-top: 4vh;
        /* Added margin */
    }

    .store-location h2 {
        font-size: 9vw;
    }
}

/* Keyframes for Mobile (Left) */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Sticky CTA Bar (Mobile) */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #278240;
    color: white;
    padding: 15px;
    display: flex;
    /* Flex on mobile */
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(100%);
    /* Hidden initially */
    transition: transform 0.4s ease-in-out;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.sticky-cta.visible {
    transform: translateY(0);
}

/* Hide Sticky CTA on Desktop */
@media (min-width: 768px) {
    .sticky-cta {
        display: none !important;
    }
}

/* Menu Trigger */
#menu-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    z-index: 10001;
    opacity: 0;
    /* Hidden initially */
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    /* Block clicks until visible */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#menu-trigger.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#menu-trigger.hidden-by-cta {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(0.8) !important;
}

/* Icons Animation */
.icon-dots,
.icon-close {
    position: absolute;
    width: 24px;
    /* Scaled for mobile */
    height: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-dots {
    opacity: 1;
    transform: rotate(0deg);
}

.icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

#menu-trigger.menu-open .icon-dots {
    opacity: 0;
    transform: rotate(90deg);
}

#menu-trigger.menu-open .icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

@media (min-width: 768px) {
    #menu-trigger {
        top: 20px;
        bottom: auto;
        width: 60px;
        height: 60px;
    }

    .icon-dots,
    .icon-close {
        width: 30px;
        height: 30px;
    }
}

/* Menu Overlay */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #278240;
    z-index: 10000;
    /* Behind trigger */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Mobile: Slide Up from Bottom */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}

#menu-overlay.active {
    transform: translateY(0);
    pointer-events: auto;
}

/* Desktop: Slide Down from Top */
@media (min-width: 768px) {
    #menu-overlay {
        transform: translateY(-100%);
    }

    #menu-overlay.active {
        transform: translateY(0);
    }
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.menu-nav a {
    color: white;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.menu-nav a:hover {
    opacity: 0.7;
}

.menu-nav .menu-cta {
    margin-top: 4rem;
    /* Reduced Space */
    border: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.menu-nav .menu-cta svg {
    width: 1.2em;
    height: 1.2em;
}



/* Mobile Safe Bars */
.mobile-safe-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: 20000;
    background-color: #278240;
    /* Start Green */
    display: none;
    pointer-events: none;
}

#mobile-safe-bar-top {
    top: 0;
}

#mobile-safe-bar-bottom {
    bottom: 0;
}

/* Base iOS support for both sizes (Covers iPhone & iPad including iPad Pro Landscape) */
@supports (-webkit-touch-callout: none) {

    /* Default: Show Top Bar on all iOS (Phone & Tablet) */
    #mobile-safe-bar-top {
        display: block;
    }

    /* Adjust UI elements up on all iOS */
    #menu-trigger {
        bottom: 28px;
    }

    .about-brand-text {
        bottom: calc(10% + 10px);
    }
}

/* Specific Phone Logic (iPhone - Portrait/Small) */
@media (max-width: 767px) {
    @supports (-webkit-touch-callout: none) {

        /* Show Bottom bar ONLY on smaller screens (iPhones) */
        #mobile-safe-bar-bottom {
            display: block;
            bottom: -8px;
        }

        #mobile-safe-bar-top {
            top: -7px;
        }
    }
}

/* Specific Tablet Logic (iPad - larger screens) */
/* We use min-width: 768px to target tablets/desktop-like iOS */
@media (min-width: 768px) {
    @supports (-webkit-touch-callout: none) {
        #mobile-safe-bar-bottom {
            display: none !important;
        }

        #mobile-safe-bar-top {
            height: 12px;
            top: -7px;
        }
    }
}

/* Copyright Bar */
.copyright-bar {
    width: 100%;
    background-color: #278240;
    /* Matching Green */
    color: white;
    text-align: center;
    padding: 10px 5%;
    /* Thin bar */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 200;
    /* Thin */
    font-size: 0.85rem;
    position: relative;
    z-index: 22;
    /* Above other layers if needed */
    letter-spacing: 0.05em;
}

.copyright-bar a {
    color: white;
    text-decoration: none;
    font-weight: 200;
    /* Keep it thin */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.copyright-bar a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .copyright-bar {
        font-size: 0.7rem;
        padding-bottom: 20px;
        /* Safe area for bottom swipe */
    }
}

.site-footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 100;
    /* Thin */
    font-size: 12px;
    letter-spacing: 0.05em;
    z-index: 10;
    pointer-events: auto;
}

.site-footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-bottom-color 0.3s;
}

.site-footer a:hover {
    border-bottom-color: rgba(255, 255, 255, 1);
}

@media (max-width: 767px) {
    .site-footer {
        position: relative;
        bottom: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}