/* ============================================
   ELITE AUTO AU - Premium Car Dealership Styles
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #e94560;
  --accent-hover: #d63d56;
  --gold-color: #c9a227;
  --text-dark: #1a1a2e;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-dark: #0f0f1a;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 5px 25px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --max-width: 1400px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--text-light);
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* ============================================
   VERTICAL NAVIGATION
   ============================================ */
.vertical-nav {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--primary-color), var(--bg-dark));
  z-index: 1001;
  transition: left 0.4s ease;
  overflow-y: auto;
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.vertical-nav.active {
  left: 0;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.close-nav {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.close-nav:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

.nav-menu {
  padding: 20px 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  color: var(--text-light);
  font-size: 15px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(233, 69, 96, 0.1);
  border-left-color: var(--accent-color);
  color: var(--accent-color);
}

.nav-menu li a i {
  width: 20px;
  text-align: center;
}

.nav-menu li a span {
  position: relative;
}

.nav-menu li a span::after {
  content: "0";
  position: absolute;
  top: -8px;
  right: -20px;
  background: var(--accent-color);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--text-light);
  box-shadow: var(--shadow-light);
}

.header-top {
  background: var(--primary-color);
  padding: 10px 0;
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 25px;
}

.contact-info span {
  color: var(--text-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--text-light);
  font-size: 14px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

.main-nav {
  padding: 15px 0;
  background: var(--text-light);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.search-bar input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-bar button {
  padding: 12px 25px;
  background: var(--accent-color);
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--accent-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-icon {
  position: relative;
  font-size: 20px;
  color: var(--primary-color);
}

.cart-icon span {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-color);
  color: white;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  max-width: 700px;
  padding: 0 50px;
  color: var(--text-light);
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 0.8s ease;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .btn {
  animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
}

.slider-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
  background: var(--primary-color);
  padding: 30px 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.search-filters select,
.search-filters input {
  flex: 1;
  min-width: 150px;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  background: var(--text-light);
  cursor: pointer;
}

.search-filters select:focus,
.search-filters input:focus {
  outline: 2px solid var(--accent-color);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* ============================================
   FEATURED VEHICLES
   ============================================ */
.featured-vehicles {
  padding: 80px 0;
  background: var(--bg-light);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Rounded 2-Column Product Grid */
.rounded-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.rounded-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), rgba(26, 26, 46, 0.03));
  border-radius: 25px;
  padding: 25px;
  transition: var(--transition);
  border: 1px solid rgba(233, 69, 96, 0.1);
  overflow: hidden;
}

.rounded-product-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.15);
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.08), rgba(26, 26, 46, 0.05));
}

.rounded-product-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--accent-color);
  transition: transform 0.5s ease;
}

.rounded-product-card:hover .rounded-product-image {
  transform: scale(1.1) rotate(2deg);
}

.rounded-product-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.rounded-product-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.rounded-product-card .specs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.rounded-product-card .btn {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 13px;
}

.vehicle-card {
  background: var(--text-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vehicle-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.08);
}

.vehicle-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.vehicle-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--accent-color), #e74c3c);
  color: white;
  padding: 6px 14px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.vehicle-favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vehicle-favorite:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

.vehicle-info {
  padding: 20px;
}

.vehicle-info {
  padding: 20px;
}

.vehicle-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-color);
  line-height: 1.4;
  transition: color 0.3s;
}

.vehicle-info h3:hover {
  color: var(--accent-color);
}

.vehicle-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.spec-item {
  text-align: center;
  padding: 5px;
}

