/* ==========================================================================
   SPARES N GEARS - GLOBAL STYLESHEET
   Branding & Colors from the official Spares N Gears logo:
   - Neon Lime: #ccff00
   - Racing Red: #ff2a2a
   - Electric Cyan: #00e5ff
   - Stealth Dark / Charcoal: #0a0d12, #10141d, #161c28
   ========================================================================== */

:root {
  --lime-primary: #84cc16;
  --lime-hover: #65a30d;
  --lime-glow: rgba(132, 204, 22, 0.25);
  --red-accent: #e11d48;
  --red-glow: rgba(225, 29, 72, 0.25);
  --cyan-accent: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  
  --bg-darkest: #ffffff;
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --border-subtle: #e2e8f0;
  --border-accent: rgba(132, 204, 22, 0.4);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --font-body: 'Outfit', sans-serif;
  --font-racing: 'Teko', sans-serif;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-neon: 0 4px 18px rgba(132, 204, 22, 0.25);
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(132, 204, 22, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-lime {
  background-color: var(--lime-primary);
  color: #0b0d12;
  box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}
.btn-lime:hover {
  background-color: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.45);
}

.btn-red {
  background-color: var(--red-accent);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 42, 42, 0.35);
}
.btn-red:hover {
  background-color: #e61e1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 42, 42, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--lime-primary);
  color: var(--lime-primary);
  background: rgba(204, 255, 0, 0.05);
}

.btn-cyan {
  background-color: var(--cyan-accent);
  color: #061118;
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.btn-cyan:hover {
  background-color: #00c7de;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

.badge-pill {
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}
.badge-sale {
  background: var(--red-accent);
  color: #fff;
}
.badge-brand {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-tag {
  color: var(--lime-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.4rem;
}
.section-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-subtext {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0.5rem auto 0;
  font-size: 0.975rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.top-announcement {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.top-announcement .flash-highlight {
  color: var(--red-accent);
  font-weight: 700;
}
.top-announcement-right {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.top-announcement-right a:hover {
  color: var(--lime-primary);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
}
.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1.25rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 6px rgba(204, 255, 0, 0.2));
}
.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: var(--font-racing);
  font-size: 1.5rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 3px;
}
.brand-title .brand-red {
  color: var(--red-accent);
  margin: 0 1px;
}
.brand-title .brand-cyan {
  color: var(--cyan-accent);
}
.brand-tagline {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}
.nav-item a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.3rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-item a:hover, .nav-item.active a {
  color: var(--lime-primary);
}
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--lime-primary);
  transition: width var(--transition-fast);
}
.nav-item a:hover::after, .nav-item.active a::after {
  width: 100%;
}

.nav-search-wrap {
  flex: 1;
  max-width: 260px;
  position: relative;
}
.search-input-box {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.42rem 2.4rem 0.42rem 0.95rem;
  color: var(--text-main);
  font-size: 0.825rem;
  outline: none;
  transition: all var(--transition-fast);
}
.search-input-box:focus {
  border-color: var(--lime-primary);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.2);
  background: #ffffff;
}
.search-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  font-size: 0.95rem;
}
.search-icon-btn:hover {
  color: var(--lime-primary);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1050;
  display: none;
}
.search-results-dropdown.show {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.search-result-item:hover {
  background: #f8fafc;
}
.search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.search-result-info h4 {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}
.search-result-info span {
  font-size: 0.75rem;
  color: var(--lime-primary);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.action-icon-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.action-icon-btn:hover {
  border-color: var(--lime-primary);
  color: var(--lime-primary);
  transform: translateY(-2px);
}
.action-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red-accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-darkest);
}
.cart-btn-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.25rem 0.75rem 0.25rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cart-btn-wrap:hover {
  border-color: var(--lime-primary);
  box-shadow: 0 0 12px rgba(204, 255, 0, 0.2);
}
.cart-price-tag {
  font-weight: 700;
  font-size: 0.825rem;
  color: var(--lime-primary);
}

