/* Essência & Beleza — Design minimalista, limpo, com modo claro e escuro */
:root {
  --bg: #f8f9f7;
  --surface: #ffffff;
  --surface-2: #f1f4f0;
  --line: #e2e7e1;
  --fg: #141c17;
  --muted: #5d6a62;
  --accent: #1e4d3b;
  --accent-hover: #163b2d;
  --accent-soft: #e8f1ec;
  --gold: #a68546;
  --danger: #c63d2f;
  --tile: #eef2ee;
  --shadow: 0 12px 32px rgba(20, 28, 23, 0.07);
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1411;
  --surface: #171e1a;
  --surface-2: #1f2823;
  --line: #2a352f;
  --fg: #f3f6f4;
  --muted: #9eb0a5;
  --accent: #3d9970;
  --accent-hover: #4db385;
  --accent-soft: rgba(61, 153, 112, 0.16);
  --gold: #cfa962;
  --danger: #ff6b5b;
  --tile: #1c2420;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
.in {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
svg.i {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Faixa superior */
.ann {
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.ann .in { padding-block: 9px; }

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
}
.brand-txt { display: grid; line-height: 1.15; }
.brand-txt b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand-txt small { font-size: 11.5px; color: var(--muted); }

nav.main { display: flex; justify-content: center; gap: 32px; }
nav.main a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
nav.main a:hover, nav.main a.on { color: var(--fg); border-color: var(--accent); }

.tools { display: flex; align-items: center; gap: 6px; }
.ib {
  position: relative;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .2s, transform .15s;
}
.ib:hover { background: var(--surface-2); }
.ib:active { transform: scale(.94); }
.badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--accent);
  color: #fff;
  min-width: 19px;
  height: 19px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
  transition: transform .2s;
}
.badge.pop { transform: scale(1.3); }

.adm-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.adm-top-btn[hidden] { display: none; }
.adm-top-btn svg.i { width: 15px; height: 15px; }
.adm-top-btn.logged { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Busca */
.searchbar { border-top: 1px solid var(--line); background: var(--surface); }
.search-wrap { position: relative; display: flex; align-items: center; padding-block: 10px; }
.search-ico { position: absolute; left: 28px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.searchbar input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 11px 40px;
  font: inherit;
  border-radius: 8px;
}
.clear-q {
  position: absolute;
  right: 24px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 13px 22px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .03em;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, transform .15s, border-color .2s;
}
.btn:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.line:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn.sm { padding: 9px 14px; font-size: 12px; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 82% 24%, var(--accent-soft), transparent 55%), var(--surface);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
  padding-block: 54px;
}
.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.hero-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 52ch;
  font-size: 15.5px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hs-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.hs-card svg, .hs-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; display: block; }
.hs-card b { font-size: 12px; line-height: 1.25; }
.hs-card span { font-size: 12.5px; font-weight: 800; color: var(--accent); }

/* Perks */
.perks { background: var(--surface); border-bottom: 1px solid var(--line); }
.perks .in { display: grid; grid-template-columns: repeat(3, 1fr); }
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-left: 1px solid var(--line);
}
.perk:first-child { border-left: 0; padding-left: 0; }
.perk svg.i { width: 28px; height: 28px; color: var(--accent); }
.perk span { display: grid; line-height: 1.25; }
.perk b { font-size: 13.5px; }
.perk small { font-size: 12px; color: var(--muted); }

/* Catálogo */
#loja { padding: 56px 0 64px; }
.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}
.sh h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
}
.sh h2 em { font-style: italic; color: var(--accent); }
.sh-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cat-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all .18s;
}
.cat-btn:hover { border-color: var(--accent); color: var(--fg); }
.cat-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pic {
  background: var(--tile);
  aspect-ratio: 1/1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}
.pic img, .pic svg.art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .pic img, .card:hover .pic svg.art { transform: scale(1.04); }
.cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--fg);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.sold-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.card.sold .pic img, .card.sold .pic svg.art { filter: grayscale(1); opacity: .55; }
.qv-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(20, 28, 23, 0.82);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s, transform .2s;
}
.qv-pill svg.i { width: 13px; height: 13px; }
.card:hover .qv-pill { opacity: 1; transform: translateY(0); }

