/* ================================
   TESLA-STYLE DESIGN SYSTEM
   ================================ */

/* CMS images stay visible even if the content API is slow.
   Admin inline-edit still swaps in stored URLs when they arrive. */

/* -------- FONT IMPORT -------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* -------- ROOT VARIABLES -------- */
:root {
  /* Colors */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-dark-gray: #171a20;
  --color-mid-gray: #393c41;
  --color-light-gray: #5c5e62;
  --color-border-gray: #d0d1d2;
  --color-bg-gray: #f4f4f4;

  /* Buttons */
  --button-primary-bg: #000000;
  --button-primary-text: #ffffff;
  --button-secondary-bg: rgba(255,255,255,0.85);
  --button-secondary-text: #000000;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1200px;

  /* Animation */
  --transition-fast: 0.2s ease;
}

/* -------- GLOBAL RESET -------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

html, body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-dark-gray);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -------- CONTAINER -------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* -------- TYPOGRAPHY -------- */
h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h2 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
}

p {
  font-size: 16px;
  color: var(--color-light-gray);
  max-width: 600px;
}

.small-text {
  font-size: 14px;
  color: var(--color-light-gray);
}

/* -------- LINKS -------- */
a {
  color: var(--color-dark-gray);
  text-decoration: none;
  border-bottom: none;
}

a:hover,
a:focus {
  border-bottom: none;
  text-decoration: none;
}

/* -------- BUTTONS -------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.button-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  border: none;
}

.button-primary:hover {
  opacity: 0.85;
}

.button-secondary {
  background: var(--button-secondary-bg);
  color: var(--button-secondary-text);
  border: 1px solid var(--color-border-gray);
}

.button-secondary:hover {
  background: var(--color-white);
}

/* -------- SECTIONS -------- */
.section {
  padding: var(--section-padding) 0;
}

.section-gray {
  background: var(--color-bg-gray);
}

.showcase-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.showcase-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.showcase-scroll-wrap {
  position: relative;
  margin-top: 40px;
  width: calc(100% + (50vw - 50%));
  margin-left: 0;
  margin-right: calc(-1 * (50vw - 50%));
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

.home-acc-grid-wrap {
  margin-top: 48px;
}
.home-acc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.home-acc-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.home-acc-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.home-acc-all {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
}
.home-acc-all:hover {
  color: #fff;
  border-bottom: none;
}
.home-acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-acc-card {
  display: flex;
  flex-direction: column;
  background: #151515;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-acc-card:hover,
.home-acc-card:focus {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.16);
  outline: none;
}
.home-acc-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.home-acc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.home-acc-card:hover img {
  transform: scale(1.04);
}
.home-acc-meta {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.home-acc-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #f3f4f6;
}
.home-acc-price {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 900px) {
  .home-acc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-acc-head h2 { font-size: 22px; }
  .home-acc-grid { gap: 12px; }
}

.showcase-scroll {
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  grid-template-columns: unset;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  gap: 20px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.showcase-card.showcase-slide {
  position: relative;
  display: block;
  flex-direction: initial;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-bottom: none;
}
.showcase-card.showcase-slide:hover,
.showcase-card.showcase-slide:focus {
  border-bottom: none;
  outline: none;
}

.showcase-slide::before {
  content: "";
  display: block;
  padding-top: 100%;
}

.showcase-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,0.28) 68%, rgba(0,0,0,0.70) 100%);
  z-index: 1;
  pointer-events: none;
}

.showcase-card.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
}

.showcase-slide .showcase-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 22px;
  color: var(--color-white);
  background: none;
  z-index: 2;
}

.showcase-slide .eyebrow {
  display: none;
}
.showcase-slide .showcase-body h3,
.showcase-slide .showcase-body .small-text {
  color: var(--color-white);
}

.showcase-slide .showcase-actions {
  display: none;
}

.button-explore {
  min-width: 0;
  height: 30px;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.55);
}

.button-explore:hover {
  background: rgba(255,255,255,0.3);
}

.showcase-scroll::-webkit-scrollbar {
  height: 6px;
}

.showcase-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 999px;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--color-white);
  color: var(--color-dark-gray);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.scroll-arrow:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.scroll-arrow.left {
  left: 16px;
}

.scroll-arrow.right {
  right: 16px;
}

.showcase-row.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.showcase-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-body {
  padding: 16px 20px 20px;
}

.showcase-body h3 {
  margin-bottom: 8px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-light-gray);
  margin-bottom: 6px;
}

.showcase-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-card {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.compact-card img {
  width: 40%;
  border-radius: 10px;
}

.compact-body {
  flex: 1;
}

.map-card {
  margin-top: 40px;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.map-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------- HOME PAGE DARK THEME (neutral blacks, no blue tint) -------- */
.page-home {
  background: #0a0a0a;
}

.page-home .hero-controls {
  background: #0a0a0a;
  border-top-color: rgba(255,255,255,0.12);
}

.page-home .hero-control-btn {
  color: rgba(255,255,255,0.7);
}

.page-home .hero-control-btn:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

.page-home .hero-dot {
  background: var(--color-mid-gray);
}

.page-home .hero-dot.active {
  background: var(--color-white);
}

/* ---- Home hero ---- */
.page-home .hero {
  min-height: clamp(560px, 78vh, 860px);
  overflow: visible;
  z-index: 8;
}
.page-home .hero-bg {
  overflow: hidden;
}
.page-home .hero-container {
  min-height: clamp(560px, 78vh, 860px);
  padding-top: max(88px, 12vh);
  padding-bottom: max(48px, 8vh);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.page-home .hero-content {
  max-width: 760px;
  width: 100%;
  padding: 28px 32px 32px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.68);
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}
.page-home .hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.page-home .hero-content h1,
.page-home .hero-content .hero-brand-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.page-home .hero-content .hero-lead-title {
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  margin: 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.72);
}
.page-home .hero-meta {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
  max-width: 32em;
}
.page-home .hero-meta strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}
.page-home .hero-actions {
  gap: 12px;
  align-items: center;
}

.hero-search {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 28px 0 0;
  z-index: 5;
}

.hero-search-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.hero-search-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}

.hero-search-tab.is-active {
  background: #fff;
  color: #111;
}

.hero-search-panel {
  position: relative;
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 8px 8px 8px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.hero-search-field > svg:first-of-type {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.hero-serial-status {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-serial-status.is-ok,
.hero-serial-status.is-bad {
  display: flex;
}

.hero-serial-status.is-ok {
  color: #16a34a;
}

.hero-serial-status.is-bad {
  color: #dc2626;
}

.hero-serial-status svg {
  width: 20px;
  height: 20px;
}

.hero-search-field input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  color: #111;
  width: auto;
}

.hero-search-field input:focus {
  outline: none;
  border-color: transparent;
}

.hero-search-go {
  flex-shrink: 0;
  border: none;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.hero-search-results {
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(420px, calc(100vh - 220px));
}

.hero-search-machine {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.hero-search-machine img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.hero-search-machine h3 {
  margin: 0;
  font-size: 14px;
  color: #111;
}

.hero-search-machine p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.hero-search-viewall {
  display: block;
  padding: 12px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-top: 1px solid #f3f4f6;
  border-bottom: none;
}
.hero-search-viewall:hover {
  border-bottom: none;
}
.page-home .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.page-home .hero-btn-primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.page-home .hero-btn-primary:hover {
  background: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.page-home .hero-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}
.page-home .hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}
.page-home .hero-bg::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.78) 100%);
}

