:root {
  --black: #060606;
  --ink: #111111;
  --panel: #171717;
  --panel-2: #202020;
  --gold: #f4c21f;
  --gold-2: #ffe074;
  --paper: #fffaf0;
  --muted: #b9b19a;
  --line: rgba(244, 194, 31, .24);
  --soft-line: rgba(255, 255, 255, .1);
  --shadow: 0 26px 80px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(6, 6, 6, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  border: 2px solid var(--paper);
  font-family: Anton, Impact, sans-serif;
  font-size: 22px;
}
.brand strong { display: block; font-weight: 900; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.top-menu-wrap { position: relative; }
.more-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #15151f;
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.top-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: min(280px, 86vw);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(244, 194, 31, .35);
  border-radius: 8px;
  background: #101010;
  box-shadow: var(--shadow);
}
.top-menu[hidden] { display: none; }
.top-menu strong { color: var(--gold); }
.top-menu a, .top-menu span {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #e6dcc4;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.top-menu a:hover { background: var(--gold); color: var(--black); }
nav { display: flex; gap: 20px; font-weight: 900; font-size: 12px; text-transform: uppercase; }
nav a small { display: block; color: var(--muted); font-size: 11px; text-transform: none; }
nav a:hover { color: var(--gold); }
.top-search {
  flex: 1;
  max-width: 750px;
  display: grid;
  grid-template-columns: minmax(150px, 250px) minmax(180px, 1fr) 54px;
  align-items: stretch;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #15151f;
  overflow: hidden;
}
.top-search select, .top-search input, .search-button {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--soft-line);
  background: transparent;
  color: var(--paper);
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
}
.top-search input { color: #d8d0bf; font-weight: 700; }
.top-search input::placeholder { color: #908da0; }
.search-button { border-right: 0; cursor: pointer; font-size: 18px; }
.shop-nav {
  position: sticky;
  top: 75px;
  z-index: 19;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: #13131b;
  border-bottom: 1px solid var(--line);
}
.shop-nav a, .shop-tab {
  border: 0;
  background: transparent;
  color: #b9b2c2;
  font-weight: 900;
  cursor: pointer;
  padding: 5px 0;
}
.shop-tab.active, .shop-nav a:hover, .shop-tab:hover { color: var(--gold); }

.cart-button, .primary, .secondary, .add-btn, .icon-button, .save-order-btn, .mini-save, .mini-danger {
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  background: var(--gold);
  color: var(--black);
}
.cart-button b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
}

.hero {
  min-height: calc(100vh - 75px);
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(320px, 1.12fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 6vw, 82px) clamp(16px, 4vw, 56px) 40px;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 194, 31, .28), transparent 34%),
    linear-gradient(120deg, #060606 0%, #0e0e0e 54%, #1a170d 100%);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(70px, 12vw, 152px); line-height: .86; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: .95; }
h3 { margin: 0; }
.hero-copy p:not(.eyebrow), .section-copy {
  max-width: 660px;
  color: #ede4c8;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.primary, .secondary { padding: 14px 18px; }
.primary { background: var(--gold); color: var(--black); }
.secondary { background: rgba(255, 255, 255, .08); color: var(--paper); border: 1px solid var(--soft-line); }
.primary:hover, .cart-button:hover, .add-btn:hover, .save-order-btn:hover, .mini-save:hover { background: var(--gold-2); }

.hero-showcase {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
}
.hero-showcase img {
  width: 100%;
  height: min(68vh, 640px);
  min-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}
.hero-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(6, 6, 6, .78);
  backdrop-filter: blur(12px);
}
.hero-card span { color: var(--gold); font-weight: 900; text-transform: uppercase; font-size: 12px; }
.hero-card strong { font-size: clamp(22px, 3vw, 36px); text-transform: uppercase; }
.hero-card small { color: var(--muted); font-weight: 700; }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--gold);
  color: var(--black);
  border-block: 1px solid rgba(0, 0, 0, .25);
}
.strip span {
  padding: 15px 10px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  border-right: 1px solid rgba(0, 0, 0, .2);
}

