/* ==========================================================================
   BLACKMOTO Theme – main.css
   Dark premium motorcycle theme for Germany & Austria
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */

:root {
  /* Light theme — premium clean look with the BLACKMOTO primary green. */
  --color-bg:          #ffffff;
  --color-surface:     #ffffff;
  --color-surface-2:   #f7f7f8;
  --color-surface-3:   #eef0f2;
  --color-primary:     #0b6664;
  --color-primary-h:   #094f4d;
  --color-primary-dim: rgba(11,102,100,0.10);
  --color-white:       #ffffff;
  --color-ink:         #0a0a0a;
  --color-text:        #1a1a1a;
  --color-muted:       #6b6b6b;
  --color-muted-2:     #9a9a9a;
  --color-border:      rgba(10,10,10,0.10);
  --color-border-2:    rgba(10,10,10,0.06);
  --color-error:       #c53030;
  --color-success:     #2f8a5a;
  --color-warning:     #b07a18;

  --font-sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 2px rgba(10,10,10,0.04), 0 1px 3px rgba(10,10,10,0.06);
  --shadow-md:  0 4px 14px rgba(10,10,10,0.06), 0 1px 3px rgba(10,10,10,0.04);
  --shadow-lg:  0 12px 32px rgba(10,10,10,0.10), 0 2px 8px rgba(10,10,10,0.04);
  --shadow-glow: 0 6px 24px rgba(11,102,100,0.18);

  --transition: 0.22s ease;

  --header-h:   72px;
  --container:  1240px;
  --gap:        24px;
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-primary-h); }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   3. Layout Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gap);
  padding-right: var(--gap);
}

.container--narrow {
  max-width: 780px;
}

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.site-header__logo img {
  height: 50px;
  width: auto;
  display: block;
}
.site-header__logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  text-transform: uppercase;
}

/* Primary nav */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.primary-nav__list li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.primary-nav__list > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
}
.primary-nav__list > li > a:hover,
.primary-nav__list > li.current-menu-item > a,
.primary-nav__list > li.current-menu-ancestor > a {
  color: var(--color-ink);
  border-bottom-color: var(--color-primary);
}

/* Dropdown */
.primary-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}
.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav__list .sub-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.primary-nav__list .sub-menu li a:hover {
  color: var(--color-ink);
  background: var(--color-surface-2);
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.header-icon-btn:hover {
  color: var(--color-ink);
  background: var(--color-surface-2);
}

/* Cart count badge */
.header-cart__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--transition);
}
.header-cart__count.has-items { opacity: 1; }

/* Mobile toggle */
.mobile-menu-toggle { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Header search */
.header-search {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 999;
}
.header-search.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.header-search .container {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-search__form {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 48px;
}
.header-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 15px;
}
.header-search__input::placeholder { color: var(--color-muted); }
.header-search__btn {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 4px;
}
.header-search__close {
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.header-search__close:hover { color: var(--color-ink); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-h);
  border-color: var(--color-primary-h);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost {
  background: var(--color-surface-2);
  color: var(--color-ink);
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--color-surface-3);
  color: var(--color-ink);
}

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--small { padding: 8px 16px; font-size: 13px; }

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}
.section--dark {
  background: var(--color-surface-2);
}

.section-header {
  margin-bottom: 48px;
  text-align: center;
}
.section-header--flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto;
}
.section-header--flex .section-subtitle { margin: 0; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

/* ──────────────────────────────────────────────────────────────────────────
   Hero — centred stage (video bg, glass card, italic teal accent)
   ────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 640px;
  max-height: 920px;
  background: #0a0a0a;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* Background video — fills the entire hero */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.02);
}

/* Soft veil — even darken across the whole frame so center text reads
   regardless of bright/dark video frames */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      90% 70% at 50% 50%,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.78) 100%
    );
}

/* Decorative L-shaped corner brackets in teal (top-left, bottom-right)
   — gives the hero a "viewfinder" / shutter framing feel */
.hero__corner {
  position: absolute;
  width: clamp(40px, 7vw, 90px);
  height: clamp(40px, 7vw, 90px);
  z-index: 2;
  pointer-events: none;
  border: 2px solid var(--color-primary);
  filter: drop-shadow(0 0 12px rgba(11, 102, 100, 0.45));
}
.hero__corner--tl {
  top: clamp(28px, 4.5vw, 48px);
  left: clamp(20px, 4vw, 56px);
  border-right: none;
  border-bottom: none;
}
.hero__corner--br {
  bottom: clamp(96px, 12vw, 120px); /* sits above the bottom rail */
  right: clamp(20px, 4vw, 56px);
  border-left: none;
  border-top: none;
}

/* Reduced motion — drop the video to the static poster, no animations */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__pill-dot { animation: none !important; }
}

/* The actual stage — flexbox column, centred */
.hero__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 880px;
  padding: 0 24px;
}

/* Top pill: "Offizieller Importeur · AJP Moto · Benda · KOVE" */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.hero__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(11, 102, 100, 0.28);
  animation: heroPulse 2.4s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(11, 102, 100, 0.28); }
  50%      { box-shadow: 0 0 0 9px rgba(11, 102, 100, 0.04); }
}

/* Title — bold first line, italic teal accent on second */
.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.hero__title-line {
  display: block;
}
.hero__title-accent {
  display: block;
  margin-top: 0.18em;
  font-style: italic;
  font-weight: 600;
  font-size: 0.78em;       /* slightly smaller than main */
  letter-spacing: -0.015em;
  color: var(--color-primary);
  /* Soft outline so the teal stays legible on bright video frames */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 22px rgba(11, 102, 100, 0.45);
}

/* Subtitle */
.hero__subtitle {
  margin: 0;
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.80);
  max-width: 620px;
}