.hamburger-btn {
  display: none;
  background: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Remove redundant top search bar */
.mobile-search-bar-wrap {
  display: none !important;
}

/* ==========================================================================
   TOP BRAND MARQUEE (RIGHT BELOW MENU ON TOP)
   ========================================================================== */
.top-brand-marquee {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.45rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 10;
}
.top-brand-marquee::before, .top-brand-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 60px;
  z-index: 2;
  pointer-events: none;
}
.top-brand-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}
.top-brand-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #f8fafc 0%, transparent 100%);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.8rem;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.brand-pill-item {
  font-family: var(--font-racing);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.brand-pill-item i {
  font-size: 0.5rem;
  color: var(--lime-primary);
}
.brand-pill-item:hover {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(132, 204, 22, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   PAGE BREADCRUMBS & HERO BANNERS (COMPACT ONE-LINER FLOW)
   ========================================================================== */
.page-hero-banner {
  padding: 1.25rem 0 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.page-hero-banner .section-heading {
  font-size: 1.7rem;
  margin-bottom: 0.25rem;
}
.page-hero-banner .section-subtext {
  font-size: 0.85rem;
  margin: 0.25rem auto 0;
  max-width: 580px;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.breadcrumbs a:hover {
  color: var(--lime-primary);
}
.breadcrumbs span {
  color: var(--lime-primary);
}

/* ==========================================================================
   CATEGORY FILTER PILLS (NO WHITE HIGHLIGHT, SLEEK DARK/LIME STYLE)
   ========================================================================== */
.filter-pill {
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.42rem 1.05rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  text-decoration: none;
}
.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--lime-primary);
  background: rgba(132, 204, 22, 0.12);
  transform: translateY(-1px);
}
.filter-pill.active {
  background: var(--lime-primary) !important;
  color: #0b0d12 !important;
  border-color: var(--lime-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(132, 204, 22, 0.35);
}

#catalogSearchInput {
  background: #ffffff !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-subtle) !important;
  outline: none !important;
  transition: all var(--transition-fast);
}
#catalogSearchInput:focus {
  border-color: var(--lime-primary) !important;
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.2) !important;
  background: #ffffff !important;
}

