/* =========================================================
   LOJA STRAUS — tema escuro "tech"
   ========================================================= */
:root {
  --bg: #0a0e16;
  --bg-2: #0e131d;
  --surface: #121926;
  --surface-2: #182132;
  --border: #212c40;
  --border-2: #2c3a54;
  --text: #e6edf6;
  --muted: #8b98ad;
  --primary: #22d3ee;
  --primary-2: #06b6d4;
  --primary-ink: #04121a;
  --accent: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: #67e8f9; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; }
.ico { flex-shrink: 0; vertical-align: middle; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hide { display: none !important; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; transition: .15s; white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: #67e8f9; color: var(--primary-ink); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.btn-outline { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, .12); color: var(--danger); border-color: rgba(248, 113, 113, .3); }
.btn-danger:hover { background: rgba(248, 113, 113, .22); color: #fca5a5; }
.btn-success { background: var(--success); color: #03140d; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Formulários ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search],
input[type=url], input[type=date], input[type=tel], select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 11px 13px; font: 14px var(--font); transition: .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
input[type=file] { color: var(--muted); font-size: 13px; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--primary); }
.help { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- Alertas / badges ---------- */
.flash-wrap { padding-top: 20px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid; font-size: 14px; }
.alert-success { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .3); color: #6ee7b7; }
.alert-error { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); color: #fca5a5; }
.alert-info { background: rgba(34, 211, 238, .07); border-color: rgba(34, 211, 238, .28); color: #67e8f9; }
.alert-warning { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); color: #fcd34d; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.badge-paid { color: var(--success); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.badge-pending { color: var(--warning); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badge-cancelled, .badge-refunded { color: var(--danger); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.badge-neutral { color: var(--muted); border-color: var(--border-2); }
.badge-accent { color: var(--accent); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); color: var(--primary); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .25); padding: 4px 10px; border-radius: 99px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 22, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo-mark { font-family: var(--mono); font-size: 14px; color: var(--primary-ink); background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 6px 8px; border-radius: 8px; }
.header-search { flex: 1; max-width: 460px; position: relative; display: flex; align-items: center; }
.header-search .ico { position: absolute; left: 12px; color: var(--muted); }
.header-search input { padding-left: 38px; background: var(--surface); border-color: var(--border); }
.header-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-nav a { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.header-nav a:hover, .header-nav a.active { background: var(--surface-2); color: var(--text); }
.cart-link { position: relative; background: var(--surface); border: 1px solid var(--border); }
.cart-count { background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 800; min-width: 19px; height: 19px; border-radius: 99px; display: inline-grid; place-items: center; padding: 0 5px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; margin-left: auto; }
.cat-bar { border-top: 1px solid var(--border); }
.cat-bar-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-bar a { color: var(--muted); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px; white-space: nowrap; }
.cat-bar a:hover, .cat-bar a.active { color: var(--text); background: var(--surface); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 80px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; top: -350px; right: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 60%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 18px 0 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 24px; font-family: var(--mono); color: var(--text); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.terminal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.terminal-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.terminal-bar i:nth-child(1) { background: #f87171; } .terminal-bar i:nth-child(2) { background: #fbbf24; } .terminal-bar i:nth-child(3) { background: #34d399; }
.terminal pre { margin: 0; padding: 20px; font: 13.5px/1.8 var(--mono); color: var(--muted); white-space: pre-wrap; }
.terminal .c1 { color: var(--primary); } .terminal .c2 { color: var(--success); } .terminal .c3 { color: var(--accent); } .terminal .c4 { color: var(--text); }

/* ---------- Seções ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font: 600 12px var(--mono); color: var(--primary); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.cat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 18px; color: var(--text); transition: .2s; display: flex; flex-direction: column; gap: 12px; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-3px); color: var(--text); }
.cat-card .cat-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--primary); }
.cat-card strong { font-size: 15px; }
.cat-card span { font-size: 12px; color: var(--muted); }

/* ---------- Cards de produto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.product-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .cover { aspect-ratio: 16/10; }
.cover { position: relative; overflow: hidden; background: var(--bg-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-gen {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, hsla(var(--h), 90%, 60%, .28), transparent 55%),
    radial-gradient(circle at 85% 90%, hsla(calc(var(--h) + 60), 90%, 65%, .22), transparent 50%),
    linear-gradient(135deg, #0f1624, #121a2b);
  color: hsl(var(--h), 90%, 70%);
}
.cover-gen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 22px 22px; }
.cover-icon { position: relative; }
.cover-code { position: relative; font: 600 13px var(--mono); color: hsla(var(--h), 70%, 80%, .75); }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.product-cat { font-size: 12px; color: var(--muted); }
.product-card h3 { font-size: 17px; margin-bottom: 6px; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: var(--primary); }
.product-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 21px; font-weight: 800; font-family: var(--mono); letter-spacing: -.03em; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; display: block; font-family: var(--mono); }
.price-free { color: var(--success); }
.tag-featured { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: #1a1033; font: 700 11px var(--mono); padding: 4px 9px; border-radius: 6px; text-transform: uppercase; }
.tag-off { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--success); color: #03140d; font: 700 11px var(--mono); padding: 4px 9px; border-radius: 6px; }

/* ---------- Benefícios ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .ico-wrap { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(167, 139, 250, .12); color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }

.cta-band { background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(167, 139, 250, .12)); border: 1px solid var(--border-2); border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 28px; margin-bottom: 6px; }

/* ---------- Catálogo ---------- */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: 34px; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding: 20px 0 70px; }
.filters { position: sticky; top: 130px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.filters h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 10px; }
.filters a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.filters a:hover { background: var(--surface-2); color: var(--text); }
.filters a.active { background: rgba(34, 211, 238, .1); color: var(--primary); }
.filters a span { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-bar select { width: auto; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius); color: var(--muted); }

/* ---------- Subcategorias ---------- */
.filters .caret { font-style: normal; font-size: 10px; color: var(--muted); }
.filters-sub { margin: 2px 0 6px 12px; padding-left: 8px; border-left: 1px solid var(--border-2); }
.filters-sub a { font-size: 13px; padding: 6px 10px; }
.subcat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.subcat-chips a { padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 99px; color: var(--text); font-size: 13px; background: var(--surface); }
.subcat-chips a span { color: var(--muted); font-family: var(--mono); font-size: 11px; margin-left: 4px; }
.subcat-chips a:hover { border-color: var(--primary); color: var(--primary); }
.subcat-chips a.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.subcat-chips a.active span { color: var(--primary-ink); }
.cat-subs { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.4; }
.table tr.subrow td { background: rgba(255, 255, 255, .012); }

/* ---------- Página do produto ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 24px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.product-page { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; padding: 24px 0 70px; }
.product-page .cover { aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--border); }
.product-page .cover-icon .ico { width: 80px; height: 80px; }
.buy-box { position: sticky; top: 130px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.buy-box h1 { font-size: 26px; }
.buy-box .price { font-size: 34px; }
.spec-list { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--border); }
.spec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-family: var(--mono); font-size: 13px; text-align: right; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .ico { color: var(--success); margin-top: 3px; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 24px; }
.content-card h2 { font-size: 20px; }
.prose { white-space: pre-line; color: #cdd6e3; }
.guarantee { display: flex; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.guarantee .ico { color: var(--primary); }

/* ---------- Galeria ---------- */
.gallery-main { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(10, 14, 22, .7); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.gallery-nav:hover { border-color: var(--primary); color: var(--primary); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-counter { position: absolute; bottom: 10px; right: 12px; background: rgba(10, 14, 22, .75); padding: 3px 9px; border-radius: 6px; font-size: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--bg-2); cursor: pointer; aspect-ratio: 16/10; opacity: .6; transition: .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-item { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.gallery-item .checkbox { font-size: 12px; }
.gallery-item.removing { opacity: .35; border-color: var(--danger); }
.gallery-item.new { border-style: dashed; border-color: var(--primary); }

/* ---------- Carrinho / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 20px 0 70px; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-item .cover { aspect-ratio: 16/10; border-radius: 9px; }
.cart-item .cover-icon .ico { width: 26px; height: 26px; }
.cart-item .cover-code { display: none; }
.cart-item h3 { font-size: 16px; margin-bottom: 4px; }
.cart-item h3 a { color: var(--text); }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: sticky; top: 130px; align-self: start; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 800; }
.summary-row.total span:last-child { font-family: var(--mono); color: var(--primary); }
.coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.coupon-form input { text-transform: uppercase; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font: 500 13px var(--font); padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; }
.auth-card .alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Área do cliente ---------- */
.account { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 30px 0 70px; }
.side-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; align-self: start; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: rgba(34, 211, 238, .1); color: var(--primary); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card h2 { font-size: 19px; }
.dl-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dl-item:last-child { border-bottom: 0; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--mono); font-size: 13px; }
.pagination a.active, .pagination a:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---------- Status do pedido ---------- */
.status-hero { text-align: center; padding: 50px 20px 30px; }
.status-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-ico.ok { background: rgba(52, 211, 153, .12); color: var(--success); }
.status-ico.wait { background: rgba(251, 191, 36, .12); color: var(--warning); }
.status-ico.bad { background: rgba(248, 113, 113, .12); color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 50px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 30px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer-grid a:not(.logo) { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; padding: 4px 0; }
.footer-grid a:not(.logo):hover { color: var(--primary); }
.footer-grid .logo { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; margin-top: 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* =========================================================
   ADMIN
   ========================================================= */
.admin-body { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { padding: 0 8px 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; font-size: 16px; }
.admin-side nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.admin-side nav a:hover { background: var(--surface); color: var(--text); }
.admin-side nav a.active { background: rgba(34, 211, 238, .1); color: var(--primary); }
.admin-side .side-sep { height: 1px; background: var(--border); margin: 12px 0; }
.admin-main { padding: 28px 34px 60px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-top h1 { font-size: 26px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat strong { display: block; font: 700 26px var(--mono); margin-top: 8px; letter-spacing: -.03em; }
.stat small { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding: 10px 0 0; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--primary), rgba(34, 211, 238, .35)); border-radius: 5px 5px 2px 2px; min-height: 2px; position: relative; }
.bar i:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border-2); padding: 3px 8px; border-radius: 6px; font: 600 11px var(--mono); white-space: nowrap; color: var(--text); }
.bar span { font: 10px var(--mono); color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 1fr 2fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.hbar .track { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; }
.hbar b { font-family: var(--mono); font-size: 13px; }
.thumb { width: 64px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; }
.thumb .cover-icon .ico { width: 18px; height: 18px; }
.thumb .cover-code { display: none; }
.filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { width: auto; min-width: 160px; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; color: var(--muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(34, 211, 238, .06); }
.tab-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.tab-dot.ok { background: var(--success); }
.tab-dot.warn { background: var(--warning); }
.tab-panel { display: none; max-width: 760px; }
.tab-panel.active { display: block; }

/* ---------- Sob encomenda ---------- */
.request-form .card h2 { display: flex; align-items: center; gap: 10px; }
.step-n { width: 28px; height: 28px; border-radius: 50%; background: rgba(34, 211, 238, .12); color: var(--primary); display: inline-grid; place-items: center; font: 700 14px var(--mono); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; }

/* header: evita quebra de linha com o link extra do menu */
.header-nav a, .logo-text { white-space: nowrap; }
@media (max-width: 1100px) { .header-search { display: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .hero-grid, .product-page, .cart-layout { grid-template-columns: 1fr; }
  .features-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .buy-box, .summary { position: static; }
  .product-page .buy-box { order: -1; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side .side-sep { display: none; }
  .admin-main { padding: 22px 18px 50px; }
}
@media (max-width: 760px) {
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .header-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 20px; }
  .header-nav.open { display: flex; }
  .catalog, .account { grid-template-columns: 1fr; }
  .filters { position: static; }
  .features-grid, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item > :last-child { grid-column: 1 / -1; }
  .hero { padding: 60px 0; }
  .cta-band { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