.cb {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.cb h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}
.price {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pix-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.add {
  margin-top: auto;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s;
}
.add:hover:not(:disabled) { background: var(--accent-hover); }
.add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.add svg.i { width: 17px; height: 17px; }
.none { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 48px 16px; }

/* Sobre */
.about { padding: 0 0 64px; }
.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.about-box h2 { font-family: var(--serif); margin: 0 0 10px; font-size: 26px; max-width: 24ch; }
.about-box p { margin: 0; color: var(--muted); max-width: 58ch; }

/* Rodapé */
footer { background: var(--surface); border-top: 1px solid var(--line); }
.fm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  flex-wrap: wrap;
}
.fn { display: flex; gap: 24px; flex-wrap: wrap; }
.fn a { text-decoration: none; font-size: 14px; color: var(--muted); }
.fn a:hover { color: var(--fg); }
.soc { display: flex; gap: 10px; }
.soc a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .2s, background .2s;
}
.soc a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cp {
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding-block: 16px;
}

/* Carrinho Lateral */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 430px);
  background: var(--surface);
  z-index: 50;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.on { transform: none; }
.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.dh h2 { margin: 0; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); padding: 0 6px; }
.x:hover { color: var(--fg); }
.items { flex: 1; overflow-y: auto; padding: 6px 20px; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 14px; }
.it {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.it .th { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; background: var(--tile); }
.it .th img, .it .th svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.it b { font-size: 13.5px; display: block; line-height: 1.25; }
.it .m { font-size: 11.5px; color: var(--muted); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 6px;
}
.qty button { background: none; border: 0; width: 28px; height: 28px; font-weight: 700; }
.qty output { min-width: 24px; text-align: center; font-size: 13px; font-weight: 700; }
.it .p { font-weight: 800; font-size: 14px; text-align: right; color: var(--accent); }
.rm { background: none; border: 0; color: var(--muted); font-size: 11.5px; text-decoration: underline; display: block; margin: 4px 0 0 auto; }

.df {
  border-top: 1px solid var(--line);
  padding: 14px 20px 18px;
  display: grid;
  gap: 9px;
  background: var(--surface-2);
}
.tot { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; }
.tot.sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.free { font-size: 12px; color: var(--muted); }
.free b { color: var(--fg); }
.free i { display: block; height: 4px; background: var(--line); margin-top: 5px; border-radius: 4px; overflow: hidden; }
.free u { display: block; height: 100%; background: var(--accent); text-decoration: none; }
.df input, .df textarea {
  width: 100%;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  border-radius: 7px;
  resize: none;
}
.wa-btn { width: 100%; }

/* Modais (Quick View e Login) */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}
.modal-bg[hidden] { display: none; }
.modal-box {
  width: min(100%, 390px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.qv-box {
  width: min(100%, 780px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.qv-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.qv-media { background: var(--tile); aspect-ratio: 1/1; overflow: hidden; }
.qv-media img, .qv-media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-info { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.qv-info h3 { margin: 0; font-size: 20px; line-height: 1.25; padding-right: 28px; }
.qv-desc { margin: 0; font-size: 14px; color: var(--muted); }
.qv-price { font-size: 26px; font-weight: 800; color: var(--accent); }
.qv-qty { display: flex; align-items: center; gap: 12px; margin-top: 4px; }

/* Painel Admin */
.adm {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  overflow-y: auto;
}
.adm[hidden] { display: none; }
.ah {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.ahl { display: grid; }
.ahl b { font-size: 15px; }
.ahl span { font-size: 12px; color: var(--muted); }
.ahb { display: flex; gap: 8px; flex-wrap: wrap; }
.ain { max-width: 900px; margin: 0 auto; padding: 20px 16px 80px; }
.hint { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.ah2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 12px; flex-wrap: wrap; }
.ah2 h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.pr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.pr.off .prh { opacity: .65; }
.prh { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; }
.pth { width: 54px; height: 54px; border-radius: 7px; overflow: hidden; background: var(--tile); flex: none; }
.pth img, .pth svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.prn { flex: 1; min-width: 150px; display: grid; }
.prn b { font-size: 14px; }
.prn span { font-size: 12px; color: var(--muted); }
.mv { display: flex; gap: 6px; }
.pf { border-top: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.fg { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pf label { display: grid; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 600; }
.pf label.chk { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.pf input:not([type=checkbox]):not([type=file]), .pf select, .pf textarea {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  border-radius: 6px;
  width: 100%;
}
.photo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pfb { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--fg);
  color: var(--bg);
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: .22s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 38px; }
}
@media (max-width: 780px) {
  .bar { grid-template-columns: 1fr auto; gap: 8px; min-height: 68px; }
  nav.main { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; gap: 22px; overflow-x: auto; padding-bottom: 8px; }
  .perks .in { grid-template-columns: 1fr; }
  .perk { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .perk:first-child { border-top: 0; }
  .qv-box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
}
@media (max-width: 520px) {
  .grid { gap: 12px; }
  .cb { padding: 11px; }
  .price { font-size: 18px; }
  .hero-showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qv-pill { display: none; }
}
