:root {
  --white: #ffffff;
  --paper: #f3f6f5;
  --mist: #eef3f0;
  --ink: #0b1c2c;
  --navy: #0b1c2c;
  --muted: #5a6b73;
  --line: #e4ece8;
  --accent: #023E30;
  --accent-dark: #01281f;
  --header-h: 60px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 1.5rem)); margin: 0 auto; }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h); background: var(--navy); color: #fff;
  width: 100%;
}
.header-inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  width: 100%; max-width: none; margin: 0; padding: 0 1.25rem;
}
.brand { justify-self: center; font-family: Literata, Georgia, serif; font-size: 1.55rem; font-weight: 700; color: #fff; }
.icon-btn {
  width: 44px; height: 44px; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; padding: 0; cursor: pointer;
}
.close-btn {
  width: 48px; height: 48px;
  font-size: 36px; line-height: 1; font-weight: 400;
}
.cart-btn { position: relative; justify-self: end; }
.cart-count {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; padding: 0 5px;
}
.cart-count.show { display: flex; }
.page-offset { height: var(--header-h); }
.side-menu {
  position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.4); display: none;
}
.side-menu.open { display: block; }
.side-panel {
  width: min(320px, 85vw); height: 100%; background: #fff; color: var(--ink);
  padding: 1.4rem; box-shadow: 8px 0 24px rgba(0,0,0,.12);
}
.side-panel a { display: block; padding: .7rem 0; font-weight: 700; }