/* Two CTAs centered */
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.hero__btn-primary {
  gap: 10px;
  box-shadow:
    0 10px 30px rgba(11, 102, 100, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Ghost button on dark hero */
.btn--ghost-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn--ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

/* Bottom scroll rail (centered under the stage) */
.hero__rail {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero__rail-line {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}
.hero__rail svg {
  animation: heroBob 2.2s ease-in-out infinite;
}
@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* --------------------------------------------------------------------------
   8. Brand Cards
   -------------------------------------------------------------------------- */

.brand-cards {
  display: grid;
  /* Auto-fit so the grid collapses gracefully when AT visitors only see
     two cards (Benda is hidden). Min width keeps cards from becoming tiny. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
/* When only 2 cards are present, centre them with a tighter max-width so
   they don't stretch to full container width and look out of proportion. */
.brand-cards:has(> .brand-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
}

.brand-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.brand-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-card--primary {
  border-color: rgba(11,102,100,0.4);
}
.brand-card--primary:hover {
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.brand-card--blocked {
  opacity: 0.5;
  pointer-events: none;
}
.brand-card--blocked:hover {
  transform: none;
  box-shadow: none;
}

.brand-card__link { text-decoration: none; color: inherit; display: block; }

.brand-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.brand-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.brand-card:hover .brand-card__image { transform: scale(1.04); }

.brand-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-card__image-placeholder span {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-muted-2);
  text-transform: uppercase;
}

.brand-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-card__badge--primary {
  background: var(--color-primary);
  color: #fff;
}

.brand-card__blocked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.brand-card__blocked-overlay span {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  padding: 0 16px;
}

.brand-card__body {
  padding: 20px 22px 22px;
}
.brand-card__tagline {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.brand-card__name {
  font-size: 22px;
  margin-bottom: 10px;
}
.brand-card__desc {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}
.brand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ──────────────────────────────────────────────────────────────────────────
   Brand card — LOGO PLATE variant (dark plate, white logo)
   Used on the homepage "Unsere Marken" section so transparent white logos
   sit on a dark, premium-feeling surface.
   ────────────────────────────────────────────────────────────────────────── */

.brand-cards--logo { gap: 22px; }

.brand-card--logo {
  border-color: rgba(10, 10, 10, 0.08);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.03);
}
.brand-card--logo:hover {
  border-color: rgba(10, 10, 10, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(10, 10, 10, 0.12);
}

/* The dark plate that holds the logo */
.brand-card--logo .brand-card__image-wrap {
  aspect-ratio: 4 / 3;
}

.brand-card__logo-plate {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #161616 0%, #0a0a0a 60%, #050505 100%);
  overflow: hidden;
}

/* Decorative subtle teal glow on the bottom-left of the plate */
.brand-card__logo-plate::before {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(11, 102, 100, 0.45) 0%, rgba(11, 102, 100, 0) 70%);
  pointer-events: none;
  filter: blur(12px);
}

/* Faint diagonal light streak that animates on hover */
.brand-card__logo-plate::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.brand-card--logo:hover .brand-card__logo-plate::after { left: 130%; }

.brand-card__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s ease;
}
.brand-card--logo:hover .brand-card__logo { transform: scale(1.04); }

/* Body sits on light surface — text colours stay default light-theme dark */
.brand-card--logo .brand-card__body {
  padding: 22px 24px 24px;
  background: var(--color-surface);
}

.brand-card--logo .brand-card__tagline { color: var(--color-primary); }
.brand-card--logo .brand-card__name {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

/* Primary brand (AJP) — soft teal ring */
.brand-card--logo.brand-card--primary {
  border-color: rgba(11, 102, 100, 0.35);
  box-shadow: 0 0 0 1px rgba(11, 102, 100, 0.10), 0 1px 2px rgba(10, 10, 10, 0.04);
}
.brand-card--logo.brand-card--primary:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(11, 102, 100, 0.22), 0 18px 38px rgba(11, 102, 100, 0.18);
}

/* Primary badge sits over the dark plate — needs different colour */
.brand-card--logo .brand-card__badge--primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  text-shadow: none;
}

/* Blocked overlay over the dark plate */
.brand-card--logo .brand-card__blocked-overlay {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(2px);
}
.brand-card--logo .brand-card__blocked-overlay span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   9. Product Grids
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  gap: 20px;
}
.product-grid--motorcycles,
.product-grid--spareparts {
  grid-template-columns: repeat(3, 1fr);
}

/* Motorcycle Card */
.moto-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.moto-card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Subtle teal accent line that grows along the bottom edge on hover —
   keeps the brand colour without putting a heavy border around the whole card. */
.moto-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.moto-card:hover::after { transform: scaleX(1); }

.moto-card__image-link { display: block; text-decoration: none; }
.moto-card__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-3);
}
.moto-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.moto-card:hover .moto-card__image { transform: scale(1.03); }

.moto-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.moto-card__badge--sale {
  background: var(--color-error);
  color: #fff;
}

.moto-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.moto-card__brand { margin-bottom: 8px; }
.moto-card__title {
  font-size: 17px;
  margin-bottom: 10px;
}
.moto-card__title a { color: var(--color-ink); text-decoration: none; }
.moto-card__title a:hover { color: var(--color-primary); }

.moto-card__availability {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.availability-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.availability-flag--available {
  background: rgba(59,179,122,0.15);
  color: var(--color-success);
  border: 1px solid rgba(59,179,122,0.3);
}
.availability-flag--unavailable {
  background: rgba(224,82,82,0.1);
  color: var(--color-muted-2);
  border: 1px solid rgba(224,82,82,0.2);
  text-decoration: line-through;
}

.moto-card__price {
  margin-bottom: 16px;
  flex: 1;
}
.moto-card__price-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-ink);
}
.moto-card__price-note {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 3px;
}
.moto-card__price-contact {
  font-size: 14px;
  color: var(--color-muted);
  font-style: italic;
}
.moto-card__cta { align-self: flex-start; }

/* Spare Part Card */
.part-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.part-card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.part-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.part-card:hover::after { transform: scaleX(1); }
.part-card__image { transition: transform 0.5s ease; }
.part-card:hover .part-card__image { transform: scale(1.03); }