/* ==========================================================================
   PRODUCT CARDS & GRIDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.product-card:hover {
  border-color: var(--lime-primary);
  background: #ffffff;
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-top-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}
.card-actions-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}
.float-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.float-icon-btn:hover {
  color: var(--lime-primary);
  border-color: var(--lime-primary);
  transform: scale(1.1);
}
.float-icon-btn.active {
  color: var(--red-accent);
  border-color: var(--red-accent);
}

.product-img-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  position: relative;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  overflow: hidden;
}
.product-img-wrap img {
  max-height: 190px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.08);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.product-brand-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-rating {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.product-rating .count {
  color: var(--text-dim);
  font-weight: 400;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  cursor: pointer;
}
.product-title:hover {
  color: var(--lime-primary);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.current-price {
  font-family: var(--font-racing);
  font-size: 1.75rem;
  font-weight: 700;
  color: #15803d;
  line-height: 1;
}
.original-price {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}
.discount-percent {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red-accent);
  background: rgba(225, 29, 72, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.card-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.card-btn-group .btn {
  padding: 0.6rem 0.5rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   CART SLIDE-OUT DRAWER & CART PAGE
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}
.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0; right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border-subtle);
  z-index: 2501;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right var(--transition-smooth);
}
.cart-drawer.open {
  right: 0;
}
.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.close-drawer-btn {
  background: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.close-drawer-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.shipping-goal-bar {
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.825rem;
}
.goal-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.progress-track {
  height: 6px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lime-primary), var(--cyan-accent));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
}
.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  font-size: 0.875rem;
  color: #15803d;
  font-weight: 700;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}
.qty-btn {
  width: 26px;
  height: 26px;
  background: none;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover {
  color: var(--lime-primary);
  background: #e2e8f0;
}
.qty-display {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.5rem;
  min-width: 24px;
  text-align: center;
  color: var(--text-main);
}
.cart-item-remove {
  color: var(--text-dim);
  background: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.4rem;
}
.cart-item-remove:hover {
  color: var(--red-accent);
}

.empty-cart-view {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-muted);
}
.empty-cart-view i {
  font-size: 3.5rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.cart-drawer-footer {
  padding: 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}
.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.coupon-row input {
  flex: 1;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.cart-summary-line.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
.cart-summary-line.total .price {
  color: #15803d;
}
.cart-footer-btns {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   MODALS (AUTH, QUICK VIEW, WISHLIST, CHECKOUT CONFIRM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: opacity var(--transition-fast);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  position: relative;
}
.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}
.modal-body {
  padding: 2rem;
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.quick-view-img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.specs-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.specs-list li span {
  color: var(--text-main);
  font-weight: 600;
}

.auth-modal-card {
  max-width: 440px;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.auth-tab-btn {
  flex: 1;
  padding: 0.85rem;
  background: none;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.auth-tab-btn.active {
  color: var(--lime-primary);
  border-bottom-color: var(--lime-primary);
}

/* Form controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.form-field {
  margin-bottom: 0.85rem;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-size: 0.875rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--lime-primary);
  background: #ffffff;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--lime-primary);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateX(120%);
  transition: transform var(--transition-smooth);
  pointer-events: auto;
}
.toast.show {
  transform: translateX(0);
}
.toast i {
  color: var(--lime-primary);
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.25rem 0 1.5rem;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.social-btn:hover {
  background: var(--lime-primary);
  color: #000;
  border-color: var(--lime-primary);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--lime-primary);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--lime-primary);
  padding-left: 4px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.85rem;
}
.contact-item i {
  color: var(--lime-primary);
  margin-top: 3px;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.825rem;
  color: var(--text-dim);
}
.payment-icons {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.footer-admin-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}
.footer-admin-link:hover {
  color: var(--lime-primary);
  border-color: var(--lime-primary);
  background: rgba(132, 204, 22, 0.08);
}

/* ==========================================================================
   MOBILE BOTTOM BAR & RESPONSIVENESS
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
}
.bottom-nav-item i {
  font-size: 1.15rem;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--lime-primary);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0; right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-dark);
  border-left: 1px solid var(--border-subtle);
  z-index: 2001;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right var(--transition-smooth);
}
.mobile-nav-drawer.open {
  right: 0;
}
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-links a {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mobile-links a:hover {
  color: var(--lime-primary);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-search-wrap, .top-announcement-right { display: none; }
  .hamburger-btn { display: block; }
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quick-view-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   INTERACTIVE BIG CATEGORY SHOWCASE CARDS WITH ANIMATED PRODUCT CYCLING
   ========================================================================== */
.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (min-width: 1280px) {
  .category-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.category-showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--lime-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(132, 204, 22, 0.15);
}

.category-showcase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime-primary), var(--cyan-accent));
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 4;
}

.category-showcase-card:hover::before {
  opacity: 1;
}

.cat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  z-index: 2;
}

.cat-icon-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cat-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(132, 204, 22, 0.1);
  border: 1px solid rgba(132, 204, 22, 0.25);
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all var(--transition-fast);
}

.category-showcase-card:hover .cat-icon-badge {
  background: var(--lime-primary);
  color: #000;
  transform: scale(1.08) rotate(-4deg);
}

