/* =====================================================================
   LYKOS 3D — estilos da loja e do painel
   Cores da marca: preto do lobo + laranja "filamento" de destaque
   ===================================================================== */
:root {
  --ink: #111111;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --paper: #f6f4f1;
  --card: #ffffff;
  --line: #e6e2dc;
  --muted: #6d6a66;
  --accent: #ff6a2b;
  --accent-dark: #e4551a;
  --wa: #1fa855;
  --ig: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
  --ok: #1f9d55;
  --warn: #c2410c;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .12s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255,106,43,.35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.95); }
.btn-ig { background: var(--ig); color: #fff; }
.btn-danger { background: #fff; color: #b91c1c; border: 1.5px solid #f3c4c4; }
.btn.block { width: 100%; }
.btn.sm { padding: .45em .9em; font-size: .88rem; }
.grow { flex: 1; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .9rem; }

/* ---------- topo ---------- */
.announce { background: var(--accent); color: #fff; text-align: center; font-size: .9rem; font-weight: 600; padding: .45em 1em; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(17,17,17,.96); backdrop-filter: blur(8px); color: #fff; }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .18em; font-size: 1.05rem; }
.brand b { color: var(--accent); }
.search { flex: 1; max-width: 520px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--ink-3); border-radius: 999px; padding: 0 14px; height: 42px; }
.search svg { width: 18px; height: 18px; fill: none; stroke: #aaa; stroke-width: 2; flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: #fff; min-width: 0; }
.search input::placeholder { color: #999; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink-3); cursor: pointer; display: grid; place-items: center; flex: none; }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.4); } }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% 20%, #2b2b2b 0%, var(--ink) 60%); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; padding: 56px 0 64px; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--accent); font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 14ch; }
.lead { color: #cfcfcf; font-size: 1.1rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 32px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-points li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 12px; }
.hero-points b { font-size: .95rem; }
.hero-points span { color: #aaa; font-size: .85rem; }
.hero-art img { width: 100%; max-width: 360px; margin-inline: auto; opacity: .95; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- catálogo ---------- */
.catalog { padding: 48px 0 24px; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.catalog-head h2 { font-size: 2rem; margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort select { border: 1.5px solid var(--line); border-radius: 10px; padding: .45em .7em; background: #fff; color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .45em 1em; cursor: pointer; font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.result-info { color: var(--muted); font-size: .9rem; margin: 0 0 8px; min-height: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 16px 32px rgba(0,0,0,.1); }
.card-img { position: relative; aspect-ratio: 1; background: var(--ink-2); overflow: hidden; }
.card-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img > img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle at 50% 40%, #2c2c2c, #151515); }
.ph img { width: 42%; opacity: .22; }
.ph span { color: #777; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.ph.big img { width: 38%; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; }
.badge.promo { left: auto; right: 10px; background: #fff; color: var(--accent-dark); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-family: var(--font); font-size: .98rem; font-weight: 600; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.size { color: var(--muted); font-size: .82rem; margin: 0 0 8px; }
.card-price { margin-top: auto; }
.card-price small { color: var(--muted); font-size: .75rem; }
.card-price s, .pv-price s { color: var(--muted); font-size: .85em; margin-right: 4px; }
.price { font-weight: 700; font-size: 1.12rem; }
.skeleton .card-img { background: linear-gradient(90deg, #e9e6e1 25%, #f3f1ed 50%, #e9e6e1 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: #ece9e4; margin: 6px 0; }
.skeleton i + i { width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 48px 16px; }
.error { color: var(--warn); }

/* ---------- como funciona / rodapé ---------- */
.how { padding: 40px 0 56px; }
.how h2 { font-size: 1.6rem; }
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps b { display: block; font-size: 1.05rem; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.how-note { color: var(--muted); font-size: .9rem; }
.footer { background: var(--ink); color: #ddd; padding: 40px 0 0; }
.footer-in { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 32px; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer p { margin: 0 0 8px; font-size: .92rem; }
.footer-logo { width: 140px; }
.foot-link { display: block; color: #fff; margin-bottom: 6px; }
.copy { border-top: 1px solid #2a2a2a; margin-top: 32px; padding: 16px 0 90px; font-size: .82rem; color: #888; }
.admin-link { color: #888; }
.fab-wa { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.45); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.06); }
.fab-wa svg { width: 32px; height: 32px; }

/* ---------- modal de produto ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; }
.modal-back { position: absolute; inset: 0; background: rgba(10,10,10,.55); backdrop-filter: blur(2px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; margin: 4vh auto; width: min(980px, 100% - 24px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 18px; animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } }
.x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.product-view { display: grid; grid-template-columns: 1fr 1fr; }
.pv-gallery { background: var(--ink-2); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pv-main { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #000; }
.pv-main img { width: 100%; height: 100%; object-fit: contain; }
.pv-main img.blur { filter: blur(6px); }
.pv-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pv-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #000; opacity: .7; }
.pv-thumbs button.on { border-color: var(--accent); opacity: 1; }
.pv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv-info { padding: 28px 26px 22px; }
.pv-cat { color: var(--accent-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; margin: 0 0 6px; }
.pv-info h2 { font-size: 1.6rem; padding-right: 30px; }
.pv-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pv-price b { font-size: 1.8rem; font-family: var(--display); }
.pv-price small { color: var(--muted); }
.pv-desc { color: #444; margin: 0 0 10px; }
.pv-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 16px; font-size: .9rem; }
.pv-specs dt { color: var(--muted); }
.pv-specs dd { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; border: 0; padding: 0; }
.field > span, .field legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { border: 1.5px solid var(--line); border-radius: 10px; padding: .65em .8em; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 0; }
.field .invalid, input.invalid { border-color: #dc2626 !important; background: #fff5f5; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill input { position: absolute; opacity: 0; pointer-events: none; }
.opt-pill span { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 10px; padding: .45em .8em; cursor: pointer; font-size: .9rem; background: #fff; }
.opt-pill span em { color: var(--muted); font-size: .82rem; }
.opt-pill input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt-pill input:checked + span em { color: #ddd; }
.opt-pill input:focus-visible + span { outline: 3px solid var(--accent); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.fixed-color { margin: 0 0 14px; font-size: .92rem; color: var(--muted); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.pv-buy { display: flex; gap: 10px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 42px; text-align: center; border: 0; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 30px; height: 30px; font-size: 1rem; }
.qty.sm span { min-width: 22px; text-align: center; font-weight: 600; }
.pv-stock { font-size: .88rem; color: var(--muted); margin: 10px 0 6px; }
.pv-share { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- carrinho ---------- */
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-head .x { position: static; box-shadow: none; background: var(--paper); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; background: #fff; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total-row b { font-size: 1.35rem; font-family: var(--display); }
.drawer-foot .muted { margin: 2px 0 12px; }
.send-btns { display: grid; gap: 8px; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--ink-2); display: grid; place-items: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-img .ph-mini { width: 60%; height: auto; opacity: .3; }
.ci-info { display: flex; flex-direction: column; font-size: .88rem; min-width: 0; }
.ci-info > b { font-size: .95rem; }
.ci-info span { color: var(--muted); }
.ci-info .note { font-style: italic; word-break: break-word; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.rm { border: 0; background: none; font-size: 1.3rem; color: #999; cursor: pointer; align-self: start; }
.rm:hover { color: #b91c1c; }
.cart-empty { text-align: center; padding: 40px 0; }
.cart-empty img { width: 110px; margin: 0 auto 12px; opacity: .2; }
.checkout h3 { margin-top: 10px; }
.back { margin: 8px 0 4px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; }
.radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.radios input { accent-color: var(--ink); width: 18px; height: 18px; }
.sent { text-align: center; padding: 24px 0; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 12px; }
.sent p { color: var(--muted); }
.sent details { text-align: left; margin: 14px 0; }
.sent summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.sent pre { white-space: pre-wrap; background: var(--paper); padding: 12px; border-radius: 10px; font-size: .82rem; font-family: var(--font); }
.sent-actions { display: grid; gap: 8px; }

/* ---------- avisos ---------- */
#toasts { position: fixed; left: 50%; top: 84px; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: .92rem; animation: pop .2s; transition: opacity .4s, transform .4s; text-align: center; }
.toast.ok { background: var(--ok); }
.toast.warn { background: var(--warn); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding: 36px 0 44px; }
  .hero-art { display: none; }
  .product-view { grid-template-columns: 1fr; }
  .pv-info { padding: 20px 18px; }
  .steps { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .topbar-in { gap: 10px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .brand span { font-size: .95rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; height: 40px; }
  .cart-btn { margin-left: auto; }
  html { scroll-padding-top: 120px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .card-body h3 { font-size: .9rem; }
  .price { font-size: 1rem; }
  .catalog-head h2 { font-size: 1.6rem; }
  .modal-card { margin: 0; width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .hero-points { gap: 16px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