.part-card__image-link { display: block; text-decoration: none; }
.part-card__image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-3);
}
.part-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.part-card__stock {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.part-card__stock--in {
  background: rgba(59,179,122,0.15);
  color: var(--color-success);
}
.part-card__stock--out {
  background: rgba(224,82,82,0.1);
  color: var(--color-error);
}

.part-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.part-card__brand {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.part-card__title {
  font-size: 14px;
  margin-bottom: 6px;
}
.part-card__title a { color: var(--color-text); text-decoration: none; }
.part-card__title a:hover { color: var(--color-ink); }
.part-card__compat {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.part-card__compat-label { color: var(--color-muted-2); }
.part-card__sku {
  font-size: 11px;
  color: var(--color-muted-2);
  margin-bottom: 12px;
}
.part-card__sku code {
  font-family: monospace;
  color: var(--color-muted);
}
.part-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.part-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-ink);
}

/* Brand Badges */
.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.brand-badge--ajp-moto  { color: #b07a18; border-color: rgba(176,122,24,0.30);  background: rgba(232,168,56,0.10); }
.brand-badge--benda     { color: #2e4a96; border-color: rgba(46,74,150,0.25);   background: rgba(124,158,240,0.10); }
.brand-badge--kove      { color: #0b6664; border-color: rgba(11,102,100,0.3);  background: rgba(11,102,100,0.08); }

/* --------------------------------------------------------------------------
   10. Dealer CTA
   -------------------------------------------------------------------------- */

.section--dealer {
  background: var(--color-surface-2);
}

.dealer-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.dealer-cta__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.dealer-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.dealer-cta__text {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.dealer-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.dealer-cta__image {
  background: var(--color-surface-3);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   10b. Partners section ("Starke Partner an unserer Seite")
   -------------------------------------------------------------------------- */

.section--partners {
  padding: 72px 0 88px;
  background: var(--color-surface);
  position: relative;
  border-top: 1px solid var(--color-border-2);
  border-bottom: 1px solid var(--color-border-2);
}

.partner-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.partner-card::after {
  /* subtle teal accent that grows along the bottom edge on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.partner-card:hover {
  border-color: rgba(10, 10, 10, 0.16);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(10, 10, 10, 0.06);
}
.partner-card:hover::after { transform: scaleX(1); }

.partner-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  padding: 8px;
}
.partner-card__logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Soft desaturation so the partners feel cohesive on the page; on hover
     they pop back into full colour. */
  filter: grayscale(100%) opacity(0.78);
  transition: filter 0.3s ease;
}
.partner-card:hover .partner-card__logo {
  filter: grayscale(0%) opacity(1);
}

.partner-card__role {
  display: inline-block;
  padding-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border-2);
  width: 100%;
  text-align: center;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.partner-card:hover .partner-card__role {
  color: var(--color-primary);
  border-top-color: rgba(11, 102, 100, 0.25);
}

/* Linkable partner card (e.g. kredit.de) — the whole card surface becomes a
   single click target via an absolutely-positioned overlay anchor. Keeps the
   existing inner markup semantic (image, role label) while delivering a big
   tap area. */
.partner-card--link { cursor: pointer; }
.partner-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
  border-radius: inherit;
}
.partner-card__overlay:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.partner-card--link:hover {
  border-color: rgba(11, 102, 100, 0.30);
}

@media (max-width: 900px) {
  .partner-grid { grid-template-columns: 1fr; gap: 16px; }
  .partner-card { padding: 24px 20px 18px; }
  .partner-card__logo-wrap { height: 80px; }
}

/* --------------------------------------------------------------------------
   11. Contact CTA
   -------------------------------------------------------------------------- */

.section--contact-cta {
  padding: 80px 0;
}
.contact-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}
.contact-cta__text {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   12. Archive / Filter Bar
   -------------------------------------------------------------------------- */

.archive-header {
  padding: 56px 0 0;
}
.archive-header .page-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 12px;
}
.archive-header__subtitle {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 40px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Shop search bar (spare parts) */
.parts-search-bar {
  margin-bottom: 32px;
}
.parts-search-bar form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 56px;
}
.parts-search-bar input[type="search"] {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 15px;
  padding: 0 20px;
  height: 100%;
}
.parts-search-bar input::placeholder { color: var(--color-muted); }
.parts-search-bar button {
  height: 100%;
  padding: 0 24px;
  background: var(--color-primary);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition);
}
.parts-search-bar button:hover { background: var(--color-primary-h); }

/* --------------------------------------------------------------------------
   13. Single Product (shared)
   -------------------------------------------------------------------------- */

.single-product-layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}

.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-3);
  aspect-ratio: 4/3;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--color-border);
  transition: border-color var(--transition);
}
.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-summary__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.product-summary__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  margin-bottom: 8px;
}
.product-summary__sku {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   Country-specific price block (single product page)
   Shows ONE big price for the user's selected country (DE or AT) plus a
   small "Preis für Deutschland · Land ändern" hint underneath.
   -------------------------------------------------------------------------- */

.price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 22px 0 24px;
  padding: 18px 20px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.price-block__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.price-block__value .woocommerce-Price-amount,
.price-block__value .amount,
.price-block__value bdi { color: inherit; font: inherit; }

.price-block__regular {
  font-size: 18px;
  color: var(--color-muted);
  font-weight: 500;
}
.price-block__regular del { color: var(--color-muted); }

.price-block__note {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
  flex-basis: 100%;
}

/* Country hint — small line below the price */
.price-block__country-hint {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
  font-size: 13px;
  color: var(--color-muted);
}
.price-block__country-flag {
  font-size: 16px;
  line-height: 1;
}
.price-block__country-text strong {
  color: var(--color-ink);
  font-weight: 600;
}
.price-block__country-sep { color: var(--color-muted-2); }
.price-block__country-switch {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color var(--transition);
}
.price-block__country-switch:hover { color: var(--color-primary-h); }

/* Variant — "Preis auf Anfrage" */
.price-block--contact { background: var(--color-surface); }
.price-block--contact .price-block__value {
  font-size: 1.5rem;
  color: var(--color-primary);
}
.price-block__link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

/* Variant — country-blocked (e.g. Benda for AT) */
.price-block--blocked {
  background: rgba(220, 38, 38, 0.04);
  border-color: rgba(220, 38, 38, 0.20);
}
.price-block--blocked .price-block__value {
  font-size: 1.25rem;
  color: var(--color-error);
}
.price-block--blocked .price-block__note { color: var(--color-error); opacity: 0.85; }

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}
.specs-table__row {
  border-bottom: 1px solid var(--color-border-2);
}
.specs-table__label {
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-muted);
  width: 40%;
  vertical-align: top;
}
.specs-table__value {
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Page Templates (generic)
   -------------------------------------------------------------------------- */

.page-header {
  padding: 56px 0 40px;
}
.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-body { max-width: 720px; }
.entry-content p { margin-bottom: 1.25em; }
.entry-content h2, .entry-content h3 { margin: 2em 0 0.75em; }
.entry-content a { text-decoration: underline; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card__image-link { display: block; }
.post-card__image {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12px; color: var(--color-muted); margin-bottom: 8px; }
.post-card__title { font-size: 17px; margin-bottom: 10px; }
.post-card__title a { color: var(--color-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { font-size: 14px; color: var(--color-muted); margin-bottom: 16px; flex: 1; }
.post-card__type {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.site-footer__top { padding: 72px 0 56px; }

/* Tier 1 — brand block on the left, locations grid on the right */
.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

/* Tier 2 — equal-width navigation columns */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Brand block (logo + tagline + Marken pills) */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 320px;
}
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-logo__text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--color-ink);
  text-decoration: none;
}

.footer-tagline {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.footer-brands {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-muted);
}

.footer-brand-pill {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-2);
  margin-bottom: 18px;
}

.footer-nav li + li { margin-top: 10px; }
.footer-nav a {
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-ink); }

.footer-address {
  font-style: normal;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.8;
}
.footer-address a { color: var(--color-primary); }

/* ── Footer Standorte (multi-branch grid in Tier 1) ───────────────────── */
.footer-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
}
.footer-location {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.footer-location:hover { border-color: var(--color-border); }
.footer-location--main {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11,102,100,0.05) 0%, rgba(11,102,100,0) 60%),
    var(--color-surface-2);
  border-color: rgba(11, 102, 100, 0.18);
}

.footer-location__label {
  align-self: flex-start;
  display: inline-flex;
  padding: 2px 8px;
  margin-bottom: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(11, 102, 100, 0.08);
  border: 1px solid rgba(11, 102, 100, 0.18);
  border-radius: 999px;
}
.footer-location:not(.footer-location--main) .footer-location__label {
  color: var(--color-muted);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.footer-location__name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-ink);
  letter-spacing: -0.005em;
}
.footer-location__company {
  font-size: 12.5px;
  color: var(--color-text);
}
.footer-location__address { color: var(--color-muted); }

.footer-location__contact {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12.5px;
}
.footer-location__contact a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
  word-break: break-word;
}
.footer-location__contact a:hover { color: var(--color-primary); }
.footer-location__contact span[aria-hidden] { color: var(--color-muted-2); }

