:root {
  --ink: #0b1220;
  --ink-soft: #172033;
  --paper: #f5f3ee;
  --surface: #ffffff;
  --line: #ddd9d0;
  --muted: #6c7280;
  --accent: #f05a28;
  --accent-dark: #c74217;
  --acid: #d7ff3f;
  --success: #18794e;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(11, 18, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  color: #fff;
  background: rgba(11, 18, 32, .94);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--acid);
  font-weight: 900;
  letter-spacing: -.06em;
  transform: skew(-7deg);
}
.brand strong { display: block; font-size: 17px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 2px; color: #9ba6ba; font-size: 9px; letter-spacing: .24em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn, .icon-btn {
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
}
.cart-count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-size: 12px;
  font-weight: 800;
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.mobile-only { display: none; }
.announcement {
  padding: 10px 4vw;
  color: #253100;
  background: var(--acid);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 5vw;
  align-items: center;
  padding: 72px 6vw 82px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(11,18,32,.96) 15%, rgba(23,32,51,.92) 52%, rgba(11,18,32,.8)),
    repeating-linear-gradient(100deg, transparent 0 78px, rgba(255,255,255,.04) 79px 80px);
}
.hero-copy { max-width: 720px; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 850;
}
.hero h1 span { color: var(--acid); }
.hero-text {
  max-width: 620px;
  margin: 28px 0;
  color: #b9c1d0;
  font-size: 16px;
  line-height: 1.8;
}
.primary-btn, .ghost-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.primary-btn {
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
}
.primary-btn:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
.primary-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ghost-btn {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.ghost-btn:hover { border-color: var(--ink); }
.full { width: 100%; }
.hero-panel {
  min-height: 390px;
  position: relative;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 30px 4px 30px 4px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -110px;
  right: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--acid), #91ad11 34%, #24340d 35% 46%, transparent 47%),
    repeating-radial-gradient(circle, transparent 0 14px, rgba(255,255,255,.18) 15px 16px);
  opacity: .95;
}
.hero-orbit {
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  transform: rotate(-18deg) scaleY(.45);
}
.hero-stat {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-stat strong { font-size: 25px; letter-spacing: -.04em; }
.hero-stat span { color: #aab4c6; font-size: 12px; }

.catalog-shell { padding: 72px 5vw 90px; }
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.catalog-heading h2, .drawer-header h2, .modal-card h2 { margin: 0; letter-spacing: -.045em; }
.catalog-heading h2 { font-size: clamp(34px, 5vw, 56px); }
.result-count { margin: 0; color: var(--muted); font-size: 13px; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(130px, .6fr)) auto;
  gap: 10px;
  margin-bottom: 32px;
}
.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.search-box span { color: var(--muted); font-size: 20px; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.toolbar select {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}
.toolbar .ghost-btn { min-height: 48px; background: transparent; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}
.product-card {
  min-width: 0;
  cursor: pointer;
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px 20px 4px 20px;
  background: #e8e4da;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.65,.2,1);
}
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(11,18,32,.82);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.product-badge.soldout { background: rgba(180,35,24,.9); }
.product-info { padding: 14px 2px 0; }
.product-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.product-price { font-size: 16px; font-weight: 850; }
.product-stock { color: var(--muted); font-size: 11px; }
.loading-card {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d7d1c5;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 20px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 5vw;
  color: #aeb7c6;
  background: var(--ink);
  font-size: 12px;
}
.site-footer a { color: var(--acid); text-decoration: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5,9,16,.72);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(100%, 860px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  position: relative;
  padding: 30px;
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.modal-close {
  position: sticky;
  top: 0;
  z-index: 4;
  float: right;
  width: 38px;
  height: 38px;
  margin: -14px -14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
}
.product-modal-card { width: min(100%, 1060px); padding: 20px; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 30px;
}
.product-gallery { min-width: 0; }
.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px 18px 4px 18px;
  background: #ddd8cd;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}
.gallery-thumbs button {
  flex: 0 0 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-details-pane { align-self: center; padding: 12px 12px 12px 0; }
.product-details-pane h2 { margin: 6px 0 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.08; }
.detail-meta { color: var(--muted); font-size: 13px; }
.detail-price { margin: 22px 0 8px; font-size: 28px; font-weight: 850; letter-spacing: -.04em; }
.detail-description { margin: 10px 0 24px; color: #4f5663; line-height: 1.75; white-space: pre-line; }
.option-label { display: block; margin: 18px 0 9px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-option {
  min-width: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.size-option.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.size-option:disabled { color: #aaa; text-decoration: line-through; cursor: not-allowed; background: #eeece7; }
.stock-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
.quantity-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.quantity-stepper { display: inline-grid; grid-template-columns: 36px 44px 36px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.quantity-stepper button { height: 36px; border: 0; background: #fff; }
.quantity-stepper span { height: 36px; display: grid; place-items: center; border-inline: 1px solid var(--line); font-weight: 700; }
.detail-add { margin-top: 20px; width: 100%; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5,9,16,.5);
  backdrop-filter: blur(3px);
}
.cart-drawer {
  width: min(440px, 100%);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(11,18,32,.16);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.22,.7,.2,1);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; gap: 16px; }
.drawer-header .icon-btn { color: var(--ink); background: transparent; border-color: var(--line); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px 0; }
.cart-empty { padding: 60px 10px;text-align:center;color:var(--muted); }
.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 86px; height: 104px; object-fit: cover; border-radius: 3px 12px 3px 12px; }
.cart-item h3 { margin: 2px 0 6px; font-size: 14px; line-height: 1.35; }
.cart-item p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.cart-item strong { font-size: 13px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: end; justify-content: space-between; }
.remove-item { border: 0; background: none; color: var(--muted); font-size: 12px; }
.mini-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mini-stepper button { width: 28px; height: 28px; border: 0; background: #fff; }
.mini-stepper span { min-width: 28px; text-align: center; font-size: 12px; }
.cart-summary { padding-top: 20px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 17px; }
.cart-summary p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }

.checkout-card { width: min(100%, 760px); }
.checkout-card h2, .success-card h2 { font-size: 34px; }
.checkout-card form { display: grid; gap: 14px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-card label { display: grid; gap: 7px; color: #464d5a; font-size: 12px; font-weight: 700; }
.checkout-card input, .checkout-card textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  resize: vertical;
}
.checkout-card input:focus, .checkout-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240,90,40,.1); }
.payment-fieldset { margin: 0; padding: 0; border: 0; }
.payment-fieldset legend { margin-bottom: 8px; color: #464d5a; font-size: 12px; font-weight: 700; }
.payment-options { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
}
.payment-option input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.turnstile-wrap { min-height: 1px; }
.order-total-line { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 18px; }
.form-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-error { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; }

.success-card { width: min(100%, 620px); text-align: center; }
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 34px;
  font-weight: 900;
}
.success-card > p { color: var(--muted); line-height: 1.7; }
.success-payment {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.success-payment p { margin: 0; line-height: 1.6; }
.success-payment img { width: 180px; height: 180px; object-fit: contain; margin: 0 auto; background: #fff; }
.success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translateX(-50%);
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1.4fr 1fr 1fr; }
  .toolbar select:nth-of-type(3), .toolbar .ghost-btn { grid-column: span 1; }
}
@media (max-width: 1100px) and (min-width: 821px) {
  .hero h1 { font-size: clamp(50px, 5.6vw, 62px); }
}
@media (max-width: 820px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .mobile-only { display: grid; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 20px 44px;
  }
  .hero h1 { font-size: clamp(46px, 13vw, 72px); }
  .hero-panel { min-height: 270px; }
  .catalog-shell { padding: 52px 16px 70px; }
  .catalog-heading { align-items: start; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .product-detail { grid-template-columns: 1fr; }
  .product-details-pane { padding: 0; }
  .product-modal-card { padding: 12px; }
}
@media (max-width: 520px) {
  .brand strong { font-size: 15px; }
  .cart-btn { padding-left: 14px; }
  .hero-text { font-size: 14px; }
  .hero-panel { min-height: 230px; }
  .hero-panel::before { width: 250px; height: 250px; top: -100px; }
  .catalog-heading { display: block; }
  .result-count { margin-top: 8px; }
  .toolbar { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .toolbar select, .toolbar .ghost-btn { grid-column: auto; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .product-stock { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal-card { max-height: 92vh; border-radius: 24px 24px 0 0; padding: 22px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer { display: block; text-align: center; }
  .site-footer a { display: inline-block; margin-top: 8px; }
}
