:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --text: #1a1d23;
  --muted: #5c6675;
  --accent: #0E6BB7;
  --accent-hover: #0A5A9C;
  --border: #dde1e8;
  --header-bg: #0b1127;
  --header-fg: #ffffff;
  --site-header-offset: 4.5rem;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Titles", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
}

@font-face {
  font-family: "Titles";
  font-display: swap;
  src: url("../brand/fonts/Newake-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
}

@font-face {
  font-family: "Headline";
  font-display: swap;
  src: url("../brand/fonts/Oswald-Variable.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--header-bg);
  color: var(--header-fg);
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.home-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #e8eaef;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  max-height: 3rem;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
  padding: 0.45rem 0.75rem;
  box-sizing: border-box;
}

.home-topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.home-topbar-links a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.home-topbar-links a:hover {
  color: var(--accent);
}

body.is-home.is-home-scrolled .home-topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .home-topbar {
    transition: none;
  }
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 0.65rem 0.75rem;
  gap: 0.75rem;
  box-sizing: border-box;
}

@media (min-width: 961px) {
  body:not(.settings-workspace) .site-header > .header-bar {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    padding-inline: 0;
  }

  body.customer-account {
    --max: 78rem;
  }

  body.ticket-page {
    --max: 84rem;
  }
}

.header-left {
  justify-self: start;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.header-support-link {
  white-space: nowrap;
}

.header-menus {
  display: contents;
}

.header-center {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-right {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--header-fg);
  flex-shrink: 0;
}

.site-header .brand:hover {
  color: var(--accent);
}

.site-header .brand:hover .brand-text {
  color: var(--accent);
}

.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

.site-header .brand-text {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--header-fg);
  white-space: nowrap;
}

.site-header .nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--header-fg);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  cursor: pointer;
  justify-self: end;
}

.site-header .nav-link,
.site-header .nav a.nav-link {
  color: var(--header-fg);
  padding: 0.35rem 0;
}

.site-header .nav-link:hover,
.site-header .nav a.nav-link:hover {
  color: var(--accent);
}

.site-header .nav-logout .btn-link {
  color: var(--header-fg);
}

.site-header .nav-logout .btn-link:hover {
  color: var(--accent);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 14rem;
  padding: 0.5rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 24, 32, 0.12);
  z-index: 50;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: #fff4eb;
  color: var(--accent);
}

.nav-dropdown a.nav-dropdown-sub {
  padding: 0.4rem 1rem 0.4rem 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-submenu-toggle {
  display: none;
}

.nav-link-admin {
  color: var(--accent);
}

@media (max-width: 960px) {
  .header-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .4rem;
  }

  .site-header .brand {
    gap: .4rem;
  }

  .site-header .brand-logo {
    height: 2.2rem;
  }

  .site-header .brand-text {
    font-size: .95rem;
  }

  .site-header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .nav-toggle::before {
    content: "";
    width: .85rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -.28rem currentColor, 0 .28rem currentColor;
  }

  .header-menus {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: 70dvh;
    overflow-y: auto;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .header-menus.is-open {
    display: flex;
  }

  .header-center {
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .header-right:not(.store-header-actions) {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .header-menus.is-open + .header-right:not(.store-header-actions) {
    display: flex;
  }

  .store-header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: .2rem;
    flex-wrap: nowrap;
  }

  .site-header .header-center .nav-link {
    display: block;
    padding: .65rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .header-center .nav-item.has-dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
    align-items: center;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .site-header .header-center .has-dropdown > .nav-link {
    border: 0;
  }

  .header-center .nav-submenu-toggle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    color: var(--header-fg);
    cursor: pointer;
  }

  .nav-submenu-toggle::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
  }

  .nav-submenu-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
  }

  .site-header .header-center .nav-item.has-dropdown .nav-dropdown {
    position: static;
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 .4rem .5rem;
    background: transparent;
  }

  .site-header .header-center .nav-item.has-dropdown.is-expanded .nav-dropdown {
    display: block;
  }

  .header-center .nav-dropdown a {
    color: #e2ecfa;
    white-space: normal;
  }

  .header-center .nav-dropdown a:hover {
    background: rgb(255 255 255 / 10%);
    color: #fff;
  }

}

main.container {
  flex: 1;
  padding: 2rem 0 3rem;
}

.track-promo {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  background-color: var(--header-bg);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.45;
}

.track-promo-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  aspect-ratio: 2 / 3;
  background: url("../brand/racing-track-night-gate.webp") center / cover no-repeat;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 55%),
    linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 55%),
    linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-composite: intersect;
}

.track-promo-inner {
  position: relative;
}

.track-promo-inner > * {
  max-width: 42rem;
}

.track-promo p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.track-promo strong {
  color: #ffffff;
}

.track-promo .track-promo-eyebrow {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  color: #e65353;
}

.track-promo-heading {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
}

