/* BAS World - Main Stylesheet */
/* Base Styles + Component Styles */

/* ===================================
   CSS VARIABLES & DESIGN TOKENS
   =================================== */
:root {
  /* Colors */
  --color-primary: #00A651;
  --color-primary-dark: #008F45;
  --color-error: #DC2626;
  --color-warning: #F59E0B;
  --color-success: #00A651;

  /* Grays */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.3s ease;

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #F9FAFB;
  color: #111827;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  /* MO1: Reduced from 1400px for better readability */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header Styles */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  /* MO2: Added header shadow */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-categories {
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.btn-categories:hover {
  color: #6B7280;
}

.btn-start-selling {
  background: #000;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-start-selling:hover {
  background: #1F2937;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: #00A651;
  border-radius: 0.25rem;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-icon::before {
  content: '';
  width: 24px;
  height: 24px;
  background: white;
  transform: rotate(-45deg);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111827;
}

.logo-text .green {
  color: #00A651;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #00A651;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00a651;
  text-decoration: none;
  font-size: 0.875rem;
}

.icon-user {
  width: 24px;
  height: 24px;
  color: #00a651;
}

/* Category Navigation */
.category-nav {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--space-2xl);
  /* C3: Added bottom margin */
}

.hero-content {
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  /* C4: Balanced padding (32px 16px 24px) */
  background: white;
}

.hero-content h1 {
  font-size: 2.25rem;
  /* Increased from 2rem for better hierarchy */
  font-weight: bold;
  color: var(--gray-900);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.2;
}

.category-nav-content {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  overflow-x: auto;
  gap: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: var(--space-lg);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  /* Added border radius */
  transition: all var(--transition-base);
  /* MI4: Standardized */
}

.category-item:last-child {
  margin-right: 0;
}

.category-item:hover {
  color: var(--color-primary);
  background: var(--gray-50);
  /* M8: Added background */
  transform: translateY(-2px);
  /* M8: Added lift effect */
  box-shadow: var(--shadow-sm);
  /* M8: Added shadow */
}

.category-icon {
  margin-bottom: 0.5rem;
  object-fit: contain;
  /* width/height removed to respect original size */
}

.category-label {
  font-size: 13px;
  /* MO4: Increased from 0.875rem (14px) */
  color: var(--gray-700);
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  font-weight: 500;
}

.category-item:hover .category-label {
  color: var(--color-primary);
  font-weight: 500;
}

.category-item.active {
  background: #F0FDF4;
  border-radius: var(--radius-lg);
  /* MI1: Standardized */
  padding: var(--space-sm);
  margin: calc(-1 * var(--space-sm));
  box-shadow: var(--shadow-sm);
  /* Added shadow */
}

.category-item.active .category-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* Main Layout */
.main-layout {
  display: flex;
  gap: var(--space-xl);
  /* C1: Added 32px gap between sidebar and content */
  max-width: 1280px;
  /* MO1: Reduced from 1400px */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Sidebar */
.sidebar {
  width: 280px;
  /* Increased from 256px for better proportion */
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: var(--space-md);
  min-height: calc(100vh - 200px);
}

.sidebar-section {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-sm);
  /* C6: Standardized to 12px */
  margin-bottom: var(--space-sm);
  /* C6: Standardized to 12px */
}

.sidebar-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.9375rem;
  /* Slightly larger */
  font-weight: 600;
  /* MI2: Standardized */
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--gray-900);
  transition: color var(--transition-base);
  /* MI4: Standardized */
}

.sidebar-button:hover {
  color: var(--color-primary);
}

.icon-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.icon-chevron.rotate {
  transform: rotate(180deg);
}

/* Filter Styles */
.filter-content {
  padding: 0.75rem 0;
  max-height: 300px;
  overflow-y: auto;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  padding: var(--space-sm) 0;
  cursor: pointer;
  font-size: 0.9375rem;
  /* Slightly larger */
  user-select: none;
  transition: color var(--transition-base);
  /* MI4: Standardized */
}

