:root {
  --bg: #f7f3ea;
  --panel: #fffdf7;
  --ink: #22301f;
  --muted: #6b7563;
  --line: #e3dcc9;
  --brand: #2e5e3a;
  --brand-dark: #1e4028;
  --accent: #e07b2a;
  --accent-dark: #c5641c;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
img { max-width: 100%; display: block; }
h1 { font-size: 2.3rem; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 14px; }
h3 { font-size: 1.05rem; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247,243,234,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-dark); }
.brand__mark { width: 42px; height: 42px; color: var(--brand); }
.brand__text { font-weight: 800; font-size: 1.15rem; line-height: 1; display: flex; flex-direction: column; }
.brand__text small { font-size: .62rem; letter-spacing: .34em; color: var(--accent-dark); font-weight: 700; margin-top: 3px; }
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.cart-btn { position: relative; margin-left: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand-dark); }
.cart-btn svg { width: 24px; height: 24px; }
.cart-btn__count { position: absolute; top: -7px; right: -7px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.announce { background: var(--brand-dark); color: #e9f2e4; text-align: center; font-size: .82rem; padding: 7px 12px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Product */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; padding: 30px 0 10px; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gallery__main img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery__badge { position: absolute; top: 12px; left: 12px; background: rgba(30,64,40,.92); color: #fff; font-size: .75rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: var(--panel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--on { border-color: var(--accent); }
.buybox__eyebrow { color: var(--accent-dark); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; margin-bottom: 6px; }
.buybox__rating { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: .92rem; }
.stars { color: var(--accent); letter-spacing: 2px; }
.buybox__price { font-size: 1.35rem; margin: 8px 0; }
.buybox__price s { color: var(--muted); font-size: 1.05rem; }
.buybox__save { background: #fdeeda; color: var(--accent-dark); font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.buybox__desc { color: #3d4a38; margin-bottom: 16px; }
.opt { border: 0; margin-bottom: 14px; }
.opt legend { font-size: .92rem; margin-bottom: 8px; color: var(--muted); }
.opt legend strong { color: var(--ink); }
.opt__row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: var(--panel); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
.chip em { color: var(--accent-dark); font-style: normal; font-size: .8rem; font-weight: 800; }
.chip--on { border-color: var(--brand); background: #eaf2e6; color: var(--brand-dark); }
.qty-row { display: flex; gap: 12px; margin: 18px 0 10px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.qty button { width: 42px; height: 100%; min-height: 48px; background: none; border: 0; font-size: 1.25rem; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.btn { border: 0; border-radius: 13px; padding: 14px 20px; font-weight: 800; font-size: 1rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--brand-dark); color: #fff; width: 100%; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn--grow { flex: 1; }
.btn--big { width: 100%; margin-top: 8px; }
.btn--sm { padding: 8px 14px; font-size: .9rem; }
.assure { list-style: none; margin-top: 16px; display: grid; gap: 7px; color: #3d4a38; font-size: .93rem; }

/* Sections */
.section { padding: 44px 0; }
.section--alt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; margin: 34px 0; }
.section__sub { color: var(--muted); margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: center; }
.split__img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ticks { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.ticks li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.detail-grid__img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.spec { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec th { width: 38%; color: var(--muted); font-weight: 600; background: #fbf8f0; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.wide-img { border-radius: var(--radius); width: 100%; aspect-ratio: 21/9; object-fit: cover; margin-top: 26px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 8px; }
.review h3 { margin-bottom: 6px; }
.review p { font-size: .93rem; color: #3d4a38; }
.review__meta { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.review__verified { color: var(--brand); font-weight: 700; }

/* FAQ */
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 9px; color: #3d4a38; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 30px; background: #efe9da; }
.footer__cols { max-width: 1120px; margin: 0 auto; padding: 34px 16px 8px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer__brand { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.footer h3 { margin-bottom: 10px; }
.footer nav a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 7px; font-size: .94rem; }
.footer nav a:hover { color: var(--brand); }
.footer__fine { max-width: 1120px; margin: 0 auto; padding: 14px 16px 26px; color: var(--muted); font-size: .82rem; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(20,28,18,.5); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--panel); z-index: 60; display: flex; flex-direction: column; box-shadow: -12px 0 34px rgba(0,0,0,.2); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head button { background: none; border: 0; font-size: 1.15rem; }
.drawer__items { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { font-size: .95rem; }
.cart-item p { font-size: .83rem; color: var(--muted); }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cart-item__qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.cart-item__price { font-weight: 800; }
.cart-item__rm { background: none; border: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 20px; display: grid; gap: 10px; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__row--muted { color: var(--muted); font-size: .9rem; }
.drawer__row--total { font-size: 1.15rem; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.cart-empty { color: var(--muted); text-align: center; padding: 34px 0; }

/* Checkout */
.checkout { max-width: 1020px; margin: 0 auto; padding: 26px 16px 60px; }
.checkout__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.checkout__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: start; }
.checkout form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.checkout form h3 { margin: 18px 0 10px; }
.checkout form h3:first-child { margin-top: 0; }
.checkout label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 11px; color: #3d4a38; }
.checkout input, .checkout select { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.secure-note { font-size: .87rem; color: var(--muted); margin-bottom: 12px; }
.form-err { color: #b3382e; font-size: .9rem; margin-top: 10px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 9px; }
.summary h3 { margin-bottom: 6px; }
.summary__item { display: flex; justify-content: space-between; gap: 10px; font-size: .93rem; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.summary__note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.confirm__box { max-width: 560px; margin: 40px auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; }
.confirm__check { width: 66px; height: 66px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }
.confirm__box p { color: #3d4a38; margin: 10px 0 16px; }

/* Standalone document pages (About / Contact / policies) */
.doc { max-width: 820px; margin: 0 auto; padding: 36px 16px 60px; font-size: .97rem; color: #33402f; }
.doc h1 { margin-bottom: 8px; }
.doc h4 { margin: 20px 0 6px; color: var(--ink); font-size: 1.02rem; }
.doc p, .doc li { margin-bottom: 8px; }
.doc ul { padding-left: 20px; }
.doc__meta { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.doc__addr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0 20px; line-height: 1.6; }
.doc__addr strong { color: var(--ink); }
.doc__back { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--brand-dark); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; z-index: 80; box-shadow: 0 10px 26px rgba(0,0,0,.25); }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .product, .split, .detail-grid, .checkout__grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .nav { display: none; }
  h1 { font-size: 1.9rem; }
  .wide-img { aspect-ratio: 16/10; }
}
