/* === Core Styling & Variables === */
    @property --angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }

    :root {
    --brand-primary: #034EA2; 
    --brand-dark: #050505; 
    --brand-light: #ffffff;
    --bg-gray: #f8f9fa;
    --card-gray: #f4f4f4;
    --text-main: #202020;
    --text-muted: #6c757d;
    --vip-gold: #D4AF37;
    }

    /* SPA Navigation Utility: Keeps sections in the rendering tree to prevent image de-coding flickers */
    .spa-hidden {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .x-small { font-size: 0.75rem !important; }

    html, body {
    max-width: 100%;
    overflow-x: hidden;
    }

    body {
    font-family: 'Google Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--brand-light);
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
    }

    /* Prevents margin collapse which caused a white gap below the fixed navbar */
    body::before {
    content: "";
    display: table;
    }

    a {
    text-decoration: none;
    color: inherit;
    }

    /* === 1. Navigation Bar (Base) === */
    .navbar-custom {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    background-color: transparent;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 1.2rem 0;
    }

    .navbar-custom .navbar-brand {
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 1.6rem;
    color: var(--brand-light);
    transition: color 0.4s ease;
    }

    /* Mobile icons default (transparent bg) */
    .mobile-nav-icon { 
    color: var(--brand-light); 
    cursor: pointer; 
    transition: color 0.4s ease;
    }

    /* Remove focus border/shadow from navbar toggler when clicked */
    .navbar-toggler:focus,
    .navbar-toggler:active {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    }

    /* Desktop specific Nav links */
    #desktopNav .nav-link,
    #desktopNav .nav-icon {
    color: var(--brand-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    cursor: pointer;
    }

    #desktopNav .nav-icon {
    font-size: 1.3rem;
    margin-left: 1.2rem;
    position: relative;
    }

    #desktopNav .nav-link-top {
    font-weight: 700;
    color: var(--brand-light);
    transition: color 0.3s;
    }

    /* Scrolled State (Modern Glassmorphism) */
    .navbar-custom.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    background-image: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Mega Menu Active State */
    .navbar-custom.mega-menu-active {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    }

    /* FAQ Active State */
    .navbar-custom.faq-active {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    }

    /* Color logic: If mega menu is active OR navbar is scrolled, text turns dark */
    .navbar-custom.mega-menu-active .navbar-brand,
    .navbar-custom.mega-menu-active .mobile-nav-icon,
    .navbar-custom.mega-menu-active #desktopNav .nav-link,
    .navbar-custom.mega-menu-active #desktopNav .nav-icon,
    .navbar-custom.mega-menu-active #desktopNav .nav-link-top,
    .navbar-custom.scrolled .navbar-brand,
    .navbar-custom.scrolled .mobile-nav-icon,
    .navbar-custom.scrolled #desktopNav .nav-link,
    .navbar-custom.scrolled #desktopNav .nav-icon,
    .navbar-custom.scrolled #desktopNav .nav-link-top,
    /* New: FAQ Active State */
    .navbar-custom.faq-active .navbar-brand,
    .navbar-custom.faq-active .mobile-nav-icon,
    .navbar-custom.faq-active #desktopNav .nav-link,
    .navbar-custom.faq-active #desktopNav .nav-icon,
    .navbar-custom.faq-active #desktopNav .nav-link-top {
    color: var(--brand-dark);
    }

    /* Hover text color depending on state */
    .navbar-custom #desktopNav .nav-link:hover,
    .navbar-custom #desktopNav .nav-item:hover > .nav-link,
    .navbar-custom #desktopNav .nav-link-top:hover {
    color: #d0d0d0; /* Subtle hover when top navbar is dark */
    }

    /* When navbar is white, hover state uses the primary brand color */
    .navbar-custom.mega-menu-active #desktopNav .nav-link:hover,
    .navbar-custom.mega-menu-active #desktopNav .nav-item:hover > .nav-link,
    .navbar-custom.mega-menu-active #desktopNav .nav-link-top:hover,
    .navbar-custom.scrolled #desktopNav .nav-link:hover,
    .navbar-custom.scrolled #desktopNav .nav-item:hover > .nav-link,
    .navbar-custom.scrolled #desktopNav .nav-link-top:hover,
    .navbar-custom.faq-active #desktopNav .nav-link:hover,
    .navbar-custom.faq-active #desktopNav .nav-item:hover > .nav-link,
    .navbar-custom.faq-active #desktopNav .nav-link-top:hover {
    color: var(--brand-primary); 
    }

    /* Desktop Nav Link Underline Hover Indicator & Wrap Fix */
    #desktopNav .nav-link { 
    position: relative; 
    white-space: nowrap; 
    }
    #desktopNav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background-color: var(--brand-light);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease;
    pointer-events: none;
    }

    /* Change underline color to brand primary when navbar is white */
    .navbar-custom.mega-menu-active #desktopNav .nav-link::before,
    .navbar-custom.scrolled #desktopNav .nav-link::before,
    .navbar-custom.faq-active #desktopNav .nav-link::before {
    background-color: var(--brand-primary);
    }

    #desktopNav .nav-item:hover > .nav-link::before,
    #desktopNav .nav-link.active-nav::before {
    width: calc(100% - 2rem);
    }

    /* --- Shared Support Menu Styling (Desktop & Mobile) --- */
    .support-menu-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #777; margin-bottom: 1.5rem; }
    .support-menu-link { display: block; font-size: 0.9rem; font-weight: 500; color: #444; margin-bottom: 1rem; text-decoration: none; transition: all 0.2s ease; }
    .support-menu-link:hover { color: var(--brand-primary); text-decoration: underline; font-weight: 600; }

    .support-action-card { 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background-color: #f8f9fa; border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
    text-decoration: none; color: var(--brand-dark); transition: all 0.3s ease; height: 100%; border: 1px solid transparent; aspect-ratio: 1 / 1;
    }
    .support-action-card:hover { background-color: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: #eee; transform: translateY(-5px); }
    .support-action-card i { font-size: 2.2rem; margin-bottom: 0.8rem; color: #000; transition: transform 0.3s; }
    .support-action-card:hover i { transform: scale(1.1); color: var(--brand-primary); }
    .support-action-card span { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
    .mega-grid-centered .support-action-card { width: 150px; height: auto; }

    .support-dropdown-wrapper { display: flex; align-items: center; height: 100%; cursor: pointer; }

    /* Image-Based Mega Menu Simulation (Desktop Full Width - Triggers at 1200px) */
    @media (min-width: 1200px) {
    #desktopNav .nav-item.dropdown:hover .dropdown-menu {
        display: block; opacity: 1; visibility: visible; transform: translateY(0);
    }
    #desktopNav .position-static { position: static !important; }
    #desktopNav .dropdown-menu {
        display: block; opacity: 0; visibility: hidden;
        transform: translateY(15px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.3s;
        border: none; border-top: 1px solid #eaeaea; border-radius: 0;
        margin-top: 0;
        top: 100%;
    }
    #desktopNav.mega-menu-locked .dropdown-menu {
        transform: translateY(0) !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }

    /* FORCE HIDE DROPDOWNS WHEN CLICKED */
    .force-hide-dropdowns #desktopNav .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Allow click-based dropdowns (like My Account) to display correctly */
    #desktopNav .dropdown-menu.show {
        opacity: 1; visibility: visible; transform: translateY(0);
    }

    .dropdown-menu.mega-menu-full {
        width: 100vw; left: 0; right: 0; padding: 3rem 0;
        background-color: var(--brand-light); border-radius: 0;
    }

    /* Utility arrangement for desktop */
    .utility-container { flex-direction: row; align-items: center; gap: 1.5rem; }
    .search-trigger span, .user-dropdown-trigger span { display: none; }

    /* --- Mega Menu Layout & Grid System --- */
    .mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 2rem 1rem; }
    .mega-grid-centered { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem 2.5rem; max-width: 1000px; margin: 0 auto; }

    .mega-product-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--brand-dark); transition: transform 0.2s ease; }
    .mega-product-item:hover { transform: translateY(-3px); }
    .mega-product-item:hover .mega-product-name { color: var(--brand-primary); }

    .mega-product-item img { width: 85px; height: 85px; object-fit: contain; margin-bottom: 0.8rem; transition: transform 0.3s ease; }
    .mega-product-item:hover img { transform: scale(1.05); }

    .mega-badge { font-size: 0.65rem; font-weight: 800; color: var(--brand-primary); text-transform: uppercase; margin-bottom: 0.3rem; height: 12px; display: block; }
    .text-transparent { color: transparent !important; user-select: none; }
    .mega-product-name { font-size: 0.85rem; font-weight: 600; line-height: 1.2; text-align: center; max-width: 120px; transition: color 0.2s ease; }

    /* Discover Links */
    .discover-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; color: #777; margin-bottom: 1.5rem; text-transform: uppercase; }
    .discover-link { font-size: 0.9rem; font-weight: 500; color: #444; display: block; padding: 0.35rem 0; text-decoration: none; transition: all 0.2s ease; }
    .discover-link:hover { color: var(--brand-primary); text-decoration: underline; font-weight: 600; }
    }

    /* === Mobile & Tablet Specific Navbar Overrides === */
    @media (max-width: 1199px) {
    /* Overlay navbar style for mobile/tablet */
    .navbar-custom { 
        height: 60px;
        padding: 0;
        display: flex;
        align-items: center;
        background-color: #ffffff;
        background-image: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    .navbar-custom .container-fluid { height: 100%; }
    .navbar-custom .navbar-brand,
    .navbar-custom .mobile-nav-icon {
        color: var(--brand-dark);
    }

    /* 100vw Offcanvas container */
    .offcanvas-mobile-menu { width: 100vw !important; border-left: none; background-color: #ffffff; }
    .offcanvas-body { padding: 0; overflow-x: hidden; position: relative; }

    .offcanvas.hiding, .offcanvas.show, .offcanvas.showing {
        visibility: visible;
        height: 100vh;
    }

    /* Prevent support cards from becoming giant squares on wide mobile/tablet screens */
    .support-action-card {
        aspect-ratio: auto;
        min-height: 110px;
        padding: 1.2rem 0.5rem;
    }
    .support-action-card i {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    }

    /* Mobile Menu Typography & Lists */
    .mobile-menu-section-title {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    letter-spacing: 0.5px;
    }
    .mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    line-height: 1.3;
    }
    .mobile-menu-link i { font-size: 1.1rem; color: #555; }
    .mobile-menu-link.link-sm { font-size: 1.05rem; }
    .mobile-menu-link.link-xs { font-size: 0.95rem; font-weight: 600; color: #222; }

    .search-bar-mobile {
    background-color: #f4f4f4;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    }
    .search-bar-mobile input { border: none; background: transparent; outline: none; width: 100%; padding-left: 0.5rem; font-size: 1rem; }

    /* Accordion Collapsing Specifics */
    .mobile-nav-accordion .accordion-button {
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    background-color: transparent !important;
    box-shadow: none !important;
    }
    .mobile-nav-accordion .accordion-button:not(.collapsed) {
    color: var(--brand-primary);
    }
    .mobile-nav-accordion .accordion-button::after {
    background-size: 1rem;
    }
    .mobile-nav-accordion .accordion-item {
    border-color: #f0f0f0;
    }

    /* Submenu Grid Layout (Now inside the Accordion) */
    .mobile-submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    }
    .mobile-grid-cell {
    display: flex;
    align-items: center; /* icon left, text right */
    gap: 12px;
    text-decoration: none;
    color: var(--brand-dark);
    }
    .mobile-grid-img-wrapper { position: relative; }
    .mobile-grid-cell img { width: 45px; height: 45px; object-fit: contain; }
    .mobile-grid-badge {
    position: absolute; top: -5px; left: -5px; font-size: 0.5rem; 
    font-weight: 800; color: var(--brand-primary); text-transform: uppercase;
    }
    .mobile-grid-text { font-size: 0.85rem; font-weight: 600; line-height: 1.2; word-break: break-word; }

    .mobile-discover-item {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-dark);
    padding: 0.7rem 0;
    text-decoration: none;
    }

    /* === 2. Hero Section (Modern Minimalist) === */
    .hero-carousel, .hero-carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative; /* Needed for absolute positioning of inner background */
    overflow: hidden; /* Ensures scaled background doesn't overflow */
    /* Enhanced transitions for high-res assets */
    transition: filter 0.8s ease, opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: filter, opacity;
    background-color: var(--bg-fallback, #111); /* Tonal fallback for premium feel */
    }

    /* Optimized for 4K textures and tall mobile aspect ratios */
    .hero-carousel .hero-background-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: var(--focal-desktop, center top);
    background-color: transparent;
    background-image: var(--bg-desktop);
    z-index: -1;
    will-change: filter, opacity, transform;
    filter: blur(20px);
    opacity: 0;
    transition: filter 1.2s ease-out, opacity 0.8s ease-out;
    }

    .hero-carousel .hero-background-image.loaded {
        filter: blur(0);
        opacity: 1;
    }

    .hero-carousel .hero-background-image:not(.blur-up) {
        filter: blur(0);
        opacity: 1;
    }

    .hero-carousel.scrolled-tint .carousel-item {
    filter: brightness(0.85);
    }

    /* Hero Content Fade-In-Up Animation */
    @keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

    /* Base Flex Layout Container for Modern Hero Banners */
    .hero-overlay-modern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; 
    /* Added generous padding to prevent text hitting the absolute edges and navbar */
    padding: 12% 16% 8% 16%;
    /* High-res legibility: multi-stop gradient based on alignment */
    background: transparent; 
    z-index: 2;
    }

    /* Dynamic Hero Alignments & Gradients (Landscape vs Portrait) */
    /* Desktop (Landscape) Alignment & Gradients (ΓëÑ768px) */
    @media (min-width: 768px) {
        /* Directional gradients for high-res clarity */
        .hero-overlay-modern[data-align-desktop^="start"] { 
            justify-content: center; align-items: flex-start; text-align: left; 
            background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
        }
        .hero-overlay-modern[data-align-desktop^="center"] { 
            justify-content: center; align-items: center; text-align: center; 
            background: radial-gradient(circle at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
        }
        .hero-overlay-modern[data-align-desktop^="end"] { 
            justify-content: center; align-items: flex-end; text-align: right; 
            background: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
        }

        /* Specific vertical adjustments */
        .hero-overlay-modern[data-align-desktop$="top"] { justify-content: flex-start; padding-top: 15%; }
        .hero-overlay-modern[data-align-desktop$="center"] { justify-content: center; }
        .hero-overlay-modern[data-align-desktop$="bottom"] { justify-content: flex-end; padding-bottom: 10%; }
    }

    /* Initial state for children to support animation */
    .hero-overlay-modern > * :not(.modern-hero-btn) {
    opacity: 0;
    }

    .hero-carousel .carousel-item.active .hero-overlay-modern > * {
    animation: fadeInUp 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    }

    /* Staggered Animation Delays */
    .hero-carousel .carousel-item.active .hero-overlay-modern .hero-text-container {
    animation-delay: 0.4s;
    }
    .hero-carousel .carousel-item.active .hero-overlay-modern .modern-hero-btn {
    animation-delay: 0.6s;
    }

    /* Dynamic Hero Text Styles */
    .hero-title {
    font-weight: 700;
    font-size: 60px;
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    white-space: pre-wrap;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Enhanced for high-res contrast */
    }

    .hero-subtitle {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    opacity: 0.9;
    white-space: pre-wrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .modern-hero-btn {
    position: relative;
    z-index: 1;
    /* True Glass Effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.05) !important; 

    /* Optimized for high-refresh displays by specifying properties and using will-change */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease, box-shadow 0.4s ease, color 0.3s ease;
    will-change: transform, box-shadow;
    font-size: 0.95rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    padding: 0.8rem 2.5rem !important;
    border-radius: 50rem;
    border: none;
    }

    /* Isolated running border using pseudo-element and CSS masks */
    .modern-hero-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50rem;
    padding: 2px; /* Thickness of the animated border */
    background: conic-gradient(from var(--angle), transparent 40%, rgba(255,255,255,0.4) 80%, #ffffff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: runningBorder 2.5s linear infinite;
    will-change: transform; /* Hints GPU promotion for the animated gradient layer */
    z-index: -1;
    pointer-events: none;
    }

    @keyframes runningBorder {
    0% { --angle: 0deg; }
    100% { --angle: 360deg; }
    }

    .modern-hero-btn:hover {
    background-color: #ffffff !important;
    color: var(--brand-dark) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.3);
    }

    .modern-hero-btn:hover::before {
    background: #ffffff; /* Fill the border fully on hover */
    }

    /* Premium Hero Indicators */
    .hero-carousel .carousel-indicators {
        margin-bottom: 3.5rem;
        gap: 12px;
        z-index: 15;
    }

    .hero-carousel .carousel-indicators button {
        width: 40px; 
        height: 4px;
        background-color: rgba(255, 255, 255, 0.25);
        border: none;
        border-top: 12px solid transparent; /* Increases hit area for touch/click */
        border-bottom: 12px solid transparent; /* Increases hit area for touch/click */
        background-clip: padding-box;
        border-radius: 10px;
        transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease;
        position: relative;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .hero-carousel .carousel-indicators button.active {
        width: 80px;
        background-color: rgba(255, 255, 255, 0.15);
    }

    /* Animated Progress Fill for the Active Pill */
    .hero-carousel .carousel-indicators button.active::after {
        content: '';
        position: absolute;
        top: 0; left: 0; bottom: 0;
        width: 100%;
        background-color: #ffffff;
        transform-origin: left;
        animation: heroIndicatorProgress 8s linear forwards; /* Syncs with data-bs-interval in index.html */
    }

    @keyframes heroIndicatorProgress {
        0% { transform: scaleX(0); }
        100% { transform: scaleX(1); }
    }

    /* Category / Brand Showcase */
    .brand-showcase { background-color: var(--brand-light); padding: 4rem 0 2rem 0; }
    .brand-item { text-align: center; padding: 1.5rem; transition: transform 0.3s; cursor: pointer; }
    .brand-item:hover { transform: translateY(-10px); }
    .brand-icon-wrapper {
    width: 90px; height: 90px; background-color: var(--bg-gray); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem auto; font-size: 2.2rem; color: var(--brand-dark); transition: all 0.3s ease;
    }
    .brand-item:hover .brand-icon-wrapper { background-color: var(--brand-primary); color: white; box-shadow: 0 10px 20px rgba(3, 78, 162, 0.2); }
    .brand-name { font-weight: 700; font-size: 1rem; color: var(--text-main); }

    /* Product Sections - Main Image & Minimal Horizontal Scroll Style */
    .section-header { margin-bottom: 2rem; margin-top: 2rem; border-bottom: 2px solid var(--bg-gray); padding-bottom: 1rem; }
    .section-title { font-weight: 800; font-size: 2.5rem; letter-spacing: -1px; margin: 0; white-space: nowrap; }

    /* Premium VIP Toggle - Redesigned */
    .vip-toggle-wrapper {
    display: none !important;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), inset 0 0 0 1px #e0e0e0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    cursor: pointer;
    }
    .vip-toggle-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), inset 0 0 0 1px #d0d0d0;
    transform: translateY(-2px);
    }
    .vip-toggle-wrapper.active-vip {
    background: linear-gradient(145deg, #fffbf0, #ffffff);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.15), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
    }
    .vip-toggle-wrapper span { font-weight: 700; font-size: 0.9rem; transition: all 0.3s ease; }

    .guest-label { color: var(--brand-dark); }
    .guest-icon { color: var(--brand-dark); font-size: 1.1rem; transition: all 0.3s ease; }

    .vip-label-text { color: var(--text-muted); }
    .vip-icon { opacity: 0.4; filter: grayscale(100%); font-size: 1.1rem; transition: all 0.3s ease; }

    .vip-toggle-wrapper.active-vip .guest-label { color: var(--text-muted); }
    .vip-toggle-wrapper.active-vip .guest-icon { color: var(--text-muted); opacity: 0.5; }
    .vip-toggle-wrapper.active-vip .vip-label-text { color: #b8911b; text-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
    .vip-toggle-wrapper.active-vip .vip-icon { opacity: 1; filter: grayscale(0%); color: var(--vip-gold) !important; text-shadow: 0 0 10px rgba(212, 175, 55, 0.4); transform: scale(1.1); }

    .form-switch .premium-switch {
    width: 3.5em !important;
    height: 1.75em !important;
    cursor: pointer;
    background-color: #e4e4e4;
    border: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
    margin-top: 0;
    }
    .form-switch .premium-switch:checked {
    background-color: var(--vip-gold);
    border-color: var(--vip-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }
    .form-switch .premium-switch:focus { outline: none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
    .form-switch .premium-switch:checked:focus { box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }

    /* Modal backdrop: blur the page behind any modal for a modern glass effect */
    .modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(5, 5, 5, 0.55);
    }

    /* === Auth Modals (Login / Register / Forgot Password) === */
    .auth-modal .modal-dialog {
    animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes authModalPop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .auth-modal .modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    }
    .auth-modal .modal-header {
    padding: 1.75rem 1.75rem 0.5rem;
    }
    .auth-modal .modal-header .modal-title {
    font-size: 1.4rem;
    letter-spacing: -0.3px;
    }
    .auth-modal-subtitle {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    }
    .auth-modal .modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
    }
    .auth-modal .modal-header .btn-close {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--bg-gray);
    background-size: 0.7rem;
    opacity: 1;
    transition: background-color 0.15s ease, transform 0.15s ease;
    }
    .auth-modal .modal-header .btn-close:hover {
    background-color: #ececec;
    transform: rotate(90deg);
    }

    /* Error/success alert dismiss button - kept small and inline with Bootstrap's own
       positioning, distinct from the big circular modal-header close button above. */
    .auth-modal .alert.alert-dismissible {
    padding-right: 3rem;
    }
    .auth-modal .alert .btn-close {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0.9rem 1rem;
    background-size: 0.65rem;
    opacity: 0.6;
    }
    .auth-modal .alert .btn-close:hover {
    opacity: 1;
    }
    .auth-modal .form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    }
    .auth-modal .form-control {
    border-radius: 0.6rem;
    padding: 0.65rem 1rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }
    .auth-modal .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(3, 78, 162, 0.15);
    }
    .auth-modal .form-control:disabled {
    background-color: var(--bg-gray);
    color: var(--text-muted);
    }

    /* Icon-prefixed inputs (Login / Register) - left icon + optional right toggle button */
    .auth-field {
    position: relative;
    display: flex;
    align-items: center;
    }
    .auth-field .form-control {
    background-color: var(--bg-gray);
    border-color: transparent;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    }
    .auth-field .form-control:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(3, 78, 162, 0.12);
    }
    .auth-field-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
    }
    .auth-field:focus-within .auth-field-icon {
    color: var(--brand-primary);
    }
    .auth-field-toggle {
    position: absolute;
    right: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
    }
    .auth-field-toggle:hover { color: var(--brand-dark); }
    .auth-field:has(.auth-field-toggle) .form-control {
    padding-right: 2.75rem;
    }

    .auth-modal .btn-dark {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    }
    .auth-modal .btn-dark:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(3, 78, 162, 0.25);
    }
    .auth-modal .btn-dark:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
    .auth-link { color: var(--brand-primary); }
    .auth-link:hover { text-decoration: underline !important; }

    /* "OR" divider between email/password form and social sign-in */
    .auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    }
    .auth-divider::before,
    .auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #ececec;
    }
    .auth-divider span {
    padding: 0.3rem 0.9rem;
    background-color: var(--bg-gray);
    border-radius: 50px;
    }

    /* Continue with Google / Phone buttons */
    .auth-google-btn,
    .auth-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }
    .auth-google-btn:hover,
    .auth-phone-btn:hover {
    background-color: #f8f9fa;
    border-color: #c6c9cc;
    color: #3c4043;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.12);
    transform: translateY(-1px);
    }
    .auth-google-btn:active,
    .auth-phone-btn:active {
    background-color: #f1f3f4;
    box-shadow: none;
    transform: translateY(0);
    }
    .auth-google-btn:disabled,
    .auth-phone-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    }
    .auth-google-icon {
    flex-shrink: 0;
    }

    /* Phone login: country code dropdown to match .auth-modal .form-control */
    .auth-modal .input-group .form-control {
    /* border-radius: 0 0.6rem 0.6rem 0; */
    }

    .auth-country-select {
    position: relative;
    }
    .auth-country-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 100%;
    padding: 0 0.65rem;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 0.6rem 0 0 0.6rem;
    background-color: var(--bg-gray);
    color: var(--text-muted);
    font-weight: 700;
    line-height: 1;
    }
    .auth-country-btn:hover,
    .auth-country-btn:focus {
    background-color: #eef0f2;
    color: var(--text-muted);
    }
    .auth-flag-icon {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: block;
    }
    .auth-flag-icon-sm {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    }
    .auth-country-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1060;
    width: 280px;
    max-height: 280px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    display: none;
    }
    .auth-country-dropdown.show {
    display: block;
    }
    .auth-country-search {
    border-radius: 0.5rem;
    }
    .auth-country-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    }
    .auth-country-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    }
    .auth-country-item:hover,
    .auth-country-item.active {
    background-color: var(--bg-gray);
    }
    .auth-country-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    }
    .auth-country-dial {
    margin-left: auto;
    color: var(--text-muted);
    flex-shrink: 0;
    }

    /* Verification code: PIN-style input boxes */
    .auth-pin-group {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    }
    .auth-pin-box {
    width: 100%;
    max-width: 50px;
    height: 56px;
    padding: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    background-color: var(--bg-gray);
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    transition: all 0.2s ease;
    }
    .auth-pin-box:focus {
    background-color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(3, 78, 162, 0.15);
    outline: none;
    transform: translateY(-2px);
    }

    /* Profile modal: admin-style header/footer with divider borders */
    #profileModal .modal-header,
    #profileModal .modal-footer {
    padding: 1.25rem 1.5rem;
    }
    #profileModal .modal-header {
    border-bottom: 1px solid #e8e8e8;
    }
    #profileModal .modal-footer {
    border-top: 1px solid #e8e8e8;
    gap: 0.75rem;
    }
    #profileModal .profile-cancel-btn {
    background-color: var(--card-gray);
    color: var(--text-main);
    border: 1px solid #e0e0e0;
    }
    #profileModal .profile-cancel-btn:hover {
    background-color: #e8e8e8;
    }

    /* Phone recovery: "Verify" button / "Verified" badge next to Profile's Phone Number field */
    .auth-phone-verify-btn {
    background-color: rgba(3, 78, 162, 0.08);
    color: var(--brand-primary);
    border: none;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    }
    .auth-phone-verify-btn:hover {
    background-color: rgba(3, 78, 162, 0.15);
    }
    .auth-phone-verified-badge {
    background-color: rgba(25, 135, 84, 0.12);
    color: #198754;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
    }

    /* Account dropdown: gradient header band (avatar/name/badge) + row-style menu list */
    .account-dropdown-wrapper .dropdown-menu {
    padding: 0 !important;
    overflow: hidden;
    }
    .account-guest-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f4;
    color: var(--text-muted);
    font-size: 1.3rem;
    }
    .account-dropdown-guest-actions {
    display: grid;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    }
    .account-dropdown-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(3, 78, 162, 0.07), rgba(3, 78, 162, 0.015));
    border-bottom: 1px solid #eef1f4;
    }
    .account-user-avatar {
    order: 1;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(3, 78, 162, 0.3);
    }
    .account-dropdown-header .text-truncate.flex-grow-1 {
    order: 1;
    }
    .account-dropdown-header .account-user-name {
    font-size: 0.95rem;
    }
    .account-dropdown-header .account-user-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    }
    /* Zero-height full-width spacer forces the badge below onto its own line,
       without the badge's own box being stretched (see .account-type-label). */
    .account-dropdown-header::after {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
    }
    .account-type-label {
    order: 3;
    align-self: flex-start;
    margin-left: calc(48px + 0.75rem);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background: #fff;
    color: var(--text-muted);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .account-type-label.role-admin,
    .account-type-label.role-manager,
    .account-type-label.role-staff {
    background: rgba(3, 78, 162, 0.1);
    color: var(--brand-primary);
    box-shadow: none;
    }
    .account-type-label.role-vip {
    background: rgba(212, 175, 55, 0.16);
    color: #a67c1a;
    box-shadow: none;
    }

    /* Menu items as clean hover rows instead of stacked pill buttons */
    .account-dropdown-menu-list {
    padding: 0.5rem;
    }
    .account-menu-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
    }
    .account-menu-row > i:first-child {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    flex-shrink: 0;
    }
    .account-menu-row span {
    flex: 1;
    }
    .account-menu-row-chevron {
    font-size: 0.75rem;
    color: #ccc;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    }
    .account-menu-row:hover {
    background-color: var(--bg-gray);
    }
    .account-menu-row:hover .account-menu-row-chevron {
    opacity: 1;
    transform: translateX(0);
    }
    .account-menu-row-primary {
    background: rgba(3, 78, 162, 0.08);
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
    }
    .account-menu-row-primary > i:first-child {
    color: var(--brand-primary);
    }
    .account-menu-row-primary:hover {
    background: rgba(3, 78, 162, 0.15);
    }
    .account-menu-row-danger {
    color: #dc3545;
    }
    .account-menu-row-danger > i:first-child {
    color: #dc3545;
    }
    .account-menu-row-danger:hover {
    background-color: #fff0f0;
    }

    /* Account type radio cards (Customer / VIP) */
    .account-type-option { cursor: pointer; margin: 0; }
    .account-type-option input { position: absolute; opacity: 0; pointer-events: none; }
    .account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.25s ease;
    }
    .account-type-card i { font-size: 1.3rem; }
    .account-type-option input:checked + .account-type-card {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(3, 78, 162, 0.05);
    }
    .account-type-option:nth-child(2) input:checked + .account-type-card {
    border-color: var(--vip-gold);
    color: #b8911b;
    background: rgba(212, 175, 55, 0.08);
    }

    /* Featured Promo Card Layout */
    .main-promo-card {
    border-radius: 1.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background-color: var(--brand-dark);
    min-height: 100%;
    }
    .main-promo-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    z-index: 1;
    opacity: 0.8;
    }
    .main-promo-card:hover img {
    transform: scale(1.05);
    opacity: 0.9;
    }
    .promo-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 2;
    }
    .promo-content {
    position: relative;
    z-index: 3;
    }

    .products-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scroll-snap-type: x mandatory;
    align-items: stretch;
    height: 100%;
    }
    .products-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
    }
    .product-card-wrapper {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: start;
    }

    .product-card {
    border: none;
    border-radius: 1.2rem;
    background-color: var(--card-gray);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 1.5rem;
    }
    .product-card:hover { 
    transform: translateY(-5px); 
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    .product-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: contain; 
    transition: transform 0.6s ease; 
    margin-bottom: 1.5rem; 
    mix-blend-mode: multiply; 
    }
    .product-card:hover img { transform: scale(1.05); }

    /* Modern Premium Tonal Badges (No longer absolute to prevent overlapping) */
    .product-badge { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.65rem; 
    font-weight: 800; 
    padding: 0.35rem 0.65rem; 
    border-radius: 6px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 0.6rem;
    width: fit-content;
    }
    .product-badge.bg-primary { background-color: rgba(3, 78, 162, 0.08) !important; color: var(--brand-primary) !important; border: 1px solid rgba(3, 78, 162, 0.2); }
    .product-badge.badge-vip { background-color: rgba(212, 175, 55, 0.12) !important; color: #b8911b !important; border: 1px solid rgba(212, 175, 55, 0.3); }
    .product-badge.bg-dark { background-color: rgba(0, 0, 0, 0.05) !important; color: var(--brand-dark) !important; border: 1px solid rgba(0, 0, 0, 0.1); }
    .product-badge.bg-danger { background-color: rgba(220, 53, 69, 0.08) !important; color: #dc3545 !important; border: 1px solid rgba(220, 53, 69, 0.2); }

    .product-card-body { padding: 0; text-align: center; display: flex; flex-direction: column; align-items: center; flex-grow: 1; width: 100%; }
    .product-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    color: var(--brand-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    .price-container { margin-top: auto; }
    .product-price { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); transition: color 0.3s; }
    .product-save-text { 
    color: var(--brand-primary); 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-top: 0.2rem;
    transition: opacity 0.3s ease;
    }

    /* Highlight Grid Cards (Clean Design) */
    .highlight-grid-card {
    border-radius: 1.2rem;
    background-color: var(--bg-gray);
    padding: 1.5rem 1rem 1.5rem 1rem;
    text-align: center;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease;
    }
    .highlight-grid-card:hover {
    background-color: #e9ecef;
    }
    .highlight-grid-card .product-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    z-index: 2;
    color: var(--brand-dark);
    }
    .highlight-grid-card img {
    height: 110px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: auto;
    margin-bottom: auto;
    mix-blend-mode: multiply;
    }
    .highlight-grid-card:hover img {
    transform: scale(1.08) translateY(-10px);
    }
    .highlight-hover-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: var(--brand-dark);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 3;
    border: none;
    }
    .highlight-grid-card:hover .highlight-hover-btn {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    }

    /* Adjust badge inside highlight grid */
    .highlight-grid-card .product-badge {
    margin-bottom: 0.8rem;
    }

    /* Showroom Cards */
    .showroom-card {
    background-color: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    }
    .showroom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    .showroom-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-gray);
    }
    .showroom-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    }
    .showroom-card:hover .showroom-card-img img {
    transform: scale(1.06);
    }
    .showroom-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    }
    .showroom-card-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    color: var(--brand-dark);
    margin-bottom: 0.9rem;
    }
    .showroom-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    }
    .showroom-card-meta i {
    color: var(--brand-primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
    }
    .showroom-card-btn {
    margin-top: 1rem;
    align-self: flex-start;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    }

    /* Category / Product List Banner */
    .category-banner-container {
    /* border-radius: 1.25rem; */
    overflow: hidden;
    background-color: var(--bg-gray);
    aspect-ratio: 5 / 2;
    position: relative;
    background-image: linear-gradient(90deg, var(--bg-gray) 0%, #ececec 50%, var(--bg-gray) 100%);
    background-size: 200% 100%;
    animation: bannerShimmer 1.4s ease-in-out infinite;
    }
    .category-banner-container.banner-loaded {
    animation: none;
    background-image: none;
    }
    .category-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
    /* Multi-image banner carousel: fill the same fixed-ratio box as a single banner image */
    .category-banner-container .carousel,
    .category-banner-container .carousel-inner,
    .category-banner-container .carousel-item {
    height: 100%;
    }
    /* Indicators styled like the hero carousel's: pill-shaped bars with an animated progress fill */
    .category-banner-container .carousel-indicators {
    margin-bottom: 1rem;
    gap: 12px;
    z-index: 2;
    }
    .category-banner-container .carousel-indicators button {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    opacity: 1;
    }
    .category-banner-container .carousel-indicators button.active {
    width: 80px;
    background-color: rgba(255, 255, 255, 0.25);
    }
    .category-banner-container .carousel-indicators button.active::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 100%;
    background-color: #ffffff;
    transform-origin: left;
    animation: heroIndicatorProgress 5s linear forwards; /* Syncs with the carousel's 5s interval in product-list.html */
    }
    @media (max-width: 767px) {
    .category-banner-container {
    aspect-ratio: auto;
    }
    .category-banner-container:not(.banner-loaded) {
    aspect-ratio: 5 / 2;
    }
    .category-banner-img {
    height: auto;
    object-fit: unset;
    }
    }
    @keyframes bannerShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
    }

    /* Manual Search Box */
    .manual-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 480px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 0.9rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .manual-search-box:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(3, 78, 162, 0.14);
    }
    .manual-search-box i.bi-search {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    }
    .manual-search-box input {
    flex-grow: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--brand-dark);
    }
    .manual-search-box input::placeholder { color: #aaa; }
    .manual-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #888;
    font-size: 0.65rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    }
    .manual-search-clear:hover { background-color: #e0e0e0; color: #333; }

    /* Manual Search Results Grid */
    .manual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    }
    @media (max-width: 767px) {
    .manual-grid { grid-template-columns: 1fr; }
    }
    .manual-grid-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid #eaeaea;
    }
    .manual-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.3rem;
    }
    .manual-item-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    }
    .manual-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    }
    .manual-download-link {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    }
    .manual-download-link:hover {
    text-decoration: underline;
    }

    /* Scroll Controls */
    .nav-arrow-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #e0e0e0; background: var(--brand-light);
    color: var(--brand-dark); font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    flex-shrink: 0;
    }
    .nav-arrow-btn:hover { background: #f8f9fa; border-color: #ccc; }
    .nav-arrow-btn:active { transform: scale(0.95); }

    .progress-bar-wrapper {
    height: 2px; background: #e0e0e0;
    position: relative; overflow: hidden;
    }
    .progress-bar-fill {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--brand-dark); width: 0%;
    transition: width 0.15s ease-out;
    }

    /* News & Events Section */
    .news-section { background-color: var(--brand-light); padding: 4rem 0 2rem 0; }
    .news-detail-section { background-color: var(--bg-gray) }
    .news-card { border: none; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: transform 0.4s ease, box-shadow 0.4s ease; height: 100%; background: var(--brand-light); }
    .news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); cursor: pointer; }
    .news-card img { height: 220px; object-fit: cover; }
    .news-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
    .news-category { font-size: 0.75rem; font-weight: 800; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 1px; }
    .news-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
    .news-card .card-title { font-weight: 800; font-size: 1.25rem; line-height: 1.4; margin-bottom: 1rem; }

    /* Premium Video Guide Styles */
    .video-play-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background: rgba(255,255,255,0.85); backdrop-filter: blur(5px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--brand-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2; pointer-events: none;
    }
    .news-card:hover .video-play-overlay { transform: translate(-50%, -50%) scale(1.15); }

    /* Feature Video Thumbnail Interactive Style */
    .video-thumb-container { cursor: pointer; }
    .video-thumb-container img { transition: transform 0.5s ease; opacity: 0.9; }
    .video-thumb-container:hover img { transform: scale(1.05); opacity: 1; }
    .video-thumb-container .play-btn-large {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80px; height: 80px; background: rgba(255,255,255,0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--brand-dark); box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2; pointer-events: none;
    }
    .video-thumb-container:hover .play-btn-large { transform: translate(-50%, -50%) scale(1.1); color: var(--brand-primary); }

    .premium-article-header { padding: 3rem 0 1rem 0; background-color: var(--brand-light); }
    .premium-article-title { font-size: 3rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 1.5rem; color: var(--brand-dark); }
    .premium-video-container { 
    border-radius: 1.5rem; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.15); 
    margin-bottom: 4rem; background: #000; aspect-ratio: 16/9; position: relative; 
    border: 1px solid rgba(0,0,0,0.05);
    }
    .premium-video-container iframe { width: 100%; height: 100%; border: none; position: absolute; top: 0; left: 0; }
    .article-prose { font-size: 1.15rem; line-height: 1.8; color: #333; margin-bottom: 5rem; }
    .article-prose h3 { font-weight: 800; margin-top: 3rem; margin-bottom: 1.2rem; font-size: 1.8rem; color: var(--brand-dark); letter-spacing: -0.5px; }
    .article-prose blockquote { border-left: 4px solid var(--brand-primary); padding-left: 1.5rem; font-size: 1.4rem; font-style: italic; color: #555; margin: 2.5rem 0; }
    .article-prose p { margin-bottom: 1.5rem; }

    /* Footer */
    .footer { background-color: #ffffff; color: #000000; padding: 4rem 0 2rem 0; font-size: 0.85rem; border-top: 1px solid #eaeaea; }
    .footer h5 { font-weight: 800; margin-bottom: 1.2rem; font-size: 1rem; color: #000000; }
    .footer-links { list-style: none; padding: 0; margin: 0; }
    .footer-links li { margin-bottom: 0.6rem; }
    .footer-links a { color: #555555; transition: color 0.2s; text-decoration: none; display: inline-flex; align-items: center; }
    .footer-links a:hover { color: #000000; text-decoration: underline; }
    .footer-links i { font-size: 0.75rem; margin-left: 5px; }
    .social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background-color: transparent; color: #000000; font-size: 1.3rem; margin-left: 0.8rem; transition: transform 0.3s, color 0.3s; }
    .social-icons a:hover { transform: translateY(-3px); color: var(--brand-primary); }
    .footer-bottom-links a { color: #000000; text-decoration: none; }
    .footer-bottom-links a:hover { text-decoration: underline; }
    .footer-bottom { color: #555555; }

    /* Interactivity */
    .live-chat-btn { position: fixed; bottom: 40px; right: 40px; width: 65px; height: 65px; background-color: #229ED9; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 10px 15px rgba(34, 158, 217, 0.4); cursor: pointer; z-index: 1030; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .live-chat-btn:hover { transform: scale(1.1) rotate(-5deg); background-color: #1c88ba; }
    .notification-dot { position: absolute; top: 0; right: 0; width: 15px; height: 15px; background-color: #ff3b30; border-radius: 50%; border: 2px solid white; animation: pulse 2s infinite; }

    @keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

    /* Search Overlay */
    .search-overlay { 
    position: fixed; 
    top: -110%; 
    left: 0; 
    width: 100%; 
    height: 100vh; /* Fallback for browsers that don't support dvh */
    height: 100dvh; 
    background-color: rgb(255, 255, 255); 
    z-index: 1040; 
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    padding-top: 100px; 
    backdrop-filter: blur(5px); 
    display: flex; 
    flex-direction: column; 
    }
    .search-overlay.active { top: 0; }
    .search-header { border-bottom: 1px solid #e0e0e0; padding-bottom: 1.5rem; margin-bottom: 1.5rem; flex-shrink: 0; }
    .search-input { width: 100%; border: none; font-size: 2.5rem; font-weight: 300; background: transparent; outline: none; color: #333; }
    .search-input::placeholder { color: #aaa; font-weight: 300; }
    .close-search { cursor: pointer; color: #555; transition: color 0.3s; }
    .close-search:hover { color: var(--brand-dark); }
    .clear-search-text { font-size: 0.9rem; font-weight: 700; color: #333; cursor: pointer; text-decoration: underline; transition: color 0.2s; white-space: nowrap; }
    .clear-search-text:hover { color: var(--brand-primary); }

    /* Search Sort/Filter Controls */
    .search-control-select {
    cursor: pointer;
    background-color: #f4f4f4;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1rem 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--brand-dark);
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 10px;
    padding-right: 2.5rem;
    transition: background-color 0.2s;
    }
    .search-control-select:hover { background-color: #e9ecef; }

    .search-suggestions-wrapper { overflow-y: auto; overflow-x: hidden; padding-bottom: 80px; flex-grow: 1; }
    .search-section-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-bottom: 1.5rem; }
    .recent-search-item { font-size: 1rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 1.2rem; cursor: pointer; display: block; transition: color 0.2s; }
    .recent-search-item:hover { color: var(--brand-primary); text-decoration: none; }
    .suggested-search-item { font-size: 0.95rem; color: #333; margin-bottom: 1rem; cursor: pointer; display: block; line-height: 1.4; transition: color 0.2s; font-weight: 400; }
    .suggested-search-item:hover { color: var(--brand-primary); }
    .suggested-search-item strong { font-weight: 800; color: var(--brand-dark); }
    .rec-product-card { background: #f8f9fa; border-radius: 12px; padding: 20px 15px; text-align: left; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; height: 100%; }
    .rec-product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.05); }
    .rec-product-img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 1.5rem; mix-blend-mode: multiply; }
    .rec-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    .rec-product-price { font-size: 0.95rem; font-weight: 500; color: #444; }

    /* === Premium Product Detail Specifics === */
    .product-detail-section { padding-top: 120px; padding-bottom: 80px; min-height: 80vh; background-color: var(--brand-light); }
    .product-gallery-container { position: sticky; top: 120px; }
    .main-img-box { border-radius: 1.5rem; background-color: var(--bg-gray); padding: 3rem; display: flex; align-items: center; justify-content: center; min-height: 450px; margin-bottom: 1rem; position: relative; overflow: hidden; }
    .main-img-box img { max-height: 400px; object-fit: contain; mix-blend-mode: multiply; transition: opacity 0.25s ease; }
    .main-img-box.zoom-active img.blur-up.loaded { opacity: 0; }
    .zoom-lens {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 220%;
    mix-blend-mode: multiply;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border-radius: inherit;
    }
    .main-img-box.zoom-active .zoom-lens { opacity: 1; }
    .thumb-grid { display: flex; gap: 1rem; justify-content: center; }
    .thumb-btn { width: 80px; height: 80px; border-radius: 1rem; background-color: var(--bg-gray); border: 2px solid transparent; padding: 0.5rem; cursor: pointer; transition: all 0.2s ease; }
    .thumb-btn.active { border-color: var(--brand-primary); background-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .thumb-btn:hover:not(.active) { border-color: #ddd; }
    .thumb-btn img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

    .variant-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #ddd; cursor: pointer; transition: all 0.2s; display: inline-block; }
    .variant-swatch.active { outline: 2px solid var(--brand-dark); transform: scale(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .variant-btn { border: 1px solid #ddd; background: transparent; padding: 0.8rem 1.2rem; border-radius: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand-dark); }
    .variant-btn.active { border-color: var(--brand-dark); background: var(--brand-dark); color: white; }
    .variant-btn.active span { color: rgba(255,255,255,0.8); }
    .variant-btn span { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; margin-top: 0.2rem; transition: color 0.2s; }

    /* Product Detail Tabs */
    .premium-tabs-wrapper { position: sticky; top: 80px; z-index: 1020; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eaeaea; margin-bottom: 3rem; }
    .premium-tabs { display: flex; list-style: none; padding: 0; margin: 0; overflow-x: auto; scrollbar-width: none; }
    .premium-tabs::-webkit-scrollbar { display: none; }
    .premium-tabs li { margin-right: 2.5rem; }
    .premium-tabs .nav-link { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); padding: 1.2rem 0; border: none; background: transparent; border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.3s; }
    .premium-tabs .nav-link:hover { color: var(--brand-dark); }
    .premium-tabs .nav-link.active { color: var(--brand-dark); border-bottom-color: var(--brand-dark); }

    /* Tab Contents – Feature Blocks */
    .feature-block {
        border-radius: 1.5rem;
        background: var(--bg-gray);
        overflow: hidden;
        margin-bottom: 2rem;
        display: grid;
        grid-template-columns: 1fr;
        transition: box-shadow 0.35s ease;
    }
    .feature-block:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.06); }
    @media (min-width: 992px) {
        .feature-block { grid-template-columns: 3fr 2fr; }
        .feature-block.reverse { grid-template-columns: 2fr 3fr; }
        .feature-block.reverse .feature-text { order: 2; }
        .feature-block.reverse .feature-img-box { order: 1; }
    }

    .feature-text {
        padding: 3rem 3.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.6rem;
    }
    .feature-text h3 {
        font-weight: 800;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: 0.4rem;
        letter-spacing: -0.5px;
        line-height: 1.15;
    }
    .feature-text p {
        font-size: 1.05rem;
        line-height: 1.75;
        color: var(--text-muted);
        margin-bottom: 0;
    }

    .feature-img-box {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 2rem;
    }
    .feature-media-fill {
        max-width: 85%;
        max-height: 340px;
        height: auto;
        object-fit: contain;
        border-radius: 0.75rem;
        display: block;
    }
    .feature-video-thumb {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: var(--bg-gray);
        display: block;
        border-radius: 0.75rem;
    }
    .feature-video-poster { position: absolute; inset: 0; border-radius: 0.75rem; }
    .feature-text p.feature-disclaimer {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-style: italic;
        margin-top: 0.5rem;
        opacity: 0.8;
    }

    .feature-block--full {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .feature-block--full .feature-text { align-items: center; max-width: 680px; margin: 0 auto; }
    .feature-block--full .feature-img-box { padding: 0; }
    .feature-block--full .feature-media-fill { border-radius: 0 0 1.5rem 1.5rem; width: 100%; }

    .spec-grid { 
        background: #fff;
        border: 1px solid #f0f0f0;
        border-radius: 1.25rem;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    }
    .spec-row { 
        display: grid; 
        grid-template-columns: 1fr; 
        padding: 1.5rem 2rem; 
        border-bottom: 1px solid #f0f0f0; 
        align-items: start; 
        transition: background-color 0.2s ease;
    }
    .spec-row:last-child { border-bottom: none; }
    .spec-row:hover { background-color: #fafafa; }
    
    @media (min-width: 768px) { 
        .spec-row { grid-template-columns: 320px 1fr; gap: 3rem; } 
    }
    .spec-label { font-weight: 700; font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; }
    .spec-value { color: var(--brand-dark); font-size: 1.1rem; font-weight: 500; line-height: 1.6; }
    .spec-grid:empty { display: none; }

    /* Specifications Accordion (Expand all / per-section collapse) */
    .spec-expand-toggle { font-weight: 700; font-size: 0.95rem; color: var(--brand-dark); text-decoration: underline; cursor: pointer; white-space: nowrap; }
    .spec-expand-toggle:hover { color: var(--brand-primary); }

    .spec-accordion { border-top: 1px solid #eee; }
    .spec-accordion-item { border-bottom: 1px solid #eee; }

    .spec-accordion-header {
        width: 100%;
        background: none;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem 0;
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--brand-dark);
        text-align: left;
        cursor: pointer;
    }
    .spec-accordion-icon { flex-shrink: 0; font-size: 1.1rem; color: #888; transition: transform 0.3s ease; }
    .spec-accordion-icon.collapsed { transform: rotate(180deg); }

    .spec-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
    .spec-accordion-body.show { max-height: 3000px; }

    .spec-items-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem 2.5rem;
        padding-bottom: 1.75rem;
    }
    .spec-item-title { font-weight: 700; font-size: 0.95rem; color: var(--brand-dark); margin-bottom: 0.4rem; }
    .spec-item-value { color: var(--brand-primary); font-size: 0.95rem; font-weight: 500; line-height: 1.6; }

    .rating-summary { background: var(--bg-gray); border-radius: 1.5rem; padding: 3rem 2rem; text-align: center; margin-bottom: 3rem; }
    .rating-huge { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--brand-dark); letter-spacing: -2px; }
    .review-card { border: 1px solid #eaeaea; border-radius: 1.2rem; padding: 2rem; margin-bottom: 1.5rem; transition: box-shadow 0.3s; }
    .review-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.03); }

    .support-grid-card { background: var(--bg-gray); border-radius: 1.2rem; padding: 2.5rem 1.5rem; text-align: center; transition: all 0.3s; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: var(--brand-dark); border: 2px solid transparent; }
    .support-grid-card:hover { border-color: var(--brand-primary); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(3, 78, 162, 0.08); color: var(--brand-primary); }
    .support-grid-card i { font-size: 2.5rem; margin-bottom: 1.2rem; transition: transform 0.3s; }
    .support-grid-card:hover i { transform: scale(1.1); }
    .support-grid-card h5 { font-weight: 800; font-size: 1.2rem; margin-bottom: 0.5rem; }
    .support-grid-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

    .support-link-list { display: flex; flex-direction: column; gap: 0; border: 1.5px solid #eaeaea; border-radius: 1.2rem; overflow: hidden; }
    .support-link-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; text-decoration: none; color: var(--brand-dark); background: #fff; border-bottom: 1.5px solid #eaeaea; transition: background 0.18s, color 0.18s; }
    .support-link-item:last-child { border-bottom: none; }
    .support-link-item:hover { background: var(--bg-gray); color: var(--brand-primary); }
    .support-link-item:hover .support-link-arrow { transform: translateX(4px); color: var(--brand-primary); }
    .support-link-icon { flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 0.7rem; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--brand-dark); transition: background 0.18s, color 0.18s; }
    .support-link-item:hover .support-link-icon { background: #e8eeff; color: var(--brand-primary); }
    .support-link-body { flex: 1; min-width: 0; }
    .support-link-body h6 { font-weight: 700; font-size: 0.975rem; margin: 0 0 0.15rem; }
    .support-link-body p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
    .support-link-arrow { font-size: 1rem; color: #aaa; transition: transform 0.18s, color 0.18s; flex-shrink: 0; }

    /* === Product List / Category View === */
    .product-list-section { padding-top: 120px; padding-bottom: 80px; min-height: 100vh; background-color: var(--brand-light); }
    .filter-sidebar { position: sticky; top: 120px; padding-right: 1.5rem; }
    .filter-group { border-bottom: 1px solid #eaeaea; padding: 1.5rem 0; }
    .filter-group:last-child { border-bottom: none; }
    .filter-title { font-weight: 700; font-size: 1rem; color: var(--brand-dark); margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .filter-checkbox { display: flex; align-items: center; margin-bottom: 0.8rem; cursor: pointer; color: #555; font-size: 0.95rem; transition: color 0.2s; }
    .filter-checkbox:hover { color: var(--brand-dark); }
    .filter-checkbox input { margin-right: 10px; width: 18px; height: 18px; cursor: pointer; accent-color: var(--brand-primary); }
    .filter-checkbox span { flex-grow: 1; }
    .filter-count { color: #aaa; font-size: 0.85rem; }

    .list-sort-select { border: 1px solid #eaeaea; padding: 0.6rem 2.5rem 0.6rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; color: var(--brand-dark); appearance: none; background-color: #f8f9fa; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 10px; cursor: pointer; outline: none; }

    .list-grid-card { height: 100%; border: 1px solid #f0f0f0; border-radius: 1.2rem; background-color: white; overflow: hidden; transition: all 0.3s ease; position: relative; display: flex; flex-direction: column; cursor: pointer; padding: 1.5rem; }
    .list-grid-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); border-color: transparent; }
    .list-grid-card img { width: 100%; height: 200px; object-fit: contain; transition: transform 0.6s ease; margin-bottom: 1.5rem; mix-blend-mode: multiply; }
    .list-grid-card:hover img { transform: scale(1.05); }

    .pagination-modern { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; list-style: none; padding: 0; }
    .pagination-modern li a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #f4f4f4; color: var(--brand-dark); font-weight: 600; text-decoration: none; transition: all 0.2s; }
    .pagination-modern li a:hover { background: #e0e0e0; }
    .pagination-modern li.active a { background: var(--brand-primary); color: white; }

    .static-page { padding-top: 120px !important; padding-bottom: 80px; min-height: 55vh; background-color: var(--brand-light); }

    /* === Global Editorial/Static Page Styling === */
    .editorial-header {
        padding: 8rem 0 5rem 0;
        background: linear-gradient(to bottom, #ffffff, var(--bg-gray));
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .premium-article-title {
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.04em;
        color: var(--brand-dark);
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .article-prose {
        font-size: 1.15rem;
        line-height: 1.85;
        color: #2c2c2c;
    }

    .article-prose p { margin-bottom: 1.8rem; }

    .article-prose h2, .article-prose h3 {
        font-weight: 800;
        color: var(--brand-dark);
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        letter-spacing: -0.02em;
    }

    /* Modern Breadcrumb with Dot Separator */
    .breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
        content: "\2022" !important;
        color: #ccc !important;
        padding-right: 0.75rem;
        font-family: serif;
        font-weight: bold;
    }

    /* Premium Breadcrumb Styles */
    .premium-breadcrumb {
        background: transparent;
        padding: 0;
        margin: 0;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .premium-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        content: "\F285"; /* bootstrap-icons chevron-right */
        font-family: 'bootstrap-icons';
        font-size: 0.7rem;
        color: #ccc;
        padding: 0 0.8rem;
    }
    .premium-breadcrumb .breadcrumb-item a {
        color: var(--text-muted);
        font-weight: 600;
        transition: color 0.2s ease;
    }
    .premium-breadcrumb .breadcrumb-item a:hover { color: var(--brand-primary); text-decoration: none; }
    .premium-breadcrumb .breadcrumb-item.active { color: var(--brand-dark); font-weight: 700; }

    /* === Layout Overrides for Tablet (768px - 1199px) === */
    @media (min-width: 768px) and (max-width: 1199px) {
    .hero-carousel {
        margin-top: 60px; 
    }
    /* Fixed Specificity: Use the portrait (mobile) image for tablet portrait orientation */
    .hero-carousel .hero-background-image { background-image: var(--bg-mobile); }

    .hero-carousel, .hero-carousel .carousel-item { 
        height: calc(75vh - 60px); 
        min-height: 500px; 
    }
    }

    /* === Layout Overrides for Mobile (< 768px) === */
    @media (max-width: 767px) {
    /* Fixed Specificity: Apply mobile portrait image and mobile focal point */
    .hero-carousel .hero-background-image { 
        background-image: var(--bg-mobile); 
        background-position: var(--focal-mobile, center top);
    }

    /* Push hero below the solid white mobile navbar instead of hiding under it */
    .hero-carousel {
        margin-top: 60px;
    }

    /* Size the hero to the banner image's own aspect ratio so nothing is cropped */
    .hero-carousel, .hero-carousel .carousel-item {
        height: auto;
        min-height: 0; /* Override the 600px desktop floor, which would force cropping */
        aspect-ratio: var(--hero-aspect-ratio, 2480 / 3508);
    }

    /* The full, uncropped banner image already carries its own messaging on mobile */
    .hero-overlay-modern {
        display: none;
    }

    /* Adjust Hero Text Sizing */
    .hero-title { font-size: 2.8rem; letter-spacing: -1px; }
    .hero-subtitle { font-size: 1.25rem; }

    .modern-hero-btn {
        padding: 0.6rem 1.8rem !important;
        font-size: 0.85rem !important;
    }
    .hero-carousel .carousel-indicators {
        margin-bottom: 2rem;
        gap: 8px;
        bottom: 0;
        top: auto;
    }

    .section-title { font-size: 2rem; }
    .section-header { margin-top: 1.5rem; margin-bottom: 1.5rem; }
    .live-chat-btn { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.5rem; }

    .highlight-grid-card { min-height: 240px; }

    /* Main Promo Stack Fix */
    .main-promo-card { min-height: 450px; padding: 2rem; margin-bottom: 0.5rem; }

    /* Search Overlay Mobile Fixes */
    .search-overlay { padding-top: 90px; }
    .search-header { padding-bottom: 1rem; margin-bottom: 1rem; }
    .search-input { font-size: 1.5rem; }
    .search-section-title { margin-top: 0.5rem; }

    /* Horizontal Scroll for Search Products */
    .search-results-grid {
        display: flex !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        gap: 1rem !important; 
        padding-bottom: 1.5rem !important; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        margin: 0;
    }
    .search-results-grid::-webkit-scrollbar { display: none; }
    .search-results-grid > .col-6 { 
        flex: 0 0 160px !important; 
        width: 160px !important;
        padding-left: 0;
    }
    .rec-product-img { height: 110px; margin-bottom: 1rem; }
    .rec-product-card { padding: 15px; }

    /* Horizontal Scroll for Brand Showcase */
    .brand-showcase { 
        padding: 0rem 0 0.5rem 0; 
        height: 110px; 
        display: flex;
        align-items: center;
    }
    .brand-showcase .container { padding-right: 0; padding-left: 1rem; width: 100%; }
    .brand-showcase .row {
        display: flex !important; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        justify-content: flex-start !important;
        gap: 0.25rem !important; 
        padding-bottom: 0.5rem !important; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
        margin: 0;
    }
    .brand-showcase .row::-webkit-scrollbar { display: none; }
    .brand-showcase .col-6 { 
        flex: 0 0 85px !important; 
        width: 85px !important;
        padding: 0;
    }
    .brand-item { padding: 0.25rem; }
    .brand-icon-wrapper { width: 50px; height: 50px; font-size: 1.3rem; margin-bottom: 0.4rem; }
    .brand-name { font-size: 0.7rem; line-height: 1.1; white-space: normal; }

    /* Premium Detail Mobile Adjustments */
    .premium-article-title { font-size: 2.2rem; letter-spacing: -1px; }
    .premium-video-container { border-radius: 1rem; margin-bottom: 2rem; }

    /* Cut down the huge desktop padding so article content appears sooner */
    .editorial-header { padding: 5.5rem 0 2.5rem 0; }

    /* Minimal Product scroll adjustment for mobile */
    .product-card-wrapper { flex: 0 0 240px; width: 240px; }
    .product-card img { height: 140px; }

    .nav-arrow-btn { width: 36px; height: 36px; font-size: 1rem; }

    /* Mobile Adjustments for Premium Views */
    .product-detail-section, .product-list-section { padding-top: 80px; }
    .premium-tabs-wrapper { top: 60px; margin-bottom: 1.5rem; }
    .feature-text { padding: 2rem 1.5rem; }
    .feature-block { margin-bottom: 1.5rem; }
    .rating-huge { font-size: 3.5rem; }

    /* Product List Mobile Adjusments */
    .filter-sidebar { position: static; margin-bottom: 2rem; }
    }

    /* === Landscape Optimization (Mobile & Tablet) === */
    @media (max-width: 1199px) and (orientation: landscape) {
    .navbar-custom:not(.scrolled):not(.mega-menu-active) {
        background-color: transparent !important;
        background-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
        box-shadow: none !important;
    }
    .navbar-custom .navbar-brand,
    .navbar-custom .mobile-nav-icon {
        color: var(--brand-light) !important;
    }
    .navbar-custom.scrolled .navbar-brand,
    .navbar-custom.scrolled .mobile-nav-icon {
        color: var(--brand-dark) !important;
    }
    .hero-carousel .hero-background-image {
        /* Always use the landscape (desktop) image variant */
        background-image: var(--bg-desktop) !important;
    }
    .hero-carousel, .hero-carousel .carousel-item {
        /* Full height hero in landscape */
        margin-top: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 0 !important;
        max-height: none !important;
    }
    }

/* Image blur-up reveal — placed last to override component transitions */
img.blur-up {
    filter: blur(12px);
    opacity: 0;
    transform: scale(1.04);
    transition: filter 0.6s ease-out, opacity 0.4s ease-out, transform 0.6s ease-out;
}

img.blur-up.loaded {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}