.filter-checkbox input[type="checkbox"] {
  margin-right: var(--space-sm);
  cursor: pointer;
  width: 18px;
  /* Slightly larger */
  height: 18px;
  /* Slightly larger */
  flex-shrink: 0;
  accent-color: var(--color-primary);
  /* Modern checkbox color */
}

.filter-checkbox span {
  flex: 1;
}

.filter-checkbox:hover {
  color: var(--color-primary);
}

.filter-range {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-range span {
  text-align: center;
  font-size: 0.75rem;
  color: #6B7280;
}

.filter-input {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  /* MI1: Standardized */
  font-size: 0.9375rem;
  /* Slightly larger */
  transition: all var(--transition-base);
  /* MI4: Standardized */
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
  /* Focus ring */
}

.filter-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-apply-filters {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  /* Accessibility */
  background: var(--gray-900);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  /* MI1: Standardized */
  font-weight: 600;
  /* MI2: Standardized */
  cursor: pointer;
  font-size: 0.9375rem;
  /* Slightly larger */
  transition: all var(--transition-base);
  /* MI4: Standardized */
}

.btn-apply-filters:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-clear-filters {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  /* Accessibility */
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  /* MI1: Standardized */
  font-weight: 600;
  /* MI2: Standardized */
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 0.9375rem;
  /* Slightly larger */
  display: inline-block;
  transition: all var(--transition-base);
  /* MI4: Standardized */
}

.btn-clear-filters:hover {
  background: var(--gray-50);
  color: var(--gray-900);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-lg);
  max-width: 1200px;
  /* C5: Limit content width */
}

.page-title {
  font-size: 1.75rem;
  /* Increased from 1.5rem */
  font-weight: bold;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.page-description {
  font-size: 0.9375rem;
  /* Slightly larger */
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.page-description a {
  color: #00A651;
}

.page-description a:hover {
  text-decoration: underline;
}

/* Banner */
.banner {
  background: #00A651;
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0;
}

.btn-banner {
  background: white;
  color: #00A651;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-banner:hover {
  background: #F3F4F6;
}

/* Vehicle Grid */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Vehicle Card */
.vehicle-card {
  background: white;
  border: 1px solid var(--gray-300);
  /* MO6: Darker border from #E5E7EB */
  border-radius: var(--radius-lg);
  /* MI1: Standardized to 8px */
  overflow: hidden;
  transition: all var(--transition-base);
  /* MI4: Standardized transition */
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-md);
  /* Improved shadow */
  height: 100%;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  /* MO13: Increased from -2px */
}

/* C12: Focus states for accessibility */
.vehicle-card:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.vehicle-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  /* C8: Fixed aspect ratio instead of fixed height */
  overflow: hidden;
  background: var(--gray-100);
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  /* MI4: Standardized */
}

.vehicle-card:hover .vehicle-image {
  transform: scale(1.05);
}

/* Diagonal Ribbon Badge */
.vehicle-badge {
  position: absolute;
  top: var(--space-sm);
  left: -8px;
  padding: 6px 32px 6px var(--space-sm);
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  /* M9: Improved contrast */
}

.vehicle-badge::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 12px;
  border-color: transparent transparent rgba(0, 0, 0, 0.15) transparent;
}

.badge-available {
  background: var(--color-success);
}

.badge-sold {
  background: var(--color-error);
}

.badge-reserved {
  background: var(--color-warning);
}

.btn-favorite {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: white;
  border: none;
  width: 44px;
  /* M11: Increased from 36px for better touch target */
  height: 44px;
  /* M11: Increased from 36px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  box-shadow: var(--shadow-md);
  z-index: var(--z-dropdown);
}

.btn-favorite:hover {
  background: var(--gray-100);
  transform: scale(1.15);
  /* Increased from 1.1 */
}

.icon-heart {
  width: 16px;
  height: 16px;
  color: #4B5563;
}

.icon-heart.favorited {
  fill: #EF4444;
  color: #EF4444;
}

.vehicle-content {
  padding: var(--space-md);
  /* M1: Consistent 16px padding */
}

