/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --light-gray: #f8f9fa;
  --border-gray: #dee2e6;
  --text-dark: #333333;
  --text-muted: #666666;
  --border-radius: 12px;
  --box-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --box-shadow-md: 0 4px 15px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* ===========================================
   CORE HTML/BODY STYLES
   =========================================== */
html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding-top: 72px;
  background-color: #f5f5f5;
}

.page-content {
  background: #f5f5f5;
  padding-top: 0;
}

/* ===========================================
   NAVBAR STYLES
   =========================================== */
.navbar {
  background: white !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--box-shadow-sm);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  transform: translateY(0);
  will-change: transform;
  z-index: 1030;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 999;
  background: linear-gradient(-45deg, #f44336 0%, #f44336 33%, #2e2d77 33%, #2e2d77 66%, #0af 66%, #0af 100%);
}

.navbar.hidden {
  transform: translateY(-100%);
  backdrop-filter: blur(2px);
}

.navbar.visible {
  transform: translateY(0);
}

/* ✅ ENHANCED: Navbar links with subtle hover effects */
.nav-link {
  color: #454545 !important;
  font-weight: 500;
  transition: all 0.3s ease !important; /* ✅ Enhanced transition */
  position: relative !important;
  padding: 8px 8px !important;
  border-radius: 6px !important;
  margin: 0 2px !important;
  background: transparent !important;
}

@media(max-width: 991px) {
  .nav-link {
      padding: 8px 8px !important;
  }
}

/* ✅ NEW: Subtle background hover effect */
.nav-link:hover {
  color: #000 !important;
  background: rgba(0, 123, 255, 0.08) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
}

/* ✅ NEW: Active state styling */
.nav-link.active,
.navbar-nav .nav-link.active {
  color: #000 !important;
  background: rgba(0, 123, 255, 0.12) !important;
  font-weight: 600 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2) !important;
}

/* ✅ NEW: Subtle underline animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active::after {
  width: 80%;
  background: linear-gradient(90deg, #0056b3, #003d82);
}

/* ✅ ENHANCED: Disabled state */
.nav-link.disabled,
.nav-link[aria-disabled="true"] {
  color: #d1d1d152 !important;
  pointer-events: none;
  cursor: not-allowed;
  text-decoration: none;
  opacity: 0.5 !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.nav-link.disabled::after,
.nav-link[aria-disabled="true"]::after {
  display: none;
}

/* ✅ NEW: Navbar brand hover effect */
.navbar-brand {
  transition: all 0.3s ease !important;
  padding: 8px 8px 8px 0px !important;
  border-radius: 8px !important;
}

.navbar-brand:hover {
  transform: scale(1.05) !important;
  background: rgba(0, 123, 255, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 123, 255, 0.1) !important;
}

/* ✅ NEW: Navbar toggler button hover effect */
.navbar-toggler {
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.navbar-toggler:hover {
  border-color: rgba(0, 123, 255, 0.3) !important;
  background: rgba(0, 123, 255, 0.08) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
  outline: none !important;
}

/* ✅ ENHANCED: Mobile menu styles with hover effects */
#mobile-menu {
  background: white !important;
  border-radius: 12px !important;
  margin-top: 10px !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 123, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
}

#mobile-menu .nav-link {
  padding: 16px 20px !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid #f0f0f0 !important;
  text-align: right !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
  position: relative !important;
}

#mobile-menu .nav-link:hover {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 123, 255, 0.1) 100%) !important;
  color: var(--primary-color) !important;
  transform: translateX(-4px) !important;
  padding-right: 24px !important;
}

#mobile-menu .nav-link::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(180deg, #007bff, #0056b3);
  transition: width 0.3s ease;
}

#mobile-menu .nav-link:hover::before {
  width: 4px;
}

#mobile-menu .nav-item:last-child .nav-link {
  border-bottom: none !important;
  border-radius: 0 0 12px 12px !important;
}

#mobile-menu .nav-item:first-child .nav-link {
  border-radius: 12px 12px 0 0 !important;
}

/* ✅ NEW: Search button in navbar hover effect */
.navbar .btn {
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
}

.navbar .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.navbar .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.navbar .btn:hover::before {
  left: 100%;
}

