/* ==========================================================================
   Hùng Dược Khánh Hoà — Design System
   Xáo Tam Phân Ninh Hoà
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --primary: hsl(142 100% 20%);          /* #006425 */
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(145 42% 96%);
  --foreground: hsl(158 20% 12%);
  --muted: hsl(150 20% 96%);
  --muted-foreground: hsl(155 10% 42%);
  --brand-deep: hsl(163 47% 19%);
  --brand-soft: hsl(145 45% 96%);
  --border: hsl(150 14% 89%);
  --destructive: hsl(0 72% 48%);
  --destructive-foreground: #fff;
  --surface: #fff;

  --font-heading: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --shadow-sm: 0 1px 2px rgba(2, 60, 28, 0.06), 0 1px 3px rgba(2, 60, 28, 0.04);
  --shadow-md: 0 4px 12px -4px rgba(2, 60, 28, 0.14), 0 2px 6px -2px rgba(2, 60, 28, 0.08);
  --shadow-lg: 0 18px 40px -24px rgba(2, 60, 28, 0.45), 0 6px 16px -8px rgba(2, 60, 28, 0.16);
  --shadow-xl: 0 28px 60px -28px rgba(2, 60, 28, 0.5);

  --header-h: 6rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: hsl(142 100% 20% / 0.16); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) { .wrap { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding-inline: 2rem; } }

.section { padding-block: 3rem; }
@media (min-width: 768px) { .section { padding-block: 4.5rem; } }

.stack { display: flex; flex-direction: column; }
.site { display: flex; min-height: 100vh; flex-direction: column; }
.site main { flex: 1; }

