/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent: #36C5F0;
    --accent2: #043A8C;
    --gradient: linear-gradient(135deg, #043A8C, #36C5F0);
    --border: #222;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--gradient); color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-full { width: 100%; }
.gradient-text {
    background: var(--gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}
.accent { color: var(--accent); }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,10,10,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo { font-size: 1.5rem; font-weight: 700; }
.logo-img { height: 32px; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.cart-btn {
    position: relative; background: none; border: none;
    font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.cart-count {
    position: absolute; top: -6px; right: -8px;
    background: var(--accent); color: #000; font-size: 0.7rem;
    font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
    padding: 6rem 0 4rem; text-align: center;
    background: radial-gradient(ellipse at top, rgba(54,197,240,0.08) 0%, transparent 60%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

/* ===== TRUST ===== */
.trust { padding: 3rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.trust-item { text-align: center; padding: 1.5rem; }
.trust-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.trust-item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.trust-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CATALOG ===== */
.catalog { padding: 4rem 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.cat-btn {
    padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 999px;
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 0.85rem; transition: all 0.2s;
}
.cat-btn.active, .cat-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,170,0.1); }
.search-bar { max-width: 400px; margin: 0 auto 2rem; }
.search-bar input {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border);
    border-radius: 8px; background: var(--bg-card); color: var(--text);
    font-size: 0.95rem;
}
.search-bar input:focus { outline: none; border-color: var(--accent); }
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.2s; cursor: pointer;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-img {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 3rem;
}
.product-info { padding: 1rem; }
.product-brand { font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 0.95rem; font-weight: 600; margin: 0.25rem 0 0.5rem; line-height: 1.3; }
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-old { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.product-stock { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }
.product-stock.low { color: #ff6b6b; }
.add-cart-btn {
    width: 100%; margin-top: 0.75rem; padding: 0.6rem;
    background: var(--gradient); border: none; border-radius: 6px;
    color: #fff; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.add-cart-btn:hover { opacity: 0.9; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 4rem 0; background: var(--bg-card); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: center; }
.step { padding: 2rem; }
.step-number {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); color: #fff; font-size: 1.25rem;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer { padding: 3rem 0 1rem; border-top: 1px solid var(--border); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo-text { font-size: 1.5rem; font-weight: 700; }
.footer-brand p { color: var(--text-muted); margin-top: 0.5rem; }
.footer-links h4, .footer-contact h4 { margin-bottom: 0.75rem; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--text); }
.footer-contact p { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 200; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
    background: var(--bg); border-left: 1px solid var(--border);
    z-index: 201; transform: translateX(100%); transition: transform 0.3s;
    display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
}
.cart-close { background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-item {
    display: flex; gap: 1rem; padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: 600; }
.cart-item-price { font-size: 0.85rem; color: var(--accent); }
.cart-item-qty {
    display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem;
}
.qty-btn {
    width: 28px; height: 28px; border: 1px solid var(--border);
    border-radius: 4px; background: transparent; color: var(--text);
    cursor: pointer; font-size: 1rem;
}
.cart-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; }
.cart-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

/* ===== MODAL ===== */
.modal {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.7); opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem; width: 90%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-close { background: none; border: none; color: var(--text); font-size: 1.25rem; cursor: pointer; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border);
    border-radius: 6px; background: var(--bg); color: var(--text); font-size: 0.95rem;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.order-summary { background: var(--bg); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; }
.order-summary h4 { margin-bottom: 0.5rem; }
.order-summary-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.25rem 0; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 700; padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }

/* PIX */
.pix-body { text-align: center; }
.pix-qr { background: #fff; border-radius: 8px; padding: 1rem; display: inline-block; margin: 1rem 0; }
.pix-code { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.pix-code input { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--text); font-size: 0.8rem; }
.pix-code button { padding: 0.5rem 1rem; background: var(--accent); border: none; border-radius: 4px; color: #000; font-weight: 600; cursor: pointer; }
.pix-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .product-img { height: 150px; }
}