.cat-title-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.cat-badge-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-accent);
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Visual Product Stage */
.cat-image-stage {
  height: 240px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.cat-image-stage .product-stage-img {
  max-height: 195px;
  max-width: 82%;
  object-fit: contain;
  position: absolute;
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  will-change: transform, opacity;
}

/* Animation Style 1: Zoom & Depth Fade (Helmets) */
.cat-anim-zoom-fade .img-enter {
  opacity: 0;
  transform: scale(0.65) translateY(25px);
}
.cat-anim-zoom-fade .img-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.cat-anim-zoom-fade .img-exit {
  opacity: 0;
  transform: scale(1.3) translateY(-20px);
}

/* Animation Style 2: Slide Up Lift (Jackets) */
.cat-anim-slide-up .img-enter {
  opacity: 0;
  transform: translateY(80px) scale(0.88);
}
.cat-anim-slide-up .img-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cat-anim-slide-up .img-exit {
  opacity: 0;
  transform: translateY(-70px) scale(0.88);
}

/* Animation Style 3: Moto Lean & Tilt (Riding boots) */
.cat-anim-rotate-tilt .img-enter {
  opacity: 0;
  transform: rotate(-18deg) scale(0.75) translateX(-45px);
}
.cat-anim-rotate-tilt .img-active {
  opacity: 1;
  transform: rotate(0deg) scale(1) translateX(0);
}
.cat-anim-rotate-tilt .img-exit {
  opacity: 0;
  transform: rotate(18deg) scale(1.15) translateX(45px);
}

/* Animation Style 4: Horizontal Speed Glide (Gloves) */
.cat-anim-slide-right .img-enter {
  opacity: 0;
  transform: translateX(90px) scale(0.85);
}
.cat-anim-slide-right .img-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.cat-anim-slide-right .img-exit {
  opacity: 0;
  transform: translateX(-90px) scale(0.85);
}

/* Animation Style 5: 3D Flip & Pop (Accessories) */
.cat-anim-flip-3d .img-enter {
  opacity: 0;
  transform: perspective(600px) rotateY(85deg) scale(0.8);
}
.cat-anim-flip-3d .img-active {
  opacity: 1;
  transform: perspective(600px) rotateY(0deg) scale(1);
}
.cat-anim-flip-3d .img-exit {
  opacity: 0;
  transform: perspective(600px) rotateY(-85deg) scale(0.8);
}

/* Animation Style 6: Pulse & Radiate (Riding Essentials) */
.cat-anim-pulse-scale .img-enter {
  opacity: 0;
  transform: scale(0.45);
}
.cat-anim-pulse-scale .img-active {
  opacity: 1;
  transform: scale(1);
}
.cat-anim-pulse-scale .img-exit {
  opacity: 0;
  transform: scale(1.35);
}

/* Animation Style 7: Drop & Settle (Luggages) */
.cat-anim-drop-bounce .img-enter {
  opacity: 0;
  transform: translateY(-85px) scale(0.88);
}
.cat-anim-drop-bounce .img-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cat-anim-drop-bounce .img-exit {
  opacity: 0;
  transform: translateY(50px) scale(0.85);
}

/* Product Tag Overlay inside Stage */
.cat-product-info-pill {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  transition: all 0.3s ease;
  z-index: 3;
}

.cat-product-name {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.cat-product-price {
  font-family: var(--font-racing);
  color: #15803d;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Bottom CTA inside Card */
.cat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.cat-explore-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.category-showcase-card:hover .cat-explore-link {
  color: var(--lime-primary);
}

.cat-explore-link i {
  transition: transform var(--transition-fast);
}

.category-showcase-card:hover .cat-explore-link i {
  transform: translateX(5px);
}

.cat-dot-indicators {
  display: flex;
  gap: 5px;
}

.cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all 0.3s ease;
}

.cat-dot.active {
  background: var(--lime-primary);
  width: 16px;
  border-radius: 3px;
}

/* ==========================================================================
   HOT NEW DROP - 3D PAGE TURN OVER SLIDER
   ========================================================================== */
.hot-drop-wrapper {
  position: relative;
  perspective: 1400px;
  perspective-origin: center;
  width: 100%;
}

.hot-drop-carousel {
  position: relative;
  width: 100%;
  min-height: 440px;
  transform-style: preserve-3d;
}

.hot-drop-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: left center; /* Spine axis for page turning */
  backface-visibility: hidden;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.85s ease, box-shadow 0.85s ease;
  will-change: transform, opacity;
  pointer-events: none;
  opacity: 0;
  transform: rotateY(90deg) scale(0.92);
}

.hot-drop-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: rotateY(0deg) scale(1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12), 0 0 20px rgba(132, 204, 22, 0.1);
  z-index: 2;
}

