/* ================================================================
   M&M Trade — B2B Automotive Store Design System
   Premium European automotive parts supplier aesthetic
   Inter (body) + Barlow Condensed (display/headings)
   Palette: Navy #1a1a2e | Red #e63946 | Gold #f4a261
   ================================================================ */

@import 'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Barlow+Condensed:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&display=swap';

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  --primary:      #1a1a2e;
  --primary-rgb:  26,26,46;
  --primary-light:#2d2d54;
  --accent:       #e63946;
  --accent-rgb:   230,57,70;
  --gold:         #f4a261;
  --gold-dark:    #d4855e;
  --surface:      #ffffff;
  --surface-2:    #f7f8fc;
  --surface-3:    #eef0f7;
  --text:         #1a1a2e;
  --text-muted:   #6b7280;
  --text-light:   #9ca3af;
  --border:       rgba(26,26,46,0.10);
  --border-light: rgba(26,26,46,0.05);
  --radius-sm:    0.375rem;
  --radius:       0.75rem;
  --radius-lg:    1.25rem;
  --shadow-sm:    0 1px 4px rgba(var(--primary-rgb),0.06);
  --shadow:       0 4px 20px rgba(var(--primary-rgb),0.09);
  --shadow-lg:    0 12px 40px rgba(var(--primary-rgb),0.15);
  --shadow-xl:    0 24px 64px rgba(var(--primary-rgb),0.20);
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
  --font-body:    'Inter', -apple-system, blinkmacsystemfont, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', arial, sans-serif;
  --topbar-h:     42px;
  --navbar-h:     68px;
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); opacity: 0.85; }

/* ── Page Loader ────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
#page-loader .loader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
#page-loader .loader-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
}
#page-loader .loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
#page-loader .loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-slide 1.2s ease-in-out infinite;
}
@keyframes loader-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
#page-loader.hidden { opacity: 0; pointer-events: none; }

/* ── Topbar ─────────────────────────────────────────────────────── */
.store-topbar {
  height: var(--topbar-h);
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.store-topbar a { color: var(--gold); }
.store-topbar a:hover { color: #fff; opacity: 1; }
.store-topbar .b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(230,57,70,0.15);
  border: 1px solid rgba(230,57,70,0.3);
  color: #f87171;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.store-navbar {
  min-height: var(--navbar-h);
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--topbar-h);
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition), background var(--transition);
}
.store-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(var(--primary-rgb),0.12);
  background: rgba(255,255,255,0.97);
}
.store-navbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  overflow: hidden;
  max-height: calc(var(--navbar-h) - 16px);
}
.store-navbar .navbar-brand img {
  height: 34px !important;
  width: auto;
  max-height: 34px;
  object-fit: contain;
}
.store-navbar .navbar-brand .brand-mm { color: var(--primary); }
.store-navbar .navbar-brand .brand-amp { color: var(--accent); }
.store-navbar .navbar-brand .brand-trade { color: var(--primary); }
.store-navbar .nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--text-muted) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.store-navbar .nav-link:hover,
.store-navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--surface-3);
}
.store-navbar .nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.store-navbar .nav-icon-btn:hover { background: var(--surface-3); color: var(--primary); }
.store-navbar .cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 0 4px;
}
.store-navbar .btn-client-login {
  background: var(--accent);
  color: #fff !important;
  border: none;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.store-navbar .btn-client-login:hover {
  background: #c62535;
  transform: translateY(-1px);
  opacity: 1;
}
.store-navbar .avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary,
.btn.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.2rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: #c62535;
  border-color: #c62535;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb),0.35);
}
.btn-outline,
.btn.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.2rem;
  transition: all var(--transition);
}
.btn-outline:hover,
.btn.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.2rem;
  transition: all var(--transition);
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* ── Hero Section ───────────────────────────────────────────────── */
.store-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.store-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../hero_image.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.25;
  transition: opacity 0.5s;
}
.store-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.92) 0%,
    rgba(26,26,46,0.70) 50%,
    rgba(230,57,70,0.15) 100%
  );
}
.store-hero-content { position: relative; z-index: 2; }
.store-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.store-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.store-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.store-hero h1 .hero-accent { color: var(--accent); }
.store-hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2rem;
}
.store-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.store-hero-actions .btn-hero-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.store-hero-actions .btn-hero-primary:hover {
  background: #c62535;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb),0.4);
  color: #fff;
  opacity: 1;
}
.store-hero-actions .btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.store-hero-actions .btn-hero-outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
  opacity: 1;
}
.store-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: hero-bounce 2s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats Bar ───────────────────────────────────────────────────── */
.store-stats-bar {
  background: var(--primary);
  padding: 1.25rem 0;
}
.store-stats-bar .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.store-stats-bar .stat-item:last-child { border-right: none; }
.store-stats-bar .stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.store-stats-bar .stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.store-stats-bar .stat-sub {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ── Section Utilities ───────────────────────────────────────────── */
.store-section { padding: 5rem 0; }
.store-section-sm { padding: 3rem 0; }
.store-section-alt { background: var(--surface-2); }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Brand Cards ─────────────────────────────────────────────────── */
.brand-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.brand-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.brand-card:hover .brand-card-bg { transform: scale(1.04); }
.brand-card-overlay {
  position: absolute;
  inset: 0;
  transition: opacity var(--transition);
}
.brand-card.modika .brand-card-overlay {
  background: linear-gradient(160deg, rgba(230,57,70,0.85) 0%, rgba(26,26,46,0.9) 100%);
}
.brand-card.suspentek .brand-card-overlay {
  background: linear-gradient(160deg, rgba(26,26,46,0.9) 0%, rgba(26,46,80,0.95) 100%);
}
.brand-card-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  width: 100%;
}
.brand-card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.brand-card-name {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  line-height: 1;
}
.brand-card-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.brand-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.brand-card-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  gap: 0.75rem;
  opacity: 1;
}
.brand-card.modika .brand-card-cta:hover { background: rgba(230,57,70,0.3); }

