/* =========================================================
   ແຟສັ່ນ ເສື້ອກີລາ — Design system
   ========================================================= */
@font-face {
  font-family: 'Phetsarath OT';
  src: url('../fonts/Phetsarath-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Phetsarath OT';
  src: url('../fonts/Phetsarath-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #070708;
  --ink: #0b0b0d;
  --surface: #101013;
  --surface-2: #16161a;
  --surface-3: #1e1e23;
  --surface-4: #27272e;
  --red: #e50914;
  --red-bright: #ff2338;
  --red-deep: #a5060d;
  --blue: #1f6bff;
  --blue-bright: #4c8aff;
  --yellow: #ffd60a;
  --yellow-soft: #ffe45c;
  --green: #19c37d;
  --text: #f7f7f8;
  --muted: #a2a2ad;
  --muted-2: #74747f;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.17);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --font: 'Phetsarath OT', 'Phetsarath', 'Noto Sans Lao', 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
body::selection { background: var(--yellow); color: #000; }
::selection { background: var(--yellow); color: #000; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.btn:disabled, .btn[disabled] { opacity: 0.46; transform: none; box-shadow: none; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.025em; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.text-red { color: var(--red-bright); }
.text-blue { color: var(--blue-bright); }
.text-yellow { color: var(--yellow); }
.text-green { color: var(--green); }
.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;
}
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.icon { flex: 0 0 auto; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 8px 22px rgba(229, 9, 20, 0.2);
}
.btn-red:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(31, 107, 255, 0.2);
}
.btn-blue:hover { background: var(--blue-bright); border-color: var(--blue-bright); }
.btn-yellow {
  background: var(--yellow);
  color: #070708;
  border-color: var(--yellow);
}
.btn-yellow:hover { background: var(--yellow-soft); border-color: var(--yellow-soft); }
.btn-dark {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--text);
}
.btn-dark:hover { background: var(--surface-4); border-color: var(--border-strong); }
.btn-outline-red {
  background: transparent;
  border-color: rgba(229, 9, 20, 0.55);
  color: #ff5360;
}
.btn-outline-red:hover { background: rgba(229, 9, 20, 0.12); border-color: var(--red); }
.btn-outline-blue {
  background: transparent;
  border-color: rgba(31, 107, 255, 0.55);
  color: #79a8ff;
}
.btn-outline-blue:hover { background: rgba(31, 107, 255, 0.12); border-color: var(--blue); }
.btn-white {
  background: #fff;
  color: #070708;
  border-color: #fff;
}
.btn-white:hover { background: #ececef; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon-sm { width: 42px; min-height: 42px; height: 42px; padding: 0; border-radius: 12px; }
.btn.is-bumped { animation: bump 0.4s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.16) rotate(-4deg); }
  100% { transform: scale(1); }
}

/* ---------- Top strip / header ---------- */
.top-strip {
  background: var(--red);
  color: #08080a;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
}
.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-message, .top-links, .top-links a { display: inline-flex; align-items: center; gap: 7px; }
.top-links { gap: 22px; font-weight: 700; }
.top-links a { opacity: 0.82; transition: opacity 0.18s; }
.top-links a:hover { opacity: 1; }
.site-header { background: #08080a; border-bottom: 1px solid var(--border); }
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 14px;
  background: var(--red);
  color: #070708;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 22px rgba(229, 9, 20, 0.28);
}
.brand-mark-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  top: 7px;
  right: 7px;
  border: 2px solid #070708;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.brand-copy strong em { color: var(--red-bright); font-style: normal; }
.brand-copy small { font-family: var(--font); font-size: 9px; letter-spacing: 0.23em; color: var(--muted-2); margin-top: 6px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.header-quick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 11px;
  border-radius: 10px;
  transition: color 0.18s, background 0.18s;
}
.header-quick:hover { color: #fff; background: var(--surface-2); }
.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px 9px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 4px;
  transition: background 0.18s, transform 0.18s;
}
.cart-pill:hover { background: var(--red-bright); transform: translateY(-1px); }
.cart-pill-icon { display: grid; place-items: center; }
.cart-pill-text { display: inline-flex; gap: 3px; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 8px;
  background: var(--yellow);
  color: #070708;
  font-size: 12px;
  font-weight: 700;
  padding-inline: 5px;
}
.main-nav { background: var(--red); position: relative; z-index: 20; }
.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 12px 19px 11px;
  color: #070708 !important;
  font-family: 'Phetsarath OT', 'Phetsarath', sans-serif;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45;
  border: 0;
  border-radius: 8px 8px 0 0;
  transition: background 0.18s ease;
}
.nav-link:hover { background: rgba(0, 0, 0, 0.1); }
.nav-link.is-active { background: rgba(0, 0, 0, 0.14); box-shadow: inset 0 -4px 0 #070708; }
.nav-icon { display: grid; place-items: center; }
.nav-icon .icon { width: 18px; height: 18px; }

/* ---------- Shared section elements ---------- */
.section { padding: 65px 0; }
.section-sm { padding: 40px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 9px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: 9px;
  background: var(--red);
}
.section-head .eyebrow::before { background: var(--red); }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}
.section-link:hover { color: #fff; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 35px 0 30px; }
.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: center;
  min-height: 560px;
  padding: 54px 58px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(229, 9, 20, 0.27), transparent 30%),
    radial-gradient(circle at 62% 108%, rgba(31, 107, 255, 0.14), transparent 35%),
    linear-gradient(135deg, #121216 0%, #09090b 58%, #10090a 100%);
}
.hero-card::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 130%;
  top: -15%;
  left: 56%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}