/* Page turning out to the left */
.hot-drop-slide.page-turn-out {
  transform: rotateY(-90deg) scale(0.92);
  opacity: 0;
  z-index: 1;
  box-shadow: -15px 0 30px rgba(0, 0, 0, 0.2);
}

/* Page turning in from the right */
.hot-drop-slide.page-turn-in {
  transform: rotateY(90deg) scale(0.92);
  opacity: 0;
  z-index: 3;
}

/* Simulated 3D page turn spine & crease lighting */
.hot-drop-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 35px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
  pointer-events: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Navigation Controls */
.hot-drop-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hot-drop-nav-btn:hover {
  background: var(--lime-primary);
  color: #000;
  border-color: var(--lime-primary);
  box-shadow: 0 0 18px var(--lime-glow);
  transform: translateY(-50%) scale(1.1);
}

.hot-drop-prev { left: -18px; }
.hot-drop-next { right: -18px; }

/* Page number & indicator bar */
.hot-drop-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hot-drop-dots-wrap {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hot-drop-page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hot-drop-page-dot.active {
  background: var(--lime-primary);
  width: 22px;
  border-radius: 4px;
}

/* ==========================================================================
   HERO VIDEO BACKGROUND
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.hero-video-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  transition: opacity 0.3s ease;
}

/* Subtle, transparent vignette: preserves full video visibility while softly anchoring text */
.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 35%, rgba(255, 255, 255, 0.4) 65%, rgba(255, 255, 255, 0.98) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

/* Disabled scanlines for crystal clear video clarity */
.hero-video-scanline {
  display: none;
}

.hero-section > .container {
  position: relative;
  z-index: 2;
}

.hero-grid-container {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 2.5rem;
  align-items: start;
}

/* High-contrast typography styles over video */
.hero-text-block h1 {
  color: var(--text-main);
  text-shadow: none;
}

.hero-text-block p {
  color: var(--text-main) !important;
  font-weight: 500;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--lime-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hero-stats-row {
  display: flex;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Floating interactive video controls badge */
.hero-video-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.hero-video-ctrl-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.hero-video-ctrl-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.hero-video-ctrl-btn.active {
  background: rgba(132, 204, 22, 0.18);
  color: #15803d;
  border-color: rgba(132, 204, 22, 0.4);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.15);
}

/* ==========================================================================
   COMPREHENSIVE MOBILE VIEW OPTIMIZATIONS (< 768px and < 480px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Global Viewport & Container Settings */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  body {
    padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* 2. Top Announcement Bar */
  .top-announcement {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.5rem !important;
    text-align: center !important;
  }
  .top-announcement .container {
    justify-content: center !important;
  }
  .top-announcement-right {
    display: none !important;
  }

  /* 3. Header & Navigation */
  .main-header {
    padding: 0.5rem 0 !important;
  }
  .brand-logo-img {
    max-height: 34px !important;
  }
  .brand-title {
    font-size: 1.15rem !important;
  }
  .brand-tagline {
    font-size: 0.65rem !important;
  }
  .nav-actions {
    gap: 0.4rem !important;
  }
  .nav-actions .btn {
    display: none !important; /* Hide "Login" text button to avoid header wrapping */
  }
  .action-icon-btn, .cart-btn-wrap {
    padding: 0.35rem !important;
  }
  .cart-price-tag {
    display: none !important; /* Save space on small screens */
  }

  /* Mobile Search Bar in Header */
  .mobile-search-bar-wrap {
    display: none !important;
  }

  /* 4. Hero Section */
  .hero-section {
    padding: 1.25rem 0 1.5rem !important;
    min-height: auto !important;
  }
  .hero-section > .container,
  .hero-grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .hero-text-block {
    text-align: left !important;
  }
  .hero-text-block h1 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
    margin-bottom: 0.75rem !important;
  }
  .hero-text-block p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 1rem !important;
  }
  .hero-text-block > div[style*="display: flex"] {
    display: flex !important;
    gap: 0.65rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-text-block .btn {
    flex: 1 1 auto !important;
    min-width: 130px !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    padding: 0.65rem 0.85rem !important;
  }
  
  /* 2x2 Trust Stats Grid on Mobile */
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    padding-top: 0.85rem !important;
    width: 100% !important;
  }
  .hero-stat-card {
    padding: 0.45rem 0.65rem !important;
    text-align: center !important;
  }
  .hero-stat-card h3 {
    font-size: 1.55rem !important;
  }
  .hero-stat-card p {
    font-size: 0.65rem !important;
  }

  /* 3D Hot New Drop Card Mobile Sizing */
  .hot-drop-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 1rem !important;
  }
  .hot-drop-carousel {
    min-height: 380px !important;
  }
  .hot-drop-slide {
    padding: 1rem !important;
  }
  .hot-drop-slide .hot-drop-meta-bar span {
    font-size: 0.7rem !important;
  }
  .hot-drop-slide img {
    max-height: 175px !important;
  }
  /* Keep arrow buttons inside the card on mobile to eliminate overflow */
  .hot-drop-prev {
    left: 4px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 0.8rem !important;
  }
  .hot-drop-next {
    right: 4px !important;
    width: 34px !important;
    height: 34px !important;
    font-size: 0.8rem !important;
  }
  .hot-drop-dots-wrap {
    bottom: -18px !important;
  }

  /* Video Switcher Floating Controls Badge on Mobile */
  .hero-video-controls {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0.85rem auto 0 !important;
    display: inline-flex !important;
    width: fit-content !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    z-index: 5 !important;
  }
  .hero-video-ctrl-btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.7rem !important;
  }
  .hero-video-ctrl-btn span {
    display: inline-block !important;
    font-size: 0.68rem !important;
  }

  /* 5. Category Showcase Grid on Mobile */
  .category-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .category-showcase-card {
    padding: 1.25rem 1rem !important;
  }
  .cat-image-stage {
    height: 190px !important;
  }

  /* 6. 2-Column Responsive Product Grid on Mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .product-card {
    padding: 0.65rem !important;
    border-radius: var(--radius-md) !important;
  }
  .product-img-wrap {
    height: 125px !important;
    margin-bottom: 0.4rem !important;
  }
  .product-img-wrap img {
    max-height: 110px !important;
  }
  .card-top-badges {
    top: 0.35rem !important;
    left: 0.35rem !important;
    gap: 0.25rem !important;
  }
  .card-top-badges .badge-pill {
    font-size: 0.62rem !important;
    padding: 0.15rem 0.4rem !important;
  }
  .card-actions-float {
    top: 0.35rem !important;
    right: 0.35rem !important;
    gap: 0.25rem !important;
  }
  .card-actions-float .float-icon-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.72rem !important;
  }
  .product-meta-row {
    margin-bottom: 0.25rem !important;
  }
  .product-brand-tag {
    font-size: 0.65rem !important;
  }
  .product-rating {
    font-size: 0.7rem !important;
  }
  .product-rating .count {
    display: none !important;
  }
  .product-title {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    min-height: 2.5em !important;
    margin-bottom: 0.35rem !important;
  }
  .price-row {
    gap: 0.3rem !important;
    margin-bottom: 0.45rem !important;
    align-items: baseline !important;
  }
  .price-row .current-price {
    font-size: 1rem !important;
  }
  .price-row .original-price {
    font-size: 0.72rem !important;
  }
  .price-row .discount-percent {
    font-size: 0.65rem !important;
    padding: 0.1rem 0.3rem !important;
  }
  .card-btn-group {
    display: flex !important;
    gap: 0.35rem !important;
  }
  .card-btn-group .btn {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.72rem !important;
    flex: 1 !important;
    justify-content: center !important;
  }

  /* 7. Pitstop Flash Deals Countdown Banner */
  #flashSaleHome .container > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 1.15rem 1.25rem !important;
    gap: 1rem !important;
    margin-bottom: 1.75rem !important;
  }
  #flashSaleHome h2 {
    font-size: 1.45rem !important;
  }

  /* 8. Shop Page Filters Mobile */
  #catalogCategoryPills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem !important;
    width: 100% !important;
    gap: 0.4rem !important;
  }
  #catalogCategoryPills::-webkit-scrollbar {
    display: none;
  }
  #catalogCategoryPills button,
  #catalogCategoryPills .cat-pill-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 0.35rem 0.75rem !important;
  }
  #brandFilterSelect, #sortSelect {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* 9. Product Details Page (PDP) Mobile */
  #pdpMainGrid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    margin-bottom: 2.5rem !important;
  }
  #pdpMainImage {
    max-height: 260px !important;
  }
  #pdpTitle {
    font-size: 1.55rem !important;
  }
  #pdpPrice {
    font-size: 1.85rem !important;
  }

  /* 10. Cart & Checkout Grid Mobile */
  #cartPageGrid, #checkoutGrid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }
  .cart-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 11. Section Headings & Spacing */
  .section-heading {
    font-size: 1.75rem !important;
  }
  .section-subtext {
    font-size: 0.85rem !important;
  }
  .section-title-wrap {
    margin-bottom: 1.5rem !important;
  }

  /* 12. Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid var(--border-subtle) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05) !important;
    z-index: 999 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  .bottom-nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    color: var(--text-muted) !important;
    font-size: 0.65rem !important;
    gap: 0.25rem !important;
    text-decoration: none !important;
    flex: 1 !important;
    transition: color 0.2s ease !important;
  }
  .bottom-nav-item i {
    font-size: 1.15rem !important;
  }
  .bottom-nav-item.active,
  .bottom-nav-item:hover {
    color: var(--lime-primary) !important;
  }
}

@media (max-width: 480px) {
  .hero-text-block h1 {
    font-size: 1.75rem !important;
  }
  .products-grid {
    gap: 0.5rem !important;
  }
  .product-card {
    padding: 0.55rem !important;
  }
  .product-img-wrap {
    height: 115px !important;
  }
}

/* ==========================================================================
   CATEGORIES PAGE - CLEAN PRODUCT THUMBNAIL SCROLLING CAROUSEL
   ========================================================================== */
.cat-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.cat-thumb-carousel-wrap {
  position: relative;
  margin: 1.15rem 0 1.25rem;
  padding: 0 28px;
}

.cat-thumb-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
}
.cat-thumb-track::-webkit-scrollbar {
  display: none;
}

.cat-thumb-card {
  flex: 0 0 86px;
  width: 86px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.cat-thumb-card:hover {
  border-color: var(--lime-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 0 10px rgba(132, 204, 22, 0.2);
}

.cat-thumb-img-stage {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.cat-thumb-img-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.cat-thumb-price {
  font-family: var(--font-racing);
  font-size: 0.72rem;
  color: #15803d;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cat-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  cursor: pointer;
  z-index: 3;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.cat-carousel-arrow:hover {
  background: var(--lime-primary);
  color: #000;
  border-color: var(--lime-primary);
}
.cat-arrow-prev { left: 0; }
.cat-arrow-next { right: 0; }




