/* PokerPrime — tema escuro premium */
:root {
  --bg: #0c110e;
  --bg-2: #111813;
  --card: #151e19;
  --card-2: #1b2620;
  --line: #24312a;
  --line-2: #2f3f36;
  --text: #eef3ef;
  --muted: #98aa9e;
  --accent: #d4a63a;
  --accent-2: #e8c068;
  --accent-ink: #1a1405;
  --felt: #1d4a33;
  --ok: #5fbf7f;
  --warn: #e0a84a;
  --err: #e46a5a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Topo ---------- */
.announce { background: var(--felt); color: #dbeee2; font-size: .82rem; text-align: center; padding: 7px 16px; }
.announce strong { color: var(--accent-2); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 17, 14, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.logo b { color: var(--accent); font-weight: inherit; }
.search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; }
.search input { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 42px; font-size: .95rem; transition: border-color .15s; }
.search input:focus { border-color: var(--accent); outline: none; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; color: var(--text); font-size: .92rem; font-weight: 500; }
.icon-btn:hover { background: var(--card); }
.cart-count { position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav ul { list-style: none; margin: 0 auto; padding: 0 6px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav a { display: block; padding: 10px 14px; font-size: .9rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: var(--text); border-color: var(--accent); }
@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; }
  .icon-btn .label { display: none; }
}

/* ---------- Mensagens ---------- */
.toasts { position: fixed; top: 84px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--card-2); border: 1px solid var(--line-2); border-left: 4px solid var(--ok); border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: var(--shadow); font-size: .92rem; animation: slidein .25s ease; }
.toast.warning { border-left-color: var(--warn); }
.toast.error { border-left-color: var(--err); }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 2px; font-size: 1.1rem; line-height: 1; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 22px; cursor: pointer; font-size: .98rem; transition: background .15s, transform .05s, border-color .15s; text-align: center; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; }
.btn.sm { padding: 8px 14px; font-size: .88rem; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.whatsapp { background: #25d366; color: #052e14; }
.btn.whatsapp:hover { background: #3ee07a; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Layout geral ---------- */
main.wrap { padding-top: 28px; padding-bottom: 72px; min-height: 60vh; }
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; margin: 0; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .88rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--text); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--line-2); }
.empty-state h2 { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 360px; display: flex; align-items: center; background: #0a0f0c; border: 1px solid var(--line); }
.hero picture { position: absolute; inset: 0; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 15, 12, .97) 0%, rgba(10, 15, 12, .85) 38%, rgba(10, 15, 12, .15) 75%); }
.hero-content { position: relative; z-index: 1; padding: 48px clamp(24px, 5vw, 56px); max-width: 580px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; margin-bottom: 14px; }
.hero p { color: #c5d2c9; font-size: 1.05rem; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .hero { min-height: 460px; align-items: flex-end; }
  .hero.has-mobile img { object-position: center top; }
  .hero::after { background: linear-gradient(0deg, rgba(10, 15, 12, .98) 35%, rgba(10, 15, 12, .2) 100%); }
  .hero-content { padding: 28px 22px; }
}

