/* ==========================================================================
   PepKing — design system
   ========================================================================== */

/* ===== Design tokens ===== */
:root {
  /* Neutrals (slate) */
  --c-50:  #f8fafc;
  --c-100: #f1f5f9;
  --c-200: #e6eaf0;
  --c-300: #cbd5e1;
  --c-400: #94a3b8;
  --c-500: #64748b;
  --c-600: #475569;
  --c-700: #334155;
  --c-800: #1e293b;
  --c-900: #0f172a;
  --c-950: #060b18;

  /* Brand — indigo */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;

  /* Accent — teal (highlights, in-stock, science cues) */
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: var(--c-50);
  --fg: var(--c-900);
  --muted: var(--c-500);
  --border: var(--c-200);
  --accent: var(--brand-600);
  --accent-hover: var(--brand-700);
  --surface: var(--c-50);

  --success: #16a34a;
  --danger: #dc2626;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(30, 41, 59, 0.18);
  --shadow-brand: 0 10px 30px -8px rgba(79, 70, 229, 0.45);

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "SF Mono", "Fira Code", ui-monospace, monospace;

  --max-w: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); color: var(--brand-800); }

/* ===== Layout ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; width: 100%; }
main { flex: 1 0 auto; padding: 2.5rem 0 4.5rem; }
section { margin-bottom: 3.5rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--c-900); }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin-bottom: 1.25rem; }
h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 0.75rem; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.section-head .link-more { font-weight: 600; font-size: 0.9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 0.85rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--brand-400, var(--brand-500)); border-radius: 2px; }

/* ===== Announcement bar ===== */
.announce {
  background: linear-gradient(90deg, var(--c-950), var(--brand-800));
  color: #e8ecff;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.announce .container {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem; text-align: center;
}
.announce span { display: inline-flex; align-items: center; gap: 0.4rem; }
.announce .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); }
@media (max-width: 640px) { .announce span:nth-child(n+3) { display: none; } }

/* ===== Nav ===== */
nav.site-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0.85rem 1.25rem; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--c-900); }
.logo:hover { color: var(--c-900); }
.logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.logo-text b { color: var(--brand-600); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links .nav-link { color: var(--c-700); font-weight: 500; font-size: 0.95rem; }
.nav-links .nav-link:hover { color: var(--brand-600); }
.nav-dropdown { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 0.25rem;
  list-style: none; cursor: pointer;
}
.nav-trigger::-webkit-details-marker { display: none; }
.nav-chevron { width: 15px; height: 15px; transition: transform 0.15s; }
.nav-dropdown[open] .nav-chevron,
.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: -0.9rem;
  min-width: 235px; padding: 0.45rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 120;
}
.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-link {
  display: block; padding: 0.58rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--c-700); font-size: 0.9rem; font-weight: 500;
}
.nav-dropdown-link:hover { background: var(--brand-50); color: var(--brand-700); }
.nav-dropdown-all {
  color: var(--c-900); font-weight: 700;
  border-bottom: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: 0.25rem;
}
.cart-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.92rem; color: var(--c-900);
  padding: 0.5rem 0.95rem; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.cart-link:hover { color: var(--brand-600); border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.cart-link svg { width: 17px; height: 17px; }
.cart-badge {
  background: var(--brand-600); color: #fff; border-radius: var(--radius-pill);
  padding: 0 0.4rem; font-size: 0.72rem; font-weight: 700;
  min-width: 1.25rem; height: 1.25rem; display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Mobile nav (hidden on desktop, revealed ≤768px) ===== */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--c-800); transition: border-color 0.15s, color 0.15s;
}
.nav-toggle:hover { border-color: var(--brand-300); color: var(--brand-600); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 1.25rem 1.25rem;
  z-index: 90;
}
.nav-menu.open { display: flex; }
.nav-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0.5rem; color: var(--c-800); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-menu-link:last-child { border-bottom: none; }
.nav-menu-link:hover { color: var(--brand-600); }

