:root {
  --navy: #1c2340;
  --navy-deep: #12172b;
  --navy-soft: #2a3358;
  --gold: #c8a951;
  --gold-bright: #e0c36a;
  --gold-dim: #a8883a;
  --ink: #1b1f2a;
  --muted: #5b6173;
  --line: #e4e7ee;
  --paper: #f6f7fa;
  --white: #ffffff;
  --sale: #c0392b;
  --up: #1f9d55;
  --down: #d64545;
  --shadow: 0 10px 30px rgba(18, 23, 43, 0.08);
  --radius: 10px;
  --max: 1180px;
  --header-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans JP", "Noto Naskh Arabic", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* Top ticker */
.ticker {
  background: var(--navy-deep);
  color: #d7dceb;
  font-size: 12px;
  letter-spacing: .02em;
}
.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}
.spots {
  display: flex;
  gap: 22px;
  overflow: auto;
  scrollbar-width: none;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.spots::-webkit-scrollbar { display: none; }
.spot {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff;
}
.spot b { color: var(--gold-bright); font-weight: 700; }
.spot .chg.up { color: #7dffa6; }
.spot .chg.down { color: #ff8b8b; }
.ticker-cta { color: var(--gold); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.live-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(200,169,81,.45);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 99px;
}
.live-pill.on {
  background: rgba(31, 157, 85, .18);
  border-color: #7dffa6;
  color: #7dffa6;
}

/* Promo */
.promo {
  background: linear-gradient(90deg, #f3e7c0, #f7f1de 40%, #ead9a0);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.logo { width: 138px; height: auto; display: block; }
.search {
  display: flex;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid #cfd5e3;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.search.mobile { display: none; }
.search input {
  border: 0;
  outline: 0;
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
}
.search button {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.icon-btn {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  padding: 0;
  position: relative;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 99px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.lang {
  position: relative;
}
.lang-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 7px 10px;
  font-weight: 700;
  color: var(--navy);
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 180px;
  z-index: 20;
}
.lang.open .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
}
.lang-menu a:hover, .lang-menu a.active { background: var(--paper); color: var(--gold-dim); }
.menu-toggle { display: none; }

nav.main-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-list {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
}
.nav-list a {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--gold-dim); border-bottom-color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  background: #0b1020;
  overflow: hidden;
}
.hero-track {
  display: flex;
  width: 100%;
  transition: transform .55s ease;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  height: min(58vw, 460px);
  min-height: 280px;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,28,.72) 0%, rgba(10,14,28,.28) 42%, rgba(10,14,28,.08) 100%);
}
[dir="rtl"] .hero-slide::after {
  background: linear-gradient(270deg, rgba(10,14,28,.72) 0%, rgba(10,14,28,.28) 42%, rgba(10,14,28,.08) 100%);
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 88px;
  color: #fff;
  pointer-events: none;
  overflow: hidden;
}
.hero-copy > * { pointer-events: auto; max-width: min(520px, 100%); }
.eyebrow {
  color: var(--gold-bright);
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-copy h1, .hero-copy h2 {
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-copy p { margin: 0 0 20px; color: #e9edf7; font-size: 16px; max-width: 460px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  border: 0;
  border-radius: 3px;
  padding: 12px 22px;
  letter-spacing: .04em;
}
.btn:hover { background: var(--gold-bright); }
.btn.ghost.dark {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  width: 100%;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 18px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  resize: vertical;
}
.checkout-form { padding-top: 8px; overflow: auto; flex: 1; }
.checkout-actions { padding: 8px 18px 18px; }
.checkout-actions .btn { width: 100%; }
.checkout-success { padding: 36px 22px; text-align: center; }
.checkout-success h3 { color: var(--navy); margin: 0 0 10px; }
.account-card { grid-template-columns: 1fr; width: min(420px, 100%); }
.account-card .modal-info { padding-bottom: 28px; }
.account-card .field { margin-left: 0; margin-right: 0; }
.account-card .btn { width: 100%; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.filters button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
}
.filters button.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pay {
  border: 1px solid var(--line);
  margin: 0 18px 12px;
  padding: 12px 14px 4px;
  border-radius: 8px;
}
.pay legend {
  font-weight: 800;
  color: var(--navy);
  padding: 0 6px;
}
.pay-opt {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--navy);
  margin: 6px 0 2px;
  font-size: 14px;
}
.pay-hint {
  margin: 0 0 10px 24px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}
.pay .field, #card-fields .field { margin-left: 0; margin-right: 0; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field-row .field { margin: 0 0 12px; }
.pay-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.checkout-actions .pay-hint { margin: 0 0 12px; }
#order-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.order-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.order-row b { color: var(--navy); display: block; }
.order-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.hero-nav, .hero-dots {
  position: absolute;
  z-index: 20;
  pointer-events: auto;
}
.hero-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(12, 16, 32, .45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(6px);
}
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }
.hero-dots {
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.4);
  padding: 0;
}
.hero-dots button.on { background: var(--gold); }

section { padding: 48px 0; scroll-margin-top: 132px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: -.02em;
}
.section-head a { color: var(--gold-dim); font-weight: 700; font-size: 14px; }
.sub { color: var(--muted); margin: 6px 0 0; }

/* Categories */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 210px;
  box-shadow: var(--shadow);
}
.cat img { width: 100%; height: 210px; object-fit: cover; }
.cat span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(12,16,32,.86));
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
}