.page-home .hero-controls {
  display: none;
}

.signup-band {
  width: 100%;
  background:
    radial-gradient(ellipse 70% 120% at 100% 50%, rgba(250, 204, 21, 0.12), transparent 55%),
    #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.signup-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 28px;
  padding: 16px 24px 16px 24px;
}

.signup-band-copy {
  min-width: 0;
}

.signup-band-offer {
  margin: 0 0 4px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 700;
  max-width: 22em;
}

.signup-band-offer em {
  font-style: normal;
  color: #facc15;
}

.signup-band-lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  max-width: 38em;
}

.signup-band .hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 10px;
}

.signup-band .hero-btn {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 8px;
}

.signup-band-merch {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.signup-band-bottle {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 2px;
  text-decoration: none;
}

.signup-band-pts {
  position: absolute;
  top: 6px;
  left: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #facc15;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-band-bottle img {
  display: block;
  height: 108px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
}

.signup-band-merch-btn {
  white-space: nowrap;
}

.signup-band .hero-btn-primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow: none;
}

.signup-band .hero-btn-primary:hover {
  background: #f4f4f5;
  color: #0a0a0a;
}

.signup-band .hero-btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}

.signup-band .hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.signup-band .hero-meta {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  max-width: 42em;
  text-align: left;
}

.signup-band .hero-meta strong {
  color: #fff;
  font-weight: 600;
}

.signup-band-uk[hidden] { display: none !important; }

.page-home .section.showcase-section,
.page-home .section.section-gray.showcase-section {
  background: #0a0a0a;
  padding-top: 64px;
  padding-bottom: 96px;
}
.page-home .showcase-section > .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-home .showcase-section .showcase-card {
  background: #151515;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.page-home .showcase-section .showcase-body h3,
.page-home .showcase-section .showcase-body .small-text,
.page-home .showcase-section .eyebrow {
  color: rgba(255,255,255,0.95);
}

.page-home .showcase-section .showcase-body .small-text {
  color: rgba(255,255,255,0.75);
}

/* ---- Homepage promo cards (Parts / Accessories) ---- */
.promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.promo-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  text-decoration: none;
}
.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.promo-card:hover img {
  transform: scale(1.05);
}
.promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
}
.promo-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.promo-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.promo-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
  line-height: 1.5;
  max-width: 320px;
}
.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: gap 0.2s ease;
}
.promo-card:hover .promo-link {
  gap: 10px;
}
@media (max-width: 768px) {
  .promo-row { grid-template-columns: 1fr; }
  .promo-card { aspect-ratio: 16 / 10; }
  .promo-overlay { padding: 20px; }
  .promo-overlay h3 { font-size: 18px; }
}

.page-home .showcase-section .map-card {
  background: #000000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}
.page-home .showcase-section .map-card.brendon-approved-hero {
  background: url('/assets/hero.png') center/cover no-repeat;
}

/* ---- Brendon Approved hero card ---- */
.brendon-approved-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 32px;
  background: url('/assets/hero.png') center/cover no-repeat;
  border: none;
  overflow: hidden;
}
.brendon-approved-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
}
.brendon-approved-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(251,191,36,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(251,191,36,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.ba-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}
.ba-badge svg { width: 14px; height: 14px; stroke: #fbbf24; }
.ba-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
  position: relative;
}
.ba-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.6;
  position: relative;
}
.ba-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.ba-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.ba-btn svg { flex-shrink: 0; }
.ba-btn-primary {
  background: #fbbf24;
  color: #0a0a0a;
}
.ba-btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(251,191,36,0.25);
}
.ba-btn-primary svg { stroke: #0a0a0a; }
.ba-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
}
.ba-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.ba-btn-secondary svg { stroke: rgba(255,255,255,0.7); }
@media (max-width: 480px) {
  .brendon-approved-hero { padding: 40px 20px; }
  .ba-buttons { flex-direction: column; width: 100%; }
  .ba-btn { justify-content: center; }
}

.page-home .showcase-section .showcase-scroll-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 0;
}

.page-home .showcase-scroll-nav {
  display: none;
}

.page-home .showcase-section .showcase-scroll {
  padding-left: 20px;
  padding-right: 0;
  scrollbar-width: none;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.page-home .showcase-section .showcase-scroll.is-dragging {
  cursor: grabbing;
}

.page-home .showcase-section .showcase-scroll.is-dragging,
.page-home .showcase-section .showcase-scroll.is-dragging * {
  cursor: grabbing;
}

.page-home .showcase-section .showcase-scroll::-webkit-scrollbar {
  height: 0;
}

.page-home .showcase-section .showcase-scroll-wrap:hover .showcase-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.page-home .showcase-section .showcase-scroll-wrap:hover .showcase-scroll::-webkit-scrollbar {
  height: 6px;
}

.page-home .showcase-section .scroll-arrow {
  display: none;
}

.page-home .showcase-section .showcase-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}

/* ---- Homepage bottom CTA hero ---- */
.home-cta-hero {
  position: relative;
  padding: 100px 32px;
  background: url('/assets/hero.png') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.home-cta-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.home-cta-hero .cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}
.home-cta-hero .cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.home-cta-hero h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.home-cta-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 32px;
  line-height: 1.6;
}
.home-cta-hero .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.home-cta-hero .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.home-cta-hero .cta-btn-primary {
  background: #fff;
  color: #0a0a0a;
}
.home-cta-hero .cta-btn-primary:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}
.home-cta-hero .cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.home-cta-hero .cta-btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .home-cta-hero { padding: 64px 20px; }
  .home-cta-hero h2 { font-size: 26px; }
  .home-cta-hero .cta-buttons { flex-direction: column; }
  .home-cta-hero .cta-btn { justify-content: center; }
}

/* -------- HERO -------- */
.hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 520px;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-content > p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  background: var(--color-bg-gray);
  border-top: 1px solid var(--color-border-gray);
}

.hero-control-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.hero-control-btn:hover {
  color: var(--color-dark-gray);
  background: rgba(0,0,0,0.05);
}

.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-gray);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-dot.active {
  background: var(--color-dark-gray);
  width: 24px;
  border-radius: 4px;
}

/* -------- FORMS -------- */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--color-border-gray);
  border-radius: 4px;
  font-family: var(--font-main);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-dark-gray);
}