.section {
  padding: 64px clamp(16px, 4vw, 56px);
}
.dark-band {
  background: #101010;
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(300px, 1.2fr);
  gap: 26px;
  align-items: start;
}
.client-box, .admin-panel, .product, .drawer-panel {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
}
.client-box { padding: 18px; }
.client-status {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #0b0b0b;
  color: var(--gold);
  font-weight: 900;
}
.client-form, .customer-fields, .admin-form, .seller-login-grid {
  display: grid;
  gap: 12px;
}
.order-track-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 14px;
}
.client-orders { display: grid; gap: 10px; }
.client-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #080808;
  border: 1px solid var(--soft-line);
}
.client-order strong, .client-order small { display: block; overflow-wrap: anywhere; }
.client-order small { color: var(--muted); line-height: 1.45; }
.client-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.client-form label:nth-child(7) { grid-column: 1 / -1; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product {
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.product.is-disabled { opacity: .58; }
.product.is-preorder { border-color: rgba(244, 194, 31, .5); }
.product-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #080808; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.product:hover .product-image img { transform: scale(1.045); }
.product-body { display: grid; gap: 10px; padding: 14px; }
.product-title { font-size: 16px; font-weight: 900; }
.style-row { display: flex; flex-wrap: wrap; gap: 7px; }
.style-chip, .status-pill, .promo-pill {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.style-chip { background: rgba(255, 255, 255, .08); color: #e8dfc3; }
.status-pill { background: rgba(244, 194, 31, .13); color: var(--gold); }
.status-pill.soldout { background: rgba(255, 255, 255, .08); color: var(--muted); }
.status-pill.preorder { background: rgba(244, 194, 31, .2); }
.promo-pill { background: var(--gold); color: var(--black); }
.product-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.price-stack { display: inline-flex; gap: 8px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.price { color: var(--gold); font-size: 20px; font-weight: 900; white-space: nowrap; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 800; }
.controls { display: grid; gap: 8px; }
.controls label { display: flex; gap: 8px; align-items: center; color: #eadfbd; font-size: 13px; }
.controls input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gold); }
.add-btn {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: var(--black);
}
.add-btn:disabled { background: #4d4d4d; color: #d3d3d3; cursor: not-allowed; }

.product-page[hidden] { display: none; }
.product-page {
  min-height: calc(100vh - 76px);
  background: #0d0d0d;
}
.back-shop { margin-bottom: 18px; }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(280px, 1.05fr);
  gap: 26px;
  align-items: start;
}
.detail-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #070707;
  border: 1px solid var(--soft-line);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--panel);
}
.detail-panel h2 { font-size: clamp(34px, 5vw, 70px); line-height: .92; }
.detail-price .price { font-size: 30px; }
.variant-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.variant-form .check-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eadfbd;
}
.variant-form .check-line input { width: 18px; min-height: 18px; accent-color: var(--gold); }
.variant-form .add-btn { grid-column: 1 / -1; }

label { color: var(--muted); font-size: 13px; font-weight: 700; }
input, select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #101010;
  color: var(--paper);
}
input[type="file"] { padding: 9px; }