.hero-card::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 214, 10, 0.16);
  right: -90px;
  bottom: -90px;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: #08080a;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-kicker .icon { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 67px);
  line-height: 1.13;
  margin-bottom: 20px;
  max-width: 690px;
  color: #fff;
}
.hero h1 .accent { color: var(--yellow); display: inline-block; }
.hero h1 .accent-red { color: var(--red-bright); }
.hero-copy > p { color: var(--muted); font-size: 16px; max-width: 530px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 29px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-trust .icon { color: var(--yellow); }
.hero-stats { display: flex; gap: 30px; margin-top: 28px; }
.hero-stat strong { display: block; font-size: 22px; color: #fff; line-height: 1.2; }
.hero-stat span { color: var(--muted-2); font-size: 11px; }
.hero-showcase {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.showcase-ring {
  position: absolute;
  width: min(430px, 90%);
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: spinSlow 45s linear infinite;
}
.showcase-ring::before, .showcase-ring::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  top: 50%;
  left: -5px;
  box-shadow: 0 0 18px rgba(255, 214, 10, 0.6);
}
.showcase-ring::after { left: auto; right: -5px; background: var(--red-bright); }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.showcase-product {
  position: relative;
  width: min(365px, 86%);
  background: #121216;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
}
.showcase-product::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.showcase-image {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-3);
}
.showcase-image img { width: 100%; height: 100%; object-fit: cover; }
.showcase-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.7), transparent 55%);
}
.showcase-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}
.showcase-info { padding: 14px 6px 4px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.showcase-info h3 { font-size: 15px; margin: 0 0 3px; color: #fff; max-width: 210px; }
.showcase-info p { margin: 0; color: var(--yellow); font-size: 16px; font-weight: 700; }
.showcase-add {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
}
.floating-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 15, 18, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 13px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}
.floating-pill .pill-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.floating-pill strong { display: block; font-size: 12px; line-height: 1.3; white-space: nowrap; }
.floating-pill small { display: block; font-size: 10px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.pill-blue { top: 13%; left: -6%; }
.pill-blue .pill-icon { background: rgba(31, 107, 255, 0.18); color: #74a5ff; }
.pill-yellow { right: -5%; bottom: 14%; }
.pill-yellow .pill-icon { background: var(--yellow); color: #070708; }
.pill-red { left: 2%; bottom: 1%; }
.pill-red .pill-icon { background: rgba(229, 9, 20, 0.16); color: #ff515c; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(229, 9, 20, 0.13);
  color: var(--red-bright);
}
.feature-card:nth-child(2) .feature-icon { background: rgba(31, 107, 255, 0.14); color: #6a9dff; }
.feature-card:nth-child(3) .feature-icon { background: rgba(255, 214, 10, 0.16); color: var(--yellow); }
.feature-card:nth-child(4) .feature-icon { background: rgba(25, 195, 125, 0.13); color: var(--green); }
.feature-card h3 { font-size: 14px; margin-bottom: 3px; }
.feature-card p { font-size: 11px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Product filters ---------- */
.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.category-pills { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.category-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.18s ease;
}
.category-pill:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-2); }
.category-pill.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 13px;
  min-height: 42px;
  color: var(--muted-2);
  transition: border-color 0.18s;
}
.search-box:focus-within { border-color: var(--blue); }
.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
  min-width: 190px;
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--muted-2); }
.select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.select-box select {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  min-height: 42px;
  padding: 9px 38px 9px 13px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.select-box .icon { position: absolute; right: 11px; pointer-events: none; color: var(--muted); }
.results-note { font-size: 12px; color: var(--muted-2); }

/* ---------- Product grid / cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 19px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: var(--surface-3);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.product-card:hover .product-media img { transform: scale(1.055); }
.media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 7, 0.58), transparent 48%);
  pointer-events: none;
}
.product-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: var(--yellow);
  color: #08080a;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  z-index: 2;
}
.quick-view {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translate(-50%, 8px);
  background: rgba(7, 7, 8, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.product-card:hover .quick-view { opacity: 1; transform: translate(-50%, 0); }
.product-body { padding: 14px 14px 15px; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.product-category { font-size: 10px; font-weight: 700; color: var(--red-bright); letter-spacing: 0.02em; }
.stock-note { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 10px; }
.stock-note i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: block; }
.stock-note.is-low { color: #ffb2b6; }
.stock-note.is-low i { background: var(--red-bright); }
.product-name {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 13px;
  min-height: 45px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name a:hover { color: var(--yellow); }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price strong { display: block; color: #fff; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.price small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.product-card.is-sold-out .product-media img { filter: grayscale(0.9) brightness(0.7); }
.product-card.is-sold-out .product-badge { background: var(--red); color: #fff; }

/* ---------- Promo band ---------- */
.promo-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 35px;
  align-items: center;
  padding: 38px 42px;
  background:
    linear-gradient(120deg, rgba(229, 9, 20, 0.98), rgba(162, 5, 13, 0.96)),
    var(--red);
  border-radius: 26px;
  color: #070708;
  position: relative;
  overflow: hidden;
}
.promo-band::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 34px solid rgba(0, 0, 0, 0.09);
  border-radius: 50%;
  right: -60px;
  top: -90px;
}
.promo-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; max-width: 480px; }
.promo-band p { font-size: 14px; max-width: 500px; margin-bottom: 18px; opacity: 0.82; }
.promo-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.promo-steps { display: grid; gap: 10px; position: relative; z-index: 1; }
.promo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 13px;
  padding: 10px 13px;
}
.promo-step-num {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 700;
}
.promo-step strong { display: block; font-size: 13px; }
.promo-step span { display: block; font-size: 11px; opacity: 0.7; }