/* ---------- Vantagens ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.perk .icon { width: 26px; height: 26px; color: var(--accent); }
.perk strong { display: block; font-size: .92rem; }
.perk span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .perk { padding: 12px; } .perk .icon { width: 22px; height: 22px; } }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 12, 10, .92) 10%, rgba(8, 12, 10, .1) 70%); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile:hover { border-color: var(--accent); }
.cat-tile div { position: relative; z-index: 1; padding: 14px; }
.cat-tile strong { display: block; font-size: 1.02rem; }
.cat-tile span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Toolbar / filtros ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .88rem; background: var(--bg-2); }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { border-color: var(--accent); color: var(--accent); background: rgba(212, 166, 58, .08); }
.select { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .9rem; }
.result-count { font-size: .88rem; color: var(--muted); }

/* ---------- Cards de produto ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--card-2); display: flex; align-items: center; justify-content: center; color: var(--line-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .icon { width: 44px; height: 44px; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge { font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); letter-spacing: .02em; }
.badge.dark { background: rgba(12, 17, 14, .85); color: var(--text); border: 1px solid var(--line-2); }
.card.soldout .thumb img { filter: grayscale(.8) brightness(.6); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { font-weight: 600; font-size: .98rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.old-price { display: block; color: var(--muted); text-decoration: line-through; font-size: .8rem; font-weight: 400; }
.pix-note { display: block; font-size: .74rem; color: var(--ok); font-weight: 500; }
.pix-off { display: inline-block; margin-left: 2px; padding: 0 5px; border-radius: 4px; background: rgba(95, 191, 127, .15); font-weight: 700; }
.quick-add { position: relative; z-index: 2; }
.quick-add button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--accent); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.quick-add button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 560px) { .card-body { padding: 10px 12px 12px; } .price { font-size: 1.05rem; } .quick-add button { width: 36px; height: 36px; } }

/* ---------- Página do produto ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card-2); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
/* contain: a foto aparece inteira, qualquer que seja a proporção (o fundo do quadro preenche as sobras) */
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(12, 17, 14, .75); border: 1px solid var(--line-2); color: var(--text); display: flex; align-items: center; justify-content: center; opacity: .85; transition: opacity .15s; pointer-events: none; }
.gallery-zoom:hover .zoom-hint { opacity: 1; }
.zoom-hint .icon { width: 18px; height: 18px; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 9, 7, .95); color: var(--text); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 112px); object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(21, 30, 25, .85); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.lightbox-btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 10px; transform: none; } }
body:has(.lightbox[open]) { overflow: hidden; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .7; transition: all .15s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { position: sticky; top: 130px; }
.buybox h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.buybox .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.price-box { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.price-box .price { font-size: 2.1rem; }
.price-box .old-price { font-size: .95rem; display: inline; margin-right: 8px; }
.save { color: var(--ok); font-size: .88rem; font-weight: 600; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 16px; color: var(--ok); }
.stock-line.low { color: var(--warn); }
.stock-line.out { color: var(--err); }
.stock-line .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.buy-row .btn { flex: 1; }
.buy-row .stepper { height: auto; }  /* acompanha a altura do botão ao lado */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); height: 48px; }
.stepper button { width: 40px; height: 100%; background: none; border: 0; cursor: pointer; font-size: 1.2rem; color: var(--muted); }
.stepper button:hover { color: var(--text); }
.stepper input { width: 42px; text-align: center; background: none; border: 0; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { height: 38px; }
.stepper.sm button { width: 32px; }
.stepper.sm input { width: 34px; }
.description { margin-top: 48px; max-width: 760px; }
.description h2 { font-size: 1.2rem; }
.description p { color: #cfdad3; }
.mobile-buybar { display: none; }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; gap: 24px; }
  .buybox { position: static; }
  .mobile-buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(17, 24, 19, .97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); transform: translateY(100%); transition: transform .25s; }
  .mobile-buybar.show { transform: none; }
  .mobile-buybar .price { font-size: 1.15rem; }
  .mobile-buybar .btn { margin-left: auto; }
}

