/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #0d0f1a; color: #e2e8f0; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea, select { font-family: inherit; }

/* ===== VARIABLES ===== */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52e0;
  --accent: #00d4aa;
  --bg: #0d0f1a;
  --bg2: #131629;
  --bg3: #1a1d2e;
  --border: #252840;
  --text: #e2e8f0;
  --text-muted: #8892a4;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}

/* ===== UTILS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== ALERTS ===== */
.alert { padding: 14px 20px; margin: 0; font-size: .95rem; display: flex; align-items: center; gap: 10px; position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 9999; border-radius: var(--radius); min-width: 320px; box-shadow: var(--shadow); }
.alert-success { background: #064e3b; border: 1px solid var(--success); color: #6ee7b7; }
.alert-error { background: #450a0a; border: 1px solid var(--error); color: #fca5a5; }
.alert-info { background: #1e1b4b; border: 1px solid var(--primary); color: #a5b4fc; }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(13,15,26,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 0; transition: .3s; }
.navbar.scrolled { padding: 10px 0; background: rgba(13,15,26,.98); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; list-style: none; gap: 6px; margin-left: auto; }
.nav-links a { padding: 7px 14px; border-radius: 8px; font-size: .95rem; color: var(--text-muted); transition: .2s; }
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-cart { position: relative; padding: 8px 12px; border-radius: 8px; background: var(--bg3); color: var(--text); font-size: 1rem; transition: .2s; }
.btn-cart:hover { background: var(--border); }
.btn-cart .badge { position: absolute; top: -6px; right: -6px; background: var(--primary); color: #fff; font-size: .7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.btn-outline-sm { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: .88rem; color: var(--text); transition: .2s; }
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary-sm { padding: 7px 16px; border-radius: 8px; background: var(--primary); color: #fff; font-size: .88rem; font-weight: 600; transition: .2s; }
.btn-primary-sm:hover { background: var(--primary-dark); }
.btn-ghost-sm { padding: 7px 12px; border-radius: 8px; color: var(--text-muted); font-size: .88rem; transition: .2s; }
.btn-ghost-sm:hover { color: var(--error); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,.2) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 80%, rgba(0,212,170,.1) 0%, transparent 70%); }
.hero-content { position: relative; text-align: center; padding: 60px 0; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(108,99,255,.15); border: 1px solid rgba(108,99,255,.3); color: var(--primary); padding: 6px 16px; border-radius: 100px; font-size: .85rem; font-weight: 600; margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero-primary { padding: 14px 32px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 700; font-size: 1rem; transition: .2s; display: flex; align-items: center; gap: 8px; }
.btn-hero-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-hero-outline { padding: 14px 32px; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-weight: 600; font-size: 1rem; transition: .2s; display: flex; align-items: center; gap: 8px; }
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stats span { font-size: .85rem; color: var(--text-muted); }

/* ===== FILTERS ===== */
.filters { margin-bottom: 40px; }
.filter-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; flex: 1; min-width: 200px; }
.search-box i { color: var(--text-muted); }
.search-box input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: .95rem; }
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn { padding: 8px 18px; border-radius: 100px; border: 1px solid var(--border); color: var(--text-muted); font-size: .88rem; transition: .2s; }
.cat-btn:hover, .cat-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-search { padding: 10px 24px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-search:hover { background: var(--primary-dark); }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.product-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.product-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 8px 32px rgba(108,99,255,.2); }
.product-img { position: relative; height: 180px; overflow: hidden; background: var(--bg2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #000; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; display: flex; align-items: center; gap: 5px; }
.product-body { padding: 20px; flex: 1; }
.product-cat { font-size: .78rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.product-body h3 { font-size: 1.05rem; font-weight: 700; margin: 8px 0; }
.product-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }
.demo-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .85rem; margin-top: 10px; }
.demo-link:hover { text-decoration: underline; }
.product-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.btn-add-cart { padding: 9px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: .2s; display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.btn-add-cart:hover { background: var(--primary-dark); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }

/* ===== STEPS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 36px 24px; background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; transition: .3s; }
.step-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.6rem; color: #fff; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: .9rem; color: var(--text-muted); }

/* ===== CONTACT ===== */
.contact-box { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 32px; font-size: 1rem; }
.contact-item i { color: var(--primary); font-size: 1.3rem; }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer p { color: var(--text-muted); font-size: .88rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: .88rem; transition: .2s; }
.footer-links a:hover { color: var(--primary); }

/* ===== FORMS / AUTH ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; }
.auth-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 40px; width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: .95rem; transition: .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: .2s; }
.btn-submit:hover { background: var(--primary-dark); }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: .9rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.form-error { color: var(--error); font-size: .85rem; margin-top: 5px; }

/* ===== CART & CHECKOUT ===== */
.page-layout { padding-top: 90px; min-height: 100vh; }
.page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 28px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-items { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--bg2); }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-weight: 600; font-size: .95rem; }
.cart-item-info span { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.cart-remove { background: none; border: none; color: var(--error); cursor: pointer; font-size: 1.1rem; padding: 6px; border-radius: 6px; transition: .2s; }
.cart-remove:hover { background: rgba(239,68,68,.1); }
.cart-summary { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .9rem; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.summary-row.total span:last-child { color: var(--accent); }
.btn-checkout { width: 100%; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: .2s; margin-top: 14px; }
.btn-checkout:hover { background: var(--primary-dark); }
.btn-continue { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .9rem; margin-top: 12px; }
.btn-continue:hover { color: var(--primary); }

/* ===== PAYMENT ===== */
.payment-methods { display: flex; gap: 12px; margin-bottom: 24px; }
.payment-btn { flex: 1; padding: 14px; background: var(--bg3); border: 2px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.payment-btn:hover, .payment-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(108,99,255,.08); }
.pix-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; }
.pix-box h4 { margin-bottom: 14px; font-size: 1rem; }
.pix-code { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 12px; font-family: monospace; font-size: .78rem; word-break: break-all; margin: 14px 0; color: var(--accent); }
.btn-copy { padding: 8px 20px; background: var(--accent); color: #000; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: .2s; font-size: .88rem; }
.btn-copy:hover { opacity: .85; }
.pix-info { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }

/* ===== ACCOUNT ===== */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.sidebar-nav { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: var(--text-muted); font-size: .9rem; transition: .2s; margin-bottom: 2px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(108,99,255,.1); color: var(--primary); }
.account-content { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.orders-table th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.orders-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.orders-table tr:last-child td { border-bottom: none; }
.status-badge { padding: 3px 10px; border-radius: 100px; font-size: .78rem; font-weight: 600; }
.status-paid { background: rgba(16,185,129,.15); color: var(--success); }
.status-pending { background: rgba(245,158,11,.15); color: var(--warning); }
.status-cancelled { background: rgba(239,68,68,.15); color: var(--error); }
.btn-download { padding: 6px 14px; background: var(--accent); color: #000; border: none; border-radius: 6px; font-size: .82rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s; }
.btn-download:hover { opacity: .85; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--bg2); border-right: 1px solid var(--border); padding: 24px 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; font-size: 1.1rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-muted); font-size: .9rem; transition: .2s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: var(--primary); background: rgba(108,99,255,.08); border-left-color: var(--primary); }
.admin-main { margin-left: 240px; flex: 1; padding: 28px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 1.5rem; font-weight: 800; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.stat-card .stat-label { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-icon { float: right; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-card.green .stat-icon { background: rgba(16,185,129,.15); color: var(--success); }
.stat-card.purple .stat-icon { background: rgba(108,99,255,.15); color: var(--primary); }
.stat-card.yellow .stat-icon { background: rgba(245,158,11,.15); color: var(--warning); }
.stat-card.blue .stat-icon { background: rgba(59,130,246,.15); color: #3b82f6; }
.admin-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-card-header h2 { font-size: 1.1rem; font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: .8rem; font-weight: 600; cursor: pointer; border: none; transition: .2s; }
.btn-edit { background: rgba(108,99,255,.15); color: var(--primary); }
.btn-edit:hover { background: rgba(108,99,255,.3); }
.btn-delete { background: rgba(239,68,68,.15); color: var(--error); }
.btn-delete:hover { background: rgba(239,68,68,.3); }
.btn-success { background: rgba(16,185,129,.15); color: var(--success); }
.btn-success:hover { background: rgba(16,185,129,.3); }
.badge-active { color: var(--success); font-size: .78rem; }
.badge-inactive { color: var(--error); font-size: .78rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.5rem; }
}

/* ===== WHATSAPP FLUTUANTE ===== */
/* Estilos movidos para includes/whatsapp.php (widget com foto do vendedor) */
.whatsapp-float {
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
}