.site-footer__bottom {
  border-top: 1px solid var(--color-border-2);
  padding: 20px 0;
}
.site-footer__bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-copy p { margin: 0; }
.footer-copy__line {
  font-size: 13px;
  color: var(--color-muted-2);
  line-height: 1.5;
}
.footer-copy__credit {
  font-size: 12px;
  color: var(--color-muted-2);
  letter-spacing: 0.02em;
}
.footer-copy__credit a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted var(--color-border);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-copy__credit a:hover,
.footer-copy__credit a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.footer-legal-nav__list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal-nav__list a {
  font-size: 13px;
  color: var(--color-muted-2);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-nav__list a:hover { color: var(--color-muted); }

/* --------------------------------------------------------------------------
   16. 404 Page
   -------------------------------------------------------------------------- */

.error-404 {
  padding: 120px 0;
}
.error-404__code {
  font-size: 120px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.85;
  margin-bottom: 24px;
}
.error-404__title {
  font-size: 2rem;
  margin-bottom: 16px;
}
.error-404__text {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}
.error-404__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   17. Pagination — pill rail (blog + WooCommerce archives)
   Soft inset rail, circular page dots, prev/next as text capsules.
   -------------------------------------------------------------------------- */

.pagination,
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 56px 0 40px;
}

.pagination .navigation.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Shared “rail” chrome (inset pill strip) */
.pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers,
.pagination .navigation.pagination .nav-links:not(:has(ul)) {
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #fafbfb 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 8px rgba(10, 10, 10, 0.04);
}

/* When .nav-links only wraps ul, keep wrapper invisible */
.pagination .navigation.pagination .nav-links:has(> ul.page-numbers) {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
}

/* Reset list — WooCommerce & WP list-type pagination */
.pagination ul.page-numbers,
.woocommerce-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
}

.pagination ul.page-numbers li,
.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  display: inline-flex;
}

/* Page cells — list markup (WooCommerce) */
.pagination ul.page-numbers a.page-numbers,
.pagination ul.page-numbers span.page-numbers,
.woocommerce-pagination ul.page-numbers a.page-numbers,
.woocommerce-pagination ul.page-numbers span.page-numbers,
/* Plain markup — blog / search / archive (direct children of .nav-links) */
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.page-numbers,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-muted);
  border: none;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pagination ul.page-numbers a.page-numbers:hover,
.woocommerce-pagination ul.page-numbers a.page-numbers:hover,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.page-numbers:hover {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.06);
}

.pagination ul.page-numbers a.page-numbers:active,
.woocommerce-pagination ul.page-numbers a.page-numbers:active,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.page-numbers:active {
  transform: scale(0.96);
}

/* Current page — filled pill */
.pagination ul.page-numbers span.page-numbers.current,
.woocommerce-pagination ul.page-numbers span.page-numbers.current,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers.current {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(11, 102, 100, 0.28);
  cursor: default;
}

/* Ellipsis */
.pagination ul.page-numbers span.page-numbers.dots,
.woocommerce-pagination ul.page-numbers span.page-numbers.dots,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers.dots {
  min-width: 1.75rem;
  padding: 0 4px;
  color: var(--color-muted-2);
  font-weight: 500;
  letter-spacing: 0.12em;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

/* Prev / next — wider capsules */
.pagination ul.page-numbers a.prev,
.pagination ul.page-numbers a.next,
.woocommerce-pagination ul.page-numbers a.prev,
.woocommerce-pagination ul.page-numbers a.next,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.prev,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.next {
  min-width: auto;
  padding: 0 14px;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}

.pagination ul.page-numbers a.prev:hover,
.pagination ul.page-numbers a.next:hover,
.woocommerce-pagination ul.page-numbers a.prev:hover,
.woocommerce-pagination ul.page-numbers a.next:hover,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.prev:hover,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > a.next:hover {
  background: rgba(11, 102, 100, 0.08);
  color: var(--color-primary);
  box-shadow: none;
}

.pagination ul.page-numbers span.page-numbers.prev,
.pagination ul.page-numbers span.page-numbers.next,
.woocommerce-pagination ul.page-numbers span.page-numbers.prev,
.woocommerce-pagination ul.page-numbers span.page-numbers.next,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers.prev,
.pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers.next {
  min-width: auto;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted-2);
  opacity: 0.55;
  cursor: not-allowed;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 520px) {
  .pagination ul.page-numbers,
  .woocommerce-pagination ul.page-numbers,
  .pagination .navigation.pagination .nav-links:not(:has(ul)) {
    padding: 8px 10px;
    gap: 0;
    border-radius: var(--radius-lg);
  }

  .pagination ul.page-numbers a.page-numbers,
  .pagination ul.page-numbers span.page-numbers,
  .woocommerce-pagination ul.page-numbers a.page-numbers,
  .woocommerce-pagination ul.page-numbers span.page-numbers,
  .pagination .navigation.pagination .nav-links:not(:has(ul)) > a.page-numbers,
  .pagination .navigation.pagination .nav-links:not(:has(ul)) > span.page-numbers {
    min-width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
  }

  .pagination ul.page-numbers a.prev,
  .pagination ul.page-numbers a.next,
  .woocommerce-pagination ul.page-numbers a.prev,
  .woocommerce-pagination ul.page-numbers a.next,
  .pagination .navigation.pagination .nav-links:not(:has(ul)) > a.prev,
  .pagination .navigation.pagination .nav-links:not(:has(ul)) > a.next {
    padding: 0 10px;
    font-size: 0.6875rem;
  }
}

/* --------------------------------------------------------------------------
   18. Breadcrumb
   -------------------------------------------------------------------------- */

.breadcrumb {
  padding: 16px 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumb ol a { color: var(--color-muted); text-decoration: none; }
.breadcrumb ol a:hover { color: var(--color-text); }
.breadcrumb__sep { color: var(--color-muted-2); }

/* --------------------------------------------------------------------------
   19. No Results
   -------------------------------------------------------------------------- */

.no-results {
  padding: 60px 0;
  text-align: center;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   19b. Archive hero band
   -------------------------------------------------------------------------- */

.archive-hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 32px;
}
.archive-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 10px;
  margin-top: 12px;
}
.archive-hero__subtitle {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 560px;
}

/* ── Image variant (e.g. /shop/) ─────────────────────────────────────────
   Used when blackmoto_get_archive_hero_image_url() returns a URL. A dark
   gradient + soft teal corner glow keep the title legible on any photo. */
.archive-hero--has-image {
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 96px 0 80px;
  border-bottom: none;
  color: #fff;
  overflow: hidden;
}
.archive-hero--has-image .archive-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.20) 0%,
      rgba(10, 10, 10, 0.55) 55%,
      rgba(10, 10, 10, 0.78) 100%
    ),
    radial-gradient(
      120% 80% at 0% 100%,
      rgba(11, 102, 100, 0.32) 0%,
      rgba(11, 102, 100, 0) 60%
    );
}
.archive-hero--has-image > .container {
  position: relative;
  z-index: 1;
}
.archive-hero--has-image .archive-hero__title {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.archive-hero--has-image .archive-hero__subtitle {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}
/* Breadcrumb on dark image */
.archive-hero--has-image .woocommerce-breadcrumb,
.archive-hero--has-image .woocommerce-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
}
.archive-hero--has-image .woocommerce-breadcrumb a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .archive-hero--has-image {
    padding: 72px 0 60px;
    background-position: center 40%;
  }
}