/* -------- TOP BAR -------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  background: #000;
  border-bottom: 1px solid #1a1a1a;
  z-index: 1201;
  display: flex;
  align-items: center;
}
.top-bar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.top-bar-left {
  justify-content: flex-start;
  margin-right: auto;
}
.top-bar-right {
  justify-content: flex-end;
  margin-left: auto;
}
.top-bar-link {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
  white-space: nowrap;
}
.top-bar-link:hover {
  color: rgba(255,255,255,0.9);
}
.top-bar-link svg {
  opacity: 0.5;
  flex-shrink: 0;
}
.top-bar-link:hover svg {
  opacity: 0.8;
}
.top-bar-machines-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #111;
  color: rgba(255,255,255,0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.top-bar-machines-btn:hover {
  color: #fff;
  border-color: #3a3a3a;
  background: #1a1a1a;
}
.nav-machines-mobile { display: none; border: none; background: none; cursor: pointer; text-align: left; font: inherit; }
.machines-sites-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.machines-sites-overlay[hidden] { display: none !important; }
.machines-sites-modal {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.machines-sites-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: #111;
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
}
.machines-sites-close:hover { color: #fff; background: #1a1a1a; }
.machines-sites-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  max-width: none;
}
.machines-sites-modal h2 {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.machines-sites-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px 32px;
}
.machines-sites-modal h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.machines-sites-modal section h3:not(:first-child) { margin-top: 22px; }
.machines-sites-modal a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-bottom: none;
  font-size: 14px;
  font-weight: 500;
}
.machines-sites-modal a:hover,
.machines-sites-modal a:focus {
  background: #1a1a1a;
  color: #fbbf24;
  border-bottom: none;
}
.machines-sites-modal a img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-machines-mobile { display: block; }
  .machines-sites-grid { grid-template-columns: 1fr; gap: 18px; }
  .machines-sites-modal { padding: 28px 18px 20px; }
}

/* -------- NAV -------- */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: #0a0a0a;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1200;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: visible;
}
@media (max-width: 768px) {
  .nav { top: 0; }
}

.nav-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-left: 118px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Nav: cart badge + logged-in user pill (shared across pages) */
.cart-count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #facc15;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #111;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

#userBtn {
  transition: background 0.15s, padding 0.2s;
}

#userBtn.is-logged-in {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#userBtn.is-logged-in:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-user-name {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Main content clearing fixed nav + top bar (36+64=100 desktop; mobile top bar hidden) */
.layout-below-nav {
  padding-top: 124px;
}

@media (max-width: 768px) {
  .layout-below-nav {
    padding-top: 84px;
  }
  body:not(.page-home):not(.td-viewer-page):not(.trn-preview-mode):not(.dash-on-messages) {
    padding-top: 22px;
  }
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav cart: popover under icon (no right slide-out drawer) */
.nav-cart-dropdown {
  position: relative;
  z-index: 5;
}

.cart-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  max-height: min(72vh, 540px);
  background: var(--color-white);
  color: var(--color-dark-gray);
  border-radius: 12px;
  border: 1px solid var(--color-border-gray);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 6;
  text-align: left;
}

.cart-popover.open {
  display: flex;
}

.basket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-gray);
  flex-shrink: 0;
}

.basket-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark-gray);
  margin: 0;
}

.basket-close {
  background: transparent;
  border: none;
  color: var(--color-dark-gray);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}

.basket-close:hover {
  background: #f3f4f6;
}

.basket-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  color: var(--color-light-gray);
}

.myb-nav-basket-remove {
  color: #dc2626 !important;
}
.myb-nav-basket-remove:hover {
  color: #b91c1c !important;
}

.basket-actions {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--color-border-gray);
  flex-shrink: 0;
}

.basket-free-delivery-hint:empty {
  display: none !important;
}

.free-delivery-hint {
  font-size: 12px;
  line-height: 1.45;
  color: #374151;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.free-delivery-hint--qualified {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.free-delivery-hint-text {
  margin: 0 0 8px;
}

.free-delivery-hint--qualified .free-delivery-hint-text {
  margin: 0;
}

.free-delivery-hint-zone {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
}

.free-delivery-progress {
  height: 5px;
  background: #dcfce7;
  border-radius: 999px;
  overflow: hidden;
}

.free-delivery-progress-bar {
  height: 100%;
  background: #16a34a;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.basket-actions .button {
  width: 100%;
  min-width: 0;
  text-align: center;
  box-sizing: border-box;
}
.basket-actions .button-secondary,
.basket-actions .basket-button {
  background: #f3f4f6;
  border: none;
  color: #111;
}
.basket-actions .button-secondary:hover,
.basket-actions .basket-button:hover {
  background: #e5e7eb;
}

.basket-guest-prompt-text {
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-gray);
}

.basket-guest-prompt-link {
  color: inherit;
  font-weight: 400;
  border-bottom: none;
}

.basket-guest-prompt-link strong {
  font-weight: 700;
  color: #111;
}

.basket-guest-prompt-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.myb-basket-line-media-link {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  border-radius: 8px;
  border-bottom: none;
}

.myb-basket-line-media-link:hover,
.myb-basket-line-media-link:focus {
  border-bottom: none;
}

.myb-basket-line-media-link:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.myb-basket-line-name-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.myb-basket-line-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
}

.cart-popover a,
.cart-popover a:hover {
  border-bottom: none;
}

.summary-item-name-link,
.summary-item-thumb-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.summary-item-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
  border-bottom: none;
}

.summary-item-thumb-link:hover {
  border-bottom: none;
}

.basket-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.basket-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.region-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  color: var(--color-dark-gray);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border-gray);
}

.region-drawer.open {
  transform: translateX(0);
}

.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: none;
}

.region-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark-gray);
}

.region-close {
  background: transparent;
  border: none;
  color: var(--color-dark-gray);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.region-body {
  padding: 20px;
  overflow: auto;
}

.region-group {
  margin-bottom: 20px;
}

.region-group h4 {
  display: none;
}

.region-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-dark-gray);
}

.region-choose {
  margin: 0 0 12px;
  font-size: 12px;
  color: #6b7280;
}
.region-item:hover {
  background: #f7f7f7;
}
.region-item.is-active {
  background: #111;
  color: #fff;
}
.region-item.is-active span {
  color: rgba(255,255,255,0.7);
}

.region-item strong {
  font-weight: 600;
}

.region-item span {
  font-size: 12px;
  color: var(--color-light-gray);
  margin-top: 2px;
}

.region-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  z-index: 1300;
}

.region-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.nav-search-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-close {
  display: none;
}

.nav-icon-btn:not(.is-open) .search-icon-close {
  display: none;
}

.nav-icon-btn.is-open .search-icon-search {
  display: none;
}

.nav-icon-btn.is-open .search-icon-close {
  display: block;
}

.search-slide {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin: 0;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--color-white);
  font-family: var(--font-main);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.search-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-search-bar {
  display: block;
  width: 100%;
  opacity: 0;
  overflow: visible;
  margin-top: 0;
  padding: 172px 0 28px;
  transition: opacity 0.25s ease;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  pointer-events: none;
  visibility: hidden;
}

