/**
 * MhSys SaaS - E-commerce Storefront, Product Catalog & Checkout Stylesheet
 * Modificado: 2026-08-22 20:49:56
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('ecommerce-theme.css');
@import url('../components/product_cards.css');

/* ========================================================
   E-COMMERCE: STOREFRONT (BLOCK 1)
   ======================================================== */
:root {
    /* Cores Inspiradas no Modelo de Sucesso do Mercado Livre */
    --mhlivre-yellow: #FFE600;
    --mhlivre-yellow-hover: #F5DC00;
    --mhlivre-yellow-light: #FFF9D2;
    --mhlivre-blue: #2D3277;
    --mhlivre-blue-dark: #1B1E4B;
    --mhlivre-blue-hover: #373E94;
    --mhlivre-green-pix: #00A650;
    
    /* Superfícies & Layout Clean */
    --mhlivre-canvas: #EBEBEB;
    --mhlivre-card: #FFFFFF;
    --mhlivre-border: #E5E5E5;
    --mhlivre-text-main: #333333;
    --mhlivre-text-muted: #666666;

    --bg-color: #0b0f19;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --secondary: #a855f7;
    --secondary-rgb: 168, 85, 247;
    --primary-hover: rgba(var(--primary-rgb), 0.85);
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --accent-pink: var(--secondary);
    --accent-cyan: #06b6d4;
    --accent-cyan-rgb: 6, 182, 212;
    --accent-sunset: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 23, 42, 0.45);
    --card-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
    --premium-glow: 0 0 25px rgba(var(--primary-rgb), 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 90% 45%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
                      radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
    color: var(--text-color);
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    letter-spacing: -0.01em;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Micro-Animations Cascades */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item-col {
    animation: fadeUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-item-col:nth-child(1) { animation-delay: 0.05s; }
.product-item-col:nth-child(2) { animation-delay: 0.1s; }
.product-item-col:nth-child(3) { animation-delay: 0.15s; }
.product-item-col:nth-child(4) { animation-delay: 0.2s; }
.product-item-col:nth-child(5) { animation-delay: 0.25s; }
.product-item-col:nth-child(6) { animation-delay: 0.3s; }

        /* Cart Bounce Keyframes */
        @keyframes cartBounce {
            0% { transform: scale(1); }
            20% { transform: scale(1.3) rotate(-10deg); }
            45% { transform: scale(0.9) rotate(8deg); }
            70% { transform: scale(1.15) rotate(-4deg); }
            85% { transform: scale(0.95) rotate(2deg); }
            100% { transform: scale(1) rotate(0); }
        }

        .animate-cart-bounce {
            animation: cartBounce 0.75s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        }

        @keyframes badgePulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.4); }
            100% { transform: scale(1); }
        }
        .animate-badge-pulse {
            animation: badgePulse 0.4s ease-out;
        }

        /* Navbar Styling */
        .navbar-premium {
            background: rgba(11, 15, 25, 0.75) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            transition: var(--transition-smooth);
        }

        .navbar-premium.scrolled {
            box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
            background: rgba(11, 15, 25, 0.95) !important;
        }

        .navbar-brand span {
            background: linear-gradient(90deg, #fff, var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
        }

        .navbar-brand-icon {
            width: 42px;
            height: 42px;
            background: var(--primary-gradient);
            border-radius: 12px;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 6px 18px -3px rgba(var(--primary-rgb), 0.4);
            transition: var(--transition-smooth);
        }

        .navbar-premium:hover .navbar-brand-icon {
            transform: rotate(5deg) scale(1.05);
        }

        #navbarCartBtn {
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid var(--border) !important;
            color: #fff !important;
            transition: var(--transition-smooth);
        }

        #navbarCartBtn:hover {
            border-color: var(--primary) !important;
            box-shadow: var(--premium-glow) !important;
            transform: translateY(-2px);
        }

        .navbar-tel-btn {
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid var(--border) !important;
            color: #fff !important;
            transition: var(--transition-smooth);
            text-decoration: none;
        }

        .navbar-tel-btn i {
            color: var(--primary) !important;
        }

        .navbar-tel-btn:hover {
            border-color: var(--primary) !important;
            box-shadow: var(--premium-glow) !important;
            transform: translateY(-2px);
            color: #fff !important;
        }

        @media (max-width: 767.98px) {
            /* Reduz paddings e força tamanho quadrado nos botões de ação da navbar mobile */
            #navbarCartBtn, #navbarTelBtn, #storeThemeBtn {
                padding: 0 !important;
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 50% !important; /* Força geometria perfeitamente circular em mobile */
            }
            
            /* Oculta o texto descritivo "Meu Carrinho" em mobile para preservar área útil de borda */
            #navbarCartBtn span.d-none.d-sm-inline {
                display: none !important;
            }
            
            /* Reposiciona o contador absoluto de itens do carrinho para o topo do círculo */
            #navbarCartBtn #cartCountBadge {
                top: -4px !important;
                left: 75% !important;
                transform: translate(-50%, 0) !important;
                font-size: 0.62rem !important;
                padding: 3px 6px !important;
            }
            
            /* Oculta o texto do número de telefone em mobile, mantendo estritamente o ícone clicável */
            #navbarTelBtn span.font-monospace {
                display: none !important;
            }
            
            /* Enxuga a logo para não colidir com os três botões circulares alinhados */
            .navbar-brand {
                font-size: 1.15rem !important;
            }
            .navbar-brand-icon {
                width: 34px !important;
                height: 34px !important;
            }
        }

        /* ========================================================
           HERO CAROUSEL & BANNER (STACKING CONTEXT 4 CAMADAS)
           ======================================================== */
        .hero-carousel,
        .storefront-hero-container {
            position: relative !important;
            width: 100%;
            overflow: hidden !important;
            isolation: isolate !important; /* Cria novo Stacking Context estrito */
            background-color: #0b0f19;
        }

        /* Modos de Altura */
        .hero-carousel.hero-height-normal,
        .storefront-hero-container.hero-height-normal {
            height: 480px;
            max-height: 65vh;
            min-height: 380px;
        }
        @media (max-width: 768px) {
            .hero-carousel.hero-height-normal,
            .storefront-hero-container.hero-height-normal {
                height: 360px;
                min-height: 290px;
            }
        }
        .hero-carousel.hero-height-fullscreen,
        .storefront-hero-container.hero-height-fullscreen {
            height: 100vh !important;
            height: 100dvh !important;
            max-height: none !important;
            min-height: 100vh !important;
        }
        .hero-carousel .carousel-inner {
            position: relative;
            width: 100%;
            height: 100%;
            z-index: 1;
        }
        .hero-carousel .carousel-item {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        /* CAMADA 1: Foto do Banner (Fundo) */
        .hero-carousel .hero-bg-image-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1 !important;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            overflow: hidden;
        }
        .hero-carousel .hero-bg-image-layer picture {
            display: block;
            width: 100%;
            height: 100%;
        }
        .hero-carousel .hero-bg-image-layer .hero-slide-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
            transition: transform 7s ease-out;
            transform: scale(1);
        }
        .hero-carousel .carousel-item.active .hero-bg-image-layer,
        .hero-carousel .carousel-item.active .hero-bg-image-layer .hero-slide-image {
            transform: scale(1.04);
        }

        /* Modos de Enquadramento */
        .hero-carousel .hero-bg-image-layer.fit-cover-center,
        .hero-carousel .hero-bg-image-layer.fit-cover-center .hero-slide-image,
        .fit-cover-center {
            background-size: cover !important;
            background-position: center center !important;
            object-fit: cover !important;
            object-position: center center !important;
        }
        .hero-carousel .hero-bg-image-layer.fit-contain,
        .hero-carousel .hero-bg-image-layer.fit-contain .hero-slide-image,
        .fit-contain {
            background-size: contain !important;
            background-position: center center !important;
            object-fit: contain !important;
            object-position: center center !important;
        }
        .hero-carousel .hero-bg-image-layer.fit-top-center,
        .hero-carousel .hero-bg-image-layer.fit-top-center .hero-slide-image,
        .fit-top-center {
            background-size: cover !important;
            background-position: center top !important;
            object-fit: cover !important;
            object-position: center top !important;
        }
        .hero-carousel .hero-bg-image-layer.fit-bottom-center,
        .hero-carousel .hero-bg-image-layer.fit-bottom-center .hero-slide-image,
        .fit-bottom-center {
            background-size: cover !important;
            background-position: center bottom !important;
            object-fit: cover !important;
            object-position: center bottom !important;
        }

        /* CAMADA 2: Máscara de Vinheta / Contraste (Sobre a foto, sob o texto) */
        .hero-carousel .hero-overlay,
        .hero-overlay-mask {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 2 !important;
            pointer-events: none !important;
            background: transparent;
        }

        /* CAMADA 3: Canvas Gráfico Interativo (Sobreposto à Foto e à Máscara, mas sob os textos) */
        .hero-canvas-layer {
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100% !important;
            z-index: 10 !important;
            pointer-events: none !important;
            mix-blend-mode: normal;
        }

        /* CAMADA 4: Textos, Títulos e Botões de CTA (Z-INDEX MÁXIMO 20) */
        .hero-content-layer {
            position: relative;
            z-index: 1 !important;
            pointer-events: auto;
            width: 100%;
            height: 100%;
        }
        .hero-carousel .hero-caption,
        .hero-caption {
            position: absolute !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            z-index: 20 !important;
            text-align: center;
            color: #ffffff;
            width: 90%;
            max-width: 860px;
            padding: 28px 32px;
            background: transparent;
            pointer-events: auto;
        }
        .hero-carousel .hero-caption h2 {
            font-size: clamp(1.6rem, 3.2vw, 2.75rem);
            font-weight: 900;
            line-height: 1.2;
            color: #ffffff !important;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
            margin-bottom: 14px;
            letter-spacing: -0.5px;
        }
        .hero-carousel .hero-caption p {
            font-size: clamp(0.95rem, 1.4vw, 1.15rem);
            font-weight: 500;
            color: #ffffff !important;
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
            margin-bottom: 22px;
            line-height: 1.6;
        }
        .hero-carousel .hero-caption .btn-hero {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 32px;
            font-size: 1rem;
            font-weight: 600;
            border-radius: 50rem;
            background: var(--primary-gradient) !important;
            border: none !important;
            color: #ffffff !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }
        .hero-carousel .hero-caption .btn-hero:hover {
            transform: translateY(-2px) scale(1.03);
            box-shadow: 0 12px 30px rgba(var(--primary-rgb, 99, 102, 241), 0.45);
        }

        /* Hero Banner Section (Static) */
        .hero-banner {
            background: transparent;
            color: #fff;
            padding: 95px 0 120px 0;
            position: relative;
            overflow: hidden;
        }

        .hero-banner h1 {
            font-size: 3.8rem;
            font-weight: 900;
            background: linear-gradient(135deg, #ffffff 20%, var(--secondary) 60%, var(--primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -2px;
        }

        .hero-glow-1 {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.16) 0%, rgba(var(--primary-rgb), 0) 70%);
            top: -200px;
            right: -100px;
            pointer-events: none;
        }

        .hero-glow-2 {
            position: absolute;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.12) 0%, rgba(var(--secondary-rgb), 0) 70%);
            bottom: -200px;
            left: -100px;
            pointer-events: none;
        }

        /* Floating Search */
        .search-container {
            max-width: 720px;
            margin: -24px auto 0 auto;
            position: relative;
            z-index: 20;
            padding: 0 15px;
        }

        .search-container.search-no-banner {
            margin: 12px auto 0 auto;
        }

        @media (max-width: 767.98px) {
            .search-container {
                margin: -16px auto 0 auto;
                padding: 0 10px;
            }
            .search-container.search-no-banner {
                margin: 8px auto 0 auto;
            }
        }

        .search-wrapper {
            position: relative;
            background: rgba(15, 23, 42, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 30px;
            padding: 6px;
            box-shadow: var(--card-shadow), 0 0 30px rgba(0, 0, 0, 0.5);
            border: 1px solid var(--border);
            transition: var(--transition-smooth);
        }

        .search-wrapper:focus-within {
            box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.35);
            border-color: var(--primary);
        }

        .search-input {
            height: 50px;
            border: none !important;
            padding-left: 20px;
            font-size: 1.05rem;
            font-weight: 500;
            color: #fff !important;
            background: transparent !important;
            width: 100%;
        }

        .search-input::placeholder {
            color: #64748b;
        }

        .search-input:focus {
            outline: none;
            box-shadow: none;
        }

        .search-btn {
            background: var(--primary-gradient);
            border: none;
            color: #fff;
            border-radius: 25px;
            padding: 0 25px;
            height: 50px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
            transition: var(--transition-smooth);
        }

        .search-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.45);
        }

        /* Category Menu */
        .category-pill {
            cursor: pointer;
            padding: 11px 26px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.92rem;
            transition: var(--transition-smooth);
            border: 1px solid var(--border);
            background-color: rgba(255, 255, 255, 0.02);
            color: #94a3b8;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .category-pill:hover {
            border-color: var(--primary);
            color: #fff;
            background-color: rgba(var(--primary-rgb), 0.05);
            transform: translateY(-2px);
        }

        .category-pill.active {
            background: var(--primary-gradient);
            color: #fff;
            border-color: transparent;
            box-shadow: 0 8px 22px -5px rgba(var(--primary-rgb), 0.5);
        }

        /* Filters Card */
        .filter-card {
            background: var(--card-bg);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 28px;
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
        }

        #iconToggleFiltros, #iconToggleFiltrosMob {
            transition: transform 0.25s ease-in-out;
            display: inline-block;
        }
        .filter-row-additional, .filter-row-additional-mob {
            will-change: opacity;
        }

        .filter-card h2 {
            color: var(--text-color, #1e293b) !important;
        }

        [data-theme="dark"] .filter-card h2,
        .dark-theme .filter-card h2 {
            color: #f1f5f9 !important;
        }

        .filter-section-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.78rem;
            color: var(--primary) !important;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 14px;
        }

        .form-check-label {
            color: var(--text-muted, #64748b) !important;
            transition: var(--transition-smooth);
        }

        [data-theme="dark"] .form-check-label,
        .dark-theme .form-check-label {
            color: #94a3b8 !important;
        }

        .form-check:hover .form-check-label {
            color: var(--text-color, #1e293b) !important;
        }

        [data-theme="dark"] .form-check:hover .form-check-label,
        .dark-theme .form-check:hover .form-check-label {
            color: #ffffff !important;
        }

        .form-check-input {
            background-color: transparent !important;
            border: 1px solid rgba(148, 163, 184, 0.4) !important;
        }

        [data-theme="dark"] .form-check-input,
        .dark-theme .form-check-input {
            background-color: rgba(255, 255, 255, 0.03) !important;
            border-color: rgba(255, 255, 255, 0.18) !important;
        }

        .form-check-input:checked {
            background-color: var(--primary) !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.4) !important;
        }

        /* Product Cards Glassmorphic Refinements */
        .product-card {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
            cursor: pointer;
            text-decoration: none;
        }

        /* ── Design System: 4 Estilos de Cards Polimórficos ── */
        .product-card.card-style-glass {
            background: var(--card-bg, rgba(15, 23, 42, 0.45));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
            box-shadow: var(--card-shadow, 0 8px 32px rgba(0,0,0,0.12));
        }
        body.light-theme .product-card.card-style-glass {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(0, 0, 0, 0.06);
            box-shadow: 0 8px 24px rgba(0,0,0,0.06);
        }

        .product-card.card-style-minimalist {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px dashed rgba(255, 255, 255, 0.15) !important;
            box-shadow: none !important;
        }
        body.light-theme .product-card.card-style-minimalist {
            background: transparent !important;
            border: 1px dashed rgba(0, 0, 0, 0.12) !important;
            box-shadow: none !important;
        }

        .product-card.card-style-bordered {
            background: var(--card-bg, #0f172a);
            border: 2px solid var(--border, rgba(255, 255, 255, 0.2)) !important;
            box-shadow: none !important;
        }
        body.light-theme .product-card.card-style-bordered {
            background: #ffffff !important;
            border: 2px solid #e2e8f0 !important;
            box-shadow: none !important;
        }

        .product-card.card-style-shadow {
            background: var(--card-bg, #0f172a);
            border: 1px solid transparent !important;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
        }
        body.light-theme .product-card.card-style-shadow {
            background: #ffffff !important;
            border: 1px solid #f1f5f9 !important;
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
        }

        /* ── Design System: 4 Efeitos de Hover ── */
        .product-card.card-hover-zoom:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
            border-color: rgba(var(--primary-rgb), 0.35);
        }
        .product-card.card-hover-zoom:hover .product-img-primary {
            transform: scale(1.06);
        }

        .product-card.card-hover-swap_image:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
            border-color: rgba(var(--primary-rgb), 0.35);
        }
        .product-card.card-hover-swap_image .product-img-secondary {
            opacity: 0;
            transition: opacity 0.35s ease;
            pointer-events: none;
        }
        .product-card.card-hover-swap_image:hover .product-img-secondary {
            opacity: 1;
        }
        .product-card.card-hover-swap_image:hover .product-img-primary {
            opacity: 0.15;
        }

        .product-card.card-hover-elevate {
            transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
        }
        .product-card.card-hover-elevate:hover {
            transform: translateY(-8px);
            box-shadow: 0 22px 35px -5px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(var(--primary-rgb), 0.25);
            border-color: rgba(var(--primary-rgb), 0.45);
        }

        .product-card.card-hover-none:hover {
            transform: none !important;
            box-shadow: inherit !important;
        }

        /* ── Design System: 3 Proporções de Imagem (Aspect Ratios) ── */
        .product-img-container {
            position: relative;
            z-index: 2;
            pointer-events: none;
            width: 100%;
            aspect-ratio: 1 / 1;
            background-color: rgba(0, 0, 0, 0.02);
            overflow: hidden;
            border-bottom: 1px solid var(--border);
        }
        .product-img-container.aspect-1-1 {
            aspect-ratio: 1 / 1 !important;
        }
        .product-img-container.aspect-3-4 {
            aspect-ratio: 3 / 4 !important;
        }
        .product-img-container.aspect-16-9 {
            aspect-ratio: 16 / 9 !important;
        }

        .product-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease;
        }

        /* Badges */
        .badge-premium-destaque {
            position: absolute;
            top: 12px;
            left: 12px;
            background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
            color: #090d16;
            font-weight: 700;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 8px;
            z-index: 5;
            box-shadow: 0 4px 10px rgba(255, 165, 0, 0.25);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .badge-premium-promo {
            position: absolute;
            top: 12px;
            right: 12px;
            background: var(--accent-sunset);
            color: #fff;
            font-weight: 700;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 8px;
            z-index: 5;
            box-shadow: 0 4px 10px rgba(244, 63, 94, 0.25);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .badge-promocao-percentual {
            background: var(--primary-gradient);
            color: #fff;
            font-weight: 800;
            font-size: 0.72rem;
            padding: 4px 10px;
            border-radius: 8px;
            z-index: 5;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .badge-premium-novidade {
            position: absolute;
            top: 12px;
            left: 12px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff;
            font-weight: 700;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 8px;
            z-index: 5;
            box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
            text-transform: uppercase;
            letter-spacing: 0.03em;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: var(--transition-smooth);
        }

        .badge-premium-novidade.has-destaque {
            top: 40px;
        }

        /* Ajustes específicos para o modo lista horizontal */
        .products-display-grid.row-cols-1 .badge-premium-novidade,
        article.product-card.flex-row .badge-premium-novidade {
            top: 8px;
            left: 8px;
            font-size: 8px;
            padding: 3px 6px;
            border-radius: 6px;
        }
        .products-display-grid.row-cols-1 .badge-premium-novidade.has-destaque,
        article.product-card.flex-row .badge-premium-novidade.has-destaque {
            top: 30px;
        }

        /* Ajustes responsivos adicionais para mobile */
        @media (max-width: 767.98px) {
            .badge-premium-novidade {
                font-size: 0.6rem;
                padding: 3px 7px;
                border-radius: 6px;
                top: 8px;
                left: 8px;
            }
            .badge-premium-novidade.has-destaque {
                top: 32px;
            }
        }

        .product-card.card-promocao-ativa {
            border: 2.5px solid rgba(var(--primary-rgb), 0.45) !important;
            box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.15), var(--card-shadow) !important;
        }

        .product-info {
            padding: 16px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .product-cat {
            font-size: 0.7rem;
            color: var(--primary);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 6px;
        }

        .product-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            font-size: 1.05rem;
            color: var(--text-color);
            margin-bottom: 6px;
            line-height: 1.35;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 2.7em;
            max-height: 2.7em;
            min-height: 2.7em;
            word-break: break-word;
            transition: color 0.2s ease;
        }

        .product-card:hover .product-title {
            color: var(--primary);
        }

        .product-desc {
            font-size: 0.82rem;
            color: var(--text-muted);
            margin-bottom: 14px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 2.8em;
            max-height: 2.8em;
            min-height: 2.8em;
            word-break: break-word;
        }

        .product-action-row {
            margin-top: auto;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .price-box {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .price-old {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-decoration: line-through;
            margin-bottom: 1px;
        }

        .price-new {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--primary);
            text-shadow: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .btn-buy-premium {
            width: 38px;
            height: 38px;
            background: var(--primary-gradient);
            border: none;
            color: #fff;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
            transition: all 0.2s ease;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
        }

        .btn-buy-premium:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
        }

        /* 6 Column Layout Compact Optimizations (Desktop) */
        @media (min-width: 992px) {
            .col-lg-2 .product-card .product-info {
                padding: 12px;
            }
            .col-lg-2 .product-card .product-title {
                font-size: 0.9rem;
                line-height: 1.35;
                height: 2.7em;
                max-height: 2.7em;
                min-height: 2.7em;
            }
            .col-lg-2 .product-card .product-desc {
                font-size: 0.75rem;
                line-height: 1.4;
                height: 2.8em;
                max-height: 2.8em;
                min-height: 2.8em;
                margin-bottom: 10px;
            }
            .col-lg-2 .product-card .price-new {
                font-size: 1.1rem;
            }
            .col-lg-2 .product-card .btn-buy-premium {
                width: 32px;
                height: 32px;
                border-radius: 8px;
            }
            .col-lg-2 .product-card .btn-buy-premium i {
                font-size: 0.95rem !important;
            }
        }

        /* 2 Column Grid Layout Optimizations (Mobile) */
        @media (max-width: 767.98px) {
            /* Força o contêiner flexível a quebrar linhas sem gerar transbordo lateral */
            .products-display-grid.row {
                display: flex !important;
                flex-wrap: wrap !important;
                gap: 8px !important; /* Espaçamento cirúrgico de grade mobile */
                margin-left: 0 !important;
                margin-right: 0 !important;
                padding: 0 !important;
            }

            /* Intercepta e redefine as classes de colunas injetadas (.col-6 ou .col-12) */
            .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper.product-item-col {
                /* Caso o banco dite 2 colunas e não esteja em modo lista horizontal, crava calc(50% - metade_do_gap) */
                width: calc(50% - 4px) !important;
                max-width: calc(50% - 4px) !important;
                flex: 0 0 calc(50% - 4px) !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                margin-bottom: 4px !important;
                box-sizing: border-box !important;
            }
            .products-display-grid.row-cols-1 .card-product-premium-wrapper.product-item-col {
                width: 100% !important;
                max-width: 100% !important;
                flex: 0 0 100% !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                margin-bottom: 4px !important;
                box-sizing: border-box !important;
            }

            /* Calibração de densidade dos cartões no formato duplo */
            
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-card {
                    border-radius: 12px !important;
                }
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-img-container {
                    height: 125px !important; /* Nivelamento fixo de altura de foto contra o efeito escadinha */
                }
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-info {
                    padding: 10px !important;
                }
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-title {
                    font-size: 0.85rem !important;
                    line-height: 1.35 !important;
                    height: 2.7em !important;
                    max-height: 2.7em !important;
                    min-height: 2.7em !important;
                    margin-bottom: 4px !important;
                    display: -webkit-box !important;
                    -webkit-line-clamp: 2 !important;
                    line-clamp: 2 !important;
                    -webkit-box-orient: vertical !important;
                    overflow: hidden !important;
                    text-overflow: ellipsis !important;
                    word-break: break-word !important;
                }
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-desc {
                    display: none !important; /* Oculta a descrição longa em grid duplo mobile para manter o layout limpo */
                }
                .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .price-new {
                    font-size: 1rem !important;
                }
            
        }
        /* Custom Styles for List Mode (Horizontal Layout) */
        .products-display-grid.row-cols-1 .product-card {
            flex-direction: row !important;
            align-items: center !important;
            padding: 16px !important;
            gap: 20px !important;
            min-height: auto !important;
            border-radius: 16px !important;
        }

        .products-display-grid.row-cols-1 .product-card .product-img-container {
            width: 110px !important;
            height: 110px !important;
            aspect-ratio: 1 / 1 !important;
            flex-shrink: 0 !important;
            border-radius: 12px !important;
            border: 1px solid var(--border) !important;
        }

        .products-display-grid.row-cols-1 .product-card .flex-grow-1 {
            padding: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            min-width: 0 !important;
            flex-grow: 1 !important;
        }

        .products-display-grid.row-cols-1 .product-card .product-title {
            font-size: 1.1rem !important;
            min-height: auto !important;
            margin-bottom: 6px !important;
            white-space: normal !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }

        .products-display-grid.row-cols-1 .product-card .product-desc {
            font-size: 0.85rem !important;
            min-height: auto !important;
            margin-bottom: 12px !important;
            white-space: normal !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }

        .products-display-grid.row-cols-1 .product-card .product-action-row {
            border-top: none !important;
            padding-top: 0 !important;
            margin-top: 0 !important;
        }

        /* Mobile responsive adjustments for List Mode */
        @media (max-width: 576px) {
            .products-display-grid.row-cols-1 .product-card {
                padding: 12px !important;
                gap: 12px !important;
            }
            .products-display-grid.row-cols-1 .product-card .product-img-container {
                width: 85px !important;
                height: 85px !important;
            }
            .products-display-grid.row-cols-1 .product-card .product-title {
                font-size: 0.95rem !important;
            }
            .products-display-grid.row-cols-1 .product-card .product-desc {
                font-size: 0.78rem !important;
                margin-bottom: 8px !important;
            }
            .products-display-grid.row-cols-1 .product-card .price-new {
                font-size: 1.1rem !important;
            }
        }

        /* Sidebar template light mode visual enhancement */
        @media (min-width: 992px) {
            body.light-theme.template-2 #mainNavbar {
                background: #ffffff !important;
                border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
            }
        }

        /* Search highlights */
        mark.highlight-search {
            background: linear-gradient(120deg, rgba(var(--primary-rgb), 0.35) 0%, rgba(var(--secondary-rgb), 0.35) 100%);
            color: inherit;
            padding: 0 2px;
            border-radius: 4px;
            border-bottom: 2px solid rgba(var(--primary-rgb), 0.7);
        }

        /* ========================================================
           E-COMMERCE: UNIFIED PREMIUM TOAST (SEGUINDO CORES DO INQUILINO)
           ======================================================== */
        .toast-premium,
        #mhsysGlobalToast.toast-premium {
            position: fixed !important;
            bottom: 24px !important;
            right: 24px !important;
            left: auto !important;
            transform: none !important;
            background: rgba(15, 23, 42, 0.94) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border: 1px solid rgba(var(--primary-rgb, 16, 185, 129), 0.45) !important;
            color: #ffffff !important;
            padding: 14px 24px !important;
            border-radius: 14px !important;
            box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(var(--primary-rgb, 16, 185, 129), 0.28) !important;
            z-index: 100000 !important;
            font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
            font-weight: 600 !important;
            font-size: 0.95rem !important;
            display: none;
            align-items: center !important;
            gap: 12px !important;
            animation: toastBounceIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden !important;
            max-width: calc(100vw - 32px) !important;
            pointer-events: auto !important;
        }

        .toast-premium i,
        #mhsysGlobalToast.toast-premium i {
            font-size: 1.35rem !important;
            color: var(--primary, #10b981) !important;
            flex-shrink: 0 !important;
            filter: drop-shadow(0 0 6px rgba(var(--primary-rgb, 16, 185, 129), 0.45));
        }

        .toast-premium span,
        #mhsysGlobalToast.toast-premium span {
            color: #ffffff !important;
            line-height: 1.35 !important;
            font-size: 0.92rem !important;
            letter-spacing: -0.01em !important;
        }

        .toast-premium::after,
        #mhsysGlobalToast.toast-premium::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            width: 100%;
            background: var(--primary-gradient, var(--primary, #10b981)) !important;
            animation: toastProgress 3.2s linear forwards;
        }

        /* Status Variants */
        .toast-premium.toast-error,
        #mhsysGlobalToast.toast-premium.toast-error {
            border-color: rgba(239, 68, 68, 0.5) !important;
            box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(239, 68, 68, 0.3) !important;
        }
        .toast-premium.toast-error i,
        #mhsysGlobalToast.toast-premium.toast-error i {
            color: #ef4444 !important;
            filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.45));
        }
        .toast-premium.toast-error::after,
        #mhsysGlobalToast.toast-premium.toast-error::after {
            background: #ef4444 !important;
        }

        .toast-premium.toast-warning,
        #mhsysGlobalToast.toast-premium.toast-warning {
            border-color: rgba(245, 158, 11, 0.5) !important;
            box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(245, 158, 11, 0.3) !important;
        }
        .toast-premium.toast-warning i,
        #mhsysGlobalToast.toast-premium.toast-warning i {
            color: #f59e0b !important;
            filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
        }
        .toast-premium.toast-warning::after,
        #mhsysGlobalToast.toast-premium.toast-warning::after {
            background: #f59e0b !important;
        }

        .toast-premium.toast-info,
        #mhsysGlobalToast.toast-premium.toast-info {
            border-color: rgba(59, 130, 246, 0.5) !important;
            box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 4px 18px rgba(59, 130, 246, 0.3) !important;
        }
        .toast-premium.toast-info i,
        #mhsysGlobalToast.toast-premium.toast-info i {
            color: #3b82f6 !important;
            filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
        }
        .toast-premium.toast-info::after,
        #mhsysGlobalToast.toast-premium.toast-info::after {
            background: #3b82f6 !important;
        }

        @keyframes toastProgress {
            from { width: 100%; }
            to { width: 0%; }
        }

        @keyframes toastBounceIn {
            0% { transform: translateY(60px) scale(0.9); opacity: 0; }
            70% { transform: translateY(-4px) scale(1.02); opacity: 1; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }

        @media (max-width: 576px) {
            .toast-premium,
            #mhsysGlobalToast.toast-premium {
                bottom: 20px !important;
                right: 16px !important;
                left: 16px !important;
                max-width: calc(100% - 32px) !important;
                justify-content: center !important;
                padding: 12px 18px !important;
                font-size: 0.88rem !important;
            }
        }

        /* Modal Product Premium styling */
        .modal-premium {
            background: rgba(13, 19, 33, 0.88) !important;
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-radius: 28px;
            border: 1px solid var(--border) !important;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
        }

        .modal-premium h3 {
            color: #fff !important;
        }

        .modal-premium p {
            color: #94a3b8 !important;
        }

        .modal-premium label, .modal-premium span {
            color: #cbd5e1 !important;
        }

        .modal-premium .btn-close,
        .quickview-close-btn {
            filter: invert(1) grayscale(100%) brightness(200%);
            position: absolute !important;
            top: 18px !important;
            right: 18px !important;
            z-index: 1060 !important;
            min-width: 38px !important;
            min-height: 38px !important;
            padding: 10px !important;
            cursor: pointer !important;
            pointer-events: auto !important;
            touch-action: manipulation !important;
            opacity: 0.85 !important;
            transition: opacity 0.2s ease, transform 0.2s ease !important;
        }
        .modal-premium .btn-close:hover,
        .quickview-close-btn:hover {
            opacity: 1 !important;
            transform: scale(1.1) !important;
        }

        .modal-product-img {
            max-width: 100%;
            max-height: 380px;
            width: auto;
            height: auto;
            border-radius: 20px;
            object-fit: contain;
            background-color: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border);
            box-shadow: var(--card-shadow);
            display: block;
            margin: 0 auto;
        }

        footer {
            background: rgba(9, 13, 22, 0.8) !important;
            border-top: 1px solid var(--border) !important;
        }

        footer h2 {
            color: #fff !important;
        }

        @media (max-width: 991.98px) {
            .hero-banner {
                padding: 60px 0 80px 0;
            }
            .hero-banner h1 {
                font-size: 2.8rem;
            }
        }

        /* Light Theme Variable Overrides & Refinements */
        body.light-theme {
            --bg-color: #f8fafc;
            --text-color: #0f172a;
            --text-muted: #64748b;
            --border: rgba(15, 23, 42, 0.08);
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08);
        }

        body.light-theme {
            background-color: var(--bg-color);
            background-image: radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), 0.04) 0%, transparent 40%),
                              radial-gradient(circle at 90% 45%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 40%),
                              radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 45%);
        }

        body.light-theme .navbar-premium {
            background: var(--navbar-bg, rgba(255, 255, 255, 0.94)) !important;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.08));
        }

        body.light-theme .navbar-premium.scrolled {
            background: rgba(var(--navbar-bg-rgb, 255, 255, 255), var(--navbar-scrolled-opacity, 0.98)) !important;
            box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
        }

        body.light-theme .navbar-premium .nav-link {
            color: #1e293b !important;
            font-weight: 600 !important;
            font-size: 0.88rem !important;
        }

        body.light-theme .navbar-premium .nav-link:hover {
            color: var(--primary) !important;
        }

        body.light-theme .navbar-brand span {
            background: linear-gradient(90deg, #0f172a, var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body.light-theme .hero-banner h1,
        body.light-theme .hero-carousel h2,
        body.light-theme .hero-carousel h1 {
            color: #ffffff !important;
            background: none !important;
            -webkit-text-fill-color: #ffffff !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 0, 0, 0.8) !important;
        }

        body.light-theme .hero-banner p,
        body.light-theme .hero-carousel p {
            color: #ffffff !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 3px 14px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.8) !important;
        }

        body.light-theme .search-wrapper {
            background: #ffffff !important;
            border: 1px solid rgba(15, 23, 42, 0.12) !important;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
        }

        body.light-theme .search-input {
            color: #0f172a !important;
            font-weight: 500 !important;
        }

        body.light-theme .search-input::placeholder {
            color: #64748b !important;
            font-weight: 500 !important;
        }

        body.light-theme .category-pill {
            background-color: #ffffff !important;
            border: 1px solid rgba(15, 23, 42, 0.1) !important;
            color: #1e293b !important;
            font-weight: 600 !important;
        }

        body.light-theme .category-pill:hover {
            color: var(--primary) !important;
            border-color: var(--primary) !important;
            background-color: rgba(var(--primary-rgb), 0.06) !important;
        }

        body.light-theme .category-pill.active {
            color: #fff !important;
            background: var(--primary-gradient) !important;
            border-color: transparent !important;
        }

        body.light-theme .product-card {
            background: #ffffff !important;
            border: 1px solid rgba(15, 23, 42, 0.08) !important;
            box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
        }

        body.light-theme .product-card:hover {
            box-shadow: 0 16px 36px rgba(var(--primary-rgb), 0.12) !important;
            border-color: rgba(var(--primary-rgb), 0.3) !important;
        }

        body.light-theme .product-title {
            color: #0f172a !important;
            font-weight: 700 !important;
        }

        body.light-theme .product-card:hover .product-title {
            color: var(--primary) !important;
        }

        body.light-theme .product-desc {
            color: #475569 !important;
        }

        body.light-theme .filter-card {
            background: #ffffff !important;
            border: 1px solid rgba(15, 23, 42, 0.08) !important;
        }

        body.light-theme .filter-card h2,
        body.light-theme .filter-section-title {
            color: #0f172a !important;
            font-weight: 700 !important;
        }

        body.light-theme .form-check-label {
            color: #334155 !important;
            font-weight: 500 !important;
        }

        body.light-theme .form-check:hover .form-check-label {
            color: var(--primary) !important;
            font-weight: 600 !important;
        }

        body.light-theme .modal-premium {
            background: rgba(255, 255, 255, 0.98) !important;
            box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18) !important;
        }

        body.light-theme .modal-premium h3,
        body.light-theme .modal-premium h4 {
            color: #0f172a !important;
        }

        body.light-theme .modal-premium p,
        body.light-theme .modal-premium span,
        body.light-theme .modal-premium label {
            color: #334155 !important;
        }

        body.light-theme .modal-premium .btn-close {
            filter: none;
        }

        body.light-theme #modalProductSku {
            color: var(--primary) !important;
        }

        body.light-theme #navbarCartBtn {
            background: #fff !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            color: var(--primary) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        }

        body.light-theme #navbarCartBtn:hover {
            border-color: var(--primary) !important;
            box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1) !important;
        }

        body.light-theme .navbar-tel-btn {
            background: #fff !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            color: #475569 !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        }

        body.light-theme .navbar-tel-btn:hover {
            border-color: var(--primary) !important;
            box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1) !important;
            color: var(--primary) !important;
        }

        body.light-theme footer {
            background: #f8fafc !important;
            border-top: 1px solid var(--border) !important;
        }

        body.light-theme footer h2,
        body.light-theme footer h4 {
            color: #0f172a !important;
            font-weight: 700 !important;
        }

        body.light-theme footer p,
        body.light-theme footer div,
        body.light-theme footer a {
            color: #475569 !important;
            font-weight: 500 !important;
        }

        body.light-theme footer a:hover {
            color: var(--primary) !important;
        }

        /* Dynamic button close invert for dark mode */
        .btn-close {
            filter: var(--btn-close-filter, invert(1) grayscale(100%) brightness(200%)) !important;
        }
        body.light-theme {
            --btn-close-filter: none;
        }

        /* Premium Category Badge */
        .badge-premium-category {
            background: rgba(255, 255, 255, 0.06);
            color: var(--primary) !important;
            border: 1px solid var(--border);
            font-family: 'Outfit', sans-serif;
        }
        body.light-theme .badge-premium-category {
            background: rgba(var(--primary-rgb), 0.06) !important;
            color: var(--primary) !important;
            border: 1px solid rgba(var(--primary-rgb), 0.15);
        }

        /* Improved price contrast in light theme */
        body.light-theme .price-new {
            color: var(--primary) !important;
            text-shadow: none !important;
        }

        /* Improved product image container backgrounds in light theme */
        body.light-theme .product-img-container {
            background-color: #f8fafc !important;
        }
        body.light-theme .modal-product-img {
            background-color: #f8fafc !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
        }

        /* Improved category circular icon in light theme */
        body.light-theme .category-card-circular .circle-icon {
            background: #fff !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
            color: #475569 !important;
        }
        body.light-theme .category-card-circular:hover .circle-icon {
            border-color: var(--primary) !important;
            background: rgba(var(--primary-rgb), 0.04) !important;
            color: var(--primary) !important;
        }
        body.light-theme .category-card-circular.active .circle-icon {
            background: var(--primary-gradient) !important;
            color: #fff !important;
            border-color: transparent !important;
            box-shadow: 0 8px 22px -5px rgba(var(--primary-rgb), 0.5) !important;
        }

        /* Offcanvas theme adjustments for dark/light mode */
        .offcanvas {
            background-color: var(--bg-color) !important;
            color: var(--text-color) !important;
            border-top: 1px solid var(--border) !important;
        }
        .offcanvas-header {
            border-bottom: 1px solid var(--border) !important;
        }
        .offcanvas-body {
            background-color: var(--bg-color) !important;
        }
        .offcanvas .card {
            background-color: var(--card-bg) !important;
            border: 1px solid var(--border) !important;
        }
        
        body.light-theme .offcanvas {
            background-color: #fff !important;
            color: #0f172a !important;
        }
        body.light-theme .offcanvas-body {
            background-color: #f8fafc !important;
        }
        body.light-theme .offcanvas .card {
            background-color: #fff !important;
            border: 1px solid rgba(0, 0, 0, 0.06) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        }

        /* Base styles for theme switcher button */
        #storeThemeBtn {
            width: 42px !important;
            height: 42px !important;
            background: rgba(255, 255, 255, 0.03) !important;
            color: #fff !important;
            border: 1px solid var(--border) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 50% !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        body.light-theme #storeThemeBtn {
            background: #fff !important;
            color: #0f172a !important;
            border: 1px solid rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
        }
        #storeThemeBtn:hover {
            transform: scale(1.08) rotate(15deg) !important;
            border-color: var(--primary) !important;
            color: var(--primary) !important;
            box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.25) !important;
        }
        body.light-theme #storeThemeBtn:hover {
            box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.1) !important;
        }

        /* Micro-Animations & Refinements for UX */
        .category-pill, .product-card, .btn-buy-premium, #navbarCartBtn {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* ==========================================================================
           STOREFRONT ARCHITECTURE: CARDS & SHARED MICRO-INTERACTIONS
           ========================================================================== */

        /* Zero Border Policy - Floating Product Cards & Brand Items */
        body.template-2 .product-card,
        body.template-2 .brand-carousel-item,
        body.template-2 .filter-card,
        body.template-2 .details-container {
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
        }

        /* Harmonização de Tema (Dark / Light Mode Canvas) */
        body.dark-theme.template-2 {
            background-color: #0b0f19 !important;
        }
        body.dark-theme.template-2 main,
        body.dark-theme.template-2 .brand-showcase-section {
            background: transparent !important;
        }

        body.light-theme.template-2 {
            background-color: #f8fafc !important;
        }
        body.light-theme.template-2 main,
        body.light-theme.template-2 .brand-showcase-section {
            background: transparent !important;
        }

        /* Anatomia dos Cards de Produto Minimalistas no Template 2 */
        body.template-2 .product-img-container {
            border-radius: 12px !important;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.03);
            border: none !important;
        }
        body.light-theme.template-2 .product-img-container {
            background: rgba(0, 0, 0, 0.03);
        }

        body.template-2 .product-img-container .product-img {
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
        }
        body.template-2 .product-card:hover .product-img {
            transform: scale(1.035) !important;
        }

        /* Ações Rápidas Integradas Minimalistas */
        body.template-2 .btn-quick-view-premium,
        body.template-2 .btn-compare-toggle {
            background: rgba(15, 23, 42, 0.65) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            border-radius: 50px !important;
            color: #ffffff !important;
        }

        /* Setas de Controle dos Carrosséis (Glassmorphic Fade no Hover) */
        body.template-2 .brand-carousel-wrapper .btn-carousel-control,
        body.template-2 .carousel-control-prev,
        body.template-2 .carousel-control-next {
            opacity: 0;
            transition: opacity 0.3s ease, background 0.3s ease, transform 0.3s ease;
            background: rgba(15, 23, 42, 0.6) !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
            width: 44px !important;
            height: 44px !important;
            border-radius: 50% !important;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }
        body.template-2 .brand-carousel-wrapper:hover .btn-carousel-control,
        body.template-2 .carousel-wrapper:hover .carousel-control-prev,
        body.template-2 .carousel-wrapper:hover .carousel-control-next {
            opacity: 1;
        }

        /* Logos de Marcas Flutuantes */
        body.template-2 .brand-carousel-item {
            padding: 12px 20px;
            border-radius: 12px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        body.template-2 .brand-carousel-item:hover {
            transform: translateY(-4px);
        }
        body.template-2 .brand-logo-img {
            filter: grayscale(100%) opacity(0.6);
            transition: filter 0.3s ease;
        }
        body.template-2 .brand-carousel-item:hover .brand-logo-img {
            filter: grayscale(0%) opacity(1);
        }

        /* ==========================================
           TEMPLATE 3: APP STYLE BOTTOM NAV OVERRIDES
           ========================================== */
        body.template-3 {
            padding-bottom: 90px;
        }
        
        .bottom-nav-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(11, 15, 25, 0.9);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-top: 1px solid var(--border);
            z-index: 1040;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            transition: var(--transition-smooth);
        }

        body.light-theme .bottom-nav-bar {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.05);
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 10px;
            font-weight: 700;
            text-decoration: none;
            transition: var(--transition-smooth);
            position: relative;
            flex-grow: 1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bottom-nav-item i {
            font-size: 1.35rem;
            margin-bottom: 2px;
        }

        .bottom-nav-item:hover, .bottom-nav-item.active {
            color: var(--primary);
        }

        .bottom-nav-item .badge {
            position: absolute;
            top: -2px;
            right: 32%;
            font-size: 9px;
            padding: 3px 6px;
        }

        /* Circular Category Cards (App Style) */
        .category-card-circular {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: var(--text-muted);
            transition: var(--transition-smooth);
            width: 92px;
            min-width: 86px;
            max-width: 102px;
            flex-shrink: 0;
            text-align: center;
        }

        .category-card-circular .circle-icon {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            box-shadow: var(--card-shadow);
            transition: var(--transition-smooth);
            flex-shrink: 0;
        }

        body.light-theme .category-card-circular .circle-icon {
            background: rgba(15, 23, 42, 0.02);
        }

        .category-card-circular:hover .circle-icon {
            border-color: var(--primary);
            background: rgba(var(--primary-rgb), 0.05);
            color: #fff;
            transform: translateY(-4px);
        }

        .category-card-circular.active .circle-icon {
            background: var(--primary-gradient);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 8px 22px -5px rgba(var(--primary-rgb), 0.5);
        }

        .category-card-circular .label {
            font-size: 0.74rem;
            font-weight: 600;
            line-height: 1.25;
            text-align: center;
            white-space: normal !important;
            word-break: normal;
            overflow-wrap: break-word;
            word-wrap: break-word;
            hyphens: auto;
            width: 100%;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            min-height: 2.5em;
            letter-spacing: 0.2px;
            transition: color 0.2s ease;
        }

        .category-card-circular.active .label {
            color: var(--primary);
            font-weight: 700;
        }

        .scrollbar-hidden::-webkit-scrollbar {
            display: none;
        }
        .scrollbar-hidden {
            -ms-overflow-style: none;
            scrollbar-width: none;
        }

        /* Container mestre que envolve a listagem de produtos da vitrine */
        .products-display-grid {
            /* Deixamos o Bootstrap row agir com o espaçamento g-3 e g-md-4 padrão */
        }

        /* Container de Controle do Carrossel */
        .brand-carousel-wrapper {
            display: block;
        }

        /* Track de scroll baseada em Hardware Acceleration e Snap-Alignment */
        .brand-carousel-track {
            scroll-behavior: smooth;
            display: flex;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* Força aceleração elástica no iOS */
            scroll-snap-type: x mandatory;
            padding: 12px 4px;
        }

        /* Item individual adaptado para o Snap */
        .brand-carousel-item {
            width: 140px;
            height: 65px;
            padding: 10px 18px;
            background: #ffffff;
            border: 1px solid rgba(15, 23, 42, 0.06);
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            flex-shrink: 0;
            scroll-snap-align: start;
        }

        .brand-carousel-item:hover {
            transform: translateY(-3px) scale(1.04);
            border-color: var(--primary) !important;
            box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.12);
        }

        .brand-logo-img {
            max-width: 100%; max-height: 100%; object-fit: contain;
            filter: grayscale(100%) opacity(65%); transition: all 0.3s ease;
        }
        .brand-carousel-item:hover .brand-logo-img { filter: grayscale(0%) opacity(100%); }

        /* Estilização das Aletas Direcionais (Setas) */
        .btn-carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.75) !important;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            cursor: pointer;
            z-index: 15;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }

        .btn-carousel-control:hover {
            background: var(--primary-gradient) !important;
            border-color: transparent !important;
            transform: translateY(-50%) scale(1.1);
        }

        .btn-carousel-control.prev { left: 0; }
        .btn-carousel-control.next { right: 0; }

        /* REGRAS RESPONSIVAS: Desativa as aletas no mobile e ativa o arrastar livre */
        @media (max-width: 991.98px) {
            .btn-carousel-control {
                display: none !important; /* Esconde as setas fisicamente no celular */
            }
            .brand-carousel-wrapper {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
            .brand-carousel-item {
                width: 110px;
                height: 52px;
                padding: 8px 12px;
            }
        }
        /* ==========================================================================
           AUTOCOMPLETE DROPDOWN REATIVO (ALINHADO COM O MENU MAIN & WHITELABEL)
           ========================================================================== */
        .autocomplete-suggestions-box {
            position: absolute;
            z-index: 2500;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            width: 100%;
            min-width: 290px;
            max-height: 72vh;
            overflow-y: auto;
            background: var(--navbar-bg, var(--card-bg, #ffffff)) !important;
            color: var(--navbar-color, var(--text-color, #0f172a)) !important;
            border: 1px solid var(--border, rgba(0, 0, 0, 0.1)) !important;
            border-radius: 16px !important;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
            backdrop-filter: blur(25px) !important;
            -webkit-backdrop-filter: blur(25px) !important;
            padding: 10px !important;
        }

        .search-expandable-container .autocomplete-suggestions-box {
            min-width: 340px;
            right: 0;
            left: auto;
        }

        @media (max-width: 767.98px) {
            .mobile-search-expanded-container .autocomplete-suggestions-box,
            #autocomplete_suggestions_box_mobile {
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                min-width: 100% !important;
                max-width: 100vw !important;
                border-radius: 14px !important;
            }
        }

        body.light-theme .autocomplete-suggestions-box,
        body.light-theme #autocomplete_suggestions_box,
        body.light-theme #autocomplete_suggestions_box_hero,
        body.light-theme #autocomplete_suggestions_box_mobile {
            background: var(--navbar-bg, #ffffff) !important;
            color: var(--navbar-color, #0f172a) !important;
            border-color: rgba(0, 0, 0, 0.08) !important;
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        }

        body.light-theme .autocomplete-title {
            color: #0f172a !important;
        }
        body.light-theme .autocomplete-subtitle {
            color: #64748b !important;
        }

        .autocomplete-heading {
            font-size: 0.7rem !important;
            text-transform: uppercase !important;
            letter-spacing: 0.08em !important;
            font-weight: 800 !important;
            color: var(--primary) !important;
            padding: 6px 10px 4px !important;
            border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08)) !important;
            margin-top: 8px !important;
            margin-bottom: 4px !important;
        }

        .autocomplete-row-item {
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            padding: 8px 10px !important;
            border-radius: 10px !important;
            cursor: pointer !important;
            text-decoration: none !important;
            transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
            margin-bottom: 2px !important;
        }

        .autocomplete-row-item:hover {
            background: rgba(var(--primary-rgb), 0.1) !important;
            transform: translateX(3px);
        }

        .autocomplete-title {
            color: var(--navbar-color, var(--text-color, #0f172a)) !important;
            font-size: 0.84rem !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
            transition: color 0.15s ease;
        }

        .autocomplete-row-item:hover .autocomplete-title {
            color: var(--primary) !important;
        }

        .autocomplete-subtitle {
            color: var(--text-muted, #94a3b8) !important;
            font-size: 0.72rem !important;
            font-weight: 500 !important;
            margin-top: 2px !important;
        }

        .autocomplete-icon-wrapper {
            width: 34px !important;
            height: 34px !important;
            border-radius: 50% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: rgba(var(--primary-rgb), 0.12) !important;
            color: var(--primary) !important;
            flex-shrink: 0 !important;
            font-size: 13px !important;
        }

        .autocomplete-logo {
            width: 34px !important;
            height: 34px !important;
            object-fit: contain !important;
            border-radius: 8px !important;
            padding: 2px !important;
            background: rgba(255, 255, 255, 0.06) !important;
            flex-shrink: 0 !important;
        }

        .autocomplete-prod-thumb {
            width: 44px !important;
            height: 38px !important;
            object-fit: cover !important;
            border-radius: 8px !important;
            border: 1px solid var(--border, rgba(0,0,0,0.06)) !important;
            flex-shrink: 0 !important;
        }

        .skeleton-placeholder {
            background: rgba(var(--primary-rgb), 0.08) !important;
            animation: skeletonPulse 1.5s infinite ease-in-out;
        }
        body.light-theme .skeleton-placeholder {
            background: rgba(15, 23, 42, 0.06) !important;
        }
        @keyframes skeletonPulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }

        .btn-quick-view-premium {
            position: absolute; top: 50%; left: 50%; transform: translate(-50%, -40%);
            background: rgba(15, 23, 42, 0.75) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important; color: #ffffff !important;
            padding: 8px 16px !important; font-size: 0.82rem !important; font-weight: 600 !important; border-radius: 50px !important;
            opacity: 0; visibility: hidden; z-index: 10; display: inline-flex; align-items: center; gap: 6px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            pointer-events: auto !important;
        }
        .product-card:hover .btn-quick-view-premium { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
        .btn-quick-view-premium:hover { background: var(--primary-gradient) !important; border-color: transparent !important; transform: translate(-50%, -50%) scale(1.05) !important; }

        @media (max-width: 767.98px) {
            .btn-quick-view-premium { opacity: 1 !important; visibility: visible !important; top: auto !important; bottom: 8px !important; left: 50% !important; transform: translateX(-50%) !important; padding: 4px 10px !important; font-size: 0.72rem !important; border-radius: 8px !important; }
            .btn-quick-view-premium span { display: none !important; }
            .product-card:hover .btn-quick-view-premium { transform: translateX(-50%) !important; }
        }

        #storeLayoutSwitcherContainer .btn {
            background: transparent !important;
            color: var(--text-muted) !important;
            font-size: 0.9rem !important;
            transition: all 0.2s ease !important;
        }
        #storeLayoutSwitcherContainer .btn.active {
            background: var(--primary-gradient) !important;
            color: #ffffff !important;
            box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2) !important;
        }

        .btn-compare-toggle {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.6) !important;
            backdrop-filter: blur(5px) !important;
            -webkit-backdrop-filter: blur(5px) !important;
            border: 1px solid rgba(255, 255, 255, 0.15) !important;
            color: #fff !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            z-index: 15;
            transition: all 0.2s ease !important;
            pointer-events: auto !important;
        }
        .btn-compare-toggle:hover {
            background: var(--primary) !important;
            color: #000 !important;
            border-color: var(--primary) !important;
            transform: scale(1.1);
        }
        .btn-compare-toggle.active {
            background: #00f0ff !important;
            color: #000 !important;
            border-color: #00f0ff !important;
        }

        #compareStickyBar {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            z-index: 2000;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid var(--border);
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            padding: 12px 24px;
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 90%;
            width: auto;
        }
        #compareStickyBar.show {
            transform: translateX(-50%) translateY(0);
        }
        .compare-bar-thumbs {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .compare-bar-thumb-item {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            border: 1px solid var(--border);
            object-fit: cover;
            background-color: rgba(255,255,255,0.05);
        }
        .compare-bar-btn {
            background: var(--primary-gradient);
            border: none;
            color: #000 !important;
            font-weight: 700;
            font-size: 0.88rem;
            padding: 10px 20px;
            border-radius: 50px;
            transition: all 0.2s ease;
            white-space: nowrap;
            text-decoration: none;
        }
        .compare-bar-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
            color: #000 !important;
        }
        .hover-primary {
            transition: color 0.2s ease-in-out;
        }
        .hover-primary:hover {
            color: var(--primary) !important;
        }

        /* Container de busca criado para o topo */
        .search-expandable-container {
            display: inline-block;
            vertical-align: middle;
        }

        /* Estado padrão: Botão redondo e compacto */
        .search-expandable-wrapper {
            position: relative;
            display: flex;
            align-items: center;
            width: 42px;
            height: 42px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border, rgba(255,255,255,0.15));
            border-radius: 50% !important;
            overflow: hidden;
            transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), 
                        background-color 0.3s ease, 
                        border-radius 0.3s ease,
                        box-shadow 0.3s ease;
            will-change: width;
        }

        body.light-theme .search-expandable-wrapper {
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* Estado Ativo: Expansão elástica com efeito de foco */
        .search-expandable-wrapper.expanded {
            width: 280px;
            border-radius: 22px !important;
            background: rgba(15, 23, 42, 0.85);
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
        }

        body.light-theme .search-expandable-wrapper.expanded {
            background: #ffffff;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        }

        /* Input oculto que ganha opacidade de forma sincronizada */
        .search-expandable-input {
            width: 100%;
            height: 100%;
            border: none !important;
            background: transparent !important;
            padding: 0 42px 0 18px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #ffffff !important;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease;
        }

        body.light-theme .search-expandable-input {
            color: #0f172a !important;
        }

        .search-expandable-wrapper.expanded .search-expandable-input {
            opacity: 1;
            visibility: visible;
        }

        .search-expandable-input:focus {
            outline: none;
            box-shadow: none;
        }

        /* Ícone da Lupa ancorado rigidamente na ponta direita interna */
        .btn-search-trigger {
            position: absolute;
            right: 0;
            top: 0;
            width: 40px;
            height: 40px;
            border: none !important;
            background: transparent !important;
            color: #ffffff !important;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            cursor: pointer;
            border-radius: 50%;
            transition: color 0.2s ease;
        }

        body.light-theme .btn-search-trigger {
            color: #475569 !important;
        }

        .search-expandable-wrapper.expanded .btn-search-trigger {
            color: var(--primary) !important;
        }

        /* Botão de limpar (X) para resetar o texto */
        .btn-clear-search-expandable {
            position: absolute;
            right: 36px;
            top: 50%;
            transform: translateY(-50%);
            border: none !important;
            background: transparent !important;
            color: #94a3b8 !important;
            font-size: 0.8rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 767.98px) {
            .search-expandable-wrapper.expanded {
                width: 180px; /* Redução cirúrgica para não quebrar o layout mobile */
            }
        }

        /* Secondary Top Bar Styling */
        .ecommerce-top-bar {
            transition: background-color 0.4s ease, border-color 0.4s ease;
        }

        body.light-theme .ecommerce-top-bar {
            background: var(--topbar-bg, rgba(241, 245, 249, 0.8)) !important;
            border-color: var(--border, rgba(15, 23, 42, 0.05)) !important;
        }

        .top-bar-link:hover {
            color: var(--primary) !important;
        }

        /* Toast styling defined globally in ecommerce/footer.php */

/* ========================================================
   E-COMMERCE: STOREFRONT (BLOCK 2)
   ======================================================== */
/* Premium Shimmer and Skeleton Loaders styling */
                    .skeleton-shimmer {
                        position: relative;
                        overflow: hidden;
                        background-color: rgba(255, 255, 255, 0.06);
                    }
                    body.light-theme .skeleton-shimmer {
                        background-color: rgba(15, 23, 42, 0.06);
                    }
                    .skeleton-shimmer::after {
                        position: absolute;
                        top: 0;
                        right: 0;
                        bottom: 0;
                        left: 0;
                        transform: translateX(-100%);
                        background-image: linear-gradient(
                            90deg,
                            rgba(255, 255, 255, 0) 0%,
                            rgba(255, 255, 255, 0.08) 20%,
                            rgba(255, 255, 255, 0.15) 60%,
                            rgba(255, 255, 255, 0)
                        );
                        animation: shimmer 1.5s infinite;
                        content: '';
                    }
                    body.light-theme .skeleton-shimmer::after {
                        background-image: linear-gradient(
                            90deg,
                            rgba(255, 255, 255, 0) 0%,
                            rgba(15, 23, 42, 0.03) 20%,
                            rgba(15, 23, 42, 0.06) 60%,
                            rgba(255, 255, 255, 0)
                        );
                    }
                    @keyframes shimmer {
                        100% {
                            transform: translateX(100%);
                        }
                    }
                    /* Transition and fade for AJAX content updates */
                    #productsGrid {
/* Premium Shimmer and Skeleton Loaders styling */
                    .skeleton-shimmer {
                        position: relative;
                        overflow: hidden;
                        background-color: rgba(255, 255, 255, 0.06);
                    }
                    body.light-theme .skeleton-shimmer {
                        background-color: rgba(15, 23, 42, 0.06);
                    }
                    .skeleton-shimmer::after {
                        position: absolute;
                        top: 0;
                        right: 0;
                        bottom: 0;
                        left: 0;
                        transform: translateX(-100%);
                        background-image: linear-gradient(
                            90deg,
                            rgba(255, 255, 255, 0) 0%,
                            rgba(255, 255, 255, 0.08) 20%,
                            rgba(255, 255, 255, 0.15) 60%,
                            rgba(255, 255, 255, 0)
                        );
                        animation: shimmer 1.5s infinite;
                        content: '';
                    }
                    body.light-theme .skeleton-shimmer::after {
                        background-image: linear-gradient(
                            90deg,
                            rgba(255, 255, 255, 0) 0%,
                            rgba(15, 23, 42, 0.03) 20%,
                            rgba(15, 23, 42, 0.06) 60%,
                            rgba(255, 255, 255, 0)
                        );
                    }
                    @keyframes shimmer {
                        100% {
                            transform: translateX(100%);
                        }
                    }
                    /* Transition and fade for AJAX content updates */
                    #productsGrid {
                        transition: opacity 0.25s ease-in-out, filter 0.25s ease-in-out;
                    }
                    #productsGrid.grid-loading {
                        opacity: 0.45;
                        filter: blur(1px);
                        pointer-events: none;
                    }