/* ✅ NEW: Cart and account button hover effects */
.navbar .btn-outline-primary {

  margin-right: 8px
}

.navbar .btn-outline-primary:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px) scale(1.02) !important;
}

.navbar .btn-primary:hover {
  background: #0056b3 !important;
  border-color: #0056b3 !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* ✅ RESPONSIVE: Mobile hover adjustments */
@media (max-width: 991px) {
  .nav-link:hover {
    transform: none !important; /* Disable transform on mobile for better UX */
    box-shadow: none !important;
    background: rgba(0, 123, 255, 0.05) !important;
  }
  
  .navbar-brand:hover {
    transform: scale(1.02) !important; /* Smaller scale on mobile */
  }
  
  .navbar-toggler:hover {
    transform: none !important; /* Disable transform on mobile */
  }
}

/* ✅ ACCESSIBILITY: Focus states */
.nav-link:focus,
.navbar-brand:focus,
.navbar-toggler:focus,
.dropdown-toggle:focus {
  outline: 2px solid rgba(0, 123, 255, 0.5) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25) !important;
}

/* ✅ PERFORMANCE: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .nav-link,
  .navbar-brand,
  .navbar-toggler,
  .dropdown-toggle,
  .navbar .btn {
    transition: none !important;
  }
  
  .nav-link::after,
  .navbar .btn::before {
    transition: none !important;
  }
}

/* ===========================================
   BUTTON STYLES
   =========================================== */
.btn-outline-primary {
  color: #2e2d77;
  border-color: #2e2d77;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #2e2d77;
  border-color: #2e2d77;
}

.d-flex.gap-2 > * + * {
  margin-left: 0.5rem;
}

.clear_vehicle {
  background-color: #e53935;
  padding: 8px 12px;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 10px;
  width: 90%;
}

.clear_vehicle:hover {
  background-color: #c62828;
}

.add_vehicle {
  background-color: #32a852;
  padding: 8px 12px;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 10px;
  width: 90%;
}

.add_vehicle:hover {
  background-color: #154722;
}

/* ===========================================
   LOADING OVERLAY
   =========================================== */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===========================================
   CART PREVIEW STYLES
   =========================================== */
.cart-preview {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 15px;
  max-height: 1000px;
  overflow-y: auto;
  max-width: 700px;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 10501;
}

