:root {
  --bg: #21231f;
  --bg2: #292c26;
  --panel: #2f332c;
  --line: rgba(169, 192, 142, 0.20);
  --text: #ede9dd;
  --muted: #a5a294;
  --sage: #a9c08e;
  --tan: #d3b48e;
  --forest: #33473a;
  --grad: linear-gradient(90deg, var(--sage), var(--tan));
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, .brand-main, .price { font-family: "Cormorant Garamond", Georgia, serif; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 28px;
  background: rgba(33, 35, 31, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; text-decoration: none; }
.brand-main {
  font-size: 28px; font-weight: 600; letter-spacing: 1px; color: var(--sage);
}
.brand-main em {
  font-style: italic; color: var(--tan); padding: 0 1px;
}
.brand-sub { color: var(--muted); font-size: 9px; letter-spacing: 6px; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.cart-btn {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--sage); }
.cart-count {
  display: inline-block; min-width: 20px; text-align: center;
  background: var(--grad); color: #21231f; font-weight: 700;
  border-radius: 999px; padding: 1px 6px; font-size: 12px; margin-left: 4px;
}

/* hero */
.hero {
  position: relative; min-height: 96vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("img/hero-bg.jpg") center/cover no-repeat, radial-gradient(ellipse at 30% 20%, #2f4033 0%, var(--bg) 60%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 20% 80%, rgba(169, 192, 142, 0.10), transparent),
    radial-gradient(600px 300px at 80% 30%, rgba(211, 180, 142, 0.10), transparent),
    linear-gradient(180deg, rgba(33,35,31,0.2), var(--bg) 96%);
}
.hero-inner { position: relative; z-index: 2; padding: 110px 24px 60px; max-width: 900px; }
.hero-video {
  width: min(620px, 92vw); aspect-ratio: 1920 / 1088; display: block;
  margin: 0 auto 26px; border-radius: 20px; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(169, 192, 142, 0.22), 0 18px 50px rgba(0,0,0,.55);
}
.hero-kicker { letter-spacing: 5px; font-size: 12px; color: var(--sage); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 600; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 20px auto 32px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--muted); animation: bob 1.8s ease-in-out infinite; z-index: 2; font-size: 13px;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* buttons */
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 999px; transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad); color: #21231f;
  box-shadow: 0 6px 30px rgba(169, 192, 142, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 40px rgba(211, 180, 142, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--sage); }
.wide { width: 100%; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 12px 0; }
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: scroll 90s linear infinite;
  letter-spacing: 3px; font-size: 12.5px; color: var(--muted);
}
.marquee-half { display: inline-block; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* shop */
.shop { max-width: 1200px; margin: 0 auto; padding: 90px 24px 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }
.section-head h2, .story h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.chip.active, .chip:hover { color: var(--text); border-color: var(--sage); }
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(169, 192, 142, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(211, 180, 142, 0.10);
}
.card-img { position: relative; aspect-ratio: 1; background: var(--bg2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-fallback { display: grid; place-items: center; height: 100%; font-size: 60px; }
.thumbs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 6px; padding: 8px; justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(15, 16, 13, 0.72));
  opacity: 0; transition: opacity .25s;
}
.card:hover .thumbs, .thumbs:focus-within { opacity: 1; }
.thumb-dot {
  width: 40px; height: 40px; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: 8px; border: 1px solid rgba(237, 233, 221, 0.35);
  background: none; transition: border-color .2s, transform .15s;
}
.thumb-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-dot:hover { transform: translateY(-2px); }
.thumb-dot.on { border-color: var(--tan); border-width: 2px; }
@media (hover: none) { .thumbs { opacity: 1; } }

.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--grad); color: #21231f; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.badge.out { background: #4a4d44; color: var(--text); }
.card-body { padding: 18px; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-top h3 { font-size: 20px; font-weight: 600; }
.price { color: var(--tan); font-weight: 700; font-size: 19px; }
.desc { color: var(--muted); font-size: 13.5px; margin: 8px 0 16px; min-height: 36px; font-family: "Inter", sans-serif; }
.btn-add {
  width: 100%; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); padding: 11px;
}
.btn-add:hover:not(:disabled) { border-color: var(--tan); }
.btn-add:disabled { opacity: 0.45; cursor: not-allowed; }
.card.hide { display: none; }

/* story */
.story { background: var(--bg2); border-block: 1px solid var(--line); margin-top: 60px; }
.story-inner { max-width: 820px; margin: 0 auto; padding: 80px 24px; }
.story-text p { color: var(--muted); margin: 16px 0; line-height: 1.7; font-size: 15px; }
.stats { display: flex; gap: 40px; margin-top: 30px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: "Cormorant Garamond", serif; font-size: 30px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 13px; }
/* emoji ignore background-clip, so keep them opaque and matched in size */
.care-icons { -webkit-text-fill-color: initial; color: initial; letter-spacing: 2px; font-size: 26px; }

/* footer */
.footer { text-align: center; padding: 50px 20px; }
.footer p { color: var(--muted); font-size: 13px; }

/* drawer / modal */
.overlay {
  position: fixed; inset: 0; background: rgba(15, 16, 13, 0.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -420px; width: min(400px, 92vw); height: 100%;
  background: var(--bg2); border-left: 1px solid var(--line); z-index: 100;
  display: flex; flex-direction: column; transition: right .3s cubic-bezier(.2,.8,.2,1);
}
.drawer.show { right: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.x { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.x:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ci-name { font-size: 14px; font-weight: 600; }
.ci-price { color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
}
.empty { color: var(--muted); text-align: center; margin-top: 40px; }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.modal {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 110;
  background: rgba(15, 16, 13, 0.7); backdrop-filter: blur(4px); padding: 20px;
}
.modal.show { display: grid; }
.modal-card {
  position: relative; width: min(440px, 100%); background: var(--bg2);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px;
}
.modal-card .x { position: absolute; top: 14px; right: 16px; }
.modal-card h3 { margin-bottom: 6px; font-size: 24px; }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-card input, .modal-card textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  font-family: inherit; font-size: 14px;
}
.modal-card textarea { min-height: 70px; resize: vertical; }
.modal-card input:focus, .modal-card textarea:focus { outline: none; border-color: var(--sage); }
.error { color: #e8a09a; font-size: 13px; margin-top: 10px; }

.opt-select {
  width: 100%; margin-bottom: 10px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 13px;
}
.pay-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 14px 0; text-align: left;
}
.pay-title { font-size: 14px; margin-bottom: 10px; color: var(--text); }
.pay-line { font-size: 14px; color: var(--muted); margin: 6px 0; }
.pay-line strong, .pay-line a { color: var(--sage); }
.pay-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.muted-row { color: var(--muted); font-size: 14px; }
.mail { color: var(--muted); }
.addr-row { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr; gap: 10px; }
.gate { z-index: 300; }
.gate .modal-card { text-align: center; }
.gate-text { white-space: normal; line-height: 1.65; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  padding: 12px 22px; border-radius: 999px; font-size: 14px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* product detail popup */
.card-img, .card-top h3 { cursor: pointer; }
.pmodal {
  position: fixed; inset: 0; display: none; place-items: center; z-index: 150;
  background: rgba(12, 13, 11, 0.82); backdrop-filter: blur(6px); padding: 20px;
}
.pmodal.show { display: grid; }
.pmodal-card {
  position: relative; width: min(1000px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 22px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; padding: 26px;
}
.pm-close { position: absolute; top: 14px; right: 18px; z-index: 4; font-size: 20px; }
.pm-stage {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  aspect-ratio: 1; cursor: zoom-in;
}
.pm-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .28s ease;
}
.pm-img.zoomed { transform: scale(2.4); cursor: zoom-out; }
.pm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; z-index: 3;
  background: rgba(20, 22, 18, 0.72); color: var(--text);
  border: 1px solid var(--line); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.pm-arrow:hover { background: var(--forest); }
.pm-prev { left: 10px; } .pm-next { right: 10px; }
.pm-zoomhint {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; color: var(--text); background: rgba(20, 22, 18, 0.72);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  pointer-events: none; z-index: 3;
}
.pm-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pm-thumb {
  width: 62px; height: 62px; padding: 0; overflow: hidden; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line); background: none;
  transition: border-color .2s, transform .15s;
}
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb:hover { transform: translateY(-2px); }
.pm-thumb.on { border-color: var(--tan); border-width: 2px; }
.pm-info { display: flex; flex-direction: column; padding-top: 6px; }
.pm-info h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.15; }
.pm-price {
  font-family: "Cormorant Garamond", serif; font-size: 30px; font-weight: 700;
  color: var(--tan); margin: 6px 0 16px;
}
.pm-desc { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.pm-label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 6px; }
.pm-optwrap { margin-bottom: 16px; }
.pm-stock { font-size: 13.5px; color: var(--sage); margin-bottom: 14px; }
.pm-stock.out { color: var(--muted); }
.pm-info .btn { margin-top: auto; }

@media (max-width: 820px) {
  .pmodal-card { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .pm-info .btn { margin-top: 8px; }
}

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .stats { gap: 26px; flex-wrap: wrap; }
}