/* No-results improved */
.no-results--products {
  padding: 80px 0;
  text-align: center;
}
.no-results__icon {
  color: var(--color-muted-2);
  margin-bottom: 20px;
}
.no-results__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.no-results__text {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.no-results__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   19c. Single Product — complete redesign
   -------------------------------------------------------------------------- */

.single-product-page .container { padding-top: 24px; padding-bottom: 80px; }

/* Two-column hero */
.sp-layout {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 16px;
  margin-bottom: 56px;
}
.sp-layout--part { grid-template-columns: 45% 1fr; }

/* Grid items must allow shrinking below their intrinsic min-content,
   otherwise large product images blow out the layout on mobile. */
.sp-layout > .sp-gallery,
.sp-layout > .sp-summary { min-width: 0; }

/* Gallery — sticky on desktop */
.sp-gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  min-width: 0;
  max-width: 100%;
}

/* Main image area */
.sp-gallery__main {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.sp-gallery__main-btn {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
}

.sp-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  background: var(--color-surface-2);
  transition: opacity 0.18s ease;
}
.sp-gallery__main-img.is-loading { opacity: 0.4; }

/* Sale badge */
.sp-gallery__sale-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-error);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* Prev/next nav arrows over the main image */
.sp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-ink);
  box-shadow: 0 2px 8px rgba(10,10,10,0.08);
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.sp-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.sp-gallery__nav--prev { left: 14px; }
.sp-gallery__nav--next { right: 14px; }

/* Image counter pill */
.sp-gallery__counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10,10,10,0.65);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  z-index: 2;
  pointer-events: none;
}

/* Thumb strip — single horizontally scrollable row */
.sp-gallery__thumbs-wrap {
  margin-top: 12px;
  position: relative;
}

.sp-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.sp-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.sp-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.sp-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; }
.sp-gallery__thumbs::-webkit-scrollbar-thumb:hover { background: var(--color-muted-2); }

.sp-gallery__thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  background: var(--color-surface);
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.sp-gallery__thumb:hover { border-color: rgba(10,10,10,0.30); transform: translateY(-2px); }
.sp-gallery__thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-dim);
}
.sp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: var(--color-surface-2); }

/* --------------------------------------------------------------------------
   Lightbox (fullscreen image viewer)
   -------------------------------------------------------------------------- */

.sp-lightbox {
  position: fixed;
  inset: 0;
  /* Use the small/dynamic viewport units where supported so iOS Safari's
     URL bar transitions don't push controls offscreen. */
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  z-index: 99998;
  background: rgba(10,10,10,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.sp-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sp-lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(64px, env(safe-area-inset-top))
    max(72px, env(safe-area-inset-right))
    max(64px, env(safe-area-inset-bottom))
    max(72px, env(safe-area-inset-left));
}

.sp-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.18s ease;
}
.sp-lightbox__img.is-loading { opacity: 0.4; }

.sp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.sp-lightbox__close:hover { background: rgba(255,255,255,0.18); }

.sp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.sp-lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.sp-lightbox__nav--prev { left: 24px; }
.sp-lightbox__nav--next { right: 24px; }

.sp-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .sp-lightbox__stage {
    padding:
      max(56px, env(safe-area-inset-top))
      16px
      max(56px, env(safe-area-inset-bottom))
      16px;
  }
  .sp-lightbox__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 40px;
    height: 40px;
  }
  .sp-lightbox__nav   { width: 40px; height: 40px; }
  .sp-lightbox__nav--prev { left: 8px; }
  .sp-lightbox__nav--next { right: 8px; }
  .sp-lightbox__counter {
    bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 12px;
  }
}

/* Summary column */
.sp-summary__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sp-summary__title {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.sp-summary__excerpt {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border-2);
}

/* Stock / SKU line */
.sp-summary__meta-line {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 13px;
}
.sp-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.sp-stock--in  { color: var(--color-success); }
.sp-stock--out { color: var(--color-error); }

.sp-sku { color: var(--color-muted); }
.sp-sku code { font-family: monospace; color: var(--color-text); background: var(--color-surface-3); padding: 2px 6px; border-radius: 4px; }

/* Compatible model */
.sp-compat {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-2);
}
.sp-compat__label { font-weight: 600; margin-right: 6px; }
.sp-compat__value { color: var(--color-text); }

/* Add-to-cart area */
.sp-atc {
  margin: 20px 0;
}
.sp-atc .cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sp-atc .quantity {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 52px;
}
.sp-atc .qty {
  width: 56px;
  height: 100%;
  text-align: center;
  background: none;
  border: none;
  outline: none;
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.sp-atc .qty::-webkit-inner-spin-button,
.sp-atc .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

.sp-atc .single_add_to_cart_button {
  height: 52px;
  padding: 0 32px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.sp-atc .single_add_to_cart_button:hover {
  background: var(--color-primary-h);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.sp-atc .single_add_to_cart_button:active { transform: translateY(0); }
.sp-atc .single_add_to_cart_button.disabled,
.sp-atc .single_add_to_cart_button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ──────────────────────────────────────────────────────────────────────────
   Financing partner card (kredit.de) — single motorcycle pages only.
   Vertical stacked layout so it reads at any container width (the summary
   column is narrow on tablets / split layouts, where a horizontal layout
   would squeeze body text into a single-word column).
   ────────────────────────────────────────────────────────────────────────── */
.sp-financing {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 18px 14px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11, 102, 100, 0.06) 0%, rgba(11, 102, 100, 0) 55%),
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sp-financing::before {
  /* thin top accent bar in brand teal */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    rgba(11, 102, 100, 0.35) 60%,
    rgba(11, 102, 100, 0) 100%
  );
}

/* Header row: eyebrow on the left, kredit.de logo on the right */
.sp-financing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-financing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.sp-financing__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 102, 100, 0.18);
}
.sp-financing__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  height: 32px;
}
.sp-financing__logo img {
  display: block;
  max-height: 18px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Copy block */
.sp-financing__title {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.35;
}
.sp-financing__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
}

/* Full-width CTA — outlined in brand teal so it stays secondary to the
   green/teal Add-to-cart button above without disappearing into the card. */
.sp-financing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
              box-shadow 0.2s ease, border-color 0.2s ease;
}
.sp-financing__cta:hover,
.sp-financing__cta:focus-visible {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(11, 102, 100, 0.22);
  outline: none;
}
.sp-financing__cta:hover svg { transform: translateX(2px); }
.sp-financing__cta:active { transform: translateY(1px); }
.sp-financing__cta svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 600px) {
  .sp-financing { padding: 16px 14px 12px; }
  .sp-financing__title { font-size: 14.5px; }
  .sp-financing__text  { font-size: 12.5px; }
}

/* NoVA info */
/* Dealer CTA */
.sp-dealer-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-2);
  margin-top: 16px;
}