/* Products */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media {
  background: linear-gradient(#f3f5f9, #eef1f6);
  border-radius: 6px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.card-media img { width: 86%; height: 86%; object-fit: contain; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--sale);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: .04em;
}
.badge.gold { background: var(--navy); color: var(--gold); }
.card h3 { font-size: 14px; line-height: 1.35; margin: 0 0 8px; min-height: 38px; color: var(--navy); }
.aslow { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 20px; font-weight: 800; color: var(--navy); }
.price s { color: #9aa1b3; font-size: 13px; font-weight: 600; margin-left: 6px; }
.quote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 4px 0 12px;
  min-height: 32px;
}
.card-buy {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.card-buy .btn { width: auto; flex: 1; margin-top: 0; padding: 10px 12px; }
.card-buy .qty { flex: 0 0 auto; }
.card-buy .qty input {
  width: 36px;
  text-align: center;
  border: 0;
  font-weight: 700;
  color: var(--navy);
}

/* Promo banners */
.split {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 16px;
}
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 240px;
}
.banner img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.banner-copy {
  position: absolute;
  inset: auto 24px 24px 24px;
  color: #fff;
}
.banner-copy h3 { margin: 0 0 8px; font-size: 26px; }
.paper {
  background: var(--paper);
}
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
}
.tool h3 { margin: 0 0 8px; color: var(--navy); }
.tool p { margin: 0; color: var(--muted); }

