/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
    /* Colors - EvoHub CECAPE palette */
    --bg-main: #EEF2F7;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-solid: #FFFFFF;
    --bg-card-hover: rgba(255, 255, 255, 0.9);
    --bg-nav: rgba(255, 255, 255, 0.8);
    --overlay-bg: rgba(15, 23, 42, 0.85);

    /* Accents */
    --accent-blue: #1A56E8; /* Soberano Electric Blue */
    --accent-blue-glow: rgba(26, 86, 232, 0.15);
    --accent-gold: #00AAFF; /* Soberano Cyan */
    --accent-gold-glow: rgba(0, 170, 255, 0.2);
    --accent-whatsapp: #25D366;
    
    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    
    /* Borders & Glass */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-border-dark: rgba(0, 0, 0, 0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    
    /* Shadow */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Aliases used throughout — accent-emerald maps to brand blue */
    --accent-emerald: #1A56E8;
    --accent-emerald-glow: rgba(26, 86, 232, 0.15);
    --accent-orange: #00AAFF; /* remapped: laranja vira ciano Soberano */
    --accent-purple: #1A3A8F; /* remapped: roxo vira navy Soberano */
    --glass-bg: rgba(255, 255, 255, 0.05);

    /* Borders */
    --border-color: rgba(26, 86, 232, 0.12);
    --border-color-hover: rgba(26, 86, 232, 0.3);
}

/* ==========================================================================
   Toast notifications & Confirm quote modal
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--accent-emerald);
}

.toast-success i {
    color: var(--accent-emerald);
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-error i {
    color: #EF4444;
}

.toast-info {
    border-left: 4px solid var(--accent-blue);
}

.toast-info i {
    color: var(--accent-blue);
}

.modal-sm {
    max-width: 440px !important;
    text-align: center;
    padding: 36px 32px 28px;
}

.modal-icon-big {
    width: 88px;
    height: 88px;
    border-radius: 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.45);
    animation: pulse-whatsapp-icon 2s infinite;
}

@keyframes pulse-whatsapp-icon {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 22px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.modal-icon-big i {
    width: 44px;
    height: 44px;
    color: #fff;
}

.modal-sm h3 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #075e54;
    margin-bottom: 12px;
}

.modal-sm p {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 28px;
    font-weight: 600;
}

.modal-sm p strong {
    color: #25D366;
    font-weight: 900;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    flex: 1;
    max-width: 200px;
    justify-content: center;
}

@media (max-width: 480px) {
    .toast-container {
        top: 70px;
        right: 12px;
        left: 12px;
    }

    .toast {
        max-width: 100%;
        font-size: 0.82rem;
        padding: 12px 16px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        max-width: 100%;
    }
}

/* ==========================================================================
   Mobile product modal final pass
   ========================================================================== */
.modal-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .main-header,
    .categories-nav {
        position: static !important;
        top: auto !important;
    }

    .modal.active {
        align-items: center;
        padding: 6px;
    }

    .modal-container {
        width: calc(100vw - 12px) !important;
        max-height: 96dvh !important;
        border-radius: 18px;
    }

    .modal-body-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto minmax(0, 1fr);
        max-height: 96dvh !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .modal-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        position: sticky;
        top: 0;
        z-index: 18;
        padding: 9px 50px 8px 10px;
        background: var(--bg-main);
        border-bottom: 1px solid var(--glass-border);
    }

    .modal-mobile-tabs .tab-btn {
        min-height: 34px;
        padding: 6px 4px;
        border-radius: 10px;
        font-size: 0.68rem;
        font-weight: 800;
        gap: 3px;
        white-space: nowrap;
    }

    .modal-mobile-tabs .tab-btn i {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .modal-details .modal-tabs-header {
        display: none !important;
    }

    .modal-slider {
        min-height: 210px !important;
        height: 34dvh;
        max-height: 270px;
        width: 100%;
        overflow: hidden;
    }

    .slider-wrapper {
        height: 100%;
    }

    .slider-slide {
        height: 100%;
        padding: 14px 46px 28px;
    }

    .slider-slide img {
        max-height: calc(34dvh - 42px) !important;
        max-width: 100%;
        object-fit: contain;
    }

    .slider-nav {
        display: flex !important;
        width: 36px;
        height: 36px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(15, 23, 42, 0.58);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
        z-index: 16;
    }

    .slider-nav.prev {
        left: 8px;
    }

    .slider-nav.next {
        right: 8px;
    }

    .slider-nav i {
        width: 19px;
        height: 19px;
    }

    .slider-dots {
        bottom: 8px !important;
        max-width: calc(100% - 80px);
        overflow: hidden;
    }

    .modal-details {
        padding: 14px 16px 18px !important;
        gap: 12px;
        border-top: 1px solid var(--glass-border);
    }

    .modal-details .card-title {
        font-size: 1.4rem !important;
        line-height: 1.12;
        margin-bottom: 4px !important;
    }

    .modal-tabs-container {
        height: auto;
    }

    .modal-tabs-content {
        overflow: visible;
        padding-right: 0;
    }

    .tab-pane {
        scroll-margin-top: 58px;
    }
}

@media (max-width: 380px) {
    .modal-mobile-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 48px;
    }
}

[data-theme="dark"] {
    --bg-main: #020617; /* Deep Navy */
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-solid: #111B2E;
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-nav: rgba(2, 6, 23, 0.8);
    --overlay-bg: rgba(2, 6, 23, 0.9);
    
    --accent-blue: #3B82F6; /* Brighter Blue for Dark Mode */
    --accent-blue-glow: rgba(59, 130, 246, 0.2);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-dark: rgba(255, 255, 255, 0.05);

    --accent-emerald: #3B82F6;
    --accent-emerald-glow: rgba(59, 130, 246, 0.2);
    --accent-orange: #00AAFF;
    --accent-purple: #1A3A8F;
    --glass-bg: rgba(15, 23, 42, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-hover: rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 68%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

    /* Background Glowing Shapes & Watermark */
    .bg-grid {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(var(--glass-border-dark) 1px, transparent 1px);
        background-size: 40px 40px;
        z-index: -2;
        opacity: 0.5;
    }

    .bg-shape {
        position: fixed;
        border-radius: 50%;
        filter: blur(120px);
        z-index: -1;
        opacity: 0.4;
        pointer-events: none;
    }

    .shape-1 {
        top: -10%;
        right: -5%;
        width: 50vw;
        height: 50vw;
        background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
    }

    .shape-2 {
        bottom: -10%;
        left: -5%;
        width: 60vw;
        height: 60vw;
        background: radial-gradient(circle, var(--accent-gold-glow) 0%, transparent 70%);
    }

    /* Watermark Branding */
    .bg-watermark {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-15deg);
        font-size: 15vw;
        font-weight: 900;
        color: var(--accent-blue);
        opacity: 0.03;
        white-space: nowrap;
        pointer-events: none;
        z-index: -2;
        user-select: none;
    }

/* ==========================================================================
   Navigation & Theme Toggle
   ========================================================================== */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: linear-gradient(135deg, #081428 0%, #0D1F50 60%, #1A3A8F 100%);
        border-bottom: 2px solid rgba(26, 86, 232, 0.55);
        box-shadow: 0 4px 28px rgba(8, 20, 40, 0.55);
        transition: var(--transition), transform 0.3s ease;
    }

    .main-header.is-hidden {
        transform: translateY(-100%);
    }

@media (min-width: 769px) {
    .categories-nav.is-hidden {
        transform: translateY(-130%);
    }
}

    .header-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 12px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .logo-area {
        display: flex;
        align-items: center;
        gap: 14px;
        flex-shrink: 0;
    }

    .main-logo {
        height: 52px;
        width: auto;
        transition: var(--transition);
        filter: drop-shadow(0 0 14px rgba(0, 170, 255, 0.35));
    }

    .main-logo:hover {
        transform: scale(1.06);
        filter: drop-shadow(0 0 22px rgba(0, 170, 255, 0.6));
    }

    .header-text h1 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: -0.3px;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    }

    .header-text p {
        font-size: 0.6rem;
        color: rgba(0, 170, 255, 0.85);
        text-transform: uppercase;
        letter-spacing: 2.5px;
        font-weight: 600;
    }