.cart-item {
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item strong {
  display: block;
  color: #000;
  font-size: 13px;
}

.cart-item small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.cart-item:hover {
  background-color: var(--light-gray);
  border-radius: 6px;
}

.cart-item img {
  box-shadow: var(--box-shadow-sm);
}

.subtotal {
  text-align: right;
  font-weight: 700;
  margin-top: 10px;
  color: #000;
  padding-top: 10px;
  border-top: 2px solid var(--primary-color);
}

.view-cart-btn {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.view-cart-btn:hover {
  background-color: #0056b3;
  color: #fff;
  text-decoration: none;
}

/* ===========================================
   SEARCH DROPDOWN STYLES
   =========================================== */
.search-dropdown,
#index-search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--box-shadow-md);
  z-index: 2000;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-height: 70px;
}

.search-result-item:hover {
  background-color: var(--light-gray);
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #eee;
  margin-right: 12px;
}

.search-result-details {
  flex: 1;
}

.search-result-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-result-price {
  font-weight: 600;
  color: #0074c7;
  font-size: 14px;
}

.search-no-results,
.search-loading {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-highlight {
  background-color: #ffeb3b;
  font-weight: bold;
}

.search-stock {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-stock.in-stock {
  color: #fff;
  background-color: var(--success-color);
}

.search-stock.out-stock {
  color: #fff;
  background-color: var(--danger-color);
}

/* ===========================================
   MAIN LAYOUT CONTAINERS
   =========================================== */
.index-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  gap: 20px;
  align-items: stretch;
  max-width: 1700px;
  width: 100%;
  padding: 0 15px;
}

.left-container {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
  order: 2;
}

.split-container {
  display: flex;
  gap: 20px;
  height: 100%;
  align-items: stretch;
  margin: 0;
}

.left-half, .right-half {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.right-half {
  display: flex;
  align-items: center;
}

/* ===========================================
   VEHICLE SELECT BUTTON
   =========================================== */
.vehicle-select-card {
  margin: 1rem 0;
}

.btn-vehicle-select {
  width: 100%;
  background: white;
  border: 2px solid var(--border-gray);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 0;
}

.btn-vehicle-select:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 20px rgba(108, 117, 125, 0.15);
  transform: translateY(-1px);
  background: #f8f9ff;
}

.btn-icon-bg {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.btn-content {
  flex: 1;
}

.btn-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.btn-subtitle {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===========================================
   SEARCH & FORMS
   =========================================== */
.search-top-half {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1000;
}

.search-bottom-half {
  margin-top: 1.5rem;
}

.vin-section {
  margin: 0;
}

.vin-section h6 {
  margin-bottom: 1rem;
  margin-top: 0;
}

#vin-search-form {
  margin-bottom: 1.5rem;
}

.input-group {
  margin-bottom: 0;
  position: relative;
  z-index: 1000;
}

.input-group + .alert {
  margin-top: 0.5rem;
}

#custom-alert {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ===========================================
   BRAND CAROUSEL
   =========================================== */
.brand-carousel {
  margin: 2rem 0;
  padding: 0;
  overflow: hidden;
}

.brand-carousel .swiper-slide {
  width: auto !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 200px;
  max-width: 250px;
}

.brand-carousel .swiper-slide img {
  height: 200px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
  display: block;
}

.brand-logo-btn {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.05);
}

.brand-logo-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===========================================
   CATEGORIES
   =========================================== */
.carousel-heading {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: #2e2d77;
}

.category_section {
  margin: 2rem 0;
}

.categories_top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 2rem;
}

.category_card {
  text-align: center;
  width: 220px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.category_card:hover {
  transform: scale(1.05);
}

.category_icon_img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 8px;
}

.category_card span {
  display: block;
  margin-top: 4px;
}

/* ===========================================
   PRODUCT CARDS & RESULTS
   =========================================== */
.results-wrapper {
  max-width: 1450px;
  margin: 0 auto;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.dropdown-toggle::after{
  margin-right: 7px;
  margin-left: 0 !important;
}

/* ===========================================
   SKELETON LOADING
   =========================================== */
.skeleton-container {
  padding: 20px 0;
}

.skeleton-header {
  height: 32px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 20px;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.skeleton-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.skeleton-card {
  height: 300px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===========================================
   VEHICLE INFO DISPLAY
   =========================================== */
.left-half .card-body {
  padding: 1.5rem;
  overflow: visible;
}

.left-half .card.bg-light {
  margin-bottom: 1rem;
}

.left-half .card.bg-light .card-body {
  padding: 1rem;
}

.vin-detail {
  margin-bottom: 0.25rem;
}

.vin-detail:last-child {
  margin-bottom: 0;
}

.btn-group {
  margin-top: 1rem;
}

/* ===========================================
   FOOTER STYLES
   =========================================== */
.site-footer {
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  border-top: 1px solid #ddd;
  margin: 0 auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.footer-title .stripe {
  display: inline-block;
  width: 5px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(360deg, #f44336 0%, #f44336 33%, #2e2d77 33%, #2e2d77 66%, #0af 66%, #0af 100%);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-column p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.social-icons a {
  color: #000;
  font-size: 18px;
  margin-right: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* ===========================================
   UTILITY STYLES
   =========================================== */
.centered-stripe {
  width: 120px;
  height: 6px;
  margin: 20px auto;
  background: linear-gradient(-45deg, #f44336 0%, #f44336 33%, #2e2d77 33%, #2e2d77 66%, #0af 66%, #0af 100%);
  border-radius: 5px;
}

.alert {
  margin-bottom: 1rem;
}

.alert.mt-3 {
  margin-top: 1rem !important;
}

hr {
  margin: 2rem 0;
  border: 1px solid #ccc;
}

h2.text-center, h2.carousel-heading {
  margin: 2rem 0 1rem 0;
}

h6.text-secondary {
  margin-bottom: 1rem;
  margin-top: 0;
}

/* ===========================================
   MODAL STYLES
   =========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #fff;
  
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-height: 80vh;
  overflow-y: auto;
  width: 500px;
  max-width: 90vw;
}

/* Mobile cart modal */
#mobile-cart-content .border {
  border: 1px solid var(--border-gray) !important;
  background: #fff !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
  min-height: 100px !important;
  position: relative !important;
}

#mobile-cart-content .border:hover,
#mobile-cart-content .border:active {
  background: var(--light-gray) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--box-shadow-md) !important;
}

#mobile-cart-content .border:active {
  transform: translateY(0) !important;
  box-shadow: var(--box-shadow-sm) !important;
}

#mobile-cart-content .row {
  padding: 5px 0 !important;
}

#mobile-cart-content .border::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

#mobile-cart-content .border:hover::after {
  background: var(--primary-color);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 1200px) {
  .brand-carousel .swiper-slide {
    min-width: 180px;
    max-width: 220px;
  }
  
  .brand-carousel .swiper-slide img {
    height: 180px;
  }
}

@media (max-width: 1050px) {
  #search-bar-navbar {
    display: none !important;
  }
  
  #cart-button-mobile:hover,
  #account-button-mobile:hover,
  #login-button-mobile:hover {
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 6px;
    transform: scale(1.05);
    transition: var(--transition);
  }
  
  #cart-button-mobile.active,
  #account-button-mobile.active,
  #login-button-mobile.active {
    background-color: rgba(0, 123, 255, 0.15);
    border-radius: 6px;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 70px;
  }
  
  #mobile-menu.show {
    display: block !important;
  }
  
  .navbar-collapse.collapse.show {
    display: block !important;
  }
  
  #mobileCartModal .modal-dialog {
    margin: 5px;
    max-width: calc(100% - 10px);
    height: calc(100vh - 10px);
    display: flex;
    align-items: center;
  }
  
  #mobileCartModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
  }
  
  #mobileCartModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
  }
  
  #mobileCartModal .modal-header,
  #mobileCartModal .modal-footer {
    flex-shrink: 0;
    background: var(--light-gray);
  }
  
  #mobileCartModal .modal-header {
    border-bottom: 1px solid var(--border-gray);
  }
  
  #mobileCartModal .modal-footer {
    border-top: 1px solid var(--border-gray);
  }
  
  .index-container {
    padding: 0 10px !important;
  }
  
  .split-container {
    flex-direction: column !important;
    gap: 20px !important;
    height: auto !important;
    align-items: stretch !important;
  }
  
  .left-half, .right-half {
    flex: none !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .right-half {
    align-items: stretch !important;
  }
  
  .nav-buttons-container {
    height: auto !important;
    min-height: 200px !important;
  }
  
  .nav-button-diagonal-content {
    margin-right: 60% !important;
  }
  
  .nav-button-diagonal-bg {
    width: 60% !important;
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 0% 100%) !important;
  }
  
  .left-container {
    margin: 15px 0 !important;
  }
  
  .left-half .card-body {
    padding: 1.25rem !important;
  }
}

