:root {
  --bg: #101229;
  --bg-2: #1d2142;
  --ink: #120d20;
  --card: #f2ead6;
  --card-2: #fff6df;
  --text: #fff7e2;
  --muted: #b9b6cf;
  --orange: #ff9438;
  --orange-2: #ffb35b;
  --cyan: #36dfff;
  --green: #31df67;
  --red: #ff5d4d;
  --violet: #8f5cff;
  --border: #0c0820;
  --panel: #1c2044;
  --panel-2: #272d5c;
  --shadow: 7px 7px 0 #09061a;
}

* { box-sizing: border-box; }

/* Author styles with an explicit `display` beat the browser's
   `[hidden] { display: none }`, so hidden sections would still render.
   This keeps the hidden attribute authoritative everywhere. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 13%, rgba(255, 234, 163, .2) 0 28px, transparent 30px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(135deg, #11142c 0%, #171936 48%, #21183a 100%);
  background-size: auto, 34px 34px, 34px 34px, auto;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
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: 18px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: #16112a;
  border-bottom: 4px solid #080518;
}

.brand, .nav, .actions, .hero-badges, .contact-actions, .checkout-steps {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
  letter-spacing: .2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #09061a;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border: 3px solid var(--border);
  box-shadow: 3px 3px 0 #070414;
}

.nav { gap: 8px; color: var(--muted); font-size: 14px; }
.nav a {
  padding: 10px 12px;
  border: 2px solid transparent;
}
.nav a:hover {
  color: var(--text);
  border-color: #342a58;
  background: #201b3a;
}

.nav-cta, .button, .cart-button, .text-link, .quantity-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 #080516;
  font-weight: 950;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.nav-cta, .button.ghost {
  padding: 0 18px;
  background: var(--panel-2);
}

.button.primary, .cart-button, .text-link {
  color: #10091d;
  background: var(--orange);
}

.button:hover, .nav-cta:hover, .cart-button:hover, .text-link:hover, .quantity-row button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #080516;
  filter: brightness(1.05);
}

.full { width: 100%; }

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
  padding: 64px 0 42px;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(690px, 100%);
  min-height: 280px;
  object-fit: cover;
  background: #fff;
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
  animation: floatHero 5.5s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: auto 10% 8% auto;
  width: 210px;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 148, 56, .38), transparent 68%);
  filter: blur(16px);
  z-index: -1;
}

.hero-card, .checkout-card, .stock-card, .info-list article, .faq details, .contacts, .panel {
  border: 4px solid var(--border);
  background: linear-gradient(180deg, #20254a, #171a38);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  min-width: 0;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(54,223,255,.13) 43%, transparent 62%);
  transform: translateX(-120%);
  animation: shimmer 4.8s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  position: relative;
  margin-bottom: 18px;
  max-width: 100%;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: .94;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
h3 { margin-bottom: 8px; }
.lead, .section-head p, .checkout-copy p, .info-list p, .faq p, .contacts p {
  color: var(--muted);
  line-height: 1.65;
}

.actions { gap: 12px; flex-wrap: wrap; margin: 26px 0; }
.hero-badges, .checkout-steps { gap: 10px; flex-wrap: wrap; }
.hero-badges span, .checkout-steps span {
  padding: 9px 12px;
  color: #ffeac1;
  background: #252b58;
  border: 2px solid #3b4377;
}

.section { padding: 54px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel { padding: 20px; }

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: #d8d2ef;
  font-weight: 850;
}

.form-grid input, .toolbar input, .toolbar select, .checkout-card input, .checkout-card select {
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  border: 3px solid var(--border);
  background: #242945;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.form-grid input:focus, .toolbar input:focus, .toolbar select:focus, .checkout-card input:focus, .checkout-card select:focus {
  border-color: var(--orange);
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.small {
  min-height: 38px;
  padding-inline: 14px;
}

.muted, .status-line { color: var(--muted); }
.status-line.error, .error-panel { color: #ffd5d1; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.stock-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stock-card {
  min-height: 150px;
  padding: 18px;
}

.stock-card img {
  width: 58px;
  height: 58px;
  border: 3px solid var(--border);
  object-fit: cover;
  margin-bottom: 14px;
  background: #fff;
}

.stock-card span { display: block; font-weight: 950; font-size: 20px; }
.stock-card strong { color: var(--muted); font-size: 14px; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.product-card::after {
  content: attr(data-brand);
  position: absolute;
  right: 12px;
  bottom: 88px;
  max-width: 78%;
  color: rgba(18, 13, 32, .07);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 950;
  line-height: .9;
  pointer-events: none;
  text-align: right;
  text-transform: uppercase;
}

.product-card-art {
  position: relative;
  height: 104px;
  overflow: hidden;
  background: #101431;
  border-bottom: 4px solid var(--border);
}

.product-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,13,32,.08), rgba(18,13,32,.46)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 1px, transparent 1px, transparent 7px);
  pointer-events: none;
}

.product-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.04);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .42);
}

.product-card.is-empty {
  filter: grayscale(.15);
  opacity: .82;
}

.product-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 4px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255,145,53,.18), transparent 48%),
    #262b58;
}

.product-brand-strip {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  color: #fff7e2;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .32);
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-brand-claude .product-brand-strip { background: linear-gradient(135deg, #ff6b4a, #ffb24c); }
.product-brand-chatgpt .product-brand-strip { background: linear-gradient(135deg, #0fbf86, #36dfff); color: #101431; }
.product-brand-gemini .product-brand-strip { background: linear-gradient(135deg, #5fd1ff, #9a5cff); }
.product-brand-grok .product-brand-strip { background: linear-gradient(135deg, #101318, #2f3546); }
.product-brand-cursor .product-brand-strip { background: linear-gradient(135deg, #101010, #545b68); }
.product-brand-default .product-brand-strip { background: linear-gradient(135deg, #2c3470, #36dfff); }

.product-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #101431;
  background: #fff7e2;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
  font-size: 18px;
  font-weight: 950;
}

.product-badge {
  position: static;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--orange);
  border: 3px solid var(--border);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}

.product-top {
  display: grid;
  gap: 4px;
}

.product-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.product-top span {
  color: #775f35;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-card p { margin: 0; }

.product-meta {
  margin-top: 2px;
  color: #7a6650;
}

.product-meta b {
  display: block;
  color: #d65316;
  font-size: 24px;
}

.product-meta small {
  font-weight: 850;
}

.product-short {
  position: relative;
  z-index: 1;
  color: #43364a;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  min-height: 57px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.stock-line {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  color: #1d2a16;
  background: #e0f3c7;
  border: 2px solid rgba(18,13,32,.22);
  font-weight: 900;
}

.stock-line.empty {
  color: #41100d;
  background: #ffd1c9;
}

.cart-button {
  width: 100%;
  margin-top: 2px;
  font-size: 14px;
}

.product-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.button:disabled,
.cart-button:disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.25);
}

.checkout-section {
  margin: 36px 0;
  padding: 28px;
  background: #191d3d;
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
}

.checkout-layout {
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 24px;
  align-items: start;
}

.checkout-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.checkout-card label {
  display: grid;
  gap: 8px;
  color: #d8d2ef;
  font-weight: 850;
}

.quantity-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) minmax(110px, 1.4fr);
  gap: 8px;
}

.quantity-row button {
  min-height: 44px;
  color: var(--text);
  background: #2c3470;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.checkbox-line input {
  width: auto;
  min-height: auto;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
  color: #fff7e2;
  border: 3px solid var(--border);
  background: #27305f;
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-methods label.is-selected {
  color: #120d20;
  background: var(--orange);
}

.payment-methods label.is-disabled {
  flex-wrap: wrap;
  color: #9aa0c4;
  background: #1d2244;
  border-color: #3a3f6b;
  cursor: not-allowed;
  opacity: .75;
}

.payment-methods label.is-disabled input {
  cursor: not-allowed;
}

.method-note {
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.quote-box, .checkout-result {
  padding: 14px;
  line-height: 1.55;
  border: 3px solid var(--border);
  background: #101431;
}

.quote-box { color: #eafaff; }
.checkout-result {
  color: #e6ffef;
  background: #123421;
}

.checkout-result.error {
  color: #ffe2df;
  background: #421818;
}

.checkout-result pre {
  white-space: pre-wrap;
  word-break: break-all;
  padding: 12px;
  color: #fff7e2;
  background: rgba(0,0,0,.32);
  border: 2px solid rgba(255,255,255,.1);
}

.product-detail-card {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  background: #171b3b;
  border: 4px solid var(--border);
  box-shadow: var(--shadow);
}

.product-detail-card .detail-media img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  background: #fff;
  border: 4px solid var(--border);
}

.detail-content,
#detailBody {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 8px;
}

.detail-content h2,
#detailBody h2 {
  margin: 0;
  color: #fff7e2;
  font-size: clamp(28px, 4vw, 54px);
  line-height: .95;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.detail-title-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.detail-price {
  width: fit-content;
  padding: 10px 14px;
  color: #120d20;
  background: var(--orange);
  border: 3px solid var(--border);
  font-size: 28px;
  font-weight: 950;
}

.detail-description {
  white-space: pre-wrap;
  color: #e7e0ff;
  line-height: 1.55;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.detail-chips span {
  padding: 7px 10px;
  color: #fff7e2;
  background: #27305f;
  border: 2px solid #3b4377;
  font-size: 13px;
  font-weight: 900;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 10px;
  margin-top: 8px;
}

.quantity-row.compact {
  grid-template-columns: repeat(4, minmax(40px, 1fr)) minmax(74px, 1fr);
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff7e2;
  border: 3px solid var(--border);
  color: var(--ink);
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cart-product > div {
  min-width: 0;
}

.cart-product b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.cart-product span:last-child {
  display: block;
  color: #6f604e;
  font-size: 13px;
  font-weight: 850;
}

.small-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.cart-qty {
  display: grid;
  grid-template-columns: 42px minmax(70px, 1fr) 42px;
  gap: 4px;
  min-width: 0;
}

.cart-qty button,
.cart-qty input {
  min-height: 38px;
  text-align: center;
  min-width: 0;
}

.cart-item > .button {
  width: 100%;
  min-width: 0;
}

.cart-empty {
  padding: 18px;
  color: #d8d2ef;
  background: #101431;
  border: 3px dashed rgba(255,255,255,.2);
}

.profile-section,
.support-section,
.settings-section {
  padding-top: 24px;
}

.profile-card {
  min-height: 220px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #120d20;
  background: linear-gradient(135deg, var(--cyan), #9866ff);
  border: 3px solid var(--border);
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
  font-size: 28px;
  font-weight: 950;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-stats div {
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
}

.profile-stats div span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.profile-stats div b {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}

.profile-stats div small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-empty {
  padding: 18px;
  color: #d8d2ef;
  background: rgba(255,255,255,.05);
}

.support-layout {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 18px;
}

.support-chat {
  min-height: 260px;
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-message {
  max-width: 82%;
  padding: 12px 14px;
  border: 3px solid var(--border);
  line-height: 1.45;
}

.support-message.bot {
  align-self: flex-start;
  color: var(--ink);
  background: #fff7e2;
}

.support-message.user {
  align-self: flex-end;
  color: #fff;
  background: #2c3470;
}

.settings-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-list { display: grid; gap: 10px; }

.order-row {
  border: 3px solid var(--border);
  background: #252b58;
}

.order-row-main {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.order-status {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--border);
  white-space: nowrap;
}

.order-status-pending { background: #3a3560; color: #ffd98a; }
.order-status-done { background: #1f6f4a; color: #baffd9; }
.order-status-error { background: #6f2233; color: #ffc2ce; }

.order-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.order-detail {
  padding: 12px 14px 16px;
  border-top: 3px solid var(--border);
  background: rgba(255,255,255,.04);
  font-size: 14px;
}

.order-detail-row {
  margin-bottom: 6px;
}

.order-detail-row span {
  color: var(--muted);
  margin-right: 6px;
}

.order-detail-delivered {
  margin-top: 8px;
}

.order-detail-label {
  font-weight: 800;
  margin-bottom: 6px;
}

.order-detail-delivered pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0f1230;
  border: 2px solid var(--border);
  padding: 10px;
  margin: 0 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.order-detail-empty {
  color: var(--muted);
}

.order-detail-empty.error {
  color: #ffb3bd;
}

.delivery-slot {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.delivery-slot .order-detail-delivered {
  margin-top: 4px;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.info-list article { padding: 18px; }

.faq details {
  margin-bottom: 10px;
  padding: 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 950;
}

.contacts {
  margin-bottom: 64px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-actions { gap: 10px; flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .hero, .checkout-layout, .split, .profile-grid, .product-detail-card, .support-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 38px; }
  .hero-visual { min-height: auto; }
  .stock-grid, .product-grid, .info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }
  .order-row-main { grid-template-columns: 1fr; }
}

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

@media (max-width: 620px) {
  main { width: min(100% - 20px, 1180px); }
  .topbar { padding: 10px; }
  .brand span:last-child { display: none; }
  .nav-cta { min-height: 38px; padding: 0 12px; font-size: 14px; }
  .stock-grid, .product-grid, .info-list, .payment-methods, .quantity-row { grid-template-columns: 1fr; }
  .checkout-section { padding: 16px; }
  .contacts { align-items: stretch; flex-direction: column; }
  .contact-actions .button { width: 100%; }
}

/* Final responsive storefront polish */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.is-hidden { display: none !important; }