/* --- New Artistic Logo Styles --- */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    padding: 5px 0;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--accent-emerald-glow));
    transition: var(--transition-normal);
}

.logo-container:hover .logo-svg {
    transform: rotate(10deg);
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    filter: blur(20px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    position: relative;
}

.logo-dental {
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.logo-jua {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue), var(--text-primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

.logo-underline {
    height: 3px;
    width: 0%;
    background: var(--accent-blue);
    margin-top: 4px;
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo-underline {
    width: 100%;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- End New Artistic Logo Styles --- */

.nav-subtitle-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-subtitle-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.nav-logo-sub {
    height: 18px;
    object-fit: contain;
    opacity: 0.8;
}

.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
}

.highlight {
    color: var(--accent-emerald);
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
    /* ==========================================================================
       Hero Section
       ========================================================================== */
    .hero-section {
        padding: 80px 0 40px;
        position: relative;
    }

    .hero-card {
        background: var(--bg-card);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 60px 40px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 40px;
        box-shadow: var(--shadow-lg);
        position: relative;
        overflow: hidden;
    }

    .hero-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
    }

    .hero-info {
        max-width: 600px;
        text-align: left;
    }

    .badge {
        display: inline-block;
        padding: 6px 16px;
        background: var(--accent-blue-glow);
        color: var(--accent-blue);
        border: 1px solid var(--glass-border);
        border-radius: 100px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 24px;
    }

    .hero-info h2 {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 20px;
        color: var(--text-primary);
        line-height: 1.1;
        letter-spacing: -1px;
    }

    .hero-info p {
        font-size: 1.15rem;
        color: var(--text-secondary);
        margin-bottom: 0;
    }

    .hero-stats {
        display: flex;
        gap: 40px;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--accent-gold);
        line-height: 1;
    }

    .stat-label {
        font-size: 0.85rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
    }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    color: #fff;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary i {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    align-items: flex-start;
}

.alert-warning .alert-icon {
    color: var(--accent-orange);
}

.alert-content strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.alert-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Categories & Cards
   ========================================================================== */
.category-section {
    scroll-margin-top: 105px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.category-banner {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.color-blue { color: var(--accent-blue); background: rgba(26, 86, 232, 0.1); border-color: rgba(26, 86, 232, 0.2); }
.color-emerald { color: var(--accent-blue); background: rgba(26, 86, 232, 0.08); border-color: rgba(26, 86, 232, 0.18); }
.color-orange { color: #00AAFF; background: rgba(0, 170, 255, 0.1); border-color: rgba(0, 170, 255, 0.2); }
.color-purple { color: #1A3A8F; background: rgba(26, 58, 143, 0.1); border-color: rgba(26, 58, 143, 0.2); }
.color-gray { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }

.category-header h2 {
    font-size: 1.75rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Card (sem backdrop-filter: custo de GPU por card explode com catálogos de 100-200+ itens) */
.card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: default;
    position: relative;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: visible;
    margin-bottom: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 18px 22px rgba(2, 6, 23, 0.28));
    transition: transform 0.25s ease;
}

.card:hover .card-image img {
    transform: translateY(-3px) scale(1.02);
}

.card-image-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.52);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.card-image-nav.prev {
    left: 4px;
}

.card-image-nav.next {
    right: 4px;
}

.card-image-nav:hover:not(:disabled) {
    background: var(--accent-blue);
    transform: translateY(-50%) scale(1.08);
}

.card-image-nav:disabled {
    display: none;
}

.card-image-nav i {
    width: 18px;
    height: 18px;
}

.card-image-count {
    position: absolute;
    right: 14px;
    top: 12px;
    z-index: 4;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.62);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.card-image-count.is-single {
    display: none;
}

.promo-pill {
    display: none;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F97316, #EF4444);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.promo-pill i {
    width: 14px;
    height: 14px;
}

.card-cart-float {
    display: none;
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), #0D1B40);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(26, 86, 232, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card-cart-float:hover,
.card-cart-float.added {
    transform: translateY(-3px) scale(1.06);
    background: linear-gradient(135deg, #00AAFF, #1A56E8);
    box-shadow: 0 18px 34px rgba(0, 170, 255, 0.42);
}

.card-cart-float i {
    width: 23px;
    height: 23px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-spec {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-emerald);
    font-weight: 600;
    opacity: 0.85;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.price-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(26, 86, 232, 0.22);
    background:
        linear-gradient(135deg, rgba(26, 86, 232, 0.10), rgba(0, 170, 255, 0.06)),
        rgba(255, 255, 255, 0.03);
}

.price-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-emerald);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0.85;
}

.price-kicker i {
    width: 12px;
    height: 12px;
}

.price-main {
    color: var(--accent-emerald);
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.price-list {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 600;
}

.price-list b {
    color: var(--text-secondary);
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.price-main-label {
    color: var(--accent-emerald);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
}

.discount-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.discount-grid span {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discount-grid small,
.discount-grid b {
    display: block;
}

.discount-grid small {
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.discount-grid b {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.discount-card-muted {
    opacity: 0.82;
}

.card-purchase-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.qty-control button {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-control button:hover {
    background: rgba(26, 86, 232, 0.12);
    color: var(--accent-blue);
}

.qty-control button i {
    width: 15px;
    height: 15px;
}

.qty-control input {
    width: 42px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: center;
    font-weight: 800;
    outline: none;
    appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-control span {
    padding-right: 12px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.add-cart-btn {
    height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.add-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.add-cart-btn i {
    width: 17px;
    height: 17px;
}

.details-cta {
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #0D1B40, #1A56E8);
    box-shadow: 0 12px 26px rgba(26, 86, 232, 0.32);
    animation: detailCtaPulse 2.4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.details-cta:hover,
.details-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(124, 58, 237, 0.36);
    outline: none;
}

.details-cta i {
    width: 17px;
    height: 17px;
}

@keyframes detailCtaPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i {
    width: 14px;
    height: 14px;
}

.info-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.text-small {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
}

footer .small {
    font-size: 0.875rem;
    margin-top: 8px;
}

    /* ==========================================================================
       Modal & Slider
       ========================================================================== */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        pointer-events: none;
    }

    .modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--overlay-bg);
        backdrop-filter: blur(12px);
    }

    .modal-container {
        position: relative;
        background: var(--bg-main);
        width: 90%;
        max-width: 1100px;
        max-height: 85vh;
        border-radius: var(--radius-lg);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transform: scale(0.9) translateY(40px);
        transition: var(--transition);
        z-index: 10;
    }

    .modal.active .modal-container {
        transform: scale(1) translateY(0);
    }

    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: var(--bg-card);
        border: 1px solid var(--glass-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 100;
        transition: var(--transition);
    }

    .modal-close:hover {
        background: var(--accent-blue);
        color: white;
        transform: rotate(90deg);
    }

    .modal-body-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        height: 100%;
        overflow-y: auto;
    }

    .modal-body-grid > * {
        min-width: 0;
    }

    /* Modal Details refinement */
    .modal-details {
        padding: 40px;
        background: var(--bg-card);
        border-left: 1px solid var(--glass-border);
    }

    @media (max-width: 992px) {
        .modal-body-grid {
            grid-template-columns: minmax(0, 1fr);
        }
        .modal-details {
            border-left: none;
            border-top: 1px solid var(--glass-border);
        }
        .modal-container {
            max-height: 90vh;
        }
    }

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Slider */
.modal-slider {
    position: relative;
    background: #fff; /* White background for product images */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: none;
}

.slider-slide {
    width: 100%;
    min-width: 0;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slider-slide.active {
    display: flex;
}

.slider-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: rgba(0, 0, 0, 0.8);
}

.dot-edu {
    width: 18px;
    border-radius: 999px;
}

.edu-card-slide {
    align-items: center;
    background:
        linear-gradient(135deg, #EEF4FF 0%, #F8FAFC 50%, #EEF6FF 100%);
    color: #0f172a;
    padding: 24px;
}

.edu-card-panel {
    --edu-accent: #0a58ca;
    --edu-accent-dark: #063f7a;
    --edu-soft: #eaf4ff;
    --edu-soft-2: #f6fbff;
    position: relative;
    isolation: isolate;
    width: min(100%, 560px);
    min-height: 430px;
    background:
        linear-gradient(125deg, #ffffff 0%, #ffffff 46%, var(--edu-soft-2) 47%, var(--edu-soft) 100%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    overflow-wrap: anywhere;
}

.edu-card-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 0 56%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.78) 58%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(160deg, color-mix(in srgb, var(--edu-accent) 18%, transparent), transparent 68%);
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
    z-index: -1;
}

.edu-card-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 26%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: skewX(-18deg);
    animation: eduShine 5.4s ease-in-out infinite;
    pointer-events: none;
}

.edu-card-rail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--edu-accent), var(--edu-accent-dark));
}

.edu-card-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(145px, 0.75fr);
    align-items: center;
    gap: 20px;
    min-height: 430px;
    padding: 30px 26px 26px;
}

.edu-card-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.edu-card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edu-card-number {
    background: var(--edu-accent);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--edu-accent) 28%, transparent);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    padding: 9px 11px;
    text-transform: uppercase;
}

.edu-card-kicker {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in srgb, var(--edu-accent) 20%, #dbeafe);
    border-radius: 999px;
    color: var(--edu-accent-dark);
    display: inline-flex;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    padding: 8px 10px;
    text-transform: uppercase;
}

.edu-card-kicker i {
    width: 15px;
    height: 15px;
    stroke-width: 2.6;
}

.edu-card-panel h3 {
    color: #0f172a;
    font-size: 1.82rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.edu-card-hook {
    color: var(--edu-accent-dark);
    display: block;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.16;
}

.edu-card-panel p {
    color: #243244;
    font-size: 0.94rem;
    line-height: 1.42;
    margin: 0;
}

.edu-card-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.edu-card-points li {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--edu-accent);
    border-radius: 8px;
    color: #1f2937;
    display: flex;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.28;
    padding: 9px 10px;
}

.edu-card-points i {
    color: var(--edu-accent);
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    stroke-width: 3;
}

.edu-card-product {
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 2px;
    padding-top: 12px;
    text-transform: uppercase;
}

.edu-card-media {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-width: 0;
}

.edu-card-photo {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    display: flex;
    justify-content: center;
    padding: 14px;
    width: min(100%, 168px);
    transform: rotate(1.5deg);
}

.edu-card-photo img {
    animation: eduFloat 4.8s ease-in-out infinite;
    filter: drop-shadow(0 16px 16px rgba(15, 23, 42, 0.18));
    max-height: 142px;
    max-width: 100%;
    object-fit: contain;
}

.edu-card-seal,
.edu-card-motion {
    background: var(--edu-accent);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    padding: 9px 11px;
    text-transform: uppercase;
}

.edu-card-motion {
    animation: eduPulse 2.8s ease-in-out infinite;
    background: #0f172a;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--edu-accent) 36%, transparent);
}

.edu-card-aqua .edu-card-panel {
    --edu-accent: #0a58ca;
    --edu-accent-dark: #073b82;
    --edu-soft: #dff1ff;
    --edu-soft-2: #f5fbff;
}

.edu-card-emerald .edu-card-panel {
    --edu-accent: #047857;
    --edu-accent-dark: #064e3b;
    --edu-soft: #dcfce7;
    --edu-soft-2: #f3fff7;
}

.edu-card-gold .edu-card-panel {
    --edu-accent: #b45309;
    --edu-accent-dark: #78350f;
    --edu-soft: #fef3c7;
    --edu-soft-2: #fffaf0;
}

.edu-card-violet .edu-card-panel {
    --edu-accent: #7c3aed;
    --edu-accent-dark: #4c1d95;
    --edu-soft: #ede9fe;
    --edu-soft-2: #fbf8ff;
}

.edu-card-navy .edu-card-panel {
    --edu-accent: #0f172a;
    --edu-accent-dark: #020617;
    --edu-soft: #e2e8f0;
    --edu-soft-2: #f8fafc;
}

@keyframes eduShine {
    0%, 58% { left: -35%; opacity: 0; }
    68% { opacity: 1; }
    100% { left: 115%; opacity: 0; }
}

@keyframes eduFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes eduPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 color-mix(in srgb, var(--edu-accent) 38%, transparent); }
    50% { transform: translateY(-2px); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .edu-card-panel::after,
    .edu-card-photo img,
    .edu-card-motion {
        animation: none;
    }
}

