/* ==========================================================================
   Editor de Site+ - Design System & Estilos Principais
   Visual Dark Moderno, Sofisticado e Premium
   ========================================================================== */

:root {
    --bg-main: #060b17;
    --bg-secondary: #0a1428;
    --bg-card: rgba(13, 24, 48, 0.75);
    --bg-card-hover: rgba(18, 33, 66, 0.85);
    --bg-surface: #0f1f3d;
    --bg-glass: rgba(11, 23, 45, 0.85);
    
    --primary: #0066ff;
    --primary-light: #00a3ff;
    --primary-glow: rgba(0, 163, 255, 0.4);
    --primary-dark: #004ecc;
    
    --accent-cyan: #38bdf8;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 163, 255, 0.25);
    --border-glow-hover: rgba(0, 163, 255, 0.6);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 25px rgba(0, 102, 255, 0.35);
    --shadow-glow-cyan: 0 0 30px rgba(56, 189, 248, 0.3);
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at 50% 0%, #0d234a 0%, #060b17 65%), #060b17;
    background-attachment: fixed;
    line-height: 1.5;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Tipografia */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navegação Superior
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 11, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

/* Logotipo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(0, 163, 255, 0.5);
}

.brand-icon-box svg {
    color: white;
}

.brand-plus {
    color: var(--primary-light);
    font-size: 1.45rem;
    font-weight: 900;
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-menu-link:hover,
.nav-menu-link.active {
    color: #ffffff;
}

.nav-menu-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px var(--primary-light);
}

/* Ações do Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header-search-btn {
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 31, 61, 0.6);
    border: 1px solid rgba(0, 163, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-search-btn:hover {
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.2);
}

.search-shortcut-badge {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.header-report-btn {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 163, 255, 0.2));
    border-color: rgba(0, 163, 255, 0.35);
    color: #38bdf8;
}

.header-report-btn:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(0, 163, 255, 0.35));
    border-color: var(--primary-light);
    color: #ffffff;
}

.cart-icon-btn {
    position: relative;
    padding: 9px 12px;
}

.cart-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-light);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.8);
}

/* ==========================================================================
   Hero Section (Fiel à imagem de referência)
   ========================================================================== */
.hero-section {
    padding: 50px 0 60px;
    position: relative;
    max-width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-content,
.hero-showcase-box {
    min-width: 0;
    max-width: 100%;
}

.hero-content {
    overflow-wrap: anywhere;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.35rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 520px;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #005ce6, #0099ff);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.45);
    transition: var(--transition);
}

.btn-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 153, 255, 0.6);
    background: linear-gradient(135deg, #0066ff, #00b4ff);
}

/* Imagem Showcase do Hero */
.hero-showcase-box {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 8px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.25) 0%, transparent 70%);
}

.hero-showcase-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 102, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
}

.hero-showcase-box:hover .hero-showcase-img {
    transform: scale(1.015);
}

/* ==========================================================================
   Filtros de Categoria (Pills Centrais da Imagem)
   ========================================================================== */
.categories-filter-section {
    padding: 20px 0 35px;
}

.filter-pills-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: rgba(15, 31, 61, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill-btn:hover {
    background: rgba(24, 48, 92, 0.8);
    color: #ffffff;
    border-color: rgba(0, 163, 255, 0.3);
}

.filter-pill-btn.active {
    background: #0066ff;
    color: #ffffff;
    border-color: #0088ff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
}

.filter-pill-btn svg {
    color: currentColor;
}

/* ==========================================================================
   Seção de Produtos & Catálogo
   ========================================================================== */
.section-header-centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-headline {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subheadline {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

@media (max-width: 700px) {
    #productsGrid { grid-template-columns: minmax(0, 1fr); }
}

/* Card do Produto */
.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 102, 255, 0.25);
    background: var(--bg-card-hover);
}

/* Mídia do Card */
.product-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #070e1c;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(6, 11, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 163, 255, 0.3);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 11, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-card-media:hover .product-hover-overlay {
    opacity: 1;
}

.btn-hover-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 255, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.5);
}

/* Corpo do Card */
.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-category-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-stars {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.star-icon {
    color: #fbbf24;
}

.rating-count {
    color: var(--text-muted);
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    cursor: pointer;
    transition: color 0.2s;
}

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

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Linha de Preço */
.product-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

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

.original-price {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.btn-details-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.btn-details-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Botões de Ação do Card */
.product-card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.btn-buy-primary {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0066ff;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 102, 255, 0.4);
    transition: var(--transition);
}

.btn-buy-primary:hover {
    background: #0056e0;
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.6);
    transform: translateY(-1px);
}

.btn-demo-secondary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-demo-secondary:hover {
    background: rgba(0, 163, 255, 0.15);
    border-color: var(--primary-light);
    color: var(--accent-cyan);
}

.btn-cart-secondary {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cart-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.product-payment-tags {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Banner de Solução Única de Pagamento (Da imagem de referência)
   ========================================================================== */
.payment-solution-banner {
    background: linear-gradient(135deg, rgba(13, 27, 56, 0.9), rgba(11, 23, 48, 0.95));
    border: 1px solid rgba(0, 163, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 30px 40px;
    margin-bottom: 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 102, 255, 0.15);
}

.payment-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.payment-banner-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.payment-visual-cards {
    position: relative;
    width: 90px;
    height: 60px;
    flex-shrink: 0;
}

.payment-cards-art {
    display: block;
    width: 100%;
    height: 100%;
}

.payment-banner-text h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 4px;
}

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

.payment-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-continue-checkout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0066ff;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.45);
    transition: var(--transition);
}

.btn-continue-checkout:hover {
    background: #0056e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.65);
}

.payment-methods-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Trust Badges / Garantias (Da imagem de referência)
   ========================================================================== */