.brand-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 22px;
}

.brand-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--shadow);
  background: #2b3164;
  color: var(--cream);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.brand-tab.is-active {
  background: var(--orange);
  color: var(--ink);
}

.product-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.product-icon.small-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.product-brand-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.product-card,
.panel,
.checkout-card,
.product-detail-card,
.cart-item,
.order-row {
  min-width: 0;
}

.product-card h3,
.product-top h3,
.cart-product b,
.detailBody h2,
.detail-body h2,
.hero-card h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-short {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.product-card-art {
  overflow: hidden;
  background: #10142f;
}

.product-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-product {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty,
.split-actions,
.detail-actions,
.payment-methods {
  min-width: 0;
}

.payment-methods label,
.button,
button,
input,
textarea,
select {
  max-width: 100%;
}

.profile-card-ready {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-card-ready span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid var(--border);
  box-shadow: 4px 4px 0 var(--shadow);
  background: linear-gradient(135deg, #35d2ff, #9b5cff);
  color: var(--ink);
  font-size: 28px;
  font-weight: 1000;
}

.admin-grid {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .panel,
  .checkout-card,
  .button,
  .brand-tab {
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  }

  .product-card:hover,
  .panel:hover,
  .checkout-card:hover {
    transform: translateY(-3px);
  }

  .button:hover,
  .brand-tab:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }
}

@media (max-width: 980px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .hero,
  .checkout-layout,
  .split,
  .profile-grid,
  .product-detail-card,
  .support-layout,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }

  .product-detail-card .detail-media img {
    min-height: 220px;
    max-height: 340px;
  }
}

@media (max-width: 700px) {
  main {
    width: 100%;
    padding: 0 12px;
  }

  .section {
    padding: 36px 0;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 34px;
  }

  .hero-card {
    padding: 18px;
  }

  .hero-card h1,
  .section-head h2 {
    font-size: clamp(34px, 13vw, 58px);
    line-height: .98;
  }

  .hero-copy,
  .hero-visual,
  .hero-card,
  .panel,
  .checkout-card,
  .contacts,
  .product-card,
  .product-detail-card {
    width: 100%;
    min-width: 0;
  }

  .hero-visual img {
    max-height: 260px;
    object-fit: contain;
  }

  .product-grid,
  .stock-grid,
  .info-list,
  .payment-methods,
  .quantity-row,
  .quantity-row.compact,
  .profile-stats,
  .detail-actions,
  .split-actions {
    grid-template-columns: 1fr !important;
  }

  .product-card-art {
    height: 132px;
  }

  .product-mini {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .product-brand-strip,
  .product-badge {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cart-item {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .cart-qty {
    width: 100%;
    grid-template-columns: 44px minmax(60px, 1fr) 44px;
  }

  .cart-qty .button,
  .cart-qty button {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .payment-methods label {
    min-height: 48px;
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .support-message {
    max-width: 94%;
  }

  .order-row-main {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 8px;
  }

  .brand {
    max-width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-card h1,
  .section-head h2 {
    font-size: clamp(30px, 12vw, 44px);
  }

  .button,
  button {
    min-height: 44px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-tabs {
    gap: 8px;
  }

  .brand-tab {
    flex: 1 1 calc(50% - 8px);
    padding: 0 10px;
  }
}

/* ---------- Toast notifications ---------- */
.toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1c2044;
  color: var(--text);
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0,0,0,.35);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(.98);
}

.toast-error { border-color: #ff5d4d; background: #3a1a22; }
.toast-info { border-color: var(--cyan); }

.toast-icon { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.toast-text { min-width: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .01ms !important; transform: none !important; }
}

/* ---------- Order detail expand ---------- */
.order-detail {
  animation: orderDetailIn .28s cubic-bezier(.2,.8,.2,1);
}

@keyframes orderDetailIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Support chat pop-in ---------- */
.support-message {
  animation: messagePopIn .22s cubic-bezier(.2,.8,.2,1);
}

@keyframes messagePopIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Product card entrance ---------- */
.product-card {
  animation: cardPopIn .32s cubic-bezier(.2,.8,.2,1) backwards;
}

@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Cart summary pulse (used by pulseCartSummary) ---------- */
.cart-summary.pulse {
  animation: cartPulse .5s ease;
}

@keyframes cartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ---------- Copy button success state ---------- */
.order-detail-delivered button {
  transition: transform .18s ease, background .18s ease;
}

.order-detail-delivered button:active {
  transform: scale(.96);
}

@media (prefers-reduced-motion: reduce) {
  .order-detail,
  .support-message,
  .product-card,
  .cart-summary.pulse {
    animation: none !important;
  }
}

/* ============================================================
   Motion & polish layer
   ============================================================ */

/* ---------- Active nav indicator ---------- */
.nav a {
  position: relative;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav a.is-active {
  color: var(--text);
}

/* ---------- Buttons: press + hover ---------- */
.button,
button,
.nav-cta {
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s ease, filter .16s ease, background .2s ease;
}

.button:hover:not(:disabled),
button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled),
button:active:not(:disabled) {
  transform: translateY(1px) scale(.985);
}

.button:disabled,
button:disabled {
  transform: none !important;
  filter: saturate(.5) brightness(.85);
  cursor: not-allowed;
}

/* Focus ring for keyboard users (accessibility + looks intentional) */
.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- Product card hover lift ---------- */
.product-card {
  transition: transform .26s cubic-bezier(.2,.8,.2,1), box-shadow .26s ease;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 10px 14px 0 rgba(0,0,0,.4);
  }

  .product-card:hover .product-card-art img {
    transform: scale(1.05);
  }
}

.product-card-art {
  overflow: hidden;
}

.product-card-art img {
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Inputs ---------- */
input,
select,
textarea {
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

/* ---------- Skeleton loading shimmer ---------- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.skeleton-card {
  height: 300px;
  border: 3px solid var(--border);
  background: linear-gradient(
    100deg,
    rgba(255,255,255,.04) 30%,
    rgba(255,255,255,.11) 50%,
    rgba(255,255,255,.04) 70%
  );
  background-size: 220% 100%;
  animation: skeletonSweep 1.4s ease-in-out infinite;
}

@keyframes skeletonSweep {
  from { background-position: 180% 0; }
  to { background-position: -20% 0; }
}

/* ---------- Product detail entrance ---------- */
.product-detail-section {
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}

.product-detail-section[hidden] {
  display: none;
}

.product-detail-section.is-visible .product-detail-card {
  animation: detailIn .38s cubic-bezier(.2,.8,.2,1);
}

@keyframes detailIn {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Status badge pop ---------- */
.order-status {
  transition: transform .2s ease;
}

.order-row:hover .order-status {
  transform: scale(1.06);
}

/* ---------- Brand tabs ---------- */
.brand-tab {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease, border-color .2s ease;
}

.brand-tab:hover {
  transform: translateY(-2px);
}

/* ---------- Chips / badges subtle hover ---------- */
.detail-chips span,
.hero-badges span {
  transition: transform .18s ease, border-color .2s ease;
}

.detail-chips span:hover,
.hero-badges span:hover {
  transform: translateY(-2px);
}

/* ---------- Floating quick actions (bot / channel / top) ---------- */
.quick-actions {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  color: #120d20;
  background: var(--orange);
  border: 3px solid var(--border);
  box-shadow: 4px 5px 0 rgba(0,0,0,.42);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, opacity .25s ease;
}

.quick-channel {
  color: var(--text);
  background: #2b62ff;
}

.quick-top {
  justify-content: center;
  min-width: 48px;
  padding: 0;
  color: var(--text);
  background: #262c58;
  opacity: 0;
  pointer-events: none;
}

.quick-top.is-shown {
  opacity: 1;
  pointer-events: auto;
}

.quick-btn:hover {
  transform: translateY(-3px);
  box-shadow: 6px 8px 0 rgba(0,0,0,.5);
}

.quick-btn:active {
  transform: translateY(1px);
  box-shadow: 2px 3px 0 rgba(0,0,0,.42);
}

.quick-ico {
  font-size: 18px;
}

@media (max-width: 620px) {
  .quick-actions {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  /* Compact icon-only buttons so they never cover content on phones */
  .quick-label {
    display: none;
  }

  .quick-btn {
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Brand section headers in catalog ---------- */
.brand-group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--border);
}

.brand-group-head img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 7px;
}

.brand-group-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.brand-group-head .brand-group-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs:empty {
  display: none;
}

.crumb {
  color: var(--muted);
  transition: color .18s ease;
}

a.crumb:hover {
  color: var(--cyan);
}

.crumb.is-current {
  color: var(--text);
}

.crumb-sep {
  color: rgba(255,255,255,.25);
}

/* ---------- Brand category cards (catalog level 1) ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.brand-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 20px;
  text-align: left;
  color: var(--text);
  background: #1c2148;
  border: 3px solid var(--border);
  box-shadow: 6px 7px 0 rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 9px 11px 0 rgba(0,0,0,.45);
}

.brand-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-card-name {
  font-size: 19px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.brand-card-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brand-card-go {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 620px) {
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .brand-card {
    padding: 14px;
  }

  .brand-card img {
    width: 42px;
    height: 42px;
  }

  .brand-card-name {
    font-size: 16px;
  }
}

/* ============================================================
   Signature motion — view transitions & accents
   ============================================================ */

/* View swap: each section slides up softly when it becomes active */
main [data-view]:not([hidden]) {
  animation: viewIn .42s cubic-bezier(.2,.85,.25,1) both;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered entrance for grid items (CSS-only, works for any count) */
.brand-card,
.product-card {
  animation: tileIn .44s cubic-bezier(.2,.85,.25,1) both;
}

.brand-card:nth-child(n)   { animation-delay: calc(var(--i, 0) * 60ms); }
.product-card:nth-child(n) { animation-delay: calc(var(--i, 0) * 50ms); }

@keyframes tileIn {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated gradient on main headings */
.section-head h2,
.hero-card h1 {
  background: linear-gradient(100deg, #fff7e2 0%, var(--cyan) 45%, #b78bff 70%, #fff7e2 100%);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: headingSheen 7s ease-in-out infinite;
}

@keyframes headingSheen {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Light sweep across primary buttons */
.button.primary,
.cart-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button.primary::before,
.cart-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  animation: btnSweep 3.6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes btnSweep {
  0%, 62% { left: -60%; }
  100%    { left: 130%; }
}

/* Brand cards: glowing accent corner that reacts on hover */
.brand-card {
  position: relative;
  overflow: hidden;
}

.brand-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 68%);
  opacity: .16;
  transition: opacity .3s ease, transform .45s cubic-bezier(.2,.85,.25,1);
  pointer-events: none;
}

.brand-card:hover::after {
  opacity: .34;
  transform: scale(1.35);
}

.brand-card:hover img {
  transform: rotate(-6deg) scale(1.08);
}

.brand-card img {
  transition: transform .38s cubic-bezier(.2,.85,.25,1);
}

/* Breadcrumb crumbs fade in one by one */
.breadcrumbs .crumb,
.breadcrumbs .crumb-sep {
  animation: crumbIn .3s ease both;
}

@keyframes crumbIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Floating quick actions gently breathe to draw the eye */
.quick-bot {
  animation: quickPulse 3.2s ease-in-out infinite;
}

@keyframes quickPulse {
  0%, 100% { box-shadow: 4px 5px 0 rgba(0,0,0,.42); }
  50%      { box-shadow: 4px 5px 0 rgba(0,0,0,.42), 0 0 0 6px rgba(255,150,60,.18); }
}

@media (prefers-reduced-motion: reduce) {
  main [data-view]:not([hidden]),
  .brand-card,
  .product-card,
  .section-head h2,
  .hero-card h1,
  .button.primary::before,
  .cart-button::before,
  .breadcrumbs .crumb,
  .breadcrumbs .crumb-sep,
  .quick-bot {
    animation: none !important;
  }

  .section-head h2,
  .hero-card h1 {
    color: #fff7e2;
    -webkit-text-fill-color: #fff7e2;
  }
}

/* ---------- Clickable stat cards / shortcuts ---------- */
.stat-card {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.85,.25,1), border-color .2s ease, background .2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  background: rgba(54,223,255,.08);
}

.stat-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.stat-card b {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}

.stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stat-card em {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

/* Hero badges are shortcuts now */
.hero-badges a {
  cursor: pointer;
  transition: transform .18s ease, border-color .2s ease, color .2s ease;
}

.hero-badges a:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Feature cards link somewhere */
a.stock-card {
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.85,.25,1), box-shadow .22s ease, border-color .2s ease;
}

a.stock-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 9px 11px 0 rgba(0,0,0,.42);
}

/* ============================================================
   Decorative background
   ============================================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(680px 480px at 12% 8%, rgba(54,223,255,.13), transparent 62%),
    radial-gradient(620px 520px at 88% 22%, rgba(143,92,255,.15), transparent 64%),
    radial-gradient(720px 540px at 50% 110%, rgba(255,138,92,.10), transparent 60%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

.orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .5;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,.10);
}

.orb-1 { width: 130px; height: 130px; top: 16%; left: 5%;  animation: orbFloat 15s ease-in-out infinite; }
.orb-2 { width: 74px;  height: 74px;  top: 62%; left: 88%; animation: orbFloat 19s ease-in-out infinite reverse; }
.orb-3 { width: 46px;  height: 46px;  top: 82%; left: 14%; animation: orbFloat 13s ease-in-out infinite; }
.orb-4 { width: 96px;  height: 96px;  top: 34%; left: 74%; animation: orbFloat 24s ease-in-out infinite reverse; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(22px, -26px) rotate(120deg); }
  66%      { transform: translate(-18px, 18px) rotate(240deg); }
}

/* ============================================================
   Content blocks
   ============================================================ */

/* ---------- Catalog stat pills ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-pill {
  padding: 14px;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.12);
  text-align: center;
}

.stat-pill b {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
}

.stat-pill span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Cross links between sections ---------- */
.cross-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cross-card {
  display: block;
  padding: 16px;
  background: #1c2148;
  border: 3px solid var(--border);
  box-shadow: 5px 6px 0 rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.85,.25,1), box-shadow .22s ease, border-color .2s ease;
}

.cross-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 8px 10px 0 rgba(0,0,0,.45);
}

.cross-ico {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.cross-card b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.cross-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* ---------- Steps on home ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  display: block;
  padding: 22px 20px;
  background: #1a1f45;
  border: 3px solid var(--border);
  box-shadow: 6px 7px 0 rgba(0,0,0,.35);
  overflow: hidden;
  cursor: pointer;
  transition: transform .24s cubic-bezier(.2,.85,.25,1), border-color .2s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
}

.step-num {
  display: block;
  font-size: 40px;
  font-weight: 950;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(54,223,255,.45);
  margin-bottom: 10px;
}

.step-card b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.step-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ---------- Support quick answers ---------- */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.qa-item {
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 2px solid var(--border);
  transition: border-color .2s ease, background .2s ease;
}

.qa-item[open] {
  border-color: var(--cyan);
  background: rgba(54,223,255,.06);
}

.qa-item summary {
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.qa-item summary::-webkit-details-marker { display: none; }

.qa-item summary::before {
  content: "＋";
  margin-right: 8px;
  color: var(--cyan);
  font-weight: 900;
}

.qa-item[open] summary::before { content: "－"; }

.qa-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cross-links, .steps, .qa-grid { grid-template-columns: 1fr; }
  .orb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .orb { animation: none !important; }
}

/* ---------- Footer / build marker ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0 40px;
  margin-top: 8px;
  border-top: 3px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.build-marker {
  padding: 4px 10px;
  border: 2px solid var(--border);
  background: rgba(255,255,255,.05);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- Respect reduced motion for everything above ---------- */
@media (prefers-reduced-motion: reduce) {
  .nav a::after,
  .button,
  button,
  .nav-cta,
  .product-card,
  .product-card-art img,
  .brand-tab,
  .order-status,
  .detail-chips span,
  .hero-badges span,
  input, select, textarea {
    transition: none !important;
  }

  .skeleton-card,
  .product-detail-section.is-visible .product-detail-card {
    animation: none !important;
  }

  .product-card:hover {
    transform: none !important;
  }
}
