/* Color & Theme Variables */
:root {
    --header-bg: #ffffff;
    --search-bg: #f7f6f2;
    --search-border: #e8e6df;
    --brand-green: #034833;
    --brand-gold: #c29953;
    --text-dark: #111111;
    --text-muted: #777777;
    --bg: #F8F7F3;
    --white: #ffffff;

    --emerald: #004D3B;
    --emerald-deep: #002B22;
    --emerald-light: #0C6B52;
    --gold: #C8A45D;
    --gold-light: #E4CE9C;

    --orange: #004D3B;
    --orange-dark: #003327;
    --orange-hover: #003B2D;
    --orange-soft: #E6F0ED;



    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
}



/* Header Container */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    font-family: inherit;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.site-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 800;
    color: var(--brand-green);
    font-size: 1.5rem;
}

.site-header .site-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* Center Search Pill */
.header-search {
    flex: 1;
    max-width: 620px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--search-bg);
    border: 1px solid var(--search-border);
    border-radius: 50px;
    padding: 3px 3px 3px 16px;
    overflow: hidden;
}

.search-category {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.88rem;
    color: var(--text-dark);
    padding-right: 12px;
    border-right: 1px solid #e0ded8;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 0 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.search-input::placeholder {
    color: #888888;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--brand-green);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.search-btn:hover {
    opacity: 0.9;
}

.search-btn .ic {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

/* Icons & Actions */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Account Link */
.nav-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-account-link .ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

.account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 0.78rem;
}

.account-text small {
    color: var(--text-muted);
}

.account-text strong {
    font-size: 0.88rem;
    font-weight: 700;
}

/* Wishlist Icon with Counter */
.wishlist-btn {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    background: none;
    border: none;
    cursor: pointer;
}

.wishlist-btn .ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

/* Counter Badge Styling */
.count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--brand-gold);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Button */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0;
}

.cart-btn .ic {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
}

.cart-total-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cart-total-text strong {
    color: var(--brand-green);
    font-size: 0.88rem;
}

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {

    /* Stack header items into separate rows */
    .header-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Keep Logo on the left */
    .site-header .logo {
        order: 1;
    }

    /* Move Navigation Icons to top right */
    .nav-icons {
        order: 2;
        gap: 16px;
    }

    /* Push Search Bar to a full-width row below Logo and Icons */
    .header-search {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Adjust search pill internal padding for mobile screen sizes */
    .search-form {
        padding: 2px 2px 2px 10px;
    }

    .search-category {
        font-size: 0.8rem;
        padding-right: 6px;
    }

    .search-input {
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .search-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Hide descriptive text on mobile to preserve layout space */
    .account-text,
    .cart-total-text {
        display: none;
    }

    /* Reset section negative margins for mobile viewports */
    .top-sellers-section,
    [class*="product-grid"],
    [class*="promo-grid"] {
        margin-top: 0 !important;
        position: static !important;
    }
}


/* ============ MAIN LAYOUT: sidebar + content ============ */
.layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
    padding: 28px 0;
    align-items: start;
}

/* ---- Sidebar categories ---- */
.side-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.side-cats {
    padding: 6px 0;
}

.side-cats li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12.5px 20px;
    font-size: 13.5px;
    color: var(--ink);
    transition: background .25s, color .25s, padding-left .25s;
    border-bottom: 1px solid #f4f2ec;
}

.side-cats li:last-child a {
    border-bottom: none;
}

.side-cats li a i.cat-ico {
    width: 18px;
    text-align: center;
    color: var(--emerald);
    font-size: 14px;
}

.side-cats li a .chev {
    margin-left: auto;
    font-size: 10px;
    color: #b9b5a9;
}

.side-cats li a:hover {
    background: var(--bg);
    color: var(--emerald-deep);
    padding-left: 26px;
}

.side-cats li a:hover i.cat-ico {
    color: var(--gold);
}

.side-promo {
    margin-top: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background: linear-gradient(160deg, var(--emerald-deep), var(--emerald));
    color: #fff;
    padding: 26px 22px;
    text-align: center;
}

.side-promo .eyebrow {
    justify-content: center;
    color: var(--gold-light);
}

.side-promo .eyebrow::before {
    background: var(--gold-light);
}

.side-promo h4 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.side-promo img {
    width: 100%;
    border-radius: 10px;
    margin-top: 16px;
}

.side-trending {
    margin-top: 20px;
}

.side-trending h4 {
    font-family: var(--display);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--emerald-deep);
    margin-bottom: 14px;
}

.trend-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f1efe8;
}

