:root {
  --rail-ink: #202535;
  --rail-tint: #f0f3f9;
  --rail-border: #e1e5ee;
}
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.market-layout { flex: 1 0 auto; }
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--rail-border);
}
.market-rail {
  background: #fbfcff;
  border-color: var(--rail-border);
}
.market-nav {
  gap: 16px;
  padding: 18px 12px;
}
.rail-group { display: grid; gap: 3px; min-width: 0; }
.rail-group + .rail-group {
  border-top: 1px solid var(--rail-border);
  padding-top: 13px;
}
.rail-group-label {
  margin: 0 0 3px;
  padding-inline: 10px;
  color: #525b70;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.market-nav a {
  min-height: 44px;
  color: var(--rail-ink);
  border-radius: 9px;
}
.market-nav a:hover {
  background: var(--rail-tint);
  text-decoration: none;
}
.market-nav a[aria-current="page"] {
  background: var(--category-surface, var(--rail-tint));
  box-shadow: inset 3px 0 var(--category-ink, #30415e);
  color: var(--category-ink, #30415e);
}

.storefront-hero {
  background: radial-gradient(ellipse at 91% 64%, #224268 0, #101d33 48%, #090f1d 78%);
}
.storefront-hero .hero-inner { min-height: clamp(390px, 42vw, 550px); }
.storefront-hero .hero-actions { margin-top: 4px; }
.storefront-hero .hero-actions .button { border-radius: 10px; }
.storefront-hero .hero-actions .button-primary { background: #f4f6ff; }
.storefront-hero .hero-actions .button-outline { border-color: #a9b9d1; background: #121e31; }
.storefront-hero h2.hero-slide-title {
  margin-bottom: 17px;
  font: 900 clamp(3.3rem, 7.4vw, 7.8rem) / .87 var(--display);
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.storefront-hero h2.hero-slide-title span { display: block; color: var(--powder); }
.hero-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 16px;
  color: #ececf2;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
}
.hero-carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #a9b9d1;
  border-radius: 10px;
  background: #121e31;
  color: #f4f6ff;
  font: 700 1.7rem / 1 var(--body);
  cursor: pointer;
}
.hero-carousel-controls button:hover { background: #263d5c; }
@media (max-width: 720px) {
  .storefront-hero h2.hero-slide-title { font-size: clamp(2.9rem, 12vw, 5.25rem); margin-bottom: 12px; }
  .hero-carousel-controls { justify-content: flex-start; }
}
.market-layout .panel {
  border-radius: 13px;
  border-color: var(--rail-border);
  box-shadow: 0 5px 20px #15254008;
}
.cart-page .cart-availability {
  margin-bottom: 18px;
  border-inline-start: 4px solid #4b63a0;
  background: #f0f4ff;
}
.cart-availability h2 { margin-bottom: 6px; }
.cart-availability .inline-action { flex-wrap: wrap; }
.account-menu .account-menu-link {
  min-height: 44px;
  line-height: 1.4;
}
.account-menu .account-menu-link[aria-current="page"] {
  background: #e7edfd;
  border-color: #bdc9e8;
  color: #253d77;
}
@media (max-width: 860px) {
  .market-nav {
    display: grid;
    grid-template-columns: 2fr 3fr;
    column-gap: 5px;
    row-gap: 1px;
    overflow: visible;
    padding: 4px 0;
  }
  .rail-group {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .rail-group + .rail-group {
    border: 0;
    padding-top: 0;
  }
  .rail-group-label { display: none; }
  .rail-browse {
    grid-column: 1 / -1;
    grid-template-columns: .96fr 1fr .88fr 1.23fr 1fr;
  }
  .rail-editorial.rail-group, .rail-utilities.rail-group { border-top: 1px solid var(--rail-border); }
  .market-nav a {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 5px 2px;
    font-size: clamp(.72rem, 2.15vw, .82rem);
    line-height: 1.22;
    text-align: center;
    white-space: normal;
  }
  .market-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--category-ink, #30415e); }
  .market-nav a:focus-visible { outline-offset: -2px; }
  .storefront-hero .hero-inner { min-height: 0; }
}
@media (max-width: 360px) {
  .market-nav { width: calc(100% - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