/* ---------- Category showcase ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 19px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.category-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.category-card::after {
  content: '';
  width: 90px;
  height: 90px;
  position: absolute;
  right: -30px;
  bottom: -35px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.11);
}
.category-card:nth-child(2)::after { background: rgba(31, 107, 255, 0.12); }
.category-card:nth-child(3)::after { background: rgba(255, 214, 10, 0.12); }
.category-card:nth-child(4)::after { background: rgba(25, 195, 125, 0.11); }
.category-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(229, 9, 20, 0.15);
  color: #ff5964;
  margin-bottom: 13px;
}
.category-card:nth-child(2) .category-icon { background: rgba(31, 107, 255, 0.15); color: #77a5ff; }
.category-card:nth-child(3) .category-icon { background: rgba(255, 214, 10, 0.14); color: var(--yellow); }
.category-card:nth-child(4) .category-icon { background: rgba(25, 195, 125, 0.13); color: #4cd99a; }
.category-card h3 { font-size: 15px; margin-bottom: 2px; }
.category-card p { color: var(--muted); font-size: 11px; margin: 0; }
.category-arrow { position: absolute; top: 18px; right: 16px; color: var(--muted-2); }

/* ---------- Page intro ---------- */
.page-intro {
  position: relative;
  padding: 34px 0 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(229, 9, 20, 0.18), transparent 30%),
    radial-gradient(circle at 65% 100%, rgba(31, 107, 255, 0.1), transparent 28%),
    #0b0b0d;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-intro::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--red);
}
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 11px; margin-bottom: 12px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: var(--muted-2); }
.page-intro h1 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 7px; }
.page-intro p { color: var(--muted); margin: 0; max-width: 680px; font-size: 14px; }
.intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Product details ---------- */
.product-page { padding: 34px 0 66px; }
.product-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 45px; align-items: start; }
.gallery-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
}
.gallery-main { aspect-ratio: 1 / 1; cursor: zoom-in; position: relative; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 35%);
  pointer-events: none;
}
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(8, 8, 9, 0.8);
  border: 1px solid var(--border-strong);
  color: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  backdrop-filter: blur(9px);
}
.gallery-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.gallery-strip { display: flex; gap: 9px; padding: 11px; border-top: 1px solid var(--border); }
.gallery-thumb {
  width: 65px;
  height: 65px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid transparent;
  opacity: 0.55;
  padding: 0;
  background: var(--surface-3);
}
.gallery-thumb.is-active { border-color: var(--red); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.details-copy { padding-top: 4px; }
.details-category { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.details-category .product-category { font-size: 12px; }
.sku { color: var(--muted-2); font-size: 10px; }
.product-title-lg { font-size: clamp(28px, 3.4vw, 43px); line-height: 1.3; margin-bottom: 12px; }
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.stars { color: var(--yellow); display: inline-flex; gap: 1px; }
.stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.price-row { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; margin-bottom: 20px; }
.price-main { font-size: clamp(28px, 3vw, 38px); color: var(--yellow); font-weight: 700; line-height: 1.2; }
.price-note { color: var(--muted); font-size: 12px; }
.details-description { color: var(--muted); font-size: 14px; line-height: 1.85; margin-bottom: 22px; max-width: 590px; }
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(25, 195, 125, 0.12);
  color: #60e3a4;
}
.stock-pill.is-low { background: rgba(255, 214, 10, 0.11); color: var(--yellow); }
.stock-pill.is-out { background: rgba(229, 9, 20, 0.13); color: #ff7780; }
.spec-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.spec-item { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.spec-item .icon { color: var(--yellow); }
.buy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 50px;
}
.qty-control button {
  width: 44px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background 0.18s, color 0.18s;
}
.qty-control button:hover { background: var(--surface-3); color: #fff; }
.qty-control input {
  width: 42px;
  height: 48px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.buy-row .btn { min-height: 50px; }
.product-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 22px; }
.perk-box {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.perk-box .icon { color: var(--yellow); margin-top: 2px; }
.perk-box strong { display: block; font-size: 11px; }
.perk-box span { display: block; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.accordion-toggle .icon { color: var(--muted); transition: transform 0.2s; }
.accordion-item.is-open .accordion-toggle .icon { transform: rotate(45deg); }
.accordion-panel { display: none; color: var(--muted); font-size: 12px; line-height: 1.8; padding: 0 0 15px; }
.accordion-item.is-open .accordion-panel { display: block; }
.related-section { margin-top: 66px; }

/* ---------- Cart ---------- */
.cart-page { padding: 38px 0 70px; min-height: 50vh; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; }
.cart-card { border: 1px solid var(--border); background: var(--surface); border-radius: 20px; overflow: hidden; }
.cart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-card-head h2 { font-size: 16px; margin: 0; }
.cart-card-head span { color: var(--muted); font-size: 12px; }
.cart-items { padding: 0; margin: 0; list-style: none; }
.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item-img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-3);
}
.cart-item-copy { min-width: 0; }
.cart-item.has-warning { background: rgba(229, 9, 20, 0.035); }
.cart-line-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: #ff8d94;
  font-size: 9px;
  font-weight: 700;
}
.cart-item-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-item-name a:hover { color: var(--yellow); }
.cart-item-meta { color: var(--muted-2); font-size: 10px; margin-bottom: 9px; }
.cart-item-price { color: var(--yellow); font-size: 14px; font-weight: 700; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-total { font-size: 15px; font-weight: 700; white-space: nowrap; }
.cart-item-actions { display: flex; align-items: center; gap: 8px; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
}
.cart-qty button {
  width: 30px;
  height: 31px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.cart-qty button:hover { background: var(--surface-3); color: #fff; }
.cart-qty span { min-width: 29px; text-align: center; font-size: 12px; font-weight: 700; }
.cart-remove {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  background: rgba(229, 9, 20, 0.07);
  color: #ff6973;
  display: grid;
  place-items: center;
}
.cart-remove:hover { background: rgba(229, 9, 20, 0.17); }
.shipping-progress {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(31, 107, 255, 0.055);
}
.shipping-progress p { font-size: 11px; margin: 0 0 7px; color: var(--muted); }
.shipping-progress p strong { color: var(--yellow); }
.progress-track { height: 6px; background: var(--surface-4); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--yellow)); border-radius: 99px; transition: width 0.35s ease; }
.cart-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); }
.summary-card {
  position: sticky;
  top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 21px;
  box-shadow: var(--shadow);
}
.summary-card h2 { font-size: 18px; margin-bottom: 16px; }
.summary-rows { display: grid; gap: 10px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 13px; }
.summary-row span:last-child { color: var(--text); font-weight: 700; }
.summary-row.is-free span:last-child { color: var(--green); }
.summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px dashed var(--border-strong);
  margin-top: 4px;
}
.summary-total span { color: var(--muted); font-size: 13px; }
.summary-total strong { color: var(--yellow); font-size: 25px; line-height: 1.2; }
.summary-actions { display: grid; gap: 9px; margin-top: 8px; }
.summary-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted-2); font-size: 10px; margin-top: 14px; line-height: 1.6; }
.summary-note .icon { color: var(--green); margin-top: 2px; }
.payment-mini { display: flex; align-items: center; gap: 7px; justify-content: center; color: var(--muted-2); font-size: 10px; margin-top: 13px; flex-wrap: wrap; }
.payment-mini span { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; }
.cart-empty-wrap { padding: 60px 20px; }
.cart-recommend { margin-top: 42px; }