/* ── Vehicle Search Widget ───────────────────────────────────────── */
.vehicle-search-widget {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.vehicle-search-widget::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.vehicle-search-widget .widget-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.vehicle-search-widget .widget-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.vehicle-search-widget .form-select,
.vehicle-search-widget .form-control {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.vehicle-search-widget .form-select option { background: var(--primary); color: #fff; }
.vehicle-search-widget .form-select:focus,
.vehicle-search-widget .form-control:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,162,97,0.2);
  color: #fff;
}
.vehicle-search-widget .form-control::placeholder { color: rgba(255,255,255,0.4); }
.vehicle-search-widget .btn-search-vehicle {
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.vehicle-search-widget .btn-search-vehicle:hover {
  background: #c62535;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb),0.4);
}
.vehicle-search-widget .brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.vehicle-search-widget .brand-logo-pill {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

/* ── Category Cards ──────────────────────────────────────────────── */
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  opacity: 1;
}
.category-card:hover .cat-icon { background: var(--accent); color: #fff; }
.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition);
}
.cat-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Product Cards ───────────────────────────────────────────────── */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.product-media .img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-media .img-cover { transform: scale(1.06); }
.media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .media-gradient { opacity: 1; }

/* Product badge system */
.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  z-index: 2;
}
.badge-new { background: var(--gold); color: var(--primary); }
.badge-sale { background: var(--accent); color: #fff; }
.badge-out { background: rgba(26,26,46,0.8); color: rgba(255,255,255,0.7); }

.product-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.product-code {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
}
.product-oem {
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}
.product-price-locked {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.btn-login-prompt {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(230,57,70,0.06);
  border: 1px solid rgba(230,57,70,0.2);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-login-prompt:hover {
  background: var(--accent);
  color: #fff;
  opacity: 1;
}

/* ── Trust Bar ───────────────────────────────────────────────────── */
.trust-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.trust-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.trust-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ── Newsletter Block ────────────────────────────────────────────── */
.store-newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.store-newsletter::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.store-newsletter .nl-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}
.store-newsletter .nl-sub { font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.store-newsletter .nl-input {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.store-newsletter .nl-input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244,162,97,0.2);
  color: #fff;
}
.store-newsletter .nl-input::placeholder { color: rgba(255,255,255,0.4); }
.store-newsletter .btn-subscribe {
  background: var(--gold);
  border: none;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.store-newsletter .btn-subscribe:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.store-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 4rem 0 0;
}
.store-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.store-footer .footer-brand .amp { color: var(--accent); }
.store-footer p { font-size: 0.875rem; line-height: 1.7; }
.store-footer h6 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.store-footer ul { list-style: none; padding: 0; margin: 0; }
.store-footer ul li { margin-bottom: 0.6rem; }
.store-footer ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.store-footer ul li a:hover { color: #fff; opacity: 1; }
.store-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.65rem;
}
.store-footer .footer-contact-item i { color: var(--gold); margin-top: 0.1rem; flex-shrink: 0; }
.store-footer .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.store-footer .brand-pill.modika { border-color: rgba(230,57,70,0.4); color: #f87171; }
.store-footer .brand-pill.suspentek { border-color: rgba(244,162,97,0.4); color: var(--gold); }
.store-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 0;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Account / Dashboard ─────────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.account-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--navbar-h) + 1.5rem);
}
.account-sidebar-header {
  background: var(--primary);
  padding: 1.5rem;
  color: #fff;
}
.account-sidebar-header .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.account-sidebar-nav { padding: 0.75rem 0; }
.account-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.account-sidebar-nav a:hover,
.account-sidebar-nav a.active {
  color: var(--primary);
  background: var(--surface-2);
  border-left-color: var(--accent);
  opacity: 1;
}
.account-sidebar-nav a i { font-size: 1rem; }