.vehicle-name {
  font-size: 18px;
  /* M3: Increased from 16px for better hierarchy */
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 var(--space-xs) 0;
  /* Added bottom margin */
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-subtitle {
  font-size: 14px;
  /* Increased from 13px */
  color: var(--gray-600);
  margin: 0 0 var(--space-sm) 0;
  /* Added bottom margin */
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* M14: Increased from 2 lines */
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin: var(--space-sm) 0;
}

.vehicle-specs>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 12px;
  /* M2: Increased from 11px for readability */
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.spec-value {
  font-size: 14px;
  /* Increased from 13px */
  color: var(--gray-900);
  font-weight: 500;
  line-height: 1.3;
}

.vehicle-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.flag-icon {
  width: 20px;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
}

.flag,
.flag-nl {
  background: linear-gradient(to bottom, #AE1C28 33%, white 33%, white 66%, #21468B 66%);
}

.flag-gb {
  background: linear-gradient(to bottom, #012169 0%, #012169 100%);
}

.flag-de {
  background: linear-gradient(to bottom, #000 33%, #D00 33%, #D00 66%, #FFCE00 66%);
}

.flag-fr {
  background: linear-gradient(to right, #0055A4 33%, white 33%, white 66%, #EF4135 66%);
}

.flag-es {
  background: linear-gradient(to bottom, #AA151B 25%, #F1BF00 25%, #F1BF00 75%, #AA151B 75%);
}

/* Vehicle Card Styles */
.vehicle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: var(--space-md) var(--space-md) 0 var(--space-md);
  /* M1: Consistent padding */
}

.vehicle-price {
  font-size: 24px;
  /* M3: Increased from 20px for prominence */
  font-weight: 700;
  color: var(--gray-900);
}

.view-btn {
  padding: 12px 24px;
  /* M4: Increased from 8px 20px for better touch target */
  min-height: 44px;
  /* M4: Accessibility minimum */
  background: var(--gray-900);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  /* MI1: Standardized */
  font-size: 14px;
  /* Increased from 13px */
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Status Buttons */
.btn-available,
.btn-sold,
.btn-reserved {
  width: auto;
  /* C7: Changed from 100% */
  padding: 10px 24px;
  /* C7: Increased horizontal padding */
  border: none;
  border-radius: var(--radius-md);
  /* MI1: Standardized */
  font-size: 14px;
  /* Increased from 13px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  /* MO7: Reduced from 0.5px */
  cursor: pointer;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  margin: var(--space-md);
  /* Consistent margin */
  display: inline-block;
}

.btn-available {
  background: var(--color-success);
  color: white;
}

.btn-available:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sold {
  background: var(--color-error);
  color: white;
}

.btn-sold:hover {
  background: #B91C1C;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-reserved {
  background: var(--color-warning);
  color: white;
}

.btn-reserved:hover {
  background: #D97706;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Pagination */
.pagination {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.pagination-btn {
  width: 44px;
  /* M13: Increased from 36px */
  height: 44px;
  /* M13: Increased from 36px */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  /* MI1: Standardized */
  background: white;
  cursor: pointer;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  font-weight: 500;
  text-decoration: none;
  color: var(--gray-900);
}

.pagination-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.pagination-btn.active {
  background: var(--gray-900);
  color: white;
  border-color: var(--gray-900);
  transform: scale(1.1);
  /* C10: Added scale for visual weight */
  font-weight: 700;
  /* C10: Bolder font */
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  margin-top: 80px;
  /* C11: Reduced from 4rem (64px) */
}

.footer-content {
  padding: var(--space-3xl) 0;
  /* Consistent spacing */
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* MO8: Fixed footer grid */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  /* Slightly larger */
  text-decoration: none;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
  /* M10: Added underline animation */
  transform: translateX(2px);
  /* Subtle movement */
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  flex: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  transition: all var(--transition-base);
  /* MI4: Standardized */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--color-primary);
  transform: scale(1.15);
  /* MO9: Added scale on hover */
}

.footer-info {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info a {
  color: #9CA3AF;
  text-decoration: none;
}

.footer-info a:hover {
  color: white;
}

.language-selector {
  margin-top: 0.5rem;
}

.language-select {
  background: #1F2937;
  color: white;
  border: 1px solid #374151;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Product Page */
.product-page {
  padding: 2rem 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.back-button:hover {
  color: #111827;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 2fr 1fr;
  }
}

/* Button Styles */
.btn-primary {
  width: 100%;
  background: #00a651;
  color: white;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #008A43;
}

.btn-secondary {
  width: 100%;
  border: 1px solid #D1D5DB;
  color: #111827;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
  background: white;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #F9FAFB;
}

/* Utility Classes */
.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-2 {
  gap: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.font-bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #E5E7EB;
  }

  .header-left,
  .header-right {
    gap: 0.75rem;
  }

  .logo-wrapper {
    position: static;
    transform: none;
    order: -1;
  }

  .header-content {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: 1.25rem;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ========================================
   PRODUCT PAGE STYLES
   ======================================== */

.image-gallery {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gallery-main {
  position: relative;
  background: #F3F4F6;
  aspect-ratio: 4/3;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #00A651;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 0.25rem;
  z-index: 10;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 10;
}

.gallery-nav-btn {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.gallery-nav-btn:hover {
  background: #F3F4F6;
}

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}

.thumbnail {
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid #E5E7EB;
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumbnail:hover {
  border-color: #9CA3AF;
}

.thumbnail.active {
  border-color: #00A651;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
  border-radius: 0.25rem;
}

.badge-dark {
  background: #1F2937;
}

.badge-green {
  background: #15803D;
}

.badge-blue {
  background: #2563EB;
}

.badge-red {
  background: #DC2626;
}

.product-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #111827;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6B7280;
}

.product-meta strong {
  font-weight: 500;
  color: #111827;
}

.product-sections {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.tabs {
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  overflow-x: auto;
}

.tab {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  color: #111827;
}

.tab.active {
  color: #00A651;
  border-bottom-color: #00A651;
}

/* Product Tabs (for specifications) */
.product-tabs {
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  overflow-x: auto;
  padding: 0 1rem;
  background: white;
}

.tab-btn {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: #111827;
  background: #F9FAFB;
}

.tab-btn.active {
  color: #00A651;
  border-bottom-color: #00A651;
  font-weight: 600;
}

.spec-tab-content {
  display: none;
}

.spec-tab-content.active {
  display: block;
}

.tab-content {
  padding: 1.5rem;
}

.tab-description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
}

.specs-table {
  margin-bottom: 1.5rem;
}

.specs-category {
  margin-bottom: 1.5rem;
}

.specs-category h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-transform: capitalize;
}

.specs-grid {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E5E7EB;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row:hover {
  background: #F9FAFB;
}

.spec-row .label {
  font-size: 0.875rem;
  color: #6B7280;
}

.spec-row .value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.services-section {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.services-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-item {
  text-align: center;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #00A651;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: white;
}

.service-item h4 {
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.service-item p {
  font-size: 0.75rem;
  color: #6B7280;
}

.related-products {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.related-header h2 {
  font-size: 1.5rem;
  font-weight: bold;
}

.related-nav {
  display: flex;
  gap: 0.5rem;
}

.related-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #D1D5DB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  cursor: pointer;
}

.related-nav-btn:hover {
  background: #F9FAFB;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-panel {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
}

.price {
  font-size: 1.875rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 0.875rem;
  color: #6B7280;
  margin-bottom: 1.5rem;
}

.price-panel-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trustpilot {
  border-top: 1px solid #E5E7EB;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.support-box {
  background: #F9FAFB;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.support-box h3 {
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.support-box p {
  font-size: 0.75rem;
  color: #6B7280;
  margin-bottom: 0.75rem;
}

.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid #E5E7EB;
}

.contact-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-contact {
  flex: 1;
  border: 1px solid #D1D5DB;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-contact:hover {
  background: #F9FAFB;
}

.btn-favorite-large {
  width: 100%;
  border: 2px solid #D1D5DB;
  padding: 0.75rem;
  border-radius: 0.25rem;
  font-weight: 500;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-favorite-large:hover {
  background: #F9FAFB;
}

.btn-favorite-large.active {
  border-color: #EF4444;
  color: #EF4444;
  background: #FEF2F2;
}