.flow > * + * { margin-top: var(--flow, 1rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.section-title {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  font-weight: 900;
  color: var(--foreground);
  margin-top: 0.5rem;
}

.section-desc {
  margin-top: 0.65rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 42rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .section-head > div:first-child { max-width: 42rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s,
    transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 8px 18px -12px hsl(142 100% 20% / 0.8);
}
.btn--primary:hover { background: hsl(142 100% 17%); }

.btn--white { background: #fff; color: var(--primary); box-shadow: 0 12px 24px -14px rgba(0,0,0,.55); }
.btn--white:hover { background: #f7faf7; }

.btn--outline-primary {
  border: 1px solid hsl(142 100% 20% / 0.9);
  color: var(--primary);
  background: transparent;
}
.btn--outline-primary:hover { background: var(--primary); color: #fff; }

.btn--ghost-light {
  border: 1px solid hsl(0 0% 100% / 0.6);
  color: #fff;
}
.btn--ghost-light:hover { background: hsl(0 0% 100% / 0.12); }

.btn--soft {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: #fff;
  padding: 0.7rem 1.25rem;
  font-size: 0.82rem;
}
.btn--soft:hover { border-color: hsl(142 100% 20% / 0.45); color: var(--primary); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-hover { transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s; }
.card-hover:hover {
  border-color: hsl(142 100% 20% / 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -22px hsl(158 100% 12% / 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--primary);
}
.badge--outline { background: transparent; border: 1px solid hsl(142 100% 20% / 0.3); }
.badge--dark { background: hsl(0 0% 100% / 0.15); color: #fff; backdrop-filter: blur(6px); }

.price { font-family: var(--font-heading); font-weight: 800; color: var(--primary); }
.price--old { font-size: 0.82rem; color: var(--muted-foreground); text-decoration: line-through; font-weight: 500; }
.price-off {
  background: var(--destructive); color: var(--destructive-foreground);
  border-radius: 5px; padding: 0.1rem 0.35rem; font-size: 0.68rem; font-weight: 800;
}

/* ==========================================================================
   Top bar + Header
   ========================================================================== */
.topbar {
  display: none;
  border-bottom: 1px solid hsl(150 14% 89% / 0.7);
  font-size: 0.78rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) { .topbar { display: block; } }
.topbar__inner {
  display: flex; height: 2.5rem; align-items: center; justify-content: space-between;
}
.topbar a, .topbar__tools button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.topbar a:hover, .topbar__tools button:hover { color: var(--primary); }
.topbar__tools { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .topbar__tools { display: flex; } }
.topbar strong { color: var(--foreground); font-weight: 700; }
.topbar .cart-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--foreground); }
.cart-count {
  display: inline-flex; height: 1.25rem; min-width: 1.25rem; align-items: center;
  justify-content: center; border-radius: 999px; background: var(--primary); color: #fff;
  padding-inline: 0.35rem; font-size: 0.68rem; font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(0 0% 100% / 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .header__inner { height: 5.25rem; } }
@media (min-width: 1024px) {
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
}

.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop--right { justify-content: flex-end; }

.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: hsl(158 20% 12% / 0.85);
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-item > a:hover, .nav-item.is-active > a { color: var(--primary); }
.nav-item > a svg { transition: transform 0.2s; }
.nav-item:hover > a svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  width: 15rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s;
}
.nav-dropdown--right { left: auto; right: 0; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: hsl(158 20% 12% / 0.75);
  transition: background-color 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--brand-soft); color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: hsl(142 100% 20% / 0.5); color: var(--primary); }
@media (min-width: 1024px) {
  .header__actions .icon-btn { display: none; }
}
.cart-mobile { position: relative; }
.cart-mobile__count {
  position: absolute; right: -0.375rem; top: -0.375rem;
  display: flex; height: 1.25rem; min-width: 1.25rem; align-items: center;
  justify-content: center; border-radius: 999px; background: var(--primary); color: #fff;
  padding-inline: 0.25rem; font-size: 0.66rem; font-weight: 700;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.logo__mark {
  display: flex; height: 3rem; width: 3rem; flex-shrink: 0; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 999px;
  background: var(--primary); color: #fff; text-align: center;
  box-shadow: 0 0 0 2px hsl(142 100% 20% / 0.15);
}
@media (min-width: 768px) { .logo__mark { height: 3.875rem; width: 3.875rem; } }
.logo__mark b {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 900;
  line-height: 1; letter-spacing: 0.02em;
}
@media (min-width: 768px) { .logo__mark b { font-size: 0.92rem; } }
.logo__mark small {
  margin-top: 0.1rem; font-family: var(--font-heading); font-size: 0.34rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.1;
  max-width: 2.6rem;
}
.logo__text { display: none; flex-direction: column; line-height: 1.2; }
@media (min-width: 480px) { .logo__text { display: flex; } }
.logo__text b {
  font-family: var(--font-heading); font-size: 0.98rem; font-weight: 800; color: var(--foreground);
}
.logo__text span {
  font-size: 0.64rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--muted-foreground);
}
.logo--dark .logo__text b { color: #fff; }
.logo--dark .logo__text span { color: hsl(0 0% 100% / 0.85); }
.logo--stack { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

/* Search drawer */
.search-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}
.search-drawer.is-open { display: block; }
.search-drawer form { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.75rem; }
.search-drawer input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  outline: 0;
}
.search-drawer input::placeholder { color: var(--muted-foreground); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45);
  opacity: 0; transition: opacity 0.3s;
}
.drawer__panel {
  position: absolute; inset-block: 0; left: 0;
  display: flex; width: 88%; max-width: 22rem; flex-direction: column;
  background: #fff; box-shadow: var(--shadow-xl);
  transform: translateX(-100%); transition: transform 0.3s var(--ease);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding: 0.75rem 1rem;
}
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem; }
.drawer__nav > div { border-bottom: 1px solid hsl(150 14% 89% / 0.7); padding-block: 0.25rem; }
.drawer__nav a.top {
  display: block; padding-block: 0.65rem;
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800;
}
.drawer__nav a.sub {
  display: block; padding: 0.4rem 0 0.4rem 0.75rem;
  font-size: 0.85rem; font-weight: 500; color: var(--muted-foreground);
}
.drawer__nav a.sub:hover, .drawer__nav a.top:hover { color: var(--primary); }
.drawer__subs { padding-bottom: 0.5rem; }
.drawer__foot {
  display: flex; flex-direction: column; gap: 0.5rem;
  border-top: 1px solid var(--border); background: var(--brand-soft); padding: 1rem;
  font-size: 0.82rem;
}
.drawer__foot a { display: flex; align-items: center; gap: 0.5rem; }
.drawer__foot a:first-child { font-weight: 700; color: var(--primary); }
@media (min-width: 1024px) { .drawer { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 82% 12%, hsl(150 100% 27% / 0.3) 0%, transparent 62%),
    linear-gradient(158deg, #08702f 0%, #006425 46%, #02491f 100%);
  color: #fff;
}
.hero__rings {
  pointer-events: none;
  position: absolute;
  right: -18%;
  bottom: -55%;
  width: 78%;
  height: 130%;
  opacity: 0.5;
  background: repeating-radial-gradient(
    circle,
    transparent 0 30px,
    rgba(255, 255, 255, 0.18) 31px 32px,
    transparent 33px 64px
  );
  transform: perspective(720px) rotateX(58deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 2.25rem;
  padding-block: 3rem;
}
@media (min-width: 768px) { .hero__inner { padding-block: 4rem; } }
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    padding-block: 5rem;
  }
}

.hero__slide { display: none; }
.hero__slide.is-active { display: contents; }

.hero__content { animation: rise 0.7s var(--ease) both; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; background: hsl(0 0% 100% / 0.15);
  padding: 0.375rem 1rem; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  backdrop-filter: blur(6px);
}
.hero h1,
.hero .hero-title {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.3rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero h1 span,
.hero .hero-title span { display: block; }
.hero__desc {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 0.94rem;
  line-height: 1.75;
  color: hsl(0 0% 100% / 0.92);
}
.hero__cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__trust {
  margin-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 1.25rem; row-gap: 0.5rem;
  font-size: 0.78rem; color: hsl(0 0% 100% / 0.92);
}
.hero__trust span { display: flex; align-items: center; gap: 0.4rem; }

.hero__media { animation: rise 0.7s var(--ease) both; }
.hero__figure { position: relative; margin-inline: auto; width: 100%; max-width: 27.5rem; }
.hero__glow {
  position: absolute; inset: -1rem; border-radius: 2.5rem;
  background: hsl(0 0% 100% / 0.1); filter: blur(2rem);
}
.hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  box-shadow: var(--shadow-xl);
  outline: 1px solid hsl(0 0% 100% / 0.3);
}
.hero__frame img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.hero__tag {
  position: absolute; left: 1rem; bottom: -0.75rem;
  border-radius: 999px; background: #fff; color: var(--primary);
  padding: 0.5rem 1rem; font-size: 0.72rem; font-weight: 800;
  box-shadow: var(--shadow-lg);
}

.hero__nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: none;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.15);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s, color 0.2s;
}
.hero__nav:hover { background: #fff; color: var(--primary); }
.hero__nav--prev { left: 1rem; }
.hero__nav--next { right: 1rem; }
@media (min-width: 768px) { .hero__nav { display: flex; } }

.hero__dots {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
}
.hero__dot {
  height: 0.5rem; width: 0.5rem; border-radius: 999px;
  background: hsl(0 0% 100% / 0.45);
  transition: all 0.3s;
}
.hero__dot:hover { background: hsl(0 0% 100% / 0.7); }
.hero__dot.is-active { width: 1.75rem; background: #fff; }
.hero__dots .mini-nav {
  display: flex; height: 2rem; width: 2rem; align-items: center; justify-content: center;
  border-radius: 999px; background: hsl(0 0% 100% / 0.15); color: #fff;
}
@media (min-width: 768px) { .hero__dots .mini-nav { display: none; } }

/* ---------- Promo strip ---------- */
.promo { background: var(--brand-deep); }
.promo__grid {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.5rem;
}
@media (min-width: 768px) { .promo__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.promo__item {
  display: flex; align-items: flex-start; gap: 0.875rem;
  border-radius: var(--radius-lg);
  background: hsl(0 0% 100% / 0.05);
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.1);
  padding: 1rem;
}
.promo__icon {
  display: flex; height: 2.75rem; width: 2.75rem; flex-shrink: 0;
  align-items: center; justify-content: center; border-radius: 999px;
  background: #fff; color: var(--brand-deep);
}
.promo__item b {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}
.promo__item p {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: hsl(0 0% 100% / 0.7);
}

/* ==========================================================================
   Categories
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.cat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: var(--radius-lg); padding: 0.75rem 0.5rem;
  transition: background-color 0.2s;
}
.cat:hover { background: var(--brand-soft); }
.cat__ring {
  overflow: hidden; border-radius: 999px;
  box-shadow: 0 0 0 4px var(--brand-soft);
  transition: box-shadow 0.3s;
}
.cat:hover .cat__ring { box-shadow: 0 0 0 4px hsl(142 100% 20% / 0.25); }
.cat__ring img {
  height: 6rem; width: 6rem; object-fit: cover;
  transition: transform 0.5s;
}
@media (min-width: 640px) { .cat__ring img { height: 7rem; width: 7rem; } }
@media (min-width: 768px) { .cat__ring img { height: 8rem; width: 8rem; } }
.cat:hover .cat__ring img { transform: scale(1.05); }
.cat b {
  margin-top: 0.75rem;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800;
  transition: color 0.2s;
}
.cat:hover b { color: var(--primary); }
.cat p {
  display: none; margin-top: 0.25rem;
  font-size: 0.72rem; line-height: 1.35; color: var(--muted-foreground);
}
@media (min-width: 640px) { .cat p { display: block; } }

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 2rem;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.product {
  position: relative;
  display: flex; height: 100%; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.product__media { position: relative; display: block; overflow: hidden; background: #fff; }
.product__media img {
  aspect-ratio: 1; width: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product:hover .product__media img { transform: scale(1.05); }
.product__off {
  position: absolute; left: 0.5rem; top: 0.5rem;
  border-radius: 0.375rem; background: var(--destructive);
  padding: 0.25rem 0.375rem; font-size: 0.68rem; font-weight: 800; color: #fff;
}
.product__flag {
  position: absolute; right: 0.5rem; top: 0.5rem;
  border-radius: 0.375rem; background: var(--primary);
  padding: 0.25rem 0.5rem; font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: #fff;
}
.product__body { display: flex; flex: 1; flex-direction: column; padding: 0.75rem; }
@media (min-width: 768px) { .product__body { padding: 0.875rem; } }
.product__cat {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: hsl(142 100% 20% / 0.8);
}
.product__name {
  margin-top: 0.375rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800;
  line-height: 1.35; color: var(--foreground);
  transition: color 0.2s;
}
.product:hover .product__name { color: var(--primary); }
.product__foot { margin-top: auto; padding-top: 0.75rem; }
.product__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.product__prices .price { font-size: 1.05rem; }
.product__unit { margin-top: 0.125rem; font-size: 0.7rem; color: var(--muted-foreground); }
.product__btn {
  margin-top: 0.75rem;
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 0.375rem;
  border-radius: 0.5rem; background: var(--primary);
  padding: 0.625rem 0.5rem; font-size: 0.76rem; font-weight: 800; color: #fff;
  transition: background-color 0.2s;
}
.product__btn:hover { background: hsl(142 100% 17%); }
.product__btn.is-added { background: var(--brand-deep); }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: hsl(145 45% 96% / 0.7); }
.about__grid {
  display: grid; gap: 2.5rem; padding-block: 3rem;
}
@media (min-width: 768px) { .about__grid { padding-block: 4.5rem; } }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
}
.about__media { position: relative; }
.about__media img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about__seal {
  position: absolute; right: 1rem; bottom: -1.25rem;
  border-radius: var(--radius); background: var(--primary);
  padding: 1rem 1.25rem; color: #fff; box-shadow: var(--shadow-xl);
}
.about__seal b {
  display: block; font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 800; line-height: 1;
}
.about__seal span {
  display: block; margin-top: 0.25rem;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: hsl(0 0% 100% / 0.8);
}
.about h2 { margin-top: 0.5rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
.about p.body { margin-top: 1rem; font-size: 0.92rem; line-height: 1.75; color: var(--muted-foreground); }
.stats {
  margin-top: 1.75rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  border-block: 1px solid var(--border); padding-block: 1.25rem;
}
.stats b {
  display: block; font-family: var(--font-heading);
  font-size: 1.8rem; font-weight: 800; line-height: 1; color: var(--primary);
}
.stats span {
  display: block; margin-top: 0.25rem;
  font-size: 0.74rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted-foreground);
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process {
  position: relative;
  overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: #fff;
}
.process img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.process__body { padding: 1rem; }
.process__num {
  display: inline-flex; height: 1.5rem; min-width: 1.5rem; align-items: center;
  justify-content: center; border-radius: 999px;
  background: var(--brand-soft); color: var(--primary);
  font-size: 0.7rem; font-weight: 800; margin-bottom: 0.5rem;
}
.process h3 { font-size: 0.98rem; font-weight: 800; }
.process p { margin-top: 0.375rem; font-size: 0.8rem; line-height: 1.6; color: var(--muted-foreground); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { background: hsl(145 45% 96% / 0.7); }
.blog-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff;
}
.post__media { width: 100%; padding: 0; text-align: left; }
.post__media img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; transition: transform 0.5s; }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.post__meta {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-foreground);
}
.post__meta .date { display: flex; align-items: center; gap: 0.375rem; }
.post__tag { border-radius: 999px; background: var(--brand-soft); padding: 0.125rem 0.5rem; color: var(--primary); }
.post h3 { margin-top: 0.625rem; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.post p.excerpt {
  margin-top: 0.375rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem; line-height: 1.6; color: var(--muted-foreground);
}
.post__more {
  margin-top: 0.75rem; align-self: flex-start;
  font-size: 0.8rem; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.post__more:hover { text-decoration: underline; }

/* Bài viết dạng trang đầy đủ: tin-tuc/<slug>.html */
.post__media { display: block; overflow: hidden; }
.post__media[href], .post h3 a { color: inherit; text-decoration: none; }
.post h3 a:hover { color: var(--primary); }
.post-article__lead { margin-bottom: 1rem; }
.post-article .prose p { margin-bottom: 1rem; font-size: 0.95rem; color: var(--muted-foreground); }
.post-article .prose h2,
.post-article .prose h3,
.post-article .prose h4 { margin: 1.75rem 0 0.625rem; font-family: var(--font-heading); line-height: 1.3; }
.post-article .prose h2 { font-size: 1.3rem; }
.post-article .prose h3 { font-size: 1.1rem; }
.post-article .prose h4 { font-size: 1rem; }
.post-article .prose ul,
.post-article .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.post-article .prose li { font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--muted-foreground); }
.post-article .prose strong { color: var(--foreground); }
.post-article .prose a { color: var(--primary); }
.post-article .prose code {
  background: var(--brand-soft); padding: 0.1rem 0.35rem; border-radius: 0.3rem; font-size: 0.88em;
}
.blog-grid .post a.post__media { padding: 0; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: none; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, 0.6);
}
.modal.is-open { display: flex; }
.modal__panel {
  position: relative;
  width: 100%; max-width: 42rem; max-height: 85vh; overflow-y: auto;
  border-radius: var(--radius-xl); background: #fff; padding: 1.25rem;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s var(--ease) both;
}
@media (min-width: 768px) { .modal__panel { padding: 1.75rem; } }
.modal__close {
  position: absolute; right: 1rem; top: 1rem;
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--secondary);
  transition: background-color 0.2s;
}
.modal__close:hover { background: var(--border); }
.modal__panel > img { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); object-fit: cover; }
.modal__meta {
  margin-top: 1.25rem; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary);
}
.modal__panel h3 { margin-top: 0.5rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.55rem); }
.modal__body { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.modal__body p { font-size: 0.9rem; line-height: 1.75; color: var(--muted-foreground); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.faq-list { border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; text-align: left;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800;
}
.faq-q svg { flex-shrink: 0; color: var(--primary); transition: transform 0.3s; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.25rem 1rem; font-size: 0.86rem; line-height: 1.7; color: var(--muted-foreground); }

.contact-card {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: var(--radius-lg); background: var(--brand-deep);
  padding: 1.5rem; color: #fff;
}
@media (min-width: 1024px) { .contact-card { position: sticky; top: 7rem; } }
.contact-card .label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: hsl(0 0% 100% / 0.85);
}
.contact-card .phone {
  display: block; margin-top: 0.5rem;
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; line-height: 1.2;
}
.contact-card ul { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.85rem; color: hsl(0 0% 100% / 0.9); }
.contact-card li { display: flex; align-items: flex-start; gap: 0.625rem; }
.contact-card li svg { margin-top: 0.15rem; flex-shrink: 0; color: hsl(0 0% 100% / 0.75); }
.contact-card__actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; }
.contact-card__actions .btn { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--brand-deep); color: #fff; }
.footer__grid {
  display: grid; gap: 2.5rem; padding-block: 3.5rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer p.desc { margin-top: 1.25rem; max-width: 20rem; font-size: 0.86rem; line-height: 1.7; color: hsl(0 0% 100% / 0.85); }
.footer__social { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; }
.footer__social a {
  display: flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center;
  border-radius: 999px; background: hsl(0 0% 100% / 0.1);
  transition: background-color 0.2s;
}
.footer__social a:hover { background: hsl(0 0% 100% / 0.2); }
.footer h3 {
  font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
}
.footer ul.links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.footer ul.links a { font-size: 0.86rem; color: hsl(0 0% 100% / 0.85); transition: color 0.2s; }
.footer ul.links a:hover { color: #fff; }
.footer ul.contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.86rem; color: hsl(0 0% 100% / 0.85); }
.footer ul.contact li { display: flex; gap: 0.625rem; }
.footer ul.contact svg { margin-top: 0.15rem; flex-shrink: 0; color: hsl(0 0% 100% / 0.8); }
.footer ul.contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid hsl(0 0% 100% / 0.1); }
.footer__bottom .wrap {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-block: 1.25rem; font-size: 0.76rem; color: hsl(0 0% 100% / 0.8);
}
@media (min-width: 768px) {
  .footer__bottom .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer__bottom p:last-child { max-width: 42rem; text-align: right; }
}