@media (min-width: 992px) {
  #mobile-menu {
    display: none !important;
  }
  
  .navbar-collapse {
    display: none !important;
  }
  
  .navbar-collapse.d-lg-none {
    display: none !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
  
  .d-none.d-lg-flex {
    display: flex !important;
  }
  
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  
  #mobileCartModal {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .index-container {
    padding: 0 8px !important;
  }
  
  .split-container {
    gap: 15px !important;
  }
  
  .nav-buttons-container {
    min-height: 180px !important;
  }
  
  .nav-button {
    min-height: 80px !important;
  }
  
  .nav-button-content {
    padding: 15px 10px !important;
  }
  
  .nav-button-content i {
    font-size: 2em !important;
    margin-bottom: 8px !important;
  }
  
  .nav-button-title {
    font-size: 1.1em !important;
  }
  
  .nav-button-subtitle {
    font-size: 0.8em !important;
  }
  
  .nav-button-diagonal-content {
    margin-right: 55% !important;
  }
  
  .nav-button-diagonal-bg {
    width: 55% !important;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%) !important;
  }
  
  .left-container {
    margin: 10px 0 !important;
  }
  
  .left-half .card-body {
    padding: 1rem !important;
  }
  
  .btn-vehicle-select {
    padding: 15px !important;
    gap: 12px !important;
  }
  
  .btn-icon-bg {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  
  .btn-title {
    font-size: 15px !important;
  }
  
  .btn-subtitle {
    font-size: 12px !important;
  }
  
  .brand-carousel {
    margin: 1.5rem 0;
  }
  
  .brand-carousel .swiper-slide {
    min-width: 150px !important;
    max-width: 180px !important;
    margin-right: 15px !important;
  }
  
  .brand-carousel .swiper-slide img {
    height: 150px !important;
    max-width: 150px !important;
  }
  
  .brand-logo-btn {
    padding: 8px !important;
  }
  
  .categories_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .category_card {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  
  .category_card:hover {
    transform: scale(1.01);
  }
  
  .category_icon_img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  .category_card span {
    font-size: 18px;
  }
  
  .input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .input-group .form-control {
    border-radius: 0.375rem !important;
    flex: none;
    width: 100%;
    font-size: 16px;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .input-group-append {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .input-group-append .btn {
    width: 100%;
    border-radius: 0.375rem !important;
  }
  
  .vin-section .input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .vin-section .input-group .form-control {
    border-radius: 0.375rem !important;
    width: 100%;
  }
  
  .vin-section .input-group-append {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .vin-section .input-group-append .btn {
    width: 100%;
    border-radius: 0.375rem !important;
  }
  
  .ads-banner-container {
    height: 250px !important;
    margin-bottom: 16px;
  }
  
  #index-search-results-dropdown {
    max-height: 300px !important;
    font-size: 14px !important;
  }
  
  .search-result-item {
    padding: 8px 12px !important;
    min-height: 60px !important;
  }
  
  .search-result-image {
    width: 35px !important;
    height: 35px !important;
    margin-right: 10px !important;
  }
  
  .search-result-title {
    font-size: 13px !important;
  }
  
  .search-result-meta {
    font-size: 11px !important;
  }
  
  .search-result-price {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  #mobile-cart-content .border {
    padding: 15px !important;
    margin-bottom: 15px !important;
    min-height: 110px !important;
  }
  
  #mobile-cart-content .col-3 {
    flex: 0 0 30% !important;
    max-width: 30% !important;
  }
  
  #mobile-cart-content .col-9 {
    flex: 0 0 70% !important;
    max-width: 70% !important;
  }
  
  #mobile-cart-content img {
    width: 100px !important;
    height: auto !important;
  }
}