.track-promo-features {
  list-style: none;
  margin: 1.75rem 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.track-promo-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.track-promo-features svg {
  flex: 0 0 auto;
  color: #e65353;
}

.track-promo-shipping {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

@media (max-width: 900px) {
  .track-promo-photo {
    opacity: 0.35;
  }

  .track-promo-inner > * {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .track-promo-features {
    grid-template-columns: 1fr;
  }
}

.merch-promo {
  position: relative;
  z-index: 1;
  margin-bottom: -1rem;
  padding: 2.25rem 0 0;
  background: #112057;
  color: #ffffff;
}

.merch-promo-inner {
  width: min(100% - 2rem, 84rem);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.merch-promo-text {
  flex: 0 1 auto;
  max-width: 50%;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.merch-promo-heading {
  align-self: flex-start;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}

.merch-promo-logo {
  display: block;
  width: min(220px, 60%);
  height: auto;
}

.merch-promo .merch-promo-tagline {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.merch-promo-photo {
  flex: 0 1 auto;
  min-width: 0;
}

.merch-promo-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 26rem;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .merch-promo {
    padding-top: 2.5rem;
  }

  .merch-promo-heading,
  .merch-promo .merch-promo-tagline {
    white-space: normal;
  }

  .merch-promo-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .merch-promo-text {
    flex: none;
    max-width: none;
    padding-bottom: 0;
    gap: 1.25rem;
  }

  .merch-promo-heading {
    align-self: center;
    text-align: center;
  }

  .merch-promo-logo {
    width: 183px;
  }
}

.site-footer {
  position: relative;
  padding: 2.75rem 0 1.25rem;
  background: #000000;
  color: #ffffff;
  font-size: 0.9rem;
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1rem;
}

.site-footer::before {
  background: var(--header-bg);
}

.site-footer::after {
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 15%, 50% 100%, 0 15%);
}

.track-promo + .site-footer::after {
  background: var(--header-bg);
}
.footer-inner {
  display: grid;
  gap: 2.25rem;
}

.footer-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

.footer-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.footer-feature svg {
  width: 2.75rem;
  height: 2.75rem;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-logo-link {
  justify-self: center;
  display: block;
}

.footer-logo {
  display: block;
  width: 7rem;
  height: auto;
  margin: -0.75rem 0;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-list li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  align-items: center;
}

.footer-marker {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
}

.footer-list a {
  color: #ffffff;
}

.footer-list a:hover,
.footer-logo-link:hover {
  color: var(--accent);
}

.footer-bottom {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-company {
  color: #ffffff;
}

@media (max-width: 900px) {
  .footer-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .footer-features {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
  padding: 0.6rem 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn:disabled,
.btn-primary:disabled {
  background: #c5c9ce;
  color: #6b7280;
  opacity: 0.75;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  background: #c5c9ce;
  color: #6b7280;
}

.btn-block {
  display: flex;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
}

.btn-link {
  background: transparent;
  color: var(--muted);
  padding: 0.6rem 0.25rem;
}

.btn-link:hover {
  color: var(--text);
}

.shop-header {
  text-align: center;
  padding: 2.75rem 0 1rem;
}

.shop-header .lede {
  margin-inline: auto;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 16rem) 1fr;
  gap: 1.75rem;
  align-items: start;
  margin: 1.5rem 0 0;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 0.75rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.shop-main {
  min-width: 0;
}

.event-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1.5rem 0 2rem;
}

.event-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--muted);
  font: inherit;
}

.event-tab:hover {
  color: var(--text);
  border-color: var(--muted);
}

.event-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.event-tab.is-active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.shop-filters {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0;
}

.shop-filters input[type="search"],
.shop-filters select {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  width: 100%;
  min-width: 0;
}

.shop-filters .btn-block,
.shop-filters .btn-primary {
  width: 100%;
}

@media (max-width: 860px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

}

.shop-section {
  margin: 0 0 2.5rem;
}

.shop-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 650;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.1);
  transform: translateY(-2px);
}

.product-card a {
  display: block;
  color: inherit;
  height: 100%;
  padding: 0 0 1rem;
}

.product-card h2 {
  font-size: 1.02rem;
  margin: 0.85rem 1rem 0.35rem;
  font-weight: 650;
  line-height: 1.3;
}

.product-card-event {
  margin: .9rem 1rem .2rem;
  color: var(--accent-hover);
  font: 600 .8rem/1.35 "Headline", var(--font);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.product-card-event + h2 {
  margin-top: 0;
}

.product-card .price,
.product-card .muted {
  margin-left: 1rem;
  margin-right: 1rem;
}

.product-card img,
.product-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  background: #eee;
  border: none;
  border-bottom: 1px solid var(--border);
}

.product-card-placeholder {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0;
  border: none;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
  background: #f0f2f5;
}

.price {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.price-lg {
  font-size: 1.4rem;
}

.price-list {
  color: var(--muted);
  font-weight: 500;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.price-sale {
  color: var(--accent);
  font-weight: 700;
}

.price-save-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #1f9d55;
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
  cursor: default;
}

.price-save-badge[hidden] {
  display: none;
}

.price-promo-note {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 0.4rem;
}

.product-detail-layout {
  display: grid;
  gap: 2rem;
}

.legal-page {
  max-width: 72rem;
  margin: 2rem auto 3rem;
  color: #7a7a7a;
  line-height: 1.6;
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  color: var(--text);
}

.legal-page h2,
.legal-page h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #54595f;
}

.legal-page h4,
.legal-page h5 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #54595f;
}

.legal-page p {
  margin: 0 0 0.9rem;
}

.legal-page ul {
  margin: 0 0 0.9rem;
  padding-left: 1.75rem;
}

.legal-page a {
  color: var(--accent);
}

.legal-page .legal-title-centered {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  text-align: center;
  color: #0b1127;
}

.legal-toc {
  margin: 0 0 2rem;
  border: 1px solid #9da5ae;
  border-radius: 3px;
}

.legal-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #9da5ae;
  font-size: 1.1rem;
  font-weight: 600;
  color: #54595f;
  cursor: pointer;
  list-style: none;
}

.legal-toc summary::-webkit-details-marker {
  display: none;
}

.legal-toc summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.15s ease;
}

.legal-toc:not([open]) summary {
  border-bottom: 0;
}

.legal-toc:not([open]) summary::after {
  transform: rotate(45deg);
}

.legal-toc ol {
  margin: 0;
  padding: 0.85rem 1.25rem 0.85rem 2.75rem;
}

.legal-toc ol ol {
  padding: 0.25rem 0 0 1.5rem;
}

.legal-toc li {
  margin: 0.2rem 0;
}

.legal-toc a {
  color: #7a7a7a;
  text-decoration: none;
}

.legal-toc a:hover {
  text-decoration: underline;
}

.related-products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-products > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  color: #1a2a55;
}