/* ===== Footer-bottom link polish ===== */
.footer-bottom a { color: var(--c-400); }
.footer-bottom a:hover { color: #fff; }

/* ===== Product — variant picker + price range ===== */
.variant-picker { display: flex; flex-direction: column; gap: 0.5rem; }
.variant-picker h3 { margin-bottom: 0; }
.size-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.size-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  min-width: 74px; padding: 0.5rem 0.85rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--c-700); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.size-chip:hover { border-color: var(--brand-300); color: var(--brand-700); }
.size-chip.selected {
  background: var(--brand-50); border-color: var(--brand-600); color: var(--brand-700);
  box-shadow: 0 0 0 1px var(--brand-600);
}
.size-chip-label { line-height: 1.1; }
.size-chip-price { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.size-chip.selected .size-chip-price { color: var(--brand-600); }
.price-range { color: var(--muted); font-size: 0.9rem; margin-top: -0.5rem; }

/* ===== Cart — inline qty stepper form ===== */
.cart-qty-form { display: inline-flex; }
.cart-emoji { font-size: 1.4rem; }
.category-emoji {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: var(--brand-50);
  color: transparent;
  overflow: hidden;
}
.category-emoji::before,
.category-emoji::after {
  content: "";
  position: absolute;
  border-color: var(--brand-600);
}
.category-emoji::before {
  width: 0.9rem;
  height: 1.05rem;
  bottom: 0.42rem;
  border: 2px solid var(--brand-600);
  border-top: 0;
  border-radius: 0 0 5px 5px;
}
.category-emoji::after {
  width: 0.5rem;
  height: 0.42rem;
  top: 0.43rem;
  border: 2px solid var(--brand-600);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

/* ===== Responsive nav (≤768px reveals hamburger menu) ===== */
@media (max-width: 768px) {
  .nav-links { gap: 0.6rem; }
  .nav-links .nav-link { display: none; }
  .nav-dropdown { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--c-950);
  color: var(--c-400);
  padding: 3rem 0 2rem;
  flex-shrink: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: var(--c-400); font-size: 0.9rem; max-width: 34ch; margin-top: 0.85rem; }
.footer-col h4 { font-family: var(--font-display); color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a, .footer-col li { color: var(--c-400); font-size: 0.9rem; line-height: 2; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--c-500);
}
.footer-disclaimer { max-width: 70ch; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--c-300); }
.breadcrumb .current { color: var(--c-700); font-weight: 500; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 360px at 88% -10%, rgba(45, 212, 191, 0.20), transparent 60%),
    radial-gradient(700px 420px at 0% 110%, rgba(99, 102, 241, 0.28), transparent 55%),
    linear-gradient(150deg, var(--c-950) 0%, #141c38 45%, var(--brand-800) 130%);
  color: #fff;
  padding: clamp(1.5rem, 0.9rem + 2.8vw, 2.5rem);
  margin-bottom: 2rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero .eyebrow { color: var(--teal-400); margin-bottom: 0.65rem; }
.hero .eyebrow::before { background: var(--teal-400); }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 1.15rem + 2.3vw, 2.55rem); margin-bottom: 0.8rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--teal-400), var(--brand-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: #c7d0ee; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem); max-width: 52ch; margin-bottom: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.25rem; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: 0.8rem; color: #9aa6d4; margin-top: 0.3rem; }

/* ===== Feature / trust strip ===== */
.feature-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: -1.5rem auto 3rem; position: relative; z-index: 2;
}
.feature {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.feature .ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
}
.feature .ic svg { width: 20px; height: 20px; }
.feature .ft { font-weight: 600; font-size: 0.92rem; color: var(--c-900); }
.feature .fs { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 860px) { .feature-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .feature-strip { grid-template-columns: 1fr; } }