/* ========================================================
   E-COMMERCE: PRODUCT (BLOCK 1)
   ======================================================== */
            background-color: var(--bg-color);
            background-image: radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), 0.08) 0%, transparent 45%),
                              radial-gradient(circle at 90% 45%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
                              radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
            color: var(--text-color) !important;
            overflow-x: hidden;
            letter-spacing: -0.01em;
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        /* Adjustments to follow active theme colors dynamically inside details container */
        .details-container h1, 
        .details-container h2, 
        .details-container h3, 
        .details-container h4, 
        .details-container h5, 
        .details-container h6, 
        .details-container .text-dark {
            color: var(--text-color) !important;
        }
        .details-container .text-secondary {
            color: var(--text-muted) !important;
        }
        .details-container .text-muted {
            color: var(--text-muted) !important;
        }
        .breadcrumb-item a {
            color: var(--primary) !important;
            font-weight: 500;
            transition: opacity 0.2s;
        }
        .breadcrumb-item a:hover {
            color: var(--primary-hover) !important;
            opacity: 0.85;
        }
        .breadcrumb-item.active {
            color: var(--text-muted) !important;
        }
        .breadcrumb-item + .breadcrumb-item::before {
            color: var(--text-muted) !important;
        }

        /* Table Specs overrides */
        .details-container .table {
            color: var(--text-color) !important;
            border-color: var(--border) !important;
            background-color: transparent !important;
        }
        .details-container .table-striped > tbody > tr:nth-of-type(odd) > * {
            background-color: rgba(var(--primary-rgb), 0.02) !important;
            color: var(--text-color) !important;
            box-shadow: none !important;
        }
        .details-container .table-striped > tbody > tr:nth-of-type(even) > * {
            background-color: transparent !important;
            color: var(--text-color) !important;
            box-shadow: none !important;
        }
        .details-container .table td {
            border-color: var(--border) !important;
            padding: 12px 16px;
        }
        .details-container .table td.fw-semibold {
            background-color: rgba(var(--primary-rgb), 0.04) !important;
            color: var(--text-color) !important;
        }

        .details-container {
            background: var(--card-bg) !important;
            border: 1px solid var(--border) !important;
            border-radius: 28px;
            box-shadow: var(--card-shadow);
            padding: 40px;
            margin-top: 40px;
        }

        .details-container .main-product-img-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 20px;
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            cursor: zoom-in;
            width: 100%;
            pointer-events: auto !important;
        }

        .details-container .main-product-img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: transform 0.15s ease-out;
            transform-origin: center center;
            will-change: transform, transform-origin;
            pointer-events: none !important;
        }



        .details-container .thumbnail-img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 12px;
            cursor: pointer;
            border: 2px solid transparent;
            background-color: var(--card-bg);
            transition: all 0.2s ease;
        }

        .details-container .thumbnail-img.active, .details-container .thumbnail-img:hover {
            border-color: var(--primary);
            transform: scale(1.05);
        }

        .details-container .price-box {
            background: rgba(var(--primary-rgb), 0.04);
            border: 1px dashed rgba(var(--primary-rgb), 0.2);
            border-radius: 18px;
            padding: 20px;
            margin: 25px 0;
            display: flex;
            align-items: baseline;
            gap: 12px;
        }

        .details-container .price-box-promo {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--secondary-rgb), 0.02) 100%);
            border: 1.5px solid rgba(var(--primary-rgb), 0.25);
            position: relative;
            flex-direction: column;
            align-items: flex-start !important;
            gap: 8px !important;
        }

        .details-container .price-box-promo .economy-badge {
            background: var(--primary-gradient);
            color: #fff;
            font-size: 0.88rem;
            font-weight: 700;
            padding: 6px 14px;
            border-radius: 10px;
            margin-top: 4px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
            animation: pulse-border 2.2s infinite;
        }

        @keyframes pulse-border {
            0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
            70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); }
            100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
        }

        .details-container .price-original {
            font-size: 1rem;
            color: #94A3B8;
            text-decoration: line-through;
        }

        .details-container .price-active {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 2rem;
            color: var(--primary);
        }

        .details-container .buy-btn {
            background: var(--primary-gradient);
            border: none;
            color: #fff;
            font-weight: 700;
            padding: 16px 30px;
            font-size: 1.05rem;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 8px 20px -6px rgba(var(--primary-rgb), 0.4);
        }

        .details-container .buy-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 25px -5px rgba(var(--primary-rgb), 0.5);
        }

        .details-container .wa-btn {
            border: 2px solid #25D366;
            color: #25D366;
            background: transparent;
            font-weight: 700;
            padding: 16px 30px;
            font-size: 1.05rem;
            transition: all 0.2s ease;
        }

        .details-container .wa-btn:hover {
            background: #25D366;
            color: #fff;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
        }

        .toast-notification {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: #10B981;
            color: #fff;
            padding: 15px 25px;
            border-radius: 14px;
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
            z-index: 9999;
            font-family: 'Outfit', sans-serif;
            font-weight: 600;
            display: none;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from { transform: translateY(50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

/* ========================================================
   E-COMMERCE: PRODUCT (BLOCK 2)
   ======================================================== */
.related-section {
            padding: 60px 0 70px;
            position: relative;
            overflow: hidden;
        }
        .related-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(var(--primary-rgb), 0.2) 50%, transparent 100%);
        }
        .related-header {
            text-align: center;
            margin-bottom: 40px;
        }
        .related-header .section-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Inter', sans-serif;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--primary);
            background: rgba(var(--primary-rgb), 0.08);
            padding: 6px 16px;
            border-radius: 20px;
            margin-bottom: 14px;
        }
        .related-header h2 {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.75rem;
            color: var(--text-color, #1e293b) !important;
            margin: 0;
        }
        .related-header p {
            color: var(--text-muted, #64748b) !important;
            font-size: 0.92rem;
            margin-top: 8px;
        }

        /* Carousel Wrapper */
        .related-carousel-wrapper {
            position: relative;
            padding: 0 50px;
        }
        .related-carousel-track {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            scroll-behavior: smooth;
            scroll-snap-type: x mandatory;
            -ms-overflow-style: none;
            scrollbar-width: none;
            padding: 10px 4px 20px;
            cursor: grab;
        }
        .related-carousel-track:active {
            cursor: grabbing;
        }
        .related-carousel-track::-webkit-scrollbar {
            display: none;
        }

        /* Cards */
        .related-card {
            min-width: calc(25% - 15px);
            max-width: calc(25% - 15px);
            scroll-snap-align: start;
            background: var(--card-bg, #ffffff);
            border: 1px solid var(--border, #e2e8f0);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            position: relative;
        }
        .related-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px -12px rgba(var(--primary-rgb), 0.15);
            border-color: rgba(var(--primary-rgb), 0.3);
        }

        /* Card Image */
        .related-card-img {
            position: relative;
            width: 100%;
            aspect-ratio: 1;
            overflow: hidden;
            background: var(--surface, #f8fafc);
        }
        .related-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .related-card:hover .related-card-img img {
            transform: scale(1.1);
        }
        .related-card-img .no-img-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            color: var(--text-muted, #94a3b8);
            font-size: 2.5rem;
            opacity: 0.3;
        }

        /* Badges on card */
        .related-badge-promo {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: #fff;
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.72rem;
            padding: 4px 10px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            z-index: 3;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
            letter-spacing: 0.3px;
        }
        .related-badge-category {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(var(--primary-rgb), 0.85);
            backdrop-filter: blur(6px);
            color: #fff;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            font-size: 0.68rem;
            padding: 4px 10px;
            border-radius: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 3;
        }

        /* Quick Action Overlay */
        .related-card-actions {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            gap: 8px;
            justify-content: center;
            padding: 14px;
            background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 4;
        }
        .related-card:hover .related-card-actions {
            transform: translateY(0);
        }
        .related-card-actions .btn-action {
            background: rgba(255,255,255,0.95);
            color: var(--primary);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        .related-card-actions .btn-action:hover {
            background: var(--primary);
            color: #fff;
            transform: scale(1.1);
        }
        .related-card-actions .btn-action-cart {
            background: var(--primary);
            color: #fff;
        }
        .related-card-actions .btn-action-cart:hover {
            background: var(--secondary, var(--primary));
            transform: scale(1.1);
        }

        /* Card Body */
        .related-card-body {
            padding: 18px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        .related-card-body .rc-category {
            font-family: 'Inter', sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--primary);
            opacity: 0.7;
            margin-bottom: 6px;
        }
        .related-card-body .rc-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-color, #1e293b) !important;
            line-height: 1.35;
            margin: 0 0 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 2.7em;
            max-height: 2.7em;
            min-height: 2.7em;
            word-break: break-word;
        }
        .related-card-body .rc-title a {
            color: inherit;
            text-decoration: none;
            transition: color 0.2s;
        }
        .related-card-body .rc-title a:hover {
            color: var(--primary) !important;
        }

        /* Price area */
        .related-card-price {
            margin-top: auto;
            padding-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .related-card-price .rc-price-old {
            font-size: 0.78rem;
            color: var(--text-muted, #94a3b8);
            text-decoration: line-through;
            font-weight: 500;
        }
        .related-card-price .rc-price-active {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.3rem;
            color: var(--primary);
        }

        /* Navigation Arrows */
        .related-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 1px solid var(--border, #e2e8f0);
            background: var(--card-bg, #ffffff);
            color: var(--text-color, #334155);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 25 !important;
            transition: all 0.25s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.06);
        }
        .related-nav-btn:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
        }
        .related-nav-btn.prev { left: 0; }
        .related-nav-btn.next { right: 0; }
        .related-nav-btn:disabled {
            opacity: 0.3;
            cursor: default;
            pointer-events: none;
        }

        /* Dot Indicators */
        .related-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 24px;
        }
        .related-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border, #cbd5e1);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 0;
        }
        .related-dot.active {
            width: 24px;
            border-radius: 4px;
            background: var(--primary);
        }

        /* ── Responsive ── */
        @media (max-width: 991.98px) {
            .related-card {
                min-width: calc(33.333% - 14px);
                max-width: calc(33.333% - 14px);
            }
        }
        @media (max-width: 767.98px) {
            .related-card {
                min-width: calc(50% - 10px);
                max-width: calc(50% - 10px);
            }
            .related-carousel-wrapper {
                padding: 0 40px;
            }
            .related-nav-btn {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .related-header h2 {
                font-size: 1.4rem;
            }
            .related-card-body {
                padding: 14px;
            }
            .related-card-body .rc-title {
                font-size: 0.88rem;
            }
            .related-card-price .rc-price-active {
                font-size: 1.1rem;
            }
            .related-card-actions {
                transform: translateY(0);
                background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
            }
        }
        @media (max-width: 479.98px) {
            .related-carousel-wrapper {
                padding: 0 8px;
            }
            .related-nav-btn {
                display: none;
            }
        }

/* ========================================================
   E-COMMERCE: CART (BLOCK 1)
   ======================================================== */
:root {
            --bg-color: #F8FAFC;
            --text-color: #0F172A;
            --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
            --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
        }



        .cart-card {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.04);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            padding: 30px;
        }

        .cart-item-img {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            background: #F8FAFC;
        }

        .quantity-control {
            display: inline-flex;
            align-items: center;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 20px;
            padding: 4px;
            background: #F8FAFC;
        }

        .qty-btn {
            border: none;
            background: none;
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            border-radius: 50%;
            color: #64748B;
            transition: all 0.2s ease;
        }

        .qty-btn:hover {
            background: rgba(99, 102, 241, 0.1);
            color: #6366F1;
        }

        .summary-card {
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.04);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            padding: 30px;
            height: fit-content;
        }

        .checkout-btn {
            background: var(--primary-gradient);
            border: none;
            color: #fff;
            font-weight: 700;
            border-radius: 16px;
            padding: 15px;
            transition: all 0.2s ease;
        }

        .checkout-btn:hover {
            transform: scale(1.02);
            box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.4);
        }

/* ========================================================
   E-COMMERCE: CHECKOUT (BLOCK 1)
   ======================================================== */
:root {
            --bg-color: var(--primary, #6366f1);
            --card-bg: var(--primary, #6366f1);
            --text-color: var(--primary, #6366f1);
            --text-muted: var(--primary, #6366f1);
            --primary: var(--primary, #6366f1);
            --secondary: var(--primary, #6366f1);
            --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --border-color: var(--primary, #6366f1);
            --card-shadow: var(--primary, #6366f1);
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
            font-family: 'Outfit', sans-serif !important;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-color);
        }
        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary);
        }

        .checkout-container {
            flex: 1;
        }

        /* Wizard Step Progress Bar */
        .wizard-steps {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            max-width: 580px;
            margin: 0 auto 36px auto;
        }
        .wizard-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 20px;
            right: 20px;
            height: 3px;
            background: rgba(0, 0, 0, 0.08);
            z-index: 1;
        }
        .wizard-step-progress {
            position: absolute;
            top: 20px;
            left: 20px;
            height: 3px;
            background: var(--primary);
            z-index: 2;
            transition: width 0.4s ease;
            width: 0%;
        }
        .wizard-step {
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: transparent;
        }
        .wizard-step-circle {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: #ffffff;
            border: 2px solid rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #64748B;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        }
        .wizard-step.active .wizard-step-circle {
            background: #ffffff;
            border-color: var(--primary);
            color: var(--primary);
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
            font-weight: 800;
        }
        .wizard-step.completed .wizard-step-circle {
            background: var(--primary);
            border-color: var(--primary);
            color: #ffffff;
        }
        .wizard-step-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            margin-top: 8px;
            transition: color 0.3s ease;
        }
        .wizard-step.active .wizard-step-label {
            color: var(--primary);
            font-weight: 700;
        }

        /* Glassmorphic & Modern Cards */
        .checkout-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            padding: 32px;
            transition: all 0.3s ease;
        }

        .checkout-section-title {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--text-color);
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 14px;
        }

        /* Step Panels Visibility */
        .step-panel {
            display: none;
        }
        .step-panel.active {
            display: block;
            animation: fadeIn 0.35s ease-in-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Identificação Options */
        .ident-option-card {
            border: 2px dashed rgba(0, 0, 0, 0.12);
            border-radius: 20px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: var(--card-bg);
            text-align: center;
            height: 100%;
        }
        .ident-option-card:hover {
            border-color: var(--primary);
            background: rgba(139, 92, 246, 0.02);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
        }
        .ident-option-card.selected {
            border-color: var(--primary);
            background: rgba(139, 92, 246, 0.05);
            border-style: solid;
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
        }

        .form-control, .form-select {
            background-color: #F8FAFC !important;
            border: 1px solid rgba(0, 0, 0, 0.12) !important;
            color: var(--text-color) !important;
            border-radius: 12px !important;
            padding: 12px 16px;
            transition: all 0.2s ease;
        }
        .form-control:focus, .form-select:focus {
            background-color: #ffffff !important;
            border-color: var(--primary) !important;
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15) !important;
        }
        .form-control::placeholder {
            color: #94a3b8;
        }

        /* checkout-mode-card & payment-method-card */
        .checkout-mode-card, .payment-method-card {
            border: 1.5px solid var(--border-color);
            background: var(--card-bg);
            border-radius: 18px !important;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .checkout-mode-card:hover, .payment-method-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
        }
        .checkout-mode-card.selected, .payment-method-card.selected {
            border-color: var(--primary);
            background: rgba(139, 92, 246, 0.05);
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
            transform: scale(1.01);
        }

        .summary-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            box-shadow: var(--card-shadow);
            padding: 30px;
        }

        .summary-item-img {
            width: 54px;
            height: 54px;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, 0.06);
            background: #F8FAFC;
        }

        .checkout-submit-btn, .next-step-btn {
            background: var(--primary-gradient);
            border: none;
            color: #ffffff !important;
            font-weight: 700;
            border-radius: 14px;
            padding: 16px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
        }
        .checkout-submit-btn:hover, .next-step-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
            color: #ffffff !important;
        }
        .checkout-submit-btn:disabled, .next-step-btn:disabled {
            background: #cbd5e1;
            color: #94a3b8 !important;
            box-shadow: none;
            cursor: not-allowed;
            transform: none;
        }

        .prev-step-btn {
            border: 1px solid var(--border-color);
            background: #F1F5F9;
            color: #334155;
            font-weight: 600;
            border-radius: 14px;
            padding: 16px;
            transition: all 0.3s ease;
        }
        .prev-step-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

        /* Badges de Cobrança */
        .badge-digital-mensal {
            background-color: rgba(16, 185, 129, 0.1);
            color: #059669;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid rgba(16, 185, 129, 0.25);
            font-weight: bold;
            letter-spacing: 0.2px;
        }
        .badge-digital-unica {
            background-color: rgba(59, 130, 246, 0.1);
            color: #2563eb;
            font-size: 11px;
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid rgba(59, 130, 246, 0.25);
            font-weight: bold;
            letter-spacing: 0.2px;
        }

        .credit-card-form {
            background: #F8FAFC;
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 24px;
            margin-top: 20px;
            display: none;
        }

/* ========================================================
   E-COMMERCE: BRANDS (BLOCK 1)
   ======================================================== */
        .brands-hero {
            background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--secondary-rgb), 0.01) 100%);
            border-bottom: 1px solid var(--border-color);
            padding: 60px 0 40px 0;
            text-align: center;
        }

        .brands-hero h1 {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 2.5rem;
            color: var(--text-color) !important;
            margin-bottom: 12px;
        }

        .brands-hero p {
            color: var(--btn-neutral-color);
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Filter Controls */
        .filter-section {
            background: var(--card-bg) !important;
            border: 1px solid var(--border-color) !important;
            border-radius: 24px;
            padding: 30px;
            box-shadow: var(--card-shadow);
            margin-top: -30px;
            position: relative;
            z-index: 10;
        }

        .search-input-group {
            border-radius: 50px;
            overflow: hidden;
            border: 2px solid var(--btn-neutral-border) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .search-input-group:focus-within {
            border-color: var(--primary);
            box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.1) !important;
        }

        .search-input-group .form-control {
            border: none;
            box-shadow: none;
            font-size: 1.05rem;
            padding-left: 12px;
            background: var(--search-bg) !important;
            color: var(--text-color) !important;
        }

        .search-input-group .form-control:focus {
            outline: none;
            box-shadow: none;
        }

        .search-input-group .input-group-text {
            background: transparent;
            border: none;
            padding-left: 20px;
            color: var(--btn-neutral-color) !important;
        }

        .search-input-group .btn {
            border: none;
            background: transparent;
            color: var(--btn-neutral-color);
            padding-right: 20px;
            transition: color 0.2s ease;
        }

        .search-input-group .btn:hover {
            color: var(--text-color);
            background: transparent;
        }

        /* Alphabet Bar */
        .alphabet-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }

        .alphabet-btn {
            border: 1px solid var(--border-color) !important;
            background: var(--card-bg) !important;
            color: var(--btn-neutral-color) !important;
            font-weight: 700;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            user-select: none;
        }

        .alphabet-btn[data-letter="ALL"] {
            width: auto;
            padding: 0 16px;
            border-radius: 50px;
        }

        .alphabet-btn:hover {
            border-color: var(--primary) !important;
            color: var(--primary) !important;
            transform: scale(1.08);
        }

        .alphabet-btn.active {
            background: var(--primary-gradient) !important;
            color: #ffffff !important;
            border-color: transparent !important;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.35) !important;
        }

        /* Brand Grid & Cards */
        .brand-card {
            border-radius: 20px;
            background: var(--card-bg) !important;
            border: 1px solid var(--border-color) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 30px 20px;
            box-shadow: var(--card-shadow);
            cursor: pointer;
        }

        .brand-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--card-shadow-hover);
            border-color: rgba(var(--primary-rgb), 0.15);
        }

        .logo-wrapper {
            width: 110px;
            height: 110px;
            position: relative;
            background: var(--btn-neutral-bg) !important;
            border-radius: 18px;
            padding: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
            margin-bottom: 20px;
        }

        .brand-card:hover .logo-wrapper {
            background: rgba(var(--primary-rgb), 0.04);
        }

        .brand-logo {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            filter: grayscale(100%) opacity(0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .brand-card:hover .brand-logo {
            filter: grayscale(0%) opacity(1);
            transform: scale(1.05);
        }

        .brand-fallback-logo {
            width: 100%;
            height: 100%;
            border-radius: 12px;
            font-size: 2.5rem;
            background: var(--primary-gradient);
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
            text-transform: uppercase;
            font-family: 'Outfit', sans-serif;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .brand-card:hover .brand-fallback-logo {
            transform: scale(1.05) rotate(3deg);
            box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
        }

        .brand-name {
            font-family: 'Outfit', sans-serif;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-color) !important;
            margin-bottom: 6px;
        }

        .brand-products-count {
            font-size: 0.8rem;
            font-weight: 600;
            background: var(--btn-neutral-bg) !important;
            color: var(--btn-neutral-color) !important;
            border: 1px solid var(--btn-neutral-border) !important;
            padding: 5px 12px;
            border-radius: 50px;
            transition: all 0.25s ease;
        }

        .brand-card:hover .brand-products-count {
            background: rgba(var(--primary-rgb), 0.06);
            color: var(--primary);
            border-color: rgba(var(--primary-rgb), 0.15);
        }

        .explore-badge {
            opacity: 0;
            transform: translateY(12px);
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--primary);
            margin-top: 15px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .brand-card:hover .explore-badge {
            opacity: 1;
            transform: translateY(0);
        }

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: var(--card-bg) !important;
            border-radius: 24px;
            border: 1px solid var(--border-color) !important;
            box-shadow: var(--card-shadow);
        }

        .empty-icon-wrapper {
            width: 90px;
            height: 90px;
            background: var(--btn-neutral-bg) !important;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px auto;
        }

        .empty-icon-wrapper i {
            font-size: 2.5rem;
            color: var(--btn-neutral-color);
        }

        /* Combined Filter Animations */
        .brand-card-col {
            transition: opacity 0.3s ease, transform 0.3s ease;
            opacity: 1;
            transform: scale(1);
        }
        .brand-card-col.fade-out {
            opacity: 0;
            transform: scale(0.92);
            pointer-events: none;
        }
        .brand-card-col.d-none {
            display: none !important;
        }

/* ========================================================
   E-COMMERCE: NAVBAR (BLOCK 1)
   ======================================================== */
:root {
        --topbar-height: 40px;
        --navbar-top: 40px;

        /* Whitelabel custom styling variables (Padrões seguros com fallback) */
        --topbar-bg: rgba(15, 23, 42, 0.15);
        --topbar-color: #cbd5e1;
        --navbar-bg: rgb(15, 23, 42);
        --navbar-bg-rgb: 15, 23, 42;
        --navbar-scrolled-opacity: 0.75;
        --navbar-color: #f1f5f9;
        --footer-bg: rgba(9, 13, 22, 0.8);
        --footer-color: #94a3b8;

        /* Core Theme design system tokens */
        --bg-color: #0b0f19;
        --text-color: #f1f5f9;
        --text-muted: #94a3b8;
        --primary: #8b5cf6;
        --primary-rgb: 139, 92, 246;
        --secondary: #ec4899;
        --secondary-rgb: 236, 72, 153;
        --primary-hover: rgba(var(--primary-rgb), 0.85);
        --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        --border: rgba(255, 255, 255, 0.08);
        --card-bg: rgba(15, 23, 42, 0.45);
        --card-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6);
        --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.light-theme {
        /* Light mode layout overrides */
        --bg-color: #f8fafc;
        --text-color: #0f172a;
        --text-muted: #64748b;
        --border: rgba(15, 23, 42, 0.08);
        --card-bg: rgba(255, 255, 255, 0.85);
        --card-shadow: 0 16px 36px -12px rgba(15, 23, 42, 0.08);
    }

    /* Typography & Buttons styling based on Backoffice settings */
    .btn, .btn-buy-premium, .category-pill, .search-wrapper, .search-input, .input-group-text, #navbarCartBtn, #storeThemeBtn, .brand-card, .alphabet-btn {
        border-radius: 12px;
    }
    
    .btn, .btn-buy-premium, .category-pill, .search-wrapper, .search-input, .input-group-text, #navbarCartBtn, #storeThemeBtn, .brand-card, .alphabet-btn {
        border-radius: 0px !important;
    }
    

    /* Global Button and Link Theme overrides */
    .btn-primary {
        background: var(--primary-gradient) !important;
        border: none !important;
        color: #fff !important;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25) !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
        background: var(--primary-gradient) !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4) !important;
        opacity: 0.95 !important;
        color: #fff !important;
    }
    .btn-outline-primary {
        border: 1.5px solid var(--primary) !important;
        color: var(--primary) !important;
        background: transparent !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active {
        background: var(--primary) !important;
        border-color: var(--primary) !important;
        color: #fff !important;
    }
    .btn-outline-secondary {
        border: 1.5px solid var(--border) !important;
        color: var(--text-color) !important;
        background: transparent !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    .btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active, .btn-outline-secondary.active {
        background: var(--border) !important;
        color: var(--text-color) !important;
    }
    a {
        color: var(--primary);
        text-decoration: none;
        transition: opacity 0.2s ease;
    }
    a:hover {
        color: var(--primary-hover);
        opacity: 0.95;
    }

    body {
        font-family: 'Inter', sans-serif;
        background-color: var(--bg-color) !important;
        background-image: radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), 0.08) 0%, transparent 45%),
                          radial-gradient(circle at 90% 45%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
                          radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.06) 0%, transparent 45%) !important;
        color: var(--text-color) !important;
        overflow-x: hidden;
        letter-spacing: -0.01em;
        transition: background-color 0.4s ease, color 0.4s ease;
    }

    body.light-theme {
        background-color: var(--bg-color) !important;
        background-image: radial-gradient(circle at 10% 15%, rgba(var(--primary-rgb), 0.04) 0%, transparent 40%),
                          radial-gradient(circle at 90% 45%, rgba(var(--secondary-rgb), 0.04) 0%, transparent 40%),
                          radial-gradient(circle at 50% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 45%) !important;
    }

    /* Top Bar dynamic styling */
    .ecommerce-top-bar {
        background: var(--topbar-bg) !important;
        border-color: var(--border) !important;
        position: relative !important;
        width: 100% !important;
        z-index: 1010 !important;
        min-height: 38px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    .ecommerce-top-bar,
    .ecommerce-top-bar div,
    .ecommerce-top-bar span,
    .ecommerce-top-bar a,
    .ecommerce-top-bar i,
    .ecommerce-top-bar .text-muted,
    .ecommerce-top-bar .text-secondary {
        color: var(--topbar-color) !important;
    }
    .ecommerce-top-bar a:hover {
        color: var(--primary, #8b5cf6) !important;
    }

    /* ==========================================================================
       HEADER & NAVBAR PREMIUM ARCHITECTURE (MhSys Storefront)
       ========================================================================== */
    .navbar-premium,
    #mainNavbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
        background: var(--navbar-bg) !important;
        border-bottom: 1px solid var(--border, rgba(255,255,255,0.08)) !important;
        transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform, padding, background-color;
    }

    /* Glassmorphism Efeito Vidro Translúcido */
    .navbar-premium.navbar-glass,
    #mainNavbar.navbar-glass {
        background: rgba(11, 15, 25, 0.82) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    body.light-theme .navbar-premium.navbar-glass,
    body.light-theme #mainNavbar.navbar-glass {
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    /* Modo Sólido */
    .navbar-premium.navbar-solid,
    #mainNavbar.navbar-solid {
        background: var(--navbar-bg) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 1. Modos de Altura / Densidade */
    .navbar-height-compact {
        min-height: 56px !important;
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    .navbar-height-compact .storefront-logo-img {
        max-height: 42px !important;
    }

    .navbar-height-comfortable {
        min-height: 72px !important;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }
    .navbar-height-comfortable .storefront-logo-img {
        max-height: 56px !important;
    }

    .navbar-height-prominent {
        min-height: 88px !important;
        padding-top: 1.1rem !important;
        padding-bottom: 1.1rem !important;
    }
    .navbar-height-prominent .storefront-logo-img {
        max-height: 76px !important;
    }

    /* 2. Scroll Intelligence: Smart Shrink & Smart Reveal */
    .navbar-premium.navbar-scrolled,
    #mainNavbar.navbar-scrolled {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    }
    .navbar-premium.navbar-scrolled.navbar-glass,
    #mainNavbar.navbar-scrolled.navbar-glass {
        background: rgba(11, 15, 25, 0.92) !important;
        backdrop-filter: blur(24px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    }
    body.light-theme .navbar-premium.navbar-scrolled.navbar-glass,
    body.light-theme #mainNavbar.navbar-scrolled.navbar-glass {
        background: rgba(255, 255, 255, 0.94) !important;
        backdrop-filter: blur(24px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    }
    .navbar-premium.navbar-scrolled .storefront-logo-img {
        transform: scale(0.92);
        transform-origin: left center;
        transition: transform 0.25s ease;
    }

    /* Smart Reveal (Oculta ao descer, surge ao subir) */
    .behavior-smart-reveal.navbar-hidden-scroll {
        transform: translateY(-115%) !important;
    }

    /* 3. Layout Presets */
    /* Preset: Ilha Flutuante (Floating Island) */
    .navbar-layout-floating,
    #mainNavbar.navbar-layout-floating {
        position: sticky !important;
        top: 12px !important;
        margin: 10px auto 14px auto !important;
        width: 94% !important;
        max-width: 1400px !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        z-index: 1035 !important;
    }
    body.light-theme .navbar-layout-floating,
    body.light-theme #mainNavbar.navbar-layout-floating {
        box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
    }

    /* Preset: Editorial Full-Width */
    .navbar-layout-editorial .nav-premium-link {
        text-transform: uppercase;
        letter-spacing: 0.08em !important;
        font-size: 0.8125rem !important;
        font-weight: 700 !important;
    }

    /* Preset: Split Menu */
    .navbar-layout-split .navbar-container-split {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
    }
    @media (max-width: 991.98px) {
        .navbar-layout-split .navbar-container-split {
            display: flex;
            justify-content: space-between;
        }
    }

    /* 4. Tipografia e Micro-interações nos Links de Navegação */
    .nav-premium-link {
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        padding: 8px 14px !important;
        position: relative;
        color: var(--navbar-color, #f1f5f9) !important;
        text-decoration: none;
        transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Efeito Hover: Linha Deslizante (Underline Progressivo) */
    .hover-style-linha_deslizante .nav-premium-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        width: 75%;
        height: 2px;
        background: var(--primary, #8b5cf6);
        border-radius: 2px;
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .hover-style-linha_deslizante .nav-premium-link:hover::after,
    .hover-style-linha_deslizante .nav-premium-link.active::after {
        transform: translateX(-50%) scaleX(1);
    }
    .hover-style-linha_deslizante .nav-premium-link:hover,
    .hover-style-linha_deslizante .nav-premium-link.active {
        color: var(--primary, #8b5cf6) !important;
    }

    /* Efeito Hover: Pílula Translúcida (Glass Pill) */
    .hover-style-pill_translucida .nav-premium-link {
        border-radius: 99px;
    }
    .hover-style-pill_translucida .nav-premium-link:hover,
    .hover-style-pill_translucida .nav-premium-link.active {
        background: rgba(var(--primary-rgb, 139, 92, 246), 0.12) !important;
        color: var(--primary, #8b5cf6) !important;
    }

    /* Efeito Hover: Brilho Suave (Glow Neon) */
    .hover-style-brilho_suave .nav-premium-link:hover,
    .hover-style-brilho_suave .nav-premium-link.active {
        color: var(--primary, #8b5cf6) !important;
        text-shadow: 0 0 14px rgba(var(--primary-rgb, 139, 92, 246), 0.65);
    }

    /* Efeito Hover: Minimalista Cromático */
    .hover-style-minimalista_cor .nav-premium-link:hover,
    .hover-style-minimalista_cor .nav-premium-link.active {
        color: var(--primary, #8b5cf6) !important;
        transform: translateY(-1.5px);
    }

    /* 5. Badges Promocionais Flutuantes sobre os Links */
    .nav-link-badge {
        position: absolute;
        top: -3px;
        right: 2px;
        font-size: 8px !important;
        font-weight: 800 !important;
        padding: 1.5px 5px !important;
        border-radius: 99px !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1;
        pointer-events: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .nav-link-badge.badge-hot {
        background: linear-gradient(135deg, #ef4444, #f97316);
        color: #ffffff;
    }
    .nav-link-badge.badge-new {
        background: linear-gradient(135deg, #8b5cf6, #ec4899);
        color: #ffffff;
    }
    .nav-link-badge.badge-off {
        background: linear-gradient(135deg, #10b981, #059669);
        color: #ffffff;
    }

    /* 6. WhatsApp com Ponto Verde Pulsante 'Online' */
    .whatsapp-online-pulse-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
    }
    .whatsapp-online-dot {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 10px;
        height: 10px;
        background-color: #22c55e;
        border: 2px solid #ffffff;
        border-radius: 50%;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        animation: pulse-online 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    body.dark-theme .whatsapp-online-dot {
        border-color: #0b0f19;
    }
    @keyframes pulse-online {
        0% {
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        }
    }

    /* 7. Mini-Flyout Preview do Carrinho */
    .cart-preview-wrapper {
        position: relative;
        display: inline-block;
    }
    .cart-preview-flyout {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 320px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid var(--border, rgba(255,255,255,0.1));
        border-radius: 16px;
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
        pointer-events: none;
        z-index: 2050;
        padding: 16px;
    }
    body.light-theme .cart-preview-flyout {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    }
    .cart-preview-wrapper:hover .cart-preview-flyout,
    .cart-preview-wrapper:focus-within .cart-preview-flyout,
    .cart-preview-wrapper.is-open .cart-preview-flyout,
    .cart-preview-wrapper.show .cart-preview-flyout {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Otimização Responsiva Mobile - Alinhamento e Evita Corte da Sacola/Carrinho */
    @media (max-width: 768px) {
        .cart-preview-wrapper {
            position: relative;
        }
        .cart-preview-flyout {
            position: absolute !important;
            top: calc(100% + 8px) !important;
            right: auto !important;
            left: 0 !important;
            width: 310px !important;
            max-width: calc(100vw - 20px) !important;
            transform: translateY(6px);
        }
        .cart-preview-wrapper:hover .cart-preview-flyout,
        .cart-preview-wrapper:focus-within .cart-preview-flyout,
        .cart-preview-wrapper.is-open .cart-preview-flyout,
        .cart-preview-wrapper.show .cart-preview-flyout {
            transform: translateY(0) !important;
        }
    }

    @media (max-width: 480px) {
        .cart-preview-flyout {
            position: fixed !important;
            top: 65px !important;
            left: 10px !important;
            right: 10px !important;
            width: calc(100vw - 20px) !important;
            max-width: 340px !important;
            margin: 0 auto !important;
            z-index: 99999 !important;
            box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5) !important;
        }
    }

    /* 8. Estilo de Busca Integrada (Barra Fixa Central & Ícone) */
    .search-fixed-bar-wrapper {
        width: 100%;
        max-width: 340px;
        position: relative;
    }
    .search-fixed-bar-input {
        width: 100%;
        height: 38px;
        border-radius: 99px;
        padding-left: 38px;
        padding-right: 14px;
        font-size: 0.8125rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border, rgba(255,255,255,0.12));
        color: var(--navbar-color, #f1f5f9);
        outline: none;
        transition: all 0.2s ease;
    }
    body.light-theme .search-fixed-bar-input {
        background: rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(0, 0, 0, 0.08);
        color: #1e293b;
    }
    .search-fixed-bar-input:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary, #8b5cf6);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 139, 92, 246), 0.15);
    }
    body.light-theme .search-fixed-bar-input:focus {
        background: #ffffff;
    }

    /* 9. Cores e Elementos Globais da Navbar */
    #mainNavbar .nav-link,
    #mainNavbar .navbar-brand,
    #mainNavbar .navbar-brand span,
    #mainNavbar .navbar-brand-icon,
    #mainNavbar .navbar-brand-icon i,
    #mainNavbar .btn-search-trigger,
    #mainNavbar .navbar-tel-btn,
    #mainNavbar .navbar-tel-btn span,
    #mainNavbar #navbarCartBtn,
    #mainNavbar .btn-mobile-nav-toggle,
    #mainNavbar .btn-mobile-nav-toggle i,
    #mainNavbar .top-bar-link {
        color: var(--navbar-color) !important;
    }

    #mainNavbar .nav-link:hover,
    #mainNavbar .navbar-brand:hover,
    #mainNavbar .navbar-tel-btn:hover,
    #mainNavbar #navbarCartBtn:hover {
        color: var(--primary, #8b5cf6) !important;
    }

    /* Whitelabel Footer dynamic styling */
    footer,
    footer.storefront-footer {
        background: var(--footer-bg) !important;
        border-top: 1px solid var(--border) !important;
    }
    footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
        color: var(--footer-color) !important;
    }
    footer p, footer div, footer span, footer li, footer a,
    footer .text-secondary, footer .text-muted,
    footer .company-address, footer .company-footer-custom-text {
        color: var(--footer-color) !important;
    }
    footer a:hover {
        color: var(--primary, #8b5cf6) !important;
    }

    /* Remoção de padding-top no body já que a topbar flui normalmente */
    body {
        padding-top: 0 !important;
    }


    /* Responsividade Mobile - Esconder topbar e manter navbar fixa no topo */
    @media (max-width: 991.98px) {
        :root {
            --topbar-height: 0px !important;
            --navbar-top: 0px !important;
        }
        .ecommerce-top-bar {
            display: none !important;
            position: static !important;
            height: 0px !important;
        }
        #mainNavbar {
            position: sticky !important;
            top: 0 !important;
        }
        body {
            padding-top: 0 !important;
        }
    }

    /* Estilos Básicos de Busca Retrátil (Garantia de carregamento isolado) */
    .search-expandable-container {
        display: inline-block;
        vertical-align: middle;
    }
    .search-expandable-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border, rgba(255,255,255,0.15));
        border-radius: 50% !important;
        overflow: hidden;
        transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease;
        will-change: width;
    }
    body.light-theme .search-expandable-wrapper {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    .search-expandable-wrapper.expanded {
        width: 280px;
        border-radius: 22px !important;
        background: rgba(15, 23, 42, 0.85);
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
    }
    body.light-theme .search-expandable-wrapper.expanded {
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
    .search-expandable-input {
        width: 100%;
        height: 100%;
        border: none !important;
        background: transparent !important;
        padding: 0 42px 0 18px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #ffffff !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
    }
    body.light-theme .search-expandable-input {
        color: #0f172a !important;
    }
    .search-expandable-wrapper.expanded .search-expandable-input {
        opacity: 1;
        visibility: visible;
    }
    .search-expandable-input:focus {
        outline: none;
        box-shadow: none;
    }
    .btn-search-trigger {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 40px;
        border: none !important;
        background: transparent !important;
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        border-radius: 50%;
        transition: color 0.2s ease;
    }
    body.light-theme .btn-search-trigger {
        color: #475569 !important;
    }
    .search-expandable-wrapper.expanded .btn-search-trigger {
        color: var(--primary) !important;
    }
    .btn-clear-search-expandable {
        position: absolute;
        right: 36px;
        top: 50%;
        transform: translateY(-50%);
        border: none !important;
        background: transparent !important;
        color: #94a3b8 !important;
        font-size: 0.8rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    @media (max-width: 767.98px) {
        .search-expandable-wrapper.expanded {
            width: 180px;
        }
    }

    /* Autocomplete unificado configurado no bloco principal de estilos */

    /* Premium Pagination Overrides */
    .pagination-premium .page-link {
        background: var(--card-bg, rgba(15, 23, 42, 0.45)) !important;
        border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
        color: var(--text-color, #f1f5f9) !important;
        padding: 10px 16px !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    body.light-theme .pagination-premium .page-link {
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #0f172a !important;
    }
    .pagination-premium .page-link:hover {
        background: var(--primary, #8b5cf6) !important;
        color: #fff !important;
        border-color: var(--primary, #8b5cf6) !important;
        box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3) !important;
        transform: translateY(-2px) !important;
    }
    .pagination-premium .page-item.active .page-link {
        background: var(--primary-gradient, linear-gradient(135deg, #8b5cf6, #ec4899)) !important;
        color: #fff !important;
        border-color: transparent !important;
        box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3) !important;
    }
    .pagination-premium .page-item.disabled .page-link {
        opacity: 0.4 !important;
        cursor: not-allowed !important;
        background: rgba(15, 23, 42, 0.2) !important;
        transform: none !important;
    }
    .btn-ver-no-mapa {
        color: var(--footer-color, #94a3b8) !important;
        border: 1px solid rgba(var(--primary-rgb), 0.35) !important;
        background: transparent;
        transition: var(--transition-smooth, all 0.4s ease) !important;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 6px 14px;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none !important;
    }
    .btn-ver-no-mapa:hover {
        color: #ffffff !important;
        background: var(--primary-gradient) !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
        transform: translateY(-1px);
    }

    /* Premium Storefront Logo Hierarchy & Responsiveness */
    .storefront-logo-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 4px 8px;
        margin-right: 15px;
        border-radius: 8px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    }
    .storefront-logo-link:hover {
        transform: scale(1.03);
    }
    .storefront-logo-img {
        transition: filter 0.3s ease;
    }
    /* Contrast enhancement for dark/colored background headers */
    body.dark-theme .storefront-logo-img,
    body:not(.light-theme) .storefront-logo-img {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
    }
    body.light-theme .storefront-logo-img {
        filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.04));
    }

    /* ==========================================================================
       HERO MOTOR GRÁFICO & CANVAS 60 FPS (CONFINAMENTO & ISOLATION)
       ========================================================================== */
    .storefront-hero-container {
        position: relative !important;
        overflow: hidden !important;
        isolation: isolate !important;
        width: 100%;
    }

    .hero-content-layer {
        position: relative;
        z-index: 1 !important;
        width: 100%;
        height: 100%;
        pointer-events: auto;
    }

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

    .hero-overlay-mask {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .hero-canvas-layer {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: none !important;
        z-index: 10 !important;
        mix-blend-mode: normal;
    }

    .hero-caption {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        pointer-events: auto;
    }

    .social-top-link {
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .social-top-link:hover {
        transform: scale(1.2);
    }

    @media (max-width: 991.98px) {
        .storefront-logo-img {
            max-height: 48px !important;
            max-width: 140px !important;
        }
        .storefront-logo-link {
            padding: 2px 4px;
            margin-right: 8px;
        }
    }

/* ========================================================
   E-COMMERCE: MAIN FOOTER (THEMED & MODULAR)
   ======================================================== */
.ecommerce-main-footer {
    background-color: var(--footer-bg, #090d16) !important;
    color: var(--footer-color, #94a3b8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-theme .ecommerce-main-footer {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

.ecommerce-main-footer h2,
.ecommerce-main-footer h3,
.ecommerce-main-footer h4,
.ecommerce-main-footer h5,
.ecommerce-main-footer h6 {
    letter-spacing: 0.3px;
}

.ecommerce-main-footer p,
.ecommerce-main-footer span,
.ecommerce-main-footer li,
.ecommerce-main-footer small,
.ecommerce-main-footer .company-footer-custom-text {
    color: var(--footer-color, #94a3b8) !important;
}

.ecommerce-main-footer a:not(.btn):not(.btn-ver-no-mapa):not(.footer-social-btn) {
    color: var(--footer-color, #94a3b8) !important;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.ecommerce-main-footer a:not(.btn):not(.btn-ver-no-mapa):not(.footer-social-btn):hover {
    color: var(--primary) !important;
    opacity: 1;
}

.footer-social-btn,
.ecommerce-main-footer .footer-social-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--footer-color, #94a3b8) !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body.light-theme .footer-social-btn,
body.light-theme .ecommerce-main-footer .footer-social-btn {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-social-btn:hover,
.ecommerce-main-footer .footer-social-btn:hover {
    transform: scale(1.15) translateY(-2px);
    background: var(--primary-gradient);
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(var(--primary-rgb), 0.25);
}

/* ========================================================
   E-COMMERCE: FOOTER (BLOCK 2)
   ======================================================== */
.whatsapp-floating-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #25d366;
            color: #fff !important;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            z-index: 9999;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none !important;
        }
        .whatsapp-floating-btn:hover {
            transform: scale(1.1) translateY(-3px);
            background-color: #20ba5a;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
        }
        @media (max-width: 768px) {
            .whatsapp-floating-btn {
                bottom: 20px;
                right: 20px;
                width: 50px;
                height: 50px;
                font-size: 26px;
            }
        }

        .wa-lead-backdrop-ecom {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.45);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            z-index: 9999;
            animation: waBackdropFadeIn 0.25s ease;
        }
        @keyframes waBackdropFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .wa-lead-popover-card {
            position: fixed;
            bottom: 90px;
            right: 30px;
            width: 340px;
            max-width: calc(100vw - 32px);
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 18px;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
            z-index: 10000;
            overflow: hidden;
            font-family: inherit;
            animation: waPopoverFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @media (max-width: 768px) {
            .wa-lead-popover-card {
                right: 16px;
                left: 16px;
                bottom: 24px;
                margin: auto;
                width: auto;
            }
        }
        @keyframes waPopoverFadeIn {
            from { opacity: 0; transform: translateY(20px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .wa-lead-popover-card-header {
            background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
            color: white;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .wa-lead-popover-card-title {
            font-size: 15px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .wa-lead-popover-card-close {
            background: none;
            border: none;
            color: white;
            font-size: 22px;
            cursor: pointer;
            line-height: 1;
            opacity: 0.85;
            transition: opacity 0.2s;
            padding: 0 4px;
        }
        .wa-lead-popover-card-close:hover { opacity: 1; }
        .wa-lead-popover-card-body { padding: 18px; }
        .wa-lead-popover-card-desc {
            font-size: 12.5px;
            color: #64748b;
            margin-bottom: 14px;
            line-height: 1.45;
        }
        .wa-lead-card-group { margin-bottom: 14px; }
        .wa-lead-card-group label {
            display: block;
            font-size: 11.5px;
            font-weight: 700;
            color: #334155;
            margin-bottom: 5px;
            text-align: left;
        }
        .wa-lead-card-input {
            width: 100%;
            padding: 9px 13px;
            font-size: 13.5px;
            border: 1.5px solid #e2e8f0;
            border-radius: 10px;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
            background: #f8fafc;
            color: #0f172a;
        }
        .wa-lead-card-input:focus { 
            border-color: #25d366; 
            background: #fff;
            box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
        }
        .wa-lead-popover-card-submit {
            width: 100%;
            background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
            color: white;
            border: none;
            padding: 11px;
            font-size: 14px;
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
        }
        .wa-lead-popover-card-submit:hover { 
            background: linear-gradient(135deg, #22bf5b 0%, #189848 100%);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
        }
        .wa-lead-popover-card-submit:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

/* ========================================================
   E-COMMERCE: FOOTER (BLOCK 3)
   ======================================================== */
.mhsys-lgpd-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 15px 20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'Inter', 'Outfit', sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
}
.mhsys-lgpd-banner.mhsys-lgpd-top {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.4s ease-out;
}
.mhsys-lgpd-banner.mhsys-lgpd-bottom {
    bottom: 0;
    top: auto;
}
.mhsys-lgpd-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.mhsys-lgpd-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}
.mhsys-lgpd-icon {
    font-size: 24px;
    color: #10b981;
}
.mhsys-lgpd-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: #cbd5e1;
    text-align: left;
}
.mhsys-lgpd-link {
    color: #34d399 !important;
    text-decoration: underline !important;
    font-weight: 600;
    margin-left: 5px;
}
.mhsys-lgpd-actions {
    display: flex;
    align-items: center;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
@media (max-width: 768px) {
    .mhsys-lgpd-container {
        flex-direction: column;
        align-items: stretch;
    }
    .mhsys-lgpd-actions {
        justify-content: flex-end;
    }
}

/* ========================================================
   E-COMMERCE: FORMATTING FOR PRODUCT DESCRIPTIONS & PILLS
   ======================================================== */
.product-short-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 16px 0;
}
.product-short-pills .badge {
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.08) !important;
    color: var(--text-color, #1e293b) !important;
    border: 1px solid rgba(var(--primary-rgb, 99, 102, 241), 0.18) !important;
    font-size: 0.82rem;
    padding: 6px 12px;
    border-radius: 50rem;
    font-weight: 500;
    letter-spacing: 0.1px;
}
.light-theme .product-short-pills .badge {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}
.dark-theme .product-short-pills .badge {
    background: rgba(30, 41, 59, 0.6) !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.product-desc-short {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
}
.light-theme .product-desc-short {
    color: #475569;
}

.product-desc-full {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-color, #334155);
}
.light-theme .product-desc-full {
    color: #334155;
}
.dark-theme .product-desc-full {
    color: #cbd5e1;
}

.product-desc-section {
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.035);
    border: 1px solid rgba(var(--primary-rgb, 99, 102, 241), 0.1);
    border-left: 3px solid var(--primary, #7c3aed);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
    margin-bottom: 14px;
    transition: var(--transition-smooth);
}
.light-theme .product-desc-section {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: var(--primary, #7c3aed);
}
.dark-theme .product-desc-section {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary, #a78bfa);
}

.product-desc-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color, #0f172a);
    display: flex;
    align-items: center;
    gap: 6px;
}
.light-theme .product-desc-heading {
    color: #0f172a !important;
}
.dark-theme .product-desc-heading {
    color: #f8fafc !important;
}

.product-feature-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}
.product-feature-list li {
    margin-bottom: 6px;
    color: var(--text-muted, #475569);
    font-size: 0.91rem;
    line-height: 1.55;
}
.light-theme .product-feature-list li {
    color: #475569;
}
.dark-theme .product-feature-list li {
    color: #94a3b8;
}

/* ==========================================================================
   ADVANCED RESPONSIVE ARCHITECTURE: ULTRA-WIDE (4K) & MOBILE LEGACY SHIELD
   ========================================================================== */

/* 1. Telas Ultragrandes (Min-Width: 1400px / 1920px+) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-xl, .container-xxl,
    .storefront-container,
    .navbar-premium > .container-fluid,
    .footer-premium > .container-fluid {
        max-width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-banner {
        padding: 105px 0 130px 0;
    }
    .hero-banner h1 {
        font-size: clamp(2.5rem, 4vw, 3.8rem) !important;
    }
    .search-container {
        max-width: 840px;
    }
}

@media (min-width: 1920px) {
    .container, .container-lg, .container-xl, .container-xxl,
    .storefront-container,
    .navbar-premium > .container-fluid,
    .footer-premium > .container-fluid {
        max-width: 1600px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-carousel {
        height: 540px;
    }
    .hero-carousel .hero-caption {
        max-width: 1020px;
    }
    .hero-carousel .hero-caption h2 {
        font-size: clamp(2rem, 3.5vw, 3.2rem);
    }
}

/* 2. Blindagem e Simetria para Telas Menores e Antigas (Mobile / Legacy Viewports <576px / <380px) */
@media (max-width: 575.98px) {
    .hero-banner {
        padding: 45px 0 60px 0 !important;
    }
    .hero-banner h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        letter-spacing: -1px !important;
    }
    .search-container {
        margin: -20px auto 0 auto !important;
        padding: 0 10px !important;
    }
    .search-input {
        height: 44px !important;
        font-size: 0.95rem !important;
        padding-left: 14px !important;
    }
    .search-btn {
        height: 44px !important;
        padding: 0 18px !important;
        min-width: 44px !important;
    }
    .category-pill {
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
        min-height: 40px !important;
    }
    .btn-buy-premium {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    .product-info {
        padding: 10px !important;
    }
    .filter-card {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }
}

/* Telas Ultra-Compactas (<380px, iPhones antigos / Galaxy Fold) */
@media (max-width: 379.98px) {
    .products-display-grid.row {
        gap: 6px !important;
    }
    .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper.product-item-col {
        width: calc(50% - 3px) !important;
        max-width: calc(50% - 3px) !important;
        flex: 0 0 calc(50% - 3px) !important;
    }
    .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-img-container {
        height: 110px !important;
    }
    .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .product-title {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        height: 2.7em !important;
        max-height: 2.7em !important;
        min-height: 2.7em !important;
    }
    .products-display-grid:not(.row-cols-1) .card-product-premium-wrapper .price-new {
        font-size: 0.92rem !important;
    }
    .navbar-brand {
        font-size: 1rem !important;
    }
}

/* ========================================================
   HIERARCHICAL & MODULAR CATEGORIES ENGINE STYLES
   ======================================================== */
.category-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--primary);
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.category-pill.active .category-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.category-card-circular {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-smooth);
    width: 92px;
    min-width: 86px;
    max-width: 102px;
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.category-card-circular .circle-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.category-card-circular .circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-card-circular .label {
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    transition: color 0.2s ease;
}

.category-card-circular .badge-circular-count {
    position: absolute;
    top: -2px;
    right: 6px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.category-card-circular:hover .circle-icon,
.category-card-circular.active .circle-icon {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--premium-glow);
    background: rgba(var(--primary-rgb), 0.12);
}

.category-card-circular.active .label {
    color: var(--primary);
    font-weight: 700;
}

/* ========================================================
   HIGH-CONVERSION EDITORIAL MEGAMENU DESIGN SYSTEM
   ======================================================== */

/* Trigger Button */
.btn-megamenu-trigger {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-megamenu-trigger:hover,
.btn-megamenu-trigger[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px -2px rgba(var(--primary-rgb), 0.35) !important;
}

/* Mega Menu Dropdown Container */
.megamenu-dropdown-container {
    min-width: 960px !important;
    max-width: 1200px !important;
    width: 92vw !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    z-index: 1060 !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-top: 10px !important;
    scrollbar-width: thin;
}

body.dark-theme .megamenu-dropdown-container,
[data-theme="dark"] .megamenu-dropdown-container {
    background: #0f172a !important;
    background-color: #0f172a !important;
    opacity: 1 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* Zona 1: Departamentos & Categorias */
.megamenu-dept-col {
    display: flex;
    flex-direction: column;
}

.megamenu-dept-header {
    text-decoration: none !important;
    color: #0f172a !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.dark-theme .megamenu-dept-header,
[data-theme="dark"] .megamenu-dept-header {
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

.megamenu-dept-header:hover {
    color: var(--primary) !important;
    transform: translateX(2px);
}

.dept-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.megamenu-dept-header:hover .dept-icon-wrapper {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.08);
}

.dept-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.dept-count-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    margin-left: auto;
    transition: background 0.2s ease, color 0.2s ease;
}

.megamenu-dept-header:hover .dept-count-badge {
    background: rgba(var(--primary-rgb), 0.18);
}

body.dark-theme .dept-count-badge,
[data-theme="dark"] .dept-count-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

/* Subcategorias */
.megamenu-sublist {
    list-style: none;
    padding-left: 0;
    margin-bottom: 6px;
}

.megamenu-sub-link {
    text-decoration: none !important;
    font-size: 0.8rem;
    color: #64748b !important;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.18s ease;
    font-weight: 500;
}

body.dark-theme .megamenu-sub-link,
[data-theme="dark"] .megamenu-sub-link {
    color: #94a3b8 !important;
}

.megamenu-sub-link:hover {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateX(3px);
    font-weight: 600;
}

body.dark-theme .megamenu-sub-link:hover,
[data-theme="dark"] .megamenu-sub-link:hover {
    color: #ffffff !important;
    background: rgba(var(--primary-rgb), 0.15);
}

.megamenu-sub-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.badge-pill-subtle {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.megamenu-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none !important;
    padding: 3px 6px;
    margin-top: 2px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: fit-content;
}

.megamenu-view-all-link:hover {
    background: rgba(var(--primary-rgb), 0.08);
    transform: translateX(3px);
}

/* Zona 2: Vitrine Comercial / Marketing */
.megamenu-promo-zone {
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    padding-left: 20px;
}

body.dark-theme .megamenu-promo-zone,
[data-theme="dark"] .megamenu-promo-zone {
    border-left-color: rgba(255, 255, 255, 0.07);
}

.megamenu-featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    text-decoration: none !important;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.megamenu-featured-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.35);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 55%, rgba(15, 23, 42, 0.15) 100%);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.megamenu-featured-card:hover .featured-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(15, 23, 42, 0.1) 100%);
}

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.featured-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.featured-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--primary);
    padding: 6px 14px;
    border-radius: 9999px;
    margin-top: 6px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.megamenu-featured-card:hover .featured-cta-btn {
    transform: translateX(3px);
    filter: brightness(1.1);
}

/* Barra de Rodapé Rápida */
.megamenu-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(15, 23, 42, 0.02);
    border-radius: 0 0 16px 16px;
    margin: 20px -24px -24px -24px;
}

body.dark-theme .megamenu-bottom-bar,
[data-theme="dark"] .megamenu-bottom-bar {
    border-top-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}

.megamenu-footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

body.dark-theme .megamenu-footer-item,
[data-theme="dark"] .megamenu-footer-item {
    color: #94a3b8 !important;
}

.megamenu-footer-item:hover {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* Sidebar Tree Accordion */
.ecommerce-sidebar-tree-accordion {
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.ecommerce-sidebar-tree-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--primary);
    box-shadow: none;
}

.ecommerce-sidebar-tree-accordion a:hover {
    color: var(--primary) !important;
}

/* Category Header Banner (Página de Categoria / Taxonomia) */
.category-header-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--secondary-rgb), 0.03) 100%), #ffffff !important;
    border: 1px solid rgba(var(--primary-rgb), 0.18) !important;
    border-radius: 20px !important;
    box-shadow: 0 6px 25px -8px rgba(var(--primary-rgb), 0.12) !important;
    position: relative;
    overflow: hidden;
}

.category-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px 0 0 4px;
}

body.dark-theme .category-header-banner,
[data-theme="dark"] .category-header-banner {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.08) 100%), #0f172a !important;
    border-color: rgba(var(--primary-rgb), 0.28) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.category-banner-title {
    color: #0f172a !important;
    font-weight: 800;
}

body.dark-theme .category-banner-title {
    color: #f8fafc !important;
}

.category-dept-badge {
    background: rgba(var(--primary-rgb), 0.12) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.25) !important;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.category-count-badge {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #475569 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.dark-theme .category-count-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.category-description-text {
    color: #475569 !important;
    font-size: 0.925rem;
    line-height: 1.65;
}

body.dark-theme .category-description-text,
[data-theme="dark"] .category-description-text {
    color: #cbd5e1 !important;
}

@media (max-width: 991.98px) {
    .megamenu-dropdown-container {
        min-width: 300px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
    }
    .megamenu-promo-zone {
        border-left: none !important;
        border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
        padding-left: 0 !important;
        padding-top: 16px !important;
    }
    body.dark-theme .megamenu-promo-zone,
    [data-theme="dark"] .megamenu-promo-zone {
        border-top-color: rgba(255, 255, 255, 0.07) !important;
    }
    .megamenu-bottom-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* ==========================================================================
   Comparador de Produtos Multi-Tenant (Vitrine & Detalhes do Produto)
   ========================================================================== */

/* Botão de Comparação na Página do Produto */
.btn-compare-detail {
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    cursor: pointer;
}

.btn-compare-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-compare-detail.btn-primary {
    background: var(--primary-gradient, var(--primary)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

/* Ajuste de Posição da Barra Flutuante de Comparação */
#compareStickyBar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50rem;
    padding: 10px 24px;
    z-index: 9999;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 92vw;
}

#compareStickyBar.show {
    transform: translateX(-50%) translateY(0);
}

.compare-bar-thumbs {
    display: flex;
    align-items: center;
}

.compare-bar-thumb-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    margin-left: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-color: #1e293b;
}

.compare-bar-thumb-item:first-child {
    margin-left: 0;
}

.compare-bar-btn {
    background: var(--primary-gradient, var(--primary));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 50rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 139, 92, 246), 0.4);
    white-space: nowrap;
}

.compare-bar-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 139, 92, 246), 0.6);
    color: #ffffff !important;
}

/* ==========================================================================
   MOBILE NAVBAR, OFFCANVAS DRAWER & DEPARTMENTS BOTTOM SHEET ENHANCEMENTS
   ========================================================================== */

.btn-mobile-nav-toggle {
    background: transparent;
    color: var(--text-main, #ffffff);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-mobile-nav-toggle:hover,
.btn-mobile-nav-toggle:focus {
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.12);
    color: var(--primary);
    transform: scale(1.05);
}

.btn-mobile-departments-trigger {
    border-color: rgba(var(--primary-rgb, 139, 92, 246), 0.35) !important;
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.08) !important;
    color: var(--primary) !important;
    transition: all 0.2s ease;
}

.btn-mobile-departments-trigger:hover,
.btn-mobile-departments-trigger:active {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* Offcanvas Mobile Navigation Drawer */
.mobile-nav-offcanvas {
    width: 320px !important;
    max-width: 85vw !important;
    background: rgba(15, 23, 42, 0.96) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-right: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
    color: var(--text-main, #ffffff);
}

body.light-theme .mobile-nav-offcanvas {
    background: rgba(255, 255, 255, 0.98) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1e293b !important;
}

.mobile-nav-link {
    color: var(--text-main, #e2e8f0);
    transition: all 0.2s ease;
    border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.12);
    color: var(--primary);
    transform: translateX(3px);
}

body.light-theme .mobile-nav-link {
    color: #334155;
}

body.light-theme .mobile-nav-link:hover {
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.08);
    color: var(--primary);
}

.mobile-subnav-link {
    color: var(--text-muted, #94a3b8);
    transition: all 0.2s ease;
}

.mobile-subnav-link:hover {
    color: var(--primary);
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.08);
}

body.light-theme .mobile-subnav-link {
    color: #64748b;
}

/* Bottom Sheet / Offcanvas Departments Drawer */
.mobile-departments-sheet {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.15)) !important;
    color: var(--text-main, #ffffff);
}

body.light-theme .mobile-departments-sheet {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

.mobile-dept-item,
.mobile-dept-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
    transition: all 0.2s ease;
}

body.light-theme .mobile-dept-item,
body.light-theme .mobile-dept-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.mobile-dept-item:hover,
.mobile-dept-card:hover {
    border-color: rgba(var(--primary-rgb, 139, 92, 246), 0.3) !important;
}

.mobile-dept-item.active {
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.15);
    border-color: var(--primary) !important;
}

.mobile-dept-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.12);
    flex-shrink: 0;
}

.mobile-subdept-link {
    transition: all 0.2s ease;
}

.mobile-subdept-link:hover {
    background: rgba(var(--primary-rgb, 139, 92, 246), 0.1);
    color: var(--primary) !important;
    padding-left: 12px !important;
}

/* MegaMenu Dropdown Responsiveness on Desktop & Tablet */
.megamenu-dropdown-container {
    min-width: 780px;
    max-width: 95vw;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
    z-index: 1060;
}

body.light-theme .megamenu-dropdown-container {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.megamenu-header-link {
    color: var(--text-main, #ffffff) !important;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transition: color 0.2s ease;
}

body.light-theme .megamenu-header-link {
    color: #1e293b !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.megamenu-header-link:hover {
    color: var(--primary) !important;
}

.megamenu-sub-link {
    color: var(--text-muted, #94a3b8) !important;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 3px 0;
    transition: all 0.2s ease;
}

body.light-theme .megamenu-sub-link {
    color: #64748b !important;
}

.megamenu-sub-link:hover {
    color: var(--primary) !important;
    padding-left: 4px;
}

/* Sidebar Categories Menu Block Integration */
.sidebar-categories-menu-block .ecommerce-sidebar-tree-accordion,
.mobile-sidebar-categories-block .ecommerce-sidebar-tree-accordion {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.sidebar-categories-menu-block .ecommerce-sidebar-tree-accordion h6,
.mobile-sidebar-categories-block .ecommerce-sidebar-tree-accordion h6 {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ========================================================
   HIGH CONTRAST & CATEGORY DROPDOWN ENHANCEMENTS
   ======================================================== */
.btn-primary-custom {
    background: var(--primary-gradient, var(--primary)) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35) !important;
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45) !important;
}

.category-section-dropdown {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border, rgba(15, 23, 42, 0.08)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .category-section-dropdown {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.category-section-dropdown .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.18) !important;
}

body.dark-theme .category-section-dropdown .dropdown-menu {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6) !important;
}

.category-section-dropdown .dropdown-item {
    color: #1e293b !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

body.dark-theme .category-section-dropdown .dropdown-item {
    color: #f1f5f9 !important;
}

.category-section-dropdown .dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary) !important;
}

.category-section-dropdown .dropdown-item.active {
    background: var(--primary-gradient, var(--primary)) !important;
    color: #ffffff !important;
}

.category-section-dropdown .dropdown-item.active i {
    color: #ffffff !important;
}

.category-section-dropdown .badge {
    background: rgba(var(--primary-rgb), 0.12) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
}

.category-section-dropdown .dropdown-item.active .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border: none !important;
}

.category-section-dropdown .text-muted,
.category-dropdown-info {
    color: #334155 !important;
    font-weight: 600 !important;
}

body.dark-theme .category-section-dropdown .text-muted,
body.dark-theme .category-dropdown-info {
    color: #94a3b8 !important;
}

/* Ajustes Responsivos & Barra Lateral para Dropdown de Categorias */
.catalog-sidebar-column .category-section-dropdown,
.sidebar-categories-menu-block .category-section-dropdown,
.filter-card .category-section-dropdown {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
    width: 100% !important;
}

.catalog-sidebar-column .category-section-dropdown .dropdown,
.sidebar-categories-menu-block .category-section-dropdown .dropdown,
.filter-card .category-section-dropdown .dropdown {
    width: 100% !important;
}

.catalog-sidebar-column .category-section-dropdown #btnDropdownCategorias,
.sidebar-categories-menu-block .category-section-dropdown #btnDropdownCategorias,
.filter-card .category-section-dropdown #btnDropdownCategorias {
    width: 100% !important;
    justify-content: space-between !important;
}

.catalog-sidebar-column .category-section-dropdown .dropdown-menu,
.sidebar-categories-menu-block .category-section-dropdown .dropdown-menu,
.filter-card .category-section-dropdown .dropdown-menu {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.catalog-sidebar-column .category-section-dropdown .category-dropdown-info,
.sidebar-categories-menu-block .category-section-dropdown .category-dropdown-info,
.filter-card .category-section-dropdown .category-dropdown-info {
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

@media (max-width: 576px) {
    .category-section-dropdown {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        padding: 0.75rem !important;
    }
    .category-section-dropdown .dropdown,
    .category-section-dropdown #btnDropdownCategorias {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .category-section-dropdown .category-dropdown-info {
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.75rem !important;
    }
}

/* ========================================================
   SIDEBAR TREE ACCORDION (DEPARTAMENTOS & CATEGORIAS)
   ======================================================== */
.ecommerce-sidebar-tree-accordion {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

body.dark-theme .ecommerce-sidebar-tree-accordion {
    background: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-tree-title {
    color: #0f172a !important;
}

body.dark-theme .sidebar-tree-title {
    color: #f8fafc !important;
}

.tree-item-wrapper {
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tree-item-wrapper:hover {
    background: rgba(var(--primary-rgb), 0.06);
}

.tree-item-wrapper.active {
    background: var(--primary-gradient, var(--primary)) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3) !important;
}

.tree-item-link {
    color: #1e293b !important;
    transition: color 0.2s ease;
}

body.dark-theme .tree-item-link {
    color: #f1f5f9 !important;
}

.tree-item-wrapper:hover .tree-item-link {
    color: var(--primary) !important;
}

.tree-item-wrapper.active .tree-item-link {
    color: #ffffff !important;
}

.tree-item-icon {
    color: var(--primary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.tree-item-wrapper.active .tree-item-icon {
    color: #ffffff !important;
}

.tree-count-badge {
    background: rgba(var(--primary-rgb), 0.12) !important;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 7px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.tree-item-wrapper.active .tree-count-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.tree-toggle-btn {
    color: #64748b !important;
}

.tree-item-wrapper.active .tree-toggle-btn {
    color: #ffffff !important;
}

.tree-sub-link {
    color: #475569 !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.dark-theme .tree-sub-link {
    color: #cbd5e1 !important;
}

.tree-sub-link:hover {
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.06);
    padding-left: 10px !important;
}

.tree-sub-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.tree-sub-count {
    color: #64748b;
    font-size: 10px;
}

/* ========================================================
   E-COMMERCE: STOREFRONT MODULAR BLOCKS (VISUAL MERCHANDISING)
   ======================================================== */
.storefront-modular-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.storefront-block {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.block-header-wrap {
    margin-bottom: 1.15rem !important;
}

.block-main-heading {
    color: var(--text-color) !important;
    letter-spacing: -0.5px;
    font-weight: 800 !important;
}

@media (max-width: 767.98px) {
    .storefront-block {
        margin-bottom: 2.15rem !important;
    }
    .block-header-wrap {
        margin-bottom: 0.95rem !important;
    }
    .block-main-heading {
        font-size: 1.15rem !important;
        letter-spacing: -0.3px;
    }
}

/* 1. Régua de Benefícios (Trust Bar) */
.glass-trust-bar {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border, rgba(15, 23, 42, 0.08)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
    .glass-trust-bar {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }
}

.trust-item {
    transition: transform 0.2s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-icon-box {
    width: 44px;
    height: 44px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
}

@media (max-width: 767.98px) {
    .trust-icon-box {
        width: 38px;
        height: 38px;
    }
}

.trust-title {
    color: var(--text-color) !important;
    font-size: 0.82rem !important;
    font-weight: 700;
}

.trust-sub {
    color: var(--text-muted, #64748b) !important;
    font-size: 0.72rem !important;
}

/* 2. Departamentos Circular (Stories & Bubbles) */
.department-bubble-item {
    width: 96px;
    min-width: 88px;
    max-width: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-bubble-avatar {
    width: 76px;
    height: 76px;
    background: var(--card-bg, #ffffff);
    border: 2.5px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding: 3px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.dept-bubble-avatar::before {
    content: '';
    position: absolute;
    inset: -2.5px;
    border-radius: 50%;
    background: var(--primary-gradient, linear-gradient(135deg, var(--primary), #8b5cf6));
    z-index: -1;
    transition: all 0.3s ease;
}

.department-bubble-item:hover .dept-bubble-avatar {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.25);
}

.dept-bubble-name {
    color: var(--text-color, #1e293b) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin-top: 6px;
    text-align: center;
    width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    transition: color 0.2s ease;
}

.department-bubble-item:hover .dept-bubble-name {
    color: var(--primary) !important;
}

/* Stories Bubbles (Category Stories Bar) */
.story-bubble-item {
    width: 78px;
    min-width: 72px;
    max-width: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: transform 0.2s ease;
}

.story-avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    overflow: hidden;
}

.story-bubble-item.active-story .story-avatar-ring {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.05);
}

.story-bubble-label {
    color: var(--text-color, #1e293b) !important;
    font-size: 0.70rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-top: 4px;
    text-align: center;
    width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: color 0.2s ease;
}

.story-bubble-item:hover .story-bubble-label {
    color: var(--primary) !important;
}

/* 3. Ofertas Relâmpago (Flash Sale) */
.block-ofertas-relampago {
    position: relative;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.flash-sale-header {
    background: linear-gradient(135deg, #e11d48 0%, #f97316 50%, #ea580c 100%) !important;
    box-shadow: 0 10px 30px -5px rgba(225, 29, 72, 0.35), 0 6px 12px -4px rgba(234, 88, 12, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 18px !important;
    padding: 16px 22px !important;
    position: relative;
    overflow: hidden;
}

.flash-sale-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.flash-sale-header h3,
.flash-sale-header .flash-sale-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    font-size: 1.35rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin: 0;
}

.flash-sale-header p,
.flash-sale-header .flash-sale-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    margin: 0;
}

.flash-fire-badge {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    animation: pulseFire 2.5s ease-in-out infinite;
}

@keyframes pulseFire {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
    50% { transform: scale(1.06); box-shadow: 0 6px 18px rgba(255, 193, 7, 0.45); }
}

.badge-tempo-limitado {
    background: #fef08a !important;
    color: #854d0e !important;
    font-weight: 800 !important;
    font-size: 0.68rem !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    text-transform: uppercase;
}

.flash-countdown-container {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(10px);
    padding: 6px 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-countdown-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.countdown-units {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cd-box {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    padding: 5px 9px !important;
    text-align: center;
    min-width: 46px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(8px);
}

.cd-val {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    font-family: 'Outfit', 'Inter', monospace !important;
    display: block;
    line-height: 1;
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

.cd-box small {
    font-size: 0.62rem !important;
    color: #fde047 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cd-sep {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    animation: blinkSep 1s ease-in-out infinite;
}

@keyframes blinkSep {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 767.98px) {
    .flash-sale-header {
        padding: 14px 16px !important;
        margin-bottom: 1.15rem !important;
        border-radius: 16px !important;
    }
    .flash-sale-header h3,
    .flash-sale-header .flash-sale-title {
        font-size: 1.15rem !important;
    }
    .flash-sale-header p,
    .flash-sale-header .flash-sale-subtitle {
        font-size: 0.78rem !important;
    }
    .flash-countdown-container {
        padding: 4px 10px !important;
        border-radius: 10px !important;
    }
    .cd-box {
        padding: 3px 6px !important;
        min-width: 36px;
        border-radius: 8px !important;
    }
    .cd-val {
        font-size: 1rem !important;
    }
    .cd-box small {
        font-size: 0.55rem !important;
    }
}

.block-ofertas-relampago .product-card {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08)) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.block-ofertas-relampago .product-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(225, 29, 72, 0.35) !important;
}

body.dark-theme .block-ofertas-relampago .product-card {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.block-ofertas-relampago .carousel-nav-arrows .btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.block-ofertas-relampago .carousel-nav-arrows .btn:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Prateleiras em Carrossel Horizontal Touch */
.shelf-carousel-track {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    padding: 6px 4px 18px 4px !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.shelf-carousel-track > * {
    scroll-snap-align: start;
    flex: 0 0 255px !important;
    max-width: 255px !important;
    width: 255px !important;
}

.shelf-carousel-track .product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.shelf-carousel-track .product-img-container {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
}

.shelf-carousel-track .product-info {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    padding: 14px !important;
}

.shelf-carousel-track .product-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    height: 2.7em !important;
    margin-bottom: 4px !important;
}

.shelf-carousel-track .product-desc {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    height: 2.7em !important;
    margin-bottom: 8px !important;
}

.shelf-carousel-track .price-new {
    font-size: 1.15rem !important;
}

@media (max-width: 991.98px) {
    .shelf-carousel-track > * {
        flex: 0 0 215px !important;
        max-width: 215px !important;
        width: 215px !important;
    }
    .shelf-carousel-track .product-info {
        padding: 12px !important;
    }
    .shelf-carousel-track .product-title {
        font-size: 0.88rem !important;
    }
    .shelf-carousel-track .price-new {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 767.98px) {
    .shelf-carousel-track {
        gap: 12px !important;
        padding: 6px 4px 16px 4px !important;
    }
    .shelf-carousel-track > * {
        flex: 0 0 190px !important;
        max-width: 190px !important;
        width: 190px !important;
    }
}

@media (max-width: 576px) {
    .shelf-carousel-track {
        gap: 12px !important;
        padding: 4px 2px 14px 2px !important;
    }
    .shelf-carousel-track > * {
        flex: 0 0 170px !important;
        max-width: 170px !important;
        width: 170px !important;
    }
    .shelf-carousel-track .product-info {
        padding: 10px !important;
    }
    .shelf-carousel-track .product-title {
        font-size: 0.84rem !important;
        min-height: 2.6em !important;
        max-height: 2.6em !important;
        height: 2.6em !important;
    }
    .shelf-carousel-track .product-desc {
        display: none !important;
    }
    .shelf-carousel-track .price-new {
        font-size: 0.95rem !important;
    }
    .shelf-carousel-track .btn-buy-premium {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 8px !important;
    }
    .shelf-carousel-track .btn-buy-premium i {
        font-size: 0.85rem !important;
    }
}

/* 5. Banners Mosaico Intermediários (2x) */
.mosaic-banner-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.mosaic-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.15) !important;
}

.mosaic-banner-card .mosaic-img {
    transition: transform 0.6s ease;
}

.mosaic-banner-card:hover .mosaic-img {
    transform: scale(1.04);
}

.mosaic-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

/* 8. Marcas Parceiras */
.hover-brand-card {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border, rgba(15, 23, 42, 0.08)) !important;
    transition: all 0.25s ease;
}

.hover-brand-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary) !important;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.12) !important;
}

.hover-brand-card img {
    filter: grayscale(100%) opacity(0.8);
    transition: all 0.25s ease;
}

.hover-brand-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ==========================================================================
   SEÇÕES MODULARES DE BANNERS DE MARKETING (5 PRESETS POLIMÓRFICOS)
   ========================================================================== */
.mkt-banner-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    background: #0f172a;
}

.mkt-preset-mosaico_duplo .mkt-banner-card {
    aspect-ratio: 1 / 1;
    min-height: auto !important;
}

.mkt-preset-mosaico_duplo .mkt-banner-card img {
    aspect-ratio: 1 / 1;
    min-height: auto !important;
    object-fit: cover;
}

.mkt-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25) !important;
}

.mkt-banner-card img {
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mkt-banner-card:hover img {
    transform: scale(1.05);
}

.mkt-overlay {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mkt-content-layer {
    z-index: 2;
    pointer-events: auto;
}

.btn-mkt-cta {
    transition: all 0.25s ease;
}

.btn-mkt-cta:hover {
    transform: translateX(4px) translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35) !important;
}

/* Full Bleed Option */
.mkt-full-bleed {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    max-width: 100vw;
}

.mkt-full-bleed .mkt-banner-card {
    border-radius: 0 !important;
}

/* Slider Rotativo (Preset 4) */
.mkt-slider-wrapper {
    touch-action: pan-y;
}

.mkt-slider-track {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.mkt-dot-btn {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mkt-dot-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.mkt-dot-btn.active {
    width: 28px;
    background: var(--primary, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Text Shadows */
.text-shadow-sm {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.max-w-xl {
    max-width: 580px;
}

@media (max-width: 767.98px) {
    .mkt-banner-card {
        border-radius: 16px !important;
    }
    .mkt-banner-full-container .mkt-banner-card {
        min-height: 220px !important;
    }
    .mkt-content-layer {
        padding: 16px 18px !important;
    }
    .mkt-content-layer h2 {
        font-size: 1.25rem !important;
    }
    .mkt-content-layer h3,
    .mkt-content-layer h4 {
        font-size: 1.1rem !important;
    }
    .mkt-content-layer h5 {
        font-size: 0.95rem !important;
    }
    .mkt-content-layer p {
        font-size: 0.78rem !important;
        margin-bottom: 0.75rem !important;
    }
    .btn-mkt-cta {
        padding: 6px 14px !important;
        font-size: 0.72rem !important;
    }
    .mkt-slide {
        min-height: 220px !important;
    }
}

/* ==========================================================================
   MHSYS STOREFRONT - ARCHITECTURE FOR 4 UNIFIED LAYOUT PRESETS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MODELO CLASSICO_SIDEBAR (.layout-mode-classico / .storefront-layout-classico)
   -------------------------------------------------------------------------- */
.layout-mode-classico .storefront-main-container,
.layout-mode-classico .container,
.storefront-layout-classico .container {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}
.layout-mode-classico .sticky-sidebar-panel {
    background: var(--card-bg, rgba(15, 23, 42, 0.65));
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.layout-mode-classico .sticky-sidebar-panel::-webkit-scrollbar {
    width: 4px;
}
.layout-mode-classico .sticky-sidebar-panel::-webkit-scrollbar-track {
    background: transparent;
}
.layout-mode-classico .sticky-sidebar-panel::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 4px;
}
.layout-mode-classico .filter-group-header[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   2. MODELO FULL_WIDTH_MODERNO (.layout-mode-fullwidth / .storefront-layout-fullwidth)
   -------------------------------------------------------------------------- */
.layout-mode-fullwidth .storefront-main-container,
.layout-mode-fullwidth .container,
.storefront-layout-fullwidth .container {
    max-width: 100% !important;
    padding-left: clamp(16px, 3.5vw, 56px);
    padding-right: clamp(16px, 3.5vw, 56px);
}
.layout-mode-fullwidth .hero-banner .container,
.layout-mode-fullwidth .block-marketing-section .container,
.layout-mode-fullwidth .hero-banner-container .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.layout-mode-fullwidth .floating-horizontal-filter-bar .glass-filter-panel {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}
body.light-theme.layout-mode-fullwidth .floating-horizontal-filter-bar .glass-filter-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.layout-mode-fullwidth .dropdown-menu-glass {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}
body.light-theme.layout-mode-fullwidth .dropdown-menu-glass {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.layout-mode-fullwidth .product-card {
    border-radius: 14px;
}

/* --------------------------------------------------------------------------
   3. MODELO EDITORIAL_BOUTIQUE (.layout-mode-editorial / .storefront-layout-editorial)
   -------------------------------------------------------------------------- */
.layout-mode-editorial .storefront-main-container,
.layout-mode-editorial .container,
.storefront-layout-editorial .container {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 40px);
    padding-right: clamp(16px, 3vw, 40px);
}
.layout-mode-editorial .editorial-top-toolbar {
    border-color: var(--border) !important;
}
.layout-mode-editorial .product-card-premium {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.layout-mode-editorial .product-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}
.layout-mode-editorial .product-img-container {
    border-radius: 12px;
    background: rgba(var(--card-bg-rgb, 255, 255, 255), 0.04);
}
.layout-mode-editorial .product-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.layout-mode-editorial .btn-editorial-filter {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-color);
    transition: all 0.2s ease;
}
.layout-mode-editorial .btn-editorial-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   4. MODELO APP_MOBILE_FIRST (.layout-mode-app / .storefront-layout-app)
   -------------------------------------------------------------------------- */
.layout-mode-app,
.storefront-layout-app,
body.template-3 {
    padding-bottom: 85px !important;
}
.layout-mode-app .storefront-main-container,
.layout-mode-app .container,
.storefront-layout-app .container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
}
.layout-mode-app .product-card {
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   STORIES DE CATEGORIAS (CIRCULAR AVATARS COM GRADIENT RING)
   -------------------------------------------------------------------------- */
.category-stories-section {
    padding-top: 4px;
}
.story-bubble-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-bubble-item:hover,
.story-bubble-item:active {
    transform: scale(1.05);
}
.story-avatar-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.85), #ec4899, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.2);
    transition: all 0.25s ease;
}
.story-bubble-item.active-story .story-avatar-ring {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    box-shadow: 0 0 0 2px var(--card-bg), 0 0 16px rgba(var(--primary-rgb), 0.45);
    transform: scale(1.06);
}
.story-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--card-bg, #0f172a);
    padding: 2px;
    overflow: hidden;
}
.story-bubble-label {
    color: var(--text-color, #f8fafc);
    font-size: 11px;
    text-align: center;
    line-height: 1.2;
}
body.light-theme .story-avatar-inner {
    background: #ffffff;
}

/* --------------------------------------------------------------------------
   BARRA DE NAVEGAÇÃO INFERIOR FIXA (BOTTOM NAVIGATION BAR)
   -------------------------------------------------------------------------- */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
body.light-theme .app-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}
.app-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 6px 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.app-bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}
.app-bottom-nav-item:hover,
.app-bottom-nav-item.active {
    color: var(--primary, #8b5cf6);
}
.app-bottom-nav-item.active i {
    transform: translateY(-2px);
}
.app-bottom-nav-wa i {
    color: #22c55e !important;
}

/* --------------------------------------------------------------------------
   CHIPS DE FILTROS ATIVOS (ACTIVE FILTER PILLS)
   -------------------------------------------------------------------------- */
.active-filter-pill {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.25) !important;
    transition: all 0.2s ease;
}
.active-filter-pill .btn-remove-chip {
    color: inherit;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}
.active-filter-pill .btn-remove-chip:hover {
    opacity: 1;
    color: #ef4444;
}

/* --------------------------------------------------------------------------
   ANATOMIA DOS CARDS & TRANSIÇÃO DE 2ª FOTO NO HOVER
   -------------------------------------------------------------------------- */
.product-img-secondary {
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-img-secondary {
    opacity: 1;
}
.product-hover-actions {
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Badges de Desconto e Destaque */
.badge-promocao-percentual {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.02em;
}
.badge-premium-destaque {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}
.badge-premium-novidade {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(var(--primary-rgb), 0.25);
}
.badge-premium-frete {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   SKELETON SHIMMER LOADER (ZERO CLS A 60 FPS)
   -------------------------------------------------------------------------- */
.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer-anim 1.5s infinite;
}
body.light-theme .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.09) 50%, rgba(0, 0, 0, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer-anim 1.5s infinite;
}
@keyframes skeleton-shimmer-anim {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================================
   PRODUCT VARIATIONS & MATRIX RESOLVER (GRADE MATRIZ PAI/FILHO)
   ======================================================== */
.product-variations-container {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.variation-attribute-group {
    margin-bottom: 1.25rem;
}

.variation-attribute-label {
    font-size: 0.825rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted, #64748b);
}

.variation-attribute-label .selected-value {
    color: var(--text-color, #0f172a);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
}

body.dark-theme .variation-attribute-label .selected-value {
    color: #f8fafc;
}

/* Color Swatches */
.variation-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.variation-swatch-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

body.dark-theme .variation-swatch-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

.variation-swatch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.variation-swatch-btn.is-active {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
    transform: scale(1.06);
}

.variation-swatch-btn .swatch-check {
    display: none;
    color: #ffffff;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.variation-swatch-btn.is-active .swatch-check {
    display: inline-block;
}

/* Size Pills & Value Pills */
.variation-pill-btn {
    position: relative;
    min-width: 44px;
    height: 38px;
    padding: 0 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0, 0, 0, 0.15));
    background: var(--bg-card, #ffffff);
    color: var(--text-color, #1e293b);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
}

body.dark-theme .variation-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

.variation-pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.variation-pill-btn.is-active {
    background: var(--primary-gradient, var(--primary));
    border-color: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    font-weight: 700;
}

/* Out of Stock (Diagonal Strike / Red Slash) */
.variation-swatch-btn.is-out-of-stock,
.variation-pill-btn.is-out-of-stock {
    opacity: 0.55;
}

.variation-swatch-btn.is-out-of-stock::after,
.variation-pill-btn.is-out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to top right, transparent calc(50% - 1.5px), #ef4444 50%, transparent calc(50% + 1.5px));
    pointer-events: none;
}

.variation-pill-btn.is-out-of-stock.is-active {
    background: #475569;
    border-color: #ef4444;
}

/* Urgency Badge */
.variation-urgency-badge {
    animation: badgePulse 1.8s infinite;
}

/* ========================================================
   SISTEMA DE BOTÕES DE COMPRA & CTA DE PRODUTO (PREMIUM)
   ======================================================== */
.buy-btn,
.btn-editorial-cta,
#addCartBtn,
#modalAddCartBtn {
    background: linear-gradient(135deg, var(--primary, #137071) 0%, var(--primary-dark, #0d5455) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.96rem !important;
    letter-spacing: 0.02em !important;
    border-radius: 50rem !important;
    box-shadow: 0 8px 20px -4px rgba(var(--primary-rgb, 19, 112, 113), 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

.buy-btn:hover,
.btn-editorial-cta:hover,
#addCartBtn:hover,
#modalAddCartBtn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px -4px rgba(var(--primary-rgb, 19, 112, 113), 0.55), 0 6px 10px -2px rgba(0, 0, 0, 0.08) !important;
    filter: brightness(1.06) !important;
    color: #ffffff !important;
}

.buy-btn:active,
.btn-editorial-cta:active,
#addCartBtn:active,
#modalAddCartBtn:active {
    transform: translateY(0) !important;
    filter: brightness(0.96) !important;
    box-shadow: 0 4px 12px -2px rgba(var(--primary-rgb, 19, 112, 113), 0.4) !important;
}

.buy-btn i,
.btn-editorial-cta i,
#addCartBtn i,
#modalAddCartBtn i {
    transition: transform 0.25s ease;
}

.buy-btn:hover i,
.btn-editorial-cta:hover i,
#addCartBtn:hover i,
#modalAddCartBtn:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Waitlist CTA Button (Avise-me quando chegar) */
.btn-waitlist,
#btnWaitlistTrigger {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.02em !important;
    border-radius: 50rem !important;
    box-shadow: 0 8px 20px -4px rgba(217, 119, 6, 0.45) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.btn-waitlist:hover,
#btnWaitlistTrigger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 26px -4px rgba(217, 119, 6, 0.55) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}

.btn-waitlist:active,
#btnWaitlistTrigger:active {
    transform: translateY(0) !important;
    filter: brightness(0.95) !important;
}

.btn-waitlist i,
#btnWaitlistTrigger i {
    transition: transform 0.25s ease;
}

.btn-waitlist:hover i,
#btnWaitlistTrigger:hover i {
    transform: rotate(15deg) scale(1.15);
}

/* WhatsApp CTA Button */
.wa-btn,
.btn-whatsapp-cta {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    border-radius: 50rem !important;
    box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.38) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.wa-btn:hover,
.btn-whatsapp-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px -4px rgba(37, 211, 102, 0.5) !important;
    filter: brightness(1.05) !important;
    color: #ffffff !important;
}

.wa-btn:active,
.btn-whatsapp-cta:active {
    transform: translateY(0) !important;
    filter: brightness(0.95) !important;
}

/* ========================================================
   SELETOR DE CORES HÍBRIDO (PÍLULA: CÍRCULO SWATCH + NOME)
   ======================================================== */
.variation-color-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Botão Pill Híbrido (Círculo de Cor + Nome) */
.variation-color-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px 6px 8px !important;
    border-radius: 50rem !important; /* Formato Pílula */
    border: 1.5px solid var(--border, rgba(0, 0, 0, 0.12)) !important;
    background: var(--card-bg, #ffffff) !important;
    color: var(--text-color, #1e293b) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.dark-theme .variation-color-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
}

/* Círculo Colorido Interno */
.variation-color-pill .color-swatch-circle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    flex-shrink: 0;
}

body.dark-theme .variation-color-pill .color-swatch-circle {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Estado Hover */
.variation-color-pill:hover {
    border-color: var(--primary, #137071) !important;
    transform: translateY(-1px);
}

/* Estado Ativo / Selecionado */
.variation-color-pill.is-active {
    border-color: var(--primary, #137071) !important;
    background: rgba(var(--primary-rgb, 19, 112, 113), 0.08) !important;
    color: var(--primary, #137071) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 19, 112, 113), 0.25) !important;
    font-weight: 700 !important;
}

/* Estado Esgotado / Sem Estoque */
.variation-color-pill.is-out-of-stock {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    border-style: dashed !important;
    text-decoration: line-through !important;
}
.variation-color-pill.is-out-of-stock .color-swatch-circle {
    filter: grayscale(80%);
}

/* Botão Pill Padrão (Tamanho, Voltagem, etc) */
.variation-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 50rem !important;
    border: 1.5px solid var(--border, rgba(0, 0, 0, 0.12)) !important;
    background: var(--card-bg, #ffffff) !important;
    color: var(--text-color, #1e293b) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none;
    min-width: 44px;
}

.variation-pill-btn:hover {
    border-color: var(--primary, #137071) !important;
    transform: translateY(-1px);
}

.variation-pill-btn.is-active {
    border-color: var(--primary, #137071) !important;
    background: rgba(var(--primary-rgb, 19, 112, 113), 0.08) !important;
    color: var(--primary, #137071) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 19, 112, 113), 0.25) !important;
    font-weight: 700 !important;
}

.variation-pill-btn.is-out-of-stock {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    border-style: dashed !important;
    text-decoration: line-through !important;
}

/* ========================================================
   SELETORES DE VARIAÇÃO COMPACTOS NO QUICKVIEW MODAL
   ======================================================== */
.quickview-variations-compact {
    max-height: 145px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 8px !important;
}

.quickview-variations-compact::-webkit-scrollbar {
    width: 4px;
}

.quickview-variations-compact::-webkit-scrollbar-track {
    background: transparent;
}

.quickview-variations-compact::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

body.dark-theme .quickview-variations-compact::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

.quickview-variations-compact .qv-attr-group {
    margin-bottom: 6px !important;
}

.quickview-variations-compact .qv-attr-header {
    margin-bottom: 3px !important;
    line-height: 1.2;
}

.quickview-variations-compact .qv-attr-name {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.quickview-variations-compact .selected-variation-value {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

.quickview-variations-compact .qv-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px !important;
}

/* Skeleton Shimmer & Loading State for Quickview Variations */
@keyframes qvShimmerAnim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(0,0,0,0.06) 25%, rgba(0,0,0,0.14) 50%, rgba(0,0,0,0.06) 75%) !important;
    background-size: 200% 100% !important;
    animation: qvShimmerAnim 1.4s infinite ease-in-out !important;
}

.quickview-variations-skeleton {
    width: 100%;
    animation: fadeIn 0.2s ease;
}

/* Micro-Pill de Cores no Quickview */
.variation-color-pill.qv-color-pill {
    padding: 3px 10px 3px 6px !important;
    height: 30px !important;
    min-height: 30px !important;
    gap: 6px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    border: 1.5px solid rgba(0,0,0,0.12) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.variation-color-pill.qv-color-pill:hover {
    border-color: var(--primary, #137071) !important;
    transform: translateY(-1px);
}

.variation-color-pill.qv-color-pill .color-swatch-circle {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0,0,0,0.18) !important;
    display: inline-block !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4) !important;
}

.variation-color-pill.qv-color-pill .color-swatch-name {
    font-size: 0.74rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Micro-Pill de Atributo/Tamanho no Quickview */
.variation-pill-btn.qv-pill-btn {
    padding: 4px 12px !important;
    height: 32px !important;
    min-height: 32px !important;
    min-width: 44px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    border: 1.5px solid rgba(0,0,0,0.12) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

.variation-pill-btn.qv-pill-btn:hover {
    border-color: var(--primary, #137071) !important;
    color: var(--primary, #137071) !important;
    transform: translateY(-1px);
}

/* Estado Ativo com Anel de Foco e Destaque Visual */
.variation-color-pill.qv-color-pill.is-active {
    border-color: var(--primary, #137071) !important;
    outline: 2px solid var(--primary, #137071) !important;
    outline-offset: 2px !important;
    background-color: rgba(var(--primary-rgb, 19, 112, 113), 0.08) !important;
    font-weight: 700 !important;
}

.variation-pill-btn.qv-pill-btn.is-active {
    border-color: var(--primary, #137071) !important;
    outline: 2px solid var(--primary, #137071) !important;
    outline-offset: 2px !important;
    background-color: var(--primary, #137071) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb, 19, 112, 113), 0.3) !important;
}

/* Estado Esgotado com Linha Diagonal e Opacidade */
.variation-pill-btn.qv-pill-btn.is-out-of-stock,
.variation-color-pill.qv-color-pill.is-out-of-stock {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    position: relative !important;
    text-decoration: line-through !important;
    border-style: dashed !important;
}


/* ==========================================================================
   BOTÃO DISCRETO DE ADIÇÃO RÁPIDA (+) - QUICK-ADD SILENCIOSO
   ========================================================================== */
.btn-quick-add-plus {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(var(--primary-rgb, 19, 112, 113), 0.25) !important;
    background: rgba(var(--primary-rgb, 19, 112, 113), 0.06) !important;
    color: var(--primary, #137071) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.btn-quick-add-plus:hover {
    background: var(--primary, #137071) !important;
    border-color: var(--primary, #137071) !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 19, 112, 113), 0.3) !important;
}

.btn-quick-add-plus:active {
    transform: scale(0.94) !important;
}

/* Estado de Sucesso com Checkmark Verde */
.btn-quick-add-plus.success-state {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: scale(1.15) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45) !important;
}

/* Botão Comprar com Modal */
.btn-comprar-modal {
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.02em;
}

.btn-comprar-modal:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 19, 112, 113), 0.35) !important;
}

.btn-comprar-modal:active {
    transform: scale(0.98) !important;
}

/* ==========================================================================
   MODAL PÓS-COMPRA INTERATIVO (#modalPosCompraDecisao)
   ========================================================================== */
.modal-pos-compra .modal-pos-compra-dialog {
    max-width: 580px;
    width: 94%;
    margin: 2rem auto;
}

.modal-pos-compra .pos-compra-content {
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
}

.dark-mode .modal-pos-compra .pos-compra-content,
[data-theme="dark"] .modal-pos-compra .pos-compra-content {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6) !important;
}

.pos-compra-check-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

/* 1. GAMIFICAÇÃO DE FRETE GRÁTIS */
.pos-compra-shipping-gamification {
    background: linear-gradient(135deg, rgba(var(--primary-rgb, 19, 112, 113), 0.06), rgba(16, 185, 129, 0.09)) !important;
    border: 1px solid rgba(var(--primary-rgb, 19, 112, 113), 0.18) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.dark-mode .pos-compra-shipping-gamification,
[data-theme="dark"] .pos-compra-shipping-gamification {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pos-compra-progress-bg {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.pos-compra-progress-bar {
    background: linear-gradient(90deg, var(--primary, #137071), #10b981) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

/* 2. MINI RESUMO DO PRODUTO */
.pos-compra-item-summary {
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dark-mode .pos-compra-item-summary,
[data-theme="dark"] .pos-compra-item-summary {
    background: rgba(30, 41, 59, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .pos-compra-item-summary #posCompraItemNome,
[data-theme="dark"] .pos-compra-item-summary #posCompraItemNome,
.dark-mode .pos-compra-item-summary #posCompraItemPreco,
[data-theme="dark"] .pos-compra-item-summary #posCompraItemPreco {
    color: #f1f5f9 !important;
}

/* 3. VITRINE DE VENDA CRUZADA (CROSS-SELL) */
.pos-compra-cross-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.pos-compra-cross-item:hover {
    border-color: var(--primary, #137071) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.dark-mode .pos-compra-cross-item,
[data-theme="dark"] .pos-compra-cross-item {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .pos-compra-cross-item a,
[data-theme="dark"] .pos-compra-cross-item a {
    color: #f1f5f9 !important;
}

.btn-add-cross-modal {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-add-cross-modal:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(var(--primary-rgb, 19, 112, 113), 0.25);
}

/* ==========================================================================
   MOBILE BOTTOM SHEET DRAWER MODE (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    .modal-pos-compra.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .modal-pos-compra.show .modal-dialog {
        transform: translateY(0) !important;
    }

    .modal-pos-compra .modal-dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        z-index: 1060;
    }

    .modal-pos-compra .pos-compra-content {
        border-radius: 28px 28px 0 0 !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
    }

    /* Puxador Visual de Gaveta no Topo */
    .modal-pos-compra .pos-compra-content::before {
        content: '';
        display: block;
        width: 44px;
        height: 5px;
        background: rgba(0, 0, 0, 0.22);
        border-radius: 6px;
        margin: 10px auto 4px auto;
    }

    .dark-mode .modal-pos-compra .pos-compra-content::before,
    [data-theme="dark"] .modal-pos-compra .pos-compra-content::before {
        background: rgba(255, 255, 255, 0.3);
    }

    .modal-pos-compra .modal-header {
        padding-top: 0.5rem !important;
        padding-bottom: 0.25rem !important;
    }

    .modal-pos-compra .pos-compra-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-pos-compra .pos-compra-actions .btn {
        width: 100%;
        min-height: 44px;
        font-size: 0.88rem !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
    }

    .pos-compra-cross-sell-list {
        max-height: 240px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-right: 2px;
    }

    .pos-compra-cross-sell-list::-webkit-scrollbar {
        width: 4px;
    }

    .pos-compra-cross-sell-list::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }

    .pos-compra-cross-item {
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .pos-compra-cross-item .pos-compra-cross-thumb {
        width: 42px !important;
        height: 42px !important;
    }

    .btn-add-cross-modal {
        padding: 5px 10px !important;
        font-size: 0.72rem !important;
    }
}

/* ==========================================================================
   TRILHO DE SIMILARES EM PRODUCT.PHP (UNIFICADO COM PRODUCT-CARD-PREMIUM)
   ========================================================================== */
.related-carousel-track {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding: 10px 4px 20px 4px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.related-carousel-track::-webkit-scrollbar {
    display: none !important;
}

.related-card-item-wrapper .product-card-premium {
    height: 100% !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   STOREFRONT BLOCK ENGINE: ESTILOS DINÂMICOS, CONTAINERS & ANIMAÇÕES 60 FPS
   ========================================================================== */

/* Espaçamentos Verticais / Altura (Harmonioso, Proporcional e com Respiro Visual) */
.storefront-block.block-spacing-auto {
    margin-bottom: 2.5rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.storefront-block.block-spacing-compacto {
    margin-bottom: 1.5rem !important;
    padding-top: 0.15rem !important;
    padding-bottom: 0.15rem !important;
}

.storefront-block.block-spacing-normal {
    margin-bottom: 2.75rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.storefront-block.block-spacing-confortavel {
    margin-bottom: 4rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.storefront-block:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

@media (max-width: 767.98px) {
    .storefront-block.block-spacing-auto {
        margin-bottom: 2.15rem !important;
        padding-top: 0.15rem !important;
        padding-bottom: 0.15rem !important;
    }
    .storefront-block.block-spacing-compacto {
        margin-bottom: 1.35rem !important;
        padding-top: 0.1rem !important;
        padding-bottom: 0.1rem !important;
    }
    .storefront-block.block-spacing-normal {
        margin-bottom: 2.25rem !important;
        padding-top: 0.15rem !important;
        padding-bottom: 0.15rem !important;
    }
    .storefront-block.block-spacing-confortavel {
        margin-bottom: 3.25rem !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }
}

@media (max-width: 575.98px) {
    .storefront-block.block-spacing-auto {
        margin-bottom: 2rem !important;
    }
    .storefront-block.block-spacing-compacto {
        margin-bottom: 1.25rem !important;
    }
    .storefront-block.block-spacing-normal {
        margin-bottom: 2rem !important;
    }
    .storefront-block.block-spacing-confortavel {
        margin-bottom: 2.85rem !important;
    }
}

/* Largura dos Blocos */
.storefront-block.block-width-full {
    width: 100% !important;
    max-width: 100% !important;
}

/* ==========================================================================
   ALINHAMENTO & POSICIONAMENTO DOS BLOCOS DA VITRINE (Visual Merchandising)
   ========================================================================== */

/* 1. Alinhamento à Esquerda (Padrão Ocidental / Editorial) */
.storefront-block.block-align-esquerda .block-header-wrap {
    text-align: left;
    justify-content: space-between;
}
.storefront-block.block-align-esquerda .block-title-wrap {
    text-align: left;
    margin-right: auto;
}
.storefront-block.block-align-esquerda .block-main-heading {
    text-align: left;
    justify-content: flex-start;
}

/* 2. Alinhamento ao Centro (Simétrico / Clássico de Vitrine) */
.storefront-block.block-align-centro .block-header-wrap {
    text-align: center;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto;
    margin-right: auto;
}
.storefront-block.block-align-centro .block-title-wrap {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: center !important;
}
.storefront-block.block-align-centro .block-main-heading {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}
.storefront-block.block-align-centro .carousel-nav-arrows {
    justify-content: center !important;
}
.storefront-block.block-align-centro .flash-sale-header .flash-fire-badge {
    margin-left: auto;
    margin-right: auto;
}
.storefront-block.block-align-centro .trust-item {
    justify-content: center !important;
    text-align: center !important;
}

/* 3. Alinhamento à Direita (Assimétrico / Foco Visual) */
.storefront-block.block-align-direita .block-header-wrap {
    text-align: right;
    justify-content: space-between;
    flex-direction: row-reverse;
}
.storefront-block.block-align-direita .block-title-wrap {
    text-align: right !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-items: flex-end !important;
}
.storefront-block.block-align-direita .block-main-heading {
    justify-content: flex-end !important;
    text-align: right !important;
}
.storefront-block.block-align-direita .carousel-nav-arrows {
    justify-content: flex-start !important;
}
.storefront-block.block-align-direita .trust-item {
    justify-content: flex-end !important;
    text-align: right !important;
}

@media (max-width: 767.98px) {
    .storefront-block.block-align-centro .block-header-wrap,
    .storefront-block.block-align-direita .block-header-wrap {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Base de Transição para Animações com Intersection Observer */
.storefront-block[data-ecom-anim] {
    will-change: transform, opacity;
}

/* 1. Sem Animação (Estático) */
.storefront-block[data-ecom-anim="sem_animacao"],
.storefront-block[data-ecom-anim="nenhum"] {
    opacity: 1 !important;
    transform: none !important;
}

/* ==========================================================================
   EFEITOS ULTRA-PREMIUM (60 FPS HARDWARE-ACCELERATED)
   ========================================================================== */

/* 1. Dobra Cinematográfica 3D */
.storefront-block[data-ecom-anim="dobra_3d"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: perspective(1200px) rotateX(25deg) translateY(60px) scale(0.94);
    transform-origin: top center;
}
.storefront-block[data-ecom-anim="dobra_3d"].ecom-anim-visible {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease-out;
}

/* 2. Descompressão & Glow Neon */
.storefront-block[data-ecom-anim="glow_neon"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    filter: brightness(1.4) drop-shadow(0 0 25px rgba(var(--primary-rgb), 0.6));
}
.storefront-block[data-ecom-anim="glow_neon"].ecom-anim-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: brightness(1) drop-shadow(0 0 0 transparent);
    transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.6s ease, filter 0.9s ease-out;
}

/* 3. Vidro Líquido & Refração */
.storefront-block[data-ecom-anim="vidro_liquido"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.storefront-block[data-ecom-anim="vidro_liquido"].ecom-anim-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.75s ease;
}

/* 4. Cortina Cinética Clip-Path */
.storefront-block[data-ecom-anim="clip_path_curtain"]:not(.ecom-anim-visible) {
    opacity: 0;
    clip-path: inset(0 50% 0 50% round 16px);
    transform: scale(0.97);
}
.storefront-block[data-ecom-anim="clip_path_curtain"].ecom-anim-visible {
    opacity: 1;
    clip-path: inset(0 0% 0 0% round 0px);
    transform: scale(1);
    transition: clip-path 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
}

/* 5. Elevação Isométrica com Mola */
.storefront-block[data-ecom-anim="isometria_mola"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: translateY(70px) scale(0.92);
}
.storefront-block[data-ecom-anim="isometria_mola"].ecom-anim-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

/* ==========================================================================
   EFEITOS CLÁSSICOS & TRANSIÇÕES
   ========================================================================== */

/* Fade In */
.storefront-block[data-ecom-anim="fade_in"]:not(.ecom-anim-visible) {
    opacity: 0;
}
.storefront-block[data-ecom-anim="fade_in"].ecom-anim-visible {
    opacity: 1;
    transition: opacity 0.7s ease-out;
}

/* Slide Up */
.storefront-block[data-ecom-anim="slide_up"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: translateY(45px);
}
.storefront-block[data-ecom-anim="slide_up"].ecom-anim-visible {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Zoom In */
.storefront-block[data-ecom-anim="zoom_in"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: scale(0.88);
}
.storefront-block[data-ecom-anim="zoom_in"].ecom-anim-visible {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Slide Left */
.storefront-block[data-ecom-anim="slide_left"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: translateX(60px);
}
.storefront-block[data-ecom-anim="slide_left"].ecom-anim-visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Slide Right */
.storefront-block[data-ecom-anim="slide_right"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: translateX(-60px);
}
.storefront-block[data-ecom-anim="slide_right"].ecom-anim-visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Flip 3D */
.storefront-block[data-ecom-anim="flip_3d"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: perspective(800px) rotateY(25deg) scale(0.95);
}
.storefront-block[data-ecom-anim="flip_3d"].ecom-anim-visible {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg) scale(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Bounce In */
.storefront-block[data-ecom-anim="bounce_in"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: scale(0.65);
}
.storefront-block[data-ecom-anim="bounce_in"].ecom-anim-visible {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.85s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.5s ease;
}

/* Rotate In */
.storefront-block[data-ecom-anim="rotate_in"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: rotate(-5deg) scale(0.92);
}
.storefront-block[data-ecom-anim="rotate_in"].ecom-anim-visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Blur In */
.storefront-block[data-ecom-anim="blur_in"]:not(.ecom-anim-visible) {
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.97);
}
.storefront-block[data-ecom-anim="blur_in"].ecom-anim-visible {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
    transition: filter 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* Scale Up */
.storefront-block[data-ecom-anim="scale_up"]:not(.ecom-anim-visible) {
    opacity: 0;
    transform: scale(0.9);
}
.storefront-block[data-ecom-anim="scale_up"].ecom-anim-visible {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

/* ==========================================================================
   QUICKVIEW & VARIATION FOCUS / ANCHORING CRO ENHANCEMENTS
   ========================================================================== */

/* Animação de pulso luminoso na grade de variações ao abrir via card */
@keyframes variationFocusGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.5);
        background-color: rgba(var(--primary-rgb), 0.08);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0.15);
        background-color: rgba(var(--primary-rgb), 0.04);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0);
        background-color: transparent;
    }
}

.variation-focus-pulse {
    border-radius: 12px;
    padding: 8px !important;
    animation: variationFocusGlow 1.4s ease-out;
    transition: all 0.3s ease;
}

/* Otimização de rolagem e Bottom Sheet do Quickview no Mobile */
@media (max-width: 767.98px) {
    #productModal .modal-dialog {
        margin: 0;
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    #productModal .modal-content {
        border-radius: 24px 24px 0 0 !important;
        max-height: 88vh;
        display: flex;
        flex-direction: column;
    }

    #productModal .modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 24px !important;
    }

    /* Reduz altura da foto no mobile para dar visão imediata das variações */
    #productModal #modalProductImgWrapper,
    #productModal .modal-product-img-wrapper {
        max-height: 220px !important;
        margin-bottom: 12px;
    }
}

/* ==========================================================================
   MHLIVRE MARKETPLACE REGIONAL & C2C MARAVILHA - SC DESIGN TOKENS & BADGES
   ========================================================================== */
:root {
    --mhlivre-primary: var(--primary-color, #FFE600);
    --mhlivre-navy: #0B192C;
    --mhlivre-success-pix: #00C06D;
    --mhlivre-amber-light: #FFF4E5;
    --mhlivre-navy-light: #162B47;
}

/* Botão Mestre MhLivre (Header & Vitrine CTA) */
.btn-mhlivre-primary {
    background-color: var(--primary-color, var(--mhlivre-primary, #FFE600)) !important;
    border-color: var(--primary-color, var(--mhlivre-primary, #FFE600)) !important;
    color: var(--primary-contrast, var(--primary-contrast-color, #0B192C)) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 255, 230, 0), 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-mhlivre-primary:hover {
    background-color: var(--primary-hover, var(--primary-color, #FFE600)) !important;
    border-color: var(--primary-hover, var(--primary-color, #FFE600)) !important;
    color: var(--primary-contrast, var(--primary-contrast-color, #0B192C)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 255, 230, 0), 0.5) !important;
}

/* Selos Comunitários e Badges de Confiança C2C */
.badge-mhlivre-local {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background-color: #0B192C;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2rem;
    box-shadow: 0 2px 6px rgba(11, 25, 44, 0.25);
    letter-spacing: 0.02em;
}

.badge-mhlivre-local i {
    color: var(--primary-color, #FFE600);
}

.badge-mhlivre-taxazero {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background-color: #00C06D;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2rem;
    box-shadow: 0 2px 6px rgba(0, 192, 109, 0.3);
    letter-spacing: 0.02em;
}

.badge-mhlivre-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background-color: rgba(37, 211, 102, 0.12);
    border: 1px solid #25D366;
    color: #128C7E;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 2rem;
}

.badge-mhlivre-retirada {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background-color: #E2E8F0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 2rem;
}

.badge-tempo-anuncio {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 2rem;
    letter-spacing: 0.02em;
}

.badge-tempo-anuncio i {
    color: #38bdf8;
    font-size: 0.7rem;
}

/* ==========================================================================
   OTIMIZAÇÃO RESPONSIVA DAS PÁGINAS DE PRODUTO (SINGLE) EM MOBILE & TABLET
   Elimina margens e paddings excessivos para maximizar o aproveitamento de tela
   ========================================================================== */

.breadcrumb-wrapper-mobile {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.breadcrumb-wrapper-mobile::-webkit-scrollbar {
    display: none;
}

.product-thumbnails-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.product-thumbnails-scroll::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767.98px) {
    /* 1. Recuo otimizado do container principal (elimina laterais espremidas) */
    main.container.py-4,
    main.container {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 8px !important;
        padding-bottom: 24px !important;
        max-width: 100% !important;
    }

    /* 2. Details Container: substitui padding de 40px por 12px fluido */
    .details-container {
        padding: 14px 10px !important;
        margin-top: 6px !important;
        margin-bottom: 16px !important;
        border-radius: 16px !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    /* 3. Grid do Produto: substitui gutters pesados (g-5) por espaçamento compacto */
    .product-single-grid,
    .details-container .row.g-5,
    .details-container .row.g-4 {
        --bs-gutter-x: 0.5rem !important;
        --bs-gutter-y: 0.875rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .product-single-grid > [class*="col-"],
    .details-container .row > [class*="col-"] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* 4. Breadcrumbs Horizontais Compactos */
    nav[aria-label="breadcrumb"] {
        margin-bottom: 6px !important;
    }

    .breadcrumb {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px 6px !important;
    }

    .breadcrumb-item {
        white-space: nowrap !important;
    }

    /* 5. Galeria de Imagens do Produto no Mobile */
    .details-container .main-product-img-wrapper {
        border-radius: 12px !important;
        margin-bottom: 8px !important;
        max-height: 380px !important;
        width: 100% !important;
        background: #ffffff;
    }

    .details-container .main-product-img {
        max-height: 360px !important;
        object-fit: contain !important;
    }

    /* Miniaturas em trilha deslizante horizontal touch */
    .product-thumbnails-scroll,
    .details-container .d-flex.flex-wrap.gap-2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        padding-bottom: 4px !important;
        margin-bottom: 8px !important;
    }

    .details-container .thumbnail-img {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    /* 6. Título do Produto & Badges */
    .details-container h1,
    .details-container h1.display-6 {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        word-break: break-word !important;
    }

    .badge-premium-category,
    .details-container .badge {
        font-size: 0.72rem !important;
        padding: 4px 8px !important;
    }

    .details-container .text-slate-500,
    .details-container .text-muted.small {
        font-size: 0.75rem !important;
    }

    /* 7. Selo de Vendedor Parceiro (Multi-Vendor C2C) */
    .seller-store-badge-card {
        padding: 10px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    .seller-store-badge-card .seller-icon-circle {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
    }

    /* 8. Bloco de Preço & Economia */
    .details-container .price-box,
    .details-container .price-box-promo {
        padding: 10px 12px !important;
        margin: 10px 0 !important;
        border-radius: 12px !important;
        gap: 4px !important;
    }

    .details-container .price-active,
    .details-container .price-active.fw-extrabold {
        font-size: 1.65rem !important;
        line-height: 1.15 !important;
    }

    .details-container .price-original {
        font-size: 0.85rem !important;
    }

    .details-container .price-box-promo .economy-badge {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        margin-top: 2px !important;
    }

    /* 9. Botões de Compra & Negociação CTA */
    .details-container .buy-btn,
    .details-container .wa-btn,
    .details-container .btn-waitlist,
    .details-container .btn-lg {
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
        width: 100% !important;
        min-height: 44px !important;
    }

    /* 10. Grade de Variações de Produto */
    .product-variations-container {
        margin-bottom: 10px !important;
    }

    .variation-attribute-group {
        margin-bottom: 8px !important;
    }

    .variation-color-pills-grid,
    .variation-btn-pills-grid {
        gap: 5px !important;
    }

    .variation-btn-pill {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        min-height: 34px !important;
        border-radius: 8px !important;
    }

    .variation-color-pill {
        width: 34px !important;
        height: 34px !important;
    }

    /* 11. Widget de Simulação de Frete */
    .product-freight-calculator-widget {
        padding: 10px 12px !important;
        margin-top: 10px !important;
        border-radius: 12px !important;
    }

    .product-freight-calculator-widget .input-group-sm > .form-control,
    .product-freight-calculator-widget .input-group-sm > .btn {
        min-height: 42px !important;
    }

    /* 12. Ficha Técnica & Tabelas de Especificações */
    .details-container .table {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }

    .details-container .table td {
        padding: 6px 8px !important;
    }

    /* 13. Descrições */
    .product-desc-short,
    .product-desc-full {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }

    /* 14. Compartilhamento e Ações Secundárias */
    .product-compare-action-wrapper {
        margin-top: 8px !important;
    }

    .details-container .mt-4.p-3.rounded-4 {
        padding: 10px 12px !important;
        margin-top: 10px !important;
        border-radius: 12px !important;
    }

    .details-container .mt-4.p-3.rounded-4 .btn {
        padding: 6px 10px !important;
        font-size: 0.78rem !important;
    }

    /* 15. Cards de Layouts Cinema, Editorial e Sticky */
    .card.border-0.p-4.rounded-4.shadow-sm,
    .editorial-sticky-panel,
    .editorial-gallery-container {
        padding: 12px 10px !important;
        border-radius: 14px !important;
    }
}

/* ==========================================================================
   BLINDAGEM CONTRA AUTO-ZOOM INVOLUNTÁRIO NO SAFARI IOS (IPHONE / IPAD)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .details-container input,
    .details-container select,
    .details-container textarea,
    #productFreightCepInput,
    .product-freight-calculator-widget input,
    .variation-select-input,
    .form-control,
    .form-select,
    .input-group input,
    .input-group select {
        font-size: 16px !important;
        transform: translateZ(0);
        -webkit-text-size-adjust: 100%;
    }

    button,
    a,
    .btn,
    .variation-btn-pill,
    .variation-color-pill,
    .thumbnail-img {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==========================================================================
   MOBILE NAVBAR & ACTION BAR (2-ROW MODERN LAYOUT)
   ========================================================================== */
.mobile-header-container {
    width: 100%;
}
.mobile-header-row-top {
    min-height: 40px;
}
.mobile-header-row-bottom {
    min-height: 42px;
}
.mobile-search-expanded-container {
    flex: 1 1 auto;
    min-width: 0;
}
.mobile-search-input-wrapper {
    position: relative;
    width: 100%;
}
.mobile-search-bar-input {
    width: 100% !important;
    height: 40px !important;
    border-radius: 50px !important;
    padding-left: 40px !important;
    padding-right: 32px !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15)) !important;
    color: #ffffff !important;
}
body.light-theme .mobile-search-bar-input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}
.mobile-search-bar-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2) !important;
    outline: none !important;
}
.mobile-search-bar-input::placeholder {
    color: rgba(148, 163, 184, 0.8) !important;
    font-size: 0.82rem;
}
body.light-theme .mobile-search-bar-input::placeholder {
    color: #94a3b8 !important;
}
.btn-clear-search-mobile {
    z-index: 5;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-vendedor-mobile {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
}
.btn-mobile-departments-trigger {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}
.mobile-header-actions-right {
    margin-left: auto !important;
}
@media screen and (max-width: 768px) {
    .mobile-search-bar-input {
        font-size: 16px !important; /* Blindagem Safari iOS anti-zoom */
    }
}