.why {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.why img { border-radius: 10px; height: 340px; width: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.stat { background: var(--paper); padding: 14px; border-radius: 8px; }
.stat b { display: block; color: var(--navy); font-size: 22px; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }
.review p { margin: 0 0 12px; }
.review cite { color: var(--muted); font-style: normal; font-size: 13px; }

footer {
  background: var(--navy-deep);
  color: #c9d0e3;
  padding: 48px 0 20px;
  margin-top: 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
footer h4 { color: #fff; margin: 0 0 12px; }
footer a { display: block; padding: 4px 0; color: #c9d0e3; font-size: 14px; }
footer a:hover { color: var(--gold); }
.legal {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 12px;
  color: #8d95ab;
}

/* Drawers / modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 28, .55);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: .2s ease;
  z-index: 80;
}
.overlay.show { opacity: 1; pointer-events: auto; visibility: visible; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(12, 16, 32, .18);
  visibility: hidden;
}
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head, .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}
.drawer-body { padding: 16px 18px; overflow: auto; flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: #fff; }
.cart-foot { padding: 16px 18px; border-top: 1px solid var(--line); }
.totals { display: grid; gap: 8px; margin-bottom: 10px; font-size: 14px; color: var(--navy); }
.totals > div { display: flex; justify-content: space-between; }
.totals .due { font-weight: 800; font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.cart-foot .pay-hint { margin: 0 0 12px; }
.checkout-card {
  width: min(980px, 100%);
  grid-template-columns: 1.15fr .85fr;
  max-height: 92vh;
  overflow: hidden;
}
.checkout-pane { overflow: auto; }
.checkout-summary {
  background: var(--paper);
  padding: 22px 18px;
  border-left: 1px solid var(--line);
  overflow: auto;
}
.checkout-summary h3 { margin: 0 0 12px; color: var(--navy); }
.sum-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.checkout-card .checkout-form { padding-bottom: 18px; }
.checkout-card .field { margin-left: 18px; margin-right: 18px; }
.wire-box {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  background: var(--paper);
}
.wire-box h4 { margin: 0 0 8px; color: var(--navy); }
.wire-box p { margin: 6px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.copy {
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--navy);
}
.sparks { display: grid; gap: 10px; margin-top: 14px; }
.spark { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--navy); }
.spark svg { width: 100%; height: 36px; background: #f3f5f9; border-radius: 4px; }
.bid-form { display: grid; gap: 0; margin-top: 12px; }
.bid-form .field { margin: 0 0 10px; }
.bid-form .btn { width: 100%; }
.bid-result { margin-top: 12px; font-weight: 800; color: var(--navy); }
#shape-filters { margin-top: -12px; }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}
.modal.show { display: grid; pointer-events: auto; }
.modal-card {
  background: #fff;
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-card img { width: 100%; height: 100%; object-fit: contain; background: #f3f5f9; min-height: 320px; }
.modal-info { padding: 22px; }
.close {
  border: 0; background: none; font-size: 24px; line-height: 1; color: var(--navy);
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  transition: .2s ease;
  z-index: 120;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, #2a3358, #0e1324 55%);
  color: #fff;
  text-align: center;
  padding: 24px;
}
.gate img.logo { width: 180px; margin: 0 auto 18px; filter: brightness(0) invert(1); }
.coin {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3e0a6, #c8a951 45%, #8b6b24);
  box-shadow: inset 0 0 0 6px #d7b45a, 0 10px 30px rgba(0,0,0,.35);
  animation: spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.gate p { color: #c9d0e3; }

@media (max-width: 980px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .header-row .search { display: none; }
  .search.mobile { display: flex; margin: 0 16px 12px; max-width: none; width: calc(100% - 32px); }
  .cats, .grid, .tools, .reviews, .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .why, .modal-card, .checkout-card { grid-template-columns: 1fr; }
  .checkout-summary { border-left: 0; border-top: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
  nav.main-nav { display: none; }
  nav.main-nav.open { display: block; }
  .hero-slide { height: 58vw; min-height: 240px; }
}

@media (max-width: 640px) {
  .grid, .cats, .tools, .reviews, .foot-grid, .stats { grid-template-columns: 1fr; }
  .header-actions .hide-sm { display: none; }
  .hero-copy { padding: 22px 20px 40px; }
  .hero-copy h1, .hero-copy h2 { font-size: 28px; }
  .hero-copy p { font-size: 14px; }
  .hero-nav { display: none; }
  .hero-dots button { width: 11px; height: 11px; }
  section { padding: 32px 0; }
  .cat, .cat img { min-height: 180px; height: 180px; }
}

@media print {
  .ticker, .promo, .header, .hero, section, footer, .overlay, .drawer, .toast,
  #product-modal, #account-modal, .checkout-form, .checkout-summary, .checkout-actions, .close,
  .hero-nav, .hero-dots { display: none !important; }
  #checkout-modal.show { display: block !important; position: static; padding: 0; }
  .checkout-card { display: block; max-height: none; overflow: visible; box-shadow: none; }
  .checkout-success, .wire-box, .checkout-success * { visibility: visible; }
}
