@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Arial', sans-serif;
}

/* Body & Background */
body {
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Header/Navbar */
header {
  background-color: #1a1a2e;
  padding: 15px 5%;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 28px;
  font-weight: bold;
  color: #ff6347;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

header nav ul li a:hover {
  color: #ff6347;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/car.jpg') no-repeat center center/cover;
  padding: 120px 20px;
  text-align: center;
  color: white;
}

.hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
  padding: 12px 25px;
  background-color: #FF6347;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(255, 99, 71, 0.3);
}

.btn:hover {
  background-color: #ff4500;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 99, 71, 0.4);
}

.btn.secondary {
  background-color: #6c757d;
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn.secondary:hover {
  background-color: #5a6268;
  box-shadow: 0 6px 12px rgba(108, 117, 125, 0.4);
}

/* Sections */
section {
  padding: 60px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #1a1a2e;
  position: relative;
}

section h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff6347;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Categories Section */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.category-card {
  background-color: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ff6347;
}

.category-card h3 {
  font-size: 1.2rem;
  color: #333;
}

/* Products Section */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.product-description {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 15px;
  height: 60px;
  overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6347;
    margin-bottom: 15px;
  }
  
  /* Cart Section */
  #cart {
    background-color: #f8f8f8;
  }
  
  .cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  .cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .cart-item-details h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  .cart-item-price {
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  .cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .quantity-btn:hover {
    background-color: #e0e0e0;
  }
  
  .cart-item-total {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
  }
  
  .remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
  }
  
  .remove-item:hover {
    color: #bd2130;
  }
  
  #cart-total {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: right;
    margin: 20px 0;
  }
  
  .cart-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
  }
  
  .empty-cart {
    text-align: center;
    margin: 40px 0;
    color: #6c757d;
    font-size: 1.2rem;
  }
  
  /* Checkout & Payment Sections */
  .hide-section {
    display: none;
  }
  
  .checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
  }
  
  .progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
  }
  
  .progress-step.active .step-number {
    background-color: #ff6347;
    color: white;
  }
  
  .progress-step.completed .step-number {
    background-color: #28a745;
    color: white;
  }
  
  .progress-line {
    height: 4px;
    background-color: #f0f0f0;
    flex-grow: 1;
    max-width: 100px;
    position: relative;
    top: -30px;
    z-index: 1;
  }
  
  .progress-line.completed {
    background-color: #28a745;
  }
  
  .step-label {
    font-size: 0.9rem;
    color: #6c757d;
  }
  
  .progress-step.active .step-label {
    color: #333;
    font-weight: 500;
  }
  
  /* Form Styles */
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
  }
  
  .form-group input,
  .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
  }
  
  .form-group input:focus,
  .form-group select:focus {
    border-color: #ff6347;
    outline: none;
  }
  
  .form-row {
    display: flex;
    gap: 20px;
  }
  
  .form-group.half {
    flex: 1;
  }
  
  /* Payment Method Styles */
  .order-summary-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .order-summary {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .order-summary h3,
  .payment-methods h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #1a1a2e;
  }
  
  .order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .order-total {
    margin-top: 20px;
  }
  
  .order-subtotal,
  .order-shipping,
  .order-tax {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #6c757d;
  }
  
  .order-final-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.2rem;
  }
  
  .payment-methods {
    margin-bottom: 30px;
  }
  
  .payment-method-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  
  .payment-option:hover {
    border-color: #ff6347;
  }
  
  .payment-option input {
    margin: 0;
  }
  
  .payment-details {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #f0f0f0;
  }
  
  #upi-details .qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .qr-code {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
  }
  
  .cod-info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #6c757d;
  }
  
  .cod-info i {
    color: #ff6347;
    font-size: 1.2rem;
  }
  
  .payment-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
  }
  
  /* Order Confirmation Styles */
  .confirmation-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .success-animation {
    margin-bottom: 30px;
  }
  
  .success-animation i {
    font-size: 5rem;
    color: #28a745;
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.95);
      opacity: 0.7;
    }
    50% {
      transform: scale(1);
      opacity: 1;
    }
    100% {
      transform: scale(0.95);
      opacity: 0.7;
    }
  }
  
  .confirmation-content h2 {
    color: #1a1a2e;
    margin-bottom: 15px;
  }
  
  .confirmation-content p {
    color: #6c757d;
    margin-bottom: 30px;
  }
  
  .order-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
  }
  
  .order-info,
  .customer-info,
  .shipping-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
  }
  
  .order-info h3,
  .customer-info h3,
  .shipping-info h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #1a1a2e;
  }
  
  .order-info p,
  .customer-info p,
  .shipping-info p {
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .invoice-section {
    text-align: left;
    margin-bottom: 40px;
  }
  
  .invoice-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #1a1a2e;
  }
  
  .invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .invoice-totals {
    margin-top: 20px;
  }
  
  .invoice-subtotal,
  .invoice-shipping,
  .invoice-tax {
    color: #6c757d;
  }
  
  .invoice-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.2rem;
  }
  
  .invoice-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  /* Invoice Template Styles (for PDF generation) */
  #invoice-template {
    width: 210mm;
    padding: 20mm;
    background-color: white;
    font-family: Arial, sans-serif;
  }
  
  .invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  
  .company-logo {
    font-size: 24px;
    font-weight: bold;
    color: #ff6347;
  }
  
  .invoice-title h2 {
    margin-bottom: 10px;
    color: #1a1a2e;
  }
  
  .invoice-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
  }
  
  .billed-to,
  .payment-info {
    width: 48%;
  }
  
  .billed-to h3,
  .payment-info h3 {
    margin-bottom: 10px;
    color: #1a1a2e;
  }
  
  .invoice-items-table {
    margin-bottom: 40px;
  }
  
  .invoice-items-table table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .invoice-items-table th {
    background-color: #f8f8f8;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
  }
  
  .invoice-items-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .invoice-summary {
    width: 40%;
    margin-left: auto;
  }
  
  .invoice-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .invoice-summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 2px solid #ddd;
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
  }
  
  .invoice-footer {
    margin-top: 60px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
  }
  
  /* Steps Section */
  .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .step-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff6347;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  .step-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #1a1a2e;
  }
  
  /* Features Section */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  .feature-icon {
    margin-bottom: 20px;
  }
  
  .feature-icon i {
    font-size: 2.5rem;
    color: #ff6347;
  }
  
  .feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #1a1a2e;
  }
  
  /* Testimonials */
  .testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
  }
  
  .testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
  }
  
  .testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: #f0f0f0;
    font-family: Georgia, serif;
    line-height: 1;
  }
  
  .testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
  }
  
  .testimonial-author {
    font-weight: 600;
    color: #ff6347;
  }
  
  /* About Section */
  .about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
  }
  
  /* Footer */
  footer {
    background-color: #1a1a2e;
    color: white;
    padding: 60px 5% 30px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #ff6347;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-section ul li a:hover {
    color: #ff6347;
  }
  
  .footer-section ul li i {
    margin-right: 10px;
    color: #ff6347;
  }
  
  .footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-bottom p {
    color: #adb5bd;
    font-size: 0.9rem;
  }
  
  .footer-bottom a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-bottom a:hover {
    color: #ff6347;
  }
  
  /* Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
  }
  
  .modal-icon {
    margin-bottom: 20px;
  }
  
  .modal-icon i {
    font-size: 3rem;
  }
  
  .success-icon {
    color: #28a745;
  }
  
  .error-icon {
    color: #dc3545;
  }
  
  .modal-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
  
  .modal-content p {
    margin-bottom: 20px;
    color: #6c757d;
  }
  
  /* Cart Badge */
  #cart-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: #ff6347;
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .hero h1 {
      font-size: 2.8rem;
    }
    
    .order-summary-container {
      grid-template-columns: 1fr;
    }
    
    .order-details {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    header nav ul {
      display: none;
    }
    
    .mobile-menu-btn {
      display: block;
    }
    
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .hero p {
      font-size: 1rem;
    }
    
    .cart-item {
      grid-template-columns: 80px 1fr;
      grid-template-rows: auto auto auto;
    }
    
    .cart-item-image {
      grid-row: span 3;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .remove-item {
      grid-column: 2;
    }
    
    .cart-buttons {
      flex-direction: column;
      gap: 15px;
    }
    
    .payment-method-options {
      grid-template-columns: 1fr;
    }
    
    .form-row {
      flex-direction: column;
      gap: 0;
    }
    
    .footer-bottom {
      flex-direction: column;
      text-align: center;
    }
  }
  
  @media (max-width: 576px) {
    .container {
      width: 95%;
    }
    
    section h2 {
      font-size: 2rem;
    }
    
    .hero h1 {
      font-size: 1.8rem;
    }
    
    .product-grid {
      grid-template-columns: 1fr;
    }
    
    .confirmation-content {
      padding: 20px;
    }
  }