:root {
  --bg: #f4efe6;
  --fg: #2b241b;
  --muted: #6b6258;
  --card: #fffdf8;
  --border: #e4d8c8;
  --primary: #3d5a38;
  --primary-fg: #f7f3ea;
  --accent: #c4a35a;
  --accent-fg: #2b241b;
  --notice: #f3e6c8;
  --notice-fg: #4a3b1a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: Manrope, system-ui, sans-serif; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
header.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  height: 4rem; padding: 0 1rem; max-width: 72rem; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 90%, white);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-family: Fraunces, serif; font-weight: 650; }
.brand img { width: 2.5rem; height: 2.5rem; }
nav.desk { display: none; gap: 1.25rem; }
nav.desk a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 600; }
nav.desk a:hover { color: var(--fg); }
.icon-btn {
  min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--border);
  background: var(--card); border-radius: .7rem; display: inline-flex;
  align-items: center; justify-content: center; gap: .35rem; cursor: pointer; text-decoration: none;
}
.badge { background: var(--primary); color: var(--primary-fg); border-radius: 999px; font-size: .7rem; padding: .1rem .4rem; font-weight: 800; }
.hero { padding: 2.5rem 1rem 1rem; max-width: 72rem; margin: 0 auto; }
.hero h1 { font-family: Fraunces, serif; font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.hero p { color: var(--muted); max-width: 36rem; line-height: 1.6; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 3rem; padding: 0 1.2rem; border: 0; border-radius: .7rem;
  background: var(--primary); color: var(--primary-fg); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.notice { background: var(--notice); color: var(--notice-fg); border: 1px solid var(--border); border-radius: .8rem; padding: 1rem 1.1rem; }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  nav.desk { display: flex; }
}
.card { background: var(--card); border: 1px solid var(--border); border-radius: .9rem; overflow: hidden; display: flex; flex-direction: column; }
.poster { position: relative; aspect-ratio: 2/3; background: var(--bg); cursor: pointer; border: 0; padding: 0; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; border-radius: 999px; font-weight: 800; padding: .3rem .7rem; font-size: .75rem; }
.pill.left { left: .75rem; top: .75rem; background: var(--primary); color: var(--primary-fg); }
.pill.right { right: .75rem; top: .75rem; background: var(--accent); color: var(--accent-fg); }
.qty { position: absolute; right: 1rem; bottom: 1rem; background: var(--primary); color: var(--primary-fg); font-family: Fraunces, serif; font-weight: 700; border-radius: 999px; min-width: 4.2rem; min-height: 4.2rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; padding: 0 .8rem; }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h2 { font-family: Fraunces, serif; font-size: 1.2rem; margin: 0; }
.muted { color: var(--muted); }
.price { font-family: Fraunces, serif; font-size: 1.85rem; font-weight: 700; margin: .4rem 0 0; }
.old { text-decoration: line-through; color: var(--muted); font-size: .9rem; }
.tabs { display: flex; gap: .25rem; background: var(--bg); padding: .25rem; border-radius: .6rem; }
.tabs button { flex: 1; min-height: 2.5rem; border: 0; background: transparent; border-radius: .45rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--primary); color: var(--primary-fg); }
.details { margin-top: 1rem; border: 1px solid var(--border); border-radius: .7rem; padding: 1rem; background: var(--bg); font-size: .9rem; line-height: 1.55; color: var(--muted); }
.details h3 { color: var(--fg); margin: 0 0 .4rem; font-family: Fraunces, serif; }
.ship { text-align: center; font-size: .78rem; font-weight: 700; color: var(--primary); margin-top: .5rem; }
footer.site { margin-top: 3rem; border-top: 1px solid var(--border); padding: 2.5rem 1rem; }
.fgrid { display: grid; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }
.page { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 6rem; }
.cart-item { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: .9rem; 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(--bg); cursor: pointer; }
form.checkout { display: grid; gap: .7rem; }
form.checkout input, form.checkout textarea {
  width: 100%; min-height: 2.8rem; border: 1px solid var(--border); border-radius: .6rem; padding: .6rem .75rem; background: #fff;
}
.err { color: #9b1c1c; font-size: .9rem; }
.float-wa {
  position: fixed; right: 1rem; bottom: 4.5rem; z-index: 30;
  width: 3.4rem; height: 3.4rem; border-radius: 999px; background: #128c4b; color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800;
}
.mobile-cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center; padding: .6rem 1rem 1rem;
  background: linear-gradient(transparent, var(--bg));
}
@media (min-width: 768px) { .mobile-cart { display: none; } .float-wa { bottom: 1.2rem; } }
.hide { display: none !important; }
.toast { position: fixed; top: 5rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--primary-fg); padding: .7rem 1rem; border-radius: .6rem; z-index: 50; font-weight: 700; }
