/* Useme — vitrine mobile-first, paleta neutra + um acento. Sem frameworks. */

:root {
  --ink: #1b1b1e;
  --ink-2: #4b4b52;
  --mut: #8a8780;
  --line: #e7e3de;
  --bg: #faf8f6;
  --card: #ffffff;
  --brand: #5B0E1D;           /* vinho da marca (logo/faixas/foco) */
  --brand-2: #70142a;         /* hover da marca */
  --wa: #25d366;              /* CTA "Comprar/Atendimento no WhatsApp" */
  --wa-ink: #128c4b;
  --accent: var(--brand);
  --promo: #b02a42;           /* etiqueta de promoção / "de/por" */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(27,27,30,.06), 0 8px 24px rgba(27,27,30,.06);
  --shadow-hov: 0 2px 4px rgba(27,27,30,.08), 0 16px 40px rgba(27,27,30,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 16px; }

/* ---------- header / nav ---------- */
.promo-bar {
  margin: 0; background: var(--brand); color: #fff;
  font-size: .82rem; letter-spacing: .01em;
}
.promo-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 8px; flex-wrap: wrap; }
.promo-main strong { font-weight: 750; }
.promo-note { opacity: .85; margin-left: .4em; }
.promo-ship { white-space: nowrap; opacity: .95; }
@media (max-width: 620px) { .promo-note { display: none; } }

