:root {
  --bg: #fbf8f4; --surface: #ffffff; --text: #1f1b16; --muted: #6b6259; --line: #e9e1d7;
  --brand: #d9480f; --brand-dark: #b23a0b; --ok: #2b8a3e; --warn: #e67700; --bad: #c92a2a;
  --radius: 14px; --shadow: 0 2px 10px rgba(60, 40, 20, .07);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.topbar { background: var(--text); color: #fff; text-align: center; font-size: 13px; padding: 7px 12px; }
.header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: rgba(251, 248, 244, .95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -.5px; }
.cart-btn { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; }
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -1px; }
.hero p { color: var(--muted); margin: 0 auto; max-width: 560px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 24px 0; }
.trust div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font-size: 14px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-bottom: 40px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; }
.thumb { aspect-ratio: 1; width: 100%; object-fit: cover; background: #f1e9df; }
.ph { aspect-ratio: 1; display: grid; place-items: center; font-size: 64px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #f08c00, #d9480f); }
.price { font-weight: 800; font-size: 20px; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; font-weight: 400; }
.badge { display: inline-block; background: #fff0e6; color: var(--brand-dark); font-weight: 700; font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 20px;
  font: inherit; font-weight: 700; cursor: pointer; background: var(--brand); color: #fff; text-decoration: none; width: 100%; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.wa { background: #25d366; color: #fff; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0 48px; }
.product .gallery img, .product .gallery .ph { border-radius: var(--radius); }
.product h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.product .desc { color: var(--muted); white-space: pre-line; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty button { border: 0; background: none; width: 40px; font-size: 18px; cursor: pointer; }
.qty span { min-width: 36px; text-align: center; padding: 8px 0; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .ph { width: 64px; height: 64px; border-radius: 10px; font-size: 24px; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 800; font-size: 20px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 24px 0 48px; align-items: start; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; flex-direction: row; }
.pay-option:has(input:checked) { border-color: var(--brand); background: #fff7f2; }
.pay-option input { width: auto; margin-top: 4px; }
.error { background: #fff5f5; color: var(--bad); border: 1px solid #ffc9c9; padding: 10px 12px; border-radius: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; padding: 48px 0; }
.policies { max-width: 760px; padding: 24px 0 48px; }
.policies h2 { margin-top: 32px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 24px; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-grid a { display: block; text-decoration: none; padding: 2px 0; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid;
  place-items: center; font-size: 28px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 20; }
@media (max-width: 760px) {
  .product, .checkout { grid-template-columns: 1fr; gap: 20px; }
  .two { grid-template-columns: 1fr; }
}