/* ===== Category grid ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.category-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; color: var(--fg); background: var(--bg);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s; display: block;
}
.category-card::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, var(--brand-100), transparent 70%);
  opacity: 0.8; transition: transform 0.3s;
}
.category-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-300); color: var(--fg); transform: translateY(-2px); }
.category-card:hover::before { transform: scale(1.4); }
.category-card h2 { position: relative; margin-bottom: 0.35rem; }
.category-card .count { position: relative; display: block; color: var(--muted); font-size: 0.875rem; }
.category-card .cat-cta { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; color: var(--brand-600); font-weight: 600; font-size: 0.9rem; }

/* ===== Product grid + cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.35rem; }
.product-card {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; background: var(--bg);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-200); transform: translateY(-3px); }
.product-card a { color: var(--c-900); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); display: block; }
.card-img-wrap svg, .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .card-img-wrap svg, .product-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-tag {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  color: var(--teal-600); border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
}
.card-body { padding: 1rem 1.05rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.card-name { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.card-name:hover { color: var(--brand-600); }
.card-foot { margin-top: auto; padding-top: 0.85rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.card-price { color: var(--c-900); font-weight: 700; font-size: 1rem; font-family: var(--font-display); }
.card-price .from { font-size: 0.7rem; color: var(--muted); font-weight: 500; font-family: var(--font-sans); margin-right: 0.2rem; }
.card-add {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--border);
  background: var(--bg); color: var(--brand-600); display: grid; place-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.card-add:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.card-add svg { width: 16px; height: 16px; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; gap: 1.75rem; } }
.detail-media { position: sticky; top: 90px; }
.detail-img-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1 / 1; }
.detail-img-wrap svg, .detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-meta { display: flex; flex-direction: column; gap: 1rem; }
.product-meta h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); margin-bottom: 0; }
.product-brandline { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.85rem; margin-top: -0.4rem; }
.product-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--c-900); letter-spacing: -0.02em; }
.product-price .from { font-size: 0.85rem; color: var(--muted); font-weight: 500; font-family: var(--font-sans); margin-right: 0.35rem; }
.product-desc { color: var(--c-600); line-height: 1.7; }
.spec-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0.7rem 1rem; font-size: 0.9rem; }
.spec-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.spec-row:nth-child(odd) { background: var(--surface); }
.spec-row .k { color: var(--muted); font-weight: 500; }
.spec-row .v { color: var(--c-800); font-weight: 500; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-size: 0.78rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: var(--radius-sm); }
.country-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.65rem; max-width: 820px; margin-top: 1rem; }
.country-guide-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.72rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--c-800); background: var(--bg); box-shadow: var(--shadow-xs); font-weight: 700;
}
.country-guide-link:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.country-flag { width: 1.45rem; height: 1rem; flex: 0 0 auto; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
.buy-box { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.buy-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.stock-line { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; color: var(--teal-600); }
.stock-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; }
.qty-stepper input { width: 48px; border: none; text-align: center; padding: 0.55rem 0; font-weight: 600; }
.qty-stepper input:focus { box-shadow: none; outline: none; }
.qty-stepper button { width: 38px; padding: 0.5rem 0; background: var(--bg); border: none; color: var(--c-600); font-size: 1.05rem; line-height: 1; }
.qty-stepper button:hover { background: var(--surface); color: var(--brand-600); }
.detail-note { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-empty { text-align: center; padding: 4.5rem 1.5rem; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cart-empty .ic { width: 64px; height: 64px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--brand-50); color: var(--brand-500); display: grid; place-items: center; }
.cart-empty .ic svg { width: 30px; height: 30px; }
.cart-empty p { font-size: 1.1rem; color: var(--c-700); margin-bottom: 1.5rem; }
.cart-items { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
.cart-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.cart-item-img svg, .cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-main { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; color: var(--c-900); }
.cart-item-name:hover { color: var(--brand-600); }
.cart-item-unit { font-size: 0.82rem; color: var(--muted); }
.cart-item-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.cart-item-sub { font-weight: 700; font-family: var(--font-display); font-size: 1rem; }
.qty-form { display: inline-flex; align-items: center; gap: 0.4rem; }
.qty-input { width: 56px; padding: 0.35rem 0.4rem; border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; font-size: 0.9rem; font-weight: 600; }
.link-remove { font-size: 0.8rem; color: var(--muted); background: none; border: none; padding: 0; }
.link-remove:hover { color: var(--danger); text-decoration: underline; }

.cart-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--bg); box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cart-summary h2 { font-size: 1.05rem; margin-bottom: 1.1rem; }
.summary-line { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; font-size: 0.9rem; color: var(--c-600); gap: 0.5rem; }
.summary-line.grand { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; font-size: 1.15rem; font-weight: 700; color: var(--c-900); font-family: var(--font-display); }
.summary-name { flex: 1; }
.summary-qty { color: var(--muted); font-size: 0.8rem; }
.summary-price { white-space: nowrap; }
.cart-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 1.25rem; }
.pay-badges { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1rem; color: var(--muted); font-size: 0.78rem; }

/* legacy cart table fallback (unused but kept) */
.cart-total-amount { font-family: var(--font-display); font-weight: 700; color: var(--c-900); }

