/* 🎨 Global Color Variables for DTC Website */
:root {
  /* 🌟 Primary Brand Colors */
  --primary-color: #ff6b35; /* Main CTA Button, Highlights */
  --secondary-color: #14213d; /* Secondary Accent (Dark Blue) */
  --tertiary-color: #fca311; /* Additional Accent (Warm Yellow) */

  /* 🖥️ Background Colors */
  --background-light: #ffffff; /* Light Backgrounds */
  --background-dark: #042835; /* Dark Sections */
  --background-gray: #000000; /* Light Gray Sections */
  --background-card: #effcfc; /* Light Gray Sections */

  /* 📝 Text Colors */
  --text-primary: #333333; /* Main Text Color */
  --text-secondary:#ffc44d; /* Secondary Text (Muted) */
  --text-inverse: #ffffff; /* Text on Dark Backgrounds */
  --text-card: #000000; /* Text on Dark Backgrounds */

  /* 🚀 UI Element Colors */
  --error-color: #d32f2f; /* Errors, Warnings */
  --success-color: #28a745; /* Success Messages */
  --info-color: #007bff; /* Informational Highlights */
  --overlay-bg: rgba(0, 0, 0, 0.8); /* Pop-ups, Modal Overlays */

  /* 🎨 Button & Link Colors */
  --button-hover: #e0522a; /* CTA Hover Effect */
  --button-disabled: #cccccc; /* Disabled Button */
  --link-color: #0056b3; /* Hyperlink Color */
  --link-hover: #004494; /* Hyperlink Hover */

  /* 📱 Responsive & Misc */
  --mobile-nav-bg: rgba(20, 33, 61, 0.95); /* Mobile Navigation */
  --border-color: #e0e0e0; /* Borders & Dividers */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Box Shadows */
}


/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
}
  
.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}
  
/* Header Styling */
.header {
  background-color: var(--background-light);
    padding: 1rem 0;
    color: var(--text-primary);
  }

  /* Reduce header height by 30% on mobile */
@media (max-width: 768px) {
  .header {
    padding: 0.1rem 0; /* Reduce padding to shrink height */
  }

}

  
  /* Container to Align Items */
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
  }
  
  /* Logo and Company Name Row */
  .logo-container {
    display: flex;
    align-items: center; /* Align items in a row */
    text-decoration: none; /* Remove underline */
    color: var(--text-primary);
  }
  
  /* Logo Styling */
  .logo {
    height: 50px; /* Adjust size */
    margin-right: 10px; /* Add space between logo and name */
  }
  
  /* Company Name Styling */
  .company-name {
    font-size: 1.5rem;
    margin: 0; /* Remove default margin */
  }
  

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    right: 0rem; /* Aligns it to the right */
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-light);
  color: var(--text-primary);
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 2rem;
  z-index: 1000;
  
}

/* Remove Bullet Points & Reset Margin/Padding */
.mobile-menu ul {
    list-style: none; /* Removes bullets */
    padding: 0;
    margin: 2rem 0;
    width: 100%;
  }
  
  /* Style Mobile Menu Links */
  .mobile-menu ul li {
    width: 100%;
    text-align: left; /* Ensure left alignment */
  }
  
  /* Match Desktop Navigation Styles */
  .mobile-menu ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    display: block;
    padding: 0.8rem 2rem;
    width: 100%;
    font-weight: bold; /* Optional: Matches bold look */
    transition: background 0.3s ease;
  }
  
  /* Hover Effect */
  .mobile-menu ul li a:hover {
    background: rgba(255, 196, 77, 0.2);
  }
  

/* Show the mobile menu when active */
.mobile-menu.show {
  display: flex;
}

/* Mobile Menu Header (Logo & Close Button) */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 1rem;
 /* border-bottom: 0px solid rgba(255, 255, 255, 0.2); /* Subtle separator */
  position: relative;
}

/* Logo inside Mobile Menu */
.mobile-logo {
  height: 50px;
  margin-right: 10px;
}

/* Ensure company name stays in one line on mobile */
.mobile-company-name {
  font-size: 1.5rem; /* Adjust size if necessary */
  margin: 0;
  white-space: nowrap; /* Prevents text from wrapping */
  overflow: hidden; /* Ensures no text overflow */
  text-overflow: ellipsis; /* Adds "..." if text is too long */
  max-width: 100%; /* Prevents overflow issues */
}


