/* ─────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────────── */
:root {
  --bg-dark:        #111111;
  --bg-darker:      #0a0a0a;
  --bg-card:        #1a1a1a;
  --bg-card-hover:  #222222;
  --bg-topbar:      #0d0d0d;
  --accent:         #FF6B00;
  --accent-hover:   #e55f00;
  --accent-light:   rgba(255,107,0,0.12);
  --text-primary:   #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted:     #666666;
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,107,0,0.4);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.7);
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --header-h:       64px;
  --topbar-h:       36px;
  --transition:     0.22s cubic-bezier(0.4,0,0.2,1);
  --font-main:      'Inter', system-ui, sans-serif;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: #1a1a1a;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 56px);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
svg { display: block; flex-shrink: 0; }

/* ─────────────────────────────────────────────
   SITE HEADER WRAPPER (sticky)
───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* ─────────────────────────────────────────────
   TOP UTILITY BAR
───────────────────────────────────────────── */
.top-bar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.top-bar__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-bar__promo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top-bar__promo svg { color: var(--accent); }
.top-bar__divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 4px;
}
.top-bar__right {
  display: flex;
  align-items: center;
  gap: 2px;
}
.top-bar__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.top-bar__link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.top-bar__select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-family: inherit;
  padding: 3px 24px 3px 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  transition: border-color var(--transition), color var(--transition);
}
.top-bar__select:hover { border-color: var(--accent); color: var(--text-primary); }
.top-bar__select option { background: #1a1a1a; color: #fff; }

/* ─────────────────────────────────────────────
   MAIN HEADER
───────────────────────────────────────────── */
.main-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.main-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.site-logo__text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1;
}
.site-logo__text span { color: var(--accent); }

/* Search Bar */
.header-search {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.header-search__form {
  display: flex;
  align-items: center;
  background: #1c1c1c;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search__form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.header-search__cat {
  appearance: none;
  background: #252525;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  padding: 0 30px 0 14px;
  height: 42px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: color var(--transition);
}
.header-search__cat:focus { outline: none; color: #fff; }
.header-search__cat option { background: #1a1a1a; }
.header-search__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  padding: 0 16px;
  height: 42px;
  min-width: 0;
}
.header-search__input::placeholder { color: var(--text-muted); }
.header-search__input:focus { outline: none; }
.header-search__btn {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 44px;
  height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.header-search__btn:hover { background: var(--accent-hover); }
/* Search dropdown */
.header-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
  overflow: hidden;
}
.header-search__dropdown.active { display: block; }
.search-dd-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 16px 6px;
}
.search-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.search-dd-item:hover { background: rgba(255,255,255,0.04); }
.search-dd-item__img {
  width: 38px; height: 38px;
  border-radius: 6px;
  background: #252525;
  object-fit: cover;
  flex-shrink: 0;
}
.search-dd-item__name { font-size: 13px; font-weight: 500; }
.search-dd-item__cat { font-size: 11px; color: var(--text-muted); }
.search-dd-item__price { font-size: 13px; color: var(--accent); font-weight: 600; margin-left: auto; }
.search-dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.search-dd-categories {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 16px 12px;
}
.search-dd-cat-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: #252525;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.search-dd-cat-pill:hover { background: var(--accent-light); color: var(--accent); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header-icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.header-icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.header-icon-btn .badge {
  position: absolute;
  top: 5px; right: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 1.5px solid var(--bg-dark);
}
.header-cart-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  height: 42px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.header-cart-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.header-cart-btn__count {
  background: rgba(0,0,0,0.25);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 800;
}

/* ─────────────────────────────────────────────
   NAVIGATION BAR
───────────────────────────────────────────── */
.nav-bar {
  background: #161616;
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}
.nav-bar__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-item__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-item__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-item:hover > .nav-item__link,
.nav-item.active > .nav-item__link {
  color: var(--text-primary);
}
.nav-item:hover > .nav-item__link::after,
.nav-item.active > .nav-item__link::after {
  transform: scaleX(1);
}
.nav-item__link .chevron {
  transition: transform var(--transition);
  margin-left: 1px;
}
.nav-item:hover > .nav-item__link .chevron { transform: rotate(180deg); }