.util-strip { background: #f3efea; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 6px; flex-wrap: wrap; }
.util-item { display: inline-flex; align-items: center; gap: 7px; }
.util-item:hover { color: var(--brand); }
.util-item svg { width: 15px; height: 15px; }
.util-hours { color: var(--mut); }
.util-right { margin-left: auto; }
.util-right .util-item { font-weight: 600; }
@media (max-width: 620px) { .util-hours { display: none; } }

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; gap: 14px 20px;
  padding-block: 12px; flex-wrap: wrap;
}
.brand-link { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-img { height: 46px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt strong { font-size: 1.05rem; letter-spacing: .02em; color: var(--brand); }
.brand-txt em { font-style: normal; font-size: .72rem; color: var(--mut); margin-top: 2px; }

.head-search { position: relative; flex: 1 1 240px; max-width: 460px; }
.head-search input {
  width: 100%; padding: 11px 44px 11px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #faf8f6;
  font-size: .92rem; color: var(--ink);
}
.head-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.head-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: none; border-radius: 50%;
  background: var(--brand); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.head-search button svg { width: 17px; height: 17px; }
.head-search button:hover { background: var(--brand-2); }

.head-cta { margin-left: auto; display: flex; align-items: center; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #08331a; font-weight: 650;
  padding: 11px 18px; border-radius: 999px; font-size: .9rem;
  box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease;
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: var(--shadow-hov); }
.btn-wa .wa-ic { width: 19px; height: 19px; }
.btn-wa-sm { padding: 8px 14px; font-size: .82rem; }

.nav-bar { border-top: 1px solid var(--line); background: #fff; }
.nav-in { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.nav-link {
  white-space: nowrap; padding: 11px 13px; font-size: .9rem; color: var(--ink-2);
  border-bottom: 2px solid transparent; flex: 0 0 auto;
}
.nav-link:hover { color: var(--brand); }
.nav-link.is-on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.nav-offer { color: var(--promo); font-weight: 600; }
@media (max-width: 620px) {
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-txt em { display: none; }
  .brand-img { height: 40px; }
}

/* ---------- footer ---------- */
.site-foot { border-top: 3px solid var(--brand); margin-top: 64px; background: #fff; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 28px;
  padding-block: 40px 32px; font-size: .9rem;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand-img { height: 44px; width: auto; margin-bottom: 12px; }
.foot-brand p { margin: 0 0 6px; color: var(--ink-2); }
.foot-ship { font-weight: 600; color: var(--brand) !important; }
.foot-col h2 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 12px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col li { margin: 0; }
.foot-col a:hover { color: var(--brand); }
.foot-mut { color: var(--mut); }
.foot-col .btn-wa { color: #08331a; }

.foot-bottom { background: var(--brand); color: #fff; font-size: .82rem; }
.foot-bottom .wrap { padding-block: 16px; }
.foot-bottom p { margin: 0 0 4px; }
.foot-bottom p:last-child { margin: 0; }
.foot-bottom strong { font-weight: 700; }
.foot-bottom .foot-mut { color: rgba(255,255,255,.72); }

/* Ícone flutuante de WhatsApp */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: transform .16s ease;
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.07); }

/* ---------- home ---------- */
.hero { padding: 40px 0 8px; }
.hero-t { margin: 0 0 6px; font-size: clamp(1.6rem, 4.5vw, 2.6rem); letter-spacing: -.02em; font-weight: 650; }
.hero-s { margin: 0; color: var(--ink-2); max-width: 44rem; }

.filters {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin: 22px 0 10px;
}
@media (min-width: 720px) {
  .filters { grid-template-columns: 2fr 1fr 1fr auto; }
}
.f-q, .f-sel, .f-btn {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 11px 14px; font-size: .95rem; color: var(--ink);
}
.f-sel { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.f-btn { cursor: pointer; background: var(--ink); color: #fff; border-color: var(--ink); transition: transform .12s ease; }
.f-btn:hover { transform: translateY(-1px); }
.f-q:focus, .f-sel:focus, .f-btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.count { color: var(--mut); font-size: .85rem; margin: 6px 2px 16px; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 760px)  { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hov); }
.card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-img { position: relative; aspect-ratio: 3 / 4; background: #f1efec; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 10px; top: 10px;
  background: var(--promo); color: #fff; font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 999px;
}
.tag--out { background: #6b6663; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.card-cat { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.card-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.card-price { margin-top: auto; font-size: .9rem; display: flex; align-items: baseline; gap: 8px; }
.card-price s { color: var(--mut); font-size: .8rem; }
.card-price strong { font-weight: 650; }
.muted { color: var(--mut); font-weight: 500; }

.empty { padding: 48px 8px; text-align: center; color: var(--ink-2); }
.link { color: var(--accent); text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 0; }
.pg {
  min-width: 38px; text-align: center; padding: 8px 6px; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2);
}
.pg:hover { border-color: var(--ink); color: var(--ink); }
.pg.cur { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- produto ---------- */
.back { display: inline-block; margin: 18px 0 14px; color: var(--mut); font-size: .85rem; }
.back:hover { color: var(--ink); }

.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 880px) { .pdp-grid { grid-template-columns: 1.05fr 1fr; gap: 36px; } }

.g-main {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: #f1efec; border-radius: var(--radius); border: 1px solid var(--line);
}
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.g-thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; width: 64px; flex: 0 0 64px; opacity: .75; transition: opacity .15s ease; }
.g-thumb img { width: 100%; height: 64px; object-fit: cover; }
.g-thumb:hover { opacity: 1; }
.g-thumb.is-sel { outline: 2px solid var(--accent); opacity: 1; }

.pdp-name { font-size: clamp(1.3rem, 3.6vw, 1.9rem); margin: 2px 0 8px; letter-spacing: -.015em; }
.pdp-price { font-size: 1.05rem; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price s { color: var(--mut); font-size: .9rem; }
.tag-inline { position: static; background: var(--promo); color: #fff; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }

.opt { margin: 18px 0; }
.opt-t { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 52px; padding: 10px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 550;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-off, .chip.is-out { opacity: .35; text-decoration: line-through; pointer-events: none; }
.chip:focus-visible, .sw:focus-visible, .g-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; }
.sw .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(23,23,26,.18); box-shadow: inset 0 0 0 2px #fff; }
.sw .sw-name { font-size: .68rem; color: var(--mut); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw:hover .dot { transform: scale(1.06); }
.sw.is-sel { border-color: var(--ink); background: var(--card); }
.sw.is-sel .sw-name { color: var(--ink); }
.sw.is-off, .sw.is-out { opacity: .3; pointer-events: none; }

.opt-note { color: var(--ink-2); font-size: .9rem; margin: 14px 0; }

.btn-buy {
  display: block; text-align: center; margin: 22px 0 6px; padding: 15px 22px;
  background: var(--wa); color: #08331a; border-radius: 999px;
  font-weight: 650; letter-spacing: .02em; box-shadow: var(--shadow);
  transition: background .14s ease, transform .14s ease;
}
.btn-buy:hover { background: var(--wa-ink); color: #fff; transform: translateY(-1px); }
.btn-buy.is-disabled { background: #c9c7c3; color: #f6f5f3; pointer-events: none; box-shadow: none; }
.hint { font-size: .78rem; color: var(--mut); margin: 0 0 6px; }

.desc { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.desc h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.desc-body { color: var(--ink-2); max-width: 52rem; }
.desc-body p { margin: 0 0 12px; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 72px 8px; }
.nf-code { font-size: 4rem; font-weight: 700; color: var(--line); margin: 0; letter-spacing: .05em; }
.nf h1 { margin: 4px 0 10px; font-size: 1.4rem; }
.nf p { color: var(--ink-2); margin: 0 0 22px; }
.btn-ghost { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 22px; font-size: .9rem; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