.trust-badges-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 28px;
    margin-bottom: 70px;
    padding: 28px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-badge-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.trust-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 163, 255, 0.35);
    background: linear-gradient(145deg, rgba(0, 163, 255, 0.12), rgba(0, 102, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(127, 214, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.trust-badge-content {
    min-width: 0;
    padding-top: 1px;
    overflow-wrap: anywhere;
}

.trust-badge-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.trust-badge-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 35ch;
}

@media (max-width: 900px) {
    .trust-badges-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 8px 0;
        margin-bottom: 40px;
    }

    .trust-badge-item {
        padding: 20px 0;
    }

    .trust-badge-item + .trust-badge-item {
        border-top: 1px solid var(--border-subtle);
    }

    .trust-badge-content p {
        max-width: none;
    }
}

/* ==========================================================================
   Rodapé Completo (Com todas as seções e links)
   ========================================================================== */
.site-footer {
    background: #040812;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col-brand h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-col-brand p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 18px;
    max-width: 380px;
}

.footer-social-title {
    display: inline-flex;
    position: relative;
    top: 20px;
    align-items: center;
    gap: 6px;
    /* Cor branca fixa para o título das redes sociais. */
    color: #ffffff !important;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.footer-social-icons .social-icon-btn {
    flex-shrink: 0;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 1.3125rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-links-list a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-item svg {
    color: var(--accent-cyan);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.footer-contact-item span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-location-contact {
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}

.footer-location-contact:hover strong {
    color: var(--accent-cyan);
}

.footer-location-contact:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 5px;
}

.footer-contact-item.footer-whatsapp-contact,
.footer-contact-item.footer-whatsapp-contact strong {
    color: var(--accent-cyan);
    text-decoration: none;
}

.footer-contact-item.footer-whatsapp-contact strong {
    color: #ffffff;
}

.footer-contact-item.footer-whatsapp-contact:hover strong {
    color: var(--accent-cyan);
}

/* Linha inferior de direitos */
.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   Modais, Drawers & Componentes Interativos
   ========================================================================== */

/* Overlays */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: #0a152d;
    border: 1px solid rgba(0, 163, 255, 0.25);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 102, 255, 0.2);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
    transform: scale(1);
}

.modal-dialog-lg {
    max-width: 950px;
}

.modal-dialog-xl {
    max-width: 1180px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title-group h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-title-group p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.modal-body {
    padding: 28px;
}

/* ==========================================================================
   Checkout Unificado & Gateway de Pagamentos
   ========================================================================== */
.checkout-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
}

.checkout-sidebar {
    background: rgba(15, 31, 61, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.checkout-summary-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.checkout-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.checkout-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #070e1c;
}

.checkout-item-info {
    flex-grow: 1;
}

.checkout-item-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.checkout-item-qty {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.checkout-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.checkout-total-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total-box span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.checkout-total-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

/* Formulário de Dados do Cliente */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-field input, .form-field select {
    background: rgba(15, 31, 61, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus, .form-field select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.3);
}

/* Abas de Pagamento */
.payment-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}

.payment-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: rgba(15, 31, 61, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.payment-tab-btn:hover {
    background: rgba(24, 48, 92, 0.7);
    color: #ffffff;
}

.payment-tab-btn.active {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.25);
}

.payment-tab-btn span {
    font-size: 0.75rem;
    font-weight: 700;
}

.payment-tab-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}

.payment-tab-panel.active {
    display: block;
}

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