/* Right side nav extras */
.nav-bar__extras {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-promo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-promo-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─────────────────────────────────────────────
   MEGA MENU DROPDOWN BASE
───────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  top: calc(var(--topbar-h) + var(--header-h) + 56px);
  left: 0; right: 0;
  background: #161616;
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 9000;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
.mega-menu::-webkit-scrollbar { width: 4px; }
.mega-menu::-webkit-scrollbar-track { background: transparent; }
.mega-menu::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.nav-item:hover .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  gap: 32px;
}

/* ─────────────────────────────────────────────
   MEGA MENU COLUMNS
───────────────────────────────────────────── */
.mm-col-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mm-links { display: flex; flex-direction: column; gap: 1px; }
.mm-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.mm-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  transform: translateX(4px);
}
.mm-link .mm-link-icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: background var(--transition);
}
.mm-link:hover .mm-link-icon { background: var(--accent-light); }
.mm-link .badge-new {
  margin-left: auto;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mm-link .badge-sale {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Featured product cards in mega menu */
.mm-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mm-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.mm-product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.mm-product-card__img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #222;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.mm-product-card__body { padding: 10px 12px; }
.mm-product-card__name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.mm-product-card__price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.mm-product-card__old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

/* Promo banner inside mega menu */
.mm-promo-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 50%, #111 100%);
  border: 1px solid rgba(255,107,0,0.2);
}
.mm-promo-banner__emoji {
  font-size: 48px;
  position: absolute;
  top: 20px; right: 20px;
  opacity: 0.6;
}
.mm-promo-banner__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.mm-promo-banner__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
}
.mm-promo-banner__cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 6px;
  width: fit-content;
  transition: background var(--transition);
}
.mm-promo-banner__cta:hover { background: var(--accent-hover); }

/* Brand logo grid */
.mm-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mm-brand-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}
.mm-brand-card:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Icon+text category tile (Parts) */
.mm-tile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.mm-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}
.mm-tile:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}
.mm-tile__icon { font-size: 24px; }
.mm-tile__label { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }
.mm-tile:hover .mm-tile__label { color: var(--accent); }

/* ─────────────────────────────────────────────
   SPECIFIC MEGA MENU LAYOUTS
───────────────────────────────────────────── */

/* SHOP */
.mm-shop .mega-menu__inner {
  grid-template-columns: 1fr 1fr 1fr 280px;
}

/* RIDING GEAR */
.mm-riding-gear .mega-menu__inner {
  grid-template-columns: repeat(5, 1fr) 260px;
}

/* MOTORCYCLE PARTS */
.mm-parts .mega-menu__inner {
  grid-template-columns: 1fr;
}

/* ACCESSORIES */
.mm-accessories .mega-menu__inner {
  grid-template-columns: 1fr 1fr 1fr 1fr 260px;
}

/* TOURING */
.mm-touring .mega-menu__inner {
  grid-template-columns: 1fr 1fr 260px;
}

/* MAINTENANCE */
.mm-maintenance .mega-menu__inner {
  grid-template-columns: 1fr 1fr 260px;
}

/* BRANDS */
.mm-brands .mega-menu__inner {
  grid-template-columns: 1fr 300px;
  align-items: start;
}

/* ─────────────────────────────────────────────
   MOBILE MENU TOGGLE
───────────────────────────────────────────── */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}
.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: #141414;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.7);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* Drawer header */
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
}