/* ---------- Variações ---------- */
.price .from { font-size: .62em; font-weight: 500; color: var(--muted); margin-right: 2px; }
.options { border: 0; padding: 0; margin: 0 0 18px; }
.option-selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.option-select { display: flex; flex-direction: column; gap: 6px; }
.option-select > span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.option-select select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 40px 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d4a63a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.option-select select:hover { border-color: var(--muted); }
.option-select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 166, 58, .15); }
.option-select select option { background: var(--bg-2); color: var(--text); }
.option-select select option:disabled { color: var(--muted); }
.option-hint { margin: 10px 0 0; font-size: .86rem; color: var(--ok); }
.option-hint:empty { display: none; }
.option-hint.low { color: var(--accent); }
.options.invalid select.empty { border-color: var(--err); }
.options-error { display: none; color: var(--err); font-size: .86rem; margin: 8px 0 0; }
.options.invalid .options-error { display: block; }
.size-guide { margin-top: 12px; font-size: .88rem; }
.size-guide summary { cursor: pointer; color: var(--accent); }
.size-guide .prose { margin-top: 10px; font-size: .88rem; }
.size-guide table { border-collapse: collapse; width: 100%; }
.size-guide td, .size-guide th { border: 1px solid var(--line-2); padding: 6px 10px; text-align: center; }
.variant-tag { font-size: .84rem; color: var(--muted); margin-bottom: 2px; }
.variant-tag strong { color: var(--text); }
.quick-add-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: all .15s; }
a.quick-add:hover .quick-add-btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Carrinho / checkout ---------- */
.steps { display: flex; align-items: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line-2); }
.steps .num { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.steps .done { color: var(--text); }
.steps .done .num { background: var(--felt); border-color: var(--felt); color: #fff; }
.steps .current { color: var(--text); font-weight: 600; }
.steps .current .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.two-col > aside { position: sticky; top: 130px; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } .two-col > aside { position: static; } }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-item .thumb { border-radius: 10px; aspect-ratio: 1; }
.cart-item .thumb .icon { width: 28px; height: 28px; }
.cart-item h3 { font-size: .98rem; font-weight: 600; margin: 0 0 4px; }
.cart-item .controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-item .line-total { font-weight: 700; text-align: right; white-space: nowrap; }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .84rem; padding: 4px; display: inline-flex; gap: 4px; align-items: center; }
.remove-btn:hover { color: var(--err); }
.remove-btn .icon { width: 16px; height: 16px; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 72px minmax(0, 1fr); } .cart-item .line-total { grid-column: 2; text-align: left; } }
.ship-progress { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; margin-bottom: 16px; }
.ship-progress .bar { height: 6px; background: var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--felt), var(--ok)); border-radius: inherit; }
.ship-progress.done { color: var(--ok); }
.summary h2 { font-size: 1.1rem; margin-bottom: 14px; }
.coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .04em; }
.coupon input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 166, 58, .15); }
.coupon .btn { height: 44px; padding: 0 16px; }
.coupon.applied { align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px dashed var(--ok); border-radius: var(--radius-sm); color: var(--ok); font-size: .9rem; }
.coupon.applied span { display: inline-flex; align-items: center; gap: 6px; }
.coupon.applied .icon { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: .84rem; text-decoration: underline; }
.link-btn:hover { color: var(--err); }
.coupon-hint { margin: 10px 0 0; font-size: .84rem; }
.coupon-hint a { color: var(--accent); }
.summary-lines { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.summary-lines li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .88rem; }
.summary-lines .thumb { border-radius: 8px; aspect-ratio: 1; }
.summary-lines .thumb .icon { width: 18px; height: 18px; }
.totals { display: grid; gap: 6px; font-size: .94rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .free, .totals .discount { color: var(--ok); font-weight: 600; }
.totals .grand { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }
.secure-note .icon { width: 16px; height: 16px; }

/* ---------- Formulários ---------- */
.form-section + .form-section { margin-top: 26px; }
.form-section h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-section h2 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.field.half { grid-column: span 3; }
.field.third { grid-column: span 2; }
.field label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.field label small { font-weight: 400; opacity: .8; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 166, 58, .15); }
.field.has-error input, .field.has-error select { border-color: var(--err); }
.field .errorlist { color: var(--err); margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.field .loading { font-size: .78rem; color: var(--muted); }
@media (max-width: 600px) { .field.half, .field.third { grid-column: span 6; } .field.third.pair { grid-column: span 3; } }

.alert { border: 1px solid var(--line-2); border-left: 4px solid var(--ok); background: var(--card-2); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: .92rem; }
.alert.error { border-left-color: var(--err); }
@media (max-width: 600px) {
  .field.spacer { display: none; }
  .steps { gap: 6px; font-size: .8rem; flex-wrap: nowrap; }
  .steps li + li::before { width: 12px; }
  .steps li:not(.current) .lbl { display: none; }  /* 4 passos: no celular só o atual tem nome */
}

/* ---------- Pedido ---------- */
.order-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.order-hero .check { width: 52px; height: 52px; border-radius: 50%; background: rgba(95, 191, 127, .12); color: var(--ok); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-hero .check .icon { width: 28px; height: 28px; }
.order-hero h1 { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.timeline li { position: relative; padding-top: 22px; font-size: .84rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 1px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); }
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--felt); }
.timeline li.done::after { background: var(--ok); border-color: var(--ok); }
.timeline li.current { color: var(--accent); font-weight: 600; }
.timeline li.current::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 166, 58, .2); }
.canceled-box { border-color: rgba(228, 106, 90, .4); background: rgba(228, 106, 90, .06); margin-bottom: 20px; }
.pix-box { text-align: center; }
.pix-box h2 { font-size: 1.15rem; }
.pix-box .amount { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin: 4px 0 16px; }
.pix-box .qr { background: #fff; padding: 10px; border-radius: 14px; width: 230px; max-width: 100%; margin: 0 auto 16px; }
.pix-code { display: flex; gap: 8px; margin-bottom: 12px; }
.pix-code input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }
.pix-steps { text-align: left; font-size: .86rem; color: var(--muted); padding-left: 18px; margin: 16px 0; }
.address { font-size: .92rem; color: #cfdad3; margin: 0; }

/* ---------- Páginas institucionais ---------- */
.prose { max-width: 760px; color: #d3ddd6; }
.prose .page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: var(--text); margin-bottom: 24px; }
.prose h1:not(.page-title), .prose h2 { font-family: var(--font); font-size: 1.2rem; color: var(--text); margin: 32px 0 10px; }
.prose p, .prose div { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--text); }
.prose .meta { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Aceite dos termos ---------- */
.accept { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin-top: 16px; cursor: pointer; }
.accept input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.accept a { color: var(--accent); text-decoration: underline; }
.accept-error { color: var(--err); font-size: .82rem; margin-top: 6px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .9rem; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { color: var(--text); font-size: .95rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.company { font-size: .78rem; margin-top: 4px; opacity: .85; }
.pay-tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
body.has-buybar .wa-float { bottom: 90px; }

/* ---------- Conta do cliente ---------- */
.icon-btn .label { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.danger { background: var(--err); color: #fff; }
.btn.danger:hover { background: #ef8476; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-size: .88rem; font-weight: 500; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--err); }

.auth-wrap { display: flex; justify-content: center; padding: 8px 0 32px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 620px; }
.auth-card.center { text-align: center; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card > .meta { margin: 0 0 18px; }
.auth-card .fields { margin-bottom: 4px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 18px; flex-wrap: wrap; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: rgba(212, 166, 58, .12); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.auth-icon .icon { width: 28px; height: 28px; }
.resend-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.resend-form input { flex: 1 1 220px; max-width: 300px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; }

.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.account-head h1 { margin: 0; }
.account-head .eyebrow { margin-bottom: 4px; }
.account-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 130px; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 500; border-left: 3px solid transparent; }
.account-nav a:hover { color: var(--text); background: var(--card); }
.account-nav a.active { color: var(--text); background: var(--card); border-left-color: var(--accent); }
.account-main { display: grid; gap: 20px; min-width: 0; }
.account-main h2 { font-size: 1.15rem; }
.account-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.danger-zone { border-color: rgba(228, 106, 90, .35); }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); gap: 0; }
  .account-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; }
  .account-nav a.active { background: none; border-bottom-color: var(--accent); }
  .account-cards { grid-template-columns: 1fr; }
}

.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); transition: border-color .15s; }
.order-row:hover { border-color: var(--line-2); }
.order-row strong { display: block; }
.order-row .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-total { text-align: right; }
@media (max-width: 560px) { .order-row { grid-template-columns: minmax(0, 1fr) auto; } .order-row .status-pill { grid-row: 2; justify-self: start; } }
.status-pill { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--card-2); color: var(--muted); border: 1px solid var(--line-2); }
.status-pill.pending { color: var(--warn); border-color: rgba(224, 168, 74, .4); background: rgba(224, 168, 74, .1); }
.status-pill.paid, .status-pill.delivered { color: var(--ok); border-color: rgba(95, 191, 127, .4); background: rgba(95, 191, 127, .1); }
.status-pill.shipped { color: var(--accent); border-color: rgba(212, 166, 58, .4); background: rgba(212, 166, 58, .1); }
.status-pill.canceled { color: var(--err); border-color: rgba(228, 106, 90, .4); background: rgba(228, 106, 90, .1); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.address-card { display: flex; flex-direction: column; }
.address-card.default { border-color: rgba(95, 191, 127, .45); }
.address-card .panel-head { margin-bottom: 8px; }
.address-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }

/* Checkout com conta */
.buyer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.buyer .icon { color: var(--accent); }
.buyer div { flex: 1; min-width: 0; }
.buyer strong, .buyer .meta { display: block; overflow-wrap: anywhere; }
.address-options { display: grid; gap: 8px; margin-bottom: 14px; }
.address-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; transition: border-color .15s, background .15s; }
.address-option[hidden] { display: none; }
.address-option input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.address-option strong, .address-option .meta { display: block; }
.address-option:has(input:checked) { border-color: var(--accent); background: rgba(212, 166, 58, .06); }
.new-address[hidden] { display: none; }
/* Frete */
.ship-option { align-items: center; }
.ship-option > span:nth-of-type(1) { flex: 1; min-width: 0; }
.ship-option input { margin-top: 0; }
.ship-option .free, .ship-option .ship-price { font-weight: 700; white-space: nowrap; }
.ship-option .free, .ship-list .free { color: var(--ok); }
.ship-cep { margin-bottom: 12px; }
.ship-list { list-style: none; padding: 0; margin: 0 0 8px; font-size: .9rem; }
.ship-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ship-list li:first-child { padding-top: 2px; }
.ship-list strong, .ship-list .meta { display: block; }
.ship-list .meta { margin-top: 2px; font-size: .8rem; }
.ship-list li > span:last-child { font-weight: 700; white-space: nowrap; }
.ship-note { font-size: .8rem; line-height: 1.5; margin: 0 0 14px; }
.ship-error { color: var(--err); font-size: .86rem; margin: 0 0 12px; }
.ship-calc { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.ship-calc .ship-list { margin-bottom: 0; }
.ship-calc .ship-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ship-calc:not(:has(li)) .ship-list { display: none; }
.ship-calc:not(:has(li)):not(:has(.ship-error:not([hidden]))) .ship-cep { margin-bottom: 0; }
.ship-error[hidden] { display: none; }
.form-section > .errorlist { color: var(--err); list-style: none; padding: 0; margin: 0 0 10px; font-size: .82rem; }


/* ---------- Catálogo e vitrine ---------- */
.catalog-head { margin-bottom: 18px; }
.catalog-head h1 { font-family: var(--font-display); margin-bottom: 6px; }
.catalog-head p { margin: 0; max-width: 720px; }
.chip.sm { padding: 5px 12px; font-size: .84rem; }
a.pill:hover { color: var(--text); border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.filter-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.load-more .meta { margin: 0; }
.load-more .btn.loading { opacity: .7; pointer-events: none; }
.see-all { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Celular: mais produto na tela, menos rolagem ---------- */
.cart-count[hidden] { display: none; }
.site-header { transition: transform .25s ease; }
button.loading { position: relative; color: transparent !important; pointer-events: none; }
button.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
.quick-add button.loading::after { border-color: var(--accent); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .site-header.tucked { transform: translateY(-100%); }
  .section { margin-top: 36px; }
  .section-head { margin-bottom: 12px; }

  /* Hero mais baixo: os produtos aparecem antes */
  .hero { min-height: 0; border-radius: 16px; }
  .hero-content { padding: 120px 18px 20px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 8px; }
  .hero p { font-size: .92rem; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; font-size: .95rem; }

  /* Faixas que deslizam de lado em vez de empilhar */
  .perks, .cat-grid, .chips {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px;
  }
  .perks::-webkit-scrollbar, .cat-grid::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .filters { flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 12px 0; border: 0; background: none; margin-bottom: 8px; }
  .filter-group { flex-direction: column; align-items: stretch; gap: 6px; }
  .see-all .btn { width: 100%; }
  .perks { gap: 8px; margin-top: 12px; }
  .perk { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px; gap: 10px; }
  .perk .icon { width: 20px; height: 20px; }
  .perk span { white-space: nowrap; }
  .cat-grid { gap: 10px; }
  .cat-tile { flex: 0 0 132px; scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .cat-tile div { padding: 10px; }
  .cat-tile strong { font-size: .92rem; }
  .chips { gap: 6px; }
  .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .toolbar { gap: 10px; }
  .toolbar form { margin-left: auto; }

  /* Mensagens embaixo, perto do polegar, subindo em vez de vir da lateral */
  .toast { animation-name: slideup; }
  .toast.hide { transform: translateY(20px); }
  .toasts { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  body.has-buybar .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  /* Página do produto */
  .option-selects { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .buy-row .btn { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
  .gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .gallery-thumbs button { flex: 0 0 72px; width: 72px; }
  .quick-add button, .quick-add-btn { width: 40px; height: 40px; }
}
@media (max-width: 400px) {
  .buy-row .btn .icon { display: none; }
  .buy-row .stepper button { width: 34px; }
  .buy-row .stepper input { width: 34px; }
}
@keyframes slideup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