/* Close Button (X) */
.close {
  position: absolute;
  right: 3rem; /* Aligns it to the right */
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100; /* Ensures it is above the menu */
}


  
  

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures both text and image are centered */
    flex-wrap: wrap;
    padding: 2rem;
    text-align: center;
    gap: 2rem; /* Adds spacing between text and image */
  }
  
  /* Hero Image */
  .hero-image {
    max-width: 500px; /* Limit the size */
    height: auto; /* Maintain aspect ratio */
    width: 100%; /* Ensure responsiveness */
    object-fit: cover;
    display: block;
    margin: 0 auto; /* Ensures centering */
    border-radius: 10px; /* Optional */
  }
  
/* Desktop: Add Left Padding */
@media (min-width: 1200px) {
    .hero {
      flex-direction: row; /* Ensure text and image are in a row */
      text-align: left; /* Align text to the left */
      padding-left: 15rem; /* Add 10rem left padding */
      padding-right: 15rem; /* Add 10rem left padding */
    }
    
    .hero-text {
      flex: 1;
      text-align: left;
    }
  
    .hero-image {
      flex: 1;
      max-width: 450px; /* Adjust size */
      margin: 0 auto; /* Center properly */
    }
  }
  
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text {
      max-width: 100%;
    }
  
  
    .hero-image {
        max-width: 100%; /* Ensures image does not exceed container */
        height: auto; /* Keeps the original aspect ratio */
        object-fit: cover; /* Ensures the image doesn't stretch */
        display: block;
      }
      
  }
  
  
  
.cta {
    background-color: #ffc44d;
    color: #000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}
  
/* Carousel */
.carousel {
    padding: 2rem;
    text-align: center;
    
}
  
.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    margin-top: 1rem;
   
}
  
.product {
    min-width: 200px;
    background-color: var(--background-card);
    color: var(--text-card);
    padding: 1rem;
    border-radius: 8px;

}
  
.product img {
    max-width: 100%;
    border-radius: 8px;
}
  
/* Footer */
.footer {
  background-color: var(--background-dark);
    padding: 1rem 0;
    text-align: center;
    color: var(--text-secondary);
}
  
.footer .social-links a {
    color: #ffc44d;
    text-decoration: none;
    margin: 0 10px;
}
  