/* Tabs section */
.sp-tabs-section {
  margin-top: 0;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

/* Related products */
.sp-related {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}
.sp-related__header { margin-bottom: 28px; }
.sp-related__title { font-size: 1.5rem; }

/* Contact CTA strip */
.sp-contact-cta {
  margin-top: 56px;
  padding: 40px 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.sp-contact-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sp-contact-cta__title { font-size: 1.4rem; margin-bottom: 8px; }
.sp-contact-cta__text { font-size: 14px; color: var(--color-muted); max-width: 480px; }
.sp-contact-cta__actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   19d. Notices (plugin + theme)
   -------------------------------------------------------------------------- */

.bm-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  border: 1px solid;
}
.bm-notice--warning {
  background: rgba(232,168,56,0.10);
  border-color: rgba(176,122,24,0.30);
  color: #7a5310;
}
.bm-notice--info {
  background: rgba(11,102,100,0.06);
  border-color: rgba(11,102,100,0.30);
  color: #074847;
}
.bm-notice svg { flex-shrink: 0; margin-top: 1px; }

/* --------------------------------------------------------------------------
   19e. Contact page layout
   -------------------------------------------------------------------------- */

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 8px;
}

/* Legacy single-column variant (kept for back-compat with .contact-info) */
.contact-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info__title { font-size: 1.2rem; margin-bottom: 16px; }
.contact-info p { font-size: 14px; color: var(--color-muted); line-height: 1.7; }
.contact-info a { color: var(--color-primary); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-info__items { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.contact-info__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.contact-info__item svg { color: var(--color-primary); flex-shrink: 0; }
.contact-info__item a { color: var(--color-text); text-decoration: none; }
.contact-info__item a:hover { color: var(--color-primary); }

/* ── Standorte (multiple branches) ───────────────────────────────────── */
.contact-locations__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.contact-locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.contact-location {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.contact-location:hover {
  border-color: rgba(11, 102, 100, 0.30);
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.06);
  transform: translateY(-2px);
}
.contact-location--main {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(11,102,100,0.04) 0%, rgba(11,102,100,0) 55%),
    var(--color-surface);
}

.contact-location__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(11, 102, 100, 0.08);
  border: 1px solid rgba(11, 102, 100, 0.20);
  border-radius: 999px;
}
.contact-location__badge--alt {
  color: var(--color-muted);
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

.contact-location__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  line-height: 1.3;
}
.contact-location__address {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
}
.contact-location__company {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-location__items {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--color-border-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-location__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.contact-location__item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}
.contact-location__item a {
  color: var(--color-text);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.15s ease;
}
.contact-location__item a:hover { color: var(--color-primary); }

.contact-form-area__title { font-size: 1.2rem; margin-bottom: 20px; }

/* ──────────────────────────────────────────────────────────────────────────
   Contact Form 7 — Kontaktformular
   Styles are scoped to .contact-form-area to avoid leaking into other CF7
   forms elsewhere on the site. Markup notes:
     - Each field is wrapped in a <label> by the CF7 template.
     - CF7 wraps the actual input in a <span class="wpcf7-form-control-wrap">.
   ────────────────────────────────────────────────────────────────────────── */

.contact-form-area .wpcf7 { width: 100%; }

.contact-form-area .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

/* Each <label> wraps a single field. Stack label text + input vertically. */
.contact-form-area .wpcf7-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  margin: 0;
}

/* Full-width fields */
.contact-form-area .wpcf7-form > label:nth-of-type(5),  /* Anliegen (select) */
.contact-form-area .wpcf7-form > label:nth-of-type(6),  /* Interessiertes Modell */
.contact-form-area .wpcf7-form > label:nth-of-type(8),  /* Nachricht (textarea) */
.contact-form-area .wpcf7-form > label.cf7-consent,
.contact-form-area .wpcf7-form > .wpcf7-response-output,
.contact-form-area .wpcf7-form > p:has(input[type="submit"]),
.contact-form-area .wpcf7-form > input[type="submit"] {
  grid-column: 1 / -1;
}

/* CF7's own field wrapper — let it stretch to the label width */
.contact-form-area .wpcf7-form-control-wrap { display: block; width: 100%; }

/* ── Inputs / select / textarea / date ─────────────────────────────────── */
.contact-form-area .wpcf7-form input[type="text"],
.contact-form-area .wpcf7-form input[type="email"],
.contact-form-area .wpcf7-form input[type="tel"],
.contact-form-area .wpcf7-form input[type="url"],
.contact-form-area .wpcf7-form input[type="number"],
.contact-form-area .wpcf7-form input[type="date"],
.contact-form-area .wpcf7-form select,
.contact-form-area .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-area .wpcf7-form input::placeholder,
.contact-form-area .wpcf7-form textarea::placeholder {
  color: var(--color-muted-2);
  font-weight: 400;
}

/* Hover */
.contact-form-area .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):hover,
.contact-form-area .wpcf7-form select:hover,
.contact-form-area .wpcf7-form textarea:hover {
  border-color: rgba(10, 10, 10, 0.20);
}

/* Focus */
.contact-form-area .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):focus,
.contact-form-area .wpcf7-form select:focus,
.contact-form-area .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-dim);
  background: var(--color-surface);
}

/* Textarea — allow vertical resize, set a comfortable starting height */
.contact-form-area .wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

/* Native date control — keep it consistent with text inputs */
.contact-form-area .wpcf7-form input[type="date"] {
  font-feature-settings: "tnum";
}
.contact-form-area .wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  filter: invert(0.2);
  transition: opacity 0.15s ease;
}
.contact-form-area .wpcf7-form input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Custom select arrow */
.contact-form-area .wpcf7-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 8 10 13 15 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 42px;
  cursor: pointer;
}

/* ── Required-field asterisk on the label text (CF7 doesn't add one) ───── */
.contact-form-area .wpcf7-form > label:has(.wpcf7-validates-as-required)::first-line {
  /* keep the label clean; we add the asterisk on the wrap below */
}
.contact-form-area .wpcf7-form > label:has(.wpcf7-validates-as-required) > .wpcf7-form-control-wrap::before {
  /* nothing — kept as a hook in case we want to inject indicators */
}

/* ── Consent checkbox (acceptance) ─────────────────────────────────────── */
.contact-form-area .cf7-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-2);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.contact-form-area .cf7-consent:hover { border-color: var(--color-border); }

.contact-form-area .cf7-consent .wpcf7-form-control-wrap {
  width: auto;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-form-area .cf7-consent .wpcf7-list-item {
  display: inline-flex;
  margin: 0;
}
.contact-form-area .cf7-consent .wpcf7-list-item-label { display: none; }

.contact-form-area .cf7-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface);
  cursor: pointer;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form-area .cf7-consent input[type="checkbox"]:hover {
  border-color: var(--color-primary);
}
.contact-form-area .cf7-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-dim);
}
.contact-form-area .cf7-consent input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.15s ease;
}
.contact-form-area .cf7-consent input[type="checkbox"]:checked {
  border-color: var(--color-primary);
}
.contact-form-area .cf7-consent input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.contact-form-area .cf7-consent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-form-area .cf7-consent a:hover { color: var(--color-primary-h); }

/* ── Submit button ─────────────────────────────────────────────────────── */
.contact-form-area .wpcf7-form input[type="submit"],
.contact-form-area .wpcf7-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 102, 100, 0.28);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  justify-self: start;
}
.contact-form-area .wpcf7-form input[type="submit"]:hover {
  background: var(--color-primary-h);
  box-shadow: 0 10px 26px rgba(11, 102, 100, 0.34);
}
.contact-form-area .wpcf7-form input[type="submit"]:active {
  transform: translateY(1px);
}
.contact-form-area .wpcf7-form input[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* AJAX loading spinner sits next to the submit button */
.contact-form-area .wpcf7-spinner {
  margin-left: 14px;
  align-self: center;
}

/* ── CF7 validation / response messages ────────────────────────────────── */
.contact-form-area .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #b91c1c;
  letter-spacing: 0;
}