/* Painel Pix */
.pix-panel-content {
    background: rgba(15, 31, 61, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.pix-qr-wrapper {
    display: inline-block;
    padding: 14px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(0, 163, 255, 0.3);
}

.pix-timer-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.pix-copy-box {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.pix-copy-box input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Cartão Visual 3D */
.credit-card-preview-box {
    background: linear-gradient(135deg, #0b1a3d, #004ecc, #0088ff);
    border-radius: 14px;
    padding: 20px;
    color: white;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.card-preview-chip {
    width: 36px;
    height: 28px;
    background: #ffd700;
    border-radius: 5px;
    margin-bottom: 16px;
}

.card-preview-number {
    font-family: monospace;
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    margin-bottom: 14px;
}

.card-preview-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Painel Débito */
.bank-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.bank-option-btn {
    padding: 12px 8px;
    background: rgba(15, 31, 61, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.bank-option-btn:hover, .bank-option-btn.active {
    background: rgba(0, 102, 255, 0.2);
    border-color: var(--primary-light);
    color: white;
}

/* Painel Boleto */
.boleto-preview-box {
    background: rgba(15, 31, 61, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.barcode-svg-wrapper {
    background: white;
    padding: 14px;
    border-radius: 6px;
    margin: 14px auto;
    display: inline-block;
}

/* Botão Submit do Checkout */
.checkout-action-area {
    margin-top: 22px;
}

.btn-checkout-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0066ff, #00a3ff);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
    transition: var(--transition);
}

.btn-checkout-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #0056e0, #0088ff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 163, 255, 0.6);
}

.btn-checkout-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==========================================================================
   Tela de Entrega Automática (Sucesso Imediato)
   ========================================================================== */
.delivery-success-header {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon-bounce {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.delivery-license-container {
    background: rgba(15, 31, 61, 0.6);
    border: 1px dashed rgba(0, 163, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.delivery-license-text code {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

.delivery-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.delivery-item-card {
    background: rgba(15, 31, 61, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.delivery-item-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.delivery-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.delivery-item-file {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Canvas Confetti */
#confettiCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3000;
}

/* ==========================================================================
   Relatório de Vendas (Painel de Gestão & Métricas)
   ========================================================================== */
.report-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.report-period-pills {
    display: flex;
    gap: 8px;
}

.report-period-btn {
    padding: 7px 16px;
    background: rgba(15, 31, 61, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.report-period-btn.active, .report-period-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary-light);
}

.report-actions {
    display: flex;
    gap: 10px;
}

.kpi-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.kpi-card {
    background: rgba(15, 31, 61, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.kpi-card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.kpi-card-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.kpi-card-growth {
    font-size: 0.75rem;
    color: var(--accent-emerald);
    font-weight: 600;
    margin-top: 4px;
}

/* Gráficos e Distribuição */
.report-analytics-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.analytics-chart-box, .analytics-methods-box {
    background: rgba(15, 31, 61, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.box-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
}

.method-bar-row {
    margin-bottom: 12px;
}

.method-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Tabela de Pedidos */
.sales-table-wrapper {
    background: rgba(15, 31, 61, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.sales-table th {
    background: rgba(11, 23, 45, 0.9);
    padding: 12px 16px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

.sales-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.badge-method {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-pix { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }
.badge-card { background: rgba(0, 102, 255, 0.15); color: #38bdf8; }
.badge-debit { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-boleto { background: rgba(147, 197, 253, 0.15); color: #93c5fd; }

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* ==========================================================================
   Demonstração Ao Vivo Interativa (Live Demo Sandbox)
   ========================================================================== */
.demo-modal-dialog {
    max-width: 1280px;
    width: 95vw;
    height: 92vh;
    display: flex;
    flex-direction: column;
}

.demo-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "devices actions" "info info";
    gap: 14px 20px;
    align-items: center;
    flex-shrink: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: #091326;
}

.demo-device-toggles {
    grid-area: devices;
    justify-self: start;
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: var(--radius-full);
}

.demo-modal-info {
    grid-area: info;
    min-width: 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.demo-modal-info span {
    display: block;
    margin-top: 4px;
}

.demo-modal-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.demo-modal-actions .modal-close-btn,
.demo-device-btn svg {
    flex-shrink: 0;
}

.demo-device-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.demo-device-btn.active, .demo-device-btn:hover {
    background: var(--primary);
    color: white;
}

.demo-viewport-container {
    flex-grow: 1;
    min-height: 0;
    background: #040812;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.demo-viewport-wrapper {
    height: 100%;
    max-width: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    background: #070e1c;
}

.demo-viewport-wrapper.device-desktop { width: 100%; }
.demo-viewport-wrapper.device-tablet { width: 768px; }
.demo-viewport-wrapper.device-mobile { width: 375px; }

#liveDemoIframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1024px) {
    .demo-modal-header {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "devices" "info" "actions";
        padding: 14px 16px;
        gap: 12px;
        max-height: 50%;
        overflow-y: auto;
    }

    .demo-device-toggles {
        justify-self: stretch;
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .demo-device-btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 10px 8px;
        white-space: nowrap;
    }

    .demo-modal-info {
        text-align: center;
    }

    .demo-modal-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .demo-modal-actions #liveDemoBuyBtn {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
    }

    .demo-viewport-container {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .demo-modal-header { padding: 12px; }
    .demo-device-toggles { gap: 2px; }
    .demo-device-btn { font-size: 0.75rem; padding-inline: 6px; }
    .demo-modal-actions #liveDemoPrice { font-size: 1rem !important; }
}

/* ==========================================================================
   Drawer Lateral do Carrinho
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #0a152d;
    border-left: 1px solid var(--border-glow);
    z-index: 2200;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-body {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
}

.cart-drawer-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.cart-item-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    background: #070e1c;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 2px 0 6px;
    color: #ffffff;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 700;
}

.qty-control span {
    padding: 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-remove-item:hover {
    color: #ef4444;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(11, 23, 45, 0.7);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.cart-total-final {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Toasts de Notificação
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background: #0f2042;
    border: 1px solid rgba(0, 163, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 102, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Aviso de saída legível também em telas pequenas e com área segura. */
#siteBackNotice {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    box-sizing: border-box;
    width: max-content;
    max-width: min(380px, calc(100vw - 32px));
    padding: 14px 20px;
    border: 1px solid rgba(0, 163, 255, 0.5);
    border-radius: 12px;
    background: #0f2042;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    pointer-events: none;
}
#siteBackNotice[hidden] { display: none !important; }

.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast-success .toast-icon {
    color: #10b981;
}

/* ==========================================================================
   Utilitários & Responsividade
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-xs { padding: 6px 12px; font-size: 0.75rem; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-cyan); }
.font-bold { font-weight: 700; }

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(24px, 4vw, 40px);
    }
    /* Dimensões salvas no desktop não devem ampliar ou cortar a Hero móvel. */
    .hero-section,
    .hero-section .hero-grid {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }
    .hero-section .hero-content,
    .hero-section .hero-showcase-box {
        max-width: 100% !important;
    }
    .hero-section {
        padding-block: clamp(28px, 5vw, 50px);
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        padding-inline: clamp(16px, 4vw, 24px);
    }
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 24px;
    }
    .btn-hero-cta {
        max-width: 100%;
        white-space: normal;
        justify-content: center;
        padding-inline: clamp(16px, 4vw, 30px);
    }
    .header-inner {
        height: 64px;
    }
    .nav-menu {
        display: none;
    }
    .trust-badges-bar {
        grid-template-columns: 1fr;
    }
    .payment-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .payment-banner-left {
        flex-direction: column;
    }
    .payment-banner-right {
        align-items: center;
        width: 100%;
    }
    .btn-continue-checkout {
        width: 100%;
        justify-content: center;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .checkout-modal-grid {
        grid-template-columns: 1fr;
    }
    .kpi-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .report-analytics-grid {
        grid-template-columns: 1fr;
    }
}

/* Componentes de Busca & Resultados */
.search-suggestions-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(15, 31, 61, 0.4);
    border: 1px solid var(--border-subtle);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(24, 48, 92, 0.6);
    border-color: var(--border-glow);
}

.search-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #070e1c;
    flex-shrink: 0;
}

.search-result-info {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.search-result-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0;
}

.search-result-details {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.search-result-details:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }

.search-result-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-price-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.search-result-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

@media (max-width: 480px) {
    .search-result-item {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }
    .search-result-price-action {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .search-result-price-action .btn { min-height: 44px; }
}

.search-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-secondary);
}

/* Área do Cliente & Downloads */
.customer-download-card {
    background: rgba(15, 31, 61, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.download-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-order {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 163, 255, 0.12);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.download-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.download-prod-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.download-license-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.download-license-box code {
    color: var(--accent-cyan);
    font-weight: 700;
    font-family: monospace;
}

/* Modal de Detalhes - Recursos */
.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.modal-feature-item svg {
    flex-shrink: 0;
}

/* Estados Vazios */
.empty-catalog-state, .cart-empty-state, .empty-downloads-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.empty-catalog-state svg, .cart-empty-state svg {
    margin: 0 auto 16px;
    display: block;
}

.empty-catalog-state h3, .cart-empty-state h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 6px;
}

/* Utilitários Visuais Extras */
.badge-soft {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.spinner-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botão Flutuante de WhatsApp: vetor nítido e brilho discreto. */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 1500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 5px rgba(37, 211, 102, 0.12);
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp-btn > svg { display: block; flex-shrink: 0; }

.floating-whatsapp-btn:hover {
    transform: translateY(-3px);
    background: #20c45f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 6px rgba(37, 211, 102, 0.16);
    color: #ffffff;
}

.floating-whatsapp-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 7px;
}

.floating-whatsapp-btn:active { transform: scale(0.96); }

.whatsapp-tooltip-text {
    position: absolute;
    left: 70px;
    background: #0b172d;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(37, 211, 102, 0.4);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip-text,
.floating-whatsapp-btn:focus-visible .whatsapp-tooltip-text {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 480px) {
    .floating-whatsapp-btn { left: 18px; bottom: 18px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp-btn, .whatsapp-tooltip-text { transition: none; }
}

/* Preserve o comportamento semântico de controles ocultos. */
[hidden] { display: none !important; }

/* Ajustes de largura verificados no navegador. */
.header-inner, .header-actions, .brand-logo, .modal-dialog,
.checkout-modal-grid > *, .form-group-row > *, .footer-top-grid > * { min-width: 0; }
.footer-bottom-links { flex-wrap: wrap; }
.modal-dialog { overflow-x: hidden; }
.form-field input, .form-field select { min-width: 0; width: 100%; }
.customer-download-card, .download-license-box, .checkout-summary-item { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #67c8ff;
    outline-offset: 3px;
}
@media (max-width: 1100px) {
    .header-inner { height: auto; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
    .header-inner > nav { order: 3; flex-basis: 100%; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
@media (max-width: 768px) {
    .header-inner > nav { display: none; }
    .header-inner { justify-content: center; }
    .brand-logo { font-size: 1.15rem; }
    .header-actions { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .header-search-btn > span, .header-report-btn > span { display: none; }
    .header-search-btn, .header-action-btn { min-height: 42px; padding: 9px 12px; }
    .footer-bottom-bar { align-items: flex-start; }
    .footer-bottom-links { gap: 10px; }
    .checkout-modal-grid { grid-template-columns: minmax(0, 1fr); }
    .form-group-row { grid-template-columns: minmax(0, 1fr); }
    .payment-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modal-header, .modal-body { padding: 18px; }
    .modal-title-group { min-width: 0; overflow-wrap: anywhere; }
    .modal-close-btn { flex-shrink: 0; }
    .report-top-bar, .report-actions { flex-wrap: wrap; }
    .report-period-pills { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .header-inner { gap: 10px; }
    .brand-logo { flex-basis: 100%; justify-content: center; }
    .header-actions { width: 100%; }
    #headerUserBtn > span { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
    .modal-overlay { padding: 12px; }
    .modal-dialog { max-height: 92dvh; }
}

/* Busca do catálogo: texto visível também no celular. */
.catalog-search-btn { margin: 24px auto 0; width: 184px; height: 44px; min-height: 44px; max-width: 100%; justify-content: center; }
.catalog-search-btn > svg { width: 18px; height: 18px; flex-shrink: 0; }
.catalog-search-btn > span { display: inline; }
@media (max-width: 768px) { .catalog-search-btn > .search-shortcut-badge { display: none; } }


/* Navegação responsiva: a mesma lista atende desktop, tablet e celular. */
.header-inner { gap: 20px; height: 60px; }
.header-inner > .brand-logo { flex-shrink: 0; white-space: nowrap; }
.header-inner > .header-menu-toggle { display: none; }
.header-inner > nav .nav-menu-link { display: block; white-space: nowrap; }
.header-inner > .header-actions { flex-shrink: 0; }
@media (min-width: 1101px) and (max-width: 1280px) {
    .header-inner { gap: 14px; }
    .header-inner > nav .nav-menu { gap: 18px; }
    .header-inner > nav .nav-menu-link { font-size: .88rem; }
}
@media (max-width: 1100px) {
    .header-inner { height: auto; min-height: 60px; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding-block: 8px; position: relative; }
    .header-inner > .brand-logo { order: 0; flex: 1 0 auto; }
    .header-inner > .header-menu-toggle { order: 1; display: inline-flex; min-height: 44px; padding: 10px 16px; color: #fff; }
    .header-inner > .header-actions { order: 2; width: auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; }
    .header-inner > .header-actions > button { min-height: 44px; }
    .header-inner > .header-actions > .cart-icon-btn { min-width: 44px; }
    .header-inner > nav { order: 3; display: block; position: absolute; top: 100%; left: 12px; right: 12px; width: auto; min-width: 0; padding: 12px; background: #0a1528; border: 1px solid var(--border-subtle); border-radius: 0 0 16px 16px; box-shadow: 0 16px 30px #0005; max-height: calc(100dvh - 76px); overflow-y: auto; }
    .header-inner > nav .nav-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 0; max-height: min(55dvh, 380px); overflow-y: auto; }
    .header-inner > nav .nav-menu-link { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; white-space: normal; }
    .header-inner > nav .nav-menu-link.active { background: rgba(0,102,255,.18); border-color: rgba(0,163,255,.5); color: #fff; }
    .header-inner > nav .nav-menu-link.active::after { content: none; }
    .header-inner > nav[hidden] { display: none; }
    .header-inner > .header-menu-toggle[aria-expanded="true"] { background: rgba(0,102,255,.2); border-color: var(--primary-light); }
}
/* Celular: marca, conta, carrinho e menu compartilham a faixa superior. */
@media (max-width: 600px) {
    .header-inner {
        min-height: 52px;
        height: auto;
        padding: 4px 8px;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
    }
    .header-inner > .brand-logo {
        order: 0;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        justify-content: flex-start;
        gap: 4px;
        font-size: clamp(.6875rem, 3.2vw, .9375rem);
    }
    .header-inner > .brand-logo .brand-icon-box {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        flex-shrink: 0;
    }
    .header-inner > .brand-logo .brand-icon-box svg { width: 16px; height: 16px; }
    .header-inner > .brand-logo .brand-plus { font-size: 1em; }
    /* Os botões continuam no mesmo contêiner e mantêm seus eventos. */
    .header-inner > .header-actions { display: contents; }
    .header-inner > .header-actions > .cart-icon-btn {
        order: 2;
        flex: 0 0 36px;
        width: 36px;
        min-width: 36px;
        height: 44px;
        padding: 8px;
    }
    .header-inner > .header-menu-toggle {
        order: 3;
        flex: 0 0 auto;
        min-height: 44px;
        padding: 8px;
        gap: 4px;
        font-size: .75rem;
    }
    .header-inner > .header-menu-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
    /* O acesso administrativo permanece disponível quando autorizado. */
    .header-inner > .header-actions > .header-editor-btn {
        order: 4;
        min-height: 44px;
        margin-left: auto;
    }
    .header-inner > nav .nav-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner > nav .nav-menu li:first-child { grid-column: 1 / -1; }
}

/* Detalhes do produto: conteúdo legível dentro da largura real do diálogo. */
#productDetailsModal .modal-dialog {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
#productDetailsModal .modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: flex-start;
    gap: 16px;
    background: #0a152d;
}
#productDetailsModal .modal-title-group {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
#productDetailsModal .modal-title-group h3 { line-height: 1.4; margin-bottom: 6px; }
#productDetailsModal .modal-title-group p { color: #b7c5d8; line-height: 1.55; }
#productDetailsModal .modal-close-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #e2e8f0;
}
#productDetailsModal .modal-body { container: product-details / inline-size; }
#productDetailsModal .product-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 24px;
}
#productDetailsModal .product-details-grid > * { min-width: 0; overflow-wrap: anywhere; }
#modalProdImage {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #060b17;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}
#productDetailsModal .product-details-file {
    display: grid;
    gap: 8px;
    padding: 14px;
    margin-top: 14px;
    border-radius: 10px;
    background: rgba(15,31,61,0.5);
    font-size: 0.8125rem;
    color: #b7c5d8;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
#productDetailsModal .product-details-file strong { display: block; }
#productDetailsModal .product-details-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 18px;
}
#modalProdOriginalPrice { font-size: 0.875rem; color: #a8b8cf; text-decoration: line-through; }
#modalProdPrice { font-size: 2rem; line-height: 1.3; font-weight: 800; color: #fff; white-space: nowrap; }
#productDetailsModal .product-details-payment {
    flex: 1 1 160px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.6;
    color: #6ee7b7;
}
#modalProdDesc { font-size: 0.9375rem; color: #d3deed; line-height: 1.75; margin-bottom: 20px; }
#productDetailsModal .modal-feature-item { align-items: flex-start; color: #b7c5d8; line-height: 1.65; }
#productDetailsModal .modal-feature-item svg { margin-top: 3px; }
#productDetailsModal .modal-feature-item span { min-width: 0; }
#productDetailsModal .product-details-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#productDetailsModal .product-details-actions .btn {
    flex: 1 1 180px;
    min-width: 0;
    min-height: 48px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
@media (max-width: 820px) {
    #productDetailsModal { padding: 12px; }
    #productDetailsModal .modal-header, #productDetailsModal .modal-body { padding: 18px; }
    #productDetailsModal .modal-title-group h3 { font-size: 1.125rem; }
    #productDetailsModal .product-details-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    #productDetailsModal .product-details-actions { flex-direction: column; }
    #productDetailsModal .product-details-actions .btn { flex: 0 1 auto; width: 100%; }
}
/* Também adapta o diálogo quando o painel do editor reduz o espaço disponível. */
@container product-details (max-width: 700px) {
    #productDetailsModal .product-details-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    #productDetailsModal .product-details-actions { flex-direction: column; }
    #productDetailsModal .product-details-actions .btn { flex: 0 1 auto; width: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) {
    #productDetailsModal .modal-header { position: static; }
}

/* Ajuste fino da Hero: só atua nas faixas de tela configuradas pelo editor. */
@media (min-width: 1025px) {
    .hero-section[data-hero-size-desktop] {
        width: var(--hero-desktop-width) !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: var(--hero-desktop-height) !important;
        aspect-ratio: auto !important;
        padding-top: var(--hero-desktop-padding-top) !important;
        padding-bottom: var(--hero-desktop-padding-bottom) !important;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
@media (max-width: 1024px) {
    .hero-section[data-hero-size-mobile] {
        width: var(--hero-mobile-width) !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: var(--hero-mobile-height) !important;
        aspect-ratio: auto !important;
        padding-top: var(--hero-mobile-padding-top) !important;
        padding-bottom: var(--hero-mobile-padding-bottom) !important;
        margin-inline: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Auditoria: conteúdo e controles cabem em telas estreitas e em paisagem. */
.modal-dialog { max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
.modal-dialog :is(input,textarea,select) { max-width: 100%; min-width: 0; }
.cart-item-details { min-width: 0; overflow-wrap: anywhere; }
.drawer-footer .btn, .btn-continue-checkout { white-space: normal; }
button:focus-visible, a:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }
@media (max-width: 600px) {
 .header-inner > .brand-logo > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
 .modal-dialog :is(input,textarea,select) { font-size: 16px; }
 .qty-control button, .btn-remove-item, .modal-close-btn { min-width: 40px; min-height: 44px; }
 .cart-drawer-panel { height: 100dvh; max-width: 100vw; }
 .drawer-footer { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-height: 500px) and (orientation: landscape) {
 .modal-overlay { padding: 8px; }
 .modal-dialog { max-height: calc(100dvh - 16px); }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto !important; }
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* WhatsApp compacto: preso ao canto inferior esquerdo da Hero. */
.hero-section > .hero-whatsapp-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 3;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    min-width: 47px;
    max-width: 47px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    border: 1px solid rgba(0, 221, 172, .28);
    border-radius: 12px;
    background: transparent;
    color: #00ddac;
    box-shadow: none;
    line-height: 1;
    text-decoration: none;
    transform: none;
    -webkit-tap-highlight-color: transparent;
}
.hero-whatsapp-btn > svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.hero-section > .hero-whatsapp-btn:hover,
.hero-section > .hero-whatsapp-btn:active {
    background: transparent;
    color: #00ddac;
    border-color: currentColor;
    box-shadow: none;
    transform: none;
}
.hero-section > .hero-whatsapp-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Contato por e-mail no rodapé. */
.footer-email-contact {
    color: inherit;
    text-decoration: none;
    border-radius: 6px;
}

.footer-email-contact > div {
    min-width: 0;
}

.footer-email-contact span {
    overflow-wrap: anywhere;
}

.footer-email-contact:hover strong {
    color: var(--accent-cyan);
}

.footer-email-contact:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 5px;
}

/* Hero: leitura e enquadramento em telas menores; desktop preservado. */
@media (max-width: 1024px) {
 .hero-section .hero-content { width:100% !important; height:auto !important; aspect-ratio:auto !important; }
 .hero-section .hero-grid { min-height:0; }
 .hero-section .hero-title { max-width:100%; line-height:1.16; text-wrap:balance; }
 .hero-section .hero-subtitle { max-width:38em; }
 .hero-section .hero-showcase-box { width:100%; max-width:640px !important; justify-self:center; }
 .hero-section:has(> .hero-whatsapp-btn:not([hidden])) { padding-bottom:68px; }
}
@media (max-width:600px) {
 .hero-section .hero-title { font-size:clamp(1.65rem,7.5vw,2.25rem) !important; }
 .hero-section .hero-title br { display:none; }
 .hero-section .hero-subtitle { font-size:1rem !important; line-height:1.6; }
 .hero-section .hero-eyebrow { font-size:.72rem; line-height:1.6; letter-spacing:.055em; }
 .hero-section .hero-grid { gap:24px; }
 .hero-section .hero-showcase-img { display:block; }
 .hero-section .hero-content :is(.btn,a,button) { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
}

@media (max-width:600px) {
 .hero-section[data-hero-layout-phone] { height:auto !important; aspect-ratio:auto !important; min-height:var(--hero-layout-phone-minHeight) !important; padding-top:var(--hero-layout-phone-paddingTop) !important; padding-bottom:var(--hero-layout-phone-paddingBottom) !important; display:flex; flex-direction:column; justify-content:var(--hero-layout-phone-vertical); }
 .hero-section[data-hero-layout-phone] .hero-grid { gap:var(--hero-layout-phone-gap) !important; align-items:var(--hero-layout-phone-vertical) !important; flex-shrink:0; }
 .hero-section[data-hero-layout-phone] .hero-content { text-align:var(--hero-layout-phone-align) !important; }
 .hero-section[data-hero-layout-phone] .hero-title { font-size:var(--hero-layout-phone-titleSize) !important; text-align:var(--hero-layout-phone-align) !important; }
 .hero-section[data-hero-layout-phone] .hero-subtitle { font-size:var(--hero-layout-phone-subtitleSize) !important; text-align:var(--hero-layout-phone-align) !important; margin-inline:0; }
 .hero-section[data-hero-layout-phone][style*="--hero-layout-phone-align: center"] .hero-subtitle { margin-inline:auto; }
 .hero-section[data-hero-layout-phone][style*="--hero-layout-phone-align: right"] .hero-subtitle { margin-left:auto; }
}

@media (min-width:601px) and (max-width:1024px) {
 .hero-section[data-hero-layout-tablet] { height:auto !important; aspect-ratio:auto !important; min-height:var(--hero-layout-tablet-minHeight) !important; padding-top:var(--hero-layout-tablet-paddingTop) !important; padding-bottom:var(--hero-layout-tablet-paddingBottom) !important; display:flex; flex-direction:column; justify-content:var(--hero-layout-tablet-vertical); }
 .hero-section[data-hero-layout-tablet] .hero-grid { gap:var(--hero-layout-tablet-gap) !important; align-items:var(--hero-layout-tablet-vertical) !important; flex-shrink:0; }
 .hero-section[data-hero-layout-tablet] .hero-content { text-align:var(--hero-layout-tablet-align) !important; }
 .hero-section[data-hero-layout-tablet] .hero-title { font-size:var(--hero-layout-tablet-titleSize) !important; text-align:var(--hero-layout-tablet-align) !important; }
 .hero-section[data-hero-layout-tablet] .hero-subtitle { font-size:var(--hero-layout-tablet-subtitleSize) !important; text-align:var(--hero-layout-tablet-align) !important; margin-inline:0; }
 .hero-section[data-hero-layout-tablet][style*="--hero-layout-tablet-align: center"] .hero-subtitle { margin-inline:auto; }
 .hero-section[data-hero-layout-tablet][style*="--hero-layout-tablet-align: right"] .hero-subtitle { margin-left:auto; }
}

@media (min-width:1025px) and (max-width:1599px) {
 .hero-section[data-hero-layout-notebook] { height:auto !important; aspect-ratio:auto !important; min-height:var(--hero-layout-notebook-minHeight) !important; padding-top:var(--hero-layout-notebook-paddingTop) !important; padding-bottom:var(--hero-layout-notebook-paddingBottom) !important; display:flex; flex-direction:column; justify-content:var(--hero-layout-notebook-vertical); }
 .hero-section[data-hero-layout-notebook] .hero-grid { gap:var(--hero-layout-notebook-gap) !important; align-items:var(--hero-layout-notebook-vertical) !important; flex-shrink:0; }
 .hero-section[data-hero-layout-notebook] .hero-content { text-align:var(--hero-layout-notebook-align) !important; }
 .hero-section[data-hero-layout-notebook] .hero-title { font-size:var(--hero-layout-notebook-titleSize) !important; text-align:var(--hero-layout-notebook-align) !important; }
 .hero-section[data-hero-layout-notebook] .hero-subtitle { font-size:var(--hero-layout-notebook-subtitleSize) !important; text-align:var(--hero-layout-notebook-align) !important; margin-inline:0; }
 .hero-section[data-hero-layout-notebook][style*="--hero-layout-notebook-align: center"] .hero-subtitle { margin-inline:auto; }
 .hero-section[data-hero-layout-notebook][style*="--hero-layout-notebook-align: right"] .hero-subtitle { margin-left:auto; }
}

@media (min-width:1600px) {
 .hero-section[data-hero-layout-desktop] { height:auto !important; aspect-ratio:auto !important; min-height:var(--hero-layout-desktop-minHeight) !important; padding-top:var(--hero-layout-desktop-paddingTop) !important; padding-bottom:var(--hero-layout-desktop-paddingBottom) !important; display:flex; flex-direction:column; justify-content:var(--hero-layout-desktop-vertical); }
 .hero-section[data-hero-layout-desktop] .hero-grid { gap:var(--hero-layout-desktop-gap) !important; align-items:var(--hero-layout-desktop-vertical) !important; flex-shrink:0; }
 .hero-section[data-hero-layout-desktop] .hero-content { text-align:var(--hero-layout-desktop-align) !important; }
 .hero-section[data-hero-layout-desktop] .hero-title { font-size:var(--hero-layout-desktop-titleSize) !important; text-align:var(--hero-layout-desktop-align) !important; }
 .hero-section[data-hero-layout-desktop] .hero-subtitle { font-size:var(--hero-layout-desktop-subtitleSize) !important; text-align:var(--hero-layout-desktop-align) !important; margin-inline:0; }
 .hero-section[data-hero-layout-desktop][style*="--hero-layout-desktop-align: center"] .hero-subtitle { margin-inline:auto; }
 .hero-section[data-hero-layout-desktop][style*="--hero-layout-desktop-align: right"] .hero-subtitle { margin-left:auto; }
}

/* Checkout: acabamento visual isolado; preserva os controles e o fluxo existente. */
#checkoutModal {
    background: rgba(3, 7, 18, .82);
    padding: 24px;
}
#checkoutModal .modal-dialog {
    max-width: 1040px;
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    background: var(--bg-secondary);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .55);
    scrollbar-width: thin;
    scrollbar-color: var(--border-glow) transparent;
}
#checkoutModal .modal-header {
    padding: 26px 32px 24px;
    gap: 18px;
    background: linear-gradient(120deg, rgba(56, 189, 248, .06), transparent 70%);
}
#checkoutModal .checkout-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--accent-cyan);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .16em;
}
#checkoutModal .modal-title-group h3 {
    color: var(--text-primary);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    letter-spacing: -.045em;
    line-height: 1.3;
    margin-bottom: 5px;
}
#checkoutModal .modal-title-group p { color: var(--text-secondary); font-size: .85rem; }
#checkoutModal .modal-close-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
}
#checkoutModal .modal-close-btn:hover { color: var(--text-primary); border-color: var(--accent-cyan); }
#checkoutModal .modal-body { padding: 28px 32px 32px; }
#checkoutModal .checkout-modal-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 28px; align-items: start; }
#checkoutModal .checkout-sidebar {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    border-radius: 18px;
    padding: 22px;
}
#checkoutModal :is(.checkout-summary-title, .checkout-payment-title) {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}
#checkoutModal .checkout-section-number {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-glow);
    border-radius: 9px;
    color: var(--accent-cyan);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .03em;
}
#checkoutModal .checkout-summary-item { gap: 12px; padding: 0 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
#checkoutModal .checkout-summary-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#checkoutModal .checkout-thumb { width: 54px; height: 58px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border-subtle); }
#checkoutModal .checkout-item-info { min-width: 0; flex: 1; }
#checkoutModal .checkout-item-title { color: var(--text-primary); font-size: .8rem; line-height: 1.55; }
#checkoutModal .checkout-item-qty { display: block; margin-top: 5px; color: var(--text-secondary); font-size: .72rem; }
#checkoutModal .checkout-item-price { color: var(--text-primary); font-size: .8rem; flex-shrink: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
#checkoutModal .checkout-total-box {
    margin: 20px 0 24px;
    padding: 16px 0;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
#checkoutModal .checkout-total-box > span:first-child { font-size: .8rem; color: var(--text-secondary); }
#checkoutModal .checkout-total-box .checkout-total-value { font-size: 1.45rem; color: var(--text-primary); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
#checkoutModal .checkout-customer-title { font-size: .88rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
#checkoutModal .form-field { gap: 8px; margin-bottom: 16px; }
#checkoutModal .form-field label { color: var(--text-secondary); font-size: .73rem; font-weight: 600; }
#checkoutModal .form-group-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
#checkoutModal .form-group-row .form-field { margin-bottom: 0; }
#checkoutModal .form-field :is(input, select) {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 11px 12px;
    font-size: .85rem;
    box-shadow: none;
}
#checkoutModal .form-field input::placeholder { color: var(--text-secondary); opacity: .8; }
#checkoutModal .form-field :is(input, select):focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px var(--border-glow); }
#checkoutModal .form-field input[readonly] { background: var(--bg-card); color: var(--text-secondary); }
#checkoutModal .payment-tabs-nav { gap: 8px; margin-bottom: 18px; }
#checkoutModal .payment-tab-btn {
    min-width: 0;
    min-height: 80px;
    padding: 13px 5px;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    background: var(--bg-card);
    box-shadow: none;
    position: relative;
}
#checkoutModal .payment-tab-btn svg { width: 21px; height: 21px; flex-shrink: 0; }
#checkoutModal .payment-tab-btn span { font-size: .66rem; line-height: 1.4; font-weight: 600; white-space: normal; }
#checkoutModal .payment-tab-btn:hover { border-color: var(--accent-cyan); color: var(--text-primary); }
#checkoutModal .payment-tab-btn.active { border-color: var(--accent-cyan); color: var(--text-primary); background: linear-gradient(145deg, rgba(56, 189, 248, .12), transparent), var(--bg-card); box-shadow: inset 0 0 0 1px var(--border-glow); }
#checkoutModal .payment-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: calc(50% - 10px); width: 20px; height: 3px; border-radius: 3px; background: var(--accent-cyan); }
#checkoutModal .payment-tab-panel {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 22px;
    font-size: .88rem;
    line-height: 1.85;
    color: var(--text-secondary);
}
#checkoutModal .pix-panel-content { background: none; border: 0; padding: 0; border-radius: 0; }
#checkoutModal .checkout-pix-intro h5 { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 5px; }
#checkoutModal .checkout-pix-intro p { font-size: .75rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 18px; }
#checkoutModal .pix-qr-wrapper { border-radius: 16px; padding: 12px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
#checkoutModal .pix-qr-wrapper svg { display: block; width: 142px; height: 142px; max-width: 100%; }
#checkoutModal .pix-timer-alert { margin: 0 auto 18px; font-size: .73rem; gap: 7px; color: var(--accent-cyan); font-weight: 500; }
#checkoutModal .pix-timer-alert strong { font-variant-numeric: tabular-nums; }
#checkoutModal .pix-copy-box { gap: 8px; margin-bottom: 12px; align-items: stretch; }
#checkoutModal .pix-copy-box input { min-width: 0; width: 0; flex: 1; border-radius: 9px; background: var(--bg-secondary); color: var(--text-secondary); border-color: var(--border-subtle); font: .7rem/1.5 monospace; padding: 10px; }
#checkoutModal .pix-copy-box .btn { min-height: 42px; flex-shrink: 0; border-radius: 9px; padding: 9px 12px; border-color: var(--border-glow); color: var(--text-primary); background: var(--bg-secondary); font-size: .72rem; }
#checkoutModal .pix-panel-content > .btn { min-height: 38px; padding: 9px 12px; border: 1px dashed var(--border-glow); border-radius: 9px; background: transparent; color: var(--text-secondary); box-shadow: none; font-size: .7rem; line-height: 1.5; white-space: normal; }
#checkoutModal .pix-panel-content > .btn:hover { border-color: var(--accent-cyan); color: var(--text-primary); transform: none; }
#checkoutModal .checkout-action-area { margin-top: 20px; }
#checkoutModal .btn-checkout-submit { min-height: 54px; padding: 15px 18px; border-radius: 12px; background: linear-gradient(115deg, var(--primary), var(--primary-dark)); color: var(--palette-button-ink, #fff); font-size: .88rem; line-height: 1.55; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 102, 255, .2); white-space: normal; }
#checkoutModal .btn-checkout-submit span { min-width: 0; }
#checkoutModal .btn-checkout-submit svg { flex-shrink: 0; }
#checkoutModal .btn-checkout-submit:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 102, 255, .25); }
#checkoutModal .credit-card-preview-box { background: linear-gradient(120deg, var(--primary-dark), var(--bg-secondary)); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
#checkoutModal .card-preview-number { font-size: clamp(.9rem, 2.5vw, 1.15rem); letter-spacing: .08em; }
#checkoutModal .bank-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#checkoutModal .bank-option-btn { color: var(--text-secondary); background: var(--bg-secondary); border-color: var(--border-subtle); border-radius: 10px; }
#checkoutModal .bank-option-btn.active { color: var(--accent-cyan); border-color: var(--accent-cyan); }
#checkoutModal .boleto-preview-box { background: none; border: 0; padding: 0; }
#checkoutModal .barcode-svg-wrapper { max-width: 100%; }
#checkoutModal .barcode-svg-wrapper svg { max-width: 100%; }
#checkoutModal #checkoutAccountHint { margin-bottom: 0; font-size: .78rem; }
#checkoutModal :is(button, input, select):focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
@media (max-width: 820px) {
    #checkoutModal { padding: 16px; }
    #checkoutModal .modal-dialog { max-width: 620px; }
    #checkoutModal .checkout-modal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    #checkoutModal .modal-header { padding: 22px; }
    #checkoutModal .modal-body { padding: 22px; }
    #checkoutModal .payment-tabs-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #checkoutModal .form-field :is(input, select) { font-size: 16px; }
    #checkoutModal .modal-close-btn { width: 44px; height: 44px; }
    #checkoutModal .pix-copy-box .btn { min-height: 44px; }
    #checkoutModal .pix-panel-content > .btn { min-height: 44px; }
}
@media (max-width: 480px) {
    #checkoutModal { padding: 10px; }
    #checkoutModal .modal-dialog { border-radius: 18px; max-height: 94vh; max-height: 94dvh; }
    #checkoutModal .modal-header { padding: 20px 16px; gap: 10px; }
    #checkoutModal .checkout-eyebrow { font-size: .57rem; letter-spacing: .12em; }
    #checkoutModal .modal-title-group h3 { font-size: 1.16rem; }
    #checkoutModal .modal-title-group p { font-size: .74rem; }
    #checkoutModal .modal-body { padding: 18px 14px; }
    #checkoutModal .checkout-sidebar { padding: 18px 14px; }
    #checkoutModal .checkout-item-price { font-size: .75rem; }
    #checkoutModal .checkout-thumb { width: 42px; height: 48px; }
    #checkoutModal .checkout-summary-item { gap: 10px; }
    #checkoutModal .form-group-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    #checkoutModal .payment-tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #checkoutModal .payment-tab-btn { min-height: 64px; flex-direction: row; gap: 9px; padding: 12px 8px; }
    #checkoutModal .payment-tab-btn span { font-size: .68rem; }
    #checkoutModal .payment-tab-panel { padding: 20px 14px; }
    #checkoutModal .pix-copy-box .btn { padding: 9px; font-size: .68rem; }
    #checkoutModal .btn-checkout-submit { font-size: .82rem; padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    #checkoutModal, #checkoutModal *, #checkoutModal *::after { animation: none; transition: none; }
}