@media (min-width: 900px) {
  .related-products .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .product-detail-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.product-gallery {
  display: grid;
  gap: 0.75rem;
}

.product-gallery[data-gallery]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.product-gallery-main {
  position: relative;
  overflow: hidden;
}

.product-gallery-main .product-gallery-slide {
  display: block;
}

.product-gallery-main .product-gallery-slide[hidden] {
  display: none;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0 0 0.15rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.product-gallery-arrow:hover,
.product-gallery-arrow:focus-visible {
  background: rgba(17, 24, 39, 0.8);
}

.product-gallery-prev {
  left: 0.6rem;
}

.product-gallery-next {
  right: 0.6rem;
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery-arrow {
    opacity: 0;
  }

  .product-gallery-main:hover .product-gallery-arrow,
  .product-gallery-arrow:focus-visible {
    opacity: 1;
  }
}

.product-gallery-count {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 2px;
}

.product-gallery-thumb {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible {
  opacity: 1;
}

.product-gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.product-gallery .product-gallery-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: none;
  display: block;
}

.product-info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.stock {
  font-weight: 600;
  margin: 1rem 0;
}

.stock-in {
  color: #7dcea0;
}

.stock-out {
  color: #f5a3a3;
}

.product-description {
  margin-top: 1.25rem;
  color: var(--muted);
}

.bundle-contents {
  margin: 1rem 0 1.25rem;
}

.bundle-contents-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.bundle-item-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.bundle-item-list li {
  margin: 0.25rem 0;
}

.bundle-cart-contents {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.flash-error {
  background: #fff1f0;
  border: 1px solid #f5c2c0;
  color: #8a1f1b;
}

.flash-success {
  background: #f0faf2;
  border: 1px solid #b7e0c0;
  color: #1d6b34;
}

.cart-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.cart-nav-icon {
  position: relative;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.cart-nav-icon::before {
  content: "";
  position: absolute;
  inset: .3rem .12rem .45rem .31rem;
  border: 1.5px solid currentColor;
  border-radius: .14rem;
  transform: skew(-10deg);
}

.cart-nav-icon::after {
  content: "";
  position: absolute;
  left: .12rem;
  top: .19rem;
  width: .25rem;
  height: .44rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: skew(13deg);
}

.cart-nav-icon > span {
  position: absolute;
  bottom: .16rem;
  left: .42rem;
  width: .21rem;
  height: .21rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: .64rem 0 currentColor;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  min-height: 1.4rem;
  padding-inline: .32rem;
  border-radius: 1rem;
  color: #fff;
  background: #0e6bb7;
  font-size: .75rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.cart-count--empty {
  color: var(--header-fg);
  background: rgb(255 255 255 / 16%);
}

.waitlist-box {
  margin: 1.75rem 0 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
}

.waitlist-box h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.waitlist-form {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 22rem;
}

.waitlist-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.waitlist-form .input {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.waitlist-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.add-to-cart-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 1.25rem;
}

.variant-axis {
  min-width: 10rem;
}

.add-to-cart-qty {
  min-width: 5rem;
}

.add-to-cart-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.add-to-cart-form select,
.add-to-cart-form input[type="number"],
.cart-qty-form input[type="number"] {
  width: 100%;
  min-width: 5rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.add-to-cart-form input[type="number"],
.cart-qty-form input[type="number"] {
  width: 5rem;
}

.qty-help {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.cart-page h1 {
  margin: 0 0 1rem;
}

.cart-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .cart-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.cart-table-wrap {
  overflow-x: auto;
  min-width: 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.cart-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.cart-line-product {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.cart-line-product > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cart-line-thumbnail {
  display: block;
  width: clamp(2rem, 9vw, 3.5rem);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border: 1px solid var(--border);
  border-radius: .45rem;
  background: var(--bg);
  object-fit: cover;
}

.cart-line-meta {
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.cart-layout .bundle-cart-contents {
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.cart-layout .cart-qty-form input[type="number"] {
  width: 3.75rem;
  padding: 0.35rem 0.4rem;
}

.cart-layout .qty-help {
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.cart-summary {
  margin-top: 0;
}

.cart-summary h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.cart-coupon-toggle {
  margin: 0 0 0.75rem;
}

.cart-coupon-panel {
  margin: 0 0 1rem;
}

.cart-coupon-panel .coupon-form {
  margin: 0;
}

.cart-subtotal {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.cart-summary .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.messages {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.flash-info,
.flash-success {
  background: #f0faf2;
  border: 1px solid #b7e0c0;
  color: #1d6b34;
}

.checkout-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.75rem 0 0;
}

.inline-form {
  display: inline;
  margin: 0;
}

.checkout-page h1,
.order-page h1 {
  margin: 0 0 0.75rem;
}

.checkout-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.checkout-form fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 0 0 1rem;
  padding: 1rem;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.5rem 0 0;
}

.checkout-shipping-note {
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

.checkout-pilot-heading {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
}

.checkout-pilot-heading:first-of-type {
  margin-top: 0;
}

.pilot-verify-list {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
}

.pilot-verify-list li {
  margin: 0.15rem 0;
}

.checkout-form legend {
  padding: 0 0.35rem;
  color: var(--muted);
}

.form-field {
  margin-bottom: 0.85rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
}

.form-field.has-error .input {
  border-color: #d62828;
}

.coupon-form {
  margin-bottom: 1rem;
}

.coupon-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.coupon-row .input {
  flex: 1;
}

.field-error {
  color: #ffb4b4;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.form-field div.choice-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.form-field .choice-list label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}

.form-field .choice-list input[type="radio"],
.form-field .choice-list input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.checkout-summary {
  border: 2px solid #9aa3b2;
  border-radius: 6px;
  padding: 1rem;
  background: transparent;
}

.checkout-summary h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

@media (min-width: 860px) {
  .checkout-summary {
    position: sticky;
    top: calc(var(--site-header-offset) + 1rem);
    max-height: calc(100vh - var(--site-header-offset) - 2rem);
    overflow-y: auto;
  }
}

.checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.order-meta dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.order-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.order-timeline {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.order-timeline li {
  margin-bottom: 0.5rem;
}

.settings-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.refund-panel {
  margin: 2rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.refund-panel h2 {
  margin-top: 0;
}

.refund-form {
  max-width: 22rem;
  margin-top: 1rem;
}

.account-signout {
  margin-top: 1.5rem;
}

.account-orders-cta {
  margin: 1rem 0 2rem;
}

.account-orders-btn {
  padding: 0.9rem 1.75rem;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
  .account-orders-btn {
    width: 100%;
  }
}


.nav-logout .btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.nav-logout .btn-link:hover {
  color: var(--accent-hover);
}

.account-page {
  padding: 1.5rem 0 3rem;
  max-width: 32rem;
}

.settings-page {
  max-width: none;
  width: 100%;
  --settings-row-line: #c5ccd6;
  --settings-row-bg: #ffffff;
  --settings-row-stripe: #f0f2f5;
  --settings-row-hover: #e3ecfb;
}

.sale-product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sale-product-filters .input {
  flex: 1 1 10rem;
}

.sale-product-list {
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
}

.sale-product-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  cursor: pointer;
}

.sale-product-option + .sale-product-option {
  border-top: 1px solid var(--border);
}

.sale-product-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
}

.bundle-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.bundle-item-qty .input-sm {
  width: 4rem;
  padding: 0.25rem 0.4rem;
}

.bundle-choice-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bundle-choice-card {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
}

.bundle-choice-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bundle-choice-card .input-sm {
  width: 7rem;
}

.bundle-choice-select {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

/* Main Settings: full left padding so the section nav sits near the viewport edge. */
main.container:has(.settings-page:not(.settings-page--wide)) {
  width: min(100% - 2rem, 64rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.settings-page--wide {
  max-width: none;
  width: 100%;
}

main.container:has(.settings-page--wide) {
  width: min(100% - 2rem, 72rem);
}

.settings-page .settings-detail-table-wrap {
  overflow-x: visible;
}

.settings-page .settings-detail-table th,
.settings-page .settings-detail-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.settings-admin-link {
  margin-top: 1.5rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: var(--site-header-offset);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
  padding-top: 0.25rem;
}

.settings-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.settings-nav a:hover,
.settings-nav a:focus-visible {
  color: var(--accent);
  background: #e0e3e8;
}

.settings-main {
  min-width: 0;
}

.settings-section {
  margin-top: 2rem;
  padding: 1.25rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  scroll-margin-top: calc(var(--site-chrome-height, var(--site-header-offset)) + 0.75rem);
}

.settings-page .settings-section {
  background: #e0e3e8;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(26, 29, 35, 0.06);
  color: var(--text);
}

.settings-page .settings-section h2,
.settings-page .settings-section h3,
.settings-page .settings-section strong {
  color: var(--text);
}

.settings-page .settings-section .muted {
  color: var(--muted);
}

.settings-main > .settings-section:first-child {
  margin-top: 0;
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.settings-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.settings-dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 20px 50px rgba(11, 17, 39, 0.25);
  font-family: var(--font);
  text-align: left;
}

.settings-dialog::backdrop {
  background: rgba(11, 17, 39, 0.55);
}

.settings-dialog h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.settings-dialog p {
  margin: 0 0 0.75rem;
}

.settings-dialog-columns {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.6rem;
}

.settings-dialog-columns div {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.settings-dialog-columns dt {
  font-weight: 600;
}

.settings-dialog-columns dd {
  margin: 0.2rem 0 0;
}

.settings-dialog-example {
  margin: 0 0 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--header-bg);
  color: var(--header-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.settings-dialog-notes {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.settings-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.settings-section-header .btn-secondary {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.settings-section-header .btn-secondary:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
}

.settings-user-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.settings-user-search .form-field {
  flex: 1 1 16rem;
  margin-bottom: 0;
}

.settings-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-checkbox-list label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
}

.settings-category-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.35rem;
}

.settings-category-group-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-category-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-category-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: #eef0f3;
  font-weight: 500;
  cursor: pointer;
}

.settings-category-option:hover,
.settings-category-option:focus-within {
  background: #e0e3e8;
  border-color: #c9ced6;
}

.settings-category-option input[type="checkbox"] {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
}

.settings-category-option-name {
  flex: 1 1 auto;
  line-height: 1.35;
  color: var(--text);
}

.settings-product-image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-product-image-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.settings-product-image-item img {
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  background: #fff;
}

.settings-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.settings-subheader {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}

.settings-ticket-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0;
}

.settings-ticket-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.product-category-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-category-selects select {
  flex: 1 1 12rem;
  width: auto;
  min-width: 0;
}

.product-category-selects select[hidden] {
  display: none;
}

.settings-inventory-table {
  display: grid;
  grid-template-columns: minmax(14rem, 2.4fr) 6.5rem 9rem 6.5rem minmax(13.5rem, auto);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin: 0.25rem 0 1rem;
}

.settings-inventory-table .settings-inventory-header,
.settings-inventory-table .settings-ticket-list,
.settings-inventory-table .settings-inventory-row {
  display: contents;
}

.settings-inventory-header > *,
.settings-inventory-row > * {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #b8c0cc;
}

.settings-inventory-header > * {
  border-bottom: 2px solid #9aa3b2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  white-space: nowrap;
}

.settings-inventory-header > :nth-child(n + 2):nth-child(-n + 4),
.settings-inventory-threshold,
.settings-inventory-stock,
.settings-inventory-available {
  justify-content: flex-end;
}

.settings-inventory-header > :last-child,
.settings-inventory-actions {
  justify-content: flex-end;
}

.settings-inventory-row:last-child > * {
  border-bottom: none;
}

.settings-inventory-row > * {
  border-bottom-color: var(--settings-row-line);
  background: var(--settings-row-bg);
}

.settings-inventory-row:nth-child(even) > * {
  background: var(--settings-row-stripe);
}

.settings-inventory-row:hover > * {
  background: var(--settings-row-hover);
}

.settings-inventory-product {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0.15rem !important;
}

.settings-inventory-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.settings-inventory-name:hover {
  color: var(--accent);
  text-decoration: underline;
}

.settings-inventory-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.settings-inventory-meta .settings-badge {
  margin-left: 0;
}

.settings-inventory-sku {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.settings-inventory-threshold-input,
.settings-inventory-stock-input {
  width: 4.75rem;
  min-width: 0;
  padding: 0.25rem 0.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.settings-inventory-stock-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.settings-inventory-variant-count {
  font-size: 0.8rem;
  white-space: nowrap;
}

.settings-inventory-actions {
  flex-wrap: nowrap;
}

.settings-inventory-actions .inline-form {
  display: inline-flex;
  margin: 0;
}

.settings-inventory-actions .btn {
  white-space: nowrap;
}

.settings-inventory-variant-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5rem;
}

.settings-inventory-variant-table th,
.settings-inventory-variant-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.settings-inventory-variant-table th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  border-bottom: 2px solid #9aa3b2;
}

.settings-inventory-variant-table th:last-child,
.settings-inventory-variant-table td:last-child {
  text-align: right;
}

.settings-inventory-variant-table tbody tr:nth-child(even) td {
  background: var(--settings-row-stripe);
}

.settings-inventory-variant-table td.muted {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .settings-inventory-table {
    display: block;
  }

  .settings-inventory-table .settings-inventory-header {
    display: none;
  }

  .settings-inventory-table .settings-ticket-list {
    display: block;
  }

  .settings-inventory-table .settings-inventory-row {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    column-gap: 1rem;
    border-bottom: 2px solid var(--settings-row-line);
    background: var(--settings-row-bg);
  }

  .settings-inventory-table .settings-inventory-row:nth-child(even) {
    background: var(--settings-row-stripe);
  }

  .settings-inventory-table .settings-inventory-row:last-child {
    border-bottom: none;
  }

  .settings-inventory-row > * {
    border-bottom: none;
    background: transparent !important;
    justify-content: flex-start !important;
  }

  .settings-inventory-product,
  .settings-inventory-actions {
    grid-column: 1 / -1;
  }

  .settings-inventory-actions {
    flex-wrap: wrap;
  }

  .settings-inventory-row > [data-label]::before {
    content: attr(data-label);
    color: var(--muted, #6b7280);
    font-size: 0.8rem;
  }
}

.settings-inventory-row .btn-secondary {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.settings-inventory-row .btn-secondary:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
}

.settings-upcoming-events-table,
.settings-events-tickets-table,
.settings-events-list-table,
.settings-discounts-sales-table {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.settings-events-tickets-table {
  display: grid;
  grid-template-columns: minmax(10rem, 1.5fr) minmax(10rem, 1.4fr) 4.5rem minmax(6rem, 1fr);
}

.settings-events-list-table {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 4.5rem minmax(6rem, 1fr);
}

.settings-upcoming-events-table {
  display: grid;
  grid-template-columns: minmax(11rem, 1.4fr) 4.5rem minmax(11rem, 1.6fr) auto;
}

.settings-upcoming-events-table .settings-ticket-item > * {
  align-items: flex-start;
}

.settings-upcoming-events-tickets {
  flex-direction: column;
  gap: 0.35rem;
}

.settings-discounts-sales-table {
  display: grid;
  grid-template-columns: minmax(10rem, 1.4fr) minmax(12rem, 1.6fr) minmax(7rem, 1fr) minmax(5rem, 0.8fr);
}

.settings-discounts-sales-table.settings-coupons-table {
  grid-template-columns: minmax(10rem, 1.6fr) minmax(7rem, 1fr) 7rem minmax(8rem, 1fr);
}

.settings-coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.settings-upcoming-events-table .settings-events-tickets-header, .settings-events-tickets-table .settings-events-tickets-header,
.settings-upcoming-events-table .settings-ticket-list, .settings-events-tickets-table .settings-ticket-list,
.settings-upcoming-events-table .settings-ticket-item, .settings-events-tickets-table .settings-ticket-item,
.settings-events-list-table .settings-events-tickets-header,
.settings-events-list-table .settings-ticket-list,
.settings-events-list-table .settings-ticket-item,
.settings-discounts-sales-table .settings-events-tickets-header,
.settings-discounts-sales-table .settings-ticket-list,
.settings-discounts-sales-table .settings-ticket-item {
  display: contents;
}

.settings-upcoming-events-table .settings-ticket-list, .settings-events-tickets-table .settings-ticket-list,
.settings-events-list-table .settings-ticket-list,
.settings-discounts-sales-table .settings-ticket-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-upcoming-events-table > .settings-events-tickets-header > *, .settings-events-tickets-table > .settings-events-tickets-header > *,
.settings-upcoming-events-table .settings-ticket-item > *, .settings-events-tickets-table .settings-ticket-item > *,
.settings-events-list-table > .settings-events-tickets-header > *,
.settings-events-list-table .settings-ticket-item > *,
.settings-discounts-sales-table > .settings-events-tickets-header > *,
.settings-discounts-sales-table .settings-ticket-item > * {
  padding: 0.65rem 0.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
  display: flex;
  align-items: center;
}

.settings-upcoming-events-table > .settings-events-tickets-header > *:last-child, .settings-events-tickets-table > .settings-events-tickets-header > *:last-child,
.settings-upcoming-events-table .settings-ticket-item > *:last-child, .settings-events-tickets-table .settings-ticket-item > *:last-child,
.settings-events-list-table > .settings-events-tickets-header > *:last-child,
.settings-events-list-table .settings-ticket-item > *:last-child,
.settings-discounts-sales-table > .settings-events-tickets-header > *:last-child,
.settings-discounts-sales-table .settings-ticket-item > *:last-child {
  border-right: none;
}

.settings-upcoming-events-table .settings-ticket-item:last-child > *, .settings-events-tickets-table .settings-ticket-item:last-child > *,
.settings-events-list-table .settings-ticket-item:last-child > *,
.settings-discounts-sales-table .settings-ticket-item:last-child > * {
  border-bottom: none;
}

.settings-upcoming-events-table > .settings-events-tickets-header > *, .settings-events-tickets-table > .settings-events-tickets-header > *,
.settings-events-list-table > .settings-events-tickets-header > *,
.settings-discounts-sales-table > .settings-events-tickets-header > * {
  background: transparent;
  border-bottom: 2px solid #9aa3b2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.settings-events-tickets-name,
.settings-events-tickets-event {
  text-decoration: none;
}

.settings-events-tickets-name {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.settings-events-tickets-name:hover,
.settings-events-tickets-event:hover {
  text-decoration: underline;
}

.settings-events-list-meta {
  display: block;
  font-size: 0.875rem;
}

.settings-events-tickets-sold {
  white-space: nowrap;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.settings-events-tickets-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}

.settings-events-tickets-badges .settings-badge {
  margin-left: 0;
}

.settings-events-tickets-table--actions {
  grid-template-columns: minmax(10rem, 1.5fr) minmax(9rem, 1.3fr) 4rem minmax(6rem, 0.9fr) minmax(9rem, auto);
}

.settings-events-list-table--actions {
  grid-template-columns: minmax(12rem, 1.6fr) 4rem minmax(6rem, 0.8fr) minmax(9rem, auto);
}

.settings-upcoming-events-table .settings-ticket-item > *,
.settings-events-tickets-table .settings-ticket-item > *,
.settings-events-list-table .settings-ticket-item > *,
.settings-discounts-sales-table .settings-ticket-item > * {
  border-bottom-color: var(--settings-row-line);
  background: var(--settings-row-bg);
}

.settings-upcoming-events-table .settings-ticket-item:nth-child(even) > *,
.settings-events-tickets-table .settings-ticket-item:nth-child(even) > *,
.settings-events-list-table .settings-ticket-item:nth-child(even) > *,
.settings-discounts-sales-table .settings-ticket-item:nth-child(even) > * {
  background: var(--settings-row-stripe);
}

.settings-upcoming-events-table .settings-ticket-item:hover > *,
.settings-events-tickets-table .settings-ticket-item:hover > *,
.settings-events-list-table .settings-ticket-item:hover > *,
.settings-discounts-sales-table .settings-ticket-item:hover > * {
  background: var(--settings-row-hover);
}

.settings-events-tickets-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.settings-events-tickets-actions .inline-form {
  display: inline-flex;
  margin: 0;
}

.settings-events-tickets-actions .btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .settings-upcoming-events-table,
  .settings-events-tickets-table,
  .settings-events-list-table,
  .settings-discounts-sales-table {
    display: block;
  }

  .settings-upcoming-events-table .settings-events-tickets-header, .settings-events-tickets-table .settings-events-tickets-header,
  .settings-events-list-table .settings-events-tickets-header,
  .settings-discounts-sales-table .settings-events-tickets-header {
    display: none;
  }

  .settings-upcoming-events-table .settings-ticket-list, .settings-events-tickets-table .settings-ticket-list,
  .settings-events-list-table .settings-ticket-list,
  .settings-discounts-sales-table .settings-ticket-list {
    display: block;
  }

  .settings-upcoming-events-table .settings-ticket-item, .settings-events-tickets-table .settings-ticket-item,
  .settings-events-list-table .settings-ticket-item,
  .settings-discounts-sales-table .settings-ticket-item {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  .settings-upcoming-events-table .settings-ticket-item:last-child, .settings-events-tickets-table .settings-ticket-item:last-child,
  .settings-events-list-table .settings-ticket-item:last-child,
  .settings-discounts-sales-table .settings-ticket-item:last-child {
    border-bottom: none;
  }

  .settings-upcoming-events-table .settings-ticket-item > *, .settings-events-tickets-table .settings-ticket-item > *,
  .settings-events-list-table .settings-ticket-item > *,
  .settings-discounts-sales-table .settings-ticket-item > * {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .settings-upcoming-events-table .settings-ticket-item > *:last-child, .settings-events-tickets-table .settings-ticket-item > *:last-child,
  .settings-events-list-table .settings-ticket-item > *:last-child,
  .settings-discounts-sales-table .settings-ticket-item > *:last-child {
    border-bottom: none;
  }

  .settings-events-tickets-sold {
    justify-content: flex-start;
  }

  .settings-ticket-item .settings-events-tickets-sold::before {
    content: "Sold: ";
  }

  .settings-events-tickets-badges,
  .settings-events-tickets-actions {
    justify-content: flex-start;
  }

  .settings-upcoming-events-table .settings-ticket-item,
  .settings-events-tickets-table .settings-ticket-item,
  .settings-events-list-table .settings-ticket-item,
  .settings-discounts-sales-table .settings-ticket-item {
    border-bottom: 2px solid var(--settings-row-line);
    background: var(--settings-row-bg);
  }

  .settings-upcoming-events-table .settings-ticket-item:nth-child(even),
  .settings-events-tickets-table .settings-ticket-item:nth-child(even),
  .settings-events-list-table .settings-ticket-item:nth-child(even),
  .settings-discounts-sales-table .settings-ticket-item:nth-child(even) {
    background: var(--settings-row-stripe);
  }

  .settings-upcoming-events-table .settings-ticket-item > *,
  .settings-events-tickets-table .settings-ticket-item > *,
  .settings-events-list-table .settings-ticket-item > *,
  .settings-discounts-sales-table .settings-ticket-item > * {
    background: transparent !important;
  }

  .settings-ticket-item .settings-events-tickets-badges[data-label]::before,
  .settings-ticket-item .settings-events-tickets-actions[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted, #6b7280);
    font-size: 0.875rem;
    margin-right: 0.25rem;
  }
}

.category-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.category-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 0.75rem);
  z-index: 1;
  padding: 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.category-main {
  min-width: 0;
}

.category-main > .settings-section:first-child {
  margin-top: 0;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.category-nav-list,
.category-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.category-nav-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-nav-all,
.category-nav-link,
.category-nav-sublink {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.category-nav-all {
  font-weight: 600;
}

.category-nav-link {
  font-weight: 600;
}

.category-nav-all:hover,
.category-nav-link:hover,
.category-nav-sublink:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.category-nav-all.is-active,
.category-nav-link.is-active,
.category-nav-sublink.is-active {
  background: var(--accent);
  color: #fff;
}

.category-nav-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.category-nav-toggle--sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.85rem;
}

.category-nav-toggle:hover,
.category-nav-item.is-open > .category-nav-row > .category-nav-toggle,
.category-nav-subitem.is-open > .category-nav-row > .category-nav-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.category-nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.25rem 0 0.35rem 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
}

.category-nav-sublink {
  font-size: 0.92rem;
  padding: 0.3rem 0.55rem;
}

.category-nav-sublist--deep {
  margin-left: 0.6rem;
}

.category-nav-sublist--deep .category-nav-sublink {
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }
}

.inventory-category-section-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.inventory-category-section .settings-ticket-list {
  margin-top: 0.25rem;
}

.settings-ticket-item:last-child {
  border-bottom: none;
}

/* Low specificity so the grid tables' own .settings-ticket-item rules still win. */
:where(.settings-page .settings-ticket-list) > .settings-ticket-item {
  padding-inline: 0.75rem;
  border-bottom-color: var(--settings-row-line);
  background: var(--settings-row-bg);
}

:where(.settings-page .settings-ticket-list) > .settings-ticket-item:nth-child(even) {
  background: var(--settings-row-stripe);
}

:where(.settings-page .settings-ticket-list) > .settings-ticket-item:hover {
  background: var(--settings-row-hover);
}

.settings-page .cart-table td,
.settings-page .settings-detail-table td {
  border-bottom-color: var(--settings-row-line);
  background: var(--settings-row-bg);
}

.settings-page .cart-table tbody tr:nth-child(even) td,
.settings-page .settings-detail-table tbody tr:nth-child(even) td {
  background: var(--settings-row-stripe);
}

.settings-page .cart-table tbody tr:hover td,
.settings-page .settings-detail-table tbody tr:hover td {
  background: var(--settings-row-hover);
}

.settings-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  background: rgba(232, 93, 4, 0.15);
  color: var(--accent-hover);
}

.settings-panel {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.settings-section .settings-panel {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.settings-page .settings-section .settings-panel {
  background: #eef0f3;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.settings-panel-nested {
  margin-top: 0.5rem;
  margin-left: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  background: transparent;
  border-radius: 0;
}

.settings-ticket-form .form-field label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
}

.settings-ticket-form input[type="checkbox"] {
  width: auto;
}

.ticket-event-choice {
  border: 0;
  margin: 0 0 0.85rem;
  padding: 0;
  min-width: 0;
}

.settings-ticket-form .ticket-event-choice .ticket-choice-option {
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  margin: 0.35rem 0;
}

.ticket-choice-option input[type="radio"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.ticket-event-existing {
  margin: 0.35rem 0 0.75rem 1.7rem;
}

.settings-page .settings-section .ticket-event-panel {
  margin: 0.5rem 0 0;
}

.ticket-event-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ticket-event-panel[hidden],
.ticket-event-existing[hidden],
.ticket-sale-window-dates[hidden] {
  display: none;
}

.ticket-sale-window-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0 1rem;
}

.settings-ticket-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.settings-ticket-link:hover strong {
  color: var(--accent-hover);
}

.settings-ticket-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1rem;
  margin: 0;
}

.settings-ticket-stats div {
  margin: 0;
}

.settings-ticket-stats dt {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.settings-ticket-stats dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.settings-ticket-traits-section {
  margin-top: 1rem;
}

.settings-ticket-traits dd {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.settings-ticket-trait-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
}

.settings-detail-table-wrap {
  overflow-x: auto;
}

.settings-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.settings-detail-table th,
.settings-detail-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.settings-detail-table th {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.settings-detail-table tbody tr:last-child td {
  border-bottom: none;
}

.settings-form-subheading {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.variation-editor-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.variation-editor-body > .btn {
  align-self: flex-start;
}

.variation-groups {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.variation-group {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
}

.variation-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.variation-group-name {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 12rem;
  max-width: 20rem;
  font-size: 0.875rem;
}

.variation-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.variation-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-size: 0.875rem;
}

.variation-chip-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.2rem;
  color: inherit;
}

.variation-option-input {
  flex: 1 1 8rem;
  min-width: 8rem;
  max-width: 14rem;
}

.variation-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.variation-bulk label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.variation-bulk .input,
.variation-stock-input,
.variation-price-input {
  width: 8rem;
}

.variation-table td {
  vertical-align: middle;
}

.variation-inline-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.variation-inline-form .input {
  width: 6rem;
  padding: 0.25rem 0.4rem;
}

.variation-row-hidden td {
  color: var(--muted);
}

.variation-edit-panel {
  margin-top: 1rem;
}

.variation-edit-panel > summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.settings-qa-disclosure > summary {
  cursor: pointer;
  color: var(--accent-hover);
  font-weight: 600;
}

.settings-qa-disclosure[open] > summary {
  margin-bottom: .55rem;
}

.settings-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.settings-qa-list li + li {
  margin-top: 0.35rem;
}

.settings-qa-q {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
}

.settings-qa-a {
  display: block;
  margin-top: 0.15rem;
}

.settings-qa-label {
  font-weight: 600;
}

.settings-stock-form {
  max-width: 24rem;
}

.checkout-question-fields .form-field + .form-field {
  margin-top: 0.75rem;
}

.checkout-questions-section {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #ddd);
}

.checkout-questions-header {
  margin-bottom: 0.75rem;
}

.checkout-questions-header h3 {
  margin: 0;
  font-size: 1rem;
}

.checkout-question-type-picker {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 0.375rem;
  background: var(--surface-muted, #f8f8f8);
}

.checkout-question-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.discount-pricing-picker {
  margin-top: 0.25rem;
}

.discount-pricing-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.discount-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.discount-pricing-panel {
  margin-top: 0.5rem;
}

.discount-pricing-btn.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.settings-coupon-form .coupon-schedule-picker ul {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.settings-coupon-form .coupon-schedule-picker li {
  margin: 0;
}

.settings-coupon-form .coupon-schedule-picker label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.checkout-question-card {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 0.375rem;
  background: var(--surface-muted, #fafafa);
}

.checkout-question-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.checkout-question-type-label {
  font-size: 0.875rem;
}

.checkout-question-delete {
  margin-left: auto;
}

.checkout-question-choices {
  margin-top: 0.5rem;
}

.checkout-question-choice-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.checkout-question-add-choice {
  margin-top: 0.5rem;
}

.account-tickets {
  max-width: 40rem;
}

.ticket-order-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1.5rem;
}

.ticket-order-header {
  margin-bottom: 0.5rem;
}

.ticket-order .ticket-list {
  margin: 0.5rem 0 0;
}

.account-page h1 {
  margin-top: 0;
}

.account-form {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.account-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.event-card,
.ticket-type-card,
.ticket-list-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
}

.event-card h2,
.event-card h3,
.ticket-type-card h3 {
  margin: 0 0 0.35rem;
}

.event-card img,
.event-detail-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.event-card img {
  margin: 0 0 0.75rem;
  display: block;
}

.event-detail-image {
  margin: 0 0 1rem;
}

.ticket-type-list,
.ticket-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
}

.ticket-type-card {
  display: grid;
  gap: 0.75rem;
}

.ticket-pass {
  text-align: center;
  padding: 1.5rem 0 3rem;
}

.ticket-code {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0.5rem 0;
}

.ticket-qr {
  background: #fff;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.ticket-status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ticket-status-valid {
  background: #1f3d2a;
  color: #8ee0a8;
}

.ticket-status-used {
  background: #3d341f;
  color: #e0c48e;
}

.ticket-status-cancelled,
.ticket-status-refunded {
  background: #3d1f1f;
  color: #e08e8e;
}

/* Homepage Styles — match shop.multigp.com category tiles */
.home-hero {
  display: none;
}

.home-slideshow {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(22rem, 62vh, 38rem);
  overflow: hidden;
  background: var(--header-bg);
  color: #fff;
}

.home-slideshow-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.home-slideshow-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.home-slideshow-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

.home-slideshow:not(.is-reduced-motion) .home-slideshow-slide.is-active img {
  animation: home-slideshow-kenburns 5s ease-out forwards;
}

@keyframes home-slideshow-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.home-slideshow-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(11, 17, 39, 0.78) 0%, rgba(11, 17, 39, 0.35) 48%, rgba(11, 17, 39, 0.15) 100%),
    linear-gradient(0deg, rgba(11, 17, 39, 0.72) 0%, rgba(11, 17, 39, 0.2) 42%, transparent 70%);
  pointer-events: none;
}

.home-slideshow-content {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 3.25rem;
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.home-slideshow-brand {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-slideshow-lede {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.home-slideshow-content .btn-primary {
  margin-top: 0.35rem;
}

.home-slideshow-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.home-slideshow-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.home-slideshow-dot.is-active,
.home-slideshow-dot:hover {
  background: #fff;
}

.home-slideshow-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .home-slideshow {
    min-height: clamp(18rem, 52vh, 28rem);
  }

  .home-slideshow-content {
    padding: 2.25rem 0 2.75rem;
  }
}

.home-storefront {
  margin: 1.75rem 0 2.5rem;
}

.category-showcase {
  margin-bottom: 2.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 16rem;
  padding: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  background: #1a1d23;
  border: none;
  text-align: left;
  isolation: isolate;
}

.category-card:hover {
  color: #fff;
}

.category-card-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.category-card:hover .category-card-media img {
  transform: scale(1.07);
}

.category-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.15) 20%, rgba(10, 12, 16, 0.82) 100%);
}

.category-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  max-width: 16rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-storefront .section-header {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  margin: 0 0 1.5rem;
  padding: 2.75rem 0 2.5rem;
}

.home-storefront .section-header h2,
.shop-header h1 {
  font-family: "Headline", var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5fb4ee;
  margin: 0 0 0.2em;
}

/* Oswald at line-height 1 puts the baseline 0.048em above the line box bottom,
   so the flipped copy needs -0.096em to touch the letters. */
.home-storefront .section-header h2[data-shadow]::after,
.shop-header h1[data-shadow]::after {
  content: attr(data-shadow);
  content: attr(data-shadow) / "";
  display: block;
  margin-top: -0.096em;
  color: #000;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 85%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
  user-select: none;
}

.shop-header h1 {
  overflow-wrap: anywhere;
}

.home-storefront .section-header .view-all-link {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
}

.view-all-link {
  color: var(--accent);
  font-weight: 650;
}

.view-all-link:hover {
  color: var(--accent-hover);
}

.shop-section {
  margin: 0 0 3.5rem;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.view-all-link {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.view-all-link:hover {
  color: var(--accent-hover);
}

.featured-items,
.racing-gates,
.upcoming-events {
  margin-bottom: 2.5rem;
}

.events-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.event-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  color: inherit;
  transition: all 0.2s ease;
  height: 100%;
}

.event-card:hover {
  border-color: var(--accent);
  background: rgba(232, 93, 4, 0.05);
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.event-month {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.event-day {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.event-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.event-location {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.event-description {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.cta-section {
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.1) 0%, rgba(18, 32, 51, 0.3) 100%);
  border: 1px solid rgba(232, 93, 4, 0.3);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-content {
  max-width: 32rem;
  margin-inline: auto;
}

.cta-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.cta-section p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    gap: 0.25rem 0.75rem;
    padding-top: 0;
  }

  .settings-page .settings-detail-table-wrap {
    overflow-x: auto;
  }

  .home-hero {
    padding: 2rem 0;
  }

  .home-hero h1 {
    font-size: 1.8rem;
  }

  .home-hero .lede {
    font-size: 1rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-storefront .section-header {
    align-items: center;
    padding: 2.25rem 0 2rem;
  }

  .home-storefront .section-header h2,
  .shop-header h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}
