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

:root {
    /* Cores do Tema Claro (Padrão Sofisticado) */
    --bg-base: #f9fafb; /* Off-white platina */
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(17, 24, 39, 0.06); /* Borda muito sutil */
    --text-main: #111827; /* Preto carvão profundo */
    --text-muted: #4b5563; /* Cinza médio elegante */
    
    /* Cores de Acento */
    --primary: #0f62fe; /* Azul cobalto real */
    --primary-hover: #0043ce;
    --primary-glow: rgba(15, 98, 254, 0.05);
    --secondary: #6f42c1; /* Roxo sofisticado */
    --success: #0f9d58; /* Verde corporativo */
    --danger: #da3633;
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -15px rgba(15, 98, 254, 0.08), 0 1px 5px rgba(0, 0, 0, 0.03);
    --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    --border-radius: 12px; /* Cantos elegantes e contidos */
}

[data-theme="dark"] {
    /* Tema Escuro Opcional Refinado (Sem neon gamer excessivo) */
    --bg-base: #0b0c0e;
    --bg-surface: rgba(18, 20, 26, 0.8);
    --bg-surface-solid: #12141a;
    --border-color: rgba(255, 255, 255, 0.06);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --secondary: #a78bfa;
    --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: var(--transition);
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.12);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 98, 254, 0.2);
}

.btn-secondary {
    background: var(--bg-surface-solid);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

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

/* Painéis de Vidro Sutil */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-main);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    transition: var(--transition);
}

header.scrolled .navbar {
    padding: 16px 0;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle, .cart-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.theme-toggle:hover, .cart-toggle:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    padding-top: 140px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.03);
}

/* Trust Bar */
.trust-bar {
    box-shadow: inset 0 -1px 0 var(--border-color);
}

/* Catalog Section */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title h2 span {
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

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

/* Product Card Redesign */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
    background: var(--bg-surface-solid);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(15, 98, 254, 0.15);
}

.product-img-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #fdfdfd;
    overflow: hidden;
}

.product-main-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: var(--transition);
}

.gallery-thumbnails {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.thumb-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.thumb-btn.active, .thumb-btn:hover {
    border-color: var(--primary);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

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

.product-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.product-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

/* Shopping Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-surface-solid);
    box-shadow: -10px 0 30px rgba(0,0,0,0.03);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    border-left: 1px solid var(--border-color);
}

.cart-overlay.open .cart-sidebar {
    right: 0;
}

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

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    background: #fdfdfd;
}

.cart-item-info {
    flex-grow: 1;
    margin-left: 12px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-price {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 13px;
}

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

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

/* Shipping Progress Bar */
.free-shipping-container {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.free-shipping-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.free-shipping-progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.shipping-calc {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.shipping-input {
    flex-grow: 1;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
}

.checkout-btn {
    width: 100%;
    margin-top: 16px;
}

/* FAQ Acordeão */
.faq-item {
    transition: var(--transition);
}
.faq-item.open {
    border-color: var(--primary);
}
.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 12px;
}
.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Quick View Drawer */
.quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2002;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.quickview-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.quickview-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 580px;
    height: 100%;
    background: var(--bg-surface-solid);
    box-shadow: -10px 0 30px rgba(0,0,0,0.03);
    z-index: 2003;
    display: flex;
    flex-direction: column;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
    border-left: 1px solid var(--border-color);
}

.quickview-overlay.open .quickview-drawer {
    right: 0;
}

.quickview-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.quickview-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quickview-main-container {
    width: 100%;
    height: 280px;
    background: #fbfbfb;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.quickview-main-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 16px;
}

.quickview-thumbs {
    display: flex;
    gap: 8px;
}

.qv-thumb {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    padding: 4px;
}

.qv-thumb.active {
    border-color: var(--primary);
}

.qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quickview-details h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.quickview-specs {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.quickview-specs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.quickview-specs tr {
    border-bottom: 1px solid var(--border-color);
}

.quickview-specs td {
    padding: 8px 0;
}

.quickview-specs td:first-child {
    font-weight: 600;
    color: var(--text-muted);
    width: 35%;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-content p {
        margin: 0 auto 32px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    footer .container > div:first-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 576px) {
    footer .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .hero-content h1 {
        font-size: 40px;
    }
}

/* Chatbot Widget Styles */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 98, 254, 0.25);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
    box-shadow: 0 15px 30px rgba(15, 98, 254, 0.35);
}

.chat-widget {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 360px;
    height: 480px;
    border-radius: 16px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    z-index: 1501;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fdfdfd;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-base);
    color: var(--text-main);
    border-top-left-radius: 2px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-top-right-radius: 2px;
}

.chat-footer-form {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-solid);
    gap: 10px;
}

.chat-footer-form input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-main);
    outline: none;
}

.chat-footer-form input:focus {
    border-color: var(--primary);
}

.chat-footer-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-footer-form button:hover {
    background: var(--primary-hover);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-base);
    border-radius: 10px;
    width: fit-content;
    align-self: flex-start;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1s infinite alternate;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

@media (max-width: 480px) {
    .chat-widget {
        right: 15px;
        left: 15px;
        width: auto;
        bottom: 90px;
        height: 420px;
    }
    .chat-toggle-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