@media (max-width: 576px) {
  .index-container {
    padding: 0 5px !important;
  }
  
  .split-container {
    gap: 10px !important;
  }
  
  .nav-buttons-container {
    min-height: 160px !important;
  }
  
  .nav-button {
    min-height: 70px !important;
  }
  
  .nav-button-content {
    padding: 12px 8px !important;
  }
  
  .nav-button-content i {
    font-size: 1.8em !important;
    margin-bottom: 6px !important;
  }
  
  .nav-button-title {
    font-size: 1em !important;
  }
  
  .nav-button-subtitle {
    font-size: 0.75em !important;
  }
  
  .nav-link {
    padding: 3px;
  }

  .nav-link a{
    padding: 3px;
  }
  
  .nav-button-diagonal-content {
    margin-right: 50% !important;
  }
  
  .nav-button-diagonal-bg {
    width: 50% !important;
    clip-path: polygon(55% 0, 100% 0, 100% 100%, 0% 100%) !important;
  }
  
  .btn-vehicle-select {
    padding: 12px !important;
    gap: 10px !important;
  }
  
  .btn-icon-bg {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }
  
  .btn-title {
    font-size: 14px !important;
  }
  
  .btn-subtitle {
    font-size: 11px !important;
  }
  
  .brand-carousel {
    margin: 1.5rem 0;
  }
  
  .brand-carousel .swiper-slide {
    min-width: 150px !important;
    max-width: 180px !important;
    margin-right: 15px !important;
  }
  
  .brand-carousel .swiper-slide img {
    height: 150px !important;
    max-width: 150px !important;
  }
  
  .brand-logo-btn {
    padding: 8px !important;
  }
  
  .categories_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .category_card {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  
  .category_card:hover {
    transform: scale(1.01);
  }
  
  .category_icon_img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  .category_card span {
    font-size: 18px;
  }
  
  .input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .input-group .form-control {
    border-radius: 0.375rem !important;
    flex: none;
    width: 100%;
    font-size: 16px;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .input-group-append {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .input-group-append .btn {
    width: 100%;
    border-radius: 0.375rem !important;
  }
  
  .vin-section .input-group {
    flex-direction: column;
    gap: 8px;
  }
  
  .vin-section .input-group .form-control {
    border-radius: 0.375rem !important;
    width: 100%;
  }
  
  .vin-section .input-group-append {
    width: 100%;
    margin-left: 0 !important;
  }
  
  .vin-section .input-group-append .btn {
    width: 100%;
    border-radius: 0.375rem !important;
  }
  
  .ads-banner-container {
    height: 200px !important;
  }
}

@media (max-width: 480px) { 
  .brand-carousel .swiper-slide {
    min-width: 100px !important;
    max-width: 130px !important;
    margin-right: 10px !important;
  }
  
  .brand-carousel .swiper-slide img {
    height: 100px !important;
    max-width: 100px !important;
  }
  
  .brand-logo-btn {
    padding: 5px !important;
  }
}

@media(max-width: 450px) {
  
  #cart-count-mobile{
    font-size: 60%;
  }

  #cart-button-mobile {
    padding-right: 0px !important;
  }
}

@media (max-width: 400px) {
  .brand-carousel .swiper-slide {
    min-width: 80px !important;
    max-width: 110px !important;
    margin-right: 8px !important;
  }
  
  .brand-carousel .swiper-slide img {
    height: 80px !important;
    max-width: 80px !important;
  }
  
  .brand-logo-btn {
    padding: 4px !important;
  }
}

@media (max-width: 320px) {
  .brand-carousel .swiper-slide {
    min-width: 70px !important;
    max-width: 90px !important;
    margin-right: 6px !important;
  }
  
  .brand-carousel .swiper-slide img {
    height: 70px !important;
    max-width: 70px !important;
  }
  
  .brand-logo-btn {
    padding: 3px !important;
  }
}

/* ✅ Badge animation for cart preview */
@keyframes badgePulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ✅ Ensure cart items have proper stacking context */
.cart-item {
  position: relative !important;
  overflow: visible !important;
}

/* ✅ Badge hover effect */
.cart-item .badge {
  transition: transform 0.2s ease;
}

.cart-item:hover .badge {
  transform: scale(1.1);
}

/* ✅ Fixed Mobile Cart Modal Styles */
#mobileCartModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#mobileCartModal .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 12px 12px 0 0;
  padding: 20px 25px;
}