/* Modal Details */
.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-details .card-title {
    font-size: 2rem;
    margin-bottom: 8px;
}

.modal-details .info-group {
    gap: 8px;
}

.modal-details .info-value {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.modal-details .text-small {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
}

/* Tabs System */
.modal-tabs-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.modal-tabs-header::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-emerald);
    border-bottom-color: var(--accent-emerald);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.modal-tabs-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for tab content */
/* ==========================================
   Skeleton Loader
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 380px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skeleton-img {
    height: 160px;
    width: 100%;
    border-radius: 8px;
}

.skeleton-title {
    height: 24px;
    width: 70%;
}

.skeleton-text {
    height: 14px;
    width: 100%;
}

.skeleton-text.short {
    width: 40%;
}
.modal-tabs-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-tabs-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}
.modal-tabs-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card,
    .card-header,
    .card-body,
    .info-group,
    .info-value,
    .text-small {
        max-width: 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 6px;
    }

    .card-title,
    .card-spec {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    
    .category-header h2 {
        font-size: 1.5rem;
    }

    .modal-content-grid,
    .modal-body-grid {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        overflow-x: hidden;
    }

    .modal-body-grid > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .modal-container,
    .modal-slider,
    .slider-wrapper,
    .edu-card-slide,
    .edu-card-panel {
        max-width: 100%;
        min-width: 0;
    }

    .slider-slide {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }

    .modal-slider {
        min-height: 250px;
        width: 100%;
        overflow-x: hidden;
    }

    .modal-details {
        padding: 24px;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    #modal-details-container {
        min-width: 0;
        max-width: 100%;
    }

    .slider-slide img {
        max-height: 250px;
    }

    .edu-card-slide {
        width: 100%;
        padding: 14px;
        overflow: hidden;
    }

    .edu-card-panel {
        width: 100%;
        min-height: 360px;
    }

    .edu-card-content {
        grid-template-columns: 1fr;
        min-height: 360px;
        padding: 22px 18px;
    }

    .edu-card-media {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        order: -1;
    }

    .edu-card-photo {
        width: 112px;
        padding: 8px;
    }

    .edu-card-photo img {
        max-height: 92px;
    }

    .edu-card-seal,
    .edu-card-motion {
        font-size: 0.66rem;
        padding: 8px 9px;
    }

    .edu-card-panel h3 {
        font-size: 1.34rem;
    }

    .edu-card-hook {
        font-size: 1rem;
    }

    .edu-card-panel p {
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .edu-card-points li {
        font-size: 0.78rem;
        padding: 8px 9px;
    }
}
/* ==========================================================================
   Floating Action Button (FAB)
   ========================================================================== */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-emerald);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(26, 86, 232, 0.4);
    transition: var(--transition-normal);
}

.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(26, 86, 232, 0.5);
}

.fab-text {
    font-weight: 600;
    font-size: 1rem;
}