/* ===== Forms ===== */
.form-section { margin-bottom: 2rem; }
.form-section h2 { font-size: 1.1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.875rem; font-weight: 500; color: var(--c-700); }
.label-optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
input, select, textarea {
  padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; background: var(--bg); color: var(--fg); width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }
input[type="number"] { -moz-appearance: textfield; }
.field-error { color: var(--danger); font-size: 0.78rem; line-height: 1.35; }

/* ===== Checkout Layout ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; } }
.order-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; box-shadow: var(--shadow-sm); }
.order-summary h2 { font-size: 1rem; margin-bottom: 1rem; }

/* ===== Payment Page ===== */
.pay-page { max-width: 540px; margin: 0 auto; }
.pay-page h1 { text-align: center; font-size: 1.5rem; }
.pay-status-paid { text-align: center; padding: 2.5rem; }
.pay-status-paid .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.pay-status-expired { text-align: center; padding: 2.5rem; color: var(--muted); }
.pay-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 1.5rem; box-shadow: var(--shadow-sm); }
.pay-amount-wrap { text-align: center; margin: 1.25rem 0; }
.pay-amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--c-900); letter-spacing: -0.03em; line-height: 1.1; }
.pay-amount-label { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.pay-address-section { margin: 1.5rem 0; }
.pay-address-section label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.4rem; }
.pay-address-box { display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 0.75rem; }
.pay-address-text { font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all; flex: 1; color: var(--fg); }
.btn-copy { flex-shrink: 0; }
.qr-section { display: flex; flex-direction: column; align-items: center; margin: 1.5rem 0; gap: 0.5rem; }
.qr-section img { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem; background: #fff; }
.qr-caption { font-size: 0.8rem; color: var(--muted); }
.pay-timer { text-align: center; font-size: 0.9rem; color: var(--muted); margin: 0.75rem 0; }
.pay-timer strong { color: var(--fg); font-size: 1rem; }
.pay-status-msg { text-align: center; margin-top: 1rem; font-weight: 600; min-height: 1.5rem; }
.pay-status-msg.paid { color: var(--success); }
.pay-status-msg.expired { color: var(--danger); }
.pay-instructions { margin-top: 1.5rem; }
.pay-instructions h3 { font-size: 0.875rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.pay-instructions ol { list-style: decimal; padding-left: 1.4rem; }
.pay-instructions li { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }

/* ===== Alerts ===== */
.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-info { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-800); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s, border-color 0.15s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-700); color: #fff; }
.btn-secondary { background: var(--bg); color: var(--c-800); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--surface); color: var(--c-900); border-color: var(--c-300); }
.btn-ghost { background: transparent; color: var(--brand-600); padding: 0.45rem 0.7rem; font-size: 0.85rem; }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-wa { background: #25d366; color: #06311a; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7); }
.btn-wa:hover:not(:disabled) { background: #1fbe5b; color: #06311a; }
.btn-light { background: #fff; color: var(--c-900); }
.btn-light:hover:not(:disabled) { background: var(--c-100); color: var(--c-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== Utilities ===== */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; }
}
