:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --ink: #1e1a17;
  --muted: #7a6f66;
  --line: #ebe3dc;
  --brand: #8a5a44;
  --brand-dark: #6d4433;
  --accent: #f3e7de;
  --wa: #25d366;
  --wa-dark: #1da851;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 26, 23, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; touch-action: manipulation; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover:not(:disabled) { background: var(--wa-dark); }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 244, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: "Playfair Display", serif; font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: 2px; }
.logo span { font-family: "Inter", sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 4px; margin-left: 6px; color: var(--brand); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 6px 14px; font-size: 18px;
}
.cart-btn__count {
  display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 2px;
  background: var(--brand); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 80% 20%, #f0dccf 0, transparent 50%), var(--accent);
  padding: 72px 0 64px;
}
.hero__inner { max-width: 760px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); color: var(--brand); font-weight: 600; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(32px, 6vw, 54px); margin: 18px 0 14px; }
.hero p { color: var(--muted); font-size: 18px; }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--ink); font-size: 14px; }

/* ---------- Passos ---------- */
.steps { padding: 64px 0; }
.steps h2, .catalog h2 { font-size: 32px; }
.steps h2 { text-align: center; margin-bottom: 32px; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Catálogo ---------- */
.catalog { padding: 24px 0 80px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.locked-banner {
  background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 24px; font-size: 15px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 3 / 4; background: var(--accent); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(160deg, #efe1d6, #d9bfae);
}
.card__ph span { font-family: "Playfair Display", serif; font-size: 56px; color: rgba(255, 255, 255, .85); }
.card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body .btn { margin-top: auto; }
.card__ref { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.card__body h3 { font-family: "Inter", sans-serif; font-size: 16px; font-weight: 600; }
.card__meta, .card__min { font-size: 13px; color: var(--muted); }
.card__price { font-size: 22px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.card__price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card__price--locked { color: var(--muted); filter: blur(1.5px); user-select: none; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d8cec6; padding: 40px 0; }
.footer .logo { color: #fff; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
.footer p { font-size: 14px; margin-top: 6px; }
.footer__small { max-width: 380px; opacity: .7; }

.footer__contacts { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.footer__contacts a { color: #fff; text-decoration: none; font-size: 14px; }
.footer__contacts a:hover { text-decoration: underline; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 15;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .4); border: 0;
}

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.contact:hover { border-color: var(--wa); background: #f2fcf6; }
.contact small { display: block; color: var(--muted); font-size: 13px; }
.contact__avatar {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 18px;
}
.contact__go { margin-left: auto; color: var(--wa-dark); font-weight: 600; font-size: 14px; }

/* ---------- Modais / drawer ---------- */
.modal, .drawer {
  position: fixed; inset: 0; z-index: 50; background: rgba(30, 26, 23, .5);
  display: grid; place-items: center; padding: 16px;
}
.modal__box {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow: auto;
  background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.modal__box h3 { font-size: 24px; margin-bottom: 6px; padding-right: 28px; }
.modal__box > p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: var(--bg); font-size: 22px; line-height: 1;
}
.modal__alt { text-align: center; font-size: 14px; margin-top: 16px; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 10px; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 16px; background: var(--bg);
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.form-error { color: var(--danger); font-size: 13px; }

.qty-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 34px; height: 34px; border: 0; background: var(--bg); font-size: 18px; }
.stepper input {
  width: 52px; height: 34px; padding: 0; border: 0; border-radius: 0; background: var(--surface);
  text-align: center; font-weight: 600; font-size: 16px; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.qty-row small { display: block; color: var(--muted); font-size: 12px; }
.qty-row--all { padding: 10px 12px; margin-bottom: 12px; background: var(--accent); border-radius: 10px; }

.drawer { place-items: stretch end; padding: 0; }
.drawer__panel {
  width: min(440px, 100vw); height: 100%; background: var(--surface);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
.drawer__head { position: relative; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 22px; }
.drawer__items { flex: 1 0 auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.drawer__line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; margin-bottom: 10px; }
.drawer__total strong { font-size: 22px; color: var(--brand); }
.cart-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item small { display: block; color: var(--muted); font-size: 12px; }
.cart-item__sub { grid-column: 1 / -1; text-align: right; font-weight: 600; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 48px 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card__body { padding: 12px; }
  .card__price { font-size: 18px; }
  .card__ph span { font-size: 40px; }
  .card__body .btn { padding: 10px 12px; font-size: 13px; }
}

/* Escolha de contato abre por cima do carrinho */
#contactModal { z-index: 60; }

/* ---------- Entrega ---------- */
.options { border: 0; display: flex; flex-direction: column; gap: 8px; }
.options legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
#deliveryOptions { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; font-size: 15px;
}
.option input { width: 18px; height: 18px; accent-color: var(--brand); }
.option strong { margin-left: auto; }
.option:has(input:checked) { border-color: var(--brand); background: var(--accent); }

/* ---------- Página do pedido (?pedido=...) ---------- */
body.is-order main > section:not(.order-view), body.is-order .wa-float { display: none; }
.order-view { padding: 40px 0 64px; }
.order { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.order__head { text-align: center; }
.order__head h1 { font-size: 34px; margin: 12px 0 4px; }
.order__head p { color: var(--muted); }
.order__client {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.order__client small, .order__totals span { color: var(--muted); font-size: 13px; }
.order__client small { display: block; }
.order-item {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.order-item img, .order-item .card__ph { width: 120px; height: 100%; min-height: 160px; object-fit: cover; object-position: top; }
.order-item .card__ph span { font-size: 36px; }
.order-item__body { padding: 14px 14px 14px 0; }
.order-item h3 { font-family: "Inter", sans-serif; font-size: 16px; margin: 2px 0 8px; }
.order-item ul { list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.order-item li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.order-item__sub { margin-top: 8px; text-align: right; font-size: 14px; }
.order__notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.order__totals {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.order__totals div { display: flex; justify-content: space-between; }
.order__total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 18px; }
.order__total strong { color: var(--brand); font-size: 24px; }
.order__pix { text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Promoção, Correios e área da loja ---------- */
.promo {
  display: inline-block; margin-bottom: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
}
.drawer__line--discount, .order__discount { color: var(--wa-dark) !important; font-weight: 600; }
.order__discount span { color: var(--wa-dark) !important; }
.delivery-note { font-size: 13px; color: var(--muted); background: var(--accent); border-radius: 10px; padding: 10px 12px; }
.order--gate { max-width: 380px; text-align: center; align-items: center; }
.order--gate h1 { font-size: 30px; }
.order--gate p { color: var(--muted); }
.order--gate form { width: 100%; }
.order--gate input { text-align: center; font-size: 22px; letter-spacing: 6px; }
.order__status { display: flex; flex-direction: column; gap: 8px; }
.order__paid {
  background: #e9f9ef; border: 1.5px solid var(--wa); color: #14532d;
  border-radius: var(--radius); padding: 14px 16px; font-size: 15px;
}
.order__stats { text-align: center; font-size: 13px; color: var(--muted); }
.option small { display: block; font-size: 12px; color: var(--muted); }