.trend-item .ti-name {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.trend-item .ti-price {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-deep);
    margin-top: 3px;
}

/* ---- Hero Banner Container & Layout ---- */
.hero-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 400px;
    background: var(--emerald-deep);
}

/* ---- Sidebar Layout Adjustment (Grid wrapper) ---- */
.wrap {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.side-card {
    width: 260px;
    flex-shrink: 0;
    background: var(--white, #ffffff);
    border: 1px solid var(--line, #eef0ed);
    border-radius: var(--radius-lg);
    padding: 12px 0;
}

.side-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: 13.5px;
    color: var(--ink, #111111);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.side-cats li a:hover {
    background: var(--bg, #f4f2ec);
    color: var(--emerald-deep);
}

.side-cats .cat-ico {
    margin-right: 10px;
    width: 16px;
    color: var(--gold);
}

.side-cats .chev {
    font-size: 10px;
    color: var(--ink-soft, #888888);
}

.hero-slider {
    flex: 1;
}

/* ---- Slides & Transitions ---- */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .8s var(--ease);
    z-index: 1;
    background-size: cover;
    background-position: center;
}

/* Map .hero-slide.on to match .hero-slide.active behavior */
.hero-slide.on {
    opacity: 1;
    z-index: 2;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Content Panel */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 56px;
    max-width: 480px;
}

/* Eyebrow Label */
.hero-content .eyebrow {
    display: inline-block;
    background: var(--gold);
    color: var(--emerald-deep);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 18px;
}

/* Slide Headings & Paragraphs */
.hero-content h1,
.hero-content h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(26px, 3vw, 38px);
    color: #fff;
    line-height: 1.18;
    margin-bottom: 16px;
}

.hero-content p:not(.eyebrow) {
    color: rgba(255, 255, 255, .72);
    font-size: 14.5px;
    margin-bottom: 24px;
    max-width: 340px;
}

/* Primary Button */
.hero-content .btn-primary {
    display: inline-block;
    background: var(--emerald, #034833);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 100px;
    font-family: var(--display);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.hero-content .btn-primary:hover {
    background: var(--gold);
    color: var(--emerald-deep);
}

/* Navigation Dots */
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 56px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.hero-dots .hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s;
}

/* Active Dot State (.hero-dot.on) */
.hero-dots .hero-dot.on {
    background: var(--gold);
    width: 22px;
    border-radius: 6px;
}

/* Remove top padding and set wrapper alignment */
section>.wrap[style*="padding-top"] {
    padding-top: 0 !important;
}

/* Ensure flex layout starts at the very top */
.wrap {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px;
}

/* Fix sidebar alignment */
.side-card {
    margin: 0;
    align-self: flex-start;
}

/* Reset hero slider margin & flex sizing */
.hero-slider {
    margin-top: 0 !important;
    flex: 1;
}

/* ---- Brand strip ---- */
.brand-strip {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    margin-top: 20px;
}

.brand-strip .container {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.brand-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 26px;
    width: 100%;
}

.brand-logo {
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    color: #c8c4b8;
    letter-spacing: .02em;
    transition: color .3s;
}

.brand-logo:hover {
    color: var(--emerald);
}

/* ---- Main Layout Structure Fix ---- */
.hero-layout {
    display: flex !important;
    gap: 24px;
    align-items: flex-start;
}

/* Force elements placed after .wrap to move inside the right column visually */
.hero-layout+.brand-strip,
.wrap+.brand-strip {
    /* Aligns width and margin to sit right beside the 280px sidebar */
    margin-left: calc(280px + 24px) !important;
    margin-top: 16px !important;
}

/* ---- Brand Strip Card Styling ---- */
.brand-strip {
    background: #ffffff;
    border: 1px solid #eef0ed;
    border-radius: 16px;
    padding: 18px 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Optional subtle edge fade for smooth scrolling appearance */
.brand-strip::before,
.brand-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.brand-strip::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.brand-strip::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* ---- Auto-Scrolling Marquee Container ---- */
.brand-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: max-content;
    animation: brandScroll 20s linear infinite;
}

/* Pause animation on hover */
.brand-strip:hover .brand-strip-inner {
    animation-play-state: paused;
}

/* Logo Text Styles */
.brand-logo {
    font-family: var(--display, sans-serif);
    font-size: 1rem;
    font-weight: 800;
    color: #cccccc;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: pointer;
}

.brand-logo:hover {
    color: #034833;
}

/* ---- Infinite Continuous Marquee Animation ---- */
@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }

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

/* Layout Wrapper */
.hero-layout {
    display: flex !important;
    gap: 20px;
    align-items: flex-start;
}

/* Sidebar sizing */
.side-card {
    width: 280px;
    flex-shrink: 0;
}

/* Right Column: stacks slider on top, brands on bottom */
.hero-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    /* Prevents flex overflow issues */
}

/* Ensure hero slider takes space */
.hero-slider {
    width: 100%;
    min-height: 420px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Brand Strip Auto-scroll */
.brand-strip {
    background: #ffffff;
    border: 1px solid #eef0ed;
    border-radius: 16px;
    padding: 16px 20px;
    overflow: hidden;
    width: 100%;
}

.brand-strip-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    /*animation: brandScroll 18s linear infinite;*/
    animation: brandScroll 35s linear infinite;
}

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }

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

/* ---- footer ---- */
footer {
    background: #001008;
    color: rgba(255, 255, 255, .55);
    padding: 0 0 0;
}

.footer-top {
    padding: 34px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-callout {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-callout .ico {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--emerald-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.footer-callout b {
    display: block;
    color: #fff;
    font-family: var(--display);
    font-size: 16px;
}

.footer-callout span {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0;
}

.footer-col h4 {
    font-family: var(--display);
    color: #fff;
    font-size: 14px;
    letter-spacing: .04em;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 13.5px;
    transition: color .3s, padding-left .3s;
}

.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-brand p {
    font-size: 13.5px;
    line-height: 1.75;
    margin: 16px 0 20px;
    max-width: 300px;
    color: rgba(255, 255, 255, .45);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all .3s;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--emerald-deep);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    font-size: 12.5px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    flex-wrap: wrap;
    gap: 12px;
}

.pay-icons {
    display: flex;
    gap: 14px;
    font-size: 19px;
    color: rgba(255, 255, 255, .35);
}

footer {
    margin-top: 0px;
}


.footer-brand img {
    filter: brightness(0) invert(1);
}

/* Newsletter Section Container */
.band-newsletter {
    margin-top: 30px !important;
    padding: 28px 0 !important;
    background: #001a14 !important;
}

.band-newsletter .wrap {
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.band-newsletter .promo {
    background: transparent !important;
    text-align: left !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Flexbox Container for Text (Left) & Form (Right) */
.band-newsletter .promo-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 24px;
}

/* Text Column Stacking */
.band-newsletter .text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.band-newsletter .eyebrow {
    display: none !important;
}

.band-newsletter h2 {
    color: #ffffff !important;
    font-family: var(--display, sans-serif);
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.band-newsletter p {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 13.5px !important;
    margin: 0 !important;
}

/* Pill-shaped Form Aligned to Far Right */
.band-newsletter form.newsletter-form {
    display: flex !important;
    background: #ffffff !important;
    border-radius: 100px !important;
    padding: 5px !important;
    width: 420px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
}

.band-newsletter form.newsletter-form input[type="email"] {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    padding: 0 20px !important;
    font-size: 13.5px !important;
    background: transparent !important;
    color: #333333 !important;
}

.band-newsletter form.newsletter-form button.btn-primary {
    background: var(--gold, #c29953) !important;
    color: var(--emerald-deep, #001a14) !important;
    font-family: var(--display, sans-serif);
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 12px 28px !important;
    border-radius: 100px !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    white-space: nowrap;
}

.band-newsletter form.newsletter-form button.btn-primary:hover {
    opacity: 0.9 !important;
}

/* Responsive Stacking for Mobile Devices */
@media (max-width: 768px) {
    .band-newsletter .promo-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .band-newsletter form.newsletter-form {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}


/* ---- Promo Section Layout ---- */
.promo-grid {
    display: grid !important;
    grid-template-columns: 280px 1fr 1fr !important;
    /* 280px left sidebar column + 2 equal right cards */
    gap: 20px !important;
    align-items: stretch !important;
}

/* Base style for all cards */
.promo-grid .promo,
.promo-grid .promo-card {
    position: relative !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border: 1px solid #f0f0f0 !important;
    background-repeat: no-repeat !important;
}

/* Base text resets */
.promo-grid .eyebrow {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
    display: inline-block;
}

.promo-grid h2 {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
}

.promo-grid p:not(.eyebrow) {
    font-size: 13px !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.4 !important;
    max-width: 220px !important;
}

/* Button styles */
.promo-grid .btn,
.promo-grid .btn-promo,
.promo-grid a.btn {
    display: inline-block !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-align: center !important;
    width: fit-content !important;
}


/* ==========================================================
   CARD 1: LEFT VERTICAL DARK GREEN CARD
   ========================================================== */
.promo-grid>div:nth-child(1) {
    background-color: #034833 !important;
    /* Dark green background */
    background-position: center bottom 16px !important;
    background-size: calc(100% - 32px) auto !important;
    /* Shows image inside a bottom container */
    color: #ffffff !important;
    text-align: center !important;
    align-items: center !important;
    min-height: 400px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.promo-grid>div:nth-child(1) .eyebrow {
    color: #c29953 !important;
    justify-content: center !important;
}

.promo-grid>div:nth-child(1) h2 {
    color: #ffffff !important;
    font-size: 20px !important;
}

.promo-grid>div:nth-child(1) .btn,
.promo-grid>div:nth-child(1) .btn-promo {
    background-color: #c29953 !important;
    /* Gold button */
    color: #001a14 !important;
}


/* ==========================================================
   CARDS 2 & 3: RIGHT HORIZONTAL LIGHT CARDS
   ========================================================== */
.promo-grid>div:nth-child(2),
.promo-grid>div:nth-child(3) {
    background-color: #ffffff !important;
    background-position: right 16px bottom 16px !important;
    background-size: 45% auto !important;
    /* Position image on the bottom right */
    color: #1d1d1f !important;
    align-items: flex-start !important;
    min-height: 220px !important;
}

.promo-grid>div:nth-child(2) .eyebrow,
.promo-grid>div:nth-child(3) .eyebrow {
    color: #c29953 !important;
}

.promo-grid>div:nth-child(2) h2,
.promo-grid>div:nth-child(3) h2 {
    color: #1d1d1f !important;
    max-width: 240px !important;
}

.promo-grid>div:nth-child(2) p:not(.eyebrow),
.promo-grid>div:nth-child(3) p:not(.eyebrow) {
    color: #6e6e73 !important;
}

.promo-grid>div:nth-child(2) .btn,
.promo-grid>div:nth-child(2) .btn-promo,
.promo-grid>div:nth-child(3) .btn,
.promo-grid>div:nth-child(3) .btn-promo {
    background-color: #034833 !important;
    /* Dark green button */
    color: #ffffff !important;
}


/* ---- Responsive Breakpoints ---- */
@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .promo-grid>div:nth-child(1) {
        grid-column: 1 / span 2 !important;
        min-height: 260px !important;
    }
}

@media (max-width: 600px) {
    .promo-grid {
        grid-template-columns: 1fr !important;
    }

    .promo-grid>div:nth-child(1) {
        grid-column: 1 !important;
    }
}

/* ---- Promo Grid Layout Alignment ---- */
.promo-grid {
    display: flex !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: stretch !important;
    /* Forces equal height stretching */
}

/* BASE STYLE FOR ALL CARDS */
.promo-grid .promo,
.promo-grid .promo-card {
    position: relative !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background-repeat: no-repeat !important;
}

/* ==========================================================
   CARD 1: LEFT DARK GREEN CARD
   (Matches top sidebar width & stretches taller)
   ========================================================== */
.promo-grid>div:nth-child(1) {
    width: 280px !important;
    /* Matches sidebar width */
    min-width: 280px !important;
    flex-shrink: 0 !important;
    background-color: #034833 !important;
    color: #ffffff !important;
    text-align: center !important;
    align-items: center !important;
    min-height: 320px !important;
    /* Taller vertical height */
    padding-bottom: 16px !important;

    /* Image at bottom */
    background-position: center bottom 16px !important;
    background-size: calc(100% - 32px) 140px !important;
}

.promo-grid>div:nth-child(1) .eyebrow {
    color: #c29953 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

.promo-grid>div:nth-child(1) h2 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 14px 0 !important;
}

.promo-grid>div:nth-child(1) .btn,
.promo-grid>div:nth-child(1) .btn-promo {
    background-color: #c29953 !important;
    color: #001a14 !important;
    border-radius: 50px !important;
    padding: 9px 22px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-decoration: none !important;
}


/* ==========================================================
   CARDS 2 & 3: RIGHT WHITE CARDS
   (Flex-1 expands them to fill the hero column width)
   ========================================================== */
.promo-grid>div:nth-child(2),
.promo-grid>div:nth-child(3) {
    flex: 1 !important;
    /* Fills the remaining hero section width */
    background-color: #ffffff !important;
    border: 1px solid #eef0ed !important;
    color: #1d1d1f !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 24px !important;

    /* Image at bottom-right */
    background-position: right 16px bottom 16px !important;
    background-size: 140px 110px !important;
}

.promo-grid>div:nth-child(2) .eyebrow,
.promo-grid>div:nth-child(3) .eyebrow {
    color: #c29953 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 6px !important;
}

.promo-grid>div:nth-child(2) h2,
.promo-grid>div:nth-child(3) h2 {
    color: #1d1d1f !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    max-width: 220px !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.25 !important;
}

.promo-grid>div:nth-child(2) p:not(.eyebrow),
.promo-grid>div:nth-child(3) p:not(.eyebrow) {
    color: #6e6e73 !important;
    font-size: 12.5px !important;
    max-width: 200px !important;
    margin: 0 0 16px 0 !important;
}

.promo-grid>div:nth-child(2) .btn,
.promo-grid>div:nth-child(2) .btn-promo,
.promo-grid>div:nth-child(3) .btn,
.promo-grid>div:nth-child(3) .btn-promo {
    background-color: #034833 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 9px 22px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    margin-top: auto !important;
    /* Pushes button nicely above lower area */
}

/* 1. Prevent parent flexbox from forcing equal heights across all cards */
.promo-grid {
    align-items: flex-start !important;
}

/* 2. Set shorter height specifically for cards 2 and 3 */
.promo-grid>div:nth-child(2),
.promo-grid>div:nth-child(3) {
    height: 220px !important;
    /* Adjust this number to your exact desired height */
    min-height: 220px !important;
    /* Overrides any default min-height */
    padding: 18px 20px !important;
    /* Fits content neatly inside shorter height */

    /* Reposition background image to fit shorter box */
    background-position: right 12px bottom 12px !important;
    background-size: auto 110px !important;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .promo-grid {
        flex-wrap: wrap !important;
    }

    .promo-grid>div:nth-child(1) {
        width: 100% !important;
    }
}


/* ---- Section & Grid Container ---- */
.content-block {
    background: var(--white, #fff);
    border: 1px solid var(--line, #eef0ed);
    border-radius: var(--radius-md, 16px);
    padding: 28px;
    margin-top: 22px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Product Card Wrapper ---- */
.product-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line, #eef0ed);
    border-radius: var(--radius-sm, 12px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: #ffffff;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: transparent;
}

/* ---- Card Image Header ---- */
.pc-media {
    position: relative;
    height: 180px;
    background: #f4f2ec;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.product-card:hover .pc-media img.main {
    transform: scale(1.06);
}

/* Secondary image hover transition */
.pc-media img.alt {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .pc-media img.alt {
    opacity: 1;
    transform: scale(1.06);
}

/* ---- Badges & Heart Overlay ---- */
.pc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d94336;
    /* Red sale badge */
    color: #ffffff;
    font-family: var(--display, sans-serif);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 2;
}

.pc-badge.new {
    background: #004d3b;
    /* Dark emerald */
}

.pc-wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004d3b;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.pc-wish:hover {
    background: #004d3b;
    color: #ffffff;
}

.pc-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 2;
}

.pc-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 43, 34, 0.2);
}

.pc-dots span.on {
    background: #c29953;
}

/* ---- Card Body Details ---- */
.pc-info {
    padding: 14px 14px 16px;
}

.pc-cat {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c29953;
    font-weight: 700;
    margin-bottom: 4px;
}

.pc-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.35;
    margin: 0 0 6px 0;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-stars {
    color: #c29953;
    font-size: 11px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.pc-stars span {
    color: #86868b;
    margin-left: 4px;
    font-size: 11px;
}

/* ---- Price & Add Button Row ---- */
.pc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pc-price {
    display: flex;
    flex-direction: column;
}

.pc-price .was {
    font-size: 11px;
    color: #a1a1a6;
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.pc-price .now {
    font-size: 14px;
    font-weight: 700;
    color: #004d3b;
    line-height: 1.1;
}

.pc-price .now.on-sale {
    color: #d94336;
}

.pc-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f5f7;
    color: #004d3b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eef0ed;
    cursor: pointer;
    transition: all 0.25s ease;
}

.pc-cart-btn:hover {
    background: #004d3b;
    color: #ffffff;
    border-color: transparent;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ---- Base Reset for All Rail Sections ---- */
.custom-rail-section {
    padding: 30px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Force .wrap to stack vertically in ALL rail sections */
.custom-rail-section .wrap {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    clear: both !important;
}

/* Standard Rail White Card (Top Sellers / Featured Picks) */
.custom-rail-section.mode-full .custom-rail-card {
    background: #ffffff !important;
    border: 1px solid #eef0ed !important;
    border-radius: 20px !important;
    padding: 28px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    /* Forces Header on top, Products below */
}

/* Sidebar Section Container (Removes outer background box for split layout) */
.custom-rail-section.mode-sidebar .custom-rail-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    display: block !important;
}

/* ---- Header Alignment Rules ---- */
.custom-rail-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 24px !important;
}

.custom-rail-header.header-inside {
    padding-bottom: 4px !important;
    margin-bottom: 20px !important;
}

.custom-rail-header.header-outside {
    margin-bottom: 20px !important;
}

.custom-rail-title {
    font-family: inherit !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.custom-rail-link {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #004D3B !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ---- Main Content Layout ---- */
.custom-rail-body {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Sidebar Layout Card */
.custom-sidebar-card {
    width: 400px !important;
    min-width: 400px !important;
    max-width: 400px !important;
    background: #ffffff !important;
    border: 1px solid #eef0ed !important;
    border-radius: 20px !important;
    padding: 28px 24px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.custom-sidebar-eyebrow {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #c29953 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.custom-sidebar-heading {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.25 !important;
}

.custom-sidebar-desc {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.4 !important;
}

.custom-sidebar-btn {
    display: block !important;
    width: 100% !important;
    background: #004D3B !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.custom-sidebar-image {
    width: 100% !important;
    height: 380px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-top: 20px !important;
    flex: 1 !important;
}

.custom-sidebar-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Products Containers */
.custom-rail-section.mode-sidebar .custom-products-container {
    flex: 1 !important;
    background: #ffffff !important;
    border: 1px solid #eef0ed !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.custom-rail-section.mode-full .custom-products-container {
    width: 100% !important;
    flex: 1 !important;
}

/* Products Grid System */
.custom-products-grid {
    display: grid !important;
    gap: 20px !important;
    width: 100% !important;
}

.custom-products-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.custom-products-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.custom-grid-item {
    width: 100% !important;
    display: flex !important;
}

.custom-grid-item>* {
    width: 100% !important;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .custom-rail-body {
        flex-direction: column !important;
    }

    .custom-sidebar-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .custom-sidebar-image {
        height: 280px !important;
    }

    .custom-products-grid.cols-2,
    .custom-products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile Responsiveness (576px and below) */
@media (max-width: 576px) {

    /* Keep 2 columns on small screens instead of dropping to 1 */
    .custom-products-grid.cols-2,
    .custom-products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        /* Slightly tighter gap so cards fit comfortably on small screens */
    }

    /* Reduce card padding on small screens to give products max space */
    .custom-rail-section.mode-full .custom-rail-card,
    .custom-rail-section.mode-sidebar .custom-products-container {
        padding: 12px !important;
    }
}

/* ---- 1. Style the shared parent container to use CSS Grid ---- */
/* Target the main container wrapping both the promo banners and top sellers */
.main-content-wrapper,
section.rcg-promo-trio-container {
    display: grid !important;
    grid-template-columns: 320px 1fr !important;
    /* Left banner fixed width + right content flex */
    gap: 20px 24px !important;
    align-items: start !important;
}

/* ---- 2. Left Green Banner positioning ---- */
/* Left green banner stretches to take column 1 */
.rcg-promo-trio .promo-card-left,
section.rcg-promo-trio>div:first-child {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    /* Occupies the full height on the left */
}

/* ---- 3. Banners 2 & 3 positioning ---- */
/* Banners 2 & 3 sit side-by-side at the top of column 2 */
.rcg-promo-trio .promo-card-right-group,
section.rcg-promo-trio>div:nth-child(2),
section.rcg-promo-trio>div:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* ---- 4. Move Top Sellers directly under Banners 2 & 3 ---- */
.custom-rail-section.rail-top_selling {
    grid-column: 2 !important;
    /* Forces Top Sellers into the right column */
    grid-row: 2 !important;
    /* Places it in row 2 directly under banners 2 & 3 */
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* Reset inner wrap inside Top Sellers for right-side alignment */
.custom-rail-section.rail-top_selling .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ---- 1. Reset Base Layout Controls ---- */
.custom-rail-section.rail-top_selling {
    position: relative !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.custom-rail-section.rail-top_selling .wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 1320px !important;
    /* Locks width on ultra-wide screens */
    margin: 0 auto !important;
    /* Centers section cleanly */
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

/* ---- 2. Standard Desktop View (1200px to 1599px) ---- */
.custom-rail-section.rail-top_selling .custom-rail-card {
    background: #ffffff !important;
    border: 1px solid #eef0ed !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;

    /* Positions card directly next to left green banner */
    width: calc(94% - 310px) !important;
    margin-left: 350px !important;
    margin-top: -96px !important;
}

/* ---- 3. Ultra-Wide Displays (1600px and up) ---- */
/* Big Screen Adjustment (1600px and up) */
@media screen and (min-width: 1600px) {
    .custom-rail-section.rail-top_selling .custom-rail-card {
        margin-left: 350px !important;
        width: calc(94% - 320px) !important;
        max-width: none !important;
        margin-top: -96px !important;
    }
}

/* Grid columns for 4 items in the right section */
.custom-rail-section.rail-top_selling .custom-products-grid.cols-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

section.rcg-promo-trio {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}

.shop.wrap {
    display: block !important;
}

/* ---- Updated Responsive adjustments ---- */
@media (max-width: 992px) {

    /* Reset grid layout to a single vertical column */
    .main-content-wrapper,
    section.rcg-promo-trio-container {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    /* Reset row/column placements for promo elements */
    .rcg-promo-trio .promo-card-left,
    section.rcg-promo-trio>div:first-child,
    .rcg-promo-trio .promo-card-right-group,
    section.rcg-promo-trio>div:nth-child(2),
    section.rcg-promo-trio>div:nth-child(3) {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Reset Top Sellers section position */
    .custom-rail-section.rail-top_selling {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Reset card width, left margin offset, and negative top margin */
    .custom-rail-section.rail-top_selling .custom-rail-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 20px !important;
        padding: 16px !important;
    }

    /* Switch 4-column grid to 2 columns on mobile screens */
    .custom-rail-section.rail-top_selling .custom-products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}


@media (max-width: 768px) {

    /* Reset parent container layout */
    .rcg-newsletter-banner .foot-news.newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        gap: 12px !important;
        height: auto !important;
    }

    /* Input styling - separate top row */
    .rcg-newsletter-banner .foot-news.newsletter-form input[type="email"] {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: 48px !important;
        background: #ffffff !important;
        border-radius: 50px !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    /* Button styling - separate bottom row */
    .rcg-newsletter-banner .foot-news.newsletter-form button.btn-primary {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: 48px !important;
        border-radius: 50px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 768px) {

    /* Fix input field height, padding, and vertical text alignment */
    .rcg-newsletter-banner .foot-news input[type="email"] {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 20px !important;
        line-height: 48px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
}



.footer-brand img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}


/* Fix title layout by enforcing column direction */
.content-page {
    flex-direction: column !important;
    align-items: flex-start !important;
}

/* Optional styling to make the system h1 align cleanly */
.content-page>h1 {
    width: 100%;
    margin-bottom: 24px;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px -8px rgba(0, 77, 59, 0.6);
}

.iconbtn .count {
    right: 35px;
}


.pdp-meta-table {
    background: var(--bg);
}

section.band {
    background: var(--bg);
}

/* ============ RESPONSIVE ============ */
@media (max-width:1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .side-card,
    .side-promo,
    .side-trending {
        display: none;
    }

    .promo-row {
        grid-template-columns: 1fr;
    }

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

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

    .workstation-banner {
        grid-column: span 1;
    }
}

@media (max-width:760px) {
    .topbar {
        display: none;
    }

    .header-row {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px 0;
    }

    .search-bar {
        order: 3;
        max-width: 100%;
    }

    .header-actions {
        gap: 16px;
    }

    .h-action .h-label,
    .h-action .h-value {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-contact {
        display: none;
    }

    .nav-row .container {
        justify-content: flex-end;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-callout span {
        display: none;
    }

    .accessory-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .discount-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

    .hero-slide .hs-content {
        padding: 0 24px;
        max-width: 260px;
    }

    .hero-slide h2 {
        font-size: 22px;
    }

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

    .newsletter-bar form {
        min-width: 100%;
    }
}


/* ============ NAV ROW ============ */
.nav-row {
    background: var(--emerald-deep);
}

.nav-row .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--display);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .3s;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-light);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .75);
    font-size: 12.5px;
}

.nav-contact i {
    background: var(--gold);
    color: var(--emerald-deep);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.nav-contact b {
    display: block;
    color: #fff;
    font-family: var(--display);
    font-size: 13px;
}

@media (max-width: 768px) {
    .nav-row .container {
        height: auto;
        flex-direction: column;
        padding: 16px 20px;
        gap: 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-contact {
        font-size: 12px;
        text-align: center;
    }
}

@media (min-width: 768px) {

    /* 1. Force the container to lay out items horizontally with a large gap */
    header.site-header .nav-icons {
        display: flex !important;
        align-items: center !important;
        gap: 28px !important;
        /* Space between Account, Wishlist, and Cart */
    }

    /* 2. Ensure each link/button inside nav-icons takes its own space */
    header.site-header .nav-icons>a,
    header.site-header .nav-icons>button {
        display: inline-flex !important;
        align-items: center !important;
        position: relative !important;
        margin: 0 !important;
        width: auto !important;
    }

    /* 3. Space out the Wishlist heart icon */
    header.site-header .wishlist-btn {
        margin-right: 12px !important;
    }

    /* 4. Fix layout INSIDE the Cart Button (Icon, Badge, Text) */
    header.site-header .cart-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        /* Gap between Bag icon, badge '3', and Total text */
        background: transparent;
        border: none;
    }

    /* 5. Force the cart count badge ('3') to sit beside the bag icon instead of over it */
    header.site-header .cart-btn .count {
        position: relative !important;
        top: -8px !important;
        left: auto !important;
        right: 21px !important;
        margin: 0 4px !important;
        transform: none !important;
    }

    .wishlist-count {
        right: auto !important;
        left: 20px !important;
    }

    /* 6. Push the total amount text away from the badge */
    header.site-header .cart-btn .cart-total-text {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-left: 6px !important;
    }
}

/* =========================================
   1. DESKTOP BASE LAYOUT (Grid)
   ========================================= */
.wrap.hero-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* 280px sidebar, remainder is banner */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.side-card {
    height: fit-content;
    background: #fff;
    border-radius: 12px;
    box-sizing: border-box;
}

.hero-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    /* Prevents the banner from overflowing the grid */
}

/* =========================================
   2. MOBILE FIXES (Stacked vertically)
   ========================================= */
@media (max-width: 768px) {

    /* Force vertical stack and stop horizontal screen bleed */
    .wrap.hero-layout {
        display: flex !important;
        flex-direction: column !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Snap sidebar to exact content height, full width */
    .side-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    /* Reset main content width so it doesn't push off screen */
    .hero-main-content {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Force slider to show by giving it a minimum height */
    .hero-slider,
    .hero-slide {
        width: 100% !important;
        min-height: 345px !important;
        display: block !important;
    }

    /* Enable swiping on the brands strip */
    .brand-strip {
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .brand-strip-inner {
        display: flex !important;
        width: max-content !important;
        gap: 15px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 768px) {

    /* 1. Unhide the category sidebar menu */
    .side-card {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px !important;
    }

    .promo-grid>div:nth-child(2),
    .promo-grid>div:nth-child(3) {

        /* Adjust this number to your exact desired height */
        min-height: 291px !important;
    }
}

.checkout-header {
    font-size: clamp(24px, 3vw, 32px) !important;
    font-weight: 700 !important;
}


@media (max-width: 1080px) {

    /* Hide panel by default */
    #filters,
    .filters-sidebar,
    .shop-sidebar {
        display: none;
    }

    /* Dark background overlay */
    .filter-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
    }

    .filter-backdrop.active {
        display: block !important;
    }

    /* Active Sidebar Drawer */
    #filters.active,
    .filters-sidebar.active,
    .shop-sidebar.active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: #ffffff !important;
        z-index: 99999 !important;
        padding: 20px !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
        box-sizing: border-box !important;

        /* ISSUE 2 FIX: Enable full height touch scrolling */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Prevent inner content clipping */
    #filters.active *,
    .filters-sidebar.active *,
    .shop-sidebar.active * {
        max-height: none !important;
    }
}



/* Fix Search Bar Form Layout */
.search-form {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 1. Limit the category dropdown width */
.search-category {
    flex: 0 0 120px !important;
    /* Locks width so it won't expand */
    width: 120px !important;
    max-width: 120px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

/* 2. Allow input field to shrink dynamically */
.search-input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    /* Crucial: allows input to shrink to fit button */
}

/* 3. Keep search button fixed and visible on the right */
.search-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    shrink: 0 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-category {
        flex: 0 0 95px !important;
        width: 95px !important;
        font-size: 12px !important;
        padding-right: 2px !important;
    }

    .search-btn span:not(.ic) {
        display: none;
        /* Hides "Search" text on small screens, keeping only the magnifying glass icon */
    }
}

/* ============ Floating buttons ============ */
.float-stack {
    position: fixed;
    bottom: 26px;
    right: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 800;
}

.fab {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    transition: transform .3s, box-shadow .3s;
    position: relative;
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
}

.fab.whatsapp {
    background: #25D366;
    color: #fff;
    display: flex;
}


.fab .ripple {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    animation: ripple 2.2s ease-out infinite;
}

@keyframes ripple {
    0% {
        opacity: .6;
        transform: scale(.8);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}