:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --red: #111111;
  --red-dark: #000000;
  --orange: #8a8a8a;
  --white: #ffffff;
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e7e7e9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: #f2f2f2;
  color: #444444;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--border);
}
.announce strong { color: var(--red); }

/* ---------- Header ---------- */
header.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo-link { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-link img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.logo-link .name { color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.logo-link .name span { color: var(--red); }

.search-form {
  flex: 1;
  display: flex;
  max-width: 640px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-form select {
  background: #f2f2f3;
  color: var(--muted);
  border: none;
  padding: 0 10px;
  font-size: 13px;
  border-right: 1px solid var(--border);
  max-width: 130px;
}
.search-form input {
  flex: 1;
  border: none;
  padding: 11px 14px;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  min-width: 0;
}
.search-form input:focus { outline: none; }
.search-form button {
  background: var(--red);
  color: var(--white);
  padding: 0 20px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.search-form button:hover { background: var(--red-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  margin-left: auto;
}
.header-actions a {
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  transition: color .15s;
}
.header-actions a:hover { color: var(--red); }
.icon { font-size: 19px; line-height: 1; }
.badge-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

nav.main-nav {
  border-top: 1px solid var(--border);
}
nav.main-nav .wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
nav.main-nav a {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 14px;
  white-space: nowrap;
  transition: color .15s;
  display: block;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--red); }
nav.main-nav a.deals-link { color: var(--red); font-weight: 700; }

.menu-toggle {
  display: none;
  background: none;
  color: var(--text);
  font-size: 22px;
  padding: 4px 8px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f2f2f2 0%, #ffffff 60%);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 380px; height: 380px; background: var(--red); top: -100px; right: 10%; }
.hero::after { width: 340px; height: 340px; background: var(--orange); bottom: -140px; left: 5%; }

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 72px 20px 84px;
  display: grid;
  gap: 16px;
  max-width: 720px;
}
.hero .eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 16px;
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.18;
}
.hero h1 span { color: var(--red); }
.hero p {
  color: var(--muted);
  font-size: clamp(14.5px, 2vw, 17px);
  line-height: 1.65;
  max-width: 520px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

/* ---------- Section shell ---------- */
section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
}
.section-head h2 span { color: var(--red); }
.section-head .view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
}
.section-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover, .cat-card.active { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); border-color: var(--orange); }
.cat-card.active { background: #f2f2f2; }
.cat-card .cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-card .cat-name { font-weight: 700; font-size: 14px; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all .15s;
}
.tab-btn.active, .tab-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 24px;
  scrollbar-width: thin;
}
.scroll-row .product-card { min-width: 220px; }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }

.product-thumb {
  aspect-ratio: 1 / 0.85;
  background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--white);
  letter-spacing: .3px;
}
.ribbon.sale { background: var(--red); }
.ribbon.new { background: var(--orange); }
.ribbon.bestseller { background: var(--near-black); }

.thumb-link { display: block; width: 100%; height: 100%; }

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: color .15s, transform .15s;
}
.wishlist-btn.active { color: var(--red); }
.wishlist-btn:active { transform: scale(0.9); }