/* Financial stats cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.stat-card .stat-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-card .stat-title { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* ── Mini Cart ───────────────────────────────────────────────────── */
.mc-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); }
.mc-item .btn { padding: 0.15rem 0.4rem; }

/* ── Stock Toast ─────────────────────────────────────────────────── */
#store-stock-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90%;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#store-stock-toast.hidden { opacity: 0; pointer-events: none; }

/* ── Split-screen Login ───────────────────────────────────────────── */
.login-split { min-height: 100vh; display: flex; }
.login-brand-panel {
  background: var(--primary);
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(244,162,97,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--surface);
}
.login-form-inner { width: 100%; max-width: 420px; }
.login-form-inner .form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.login-form-inner .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.login-form-inner .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.12);
}
.login-form-inner .input-icon { position: relative; }
.login-form-inner .input-icon i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.login-form-inner .input-icon .form-control { padding-left: 2.4rem; }

/* ── Landing Page ────────────────────────────────────────────────── */
.landing-page {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.landing-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(230,57,70,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.landing-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(244,162,97,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.landing-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.landing-logo .amp { color: var(--accent); }
.landing-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }
.portal-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  flex: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  color: inherit;
}
a.portal-card:hover { color: inherit; opacity: 1; }
.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.portal-card.staff::before { background: linear-gradient(135deg, rgba(26,46,80,0.4), rgba(26,26,46,0.1)); }
.portal-card.client::before { background: linear-gradient(135deg, rgba(230,57,70,0.15), rgba(26,26,46,0.1)); }
.portal-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); box-shadow: var(--shadow-xl); }
.portal-card:hover::before { opacity: 1; }
.portal-card:hover.client { border-color: rgba(230,57,70,0.4); }
.portal-card .portal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.portal-card.staff .portal-icon { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); }
.portal-card.client .portal-icon { background: rgba(230,57,70,0.15); color: var(--accent); }
.portal-card .portal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.portal-card .portal-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.portal-card .btn-portal {
  margin-top: 0.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.portal-divider {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-direction: column;
  gap: 0.75rem;
  align-self: center;
  padding: 0 0.5rem;
}
.portal-divider::before,
.portal-divider::after {
  content: '';
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* ── RTL Overrides ───────────────────────────────────────────────── */
[dir="rtl"] .store-hero-eyebrow::before { display: none; }
[dir="rtl"] .store-hero-eyebrow::after { content: ''; display: block; width: 32px; height: 2px; background: var(--gold); }
[dir="rtl"] .section-eyebrow::before { display: none; }
[dir="rtl"] .section-eyebrow::after { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); }
[dir="rtl"] .store-navbar .navbar-brand { flex-direction: row-reverse; }
[dir="rtl"] .trust-item { border-right: none; border-left: 1px solid var(--border); }
[dir="rtl"] .trust-item:last-child { border-left: none; }
[dir="rtl"] .stat-item { border-right: none; border-left: 1px solid rgba(255,255,255,0.08); }
[dir="rtl"] .stat-item:last-child { border-left: none; }

[dir="rtl"] .login-form-inner .input-icon i {
  left: auto;
  right: 0.9rem;
}
[dir="rtl"] .login-form-inner .input-icon .form-control {
  padding-left: 1rem;
  padding-right: 2.4rem;
}
[dir="rtl"] .account-sidebar-nav a { border-left: none; border-right: 3px solid transparent; }
[dir="rtl"] .account-sidebar-nav a:hover,
[dir="rtl"] .account-sidebar-nav a.active { border-right-color: var(--accent); }
[dir="rtl"] .login-brand-panel { order: 2; }
[dir="rtl"] .login-form-panel { order: 1; }

/* ── Mobile Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
  /* In collapsed navbar, dropdowns flow statically (no floating) */
  .store-navbar .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding-left: 0.5rem;
    min-width: 200px;
  }
  .store-hero { min-height: 70vh; }
  .store-section { padding: 3rem 0; }
  .brand-card { min-height: 280px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  [dir="rtl"] .trust-item,
  [dir="rtl"] .stat-item { border-left: none; }
  .login-split { flex-direction: column; }
  .login-brand-panel { flex: none; padding: 2rem; min-height: 240px; }
  .login-form-panel { padding: 2rem 1.25rem; }
  .portal-card { max-width: 100%; }
  .portal-divider { flex-direction: row; }
  .portal-divider::before, .portal-divider::after { width: 60px; height: 1px; }
}