/* Mobile search */
.drawer-search {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-search__form {
  display: flex; align-items: center;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.drawer-search__input {
  flex: 1; background: transparent; border: none;
  color: var(--text-primary); font-family: inherit;
  font-size: 14px; padding: 10px 14px;
}
.drawer-search__input:focus { outline: none; }
.drawer-search__btn {
  background: transparent; border: none;
  color: var(--text-muted);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}

/* Drawer quick links */
.drawer-quick {
  display: flex; gap: 8px; padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-quick__btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #1c1c1c; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 6px;
  font-size: 10px; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.drawer-quick__btn:hover { border-color: var(--accent); color: var(--accent); }

/* Drawer nav accordion */
.drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.drawer-nav::-webkit-scrollbar { width: 3px; }
.drawer-nav::-webkit-scrollbar-thumb { background: #333; }
.drawer-nav-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.drawer-nav-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: transparent; border: none;
  color: var(--text-primary);
  font-family: inherit; font-size: 14px; font-weight: 600;
  text-align: left; cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.drawer-nav-btn:hover { color: var(--accent); background: rgba(255,107,0,0.04); }
.drawer-nav-btn .drawer-chevron {
  transition: transform 0.22s;
  color: var(--text-muted);
}
.drawer-nav-item.open .drawer-chevron { transform: rotate(180deg); }
.drawer-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
  background: rgba(0,0,0,0.2);
}
.drawer-nav-item.open .drawer-subnav { max-height: 600px; }
.drawer-subnav-group { padding: 8px 0; }
.drawer-subnav-label {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  padding: 8px 20px 4px;
}
.drawer-subnav-link {
  display: block;
  padding: 9px 20px 9px 32px;
  font-size: 13px; color: var(--text-secondary);
  transition: color var(--transition), padding-left var(--transition);
}
.drawer-subnav-link:hover { color: var(--text-primary); padding-left: 36px; }

/* Drawer bottom actions */
.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;
}
.drawer-footer-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font-size: 13px; color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
}
.drawer-footer-link:hover { color: var(--accent); }
.drawer-footer-link:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────
   DEMO PAGE CONTENT
───────────────────────────────────────────── */
.demo-hero {
  text-align: center;
  padding: 80px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.demo-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: #fff;
  margin-bottom: 16px;
}
.demo-hero h1 span { color: var(--accent); }
.demo-hero p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .nav-item__link { padding: 0 10px; font-size: 12px; }
  .mm-riding-gear .mega-menu__inner { grid-template-columns: repeat(3, 1fr) 260px; }
  .mm-accessories .mega-menu__inner { grid-template-columns: 1fr 1fr 1fr 260px; }
}

@media (max-width: 1024px) {
  .top-bar__left .top-bar__promo-text { display: none; }
  .nav-bar, .main-header__inner { padding: 0 16px; }
}

@media (max-width: 900px) {
  /* Hide desktop nav, show mobile */
  .nav-bar { display: none; }
  .mega-menu { display: none !important; }
  .mobile-toggle { display: flex; }
  .top-bar { display: none; }

  .main-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 0 16px;
  }
  body { padding-top: calc(var(--header-h) + 8px); }
  .site-logo__text { font-size: 20px; }

  .header-actions .header-icon-btn:not(:last-of-type):not(:nth-last-of-type(2)) {
    display: none;
  }
  .header-cart-btn { padding: 0 12px; }
  .header-cart-btn span:not(.header-cart-btn__count) { display: none; }
}

@media (max-width: 640px) {
  .main-header__inner { gap: 8px; }
  .header-search__cat { display: none; }
  .site-logo__text { display: none; }
}

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   WORDPRESS & ASTRA INTEGRATION
   ══════════════════════════════════════════════════════════ */

/* Hide Astra's native header so only our mega menu shows.
   #masthead has no class on this site — target by ID only. */
#masthead,
.site-header.ast-site-header-wrap,
.ast-above-header-wrap,
.ast-below-header-wrap,
.ast-primary-header-bar,
.ast-main-header-wrap,
.ast-desktop-header {
  display: none !important;
}

/* Admin bar: push our sticky header down 32px (46px on mobile) */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}

/* Override Elementor/Astra body padding with our header height */
body,
body.elementor-page {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 56px) !important;
}
body.admin-bar,
body.admin-bar.elementor-page {
  padding-top: calc(var(--topbar-h) + var(--header-h) + 56px + 32px) !important;
}

/* Cart fragment transition: smooth count badge update */
.header-cart-btn__count {
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.header-cart-btn__count.trp-bump {
  transform: scale(1.4);
}

/* Elementor: ensure our header sits above Elementor sticky elements */
#site-header { z-index: 9999 !important; }