/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
  
    .hero-text {
        max-width: 100%;
    }
  
    .hero-image {
        max-width: 100%;
        margin-top: 1rem;
    }

    .nav-links ul {
        display: none;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Inventory Section */
.inventory {
    padding: 0.2rem;
    text-align: center;
}
  

/* Inventory Grid Container - Default (Desktop) */
/* Inventory Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Default responsive grid */
    gap: 1rem;
    margin-top: 2rem;
    width: 100%; /* Use full available space */
    max-width: 100vw;
    padding: 0; /* Remove unnecessary padding */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  
  /* Desktop: Limit to 6 Columns */
  @media (min-width: 1200px) {
    .grid-container {
      grid-template-columns: repeat(6, 1fr); /* Maximum 6 columns */
    }
  }
  
  /* Medium Screens: Reduce to 4 Columns */
  @media (max-width: 1199px) {
    .grid-container {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* Tablets & Small Screens: Reduce to 3 Columns */
  @media (max-width: 992px) {
    .grid-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Mobile: Reduce Side Margins Even Further */
  @media (max-width: 768px) {
    .grid-container {
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* Force two equal columns */
      padding: 0 0.5rem; /* Reduce padding to maximize space */
      max-width: 98vw; /* Nearly full width */
    }
  }
  
  /* Extra Small Screens: Still Keep 2 Equal Columns */
  @media (max-width: 500px) {
    .grid-container {
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* Maintain equal columns */
      padding: 0 0.25rem; /* Reduce padding further */
      max-width: 98vw;
    }
  }
  
.card {
  background-color: var(--background-card);
  color: var(--text-card);
    border-radius: 8px;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
  
.card-img {
    width: 100%; /* Full width of the container */
    aspect-ratio: 1 / 1; /* Enforce square aspect ratio */
    object-fit: cover; /* Crop the image to fill the container */
    border-radius: 8px; /* Optional: Rounded corners */
    margin-bottom: 0.5rem;
  }
  
.card-brand,
.card-model,
.card-reference,
.card-price {
    margin: 0.5rem 0;
}
  
.cta {
    background-color: #ffc44d;
    color: #000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

/* Product Details */
.product-details {
    padding: 2rem;
    text-align: center;
  }
  
  .product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  

  /* Product Image - Rounded Corners */
.product-image {
    max-width: 500px; /* Ensure it doesn't exceed 500px */
    max-height: 500px; /* Maintain square bounds */
    width: 100%; /* Responsive sizing */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper alignment */
    margin: 0 auto; /* Centers the image */
    border-radius: 20px; /* Adjust this value for more or less rounding */
  }
  
  
  .product-info {
    max-width: 600px;
    text-align: center;
  }
  
  .product-info h2,
  .product-info p {
    margin: 0.5rem 0;
  }
  

  /* Loader Styles */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }
  
 /* Loading Spinner */
.spinner {
  display: none; /* Hidden by default */
  margin: 20px auto;
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #ffc44d; /* Matches CTA color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
  color: red;
  text-align: center;
  font-size: 1.2rem;
  display: none; /* Hidden by default */
}

  
  /* Pop-up Styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    color: var(--text-primary);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding-top: 0rem;
  }
  
  /* Pop-up Content */
  .popup-content {
    background-color: var(--background-light);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
  }
  
  /* Ensure brand, model, and reference text is visible */
  .popup-content h2,
  .popup-content p {
    color: #000000; /* Black text for readability */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }
  .popup-content h3 {
    color: #011815; /* Black text for readability */
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-align: left;
  }

  /* Close button */
  .close-popup {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #000; /* Black for visibility */
    font-size: 2rem;
    cursor: pointer;
  }
  
/* General Form Styling */
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%; /* Ensure form takes full width */
  text-align: left; /* Center button */
}

/* Style Input Fields */
.popup-form input,
.popup-form textarea {
  width: 100%; /* Ensure all fields take full width */
  max-width: 100%; /* Prevent overflow */
  padding: 0.75rem;
  border: 1px solid #ffc44d;
  border-radius: 5px;
  background-color: var(--background-light);
  color: var(--text-primary);
  font-size: 1rem;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Ensure Message Field Matches Other Inputs */
.popup-form textarea {
  resize: vertical; /* Allow vertical resizing */
  height: 100px; /* Match typical input field height */
}

/* Center the Submit Button */
.popup-form button {
  display: block;
  margin: 1rem auto 0; /* Centers button below the message field */
  padding: 0.75rem 2rem;
  font-size: 1.2rem;
  background-color: #ffc44d;
  color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Button Hover Effect */
.popup-form button:hover {
  background-color: #e6a833;
}

  
  /* Submit Button */
  .popup-form .cta {
    background-color: #ffc44d;
    color: #000;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
  }
  
  /* Thank You Message */
  .thank-you-message h3 {
    color: #000;
  }
  
  .thank-you-message p {
    color: #000;
  }
  
  /* Contact Page Container */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
  
  /* Contact Form Styles */
/* Ensure the contact container is responsive */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensures it doesn’t exceed screen width */
    box-sizing: border-box; /* Prevents padding from increasing width */
  }
  
  /* Ensure form fields do not overflow */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%; /* Ensures inputs don't exceed container width */
    max-width: 100%; /* Prevents overflow */
    padding: 0.75rem;
    border: 1px solid #ffc44d;
    border-radius: 5px;
    background-color: var(--background-light);
    color: var(--text-primary);
    font-size: 1rem;
    box-sizing: border-box; /* Prevents width from expanding */
  }
  
  /* Responsive Fix for Mobile Screens */
  @media (max-width: 768px) {
    .contact-container {
      width: 90%; /* Ensures padding doesn’t push content out */
      padding: 1.5rem;
    }
  
    .contact-form input,
    .contact-form textarea {
      width: 100%;
    }
  }
  
  
  /* Thank You Message */
  .thank-you-message h3 {
    color: #ffc44d;
  }
  
  .thank-you-message p {
    color: #fff;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .contact-container {
      width: 90%;
      padding: 1.5rem;
    }
  }

  
  /* About Page Container */
.about-container {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    color: var(--text-primary);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
  
  /* About Page Images */
  .about-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .about-image {
    max-width: 45%; /* Keep images responsive */
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .about-container {
      width: 90%;
      padding: 1.5rem;
    }
  
    .about-images {
      flex-direction: column;
      align-items: center;
    }
  
    .about-image {
      max-width: 90%;
    }
  }
  
  /* Image Carousel */
.carousel {
  position: relative;
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  text-align: center;
}

.carousel-images {
  position: relative;
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.carousel-slide {
  display: none; /* Hide non-active images */
  width: 100%;
}

.carousel-slide.active {
  display: block; /* Show active image */
}

.carousel-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: gray;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background-color: #ffc44d; /* Match brand colors */
}

/* Contact Buttons Container */
.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* WhatsApp Button */
.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background-color: #25D366; /* WhatsApp green */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128C7E; /* Darker shade for hover */
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
}

/* Make buttons stack on mobile */
@media (max-width: 768px) {
  .contact-buttons {
      flex-direction: column;
  }
  
  .whatsapp-button {
      justify-content: center;
  }
}