:root {
  --bg: #f4efe4;
  --surface: #fbf7ee;
  --card: #fffdf8;
  --fg: #1f2a1c;
  --muted: #5c6758;
  --border: #d9d1c3;
  --primary: #3d5a38;
  --primary-fg: #fbf7ee;
  --accent: #c4a35a;
  --accent-fg: #1f2a1c;
  --whatsapp: #128c7e;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: #1c2418; font-family: Outfit, system-ui, sans-serif; background: #f6f1e6; }
body { background: #f6f1e6; }
.edge {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 72px;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 1;
}
.edge-l { left: 0; }
.edge-r { right: 0; transform: scaleX(-1); }
@media (max-width: 700px) {
  .edge { width: 36px; }
}
.top, main#app, .site, .float-wa, .mobile-cart { position: relative; z-index: 2; }
.brand, .hero h1, .card-body h2, .price, h1, h2 { font-family: "Cormorant Garamond", serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 64px; padding: 0 .7rem; background: #1c3328;
  border-bottom: 1px solid rgba(255,255,255,.08); color: #f3eee4;
}
.brand { display: flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; white-space: nowrap; min-width: 0; color: #f3eee4; }
.brand img { width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0; }
.desk { display: flex; flex-wrap: wrap; gap: .35rem; }
.desk a {
  text-decoration: none; font-size: .78rem; font-weight: 700; color: #f3eee4;
  border: 1px solid rgba(255,255,255,.16); background: transparent; border-radius: 999px;
  padding: .4rem .7rem; white-space: nowrap;
}
@media (max-width: 899px) {
  .top { flex-wrap: wrap; padding-top: .4rem; padding-bottom: .4rem; }
  .desk { order: 3; width: 100%; }
}
@media (min-width: 900px) { .desk { gap: .4rem; } }
.icon-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: 0 .9rem;
  border-radius: 999px; text-decoration: none; font-weight: 700; background: #d4b56a; color: #1c2418; border: 0;
}
.badge { display: inline-flex; min-width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: .7rem; }
.live-count {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0;
  background: var(--primary); color: var(--primary-fg);
  border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; font-weight: 800;
}
.live-count .dot { width: .45rem; height: .45rem; border-radius: 999px; background: #86efac; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4 } }
main#app {
  margin: 0;
  background: transparent;
  color: #1c2418;
  border-radius: 0;
  overflow: visible;
}
.stage {
  background: #1c3328; color: #f4efe4;
}
.stage-copy { padding: 2rem 3.2rem 1.4rem; }
.stage .kicker { letter-spacing: .22em; font-size: .72rem; font-weight: 700; color: #d4b56a; margin: 0; }
.stage h1 { font-size: 3.2rem; line-height: .9; margin: .4rem 0 0; color: #f4efe4; }
@media (min-width: 800px) {
  .stage-copy { padding: 3.2rem 7rem; }
  .stage h1 { font-size: 5rem; }
}
.hero { display: none; }
.page { max-width: 72rem; margin: 0 auto; padding: 1.2rem 3.2rem 1.6rem; }
.store-photos { display: grid; gap: .8rem; margin-top: 1rem; }
.store-photos img { width: 100%; height: auto; border-radius: 1rem; background: #f6f1e6; }
@media (min-width: 800px) { .store-photos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 800px) {
  .page { padding-left: 6rem; padding-right: 6rem; }
}
.grid { display: grid; gap: .9rem; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid.two { grid-template-columns: 1fr 1fr 1fr; gap: 1.1rem; } }
.card { background: #fffdf8; border: 1px solid #e4d8c4; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 10px 28px rgba(28, 51, 40, .08); }
.card-body h2 { font-family: Outfit, sans-serif; font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.15; color: #142016; }
.price { font-family: Outfit, sans-serif; font-size: 2rem; font-weight: 800; color: #142016; letter-spacing: -0.02em; }
main#app .muted { color: #5c564c; }
.poster { position: relative; display: block; width: 100%; aspect-ratio: 4/3; background: #163026; border: 0; padding: 0; cursor: pointer; }
@media (min-width: 900px) { .poster { aspect-ratio: 3/4; } }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.pill {
  position: absolute; z-index: 2; top: .4rem; border-radius: 999px; padding: .15rem .45rem;
  font-size: .6rem; font-weight: 800; background: var(--primary); color: var(--primary-fg);
}
.pill.left { left: .4rem; }
.pill.right { right: .4rem; background: var(--accent); color: var(--accent-fg); }
.pill.stock { top: auto; bottom: .4rem; left: .4rem; background: #047857; }
.qty {
  position: absolute; z-index: 2; right: .4rem; bottom: .4rem;
  width: 2.4rem; height: 2.4rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-fg); font-family: Fraunces, serif; font-size: .85rem; font-weight: 700;
}
@media (min-width: 900px) {
  .qty { width: 5rem; height: 5rem; right: 1rem; bottom: 1rem; font-size: 1.6rem; }
  .pill { top: .75rem; padding: .25rem .7rem; font-size: .72rem; }
  .pill.left { left: .75rem; }
  .pill.right { right: .75rem; }
  .pill.stock { bottom: 1rem; left: .75rem; }
}
.card-body { padding: .65rem .7rem .8rem; }
.card-body h2 { font-family: Outfit, sans-serif; font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; line-height: 1.15; color: #142016; }
.card-body h2 a { text-decoration: none; color: inherit; }
.price { font-family: Outfit, sans-serif; font-size: 2rem; font-weight: 800; color: #142016; letter-spacing: -0.02em; }
.old { text-decoration: line-through; color: var(--muted); font-size: 1.05rem; font-weight: 700; }
.ship { text-align: center; font-size: .62rem; font-weight: 700; color: var(--primary); margin: .3rem 0 0; }
.sold {
  display: block; margin: .45rem 0 0; padding: .4rem .5rem; border-radius: .45rem;
  background: #047857; color: #fff; font-size: .72rem; font-weight: 800; text-align: center;
}
.sold-lg { font-size: 1rem; padding: .7rem .9rem; border-radius: .7rem; margin: .7rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--primary); color: var(--primary-fg); font-weight: 800; text-decoration: none;
}
.card-body .btn { min-height: 36px; font-size: .8rem; padding: 0 .4rem; }
.btn.ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
@media (min-width: 900px) {
  .card-body { padding: 1.1rem 1.2rem 1.3rem; }
  .card-body h2 { font-size: 1.7rem; }
  .price { font-size: 2.4rem; }
  .card-body .btn { min-height: 48px; font-size: 1rem; }
}
.notice { background: #f3ead3; border: 1px solid #e4d8c4; border-radius: .8rem; padding: 1rem 1.1rem; color: #1c2418; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.checkout { display: grid; gap: .7rem; margin-top: 1.2rem; }
.checkout input, .checkout textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: .7rem;
  padding: .7rem .8rem; font: inherit; background: var(--surface);
}
.checkout input[type="radio"] {
  width: 1.15rem; height: 1.15rem; min-height: 0; min-width: 1.15rem;
  flex-shrink: 0; margin: .15rem 0 0; accent-color: var(--primary);
  padding: 0; border: 0; background: none;
}
.pay { display: grid; gap: .6rem; }
.pay label {
  display: flex; gap: .7rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: .8rem; padding: .9rem;
  cursor: pointer; background: var(--card); overflow: hidden;
}
.pay label.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, white); }
.pay label span { min-width: 0; flex: 1; line-height: 1.35; }
.err { color: #8a2f2f; font-weight: 700; }
.cart-item { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1rem; }
.qty-row { display: flex; align-items: center; gap: .4rem; margin-top: .6rem; }
.qty-row button { width: 2.4rem; height: 2.4rem; border-radius: .5rem; border: 1px solid var(--border); background: var(--surface); }
.site { border-top: 0; padding: 1.2rem 4.2rem 6rem; color: #f3eee4; background: #1c3328; position: relative; z-index: 6; }
.site a, .site .muted { color: #e4dccf; }
.fgrid { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }
.float-wa {
  position: fixed; right: 1rem; bottom: 5.5rem; width: 3.4rem; height: 3.4rem; border-radius: 999px;
  background: var(--whatsapp); color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; text-decoration: none; z-index: 40;
}
.mobile-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; justify-content: center; padding: .7rem 1rem 1rem;
  background: linear-gradient(transparent, var(--bg) 30%);
}
@media (min-width: 900px) { .mobile-cart { display: none; } .float-wa { bottom: 1.2rem; } }
.toast {
  position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%);
  background: var(--fg); color: white; padding: .7rem 1rem; border-radius: .7rem; z-index: 50; font-weight: 700;
}
@media (max-width: 420px) {
  .live-count span:last-child { display: none; }
  .brand { font-size: .95rem; }
}
.product-page h1 { font-family: Fraunces, serif; font-size: 1.6rem; margin: .6rem 0 .3rem; }
.product-page h2 { font-family: Fraunces, serif; font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.product-page p, .product-page li { line-height: 1.6; overflow-wrap: anywhere; }
.product-page ul { padding-left: 1.2rem; }
.product-page .hero-img {
  width: 100%; max-height: 70vh; object-fit: contain; background: var(--card);
  border: 1px solid var(--border); border-radius: 1rem;
}
.pill-inline {
  display: inline-block; margin-top: .8rem; background: var(--accent); color: var(--accent-fg);
  border-radius: 999px; padding: .2rem .7rem; font-size: .75rem; font-weight: 800;
}
.finder { background: var(--card); border: 1px solid var(--border); border-radius: 1.1rem; padding: 1.1rem; }
.finder-top { display: flex; align-items: center; gap: .9rem; }
.robot {
  width: 3.6rem; height: 3.6rem; flex-shrink: 0; border-radius: 1rem; background: var(--primary);
  position: relative;
}
.robot::before, .robot::after {
  content: ""; position: absolute; top: 1.15rem; width: .7rem; height: .7rem; border-radius: 999px; background: var(--primary-fg);
}
.robot::before { left: .8rem; }
.robot::after { right: .8rem; }
.finder-input {
  width: 100%; min-height: 48px; margin-top: 1rem; border: 1px solid var(--border); border-radius: .8rem;
  padding: .7rem .9rem; font: inherit; background: var(--surface);
}
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.chip {
  min-height: 40px; padding: 0 .75rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 700; cursor: pointer;
}
.chip.on { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.finder-msg { font-family: Fraunces, serif; font-size: 1.2rem; font-weight: 700; margin: 1rem 0 .3rem; }
.finder-list { display: grid; gap: 1rem; margin-top: 1rem; }
.finder-product { width: 100%; }
.finder-product .card { max-width: none; }
.finder-product .poster { aspect-ratio: 1 / 1; }
.finder-product .card-body h2 { font-size: 1.15rem; }
.finder-product .price { font-size: 1.6rem; }
.finder-product .card-body .btn { min-height: 48px; font-size: 1rem; }
body.howto-open { overflow: hidden; }
.howto {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 1rem;
  background: rgba(18, 24, 16, .78);
}
.howto-frame { width: min(1100px, 100%); }
.howto-title {
  margin: 0 0 .55rem;
  color: #fbf7ee;
  font-family: Fraunces, serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  text-align: center;
}
.howto-video { position: relative; border-radius: 1rem; overflow: hidden; background: #111; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.howto-video video { display: block; width: 100%; max-height: min(82vh, 820px); background: #111; object-fit: contain; }
.howto-x {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(20, 20, 20, .82); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
}