.product-body { padding: 14px 16px 18px; }
.card-stock { font-size: 11.5px; font-weight: 700; margin: -4px 0 10px; }
.card-stock.in { color: #17803d; }
.card-stock.limited { color: #b45309; }
.card-stock.out { color: #b91c1c; }
.card-stock.coming { color: #1d4ed8; }
.deals-section .card-stock.in { color: #4ade80; }
.deals-section .card-stock.limited { color: #fbbf24; }
.deals-section .card-stock.out { color: #f87171; }
.deals-section .card-stock.coming { color: #60a5fa; }
.product-name {
  font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-name:hover { color: var(--red); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-now { font-weight: 800; font-size: 16px; color: var(--red); }
.price-was { font-size: 12.5px; color: #a5a5a5; text-decoration: line-through; }
.add-cart, .notify-btn {
  width: 100%;
  background: var(--near-black);
  color: var(--white);
  padding: 9px 0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .15s;
}
.add-cart:hover { background: var(--red); }
.add-cart.added { background: var(--black); }

/* ---------- Deals / countdown ---------- */
.deals-section {
  background: linear-gradient(160deg, var(--near-black) 0%, #1f1f1f 100%);
  color: var(--white);
}
.deals-section .section-head h2, .deals-section .section-head h2 span { color: var(--white); }
.deals-section .section-sub { color: #b9b9b9; }
.deals-section .view-all { color: var(--orange); border-color: var(--orange); }
.countdown {
  display: flex;
  gap: 10px;
  align-items: center;
}
.countdown .cd-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 52px;
}
.countdown .cd-num { font-weight: 800; font-size: 18px; color: var(--orange); }
.countdown .cd-label { font-size: 10px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .5px; }
.ending-soon {
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--red);
  color: var(--red-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 6px 12px;
  border-radius: 999px;
  animation: pulse-soon 1.6s ease-in-out infinite;
}
@keyframes pulse-soon {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
.deals-section .product-card { background: #1c1c1c; border-color: rgba(255,255,255,0.1); }
.deals-section .product-name { color: var(--white); }
.deals-section .price-was { color: #7a7a7a; }
.countdown .cd-note { font-size: 12.5px; color: #b9b9b9; font-weight: 600; margin-right: 4px; }

/* ---------- Ending Soon ---------- */
.ending-soon-section { background: #f5f5f5; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stock-left {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .2px;
}

/* ---------- Coming Soon ---------- */
.coming-soon-section .product-card { opacity: 0.88; }
.coming-soon-section .product-thumb { filter: grayscale(65%); }
.ribbon.coming-soon { background: var(--muted); }
.notify-btn {
  background: transparent;
  border: 1.5px solid var(--near-black);
  color: var(--near-black);
}
.notify-btn:hover { background: var(--near-black); color: var(--white); }

/* ---------- Brand strip ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1 / 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.brand-chip:hover, .brand-chip.active { border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.brand-chip .brand-icon { height: 45%; width: auto; max-width: 70%; object-fit: contain; }
.brand-chip .brand-count { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.brand-chip.active .brand-count { color: var(--red); }
.brand-chip.coming-soon { border-style: dashed; opacity: .75; }

.filter-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.filter-note a { color: var(--red); font-weight: 700; }

/* ---------- Mobile bottom nav ---------- */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.mobile-tabbar .wrap {
  display: flex;
  justify-content: space-around;
  padding: 8px 10px;
}
.mobile-tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  position: relative;
}
.mobile-tabbar a .icon { font-size: 19px; }
.mobile-tabbar a.active { color: var(--red); }

/* ---------- Trust badges ---------- */
.trust-strip {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--text); }
.trust-item .t-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item .t-title { font-weight: 700; font-size: 13.5px; }
.trust-item .t-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

.empty-note { color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--black);
  color: #b9b9b9;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; letter-spacing: .3px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { font-size: 13.5px; color: #b9b9b9; transition: color .15s; }
.footer-grid a:hover { color: var(--orange); }
.footer-about .logo-link { margin-bottom: 14px; }
.footer-about .logo-link .name { color: var(--white); }
.footer-about .logo-link .name span { color: #d8d8d8; }
.footer-about p { font-size: 13.5px; line-height: 1.7; color: #9a9a9a; max-width: 320px; }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 12.5px;
  color: #7a7a7a;
}
.footer-bottom strong { color: #a5a5a5; }

/* ---------- Cart / Checkout ---------- */
.cart-page { padding: 40px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.cart-row img, .cart-row .cart-thumb-fallback {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.cart-row .cart-name { font-weight: 600; font-size: 14px; }
.cart-row .cart-unit-price { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-stepper button { background: #f2f2f3; width: 30px; height: 30px; font-size: 16px; font-weight: 700; }
.qty-stepper input { width: 40px; text-align: center; border: none; font-size: 14px; padding: 0; }
.cart-row-total { font-weight: 700; font-size: 14px; text-align: right; min-width: 90px; }
.cart-remove { color: var(--muted); font-size: 12px; text-decoration: underline; background: none; padding: 0; margin-top: 4px; }
.cart-remove:hover { color: var(--red); }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 90px;
}
.cart-summary h3 { font-size: 16px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.summary-row.total { color: var(--text); font-weight: 800; font-size: 16px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.cart-summary label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; }
.cart-summary input, .cart-summary textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; font-family: inherit;
}
.cart-summary textarea { min-height: 60px; }
.cart-summary .btn-primary { width: 100%; margin-top: 14px; }
.checkout-error { background: #fee2e2; color: #b91c1c; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.checkout-notice { background: #dcfce7; color: #15803d; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-top: 12px; }

.empty-cart { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-cart .btn-primary { margin-top: 18px; }

.order-confirm { max-width: 640px; margin: 40px auto; padding: 0 20px; }
.order-confirm .card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px;
}
.order-confirm h1 { font-size: 22px; margin-bottom: 8px; }
.order-confirm .order-id { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.order-confirm table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.order-confirm td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-confirm .wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #25d366; color: #fff; padding: 13px 20px; border-radius: 8px; font-weight: 700; font-size: 14px;
}
.order-confirm .wa-btn:hover { background: #1fb955; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--near-black);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Product detail page ---------- */
.product-detail-page { padding: 32px 0 80px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-main-image {
  aspect-ratio: 1 / 0.9; background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 80px;
  position: relative;
}
.pd-main-image:has(img) { cursor: zoom-in; }
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-image.zoomed { background-repeat: no-repeat; background-size: 200%; }
.pd-main-image.zoomed img { opacity: 0; }
@media (hover: none) { .pd-main-image.zoomed { background-image: none !important; } .pd-main-image.zoomed img { opacity: 1; } }
.pd-zoom-hint {
  position: absolute; bottom: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10,10,10,0.55); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; pointer-events: none;
}

.pd-lightbox {
  display: none; position: fixed; inset: 0; background: rgba(8,8,8,0.94); z-index: 500;
  align-items: center; justify-content: center; padding: 40px;
}
.pd-lightbox.open { display: flex; }
.pd-lightbox img {
  max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px;
  transform: scale(0.85); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.pd-lightbox.open img { transform: scale(1); opacity: 1; }
.pd-lightbox-close, .pd-lightbox-nav {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.pd-lightbox-close:hover, .pd-lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.pd-lightbox-close { top: 20px; right: 24px; width: 40px; height: 40px; font-size: 22px; }
.pd-lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.pd-lightbox-nav.prev { left: 20px; }
.pd-lightbox-nav.next { right: 20px; }
.pd-thumbs {
  display: flex; gap: 10px; margin-top: 12px; flex-wrap: nowrap;
  overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.pd-thumbs::-webkit-scrollbar { height: 6px; }
.pd-thumbs::-webkit-scrollbar-track { background: transparent; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.pd-thumbs::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.pd-thumbs button {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; padding: 0; flex-shrink: 0;
  border: 2px solid var(--border); background: #f0f0f0; cursor: pointer; scroll-snap-align: start;
}
.pd-thumbs button.active { border-color: var(--red); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-image-counter {
  position: absolute; bottom: 12px; left: 12px; background: rgba(10,10,10,0.6); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.pd-lightbox .pd-image-counter { top: 20px; left: 24px; bottom: auto; background: rgba(255,255,255,0.14); }
.pd-brand { color: var(--red); font-weight: 700; font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; margin-bottom: 6px; }
.pd-name { font-size: 26px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pd-price-now { font-size: 26px; font-weight: 800; color: var(--red); }
.pd-price-was { font-size: 15px; color: #a5a5a5; text-decoration: line-through; }
.pd-discount { background: var(--red); color: var(--white); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pd-stock { font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }
.pd-stock.in { color: #17803d; }
.pd-stock.in::before { content: "● "; }
.pd-stock.limited { color: #b45309; }
.pd-stock.limited::before { content: "▲ "; }
.pd-stock.out { color: #b91c1c; }
.pd-stock.out::before { content: "✕ "; }
.pd-stock.coming { color: #1d4ed8; }
.pd-stock.coming::before { content: "★ "; }
.pd-desc { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 24px; white-space: pre-line; }
.pd-actions { display: flex; align-items: center; gap: 12px; }
.pd-actions .qty-stepper { border: 1px solid var(--border); border-radius: 8px; }
.pd-actions .add-cart, .pd-actions .notify-btn { width: auto; padding: 12px 28px; }
.pd-actions .wishlist-btn { position: static; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--card); font-size: 18px; }
.pd-related { margin-top: 64px; }

/* ---------- Product listing / search page ---------- */
.listing-page { padding: 32px 0 80px; }
.listing-summary { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 8px; }
.listing-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; background: var(--card); }
.filter-chip a { color: var(--red); font-weight: 700; }
.listing-sort select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--card); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--near-black); color: var(--white); border-color: var(--near-black); }
.pagination .disabled { color: #c4c4c4; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 40px 0 80px; }
.legal-page .wrap { max-width: 800px; }
.legal-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.legal-page .legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.legal-page h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.legal-page p { font-size: 14.5px; line-height: 1.7; color: var(--near-black); margin-bottom: 12px; }
.legal-page ul { margin: 0 0 12px 20px; }
.legal-page li { font-size: 14.5px; line-height: 1.7; color: var(--near-black); margin-bottom: 6px; }
.legal-page a { color: var(--red); text-decoration: underline; }
.legal-page a.btn { text-decoration: none; }
.legal-page a.btn-primary { color: var(--white); }
.legal-page a.btn-outline { color: var(--text); }

/* ---------- Track order ---------- */
.track-page { padding: 40px 0 80px; }
.track-form-card {
  max-width: 480px; margin: 0 auto 32px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
}
.track-form-card label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; }
.track-form-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.track-form-card .btn-primary { width: 100%; margin-top: 16px; }
.track-result { max-width: 640px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.track-status { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; }
.track-status { border: 1.5px solid var(--text); }
.track-status.pending { background: #fff; color: var(--text); border-style: dashed; }
.track-status.confirmed { background: #fff; color: var(--text); border-style: solid; }
.track-status.delivered { background: var(--black); color: var(--white); border-color: var(--black); }
.track-status.cancelled { background: #f2f2f2; color: var(--muted); border-color: var(--border); }
.track-result table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.track-result td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.track-not-found { text-align: center; color: var(--muted); padding: 20px; }

/* ---------- Social login ---------- */
.social-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color .15s, background .15s;
}
.social-btn:hover { border-color: var(--red); background: var(--bg); }
.social-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (max-width: 860px) {
  .header-top { flex-wrap: wrap; gap: 12px; padding: 12px 0; }
  .logo-link img { width: 34px; height: 34px; }
  .logo-link .name { font-size: 15px; }
  .header-actions { order: 1; gap: 14px; }
  .header-actions a { flex-direction: row; gap: 4px; }
  .header-actions a .label { display: none; }
  .menu-toggle { order: 2; }
  .search-form { order: 3; max-width: none; width: 100%; flex-basis: 100%; }
  .menu-toggle { display: block; }
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; }
  nav.main-nav .wrap { flex-direction: column; align-items: flex-start; overflow-x: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-tabbar { display: block; }
  body { padding-bottom: 62px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-row { grid-template-columns: 50px 1fr; }
  .cart-row .qty-stepper, .cart-row .cart-row-total { grid-column: 2; justify-self: start; margin-top: 6px; }
  .pd-layout { grid-template-columns: 1fr; }
  .listing-toolbar { flex-direction: column; align-items: flex-start; }
  .pd-lightbox { padding: 16px; }
  .pd-lightbox-nav { width: 38px; height: 38px; font-size: 20px; }
  .pd-lightbox-nav.prev { left: 8px; }
  .pd-lightbox-nav.next { right: 8px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Trade-In promo (homepage) ---------- */
.trade-in-promo { background: var(--black); color: var(--white); padding: 40px 0; }
.ti-promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trade-in-promo h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.trade-in-promo h2 span { color: #d0d0d0; }
.trade-in-promo .section-sub { color: #b9b9b9; margin-top: 6px; max-width: 480px; }
.trade-in-promo .btn-primary { background: var(--white); color: var(--black); box-shadow: none; flex-shrink: 0; }
.trade-in-promo .btn-primary:hover { background: #e5e5e5; }

/* ---------- Trade-In ---------- */
.trade-in-page { padding: 40px 0 80px; }
.trade-in-form { max-width: 640px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 20px; }
.ti-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.ti-card h2 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.ti-card label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 4px; }
.ti-card label:first-of-type { margin-top: 0; }
.ti-card input[type=text], .ti-card input[type=number], .ti-card select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.ti-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ti-card .checkrow { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.ti-card .checkrow label { margin: 0; font-weight: 500; font-size: 13.5px; }
.ti-estimate-live, .trade-in-estimate {
  background: var(--black); color: var(--white); border-radius: 14px; padding: 24px; text-align: center;
}
.ti-estimate-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; color: #b9b9b9; }
.ti-estimate-range { font-size: 28px; font-weight: 800; margin: 6px 0; }
.ti-estimate-note { font-size: 12px; color: #9a9a9a; }
.trade-in-estimate { margin-bottom: 4px; }
@media (max-width: 480px) {
  .ti-grid-2 { grid-template-columns: 1fr; }
}