.spec-item i {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-item span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.vehicle-actions {
  display: flex;
  gap: 10px;
  padding: 15px 20px 20px;
}

.vehicle-actions .btn {
  flex: 1;
  padding: 12px 10px;
  font-size: 13px;
  border-radius: 10px;
}

.vehicle-actions .btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.vehicle-actions .btn-secondary:hover {
  background: var(--accent-color);
  color: var(--text-light);
  border-color: var(--accent-color);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.services-section .section-header h2,
.services-section .section-header p {
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.service-card i {
  font-size: 50px;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 60px 0;
  background: var(--accent-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  color: var(--text-light);
}

.stat-item i {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.stat-item h3 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-preview {
  padding: 80px 0;
  background: var(--bg-light);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--text-light);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.testimonial-rating {
  color: var(--gold-color);
  margin-bottom: 20px;
}

.testimonial-rating i {
  margin-right: 3px;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 3px;
}

.testimonial-author p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-preview {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.blog-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-content h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  color: var(--accent-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  gap: 12px;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 32px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 15px;
}

.newsletter-form input:focus {
  outline: 2px solid var(--accent-color);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--bg-dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer-column h3 {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-color);
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.footer-column > p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-color);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer-contact i {
  color: var(--accent-color);
  margin-top: 4px;
}

/* Mobile Footer Navigation */
.mobile-footer-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-light);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 10px 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--accent-color);
}

/* ============================================
   INVENTORY PAGE
   ============================================ */
.page-header {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920");
  background-size: cover;
  background-position: center;
  padding: 100px 0 60px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.inventory-filters {
  background: var(--text-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
}

.inventory-section {
  padding: 60px 0;
}

.view-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.view-toggle select {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-gallery {
  position: relative;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: zoom-in;
}

.thumbnail-container {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.thumbnail {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border-color: var(--accent-color);
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}

.product-info h1 {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.product-info .product-price {
  font-size: 36px;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 20px;
}

.product-description {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-specs-table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
}

.product-specs-table tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.product-specs-table tr:hover {
  background-color: var(--bg-light);
}

.product-specs-table td {
  padding: 14px 12px;
  font-size: 14px;
}

.product-specs-table td:first-child {
  color: var(--text-muted);
  width: 40%;
  font-weight: 500;
}

.product-specs-table td:last-child {
  color: var(--primary-color);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.product-actions .btn {
  flex: 1;
  padding: 15px;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-section {
  padding: 60px 0;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cart-items {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
}

.cart-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.cart-item-details h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.cart-item-details p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--border-color);
  background: var(--text-light);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.quantity-controls button:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.cart-item-price {
  text-align: right;
}

.cart-item-price h4 {
  font-size: 20px;
  color: var(--accent-color);
}

.cart-item-price button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.cart-item-price button:hover {
  color: var(--accent-color);
}

.cart-summary {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 15px;
}

.summary-row.total {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border-color);
}

.checkout-btn {
  width: 100%;
  margin-top: 25px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-section {
  padding: 60px 0;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.checkout-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.checkout-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 35px;
  box-shadow: var(--shadow-light);
}

.checkout-card h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-card h2 i {
  color: var(--accent-color);
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.checkout-note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.6;
  background: var(--bg-light);
  padding: 15px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-option {
  cursor: pointer;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.payment-option-content:hover {
  border-color: var(--accent-color);
  background: rgba(233, 69, 96, 0.02);
}

.payment-option input[type="radio"]:checked + .payment-option-content {
  border-color: var(--accent-color);
  background: rgba(233, 69, 96, 0.05);
  box-shadow: 0 0 0 1px var(--accent-color);
}

.payment-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.paypal-icon {
  background: linear-gradient(135deg, #003087, #009cde);
  color: white;
}

.cashapp-icon {
  background: linear-gradient(135deg, #00d632, #00b829);
  color: white;
}

.zelle-icon {
  background: linear-gradient(135deg, #6d1d6c, #9b2d99);
  color: white;
}

.payment-details {
  flex: 1;
}

.payment-details h4 {
  font-size: 17px;
  color: var(--primary-color);
  margin-bottom: 4px;
  font-weight: 600;
}

.payment-details p {
  font-size: 13px;
  color: var(--text-muted);
}

.payment-check {
  font-size: 22px;
  color: var(--border-color);
  transition: var(--transition);
}

.payment-option input[type="radio"]:checked + .payment-option-content .payment-check {
  color: var(--accent-color);
}

/* Payment Instructions */
.payment-instructions {
  margin-top: 20px;
}

.payment-detail-panel {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.payment-detail-panel h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-detail-panel h4 i {
  color: var(--accent-color);
}

.payment-detail-panel p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.payment-account {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text-light);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.payment-account span {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  flex: 1;
  word-break: break-all;
}

.copy-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Checkout Summary */
.checkout-summary .checkout-card {
  padding: 30px;
}

.summary-sticky {
  position: sticky;
  top: 100px;
}

.checkout-summary h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.checkout-summary-item {
  display: flex;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.checkout-summary-item:last-of-type {
  border-bottom: none;
}

.checkout-summary-item img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-item-info {
  flex: 1;
}

.checkout-item-info h4 {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 3px;
  line-height: 1.3;
}

.checkout-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.checkout-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-color);
  white-space: nowrap;
}

.summary-divider {
  height: 1px;
  background: var(--border-color);
  margin: 15px 0;
}

.checkout-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  font-size: 16px;
}

.checkout-secure-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
}

.checkout-secure-text i {
  color: #28a745;
  margin-right: 4px;
}

.checkout-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.checkout-badges span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.checkout-badges span i {
  color: #28a745;
  font-size: 13px;
}

.checkout-submit-mobile {
  display: none;
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-page {
  padding: 60px 0;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-page-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.blog-page-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

.blog-page-card .blog-image {
  height: 250px;
}

.blog-page-card .blog-content {
  padding: 25px;
}

.blog-sidebar {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--shadow-light);
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.categories li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.categories a {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.categories a:hover {
  color: var(--accent-color);
}

/* ============================================
   TESTIMONIALS PAGE
   ============================================ */
.testimonials-page {
  padding: 60px 0;
}

.testimonial-full-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
}

.testimonial-full-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-full-card .testimonial-rating {
  color: var(--gold-color);
  margin-bottom: 15px;
}

.testimonial-full-card .testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-full-card h4 {
  font-size: 18px;
  color: var(--primary-color);
}

.testimonial-full-card p {
  color: var(--text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 15px;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-info-box {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 40px;
  color: var(--text-light);
}

.contact-info-box h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info-box > p {
  opacity: 0.8;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-top: 5px;
}

.contact-info-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-info-item p {
  opacity: 0.8;
  font-size: 14px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.login-container {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 50px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-dark);
}

.login-container h1 {
  text-align: center;
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.login-container > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.login-container .btn {
  width: 100%;
  margin-top: 10px;
}

.login-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.login-divider span {
  background: var(--text-light);
  padding: 0 15px;
  position: relative;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-panel {
  padding: 60px 0;
}

.admin-sidebar {
  background: var(--primary-color);
  min-height: calc(100vh - 120px);
  border-radius: var(--border-radius);
  padding: 30px 20px;
  color: var(--text-light);
}

.admin-sidebar h2 {
  font-size: 22px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav li {
  margin-bottom: 5px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--border-radius);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.admin-nav a i {
  width: 20px;
}

.admin-content {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-light);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.admin-header h2 {
  font-size: 26px;
  color: var(--primary-color);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  padding: 25px;
  border-radius: var(--border-radius);
  color: var(--text-light);
}

.admin-stat-card i {
  font-size: 30px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.admin-stat-card h3 {
  font-size: 32px;
  margin-bottom: 5px;
}

.admin-stat-card p {
  opacity: 0.8;
  font-size: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--primary-color);
}

.admin-table tr:hover {
  background: var(--bg-light);
}

.admin-table .actions {
  display: flex;
  gap: 10px;
}

.admin-table .actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.admin-table .actions .edit-btn {
  background: var(--gold-color);
  color: white;
}

.admin-table .actions .delete-btn {
  background: var(--accent-color);
  color: white;
}

.admin-table .status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.admin-table .status.active {
  background: #d4edda;
  color: #155724;
}

.admin-table .status.pending {
  background: #fff3cd;
  color: #856404;
}

/* Admin Panel Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Admin Panel Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--text-light);
  border-radius: var(--border-radius);
  padding: 40px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--accent-color);
}

/* ============================================
   IMAGE GALLERY MODAL
   ============================================ */
.gallery-modal {
  max-width: 900px;
}

.gallery-modal .modal-main-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.gallery-modal .modal-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.gallery-modal .modal-thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 2px solid transparent;
}

.gallery-modal .modal-thumbnail:hover,
.gallery-modal .modal-thumbnail.active {
  opacity: 1;
  border-color: var(--accent-color);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .contact-info {
    display: none;
  }

  .search-bar {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-details {
    grid-template-columns: 1fr;
  }

  .cart-container {
    grid-template-columns: 1fr;
  }

  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-submit-mobile {
    display: block;
  }

  .checkout-summary .checkout-submit-btn {
    display: none;
  }

  .testimonial-full-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonial-full-card img {
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    display: none;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .vehicle-card {
    border-radius: 16px;
  }

  .vehicle-image {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }

  .header-main {
    padding: 10px 0;
  }

  .logo img {
    height: 40px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .btn {
    padding: 8px 15px;
    font-size: 12px;
  }

  .cart-icon {
    position: relative;
  }

  .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .hero {
    height: 50vh;
    min-height: 400px;
  }

  .hero-content {
    width: 100%;
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .search-filters {
    flex-direction: column;
    gap: 10px;
  }

  .search-filters select {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-header p {
    font-size: 14px;
  }

  /* Ensure 2-column grid on mobile - NOT 1 column */
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }

  .vehicle-card {
    margin-bottom: 0;
    border-radius: 14px;
  }

  .vehicle-image {
    height: 180px;
    border-radius: 14px 14px 0 0;
  }

  .vehicle-image img {
    border-radius: 14px 14px 0 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item {
    padding: 20px;
  }

  .newsletter {
    padding: 50px 20px;
  }

  .newsletter-content h2 {
    font-size: 24px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input {
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer {
    padding-bottom: 100px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-column {
    margin-bottom: 0;
  }

  .footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact p {
    font-size: 14px;
    justify-content: center;
  }

  .mobile-footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
  }

  .mobile-nav-item {
    font-size: 10px;
  }

  .mobile-nav-item i {
    font-size: 18px;
  }

  body {
    padding-bottom: 80px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .cart-item img {
    width: 80px;
    height: 60px;
  }

  .cart-item-info h4 {
    font-size: 14px;
  }

  .cart-item-price {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .cart-summary {
    padding: 20px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 5px;
  }

  .admin-table img {
    width: 60px;
    height: 40px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .product-gallery {
    flex-direction: column;
  }

  .product-main-image {
    width: 100%;
  }

  .product-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .product-info {
    padding: 20px;
  }

  .product-info h1 {
    font-size: 24px;
    line-height: 1.3;
  }

  .product-price {
    font-size: 28px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .login-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .modal-content {
    padding: 20px;
    margin: 10px;
    max-height: 85vh;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  html {
    font-size: 14px;
  }

  .header-main {
    padding: 8px 0;
  }

  .logo img {
    height: 35px;
  }

  .header-actions .btn span {
    display: none;
  }

  .header-actions .btn i {
    margin: 0;
  }

  .header-actions .btn {
    padding: 8px 12px;
    min-width: auto;
  }

  .hero {
    height: 45vh;
    min-height: 350px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .hero-content p {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .slider-controls {
    display: none;
  }

  .slider-dots {
    bottom: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 13px;
  }

  /* Maintain 2-column grid on small mobile devices */
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* 1 column for rounded product grid on mobile */
  .rounded-product-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rounded-product-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: center;
    text-align: left;
    padding: 15px;
    border-radius: 15px;
  }

  .rounded-product-image {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin-bottom: 0;
    border: 2px solid var(--accent-color);
  }

  .rounded-product-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .rounded-product-card .price {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .rounded-product-card .specs {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .rounded-product-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 12px;
  }

  .vehicle-card {
    border-radius: 12px;
  }

  .vehicle-image {
    height: 140px;
    border-radius: 12px 12px 0 0;
  }

  .vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
  }

  .vehicle-info {
    padding: 12px;
  }

  .vehicle-info h3 {
    font-size: 13px;
  }

  .vehicle-price {
    font-size: 16px;
  }

  .vehicle-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .spec-item {
    font-size: 10px;
  }

  .spec-item i {
    font-size: 12px;
  }

  .vehicle-actions {
    gap: 6px;
    padding: 10px 12px 12px;
  }

  .vehicle-actions .btn {
    padding: 8px;
    font-size: 11px;
  }

  .service-card {
    padding: 20px 15px;
  }

  .stat-item {
    padding: 15px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .newsletter-content h2 {
    font-size: 20px;
  }

  .newsletter-content p {
    font-size: 13px;
  }

  .footer-column h3 {
    font-size: 15px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-contact p {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .mobile-footer-nav {
    padding: 5px 0;
  }

  .mobile-nav-item {
    font-size: 9px;
    gap: 3px;
  }

  .mobile-nav-item i {
    font-size: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkout-card {
    padding: 20px;
  }

  .payment-option-content {
    padding: 15px;
    gap: 12px;
  }

  .payment-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .payment-details h4 {
    font-size: 15px;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 15px 0;
  }

  .cart-item img {
    width: 70px;
    height: 50px;
  }

  .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .cart-item-info h4 {
    font-size: 13px;
  }

  .cart-item-info p {
    font-size: 12px;
  }

  .cart-item-price {
    font-size: 14px;
  }

  .cart-summary {
    padding: 15px;
  }

  .cart-summary h3 {
    font-size: 16px;
  }

  .quantity-control {
    gap: 5px;
  }

  .quantity-control button {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .quantity-control span {
    min-width: 30px;
    font-size: 14px;
  }

  .admin-stats {
    gap: 10px;
  }

  .admin-stat-card {
    padding: 15px;
  }

  .admin-stat-card i {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .admin-stat-card h3 {
    font-size: 1.5rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 6px 3px;
    font-size: 11px;
  }

  .admin-actions {
    gap: 5px;
  }

  .admin-btn-icon {
    width: 28px;
    height: 28px;
  }

  .blog-card {
    border-radius: 12px;
  }

  .blog-card img {
    height: 180px;
  }

  .blog-card-content {
    padding: 15px;
  }

  .blog-card h3 {
    font-size: 15px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card img {
    width: 60px;
    height: 60px;
  }

  .product-gallery {
    border-radius: 12px;
  }

  .main-image {
    height: 280px;
    border-radius: 12px;
  }

  .product-thumbnails {
    padding: 10px 0;
    gap: 8px;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 8px;
  }

  .product-info {
    padding: 15px 0;
  }

  .product-info h1 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .product-price {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--accent-color);
  }

  .product-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .product-specs-table {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .product-specs-table td {
    padding: 10px 0;
  }

  .product-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
  }

  .product-actions .btn {
    padding: 12px;
    font-size: 13px;
    width: 100%;
  }

  .login-container {
    padding: 25px 15px;
    margin: 15px;
    border-radius: 12px;
  }

  .login-container h2 {
    font-size: 20px;
  }

  .page-header {
    padding: 90px 0 35px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-header p {
    font-size: 13px;
  }

  .modal-content {
    padding: 15px;
    margin: 10px;
    border-radius: 12px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.loading-spinner::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Vehicle Skeleton Loader */
.vehicle-skeleton {
  background: var(--text-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: pulse 2s infinite;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-content {
  padding: 20px;
}

.skeleton-title {
  height: 20px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 12px;
  border-radius: 4px;
}

.skeleton-price {
  height: 28px;
  width: 60%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  margin-bottom: 12px;
  border-radius: 4px;
}

.skeleton-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
}

.skeleton-spec {
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-actions {
  display: flex;
  gap: 10px;
}

.skeleton-button {
  flex: 1;
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 10px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state i {
  font-size: 80px;
  color: var(--border-color);
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
}

.toast {
  background: var(--text-light);
  padding: 15px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-left: 4px solid #28a745;
}

.toast.error {
  border-left: 4px solid var(--accent-color);
}

.toast.info {
  border-left: 4px solid #17a2b8;
}

/* Receipt Popup */
.receipt-popup {
  padding: 0 !important;
  overflow: hidden;
}

.receipt-popup .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  max-height: 70vh;
  overflow-y: auto;
}

.receipt-popup .swal2-actions {
  padding: 15px 20px;
  margin: 0 !important;
  border-top: 1px solid var(--border-color);
}

@media print {
  .receipt-popup,
  .swal2-container,
  .swal2-popup {
    display: none !important;
  }
}