/* Floating contact buttons */
.fab-stack {
  position: fixed; right: 0.75rem; bottom: 1.25rem; z-index: 30;
  display: flex; flex-direction: column; gap: 0.625rem;
}
@media (min-width: 768px) { .fab-stack { right: 1.25rem; gap: 0.75rem; } }
.fab {
  display: flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center;
  border-radius: 999px; color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
  animation: fabIn 0.5s var(--ease) both;
}
@media (min-width: 768px) { .fab { height: 3rem; width: 3rem; } }
.fab:hover { transform: scale(1.08); }
.fab--yt { background: #ff0000; }
.fab--zalo { background: #0068ff; font-family: var(--font-heading); font-size: 0.78rem; font-weight: 800; }
.fab--phone { background: #e11d48; }

/* ==========================================================================
   Page header (sub pages)
   ========================================================================== */
.pagehead { background: var(--brand-soft); }
.pagehead__inner { padding-block: 2rem; }
@media (min-width: 768px) { .pagehead__inner { padding-block: 2.75rem; } }
.breadcrumb {
  display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap;
  font-size: 0.76rem; font-weight: 500; color: var(--muted-foreground);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--foreground); }
.breadcrumb .accent { color: var(--primary); }
.pagehead h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
}
.pagehead p {
  margin-top: 0.5rem; max-width: 42rem;
  font-size: 0.9rem; line-height: 1.7; color: var(--muted-foreground);
}

/* ==========================================================================
   Product listing toolbar
   ========================================================================== */
.toolbar {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: #fff; padding: 0.75rem;
}
@media (min-width: 768px) { .toolbar { padding: 1rem; } }
.toolbar__row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) {
  .toolbar__row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.searchbox { position: relative; width: 100%; }
@media (min-width: 768px) { .searchbox { max-width: 24rem; } }
.searchbox svg.ico {
  position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground);
}
.searchbox input {
  width: 100%; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; padding: 0.625rem 2.25rem 0.625rem 2.25rem;
  font-size: 0.86rem; outline: 0; transition: border-color 0.2s;
}
.searchbox input:focus { border-color: var(--primary); }
.searchbox .clear {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-foreground);
}
.searchbox .clear:hover { color: var(--foreground); }

