* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

body {
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== PALETA DE CORES PROFISSIONAL ===== */
:root {
    --primary: #0066cc;
    --primary-light: #0080ff;
    --primary-dark: #0052a3;
    --secondary: #7c3aed;
    --accent: #ff6b6b;
    --success: #10b981;
    --warning: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-light: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --z-fab-chat: 10400;
    --z-fab-login: 10410;
    --z-chat-modal: 10500;
    --z-cart-overlay: 10999;
    --z-cart-modal: 11000;
    --z-auth-modal: 12000;
}

/* ===== HEADER PREMIUM ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.08);
}

/* ===== LOGO CENTRAL ===== */
.logo-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: auto;
}

.brand-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo {
    width: 288px;
    max-height: 192px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    font-size: 1.05rem;
    white-space: nowrap;
    display: none;
}

.brand-home.logo-error .brand-text {
    display: inline;
}

.brand-home.logo-error .logo {
    display: none;
}

/* ===== MENU ESQUERDA ===== */
.left-area {
    position: absolute;
    left: 30px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.menu {
    display: flex;
    gap: 32px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.menu a {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.menu-auth-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.menu-auth-btn:hover {
    color: var(--primary);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.menu a:hover {
    color: var(--primary);
}

.menu a:hover::after {
    width: 100%;
}

/* ===== BANDEIRAS DIREITA ===== */
.right-area {
    position: absolute;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.lang-selector {
    display: flex;
    gap: 14px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.lang-selector img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.lang-selector img:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3),
                0 0 12px rgba(124, 58, 237, 0.2);
    border-color: var(--secondary);
}

/* Ajustes de equilíbrio para tablets/laptops compactos */
@media (max-width: 1200px) and (min-width: 769px) {
    .left-area {
        left: 16px;
    }

    .right-area {
        right: 16px;
    }

    .menu {
        gap: 14px;
        flex-wrap: wrap;
    }

    .menu a,
    .menu-auth-btn,
    .menu-cart-btn {
        font-size: 0.86rem;
    }

    .logo {
        width: 220px;
        max-height: 130px;
    }

    .brand-text {
        font-size: 0.92rem;
    }
}

/* ===== HERO PREMIUM ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 50%, #faf8fc 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    padding: 40px 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TRUST STRIP (E-COMMERCE) ===== */
.trust-strip {
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 20px 8px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.trust-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(0, 102, 204, 0.1);
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.trust-item p {
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.trust-kpis {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.trust-kpi {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(0, 102, 204, 0.12);
    border-radius: 12px;
    text-align: center;
    padding: 10px 8px;
}

.trust-kpi strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.trust-kpi span {
    display: block;
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* ===== BOTÕES PREMIUM ===== */
.btn-hero, .btn-card {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-hero:hover, .btn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.4);
}

.btn-hero:active, .btn-card:active {
    transform: translateY(-1px);
}

/* Auth modal: evita quebra visual em alturas menores */
.auth-modal-content {
    max-height: min(88vh, 760px);
    overflow-y: auto;
}

/* ===== PRODUTOS ===== */
.produtos {
    padding: 80px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.produtos h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.products-search-wrap {
    max-width: 520px;
    margin: 0 auto 20px;
}

.products-search {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
}

.products-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0, 102, 204, 0.15);
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 12px 0 8px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card [data-live-info] {
    margin-top: auto;
    font-size: 0.84rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    padding: 7px 10px;
}

.card [data-detail-link] {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.card [data-detail-link]:hover {
    text-decoration: underline;
}

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    max-width: 100%;
    display: block;
    background: linear-gradient(135deg, #f0f4f8, #faf8fc);
}

.btn-card {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

/* ÍCONE DO CARRINHO */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* ===== CHECKOUT ===== */
.checkout {
    min-height: 100vh;
    padding-top: 130px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
}

.checkout-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.1);
    padding: 32px 24px;
    max-width: 620px;
    width: 90%;
    text-align: left;
}

.checkout-card h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.checkout-info {
    margin: 20px 0 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 14px;
}

.checkout-note {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 8px;
    font-size: .92rem;
    line-height: 1.4;
}

.checkout-note p {
    margin: 0 0 6px;
}

.checkout-note p:last-child {
    margin-bottom: 0;
}

.checkout-cart-panel {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.checkout-cart-panel h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.checkout-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkout-summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.checkout-summary-totals {
    margin-top: 10px;
    line-height: 1.8;
    color: var(--text-primary);
}

.checkout-summary-total {
    color: #ff6b00;
    font-size: 1.15rem;
    margin-top: 4px;
}

.checkout-email-input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
}

.checkout-email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.checkout-feedback {
    display: none;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.link-voltar {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-voltar:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ===== MODAL DO CARRINHO ===== */
.cart-modal {
    position: fixed;
    top: 0;
    right: -500px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: var(--z-cart-modal);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-top: 0;
}

.cart-modal.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-cart-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cart-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cart-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 204, 0.03);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.cart-item-remove {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: #e63946;
    transform: scale(1.05);
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cart-coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cart-coupon input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cart-coupon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-coupon {
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.cart-total {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-total p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.cart-total h3 {
    margin: 12px 0 0 0;
    color: var(--primary);
    font-size: 1.3rem;
    display: flex;
    justify-content: space-between;
}

.menu-cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0 12px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    position: relative;
}

.menu-cart-btn:hover {
    color: var(--primary);
}

.menu-cart-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    background: var(--accent);
    color: white;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* ===== FLOATING ACTION BUTTONS (ROBUST) ===== */
#fab-container,
.fab-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: var(--z-fab-chat);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

#fab-container .fab,
.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#fab-container .fab:hover,
.fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
}

.fab-login {
    background: linear-gradient(135deg, #00AFFF, #9B4DFF);
    color: #fff;
}

.fab-chat {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
}

#hard-login-fab,
#cdm-login-fab,
#fab-login {
    z-index: var(--z-fab-login) !important;
    pointer-events: auto;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px 20px 40px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.82rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-strip {
        padding: 14px 12px 4px;
    }

    .trust-grid,
    .trust-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .trust-item {
        padding: 10px;
    }

    .trust-item strong {
        font-size: 0.82rem;
    }

    .trust-item p {
        font-size: 0.76rem;
    }

    .trust-kpi strong {
        font-size: 0.9rem;
    }

    .trust-kpi span {
        font-size: 0.72rem;
    }

    .checkout-card {
        width: 94%;
        padding: 20px 14px;
        margin-bottom: 20px;
    }

    .cart-modal {
        width: 100%;
        right: -100%;
    }

    .menu {
        gap: 16px;
        font-size: 0.85rem;
    }

    .lang-selector {
        gap: 10px;
    }

    .lang-selector img {
        width: 32px;
        height: 32px;
    }

    .brand-home {
        gap: 6px;
    }

    .brand-text {
        font-size: 0.85rem;
    }

    #fab-container,
    .fab-container {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
    }

    #fab-container .fab,
    .fab {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}