/* ---------- Forms / checkout ---------- */
.checkout-page { padding: 36px 0 70px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; align-items: start; }
.checkout-stack { display: grid; gap: 17px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 19px; padding: 22px; }
.form-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.form-card-head .head-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.13);
  color: #ff6771;
  flex: 0 0 37px;
}
.form-card-head h2 { font-size: 17px; margin: 0; }
.form-card-head p { color: var(--muted-2); font-size: 10px; margin: 1px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 700; }
.field label .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 44px;
}
.field textarea { resize: vertical; min-height: 82px; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.12); }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12); }
.field .field-hint { color: var(--muted-2); font-size: 10px; }
.field .field-error { color: #ff747c; font-size: 10px; display: none; }
.field.has-error .field-error { display: block; }
.input-with-button { display: flex; gap: 7px; }
.input-with-button input { flex: 1; }
.input-with-button .btn { min-height: 44px; padding-inline: 12px; font-size: 11px; }

/* location */
.location-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.map-shell {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  min-height: 260px;
}
.map-shell iframe { width: 100%; height: 270px; border: 0; display: block; filter: grayscale(0.2) contrast(1.03); }
.map-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  background:
    radial-gradient(circle at 30% 30%, rgba(229, 9, 20, 0.15), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(31, 107, 255, 0.13), transparent 35%),
    #101013;
}
.map-placeholder .icon { color: var(--muted-2); margin-bottom: 9px; }
.map-placeholder p { font-size: 12px; color: var(--muted); max-width: 360px; margin: 0; }
.location-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}
.location-meta .icon { color: var(--yellow); margin-top: 2px; }
.map-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(7, 7, 8, 0.84);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 9px;
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.map-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  background: #fff;
  color: #070708;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* payment */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.payment-option { position: relative; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  height: 100%;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.payment-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.payment-icon {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.13);
  color: #ff6771;
}
.payment-option:nth-child(2) .payment-icon { background: rgba(31, 107, 255, 0.14); color: #77a5ff; }
.payment-card strong { display: block; font-size: 13px; line-height: 1.4; }
.payment-card span { display: block; color: var(--muted-2); font-size: 10px; margin-top: 2px; line-height: 1.5; }
.payment-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 17px;
  height: 17px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: transparent;
}
.payment-option input:checked + .payment-card { border-color: var(--red); background: rgba(229, 9, 20, 0.055); box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.22); }
.payment-option:nth-child(2) input:checked + .payment-card { border-color: var(--blue); background: rgba(31, 107, 255, 0.055); box-shadow: inset 0 0 0 1px rgba(31, 107, 255, 0.22); }
.payment-option input:checked + .payment-card .payment-check { border-color: var(--red); background: var(--red); color: #fff; }
.payment-option:nth-child(2) input:checked + .payment-card .payment-check { border-color: var(--blue); background: var(--blue); }
.payment-option input:focus-visible + .payment-card { outline: 2px solid var(--yellow); outline-offset: 2px; }
.payment-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(229, 9, 20, 0.07); border: 1px solid rgba(229, 9, 20, 0.16); border-radius: 9px; padding: 10px; color: var(--muted); font-size: 10px; margin-top: 12px; line-height: 1.6; }
.payment-note .icon { color: #ff7079; margin-top: 1px; }
.bank-panel { margin-top: 15px; border-top: 1px solid var(--border); padding-top: 16px; display: none; }
.bank-panel.is-active { display: block; animation: fadeIn 0.25s ease; }
.bank-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 17px; align-items: start; }
.qr-card { background: #fff; border-radius: 12px; padding: 9px; text-align: center; cursor: zoom-in; }
.qr-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.qr-card span { display: block; color: #222; font-size: 9px; font-weight: 700; margin-top: 5px; }
.bank-info { display: grid; gap: 7px; }
.bank-info-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--border); }
.bank-info-row span { color: var(--muted-2); font-size: 10px; }
.bank-info-row strong { font-size: 11px; text-align: right; }
.bank-amount {
  background: rgba(31, 107, 255, 0.09);
  border: 1px solid rgba(31, 107, 255, 0.22);
  border-radius: 9px;
  padding: 9px 11px;
  margin-bottom: 2px;
}
.bank-amount span { display: block; font-size: 9px; color: #77a5ff; }
.bank-amount strong { display: block; font-size: 18px; color: #fff; line-height: 1.3; }
.slip-upload {
  border: 1px dashed rgba(31, 107, 255, 0.42);
  background: rgba(31, 107, 255, 0.055);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  margin-top: 14px;
}
.slip-upload:hover { background: rgba(31, 107, 255, 0.1); border-color: var(--blue); }
.slip-upload .icon { color: #7ba9ff; margin-bottom: 4px; }
.slip-upload strong { display: block; font-size: 12px; }
.slip-upload span { display: block; color: var(--muted-2); font-size: 10px; }
.slip-upload input { display: none; }
.slip-preview { display: none; align-items: center; gap: 11px; margin-top: 10px; padding: 9px; border: 1px solid rgba(25, 195, 125, 0.25); background: rgba(25, 195, 125, 0.06); border-radius: 10px; }
.slip-preview.is-active { display: flex; }
.slip-preview img { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; }
.slip-preview div { min-width: 0; flex: 1; }
.slip-preview strong { display: block; font-size: 11px; color: #77e8b3; }
.slip-preview span { display: block; font-size: 9px; color: var(--muted-2); }
.slip-preview button { background: transparent; border: 0; color: var(--muted); padding: 4px; }
.bank-hint { color: var(--muted-2); font-size: 9px; margin-top: 7px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.checkbox-field input { width: 15px; height: 15px; accent-color: var(--red); margin-top: 2px; flex: 0 0 15px; }
.checkout-submit { margin-top: 4px; }
.checkout-submit .btn { width: 100%; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: 9px; margin-top: 9px; }
.checkout-summary .summary-items { display: grid; gap: 11px; margin-bottom: 15px; max-height: 280px; overflow: auto; padding-right: 3px; }
.summary-item { display: flex; gap: 10px; align-items: center; }
.summary-item-img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex: 0 0 50px; }
.summary-item-copy { min-width: 0; flex: 1; }
.summary-item-copy strong { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-copy span { display: block; color: var(--muted-2); font-size: 9px; }
.summary-item-price { font-size: 11px; font-weight: 700; white-space: nowrap; }

/* order success */
.success-view { max-width: 740px; margin: 0 auto; }
.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-align: center;
  padding: 32px;
  position: relative;
}
.success-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
}
.success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid rgba(25, 195, 125, 0.28);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.success-card h1 { font-size: 30px; margin-bottom: 7px; }
.success-card > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.order-code-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 19px;
}
.order-code-box span { color: var(--muted-2); font-size: 10px; }
.order-code-box strong { font-size: 17px; color: var(--yellow); letter-spacing: 0.04em; }
.success-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 21px; text-align: left; }
.success-detail { background: var(--ink); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.success-detail span { display: block; color: var(--muted-2); font-size: 9px; }
.success-detail strong { display: block; font-size: 12px; }
.success-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.success-tip { color: var(--muted-2); font-size: 10px; margin: 15px 0 0; }

/* ---------- Tracking ---------- */
.track-page { padding: 38px 0 70px; }
.track-wrap { max-width: 900px; margin: 0 auto; }
.track-search-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 23px; }
.track-search-card h2 { font-size: 18px; margin-bottom: 4px; }
.track-search-card > p { color: var(--muted); font-size: 12px; margin-bottom: 17px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.track-result { margin-top: 22px; }
.track-order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.track-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 21px; border-bottom: 1px solid var(--border); }
.track-order-head h2 { font-size: 20px; margin: 0 0 3px; }
.track-order-head p { font-size: 11px; color: var(--muted); margin: 0; }
.timeline { display: flex; padding: 22px; gap: 0; border-bottom: 1px solid var(--border); }
.timeline-step { flex: 1; position: relative; text-align: center; padding: 0 9px; }
.timeline-step::before { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--surface-4); }
.timeline-step:first-child::before { display: none; }
.timeline-step.is-done::before { background: var(--red); }
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border: 2px solid var(--surface-4);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}
.timeline-step.is-done .timeline-dot { background: var(--red); border-color: var(--red); color: #fff; }
.timeline-step.is-current .timeline-dot { box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.14); }
.timeline-step strong { display: block; font-size: 11px; }
.timeline-step span { display: block; color: var(--muted-2); font-size: 9px; }
.track-body { padding: 20px 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.track-info h3, .track-items h3 { font-size: 13px; color: var(--yellow); margin-bottom: 9px; }
.track-info p { display: flex; gap: 8px; color: var(--muted); font-size: 11px; margin: 0 0 8px; line-height: 1.6; }
.track-info p .icon { color: var(--muted-2); margin-top: 2px; }
.track-item-row { display: flex; gap: 9px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.track-item-row:last-child { border-bottom: 0; }
.track-item-row img { width: 37px; height: 37px; border-radius: 6px; object-fit: cover; }
.track-item-row div { flex: 1; min-width: 0; }
.track-item-row strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item-row span { display: block; font-size: 9px; color: var(--muted-2); }
.track-item-row b { font-size: 10px; white-space: nowrap; }
.track-total { display: flex; justify-content: space-between; padding-top: 9px; font-size: 13px; font-weight: 700; }
.track-total span:last-child { color: var(--yellow); }
.track-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 6px; }
.track-map iframe { width: 100%; height: 190px; border: 0; display: block; }
.track-help { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; background: var(--ink); border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.track-help .btn { min-height: 36px; padding: 7px 12px; font-size: 11px; }

/* ---------- Status pills ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-preparing { color: var(--yellow); background: rgba(255, 214, 10, 0.1); border: 1px solid rgba(255, 214, 10, 0.2); }
.status-shipping { color: #78a7ff; background: rgba(31, 107, 255, 0.11); border: 1px solid rgba(31, 107, 255, 0.2); }
.status-delivered { color: #62e5a7; background: rgba(25, 195, 125, 0.1); border: 1px solid rgba(25, 195, 125, 0.2); }
.payment-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.payment-pill .icon { color: var(--yellow); }

/* ---------- Empty / toast / modals ---------- */
.empty-state {
  text-align: center;
  padding: 55px 25px;
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
}
.empty-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  background: rgba(229, 9, 20, 0.09);
  border: 1px solid rgba(229, 9, 20, 0.18);
  color: #ff5964;
}
.empty-state h3 { font-size: 19px; margin-bottom: 5px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 390px; margin: 0 auto 17px; }
.empty-state .btn { margin-inline: 3px; }
.toast-container {
  position: fixed;
  z-index: 1500;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  max-width: min(370px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #17171b;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--green);
  color: #fff;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease;
}
.toast-error { border-left-color: var(--red); }
.toast-warning { border-left-color: var(--yellow); }
.toast-icon { color: var(--green); margin-top: 1px; }
.toast-error .toast-icon { color: var(--red-bright); }
.toast-warning .toast-icon { color: var(--yellow); }
.toast-close { margin-left: auto; background: transparent; border: 0; color: var(--muted-2); padding: 0; }
.toast.is-leaving { animation: toastOut 0.23s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(9px) scale(0.98); } }
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fadeIn 0.18s ease;
}
.modal-overlay.is-closing { animation: fadeOut 0.17s ease forwards; }
.modal {
  width: min(100%, 620px);
  max-height: 89vh;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 19px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.62);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-wide { width: min(100%, 880px); }