.sortbox { display: flex; align-items: center; gap: 0.5rem; }
.sortbox > svg { color: var(--muted-foreground); flex-shrink: 0; }
.sortbox span { font-size: 0.8rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.sortbox select {
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  padding: 0.625rem 0.75rem; font-size: 0.83rem; font-weight: 600;
  outline: 0; cursor: pointer;
}
.sortbox select:focus { border-color: var(--primary); }

.chips {
  display: flex; gap: 0.5rem; overflow-x: auto;
  margin-top: 0.75rem; padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border);
  padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 700;
  color: hsl(158 20% 12% / 0.75);
  transition: all 0.2s;
}
.chip:hover { border-color: hsl(142 100% 20% / 0.5); color: var(--primary); }
.chip.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }

.result-count { margin-top: 1.25rem; font-size: 0.82rem; font-weight: 500; color: var(--muted-foreground); }
.result-count b { color: var(--foreground); }

.empty {
  margin-top: 4rem; border-radius: var(--radius-lg);
  border: 1px dashed var(--border); padding: 4rem 1.5rem; text-align: center;
}
.empty h2 { font-size: 1.1rem; font-weight: 800; }
.empty p { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted-foreground); }
.empty .btn { margin-top: 1.25rem; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pd { display: grid; gap: 2rem; padding-block: 2rem; }
@media (min-width: 768px) { .pd { padding-block: 3rem; } }
@media (min-width: 1024px) { .pd { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.pd__gallery { min-width: 0; }
.pd__main {
  overflow: hidden; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: #fff;
}
.pd__main img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.pd__thumbs { margin-top: 0.75rem; display: flex; gap: 0.625rem; }
.pd__thumb {
  width: 5rem; overflow: hidden; border-radius: 0.5rem;
  border: 2px solid transparent; opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.pd__thumb img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.pd__thumb:hover { opacity: 1; }
.pd__thumb.is-active { border-color: var(--primary); opacity: 1; }

.pd__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; }
.pd h1 { margin-top: 0.75rem; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.1rem); line-height: 1.2; }
.pd__short { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.75; color: var(--muted-foreground); }

.pricebox {
  margin-top: 1.25rem; border-radius: var(--radius-lg);
  background: var(--brand-soft); padding: 1rem;
}
.pricebox__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.625rem; }
.pricebox .price { font-size: 1.7rem; }
.pricebox .unit { font-size: 0.8rem; color: var(--muted-foreground); }
.pricebox .note { margin-top: 0.375rem; font-size: 0.78rem; color: var(--muted-foreground); }

.pd__highlights { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pd__highlights li {
  display: flex; gap: 0.625rem; font-size: 0.86rem; color: hsl(158 20% 12% / 0.85);
}
.pd__highlights svg { margin-top: 0.15rem; flex-shrink: 0; color: var(--primary); }

.qty {
  display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border);
}
.qty button {
  display: flex; height: 2.75rem; width: 2.5rem; align-items: center; justify-content: center;
  color: hsl(158 20% 12% / 0.7);
  transition: color 0.2s;
}
.qty button:hover { color: var(--primary); }
.qty button:first-child { border-radius: 999px 0 0 999px; }
.qty button:last-child { border-radius: 0 999px 999px 0; }
.qty span { width: 2.25rem; text-align: center; font-size: 0.92rem; font-weight: 700; }

.pd__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.pd__actions .btn-add { flex: 1; min-width: 11rem; padding-block: 0.9rem; }
.pd__actions .btn-add.is-added { background: var(--brand-deep); }

.pd__trust {
  margin-top: 1.5rem; display: grid; gap: 0.5rem;
  border-radius: var(--radius-lg); background: var(--brand-soft); padding: 1rem;
  font-size: 0.8rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .pd__trust { grid-template-columns: 1fr 1fr; } }
.pd__trust li { display: flex; gap: 0.5rem; }
.pd__trust svg { flex-shrink: 0; color: var(--primary); margin-top: 0.1rem; }

.pd__tabs { margin-top: 2.5rem; }
.tabbar { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabbar button {
  position: relative; flex-shrink: 0; padding: 0.75rem 1rem;
  font-size: 0.88rem; font-weight: 700; color: var(--muted-foreground);
  transition: color 0.2s;
}
.tabbar button.is-active { color: var(--primary); }
.tabbar button.is-active::after {
  content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: -1px;
  height: 2px; background: var(--primary); border-radius: 2px;
}
.tabpanel { padding-block: 1.5rem; display: flex; flex-direction: column; gap: 0.875rem; }
.tabpanel p { font-size: 0.9rem; line-height: 1.8; color: hsl(158 20% 12% / 0.82); }
.tabpanel h3 { font-size: 1rem; font-weight: 800; margin-top: 0.5rem; }
.tabpanel ul { display: flex; flex-direction: column; gap: 0.5rem; }
.tabpanel ul li {
  display: flex; gap: 0.625rem; font-size: 0.88rem; line-height: 1.7;
  color: hsl(158 20% 12% / 0.82);
}
.tabpanel ul li::before {
  content: ""; flex-shrink: 0; width: 0.375rem; height: 0.375rem; margin-top: 0.6rem;
  border-radius: 999px; background: var(--primary);
}
.tabpanel .notice {
  border-radius: var(--radius); border-left: 3px solid var(--primary);
  background: var(--brand-soft); padding: 0.875rem 1rem;
  font-size: 0.84rem; line-height: 1.7; color: var(--muted-foreground);
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 0.7rem 0; vertical-align: top; }
.spec-table td:first-child { width: 40%; color: var(--muted-foreground); font-weight: 500; }
.spec-table td:last-child { font-weight: 600; }

.related { border-top: 1px solid var(--border); background: hsl(145 45% 96% / 0.5); }

/* ==========================================================================
   Cart + checkout
   ========================================================================== */
.cart-layout { display: grid; gap: 1.5rem; padding-block: 2rem; }
@media (min-width: 768px) { .cart-layout { padding-block: 3rem; } }
@media (min-width: 1024px) {
  .cart-layout { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: start; }
  .cart-aside { position: sticky; top: 7rem; }
}

.cart-list { border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; padding-inline: 1rem; }
@media (min-width: 768px) { .cart-list { padding-inline: 1.25rem; } }

.cart-row { display: flex; gap: 0.875rem; border-bottom: 1px solid var(--border); padding-block: 1rem; }
.cart-row:last-child { border-bottom: 0; }
.cart-row__img {
  height: 5rem; width: 5rem; flex-shrink: 0; overflow: hidden;
  border-radius: 0.5rem; border: 1px solid var(--border); background: #fff;
}
@media (min-width: 640px) { .cart-row__img { height: 6rem; width: 6rem; } }
.cart-row__img img { height: 100%; width: 100%; object-fit: cover; }
.cart-row__main { flex: 1; min-width: 0; }
.cart-row__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.cart-row__name {
  display: block; font-family: var(--font-heading);
  font-size: 0.92rem; font-weight: 800; line-height: 1.35;
  transition: color 0.2s;
}
.cart-row__name:hover { color: var(--primary); }
.cart-row__unit { margin-top: 0.125rem; font-size: 0.76rem; color: var(--muted-foreground); }
.cart-row__price { margin-top: 0.25rem; font-size: 0.86rem; font-weight: 700; color: var(--primary); }
.cart-row__bottom {
  margin-top: 0.625rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.cart-row .qty button { height: 2rem; width: 2rem; }
.cart-row .qty span { width: 1.75rem; font-size: 0.86rem; }
.cart-row__remove {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.76rem; font-weight: 600; color: var(--muted-foreground);
  transition: color 0.2s;
}
.cart-row__remove:hover { color: var(--destructive); }

.cart-tools {
  margin-top: 1rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 0.75rem;
}
.cart-tools .back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.cart-tools .back:hover { text-decoration: underline; }
.cart-tools .freeship { font-size: 0.8rem; color: var(--muted-foreground); }
.cart-notes {
  margin-top: 1rem; display: grid; gap: 0.5rem;
  border-radius: var(--radius-lg); background: var(--brand-soft); padding: 1rem;
  font-size: 0.8rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .cart-notes { grid-template-columns: 1fr 1fr; } }
.cart-notes li { display: flex; gap: 0.5rem; }
.cart-notes svg { flex-shrink: 0; color: var(--primary); margin-top: 0.1rem; }

.checkout {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: #fff; padding: 1.25rem;
}
@media (min-width: 768px) { .checkout { padding: 1.5rem; } }
.checkout form { display: flex; flex-direction: column; gap: 1.25rem; }
.checkout h2 { font-size: 1.15rem; font-weight: 800; }
.checkout .sub { margin-top: 0.25rem; font-size: 0.8rem; color: var(--muted-foreground); }
.field-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label span {
  display: block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground);
}
.field input, .field textarea {
  margin-top: 0.375rem; width: 100%; border-radius: 0.5rem;
  border: 1px solid var(--border); background: #fff;
  padding: 0.625rem 0.875rem; font-size: 0.9rem; outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(142 100% 20% / 0.1);
}
.field input[aria-invalid="true"] { border-color: var(--destructive); }
.field .err { margin-top: 0.25rem; font-size: 0.74rem; font-weight: 600; color: var(--destructive); }

.pay-options { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.pay-option {
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 0.5rem; border: 1px solid var(--border);
  padding: 0.75rem 0.875rem; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.pay-option:hover { border-color: hsl(142 100% 20% / 0.4); }
.pay-option.is-active { border-color: var(--primary); background: var(--brand-soft); }
.pay-option input { accent-color: #006425; }
.pay-option span { font-size: 0.86rem; font-weight: 500; }

.bankinfo {
  margin-top: 0.625rem; border-radius: 0.5rem; background: var(--brand-soft);
  padding: 0.875rem; font-size: 0.8rem; line-height: 1.7; color: var(--muted-foreground);
}
.bankinfo p { display: flex; justify-content: space-between; gap: 1rem; }
.bankinfo p b { color: var(--foreground); text-align: right; font-weight: 700; }
.bankinfo .hint { margin-top: 0.25rem; display: block; font-style: italic; }

.totals { display: flex; flex-direction: column; gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1rem; font-size: 0.86rem; }
.totals__row { display: flex; justify-content: space-between; color: var(--muted-foreground); }
.totals__row.free { color: var(--primary); font-weight: 700; }
.totals__row--total {
  border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem;
  color: var(--foreground);
}
.totals__row--total span:first-child { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; }
.totals__row--total .price { font-size: 1.15rem; }
.ship-progress {
  border-radius: 0.5rem; background: var(--brand-soft); padding: 0.625rem 0.75rem;
  font-size: 0.78rem; color: var(--muted-foreground);
}
.ship-progress b { color: var(--primary); }
.ship-bar { margin-top: 0.4rem; height: 0.3rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.4s; }
.form-error { font-size: 0.82rem; font-weight: 500; color: var(--destructive); }
.form-note { text-align: center; font-size: 0.74rem; color: var(--muted-foreground); }

.order-success { padding-block: 3.5rem; }
@media (min-width: 768px) { .order-success { padding-block: 5rem; } }
.order-success__inner { margin-inline: auto; max-width: 42rem; text-align: center; }
.success-icon {
  margin-inline: auto; display: flex; height: 4rem; width: 4rem;
  align-items: center; justify-content: center;
  border-radius: 999px; background: var(--brand-soft); color: var(--primary);
}
.order-success h1 { margin-top: 1.25rem; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.2rem); }
.order-success .lede { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.7; color: var(--muted-foreground); }
.order-card {
  margin-top: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: #fff; padding: 1.25rem; text-align: left; font-size: 0.88rem;
}
.order-card__head {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
}
.order-card__head span:first-child { color: var(--muted-foreground); }
.order-card__head b { font-family: var(--font-heading); font-weight: 800; }
.order-card__items { display: flex; flex-direction: column; gap: 0.5rem; padding-block: 0.5rem; }
.order-card__items > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted-foreground); }
.order-card__total {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 0.75rem;
}
.order-card__total span:first-child { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; }
.order-card__total .price { font-size: 1.1rem; }
.order-bank {
  margin-top: 1rem; border-radius: 0.5rem; background: var(--brand-soft);
  padding: 1rem; font-size: 0.8rem; line-height: 1.7; color: var(--muted-foreground);
}
.order-bank b { display: block; margin-bottom: 0.25rem; color: var(--foreground); }
.order-success .btn { margin-top: 1.75rem; }

.empty-cart {
  border-radius: var(--radius-lg); border: 1px dashed var(--border);
  padding: 4rem 1.5rem; text-align: center;
}
.empty-cart__icon {
  margin-inline: auto; display: flex; height: 3.5rem; width: 3.5rem;
  align-items: center; justify-content: center;
  border-radius: 999px; background: var(--brand-soft); color: var(--primary);
}
.empty-cart h2 { margin-top: 1rem; font-size: 1.1rem; font-weight: 800; }
.empty-cart p { margin-top: 0.5rem; font-size: 0.86rem; color: var(--muted-foreground); }
.empty-cart .btn { margin-top: 1.5rem; }

/* ---------- Bottom mobile cart bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  display: none;
}

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 90;
  display: flex; flex-direction: column; gap: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none;
  width: min(24rem, calc(100% - 2rem));
}
.toast {
  display: flex; align-items: center; gap: 0.625rem;
  border-radius: 999px; background: var(--brand-deep); color: #fff;
  padding: 0.75rem 1.125rem; font-size: 0.84rem; font-weight: 600;
  box-shadow: var(--shadow-xl);
  animation: toastIn 0.3s var(--ease) both;
}
.toast svg { flex-shrink: 0; color: hsl(142 60% 70%); }
.toast.is-out { animation: toastOut 0.25s ease both; }
.toast a { margin-left: auto; font-weight: 800; color: #fff; text-decoration: underline; white-space: nowrap; }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fabIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .fab-stack, .footer, .mobile-bar, .hero__nav, .hero__dots { display: none !important; }
}