.nav-search-bar.active,
body.search-open .nav-search-bar {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

body.search-open .search-slide {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-search-inner,
.nav-search-bar .nav-search-inner.container {
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}
.nav-search-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-search-bar .hero-search-tabs {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-search-bar .hero-search-tab.is-active {
  background: #fbbf24;
  color: #111;
}
.nav-search-bar .hero-search-field {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: none;
}
.nav-search-bar .hero-search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.nav-search-bar .hero-search-field > svg:first-of-type {
  color: rgba(255, 255, 255, 0.45);
}
.nav-search-bar .hero-search-field input,
.nav-search-bar .hero-search-field .search-slide {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  height: auto;
  padding: 12px 0;
  width: auto;
  flex: 1;
  min-width: 0;
}
.nav-search-bar .hero-search-field input::placeholder,
.nav-search-bar .hero-search-field .search-slide::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
.nav-search-bar .hero-search-field input:focus,
.nav-search-bar .hero-search-field .search-slide:focus {
  outline: none;
  border: none;
}
.nav-search-bar .hero-search-go {
  background: #fbbf24;
  color: #111;
}
.nav-search-bar .hero-search-go:hover {
  background: #f59e0b;
}
.nav-search-bar .live-search-results {
  left: 0;
  right: 0;
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.nav-search-bar .lsr-group + .lsr-group {
  border-top-color: #f3f4f6;
}
.nav-search-bar .lsr-group-label {
  color: #6b7280;
}
.nav-search-bar .lsr-item:hover,
.nav-search-bar .lsr-item:focus {
  background: #f9fafb;
}
.nav-search-bar .lsr-item-title,
.nav-search-bar .lsr-item-title mark,
.nav-search-bar .lsr-item-body,
.nav-search-bar .lsr-item-body p {
  color: #111;
}
.nav-search-bar .lsr-item-title mark {
  background: #fef3c7;
  color: #111;
}
.nav-search-bar .lsr-item-crumb,
.nav-search-bar .lsr-empty,
.nav-search-bar .lsr-loading,
.nav-search-bar .lsr-footer {
  color: #4b5563;
}
.nav-search-bar .lsr-item-icon {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.nav-search-bar .hero-search-machine {
  border-bottom-color: #e5e7eb;
}
.nav-search-bar .hero-search-machine h3,
.nav-search-bar .hero-search-viewall {
  color: #111;
}
.nav-search-bar .hero-search-machine p {
  color: #4b5563;
}
.nav-search-bar .hero-search-viewall {
  border-top-color: #e5e7eb;
}
.nav-search-bar .lsr-footer {
  border-top-color: #e5e7eb;
}
.nav-search-bar .lsr-footer a {
  color: #111;
}

.search-slide::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-slide:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}

/* -------- LIVE SEARCH RESULTS -------- */
.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 24px;
  right: 24px;
  max-height: 480px;
  overflow-y: auto;
  background: #fff;
  color: #111;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  display: none;
  z-index: 1100;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.hero-content .live-search-results p,
.hero-content .live-search-results h3,
.hero-content .live-search-results a {
  color: inherit;
  margin-bottom: 0;
}
.hero-content .lsr-item-title { color: #111; }
.hero-content .lsr-item-crumb { color: #6b7280; }
.hero-content .lsr-group-label { color: #9ca3af; }
.hero-content .lsr-empty,
.hero-content .lsr-loading,
.hero-content .lsr-footer { color: #6b7280; }
.hero-content .lsr-footer a { color: #4b5563; }
.hero-content .hero-search-viewall { color: #111; }
.live-search-results.open { display: block; }
.live-search-results::-webkit-scrollbar { width: 6px; }
.live-search-results::-webkit-scrollbar-track { background: transparent; }
.live-search-results::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

.lsr-group { padding: 6px 0; }
.lsr-group + .lsr-group { border-top: 1px solid #f3f4f6; }
.lsr-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9ca3af; padding: 10px 18px 6px; margin: 0;
}
.lsr-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; cursor: pointer; text-decoration: none;
  border-bottom: none;
  transition: background 0.12s;
}
.lsr-item:hover, .lsr-item:focus {
  background: #f3f4f6;
  outline: none;
  border-bottom: none;
}
.lsr-item-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: #f3f4f6; border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lsr-item-icon img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lsr-item-icon svg { color: #9ca3af; flex-shrink: 0; }
.lsr-item-body { flex: 1; min-width: 0; }
.lsr-item-title {
  font-size: 13px; font-weight: 600; color: #111;
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lsr-item-title mark {
  background: #fef3c7; color: #111; font-weight: 700;
  text-decoration: none;
}
.lsr-item-crumb {
  font-size: 11px; color: #6b7280; margin: 2px 0 0;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lsr-item-crumb svg { flex-shrink: 0; opacity: 0.5; }
.lsr-item-badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.lsr-badge-parts { background: #dbeafe; color: #1d4ed8; }
.lsr-badge-machines { background: #ede9fe; color: #6d28d9; }
.lsr-badge-drawings { background: #dcfce7; color: #15803d; }
.lsr-badge-training { background: #fef3c7; color: #b45309; }
.lsr-badge-servicing { background: #ffe4e6; color: #be123c; }
.lsr-badge-pages { background: #f3f4f6; color: #4b5563; }

.lsr-empty {
  padding: 32px 18px; text-align: center;
  color: #6b7280; font-size: 13px;
}
.lsr-loading {
  padding: 24px 18px; text-align: center;
  color: #6b7280; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lsr-loading .dot { display: none !important; }

.lsr-footer {
  padding: 10px 18px; text-align: center;
  border-top: 1px solid #f3f4f6;
  color: #6b7280;
}
.lsr-footer a {
  font-size: 12px; font-weight: 600; color: #4b5563;
  text-decoration: none; transition: color 0.15s;
}
.lsr-footer a:hover { color: #111; }

@media (max-width: 768px) {
  .live-search-results { left: 16px; right: 16px; max-height: 60vh; }
}

.nav .logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  transform: translateY(20px);
}

.nav .logo-wrap:hover {
  opacity: 0.8;
}

.nav .logo-img {
  height: 56px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.nav .logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-white);
  border-bottom: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: none;
  transition: color var(--transition-fast);
  position: relative;
}

/* Mega children as tap targets inside the mobile nav sheet (desktop: hidden) */
.nav-mobile-mega-sublinks {
  display: none;
}

.nav-link-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
}

.nav-link-btn.active {
  color: var(--color-white);
}

.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 100px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-16px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: transform 0.35s ease, max-height 0.35s ease;
  z-index: 900;
}

.mega-menu.open {
  transform: translateY(0);
  pointer-events: auto;
  max-height: 900px;
  visibility: visible;
  z-index: 1100;
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 40px 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-height: 800px;
  overflow-x: hidden;
  overflow-y: hidden;
}
#mega-accessories .mega-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: start;
  gap: 28px 24px;
}
#mega-accessories .mega-col {
  min-width: 0;
  position: relative;
  z-index: 1;
}
#mega-accessories .mega-col--merch {
  grid-column: 4;
  grid-row: 2;
}
#mega-accessories .mega-col h4 {
  line-height: 1.3;
  white-space: normal;
}
#mega-accessories .mega-item {
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}
@media (max-width: 900px) {
  #mega-accessories .mega-col--merch {
    grid-column: auto;
    grid-row: auto;
  }
}

.mega-parts-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  width: 100%;
  grid-column: 1 / -1;
}

.mega-parts-panel {
  min-width: 0;
}

.mega-parts-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  transition: opacity 0.2s ease;
}

.mega-parts-panel.is-fading .mega-parts-title,
.mega-parts-panel.is-fading .mega-parts-gallery {
  opacity: 0;
}

.mega-parts-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  transition: opacity 0.2s ease;
  min-width: 0;
}

.mega-parts-gallery--picks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mega-parts-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

.mega-parts-empty a {
  color: rgba(255,255,255,0.75);
}

button.mega-item {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

#mega-parts .mega-item.is-active {
  color: #fff;
  font-weight: 600;
}

.mega-parts-pick {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.mega-parts-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  color: rgba(255,255,255,0.55);
}

.mega-parts-pick .mega-parts-name {
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
}
.mega-parts-pick:hover .mega-parts-thumb--icon {
  color: #fbbf24;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
@media (max-width: 900px) {
  .mega-parts-gallery--picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mega-parts-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
}

/* Random / no-popularity teaser: keep gallery to ~2 rows */
.mega-parts-gallery.mega-parts-gallery--random {
  max-height: 300px;
  overflow: hidden;
}

.mega-parts-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, opacity 0.15s;
}
.mega-parts-card:hover {
  transform: translateY(-2px);
}
.mega-parts-card:hover .mega-parts-name {
  color: rgba(255,255,255,0.95);
}

.mega-parts-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.mega-parts-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mega-parts-name {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mega-parts-thumb--view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  border-style: dashed;
}
.mega-parts-card--view-all:hover .mega-parts-thumb--view-all {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.mega-parts-name--view-all {
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}
.mega-parts-card--view-all:hover .mega-parts-name--view-all {
  color: rgba(255,255,255,0.98);
}

.mega-col h4 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.mega-col h4 a {
  color: inherit;
  text-decoration: none;
}
.mega-col h4 a:hover { color: #fbbf24; }

.mega-item {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 6px 0;
  text-decoration: none;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mega-menu.open .mega-item {
  opacity: 1;
  transform: translateY(0);
}

.mega-menu.open .mega-col:nth-child(1) .mega-item { transition-delay: 0.05s; }
.mega-menu.open .mega-col:nth-child(2) .mega-item { transition-delay: 0.1s; }
.mega-menu.open .mega-col:nth-child(3) .mega-item { transition-delay: 0.15s; }

.nav-link:hover {
  color: var(--color-white);
  border-bottom: none;
}

/* Nav icon buttons */
.nav-icon-btn {
  background: transparent !important;
  border: none !important;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: color var(--transition-fast);
  color: rgba(255,255,255,0.9);
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0;
}

#regionBtn.nav-icon-btn {
  gap: 6px;
  padding: 4px 8px 4px 4px;
}

.nav-region-iso {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: inherit;
}

.nav-icon-btn:hover {
  background: transparent !important;
  color: var(--color-white);
}

.nav-icon-btn:focus,
.nav-icon-btn:active,
.nav-icon-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.nav-icon-btn.is-locked {
  display: none !important;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: block;
  background: transparent;
  stroke-width: 2.75;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user-icon {
  color: rgba(255,255,255,0.9);
  transition: color var(--transition-fast);
  flex-shrink: 0;
  background: transparent;
  display: block;
}

.nav-dropdown:hover .nav-user-icon {
  color: var(--color-white);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 1001;
}

.nav-dropdown-menu.show {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-bottom: none;
  transition: background var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}

/* ── Site user dropdown (logged-in nav) ── */
.site-user-menu { position: relative; display: flex; align-items: center; }
.site-user-btn {
  display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; background: transparent;
  cursor: pointer; transition: border-color 0.15s, background 0.15s; color: #fff;
}
.site-user-btn:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.site-user-avatar {
  width: 26px; height: 26px; border-radius: 6px; background: #fff; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  overflow: hidden; background-size: cover; background-position: center; background-repeat: no-repeat;
}
.site-user-avatar.has-photo { color: transparent; }
.site-user-btn-name { font-size: 13px; font-weight: 500; }
.site-user-chevron { opacity: 0.5; transition: transform 0.15s; }
.site-user-btn[aria-expanded="true"] .site-user-chevron { transform: rotate(180deg); }

.site-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; max-height: min(560px, calc(100vh - 72px)); overflow: auto;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 1001; padding: 6px;
}
.site-user-dropdown.open { display: block; }
.site-user-dd-header {
  padding: 10px 44px 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 4px;
  position: sticky; top: 0; background: rgba(0,0,0,0.95); z-index: 1;
}
.site-user-dd-name { font-size: 13px; font-weight: 600; color: #fff; }
.site-user-dd-email { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-user-dropdown .acct-dd-country {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 20px; padding: 0 6px; box-sizing: border-box;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; line-height: 1;
  color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px;
  background: rgba(255,255,255,0.08); pointer-events: none; user-select: none;
}
.site-user-dropdown .acct-dd-country[hidden] { display: none; }
.site-user-dropdown .acct-dd-type {
  display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.site-user-dropdown .acct-dd-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px;
}
.site-user-dropdown .acct-dd-split.is-solo { grid-template-columns: 1fr; }
.site-user-dropdown .acct-dd-tile {
  min-width: 0; padding: 6px 7px 5px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.site-user-dropdown .acct-dd-tile--rewards {
  border: 1px solid rgba(251,191,36,0.28); background: rgba(245,158,11,0.14);
}
.site-user-dropdown .acct-dd-tile--account {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06);
}
.site-user-dropdown .acct-dd-tile--account.is-over { border-color: rgba(248,113,113,0.4); background: rgba(239,68,68,0.12); }
.site-user-dropdown .acct-dd-tile-head {
  display: flex; align-items: center; gap: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.site-user-dropdown .acct-dd-tile--rewards .acct-dd-tile-head { color: #fbbf24; }
.site-user-dropdown .acct-dd-tile-head svg { width: 11px; height: 11px; flex-shrink: 0; opacity: 1; }
.site-user-dropdown .acct-dd-tile--rewards .acct-dd-tile-head svg { color: #fbbf24; }
.site-user-dropdown .acct-dd-tile-val { font-size: 13px; font-weight: 800; color: #fff; line-height: 1.1; }
.site-user-dropdown .acct-dd-tile-val strong { font-size: 13px; font-weight: 800; color: #fff; }
.site-user-dropdown .acct-dd-text-btn {
  display: inline; padding: 0; margin: 0; border: 0; background: none;
  font-family: inherit; font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.55);
  text-decoration: none; cursor: pointer; line-height: 1.25;
}
.site-user-dropdown .acct-dd-text-btn:hover { color: #fff; text-decoration: underline; }
.site-user-dropdown .acct-dd-tile--rewards .acct-dd-text-btn { color: #f59e0b; }
.site-user-dropdown .acct-dd-tile--rewards .acct-dd-text-btn:hover { color: #fde68a; }
.site-user-dropdown .acct-dd-credit-bar {
  height: 3px; width: 100%; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden;
}
.site-user-dropdown .acct-dd-credit-fill {
  display: block; height: 100%; width: 0; border-radius: 999px; background: #fbbf24;
}
.site-user-dropdown .acct-dd-credit-fill[data-tone="danger"] { background: #ef4444; }
.site-user-dd-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  font-size: 13px; color: rgba(255,255,255,0.7); border-radius: 6px; cursor: pointer;
  text-decoration: none; font-weight: 500; transition: background 0.1s, color 0.1s;
}
.site-user-dd-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.site-user-dd-item svg { width: 15px; height: 15px; opacity: 0.5; flex-shrink: 0; }
.site-user-dd-item:hover svg { opacity: 0.8; }
.site-user-dd-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }
.site-user-dd-item.danger { color: #f87171; }
.site-user-dd-item.danger svg { color: #f87171; opacity: 0.7; }
.site-user-dd-item.danger:hover { background: rgba(248,113,113,0.1); }

.site-user-dd-item.danger:hover { background: rgba(248,113,113,0.1); }

/* -------- Mobile / tablet bottom navigation -------- */
.mobile-bottom-nav,
.mobile-bottom-nav-fade {
  display: none;
}

@media (max-width: 1024px) {
  body.has-mobile-bottom-nav {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* Search / basket live in the bottom bar. Account name stays in the top bar. */
  body.has-mobile-bottom-nav .nav-search-group,
  body.has-mobile-bottom-nav .nav-cart-dropdown,
  body.has-mobile-bottom-nav #navMessagesBtn {
    display: none !important;
  }
  body.has-mobile-bottom-nav #userBtn {
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
  }
  body.has-mobile-bottom-nav #userBtn .nav-icon {
    width: 20px;
    height: 20px;
    stroke: #fff;
  }
  body.has-mobile-bottom-nav #userMenu {
    z-index: 4200;
  }

  /* Black fade from page bottom up to the top of the floating bar */
  .mobile-bottom-nav-fade {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(14px + 66px + env(safe-area-inset-bottom, 0px));
    z-index: 949;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.5) 55%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 950;
    height: 66px;
    padding: 6px 10px 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    align-items: center;
    justify-content: space-around;
  }

  .mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
  }

  .mobile-bottom-nav-item:hover,
  .mobile-bottom-nav-item:focus-visible {
    color: #111;
    border-bottom: none;
  }

  .mobile-bottom-nav-item.is-active {
    color: #111;
  }

  .mobile-bottom-nav,
  .mobile-bottom-nav-item,
  .mobile-bottom-nav-icon {
    overflow: visible;
  }

  .mobile-bottom-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
  }

  .mobile-bottom-nav-icon svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-nav-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .mobile-bottom-nav-icon--cart .mobile-bottom-nav-badge,
  .mobile-bottom-nav-icon--chat .mobile-bottom-nav-badge {
    position: absolute;
    top: -2px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #facc15;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
  }
  .mobile-bottom-nav-icon--cart .mobile-bottom-nav-badge.is-on {
    display: flex !important;
  }

  .nav-cart-dropdown .cart-popover.open {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(62vh, calc(100dvh - 86px - env(safe-area-inset-bottom, 0px) - 96px));
    z-index: 960;
  }

  #basketBackdrop.basket-backdrop,
  #basketBackdrop.basket-backdrop.show {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 768px) {
  #navMessagesBtn { display: none !important; }
  .site-user-btn-name {
    display: inline;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .site-user-chevron { display: block; }
  .site-user-btn { padding: 4px 8px 4px 4px; }
  .site-user-dropdown { right: 0; width: min(340px, calc(100vw - 24px)); }
}

/* -------- FOOTER -------- */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-light-gray);
}

.footer-dark {
  background: #0a0a0a;
  color: var(--color-white);
  padding: 60px 0 24px;
}

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

.footer-brand img {
  height: 36px;
  margin-bottom: 12px;
}

.footer-dark .small-text {
  color: rgba(255,255,255,0.7);
}

.footer-col h4 {
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

.footer-social a {
  margin-left: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--color-white);
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1024px) {
  .nav {
    height: 64px;
    padding: 0 24px;
  }

  .nav-center {
    gap: 20px;
  }

  .hero-container {
    padding: 60px 24px;
    min-height: 480px;
  }

  .page-home .hero-container {
    min-height: clamp(520px, 72vh, 760px);
  }

  .hero-content {
    text-align: center;
    align-items: center;
    margin: 0 auto;
  }

  .page-home .hero-content {
    align-items: flex-start;
    text-align: left;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .page-home .showcase-section > .container {
    gap: 28px;
  }

  .page-home .section.showcase-section.section-gray {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .button {
    min-width: 100%;
  }

  .nav {
    height: 56px;
    padding: 0 16px;
  }

  .nav-center {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    background: #0a0a0a;
    padding: 0 24px 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 900;
    overflow-y: auto;
  }

  .nav-center.open {
    display: flex;
  }

  .nav:has(.nav-center.open) {
    overflow: hidden;
  }

  .nav:has(.nav-center.open) .logo-wrap {
    transform: none;
  }

  .nav-center.open .nav-mobile-mega-sublinks {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    border-left: none;
    align-self: stretch;
    background: #0a0a0a;
  }

  .nav-mobile-mega-group {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-mobile-mega-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 15px 20px 15px 32px;
    border: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
  }

  .nav-mobile-mega-heading svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.55);
    transition: transform 0.18s ease;
  }

  .nav-mobile-mega-group.is-open .nav-mobile-mega-heading svg {
    transform: rotate(180deg);
  }

  .nav-mobile-mega-group-links {
    display: none;
    flex-direction: column;
    background: #050505;
  }

  .nav-mobile-mega-group.is-open .nav-mobile-mega-group-links {
    display: flex;
  }

  .nav-mobile-mega-sublink {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 13px 20px 13px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-mobile-mega-sublink.nav-mobile-mega-viewall {
    font-weight: 650;
    color: #fff;
  }

  .nav-mobile-mega-sublink:hover {
    color: var(--color-white);
  }

  .nav-right { gap: 4px; }
  .nav-right #regionBtn { order: 1; }
  .nav-toggle {
    order: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
  }
  .nav-right #navLoggedOut,
  .nav-right .site-user-menu { order: 3; }

  .nav-link {
    font-size: 13px;
  }

  .nav-dropdown-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .nav .logo-img {
    height: 48px;
  }

  .hero-container {
    padding: 40px 16px;
    min-height: 420px;
  }

  .page-home .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .page-home .hero-bg {
    position: relative;
    inset: auto;
    height: 210px;
    flex-shrink: 0;
  }

  .page-home .hero-image {
    object-position: center 28%;
  }

  .page-home .hero-bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 30%, rgba(0, 0, 0, 0.55) 100%);
  }

  .page-home .hero-container {
    min-height: 0;
    padding: 0 14px 16px;
    margin-top: -28px;
    justify-content: flex-start;
    align-items: stretch;
  }

  .page-home .hero-content {
    align-items: stretch;
    text-align: left;
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background: rgba(12, 12, 12, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .page-home .hero-content .hero-brand-title {
    font-size: 30px;
    margin-bottom: 6px;
  }

  .page-home .hero-content .hero-lead-title {
    font-size: 14px;
    line-height: 1.4;
    max-width: none;
  }

  .page-home .hero-eyebrow {
    margin-bottom: 10px;
  }

  .page-home .hero-search {
    margin-top: 16px;
    max-width: none;
  }

  .page-home .hero-search-tabs {
    display: flex;
    width: 100%;
  }

  .page-home .hero-search-tab {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
  }

  .page-home .hero-search-field {
    min-height: 50px;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 12px;
  }

  .page-home .hero-search-field input {
    font-size: 16px;
    padding: 10px 0;
  }

  .page-home .hero-search-go {
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero-search {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-search-tabs {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-search-go {
    width: auto;
  }

  .signup-band-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px 16px 14px;
    gap: 12px;
  }

  .signup-band-offer,
  .signup-band-lead {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .signup-band .hero-actions {
    justify-content: center;
    flex-direction: row;
    width: auto;
    max-width: none;
  }

  .signup-band .hero-btn {
    width: auto;
  }

  .signup-band .hero-meta {
    text-align: center;
    max-width: none;
  }

  .signup-band-merch {
    display: contents;
  }

  .signup-band-bottle {
    order: -1;
    justify-content: center;
  }

  .signup-band-bottle img {
    height: 264px;
  }

  .signup-band-merch-btn {
    order: 1;
    align-self: center;
  }

  .page-home .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .hero-btn {
    width: 100%;
  }

  .page-home .hero-meta {
    text-align: center;
    max-width: 26em;
  }

  .hero-content h1 {
    font-size: 32px;
  }

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

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

  .nav-search {
    width: 160px;
  }

  .nav-dropdown-btn {
    font-size: 13px;
    padding: 6px 12px;
  }

  .nav .logo-img {
    height: 48px;
  }

  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-row.compact {
    grid-template-columns: 1fr;
  }

  .compact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .compact-card img {
    width: 100%;
  }

  .scroll-arrow {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }

  .footer-social a {
    margin-left: 0;
    margin-right: 12px;
  }
}

.card-add-cart {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  border: none;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s, color 0.15s;
}
.card-add-cart:hover {
  background: #e5e7eb;
  color: #111;
}
.card-add-cart.added,
.card-add-cart.is-adding { background: #16a34a; color: #fff; }
@media (max-width: 1024px) {
  .card-add-cart.is-added-label,
  .add-to-cart-btn.is-added-label,
  .part-add-btn.is-added-label,
  .pp-add-btn.is-added-label {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 28px;
    padding: 6px 10px;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
  }
  .acc-product-card .card-add-cart.is-added-label {
    width: auto;
    height: 28px;
    padding: 0 10px;
    right: 8px;
  }
}
.card-add-cart:disabled { cursor: default; }

.ar-card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 14px 12px;
}
.ar-card-meta .ar-card-foot {
  padding: 0;
}
@media (max-width: 960px) {
  .ar-card-meta .ar-card-foot,
  .ar-card .ar-card-foot {
    justify-content: flex-start;
  }
}

.prices-ex-vat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9ca3af;
  line-height: 1.3;
}
.prices-ex-vat[hidden] { display: none !important; }

.ar-card-info {
  text-decoration: none;
  color: inherit;
}
.ar-card-img { display: block; text-decoration: none; color: inherit; }
.ar-card-thumb { text-decoration: none; }

.acc-product-card { position: relative; }
.acc-product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.acc-product-card .card-add-cart {
  position: absolute;
  top: auto;
  bottom: calc(var(--acc-card-meta) + 8px);
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
  border: none;
  box-shadow: none;
}
.acc-product-card .card-add-cart:hover { background: #e5e7eb; color: #111; }
.acc-product-card .card-add-cart.added,
.acc-product-card .card-add-cart.is-adding { background: #16a34a; color: #fff; }
.acc-product-card .prices-ex-vat { color: rgba(255, 255, 255, 0.5); }

.buy-with-rewards {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  width: fit-content;
}
.buy-with-rewards:hover { background: #d1fae5; color: #065f46; }

.line-dual-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.line-dual-price .line-cash--was {
  text-decoration: line-through;
  color: #9ca3af;
  font-weight: 500;
}
.line-dual-price .line-free {
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}
.line-dual-price .line-pts,
.line-pts {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
}
.summary-row.summary-rewards,
.summary-row.summary-rewards-earn { color: #047857; }
.summary-row.summary-rewards-spend { color: #b45309; }

/* Logged-in store sidebar (customer: wide menu, collapsible; staff: icon rail) */
.store-account-sidebar {
  display: none !important;
  position: fixed !important;
  top: 100px;
  left: 0;
  right: auto !important;
  bottom: 0;
  width: 240px !important;
  max-width: 240px !important;
  min-width: 80px;
  height: auto !important;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 10px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1050;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
  transition: width 0.2s ease;
}
html.has-store-sidebar body.search-open .store-account-sidebar,
html.has-store-sidebar:has(.mega-menu.open) .store-account-sidebar {
  z-index: 800;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) {
  width: 80px !important;
  max-width: 80px !important;
  padding: 16px 0 24px;
  align-items: center;
}
#storeAdminSidebar {
  width: 220px !important;
  max-width: 220px !important;
  padding: 12px 10px 24px;
  align-items: stretch;
}
html.admin-nav-collapsed #storeAdminSidebar {
  width: 80px !important;
  max-width: 80px !important;
  padding: 12px 0 48px;
  align-items: center;
}
.store-account-sidebar::-webkit-scrollbar { width: 5px; }
.store-account-sidebar::-webkit-scrollbar-track { background: transparent; }
.store-account-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}
.store-account-sidebar.is-visible { display: flex !important; }
.store-account-sidebar .dash-sidebar-nav {
  flex: 0 0 auto; width: 100%; display: flex; flex-direction: column;
  align-items: stretch; gap: 2px; min-width: 0;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-sidebar-nav,
html.admin-nav-collapsed #storeAdminSidebar .dash-sidebar-nav { align-items: center; }
.store-account-sidebar .dash-nav-link {
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 12px; padding: 10px 12px; width: 100%; border: none; background: none;
  border-radius: 10px; cursor: pointer; transition: background 0.15s, color 0.15s;
  color: #9ca3af; position: relative; text-decoration: none; font: inherit;
  box-sizing: border-box;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-link,
html.admin-nav-collapsed #storeAdminSidebar .dash-nav-link {
  flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 3px; width: 68px;
}
.store-account-sidebar .dash-nav-link:hover { background: #141414; color: #e5e7eb; }
.store-account-sidebar .dash-nav-link.active {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}
.store-account-sidebar .dash-nav-link svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.35; flex-shrink: 0; }
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-link svg { width: 26px; height: 26px; }
.store-account-sidebar .dash-nav-link .dash-nav-icon-img {
  display: block;
  width: 22px; height: 22px;
  flex-shrink: 0;
  pointer-events: none;
  background-color: #9ca3af;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
  -webkit-mask-source-type: alpha;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-link .dash-nav-icon-img { width: 32px; height: 32px; }
.store-account-sidebar .dash-nav-link:hover .dash-nav-icon-img {
  background-color: #e5e7eb;
}
.store-account-sidebar .dash-nav-link.active .dash-nav-icon-img {
  background-color: #fbbf24;
}
.store-account-sidebar .dash-nav-link > span:not(.sb-badge):not(.dash-nav-icon-img) {
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  text-align: left; line-height: 1.2; white-space: nowrap;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-link > span:not(.sb-badge):not(.dash-nav-icon-img) {
  font-size: 11px; text-align: center;
}
html.admin-nav-collapsed #storeAdminSidebar .dash-nav-link > span:not(.sb-badge):not(.dash-nav-icon-img) {
  display: none;
}
.store-account-sidebar .sb-badge {
  position: static; margin-left: auto; min-width: 16px; height: 16px;
  background: #ef4444; color: #fff; font-size: 9px; font-weight: 700;
  border-radius: 999px; display: none; align-items: center; justify-content: center;
  padding: 0 4px; box-sizing: border-box;
}
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .sb-badge,
html.admin-nav-collapsed #storeAdminSidebar .sb-badge {
  position: absolute; top: 4px; right: 6px; margin-left: 0;
}
.store-account-sidebar .dash-nav-toolbar { width: 100%; display: flex; justify-content: flex-end; padding: 40px 2px 18px; }
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-toolbar { justify-content: center; padding: 40px 0 18px; }
.store-account-sidebar .dash-nav-collapse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; box-sizing: border-box;
  background: none; border: none; color: #9ca3af; border-radius: 8px;
  padding: 0; cursor: pointer;
}
.store-account-sidebar .dash-nav-collapse:hover { background: rgba(255,255,255,0.06); color: #f3f4f6; }
.store-account-sidebar .dash-nav-collapse svg { width: 16px; height: 16px; }
.store-account-sidebar .dash-nav-collapse-label { display: none; }
html.dash-nav-collapsed .store-account-sidebar:not(#storeAdminSidebar) .dash-nav-collapse svg { transform: scaleX(-1); }

.sb-acct-boxes {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 16px 2px 4px;
  box-sizing: border-box;
}
.sb-acct-boxes[hidden] { display: none !important; }
html.dash-nav-collapsed .sb-acct-boxes { display: none !important; }
.sb-acct-box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 8px;
  text-decoration: none; box-sizing: border-box;
}
.sb-acct-box-kicker {
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.sb-acct-box strong { font-size: 14px; font-weight: 800; line-height: 1.15; }
.sb-acct-box--credit {
  background: #fff; color: #111; border: 1px solid rgba(255,255,255,0.12);
}
.sb-acct-box--credit .sb-acct-box-kicker { color: #6b7280; }
.sb-acct-box--credit.is-over { border-color: #ef4444; }
.sb-acct-box--points {
  background: transparent; color: #fbbf24; border: none; padding: 4px 10px;
}
.sb-acct-box--points .sb-acct-box-kicker { color: #fbbf24; }
.sb-acct-points-link {
  display: block;
  padding: 8px 10px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.sb-acct-points-link strong { font-weight: 800; }
.sb-acct-points-link:hover { color: #fcd34d; }
.sb-acct-credit-bar {
  display: block; height: 3px; width: 100%; margin-top: 4px;
  border-radius: 999px; background: #e5e7eb; overflow: hidden;
}
.sb-acct-credit-fill {
  display: block; height: 100%; width: 0; border-radius: 999px; background: #111;
}
.sb-acct-credit-fill[data-tone="danger"] { background: #ef4444; }
.sb-acct-credit-fill[data-tone="warning"] { background: #d97706; }
#storeAdminSidebar::-webkit-scrollbar { width: 0; }
html.admin-nav-collapsed #storeAdminSidebar { gap: 4px; }
html.admin-nav-collapsed #storeAdminSidebar .dash-sidebar-nav { gap: 4px; }
html.admin-nav-collapsed #storeAdminSidebar .dash-nav-link { gap: 0; padding: 10px 4px; }
#storeAdminSidebar .dash-nav-link svg { width: 22px; height: 22px; }
#storeAdminSidebar .admin-nav-collapse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; box-sizing: border-box;
  background: none; border: none; color: #9ca3af; border-radius: 8px;
  padding: 0; cursor: pointer;
}
#storeAdminSidebar .admin-nav-collapse:hover { background: rgba(255,255,255,0.06); color: #f3f4f6; }
#storeAdminSidebar .admin-nav-collapse svg { width: 16px !important; height: 16px !important; }
#storeAdminSidebar .dash-nav-toolbar { padding: 4px 2px 8px; }
html.admin-nav-collapsed #storeAdminSidebar .dash-nav-toolbar { justify-content: center; padding: 4px 0 8px; }
html.admin-nav-collapsed #storeAdminSidebar .admin-nav-collapse svg { transform: scaleX(-1); }
@media (min-width: 1025px) {
  html.has-store-sidebar,
  html.has-store-sidebar body { overflow-x: clip; }
  html.has-store-sidebar body,
  body.has-store-sidebar { padding-left: 240px !important; }
  html.has-store-sidebar.dash-nav-collapsed body { padding-left: 80px !important; }
  html.has-store-sidebar.store-rail-staff body,
  body.has-store-sidebar.store-rail-staff { padding-left: 220px !important; }
  html.has-store-sidebar.store-rail-staff.admin-nav-collapsed body,
  body.has-store-sidebar.store-rail-staff.admin-nav-collapsed { padding-left: 80px !important; }
}
@media (max-width: 768px) {
  .store-account-sidebar { top: 64px; }
}
@media (max-width: 1024px) {
  html.has-store-sidebar body,
  body.has-store-sidebar { padding-left: 0; }
  .store-account-sidebar,
  .store-account-sidebar.is-visible { display: none !important; }
}

/* Extra / special delivery badge (lorry) */
.myb-delivery-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 9px 6px 7px;
  border-radius: 8px;
  background: #facc15;
  color: #111827;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  max-width: calc(100% - 16px);
}
.myb-delivery-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.myb-delivery-badge-icon svg { display: block; }
.part-card-img-wrap,
.product-card-media,
.ar-card,
.product-card,
.pp-simple-photo,
.pp-related-card-img {
  position: relative;
  isolation: isolate;
}
.product-custom-label {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 4px;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.product-custom-label.is-inline {
  position: static;
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 8px;
  pointer-events: none;
}
.product-card-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 6px 0 8px;
}
.acc-product-info .product-custom-label.is-inline,
.ar-card-info .product-custom-label.is-inline {
  margin: 0 0 6px;
}
.product-card-swatch,
.part-card-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.part-card-img-wrap .myb-delivery-badge,
.product-card-media .myb-delivery-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  pointer-events: none;
}

/* Replace bouncing dots with the same thin loading bar used on parts hand-off */
@keyframes mybLoadBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.myb-load-bar,
.dot-spinner,
.admin-loader .dot-spinner,
.page-loader .dot-spinner,
.loader-dots {
  display: block !important;
  width: 180px;
  max-width: 62vw;
  height: 2px;
  margin: 0 auto;
  padding: 0 !important;
  gap: 0 !important;
  background: #e8e8ea;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.dot-spinner span,
.admin-loader .dot-spinner span,
.page-loader .dot-spinner span,
.loader-dots span,
.lsr-loading .dot {
  display: none !important;
  animation: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.dot-spinner::after,
.admin-loader .dot-spinner::after,
.page-loader .dot-spinner::after,
.loader-dots::after {
  content: '';
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 99px;
  background: #111;
  animation: mybLoadBar 1.05s ease-in-out infinite;
}
.myb-load-bar > span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 99px;
  background: #111;
  animation: mybLoadBar 1.05s ease-in-out infinite;
}
.lsr-loading {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lsr-loading:has(.myb-load-bar)::before {
  display: none !important;
}
.lsr-loading::before {
  content: '';
  display: block;
  width: 180px;
  max-width: 62vw;
  height: 2px;
  border-radius: 99px;
  overflow: hidden;
  background: #e8e8ea;
  background-image: linear-gradient(#111, #111);
  background-size: 38% 100%;
  background-repeat: no-repeat;
  animation: mybLoadBar 1.05s ease-in-out infinite;
}
.page-loader .dot-spinner,
.page-loader .myb-load-bar,
body.machines-theme .dot-spinner {
  background: rgba(255, 255, 255, 0.14) !important;
}
.page-loader .dot-spinner::after,
.page-loader .myb-load-bar > span,
body.machines-theme .dot-spinner::after {
  background: #facc15 !important;
}