.modal-head {
  user-select: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--border);
  background: #0c0c0f;
}
.modal-head .eyebrow { margin-bottom: 3px; font-size: 9px; }
.modal-head h3 { margin: 0; font-size: 19px; }
.modal-close { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: 0 0 34px; }
.modal-close:hover { color: #fff; background: var(--surface-3); }
.modal-body { padding: 21px; overflow-y: auto; }
.confirm-modal { width: min(100%, 410px); padding: 27px; text-align: center; }
.confirm-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(229, 9, 20, 0.12); color: #ff626c; border: 1px solid rgba(229, 9, 20, 0.22); }
.confirm-icon-blue { background: rgba(31, 107, 255, 0.12); color: #7ba9ff; border-color: rgba(31, 107, 255, 0.24); }
.confirm-modal h3 { font-size: 20px; margin-bottom: 5px; }
.confirm-modal p { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.confirm-actions { display: flex; justify-content: center; gap: 9px; }
.confirm-actions .btn { min-width: 110px; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  animation: fadeIn 0.2s ease;
  cursor: zoom-out;
}
.image-lightbox img { max-width: min(90vw, 1000px); max-height: 80vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); cursor: default; }
.image-lightbox p { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; display: grid; place-items: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 35px; background: #0a0a0c; border-top: 4px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr 1.1fr; gap: 40px; padding: 48px 0 42px; }
.footer-brand p { color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 320px; margin: 17px 0; }
.footer-brand .brand-copy strong { font-size: 20px; }
.footer-brand .brand-mark { width: 43px; height: 43px; flex-basis: 43px; font-size: 26px; border-radius: 12px; }
.social-row { display: flex; gap: 7px; }
.social-row a { width: 33px; height: 33px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.social-row a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-col h4 { color: var(--yellow); font-size: 12px; letter-spacing: 0.06em; margin: 0 0 7px; }
.footer-col a { color: var(--muted); font-size: 11px; }
.footer-col a:hover { color: #fff; }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 11px; margin: 0 0 9px; line-height: 1.6; }
.footer-contact p .icon { color: var(--red-bright); margin-top: 1px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding: 14px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 15px; color: var(--muted-2); font-size: 9px; }

/* =========================================================
   Admin
   ========================================================= */
.admin-body { background: #08080a; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.login-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 20%, rgba(229, 9, 20, 0.32), transparent 32%),
    radial-gradient(circle at 80% 80%, rgba(31, 107, 255, 0.13), transparent 34%),
    #0a0a0c;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}
.login-art::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -190px;
  bottom: -130px;
}
.login-art::after {
  content: '';
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.12;
  right: 50px;
  top: 100px;
  filter: blur(4px);
}
.login-art .brand { position: relative; z-index: 1; }
.login-art-copy { position: relative; z-index: 1; max-width: 540px; }
.login-art-copy .eyebrow { color: var(--yellow); }
.login-art-copy h1 { font-size: clamp(42px, 5vw, 70px); line-height: 1.12; margin-bottom: 18px; }
.login-art-copy h1 span { color: var(--yellow); }
.login-art-copy p { color: var(--muted); font-size: 14px; max-width: 420px; }
.login-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.login-point { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.login-point .icon { color: var(--yellow); }
.login-art-foot { position: relative; z-index: 1; display: flex; gap: 22px; color: var(--muted-2); font-size: 10px; }
.login-panel-wrap { display: flex; align-items: center; justify-content: center; padding: 38px; }
.login-panel { width: min(100%, 395px); }
.login-panel .mobile-brand { display: none; margin-bottom: 28px; }
.login-panel h2 { font-size: 30px; margin-bottom: 5px; }
.login-panel > p { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.login-form { display: grid; gap: 13px; }
.login-form .btn { width: 100%; margin-top: 3px; }
.login-hint { display: flex; align-items: flex-start; gap: 9px; background: rgba(31, 107, 255, 0.075); border: 1px solid rgba(31, 107, 255, 0.2); border-radius: 10px; padding: 10px 12px; color: #9bbdff; font-size: 10px; line-height: 1.6; margin-top: 17px; }
.login-hint .icon { margin-top: 1px; }
.login-hint strong { color: #fff; }
.login-back { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; margin-top: 21px; }
.login-back:hover { color: #fff; }
.login-version { color: var(--muted-2); font-size: 9px; margin-top: 35px; text-align: center; }

.admin-topbar { background: #0a0a0c; border-bottom: 1px solid var(--border); }
.admin-topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-topbar .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 23px; border-radius: 10px; }
.admin-topbar .brand-copy strong { font-size: 17px; }
.admin-topbar .brand-copy small { font-size: 8px; margin-top: 3px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 7px; }
.admin-user { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; padding-right: 6px; }
.admin-user .avatar { width: 27px; height: 27px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.admin-tabs { background: var(--red); }
.admin-tabs-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs-inner::-webkit-scrollbar { display: none; }
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #070708;
  padding: 11px 17px 10px;
  font-family: 'Phetsarath OT', 'Phetsarath', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  flex: 0 0 auto;
}
.admin-tab:hover { background: rgba(0, 0, 0, 0.1); }
.admin-tab.is-active { background: rgba(0, 0, 0, 0.14); box-shadow: inset 0 -4px 0 #070708; }
.admin-main { padding: 30px 0 60px; min-height: calc(100vh - 125px); }
.admin-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; flex-wrap: wrap; }
.admin-section-head h1 { font-size: 30px; margin: 0 0 3px; }
.admin-section-head p { color: var(--muted); font-size: 11px; margin: 0; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 16px; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 75px; height: 75px; border-radius: 50%; background: rgba(229, 9, 20, 0.07); right: -25px; bottom: -30px; }
.stat-card:nth-child(2)::after { background: rgba(31, 107, 255, 0.08); }
.stat-card:nth-child(3)::after { background: rgba(255, 214, 10, 0.08); }
.stat-card:nth-child(4)::after { background: rgba(25, 195, 125, 0.07); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.stat-icon { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; background: rgba(229, 9, 20, 0.12); color: #ff5d67; }
.stat-card:nth-child(2) .stat-icon { background: rgba(31, 107, 255, 0.13); color: #7aa9ff; }
.stat-card:nth-child(3) .stat-icon { background: rgba(255, 214, 10, 0.13); color: var(--yellow); }
.stat-card:nth-child(4) .stat-icon { background: rgba(25, 195, 125, 0.12); color: #60e2a4; }
.stat-label { color: var(--muted); font-size: 10px; }
.stat-value { font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.stat-sub { color: var(--muted-2); font-size: 9px; }
.admin-grid { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 15px; margin: 0; }
.panel-head a, .panel-head button { color: var(--yellow); font-size: 10px; font-weight: 700; border: 0; background: transparent; }
.panel-body { padding: 17px; }
.panel-body-flush { padding: 0; }
.chart-bars { height: 170px; display: flex; align-items: flex-end; gap: 9px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar-wrap { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.chart-bar { width: 100%; background: linear-gradient(to top, var(--red), #ff5b65); border-radius: 5px 5px 2px 2px; min-height: 3px; transition: height 0.4s ease; opacity: 0.85; }
.chart-col:nth-child(7) .chart-bar { background: linear-gradient(to top, var(--yellow), #ffe867); opacity: 1; }
.chart-label { color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.chart-value { color: var(--muted); font-size: 8px; }
.low-stock-list { display: grid; gap: 10px; }
.low-stock-row { display: flex; align-items: center; gap: 9px; }
.low-stock-row img { width: 38px; height: 38px; object-fit: cover; border-radius: 7px; }
.low-stock-copy { flex: 1; min-width: 0; }
.low-stock-copy strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.low-stock-copy span { display: block; color: var(--muted-2); font-size: 8px; }
.stock-pill-mini { font-size: 9px; color: var(--yellow); background: rgba(255, 214, 10, 0.1); border-radius: 5px; padding: 2px 6px; }
.stock-pill-mini.is-out { color: #ff7a83; background: rgba(229, 9, 20, 0.12); }

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th {
  text-align: left;
  padding: 11px 13px;
  color: var(--muted-2);
  background: #0c0c0f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); font-size: 11px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
.admin-table .cell-code { font-size: 10px; color: var(--yellow); font-weight: 700; white-space: nowrap; }
.admin-table .cell-muted { color: var(--muted-2); font-size: 9px; }
.admin-table .cell-strong { font-weight: 700; }
.admin-table .cell-amount { color: #fff; font-weight: 700; white-space: nowrap; }
.admin-table .cell-actions { white-space: nowrap; text-align: right; }
.table-customer { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.table-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); color: var(--yellow); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.table-customer strong { display: block; font-size: 10px; font-weight: 700; }
.table-customer span { display: block; color: var(--muted-2); font-size: 8px; }
.table-product { display: flex; align-items: center; gap: 9px; min-width: 180px; }
.table-product img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border); }
.table-product strong { display: block; font-size: 10px; font-weight: 700; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-product span { display: block; color: var(--muted-2); font-size: 8px; }
.icon-action {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--ink);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  margin-left: 3px;
  vertical-align: middle;
}
.icon-action:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-3); }
.icon-action.danger:hover { color: #ff6e77; border-color: rgba(229, 9, 20, 0.38); background: rgba(229, 9, 20, 0.09); }
.admin-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.admin-filters .search-box input { min-width: 200px; }
.admin-filters .select-box select { min-height: 39px; font-size: 11px; }
.admin-filters .search-box { min-height: 39px; }
.admin-empty { padding: 45px 20px; text-align: center; color: var(--muted); }
.admin-empty .icon { color: var(--muted-2); margin-bottom: 8px; }
.admin-empty p { font-size: 11px; margin: 0; }

.order-status-select {
  background: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 22px 5px 7px;
  outline: none;
  cursor: pointer;
}
.order-status-select:focus { border-color: var(--yellow); }

.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.detail-box { background: var(--ink); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.detail-box h4 { color: var(--yellow); font-size: 10px; margin-bottom: 8px; }
.detail-box p { display: flex; gap: 7px; color: var(--muted); font-size: 10px; margin: 0 0 6px; line-height: 1.6; }
.detail-box p:last-child { margin-bottom: 0; }
.detail-box p .icon { color: var(--muted-2); margin-top: 2px; }
.order-items-list { display: grid; gap: 7px; margin-top: 12px; }
.order-line { display: flex; align-items: center; gap: 9px; padding: 7px; border-bottom: 1px dashed var(--border); }
.order-line:last-child { border-bottom: 0; }
.order-line img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.order-line div { flex: 1; min-width: 0; }
.order-line strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-line span { display: block; color: var(--muted-2); font-size: 9px; }
.order-line b { font-size: 10px; white-space: nowrap; }
.order-total-box { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-top: 13px; }
.order-total-box span { font-size: 11px; color: var(--muted); }
.order-total-box strong { color: var(--yellow); font-size: 19px; }
.order-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-top: 12px; }
.order-map iframe { width: 100%; height: 195px; border: 0; display: block; }
.slip-box { background: #fff; border-radius: 9px; padding: 5px; display: inline-block; margin-top: 6px; }
.slip-box img { width: 95px; height: 95px; object-fit: cover; border-radius: 5px; cursor: zoom-in; }
.no-slip { color: var(--muted-2); font-size: 9px; border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px; text-align: center; margin-top: 6px; }
.order-actions-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.order-actions-row .left { display: flex; gap: 7px; }

/* admin product/product form */
.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.product-form-grid .full { grid-column: 1 / -1; }
.image-uploader {
  border: 1px dashed var(--border-strong);
  background: var(--ink);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.image-uploader:hover { border-color: var(--red); background: rgba(229, 9, 20, 0.035); }
.image-uploader input { display: none; }
.image-uploader .upload-placeholder .icon { color: var(--muted); margin-bottom: 2px; }
.image-uploader .upload-placeholder strong { display: block; font-size: 11px; }
.image-uploader .upload-placeholder span { display: block; color: var(--muted-2); font-size: 9px; }
.image-preview-wrap { display: none; align-items: center; gap: 12px; text-align: left; }
.image-preview-wrap.is-active { display: flex; }
.image-preview-wrap img { width: 78px; height: 78px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }
.image-preview-copy { flex: 1; }
.image-preview-copy strong { display: block; font-size: 11px; }
.image-preview-copy span { display: block; color: var(--muted-2); font-size: 9px; }
.image-preview-copy button { margin-top: 5px; border: 0; background: transparent; color: #ff6b74; font-size: 9px; padding: 0; }
.switch-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--ink); border: 1px solid var(--border); border-radius: 10px; }
.switch-field strong { display: block; font-size: 11px; }
.switch-field span { display: block; color: var(--muted-2); font-size: 9px; }
.switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-4); transition: background 0.18s; }
.switch-track::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform 0.18s; }
.switch input:checked + .switch-track { background: var(--red); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.settings-card h2 { font-size: 15px; margin-bottom: 2px; }
.settings-card > p { color: var(--muted); font-size: 10px; margin-bottom: 15px; }
.settings-card .form-grid { gap: 12px; }
.qr-setting { display: flex; align-items: center; gap: 13px; }
.qr-setting img { width: 105px; height: 105px; object-fit: contain; background: #fff; border-radius: 9px; padding: 5px; }
.qr-setting-copy { flex: 1; }
.qr-setting-copy p { color: var(--muted-2); font-size: 9px; margin: 4px 0 9px; line-height: 1.5; }
.danger-zone { border-color: rgba(229, 9, 20, 0.3); background: rgba(229, 9, 20, 0.035); }
.danger-zone h2 { color: #ff6d76; }
.settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* admin misc */
.admin-login-error { display: none; background: rgba(229, 9, 20, 0.1); border: 1px solid rgba(229, 9, 20, 0.3); color: #ff8d94; border-radius: 8px; padding: 8px 10px; font-size: 10px; }
.admin-login-error.is-visible { display: block; }
.admin-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(255, 214, 10, 0.06); border: 1px solid rgba(255, 214, 10, 0.18); color: #e8d478; border-radius: 9px; padding: 9px 11px; font-size: 10px; line-height: 1.6; }
.admin-note .icon { margin-top: 1px; }
.admin-panel { animation: adminPanelIn 0.22s ease; }
@keyframes adminPanelIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.pay-cod { color: var(--yellow); background: rgba(255, 214, 10, 0.1); border: 1px solid rgba(255, 214, 10, 0.2); }
.pay-bank { color: #78a7ff; background: rgba(31, 107, 255, 0.11); border: 1px solid rgba(31, 107, 255, 0.22); }
.detail-box a { color: #fff; font-weight: 700; }
.detail-box a:hover { color: var(--yellow); }
.detail-box .status-pill { display: inline-flex; vertical-align: middle; }
.order-detail-grid .detail-box { min-width: 0; }

/* misc utilities */
.divider { height: 1px; background: var(--border); margin: 15px 0; }
.loading-dots { display: inline-flex; gap: 4px; }
.loading-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.loading-dots i:nth-child(2) { animation-delay: 0.15s; }
.loading-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.3); } 70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { padding: 42px; gap: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 0.8fr 0.8fr; }
  .footer-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 13px 28px; }
  .footer-contact h4 { width: 100%; margin-bottom: 0; }
  .footer-contact p { margin: 0; }
  .admin-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .hero-card { grid-template-columns: 1fr; min-height: auto; padding: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-showcase { min-height: 420px; margin-top: 6px; }
  .hero h1 { font-size: clamp(38px, 6.5vw, 58px); }
  .showcase-ring { width: min(370px, 80%); }
  .showcase-product { width: min(330px, 70%); }
  .pill-blue { left: 3%; }
  .pill-yellow { right: 2%; }
  .product-layout { gap: 30px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .checkout-summary { order: -1; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-band { grid-template-columns: 1fr; }
  .login-view { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel-wrap { min-height: 100vh; padding: 30px; }
  .login-panel .mobile-brand { display: inline-flex; }
  .admin-tab { font-size: 17px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--container)); }
  .top-strip { font-size: 10px; }
  .top-links { display: none; }
  .top-strip-inner { justify-content: center; }
  .header-inner { min-height: 72px; gap: 12px; }
  .header-quick { display: none; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; font-size: 26px; border-radius: 12px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 8px; }
  .cart-pill { padding: 8px 9px 8px 11px; font-size: 12px; }
  .cart-pill-text { display: none; }
  .cart-count { min-width: 21px; height: 21px; font-size: 11px; }
  .nav-link { font-size: 18px !important; padding: 10px 12px 9px; }
  .nav-icon .icon { width: 16px; height: 16px; }
  .section { padding: 47px 0; }
  .hero { padding: 21px 0 20px; }
  .hero-card { padding: 29px 22px; border-radius: 24px; gap: 16px; }
  .hero-kicker { font-size: 10px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(35px, 10vw, 50px); }
  .hero-copy > p { font-size: 13px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: 11px 16px; margin-top: 22px; padding-top: 17px; }
  .hero-stats { gap: 20px; }
  .hero-showcase { min-height: 380px; }
  .showcase-product { width: min(300px, 88%); }
  .showcase-image { height: 210px; }
  .floating-pill { padding: 7px 9px; border-radius: 10px; }
  .floating-pill .pill-icon { width: 27px; height: 27px; border-radius: 7px; }
  .floating-pill strong { font-size: 10px; }
  .floating-pill small { font-size: 8px; }
  .pill-blue { top: 8%; left: 0; }
  .pill-yellow { right: 0; bottom: 7%; }
  .pill-red { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 20px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .product-body { padding: 11px; }
  .product-name { font-size: 13px; min-height: 39px; margin-bottom: 9px; }
  .product-media { aspect-ratio: 1 / 1; }
  .product-bottom { align-items: center; }
  .price strong { font-size: 15px; }
  .price small { display: none; }
  .product-topline { margin-bottom: 5px; }
  .stock-note { display: none; }
  .quick-view { display: none; }
  .btn-icon-sm { width: 35px; min-height: 35px; height: 35px; border-radius: 9px; }
  .product-category { font-size: 9px; }
  .feature-grid { grid-template-columns: 1fr; gap: 9px; }
  .feature-card { padding: 13px; }
  .promo-band { padding: 27px 22px; border-radius: 20px; gap: 22px; }
  .promo-band .btn { flex: 1 1 auto; }
  .category-grid { gap: 9px; }
  .category-card { padding: 14px; }
  .toolbar-right { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { min-width: 0; width: 100%; }
  .select-box { flex: 1; }
  .select-box select { width: 100%; }
  .product-page { padding-top: 22px; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .gallery-main { aspect-ratio: 1.12 / 1; }
  .product-title-lg { font-size: 29px; }
  .buy-row .btn { flex: 1 1 120px; }
  .product-perks { grid-template-columns: 1fr; }
  .perk-box { align-items: center; }
  .related-section { margin-top: 45px; }
  .cart-page { padding-top: 25px; }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr); padding: 13px 14px; gap: 11px; }
  .cart-item-img { width: 68px; height: 68px; }
  .cart-item-right { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
  .cart-item-total { font-size: 13px; }
  .cart-card-head, .shipping-progress, .cart-toolbar { padding-inline: 14px; }
  .summary-card { padding: 18px; }
  .checkout-page { padding-top: 24px; }
  .form-card { padding: 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .bank-layout { grid-template-columns: 1fr; }
  .qr-card { width: 180px; margin: 0 auto; }
  .map-shell iframe, .map-placeholder { height: 230px; min-height: 230px; }
  .success-card { padding: 24px 17px; }
  .success-details { grid-template-columns: 1fr; }
  .track-form { grid-template-columns: 1fr; }
  .track-body { grid-template-columns: 1fr; }
  .timeline { padding: 16px 8px; }
  .timeline-step strong { font-size: 9px; }
  .timeline-step span { font-size: 8px; }
  .timeline-dot { width: 29px; height: 29px; font-size: 10px; }
  .track-order-head { flex-direction: column; }
  .track-help { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 27px 22px; padding: 37px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { display: flex; grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
  .admin-main { padding-top: 21px; }
  .admin-section-head h1 { font-size: 25px; }
  .stat-grid { gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 21px; }
  .admin-tab { font-size: 16px; padding: 10px 12px 9px; }
  .admin-topbar .admin-user span:not(.avatar) { display: none; }
  .admin-topbar-actions .btn span { display: none; }
  .admin-topbar-actions .btn { padding-inline: 10px; min-height: 38px; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .product-form-grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 12px; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 15px 16px; }
  .admin-table { min-width: 720px; }
  .toast-container { right: 12px; bottom: 12px; }
  .login-panel-wrap { padding: 24px; }
  .login-panel h2 { font-size: 27px; }
}

@media (max-width: 420px) {
  .hero-card { padding: 24px 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { justify-content: space-between; }
  .product-grid { gap: 9px; }
  .product-body { padding: 9px; }
  .product-name { font-size: 12px; }
  .price strong { font-size: 14px; }
  .product-badge { font-size: 9px; padding: 3px 6px; }
  .cart-item { grid-template-columns: 57px minmax(0, 1fr); }
  .cart-item-img { width: 57px; height: 57px; }
  .cart-qty button { width: 27px; }
  .cart-qty span { min-width: 25px; }
  .cart-item-actions { gap: 5px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 11px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