@media (max-width: 575.98px) {
  :root { --topbar-h: 36px; --navbar-h: 60px; }
  .store-hero h1 { font-size: 2rem; }
  .store-hero-actions { flex-direction: column; }
  .store-hero-actions .btn-hero-primary,
  .store-hero-actions .btn-hero-outline { width: 100%; justify-content: center; }
  .vehicle-search-widget { padding: 1.5rem; }
  .brand-card-name { font-size: 2rem; }
  .store-stats-bar .stat-item { padding: 0.5rem; }
  .store-stats-bar .stat-number { font-size: 1.25rem; }
}

/* ── Utility classes ─────────────────────────────────────────────── */
.text-gold { color: var(--gold) !important; }
.text-accent { color: var(--accent) !important; }
.text-primary-brand { color: var(--primary) !important; }
.bg-primary-brand { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition);
}
.chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); opacity: 1; }
.chip-reset { background: rgba(230,57,70,0.06); color: var(--accent); border-color: rgba(230,57,70,0.2); }
.chip-x { font-size: 0.9rem; line-height: 1; }


/* ── Pagination ───────────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--accent);
  border-color: var(--border);
}
.pagination .page-link:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination .page-item.active .page-link {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--text-light);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #page-loader .loader-bar::after,
  .store-hero-scroll { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== Store Announcements ===== */
.store-announcement {
  padding: 8px 0;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
}
.store-announcement--info    { background: #1a6fc4; }
.store-announcement--warning { background: #d97706; }
.store-announcement--promo   { background: #059669; }
.ann-dismiss {
  opacity: .75;
  filter: brightness(2);
  font-size: .7rem;
  flex-shrink: 0;
  cursor: pointer;
}
.ann-dismiss:hover { opacity: 1; }