.fab-btn i {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Quiz & Leads System
   ========================================================================== */
.quiz-container {
    max-width: 500px !important;
}

.quiz-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quiz-header-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.quiz-header-icon i {
    width: 32px;
    height: 32px;
}

.quiz-step {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: var(--bg-card-hover);
}

.quiz-navigation {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--accent-emerald);
    width: 50%;
    transition: width 0.4s ease;
}

    /* ==========================================================================
       Floating Buttons & Animations (Append)
       ========================================================================== */
    .whatsapp-fab {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        background: var(--accent-whatsapp);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
        text-decoration: none;
        z-index: 1000;
        transition: var(--transition);
        animation: pulse-whatsapp 2s infinite;
    }

    .whatsapp-fab:hover {
        transform: scale(1.1) rotate(10deg);
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    }

    .whatsapp-fab i {
        width: 32px;
        height: 32px;
    }

    @keyframes pulse-whatsapp {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
        70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
    }

    .fab-quote {
        position: fixed;
        bottom: 30px;
        right: 110px;
        background: linear-gradient(135deg, var(--accent-blue), #2563EB);
        color: white;
        padding: 15px 25px;
        border-radius: 100px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--glass-border);
        cursor: pointer;
        z-index: 1000;
        transition: var(--transition);
    }

    #quiz-trigger, #header-quiz-btn { display: none !important; }

    @media (max-width: 768px) {
        .hero-card {
            flex-direction: column;
            padding: 40px 20px;
            text-align: center;
        }
        .hero-info {
            max-width: 100%;
            text-align: center;
        }
        .hero-info h2 {
            font-size: 2.5rem;
        }
        .hero-stats {
            justify-content: center;
            gap: 20px;
        }
        .fab-quote span {
            display: none;
        }
        .fab-quote {
            right: 100px;
            width: 60px;
            height: 60px;
            padding: 0;
            justify-content: center;
        }
    }

/* ==========================================================================
   Brand Banner — EvoHub CECAPE
   ========================================================================== */
.banner-parceria {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px -8px rgba(26, 86, 232, 0.35), var(--shadow-lg);
    margin-bottom: 2rem;
    position: relative;
}

.banner-soberano {
    background: linear-gradient(135deg, #0D1B40 0%, #1A3A8F 40%, #1A56E8 75%, #00AAFF 100%);
}

.banner-soberano-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 32px;
    min-height: 80px;
}

.banner-soberano-logo {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.banner-soberano-tagline {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 768px) {
    .banner-parceria {
        border-radius: var(--radius-md);
        margin-bottom: 1.5rem;
    }
    .banner-soberano-inner {
        padding: 16px 20px;
        min-height: 70px;
        flex-direction: row;
        gap: 14px;
    }
    .banner-soberano-logo {
        height: 44px;
    }
}

/* ==========================================================================
   LAYOUT — Missing containers
   ========================================================================== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-wrapper {
    padding-top: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================================================
   CATEGORIES NAV — Missing styles
   ========================================================================== */
.categories-nav {
    position: sticky;
    top: 76px;
    z-index: 30;
    margin-bottom: 48px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg-main) 72%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.categories-nav-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.categories-nav-header span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 10px;
}

.cat-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    gap: 9px;
    cursor: pointer;
    min-width: 0;
}

.cat-card:hover,
.cat-card:focus-visible {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
    border-color: var(--accent-blue);
    outline: none;
}

.cat-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-blue-glow);
    overflow: hidden;
    flex-shrink: 0;
}

.cat-icon-bg i {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
}

.cat-info h3 {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.cat-info p {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   SECTION HEADERS — Missing styles
   ========================================================================== */
.section-header {
    margin-bottom: 28px;
}

.section-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.section-title-area h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-icon {
    width: 26px;
    height: 26px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.section-header > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 36px;
}

/* ==========================================================================
   FOOTER — Missing styles
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--glass-border);
    padding: 36px 0;
    margin-top: 60px;
}

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

.footer-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.footer-social i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   SLIDER NAV — Fix class mismatch (.slider-nav used in HTML, .slider-btn in CSS)
   ========================================================================== */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.75);
}

.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }

.slider-nav i {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   QUIZ MODAL CONTAINER — Fix missing .modal-content container styles
   ========================================================================== */
.modal-content {
    position: relative;
    background: var(--bg-main);
    width: 92%;
    max-width: 480px;
    max-height: 92vh;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 10;
    transform: scale(0.9) translateY(40px);
    transition: var(--transition);
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.quiz-body {
    padding: 36px 40px 40px;
}

.quiz-header {
    margin-bottom: 28px;
}

.quiz-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.quiz-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quiz-steps-container {
    min-height: 160px;
}

.lgpd-consent { margin-top: 4px; }
.lgpd-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.lgpd-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

/* ==========================================================================
   MODAL LINKS TAB — Missing styles
   ========================================================================== */
.modal-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.link-item:hover {
    background: var(--accent-blue-glow);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

.link-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==========================================================================
   MOBILE RESPONSIVE — Comprehensive fixes for ≤768px
   ========================================================================== */
@media (max-width: 768px) {
    .modal.active {
        align-items: flex-start;
        padding-top: 12px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.88);
        z-index: 20;
    }

    .modal-body-grid {
        max-height: 92vh;
    }

    .modal-slider {
        min-height: 300px;
    }

    .modal-details .card-title {
        font-size: 1.7rem;
        line-height: 1.12;
    }

    .modal-tabs-header {
        gap: 6px;
        margin-bottom: 16px;
        padding-bottom: 6px;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 12px;
    }

    /* Layout */
    .app-container {
        padding: 0 16px;
    }

    /* Header */
    .header-content {
        padding: 10px 16px;
        gap: 10px;
        min-width: 0;
        overflow-x: hidden;
    }

    .logo-area,
    .header-text,
    .nav-right {
        min-width: 0;
    }

    .nav-right {
        flex-shrink: 0;
        gap: 8px;
    }

    #header-quiz-btn {
        width: 42px;
        height: 42px;
        margin-right: 0 !important;
        padding: 0 !important;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
    }

    #header-quiz-btn i {
        margin-right: 0 !important;
    }

    #header-quiz-btn {
        font-size: 0 !important;
    }

    #theme-toggle {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .main-logo {
        height: 38px;
    }

    .header-text h1 {
        font-size: 1rem;
    }

    .header-text p {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero-section {
        padding: 28px 0 20px;
    }

    .hero-card {
        padding: 28px 20px;
    }

    .hero-info h2 {
        font-size: 2rem;
    }

    /* Categories nav */
    .categories-nav {
        top: 66px;
        padding: 10px;
        margin-inline: -4px;
        border-radius: 14px;
    }

    .categories-nav-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .categories-nav-header span {
        font-size: 0.72rem;
    }

    .categories-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .cat-card {
        flex: 0 0 152px;
        scroll-snap-align: start;
        padding: 9px;
        gap: 8px;
    }

    .cat-icon-bg {
        width: 38px;
        height: 38px;
    }

    .cat-info h3 {
        font-size: 0.78rem;
    }

    .cat-info p {
        display: none;
    }

    /* Section headers */
    .section-title-area h2 {
        font-size: 1.3rem;
    }

    .section-header > p {
        padding-left: 0;
        margin-top: 4px;
    }

    .section-icon {
        width: 22px;
        height: 22px;
    }

    /* Cards */
    .category-section {
        margin-bottom: 48px;
    }

    /* Quiz modal */
    .modal-content {
        width: 96%;
        max-height: 95vh;
    }

    .quiz-body {
        padding: 24px 20px 28px;
    }

    .quiz-header h2 {
        font-size: 1.2rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .quiz-navigation .btn-primary,
    .quiz-navigation .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Product modal */
    .modal-container {
        width: 96%;
        max-height: 95vh;
        min-width: 0;
    }

    .modal-details {
        padding: 20px;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .slider-slide {
        padding: 14px;
    }

    /* FABs — stack vertically on mobile */
    .whatsapp-fab {
        bottom: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
        opacity: 0.92;
    }

    .whatsapp-fab i {
        width: 23px;
        height: 23px;
    }

    .fab-quote {
        display: none !important;
    }

    /* Footer */
    .main-footer {
        padding: 28px 0;
        margin-top: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

/* ==========================================================================
   SMALL PHONES — ≤480px
   ========================================================================== */
@media (max-width: 480px) {
    .hero-info h2 {
        font-size: 1.7rem;
        letter-spacing: -0.5px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .header-text p {
        display: none;
    }

    .badge {
        font-size: 0.65rem;
        padding: 4px 12px;
    }

    .section-title-area h2 {
        font-size: 1.15rem;
    }

    .modal-container {
        width: calc(100vw - 18px);
        border-radius: 14px;
    }

    .modal-body-grid,
    .modal-slider,
    .slider-wrapper,
    .edu-card-slide,
    .edu-card-panel {
        max-width: 100%;
        min-width: 0;
    }

    .slider-slide {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
        width: 100%;
    }

    .modal-slider {
        min-height: 420px;
    }

    .slider-nav {
        display: none !important;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-slide,
    .edu-card-slide {
        padding: 8px;
    }

    .edu-card-panel {
        width: 100%;
        min-height: auto;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    }

    .edu-card-content {
        gap: 10px;
        min-height: auto;
        padding: 18px 14px 16px;
    }

    .edu-card-media {
        gap: 8px;
    }

    .edu-card-photo {
        width: 96px;
        padding: 7px;
    }

    .edu-card-photo img {
        max-height: 76px;
    }

    .edu-card-panel h3 {
        font-size: 1.1rem;
    }

    .edu-card-hook {
        font-size: 0.9rem;
    }

    .edu-card-panel p {
        font-size: 0.78rem;
        line-height: 1.36;
    }

    .edu-card-points {
        gap: 6px;
    }

    .edu-card-points li {
        font-size: 0.7rem;
        padding: 7px 8px;
    }

    .edu-card-seal,
    .edu-card-motion {
        font-size: 0.62rem;
        padding: 7px 8px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .cat-icon-bg {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Product detail modal — clearer tabs and mobile image navigation
   ========================================================================== */
.modal-tabs-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    border-bottom: 0;
    margin-bottom: 18px;
    overflow: visible;
}

.tab-btn {
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    padding: 12px;
    font-weight: 800;
}

.tab-btn:hover {
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(59, 130, 246, 0.08);
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: transparent;
    border-color: rgba(37, 99, 235, 0.48);
    background: linear-gradient(135deg, var(--accent-blue), #2563EB);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.tab-pane {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {
    .modal-container {
        width: calc(100vw - 16px);
        max-height: 94dvh;
    }

    .modal-body-grid {
        max-height: 94dvh;
        overflow-y: auto;
    }

    .modal-slider {
        min-height: 320px !important;
    }

    .slider-nav {
        display: flex !important;
        width: 42px;
        height: 42px;
        background: rgba(15, 23, 42, 0.55);
        z-index: 12;
    }

    .slider-nav.prev {
        left: 10px;
    }

    .slider-nav.next {
        right: 10px;
    }

    .slider-nav i {
        width: 22px;
        height: 22px;
    }

    .slider-dots {
        bottom: 12px;
        z-index: 12;
    }

    .modal-details {
        padding: 18px;
    }

    .modal-tabs-header {
        position: sticky;
        top: 0;
        z-index: 8;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 0 10px;
        background: var(--bg-card);
    }

    .tab-btn {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 0.84rem;
        white-space: normal;
    }

    .tab-btn i {
        width: 17px;
        height: 17px;
    }
}

/* ==========================================================================
   Final mobile overrides - must stay after legacy responsive rules
   ========================================================================== */
.modal-mobile-tabs {
    display: none;
}

@media (max-width: 768px) {
    .main-header,
    .categories-nav {
        position: static !important;
        top: auto !important;
    }

    .modal.active {
        align-items: center !important;
        padding: 6px;
    }

    .modal-container {
        width: calc(100vw - 12px) !important;
        max-height: 96dvh !important;
        border-radius: 18px;
    }

    .modal-body-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto minmax(0, 1fr);
        max-height: 96dvh !important;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .modal-mobile-tabs {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        position: sticky;
        top: 0;
        z-index: 18;
        padding: 9px 50px 8px 10px;
        background: var(--bg-main);
        border-bottom: 1px solid var(--glass-border);
    }

    .modal-mobile-tabs .tab-btn {
        min-height: 34px !important;
        padding: 6px 4px !important;
        border-radius: 10px;
        font-size: 0.68rem !important;
        font-weight: 800;
        gap: 3px;
        white-space: nowrap !important;
    }

    .modal-mobile-tabs .tab-btn i {
        width: 13px !important;
        height: 13px !important;
        flex-shrink: 0;
    }

    .modal-details .modal-tabs-header {
        display: none !important;
    }

    .modal-slider {
        min-height: 210px !important;
        height: 34dvh !important;
        max-height: 270px;
        width: 100%;
        overflow: hidden;
    }

    .slider-wrapper {
        height: 100%;
    }

    .slider-slide {
        height: 100%;
        padding: 14px 46px 28px !important;
    }

    .slider-slide img {
        max-height: calc(34dvh - 42px) !important;
        max-width: 100%;
        object-fit: contain;
    }

    .slider-nav {
        display: flex !important;
        width: 36px !important;
        height: 36px !important;
        top: 50% !important;
        transform: translateY(-50%);
        background: rgba(15, 23, 42, 0.58);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
        z-index: 16;
    }

    .slider-nav.prev {
        left: 8px !important;
    }

    .slider-nav.next {
        right: 8px !important;
    }

    .slider-nav i {
        width: 19px !important;
        height: 19px !important;
    }

    .slider-dots {
        bottom: 8px !important;
        max-width: calc(100% - 80px);
        overflow: hidden;
    }

    .modal-details {
        padding: 14px 16px 18px !important;
        gap: 12px;
        border-top: 1px solid var(--glass-border);
    }

    .modal-details .card-title {
        font-size: 1.4rem !important;
        line-height: 1.12;
        margin-bottom: 4px !important;
    }

    .modal-tabs-container {
        height: auto;
    }

    .modal-tabs-content {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 380px) {
    .modal-mobile-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding-right: 48px;
    }
}

/* ==========================================================================
   Product card compact commerce and preview slides
   ========================================================================== */
.card-slide-slot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.card-slide-slot > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 12px;
}

.card-edu-preview {
    width: 100%;
    height: 100%;
    padding: 18px 20px 18px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    position: relative;
    color: #0f172a;
    background:
        radial-gradient(circle at 92% 18%, rgba(255,255,255,0.72), transparent 34%),
        linear-gradient(135deg, #EEF4FF, #EEF6FF);
}

.card-edu-preview::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: #0a58ca;
}

.card-edu-topline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-edu-topline span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0a58ca;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 900;
}

.card-edu-topline b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(10, 88, 202, 0.14);
    color: #0a58ca;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.card-edu-topline i {
    width: 13px;
    height: 13px;
}

.card-edu-preview h4 {
    font-size: 1rem;
    line-height: 1.08;
    color: #0f172a;
}

.card-edu-preview strong {
    font-size: 0.82rem;
    line-height: 1.25;
    color: #0a58ca;
}

.card-edu-preview p {
    font-size: 0.73rem;
    line-height: 1.35;
    color: #334155;
}

.card-edu-emerald {
    background: linear-gradient(135deg, #ecfdf5, #eef7ff);
}

.card-edu-gold {
    background: linear-gradient(135deg, #fffbeb, #eef4ff);
}

.card-edu-violet {
    background: linear-gradient(135deg, #f5f3ff, #eef9ff);
}

.card-edu-navy {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
    text-align: center;
}

.card-title {
    width: 100%;
    margin-bottom: 0;
    font-size: 1.32rem;
    line-height: 1.14;
    font-weight: 800;
}

.card-spec {
    max-width: 100%;
    display: block;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(10, 88, 202, 0.08);
    border: 1px solid rgba(10, 88, 202, 0.12);
    color: var(--accent-blue);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

.card-body {
    gap: 12px;
}

.price-panel {
    gap: 5px;
    padding: 10px 12px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(26, 86, 232, 0.09), rgba(0, 170, 255, 0.06)),
        rgba(255, 255, 255, 0.72);
}

.price-kicker {
    gap: 6px;
    align-self: flex-start;
    padding: 2px 7px 2px 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-blue);
    font-size: 0.56rem;
    line-height: 1;
    opacity: 0.85;
}

.price-kicker i {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
}

.price-main {
    color: var(--accent-blue);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 0.95;
}

.price-main-label {
    color: #047857;
    font-size: 0.6rem;
    line-height: 1;
}

.price-list {
    color: #b45309;
    font-size: 0.58rem;
}

.price-list b {
    color: #92400e;
}

.discount-grid {
    gap: 0;
}

.discount-grid span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 9px;
    background: rgba(10, 88, 202, 0.08);
    border-color: rgba(10, 88, 202, 0.1);
}

.discount-grid small {
    color: #1d4ed8;
    font-size: 0.54rem;
}

.discount-grid b {
    margin-top: 0;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .card-edu-preview {
        padding: 16px 18px 16px 42px;
    }

    .card-edu-preview h4 {
        font-size: 0.95rem;
    }

    .card-edu-preview p {
        font-size: 0.7rem;
    }

    .price-main {
        font-size: 1.9rem;
    }
}

/* Compact price panel refinement */
.price-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 10px;
    row-gap: 4px;
}

.price-kicker {
    grid-column: 1;
    grid-row: 1;
}

.price-list {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: right;
    white-space: nowrap;
}

.price-main {
    grid-column: 1;
    grid-row: 2;
}

.price-main-label {
    grid-column: 1;
    grid-row: 3;
}

.discount-grid {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: stretch;
    min-width: 104px;
}

.discount-grid span {
    height: 100%;
    min-height: 46px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.discount-grid small {
    white-space: nowrap;
}

@media (max-width: 390px) {
    .price-panel {
        column-gap: 8px;
    }

    .price-main {
        font-size: 1.76rem;
    }

    .discount-grid {
        min-width: 96px;
    }
}

/* Keep long catalogs visible during fast mobile navigation */
.category-section {
    opacity: 1 !important;
    transform: none !important;
}

.category-section.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.cart-fab {
    position: fixed;
    right: 94px;
    bottom: 30px;
    z-index: 1202;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #fff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
    cursor: pointer;
}

.cart-fab i {
    width: 27px;
    height: 27px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.cart-badge.is-empty {
    background: #94a3b8;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 2200;
    pointer-events: none;
    visibility: hidden;
}

.cart-drawer.active {
    pointer-events: auto;
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.cart-drawer.active .cart-overlay {
    opacity: 1;
}

.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    border-left: 1px solid var(--glass-border);
    box-shadow: -22px 0 54px rgba(15, 23, 42, 0.22);
    transform: translateX(100%);
    transition: transform 0.26s ease;
}

.cart-drawer.active .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--border-color);
}

.cart-kicker {
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-header h2 {
    margin-top: 2px;
    font-size: 1.55rem;
    color: var(--text-primary);
}

.cart-header button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.07);
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
}

.cart-empty {
    flex: 1;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.cart-empty i {
    width: 38px;
    height: 38px;
    color: var(--accent-blue);
}

.cart-empty strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cart-item-main {
    min-width: 0;
}

.cart-item-main strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.cart-item-main span {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.cart-item-controls button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: #fff;
}

.cart-item-controls button i {
    width: 16px;
    height: 16px;
}

.cart-item-controls b {
    min-width: 24px;
    text-align: center;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.cart-item-controls .cart-remove {
    margin-left: auto;
    background: #dc2626;
    color: #fff;
}

.cart-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid var(--border-color);
}

.cart-summary div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(10, 88, 202, 0.08);
}

.cart-summary span {
    display: block;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cart-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.cart-cpf-panel {
    display: grid;
    gap: 8px;
    padding: 0 18px 14px;
}

.cart-cpf-panel label {
    color: #F97316;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-cpf-field {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 2px solid var(--accent-blue);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.cart-cpf-field i {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
}

.cart-cpf-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 800;
}

.cart-cpf-status {
    min-height: 22px;
    color: var(--accent-blue);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.35;
}

.cart-cpf-status:not(:empty) {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
}

.cart-cpf-status.is-error {
    color: #fff;
    background: #dc2626;
}

.cart-cpf-status.is-success {
    color: #fff;
    background: #059669;
}

.cart-cpf-status.is-loading {
    color: #fff;
    background: var(--accent-blue);
}

.cart-actions {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.cart-whatsapp,
.cart-continue,
.cart-clear {
    min-height: 46px;
    border-radius: 14px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
}

.cart-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--accent-whatsapp);
    color: #fff;
}

.cart-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: rgba(10, 88, 202, 0.09);
    color: var(--accent-blue);
}

.cart-whatsapp i,
.cart-continue i {
    width: 19px;
    height: 19px;
}

.cart-clear {
    min-height: 22px;
    justify-self: center;
    padding: 0 8px;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-decoration: underline;
}

.cart-whatsapp:disabled,
.cart-clear:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-whatsapp.is-loading {
    opacity: 0.72;
    cursor: progress;
}

@media (max-width: 768px) {
    .cart-fab {
        right: 76px;
        bottom: 76px;
        width: 50px;
        height: 50px;
    }

    .cart-fab i {
        width: 23px;
        height: 23px;
    }

    .cart-panel {
        top: auto;
        bottom: 0;
        width: 100%;
        height: min(82dvh, 720px);
        border-left: 0;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }

    .cart-drawer.active .cart-panel {
        transform: translateY(0);
    }

    .cart-header {
        padding: 18px;
    }

    .cart-items {
        padding: 10px 16px;
    }

    .cart-actions {
        gap: 8px;
    }

    .cart-whatsapp,
    .cart-continue {
        min-height: 44px;
    }
}

/* ==========================================================================
   Search and scalable category navigation
   ========================================================================== */
.cat-simuladores { --cat-color: #0a58ca; --cat-soft: rgba(10, 88, 202, 0.12); }
.cat-instrumentais { --cat-color: #0f766e; --cat-soft: rgba(15, 118, 110, 0.13); }
.cat-consumo { --cat-color: #b45309; --cat-soft: rgba(180, 83, 9, 0.13); }
.cat-epis { --cat-color: #7c3aed; --cat-soft: rgba(124, 58, 237, 0.13); }
.cat-apoio { --cat-color: #be123c; --cat-soft: rgba(190, 18, 60, 0.12); }

.product-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 12px 0 14px;
}

.product-search-box {
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px 0 14px;
    border: 1px solid rgba(10, 88, 202, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.product-search-box > i {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.product-search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-weight: 700;
}

.product-search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

#search-clear {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-secondary);
}

#search-clear.is-visible {
    display: inline-flex;
}

#search-clear i {
    width: 15px;
    height: 15px;
}

.search-status {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.cat-card {
    border-color: color-mix(in srgb, var(--cat-color) 22%, transparent);
}

.cat-card .cat-icon-bg {
    background-color: var(--cat-soft);
}

.cat-card h3,
.cat-card i {
    color: var(--cat-color);
}

.cat-card.is-active,
.cat-card:hover,
.cat-card:focus-visible {
    border-color: var(--cat-color);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--cat-color) 22%, transparent);
}

.card[class*="category-"] {
    border-top: 3px solid var(--category-color, var(--accent-blue));
}

.category-simuladores { --category-color: #0a58ca; }
.category-instrumentais { --category-color: #0f766e; }
.category-consumo { --category-color: #b45309; }
.category-epis { --category-color: #7c3aed; }
.category-apoio { --category-color: #be123c; }

.card.is-filtered-out,
.category-section.is-search-empty {
    display: none !important;
}

.side-category-rail {
    position: fixed;
    left: 12px;
    top: 50%;
    z-index: 900;
    display: grid;
    gap: 8px;
    transform: translateY(-50%);
}

.rail-link {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--cat-color);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--cat-soft);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: width 0.22s ease, transform 0.2s ease, background 0.2s ease;
}

.rail-link i {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.rail-link span {
    opacity: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 900;
    transition: opacity 0.15s ease;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-active {
    width: 142px;
    background: var(--cat-soft);
    transform: translateX(3px);
}

.rail-link:hover span,
.rail-link:focus-visible span,
.rail-link.is-active span {
    opacity: 1;
}

.mobile-app-nav {
    display: none;
}

@media (max-width: 1180px) {
    .side-category-rail {
        display: none;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-bottom: 86px;
    }

    .categories-nav {
        padding: 12px;
    }

    .product-search-panel {
        grid-template-columns: 1fr;
        gap: 6px;
        margin: 10px 0 12px;
    }

    .product-search-box {
        height: 42px;
        padding-left: 12px;
    }

    .search-status {
        padding-left: 4px;
        font-size: 0.72rem;
    }

    .mobile-app-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 1200;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 5px;
        padding: 7px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.92);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
        transform: translateY(0);
        opacity: 1;
        transition: transform 0.24s ease, opacity 0.18s ease;
    }

    .mobile-app-nav.is-hidden {
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-app-link {
        min-width: 0;
        height: 50px;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--cat-color);
        background: transparent;
        text-decoration: none;
        font-size: 0.66rem;
        font-weight: 900;
    }

    .mobile-app-link i {
        width: 19px;
        height: 19px;
    }

    .mobile-app-link.is-active {
        background: var(--cat-soft);
    }

    .whatsapp-fab {
        bottom: 76px !important;
        right: 14px !important;
    }
}

/* Fix card informational slides on narrow phones */
.card-image[data-slide-type="card-edu"] .promo-pill,
.card-image[data-slide-type="card-edu"] .card-cart-float {
    display: none;
}

.card-image[data-slide-type="card-edu"] .card-image-nav {
    top: 54%;
    bottom: auto;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(15, 23, 42, 0.62);
}

.card-image[data-slide-type="card-edu"] .card-image-nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.card-image[data-slide-type="card-edu"] .card-image-nav.prev {
    left: 9px;
}

.card-image[data-slide-type="card-edu"] .card-image-nav.next {
    left: auto;
    right: 9px;
}

.card-image.is-nav-hidden .card-image-nav {
    opacity: 0;
    pointer-events: none;
}

.card-image[data-slide-type="card-edu"] .card-image-count {
    right: 12px;
    top: 12px;
}

.card-image[data-slide-type="card-edu"] .card-edu-preview {
    padding: 20px 42px 18px 48px;
}

.card-image[data-slide-type="card-edu"] .card-edu-preview::before {
    left: 30px;
    top: 44px;
    bottom: 18px;
}

.card-image[data-slide-type="card-edu"] .card-edu-topline {
    padding-right: 48px;
}

.card-image[data-slide-type="card-edu"] .card-edu-topline span {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
}

.card-image[data-slide-type="card-edu"] .card-edu-topline b {
    max-width: 150px;
    padding: 4px 8px;
    font-size: 0.62rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-image[data-slide-type="card-edu"] .card-edu-preview h4 {
    font-size: 0.92rem;
    line-height: 1.06;
}

.card-image[data-slide-type="card-edu"] .card-edu-preview strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.18;
}

.card-image[data-slide-type="card-edu"] .card-edu-preview p {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    line-height: 1.25;
}

@media (max-width: 390px) {
    .card-image[data-slide-type="card-edu"] .card-edu-preview {
        padding: 18px 38px 18px 44px;
    }

    .card-image[data-slide-type="card-edu"] .card-edu-topline b {
        max-width: 126px;
    }
}

/* ==========================================================================
   v=38 — MODERN REDESIGN 2025 — EvoHub CECAPE
   Tendências 21st: gradient text, glow cards, dark footer, dot-grid banner,
   refined CTAs, glassmorphism, smooth micro-interactions.
   ========================================================================== */

/* ─── Global base ─────────────────────────────────────────────────────── */

body {
    line-height: 1.65;
}

/* ─── Enhanced background grid (Vercel-style) ────────────────────────── */

.bg-grid {
    background-image: radial-gradient(rgba(26, 86, 232, 0.18) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.35;
}

[data-theme="dark"] .bg-grid {
    background-image: radial-gradient(rgba(0, 170, 255, 0.12) 1px, transparent 1px);
    opacity: 0.45;
}

/* ─── Section heading gradient ───────────────────────────────────────── */

.section-title-area h2,
.category-header h2 {
    background: linear-gradient(135deg, #1A56E8 20%, #00AAFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
}

[data-theme="dark"] .section-title-area h2,
[data-theme="dark"] .category-header h2 {
    background: linear-gradient(135deg, #60A5FA 10%, #38BDF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hero section v=38 ──────────────────────────────────────────────── */

.hero-section {
    padding: 32px 0 28px;
}

.hero-card {
    border: 1px solid rgba(26, 86, 232, 0.18);
    box-shadow:
        0 24px 64px rgba(26, 86, 232, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 80% 50%, rgba(26, 86, 232, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-info h2 {
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-primary) 0%, #1A56E8 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.08;
}

[data-theme="dark"] .hero-info h2 {
    background: linear-gradient(135deg, #F8FAFC 0%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value {
    background: linear-gradient(135deg, #1A56E8, #00AAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.7rem;
    font-weight: 900;
}

.badge {
    background: rgba(26, 86, 232, 0.08);
    border: 1px solid rgba(26, 86, 232, 0.28);
    color: #1A56E8;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(26, 86, 232, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .badge {
    color: #60A5FA;
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(96, 165, 250, 0.08);
}

/* ─── Product cards v=38 ─────────────────────────────────────────────── */

.card {
    border: 1px solid rgba(26, 86, 232, 0.1);
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card-solid);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 40px rgba(26, 86, 232, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.07);
    border-color: rgba(26, 86, 232, 0.3);
}

.card:hover .card-image img {
    transform: translateY(-5px) scale(1.04);
}

[data-theme="dark"] .card {
    border-color: rgba(26, 86, 232, 0.15);
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="dark"] .card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 12px 40px rgba(59, 130, 246, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-title {
    letter-spacing: -0.02em;
    font-size: 1.28rem;
    line-height: 1.12;
}

.card-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 170, 255, 0.09);
    border: 1px solid rgba(0, 170, 255, 0.22);
    color: #0099DD;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

[data-theme="dark"] .card-spec {
    color: #00AAFF;
    background: rgba(0, 170, 255, 0.12);
    border-color: rgba(0, 170, 255, 0.28);
}

/* ─── Price panel v=38 ───────────────────────────────────────────────── */

.price-panel {
    border: 1px solid rgba(26, 86, 232, 0.16);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(26, 86, 232, 0.06) 0%, rgba(0, 170, 255, 0.03) 100%),
        rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .price-panel {
    background:
        linear-gradient(135deg, rgba(26, 86, 232, 0.12) 0%, rgba(0, 170, 255, 0.06) 100%),
        rgba(15, 23, 42, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.price-main {
    background: linear-gradient(135deg, #1A56E8 0%, #00AAFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.35rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 0.95;
}

/* ─── CTA buttons v=38 ───────────────────────────────────────────────── */

.details-cta {
    background: linear-gradient(135deg, #1A56E8 0%, #00AAFF 100%);
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(26, 86, 232, 0.32);
    animation: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.details-cta:hover,
.details-cta:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 36px rgba(26, 86, 232, 0.45);
    filter: brightness(1.08);
    outline: none;
}

.add-cart-btn {
    background: linear-gradient(135deg, #1A56E8 0%, #00AAFF 100%);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(26, 86, 232, 0.28);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-cart-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 28px rgba(26, 86, 232, 0.42);
    filter: brightness(1.08);
}

.btn-primary {
    background: linear-gradient(135deg, #1A56E8 0%, #00AAFF 100%);
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(26, 86, 232, 0.28);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 32px rgba(26, 86, 232, 0.44);
    filter: brightness(1.06);
}

/* ─── Search box v=38 ────────────────────────────────────────────────── */

.product-search-box {
    border: 1.5px solid rgba(26, 86, 232, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(26, 86, 232, 0.07);
    height: 50px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-search-box:focus-within {
    border-color: #1A56E8;
    box-shadow:
        0 0 0 3px rgba(26, 86, 232, 0.12),
        0 6px 22px rgba(26, 86, 232, 0.14);
    background: #fff;
}

[data-theme="dark"] .product-search-box {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(59, 130, 246, 0.22);
}

[data-theme="dark"] .product-search-box:focus-within {
    border-color: #3B82F6;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.15),
        0 6px 22px rgba(59, 130, 246, 0.18);
    background: rgba(15, 23, 42, 0.9);
}

/* ─── Category navigation v=38 ───────────────────────────────────────── */

.categories-nav {
    border: 1.5px solid rgba(26, 86, 232, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .categories-nav {
    border-color: rgba(59, 130, 246, 0.14);
}

.section-title {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cat-card {
    border-radius: 14px;
    border: 1.5px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-card:hover,
.cat-card:focus-visible,
.cat-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--cat-color) 24%, transparent);
}

/* ─── Category section header v=38 ──────────────────────────────────── */

.category-icon {
    border-radius: 14px;
    width: 50px;
    height: 50px;
    box-shadow: 0 6px 18px rgba(26, 86, 232, 0.15);
}

.category-header {
    margin-bottom: 24px;
    gap: 14px;
}

.category-section {
    margin-bottom: 72px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ─── Banner Soberano v=38 — dot-grid pattern ────────────────────────── */

.banner-soberano {
    overflow: hidden;
}

.banner-soberano::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}

.banner-soberano::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.12) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.banner-soberano-inner {
    position: relative;
    z-index: 1;
}

.banner-soberano-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-transform: uppercase;
}

/* ─── Footer v=38 dark treatment ────────────────────────────────────── */

.main-footer {
    background: #0A1428;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 80px;
    padding: 52px 0;
}

.main-footer .footer-info {
    color: #94A3B8;
    line-height: 1.7;
}

.main-footer .footer-logo img {
    opacity: 0.9;
    filter: brightness(1.15);
}

.main-footer .footer-social a {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #64748B;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-footer .footer-social a:hover {
    background: rgba(26, 86, 232, 0.18);
    border-color: rgba(26, 86, 232, 0.45);
    color: #00AAFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(26, 86, 232, 0.28);
}

[data-theme="dark"] .main-footer {
    background: #030D1E;
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* ─── Modal v=38 ────────────────────────────────────────────────────── */

.modal-container {
    border: 1px solid rgba(26, 86, 232, 0.14);
    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.modal-close {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 86, 232, 0.12);
}

.modal-close:hover {
    background: linear-gradient(135deg, #1A56E8, #00AAFF);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(26, 86, 232, 0.36);
}

/* ─── Tab buttons v=38 ───────────────────────────────────────────────── */

.tab-btn.active {
    background: linear-gradient(135deg, #1A56E8, #00AAFF);
    box-shadow: 0 8px 22px rgba(26, 86, 232, 0.3);
    border-color: transparent;
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background: rgba(26, 86, 232, 0.07);
    border-color: rgba(26, 86, 232, 0.3);
    color: #1A56E8;
}

[data-theme="dark"] .tab-btn:hover:not(.active) {
    color: #60A5FA;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(96, 165, 250, 0.08);
}

/* ─── Cart v=38 ─────────────────────────────────────────────────────── */

.cart-fab {
    background: linear-gradient(135deg, #1A56E8, #2563EB);
    box-shadow: 0 14px 32px rgba(26, 86, 232, 0.38);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-fab:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 18px 40px rgba(26, 86, 232, 0.5);
    filter: brightness(1.08);
}

.cart-kicker {
    background: linear-gradient(135deg, #1A56E8, #00AAFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-whatsapp {
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-whatsapp:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.42);
    filter: brightness(1.06);
}

.cart-continue {
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── FABs v=38 ──────────────────────────────────────────────────────── */

.fab-quote {
    background: linear-gradient(135deg, #1A56E8, #2563EB);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26, 86, 232, 0.38);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.fab-quote:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(26, 86, 232, 0.5);
    filter: brightness(1.08);
}

/* ─── Promo pill v=38 ────────────────────────────────────────────────── */

.promo-pill {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.38);
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.7rem;
}

/* ─── Link items v=38 ────────────────────────────────────────────────── */

.link-item {
    border-radius: 14px;
    border: 1px solid rgba(26, 86, 232, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover {
    background: linear-gradient(135deg, rgba(26, 86, 232, 0.06), rgba(0, 170, 255, 0.03));
    border-color: rgba(26, 86, 232, 0.28);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(26, 86, 232, 0.12);
}

/* ─── Quantity control v=38 ──────────────────────────────────────────── */

.qty-control {
    border: 1.5px solid rgba(26, 86, 232, 0.14);
    border-radius: 12px;
}

.qty-control button:hover {
    background: rgba(26, 86, 232, 0.1);
    color: #1A56E8;
}

/* ─── Toast v=38 ─────────────────────────────────────────────────────── */

.toast {
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(26, 86, 232, 0.09);
}

/* ─── Skeleton v=38 ──────────────────────────────────────────────────── */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(26, 86, 232, 0.04) 25%,
        rgba(26, 86, 232, 0.09) 50%,
        rgba(26, 86, 232, 0.04) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
}

/* ─── Rail nav v=38 ──────────────────────────────────────────────────── */

.rail-link {
    border-radius: 14px;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.rail-link:hover,
.rail-link.is-active {
    transform: translateX(4px);
}

/* ─── Mobile bottom nav v=38 ─────────────────────────────────────────── */

.mobile-app-nav {
    border: 1.5px solid rgba(26, 86, 232, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .mobile-app-nav {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(59, 130, 246, 0.12);
}

/* ─── Mobile responsive v=38 ────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero-section {
        padding: 48px 0 32px;
    }

    .hero-info h2 {
        font-size: 2.2rem;
        letter-spacing: -0.035em;
    }

    .section-title-area h2,
    .category-header h2 {
        font-size: 1.4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .main-footer {
        padding: 40px 0;
        margin-top: 60px;
    }

    .category-section {
        margin-bottom: 56px;
    }

    .details-cta {
        padding: 13px 16px;
    }

    .product-search-box {
        height: 46px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .hero-info h2 {
        font-size: 1.85rem;
        letter-spacing: -0.03em;
    }

    .price-main {
        font-size: 2.05rem;
    }

    .section-title-area h2,
    .category-header h2 {
        font-size: 1.25rem;
    }

    .btn-primary {
        border-radius: 10px;
        padding: 14px 24px;
    }
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .card,
    .cat-card,
    .details-cta,
    .add-cart-btn,
    .btn-primary,
    .cart-fab,
    .fab-quote,
    .link-item {
        transition-duration: 0.01ms;
        animation: none !important;
    }
}