.hs { padding-top: 4px; }
.hs-wrap { position: relative; overflow: hidden; border-radius: 16px; background: #eef3f0; }
.hs-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hs-track::-webkit-scrollbar { display: none; }
.hs-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 12px 2%; }
.hs-slide img { width: 96%; margin: 0 auto; border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.hs-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.95); box-shadow: 0 4px 16px rgba(0,0,0,.1);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.hs-prev { left: 12px; } .hs-next { right: 12px; }
.hs-dots { display: flex; gap: 6px; justify-content: center; padding: 6px 0 0; }
.hs-dots button { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #d1d5db; padding: 0; }
.hs-dots button[aria-current="true"] { width: 24px; border-radius: 4px; background: var(--ink); }

.offer-hero { display: flex; flex-direction: column; gap: 12px; align-items: center; padding-top: 14px; }
.offer-hero-frame {
  width: 100%;
  max-height: 440px;
  aspect-ratio: 1.85 / 1;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #023e30;
  box-shadow: 0 8px 22px rgba(11,28,44,.14);
}
.offer-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.offer-hero-btn {
  width: auto;
  min-width: 180px;
  min-height: 44px;
  padding: .65rem 1.8rem;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 12px;
}
@media (max-width: 639px) {
  .offer-hero { padding-top: 12px; gap: 10px; }
  .offer-hero-frame {
    aspect-ratio: 1.35 / 1;
    max-height: 360px;
    border-radius: 14px;
  }
  .offer-hero-btn {
    min-width: 160px;
    min-height: 42px;
    font-size: 15px;
  }
}
.best-title { margin: 0 0 14px; font-size: 26px; font-weight: 700; }
.best-slider { position: relative; }
.best-track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 0 10px; margin: 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  scroll-behavior: smooth;
}
.best-track::-webkit-scrollbar { display: none; }
.best-card {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  background: #fff; border-radius: 18px; border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 14px rgba(0,0,0,.05); scroll-snap-align: center;
  display: flex; flex-direction: column; overflow: hidden;
}
.best-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.96); color: var(--ink);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.best-prev { left: 6px; }
.best-next { right: 6px; }
.best-card img { width: 100%; height: 240px; object-fit: contain; background: #eef3f0; }
.product-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: contain; background: #eef3f0; }
.cart-item img { width: 56px; height: 84px; object-fit: contain; background: #eef3f0; border-radius: 8px; }
.best-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.best-body h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.best-year { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.best-sub {
  margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.more-btn {
  align-self: flex-start;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  display: inline-block;
}
.best-price {
  margin: 4px 0 0; padding: 0;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.price-now { font-weight: 800; font-size: 20px; color: var(--ink); }
.price-old {
  font-size: 16px; font-weight: 600;
  color: #9aa3ab; text-decoration: line-through;
}
.price-lg {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 14px 0;
}
.price-lg .price-now { font-size: 30px; font-weight: 800; }
.price-lg .price-old { font-size: 19px; }
.offer-hero-price {
  display: flex; align-items: baseline; gap: 10px;
}
.offer-hero-price .price-now { font-size: 20px; }
.offer-hero-price .price-old { font-size: 16px; }
.stock-left {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.product .stock-left { margin: 0 0 12px; font-size: 15px; }
.best-body .btn { margin-top: 8px; min-height: 44px; padding: .65rem 1rem; font-size: 16px; }
.desc-box { background: #fff; border-radius: 16px; padding: 18px; margin-top: 20px; color: var(--muted); }
.desc-box p { margin: 0 0 12px; line-height: 1.55; }
.desc-box p:last-child { margin-bottom: 0; }
.info-page { max-width: 760px; padding: 28px 0 48px; }
.info-page h1 { margin: 0 0 18px; font-family: Literata, Georgia, serif; font-size: 1.85rem; }
.info-page h2 { margin: 1.6rem 0 .7rem; font-size: 1.15rem; color: var(--ink); }
.info-page .muted { margin: 0 0 .75rem; }
.info-page a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.info-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.55; }
.info-list li { margin-bottom: .45rem; }
.info-list strong { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: .7rem 1rem; border-radius: 12px; border: 0;
  font-weight: 700; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent); }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-block { width: 100%; }
.bundle-card {
  display: none;
}
.badge { display: inline-flex; background: #fff; color: var(--accent); border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; width: fit-content; }
.help-card, .promo-card, .card {
  background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.promo-card { background: var(--accent); color: #fff; }
.muted { color: var(--muted); line-height: 1.55; }
.footer { background: var(--navy); color: #fff; margin-top: 28px; }
.footer-grid { display: grid; gap: 1.4rem; padding: 2rem 0; }
.footer a { color: rgba(255,255,255,.82); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 12px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.55); }

/* Cart drawer */
#cartPopup {
  position: fixed; inset: 0; display: none; justify-content: flex-end;
  background: rgba(0,0,0,.35); z-index: 1200;
}
#cartPopup.active { display: flex; }
.cart-modal {
  width: min(430px, 94vw); height: 100dvh; background: #fff;
  border-radius: 18px 0 0 18px; box-shadow: -8px 0 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
}
.cart-header, .cart-footer { padding: 14px; border-color: var(--line); }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-content { flex: 1; overflow: auto; padding: 8px 12px; }
.cart-footer { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.cart-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f0f2; align-items: center;
}
.cart-item img { width: 56px; height: 84px; object-fit: contain; background: #eef3f0; border-radius: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; }
.summary { background: var(--mist); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; font-weight: 800; }
.qo-field { margin-bottom: 12px; }
.qo-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.qo-input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  font: inherit; background: #fff;
}
.err { color: #d93025; font-size: 12px; margin-top: 4px; display: none; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.product { padding: 20px 0 40px; }
.product-grid { display: grid; gap: 20px; }
.product-cover { max-width: 240px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(11,28,44,.14); background: #eef3f0; }
.product-cover img { width: 100%; aspect-ratio: 2/3; object-fit: contain; background: #eef3f0; }
@media (min-width: 640px) {
  .product-grid { grid-template-columns: 240px 1fr; align-items: start; }
  .best-nav { display: none; }
  .best-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    gap: 18px;
    margin: 0;
    padding-bottom: 0;
  }
  .best-card {
    flex: none;
    max-width: none;
    width: 100%;
  }
  .best-card img { height: 250px; }
  .best-body h3 { font-size: 16px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 900px) {
  .best-track { gap: 22px; }
  .best-card img { height: 280px; }
  .best-body { padding: 14px 16px 16px; gap: 6px; }
}