#mobileCartModal .modal-title {
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#mobileCartModal .modal-body {
  padding: 20px 25px;
  max-height: 60vh;
  overflow-y: auto;
}

#mobileCartModal .modal-footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 12px 12px;
  padding: 20px 25px;
}

/* ✅ Mobile cart item hover effects */
.mobile-cart-item:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}

/* ✅ Mobile responsive fixes */
@media (max-width: 768px) {
  #mobileCartModal .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
    height: calc(100vh - 20px);
    display: flex;
    align-items: center;
  }
  
  #mobileCartModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    padding: 0px;
  }
  
  #mobileCartModal .modal-header,
  #mobileCartModal .modal-body,
  #mobileCartModal .modal-footer {
    padding: 15px 20px;
  }
  
  #mobileCartModal .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: none;
  }
  
  .mobile-cart-item {
    gap: 12px !important;
    padding: 12px !important;
    min-height: 90px !important;
  }
  
  .mobile-cart-item img {
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 480px) {
  #mobileCartModal .modal-header,
  #mobileCartModal .modal-body,
  #mobileCartModal .modal-footer {
    padding: 12px 15px;
  }
  
  .mobile-cart-item {
    gap: 10px !important;
    padding: 10px !important;
    min-height: 80px !important;
  }
  
  .mobile-cart-item img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .mobile-cart-item h6 {
    font-size: 13px !important;
  }
  
  .mobile-cart-item div[style*="font-size: 16px"] {
    font-size: 14px !important;
  }
}

/* ✅ Remove the broken styles */
#mobile-cart-content .border,
#mobile-cart-content .row {
  /* Remove these styles as they're breaking the layout */
  all: unset !important;
}