.contact-form-area .wpcf7-form input.wpcf7-not-valid,
.contact-form-area .wpcf7-form select.wpcf7-not-valid,
.contact-form-area .wpcf7-form textarea.wpcf7-not-valid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.contact-form-area .wpcf7-response-output {
  margin: 8px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  border: 1px solid var(--color-border) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  background: var(--color-surface-2);
  color: var(--color-text);
}
.contact-form-area .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(11, 102, 100, 0.35) !important;
  background: var(--color-primary-dim);
  color: var(--color-primary-h);
}
.contact-form-area .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-area .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-area .wpcf7 form.failed .wpcf7-response-output {
  border-color: rgba(220, 38, 38, 0.30) !important;
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .contact-form-area .wpcf7-form {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contact-form-area .wpcf7-form > label,
  .contact-form-area .wpcf7-form > label:nth-of-type(5),
  .contact-form-area .wpcf7-form > label:nth-of-type(6),
  .contact-form-area .wpcf7-form > label:nth-of-type(8),
  .contact-form-area .wpcf7-form > label.cf7-consent {
    grid-column: 1 / -1;
  }
  .contact-form-area .wpcf7-form input[type="submit"],
  .contact-form-area .wpcf7-form .wpcf7-submit {
    width: 100%;
    min-width: 0;
  }
  .contact-form-area .cf7-consent {
    padding: 12px 14px;
    font-size: 12.5px;
  }
}

.page-empty-notice {
  padding: 40px;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
}

.page-clean { padding-bottom: 60px; }
.page-clean .page-header { padding-top: 48px; }

/* Legal pages (Impressum, etc.) */
.page-legal .page-legal__lead {
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-muted);
  line-height: 1.5;
}
.page-legal .page-legal__section {
  margin-bottom: 1.75rem;
}
.page-legal .page-legal__section:last-child {
  margin-bottom: 0;
}
.page-legal .page-legal__h2 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.35;
}
.page-legal .page-legal__section:first-of-type .page-legal__h2 + p,
.page-legal .page-legal__section:first-of-type p:first-child {
  margin-top: 0;
}
.page-legal .page-legal__h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--color-text);
  line-height: 1.4;
}
.page-legal .page-legal__h3:first-of-type {
  margin-top: 0.85rem;
}
.page-legal .page-body p {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}
.page-legal .page-body p:last-child {
  margin-bottom: 0;
}
.page-legal .page-body a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.page-legal .page-body a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-subtitle {
  font-size: 16px;
  color: var(--color-muted);
  margin-top: 8px;
}
.page-featured-image { margin: 0 0 32px; }
.page-featured-image__img { border-radius: var(--radius-lg); width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   19f. Single product responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .sp-layout { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Tablet & below — single column, gallery flows full-width */
@media (max-width: 768px) {
  .sp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sp-gallery {
    position: static;
    /* Allow gallery to break out of .container's horizontal padding on
       narrow phones so the image can use the full screen width. */
    margin-inline: calc( var(--gap) * -1 );
  }
  .sp-gallery__main {
    aspect-ratio: 4/3;          /* taller, photographic crop on mobile */
    border-radius: 0;            /* edge-to-edge feels native */
    border-left: none;
    border-right: none;
  }
  .sp-gallery__main-img { padding: 12px; }

  /* Smaller, less obtrusive arrows on touch */
  .sp-gallery__nav {
    width: 36px;
    height: 36px;
  }
  .sp-gallery__nav--prev { left: 8px; }
  .sp-gallery__nav--next { right: 8px; }

  /* Counter pill stays bottom-right but smaller */
  .sp-gallery__counter {
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Thumb strip — restore container padding, add scroll-snap for nicer swipes */
  .sp-gallery__thumbs-wrap { padding-inline: var(--gap); margin-top: 14px; }
  .sp-gallery__thumbs {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .sp-gallery__thumb {
    scroll-snap-align: start;
    width: 64px;
    height: 50px;
  }

  .sp-summary__title { font-size: 1.5rem; }
  .sp-contact-cta { padding: 28px 24px; }
  .sp-contact-cta__inner { flex-direction: column; align-items: flex-start; }
  .sp-atc .cart { flex-wrap: nowrap; }
  .sp-atc .single_add_to_cart_button { flex: 1; }
}

/* Phone narrow — tighten further to avoid overflow on 320–360px screens */
@media (max-width: 480px) {
  .sp-gallery__thumb { width: 56px; height: 44px; }
  .sp-gallery__main-img { padding: 8px; }
  .sp-gallery__sale-badge {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 4px 9px;
  }
}

/* --------------------------------------------------------------------------
   19g. Footer address style
   -------------------------------------------------------------------------- */

.footer-address { font-style: normal; }
.footer-address p { font-size: 13px; color: var(--color-muted); line-height: 1.8; }
.footer-address a { color: var(--color-primary); text-decoration: none; }
.footer-address a:hover { text-decoration: underline; }
.footer-address__company { color: var(--color-text); font-weight: 600; }

.footer-brands { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.footer-brands__label { font-size: 12px; color: var(--color-muted-2); }

/* --------------------------------------------------------------------------
   19. (original section label kept for reference)
   Single Product extras (legacy — kept for compat)
   -------------------------------------------------------------------------- */

.nova-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(11,102,100,0.08);
  border: 1px solid rgba(11,102,100,0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;
}
.nova-info svg { flex-shrink: 0; margin-top: 1px; color: var(--color-primary); }

.product-dealer-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-2);
}

.benda-block-notice {
  margin-bottom: 24px;
}

/* Header scroll state */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: 0 2px 12px rgba(10,10,10,0.06);
}
.site-header.is-hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Parts archive shares the same 3-column grid as motorcycles so spare-part
   cards (which now mirror the motorcycle card design) read consistently
   across archives and the homepage. */

/* Search form (WordPress default) */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 14px;
  padding: 10px 16px;
  outline: none;
}
.search-form .search-field:focus { border-color: var(--color-primary); }
.search-form .search-submit {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-form .search-submit:hover { background: var(--color-primary-h); }

/* WordPress native alignment */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .product-grid--motorcycles,
  .product-grid--spareparts { grid-template-columns: repeat(2, 1fr); }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand { max-width: none; }
  .single-product-layout { grid-template-columns: 1fr; gap: 32px; }
  .dealer-cta { grid-template-columns: 1fr; }
  .dealer-cta__image { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Mobile menu drawer — desktop hides drawer chrome
   ────────────────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .primary-nav__chrome,
  .primary-nav__footer,
  .submenu-toggle,
  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root { --gap: 16px; }

  /* Hide desktop nav inline; only render via .is-open class. */
  .primary-nav { display: none; }

  /* Hide my-account in the header bar — moved into drawer footer.
     Cart stays visible, search button stays visible, hamburger stays visible. */
  .header-account { display: none !important; }

  .mobile-menu-toggle { display: flex; }

  /* Animated hamburger → X */
  .mobile-menu-toggle .hamburger span { transform-origin: center; }
  .mobile-menu-toggle.is-active .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-menu-toggle.is-active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-menu-toggle.is-active .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Backdrop (created by JS)
     Must stay BELOW .site-header (z-index: 1000). The drawer nav lives inside
     the header, so its z-index cannot escape the header's stacking context —
     if the backdrop matches the header's z-index and is later in the DOM, it
     paints over the whole header including the drawer. */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
    z-index: 998;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* The drawer itself */
  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: 88vw;
    max-width: 380px;
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    box-shadow: -16px 0 60px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    z-index: 1001;
    padding-top: env(safe-area-inset-top, 0);
  }
  .primary-nav.is-animating-in {
    transform: translateX(0);
  }

  /* Drawer chrome — top bar with brand + close */
  .primary-nav__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
  }
  .primary-nav__brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-ink);
  }
  .primary-nav__close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-ink);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.15s ease;
  }
  .primary-nav__close:hover { background: var(--color-surface-3); }
  .primary-nav__close:active { transform: scale(0.95); }

  /* Body — scrollable list */
  .primary-nav.is-open .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px;
    gap: 0;
    background: transparent;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open .primary-nav__list > li {
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border-2);
    position: relative; /* anchor for chevron */
  }
  .primary-nav.is-open .primary-nav__list > li:last-child { border-bottom: none; }

  .primary-nav.is-open .primary-nav__list > li > a {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    border-bottom: none;
    min-height: 52px;
    transition: color 0.15s ease;
  }
  .primary-nav.is-open .primary-nav__list > li > a:hover,
  .primary-nav.is-open .primary-nav__list > li.current-menu-item > a {
    color: var(--color-primary);
  }
  .primary-nav.is-open .primary-nav__list > li.menu-item-has-children > a {
    padding-right: 56px; /* leave room for chevron button */
  }

  /* Submenu chevron button (injected by JS) */
  .submenu-toggle {
    position: absolute;
    top: 8px;
    right: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--color-border-2);
    border-radius: 10px;
    color: var(--color-muted);
    cursor: pointer;
    transition: transform 0.28s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  .submenu-toggle:hover {
    color: var(--color-ink);
    background: var(--color-surface-2);
    border-color: var(--color-border);
  }
  .submenu-toggle.is-expanded {
    transform: rotate(180deg);
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-primary-dim);
  }

  /* Submenu — collapsed by default, expand via .is-open */
  .primary-nav.is-open .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open .sub-menu.is-open {
    max-height: 800px;
  }
  .primary-nav.is-open .sub-menu li {
    width: 100%;
    border: none;
  }
  .primary-nav.is-open .sub-menu li a {
    display: block;
    padding: 12px 14px;
    font-size: 14.5px;
    color: var(--color-text);
    border-radius: 8px;
    margin-bottom: 2px;
    min-height: 44px;
    line-height: 1.4;
  }
  .primary-nav.is-open .sub-menu li a:hover,
  .primary-nav.is-open .sub-menu li.current-menu-item a {
    background: var(--color-surface-2);
    color: var(--color-primary);
  }

  /* Drawer footer (utility links + contact) */
  .primary-nav__footer {
    padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
    flex-shrink: 0;
  }

  /* ── Utility row (Mein Konto / Warenkorb) ──────────────────────────── */
  .primary-nav__utility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .primary-nav__utility-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    min-height: 72px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-ink);
    text-decoration: none;
    text-align: center;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  }
  .primary-nav__utility-link:hover,
  .primary-nav__utility-link:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(11, 102, 100, 0.10);
  }
  .primary-nav__utility-link:active { transform: translateY(1px); }
  .primary-nav__utility-link svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
  }

  /* ── Contact section with section label and icons ──────────────────── */
  .primary-nav__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-2);
  }
  .primary-nav__contact-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-muted-2);
    margin: 0 0 2px;
  }
  .primary-nav__contact p { margin: 0; }
  .primary-nav__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
    transition: color 0.15s ease;
  }
  .primary-nav__contact a:hover { color: var(--color-primary); }
  .primary-nav__contact a::before {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--color-primary-dim);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: background-color 0.15s ease;
  }
  .primary-nav__contact a[href^="tel:"]::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6664' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  }
  .primary-nav__contact a[href^="mailto:"]::before {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6664' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  }

  /* On mobile, never auto-hide the header on scroll — the hamburger needs
     to stay reachable from anywhere on the page. The desktop "hide on scroll
     down / reveal on scroll up" effect is overridden here. */
  .site-header.is-hidden { transform: none !important; }

  /* Lock body scroll while drawer is open. We rely on position:fixed (set
     via JS, which also captures + restores the scroll position) — plain
     overflow:hidden is unreliable on iOS Safari and some Android browsers. */
  html.is-menu-locked,
  html.is-menu-locked body {
    overflow: hidden;
    overscroll-behavior: contain;
  }
  html.is-menu-locked body {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
  }
  /* While the drawer is open, .site-header must NOT establish a containing
     block for position:fixed descendants — otherwise our fixed drawer ends
     up positioned relative to the (now-displaced) header instead of the
     viewport, and only a slice of it shows on screen. backdrop-filter is
     what creates that containing block, so we drop it during the lock. */
  html.is-menu-locked .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .section { padding: 60px 0; }

  /* Hero — mobile (centred stage) */
  .hero { min-height: 86vh; min-height: 86svh; max-height: none; }
  .hero__stage { gap: 18px; padding: 0 20px; }
  .hero__title { font-size: clamp(2rem, 9vw, 3rem); }
  .hero__title-accent { font-size: 0.82em; }
  .hero__subtitle { font-size: 0.95rem; line-height: 1.55; }
  .hero__pill { font-size: 10px; padding: 7px 14px 7px 12px; letter-spacing: 0.14em; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__corner { width: 36px; height: 36px; }
  .hero__corner--tl { top: calc(var(--header-h) + 12px); left: 16px; }
  .hero__corner--br { bottom: 80px; right: 16px; }
  .hero__rail { bottom: 22px; font-size: 9.5px; letter-spacing: 0.18em; }
  .hero__rail-line { width: 18px; }

  .brand-cards,
  .product-grid--motorcycles,
  .product-grid--spareparts { grid-template-columns: 1fr 1fr; }

  .post-grid { grid-template-columns: 1fr 1fr; }
  .section-header--flex { flex-direction: column; align-items: flex-start; gap: 16px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
    margin-bottom: 28px;
  }
  .footer-nav-grid { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .footer-locations { grid-template-columns: 1fr; }
  .site-footer__top { padding: 48px 0 32px; }
  .site-footer__bottom .container { flex-direction: column; align-items: flex-start; }

  .single-product-layout { padding: 32px 0; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.75rem; }
  .section-title { font-size: 1.5rem; }
  .error-404__code { font-size: 80px; }
  .product-grid--motorcycles,
  .product-grid--spareparts { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: 1fr; }
  .footer-nav-grid { grid-template-columns: 1fr; gap: 22px; }
}