.contact-section {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(280px, 1.25fr);
  gap: 24px;
  padding: 58px clamp(16px, 4vw, 56px);
  background: var(--gold);
  color: var(--black);
}
.contact-section .eyebrow { color: var(--black); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-grid a, .contact-grid > span {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 16px;
  border-radius: 8px;
  background: var(--black);
  color: var(--muted);
}
.contact-grid strong { color: var(--gold); font-size: clamp(16px, 2vw, 22px); overflow-wrap: anywhere; }
.contact-grid span span { text-transform: uppercase; font-size: 13px; font-weight: 900; }

.seller-section {
  padding: 64px clamp(16px, 4vw, 56px);
  background: #090909;
}
.seller-login-grid {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  margin-top: 18px;
}
.admin-error { min-height: 22px; color: var(--gold); font-weight: 900; }
.seller-dashboard[hidden] { display: none; }
.admin-layout {
  display: grid;
  gap: 22px;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.admin-tab {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #15151f;
  color: #bfb8c9;
  padding: 14px 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  min-height: 52px;
}
.admin-tab.active, .admin-tab:hover {
  background: var(--gold);
  color: var(--black);
}
.admin-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-panel[hidden] { display: none; }
.admin-panel { padding: 16px; }
.admin-panel h3 { margin: 0 0 14px; text-transform: uppercase; }
.admin-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}
.part-builder {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(244, 194, 31, .28);
  border-radius: 8px;
  background: rgba(244, 194, 31, .06);
}
.admin-form label:has([data-new-part]), .admin-form label:has([data-new-category]) {
  border-color: rgba(244, 194, 31, .35);
}
.admin-form.two-cols, .admin-form.compact-form { grid-template-columns: 1fr 1fr; }
.admin-form.compact-form .primary { grid-column: 1 / -1; }
.admin-wide { grid-column: 1 / -1; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.admin-stats div {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #080808;
  text-align: center;
}
.admin-stats span { color: #bcb3c7; font-weight: 800; }
.admin-stats strong { color: var(--gold); font-size: 34px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 110px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #080808;
  border: 1px solid var(--soft-line);
}
.admin-row strong { display: block; overflow-wrap: anywhere; }
.admin-row small { display: block; color: var(--muted); line-height: 1.45; }
.product-admin-list .edit-product-row {
  grid-template-columns: 62px minmax(0, 1fr) 150px 120px;
  align-items: start;
}
.product-admin-list img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.edit-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.detail-styles { margin: 12px 0; }
.admin-actions { display: grid; gap: 8px; }
.mini-save { padding: 11px 10px; background: var(--gold); color: var(--black); }
.mini-danger { padding: 11px 10px; background: #2b1111; color: #ffd8d8; border: 1px solid rgba(255, 255, 255, .12); }
.paypal-note, .order-delivery { color: var(--muted); font-size: 12px; line-height: 1.5; }
.tracking-status {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(244, 194, 31, .14);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.tracking-status.expediee, .tracking-status.terminee, .tracking-status.payee-paypal { background: rgba(76, 175, 80, .18); color: #9effa0; }
.tracking-status.annulee { background: rgba(255, 70, 70, .15); color: #ffb6b6; }
.save-status {
  margin: 12px 0 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(244, 194, 31, .14);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}
.save-status.warning {
  background: rgba(255, 255, 255, .07);
  color: #eadfbd;
}
.promo-admin-list { margin-top: 12px; }
.promo-admin-row { grid-template-columns: minmax(0, 1fr) auto 110px; }
.order-delivery { display: block; margin-top: 4px; color: var(--gold); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, .66);
}
.drawer.open { display: flex; justify-content: flex-end; }
.drawer-panel {
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  padding: 20px;
  border-radius: 0;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head h2 { font-size: 40px; }
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--black);
  font-size: 28px;
  line-height: 1;
}
.cart-items { display: grid; gap: 12px; }
.cart-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #101010;
  border: 1px solid var(--soft-line);
}
.cart-row img { width: 68px; height: 68px; object-fit: cover; border-radius: 6px; }
.cart-row h3 { margin: 0 0 4px; font-size: 14px; }
.cart-row p { margin: 0; color: var(--muted); font-size: 12px; }
.remove { border: 0; background: transparent; color: var(--gold); font-size: 24px; }
.cart-empty { display: none; color: var(--muted); padding: 26px 0; }
.cart-empty.visible { display: block; }
.cart-summary { display: grid; gap: 10px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-summary div { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary .total { color: var(--gold); font-size: 22px; font-weight: 900; }
.promo-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.promo-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.customer-fields { grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.customer-fields label:last-child { grid-column: 1 / -1; }
.save-order-btn {
  width: 100%;
  margin-bottom: 12px;
  padding: 13px;
  background: var(--paper);
  color: var(--black);
}

@media (max-width: 1120px) {
  .topbar { flex-wrap: wrap; }
  .top-search { order: 3; max-width: none; flex-basis: 100%; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .edit-fields { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
}
@media (max-width: 920px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-showcase { min-height: auto; }
  .split-section, .contact-section, .admin-layout, .admin-panels, .detail-layout { grid-template-columns: 1fr; }
  .admin-tabs { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .seller-login-grid, .admin-form, .admin-form.two-cols, .admin-form.compact-form { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .topbar { gap: 10px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .top-search { grid-template-columns: 1fr 44px; }
  .top-search select { grid-column: 1 / -1; border-bottom: 1px solid var(--soft-line); }
  .cart-button span { display: none; }
  h1 { font-size: clamp(58px, 19vw, 88px); }
  .hero-showcase img { min-height: 330px; height: 420px; }
  .strip, .grid, .client-form, .order-track-form, .client-order, .contact-grid, .customer-fields, .admin-row, .promo-admin-row, .product-admin-list .edit-product-row, .edit-fields { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .variant-form, .customer-fields { grid-template-columns: 1fr; }
  .variant-form .check-line, .variant-form .add-btn, .customer-fields label:last-child, .client-form label:nth-child(7) { grid-column: auto; }
}
