/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
}

.top-bar .social-icons a {
    margin-right: 10px;
    color: #fff;
    transition: color 0.3s;
}

.top-bar .social-icons a:hover {
    color: #ff9800;
}

.top-bar .contact-info span {
    margin-right: 20px;
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center;
    background-color: #000000;
    padding: 15px 20px;
    border-bottom: 2px solid #0e0e0e;
    position: relative;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 80px;
    width: 90px;
    
    margin-right: 10px;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    position: relative;
    margin: 0 auto; /* Center the nav-links */
}

nav .nav-links li {
    position: relative;
}

nav .nav-links a {
    text-decoration: none;
    color: #f8f1f1;
    font-size: 18px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #ff9800;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #ff9800;
    transition: width 0.3s;
}

nav .nav-links a:hover::after {
    width: 100%;
}

nav .cta a {
    text-decoration: none;
    padding: 10px 20px;
    background-color: #f0eee9;
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

nav .cta a:hover {
    background-color: #f3f1ef;
}
/* Hamburger Menu */
nav .hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    left: 20px;
}

nav .hamburger div {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

/* Background Overlay */
nav .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
    z-index: 998;
}

nav .overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Navigation */
@media (max-width: 1024px) {
    nav {
        flex-wrap: wrap;
    }

   
    nav .nav-links {
        position: absolute;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background-color: #f7cc0c;
        flex-direction: column;
        padding: 20px; /* Padding inside the capsule */
        gap: 20px;
        border-radius: 20px; /* Capsule shape */
        transition: left 0.5s ease-in-out;
        z-index: 999;
    }

    nav .nav-links.active {
        left: 0;
    }

    nav .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    nav .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    nav .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav .nav-links.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav .nav-links.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav .nav-links.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav .hamburger {
        display: flex;
    }

    nav .cta {
        display: none;
    }

    /* Hamburger Animation */
    nav.active .hamburger div:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #ff9800;
    }

    nav.active .hamburger div:nth-child(2) {
        opacity: 0;
    }

    nav.active .hamburger div:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #ff9800;
    }
}


/* Search Bar Styles */
.search-container {
    position: absolute;
    top: 60px; /* Positioned below the hamburger menu */
    right: 15px; /* Aligned with hamburger menu */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

#searchInput {
    padding: 12px 16px;
    width: 0;
    border: none;
    border-radius: 50px; /* Rounded corners for modern look */
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Smoother animation */
    opacity: 0;
    visibility: hidden;
    outline: none; /* Remove outline on focus */
}

#searchInput.active {
    width: 240px;
    opacity: 1;
    visibility: visible;
}

#searchInput:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on focus */
}

.suggestions {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    width: 240px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.suggestions div {
    padding: 12px 16px;
    cursor: pointer;
    color: #333;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.suggestions div:last-child {
    border-bottom: none;
}

.suggestions div:hover {
    background: #f7f7f7;
}

/* Search Icon */
.search-icon {
    cursor: pointer;
    font-size: 22px;
    color: white;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive Styles - comprehensive for all devices */
@media (max-width: 1200px) {
    #searchInput.active {
        width: 220px;
    }
}

@media (max-width: 992px) {
    #searchInput.active {
        width: 200px;
    }
    
    .suggestions {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .search-container {
        top: 40px; /* Maintain position below hamburger menu */
        right: 2px; /* Keep aligned with hamburger menu */
    }
    
    #searchInput.active {
        width: 180px;
    }
    
    .suggestions {
        width: 180px;
    }
    
    .search-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .search-container {
        top: 40px; /* Consistent positioning */
        right: 5px;
    }
    
    #searchInput.active {
        width: 150px;
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .suggestions {
        width: 150px;
        top: 45px;
    }
    
    .suggestions div {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .search-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

@media (max-width: 380px) {
    #searchInput.active {
        width: 120px;
    }
    
    .suggestions {
        width: 120px;
    }
}

/* For extremely small devices */
@media (max-width: 320px) {
    #searchInput.active {
        width: 100px;
    }
    
    .suggestions {
        width: 100px;
    }
    
    .search-icon {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* contact icon*/

.fixed-contact {
    position: fixed;
    left: 20px;  /* Distance from the left */
    bottom: 50px;  /* Distance from the bottom */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000; /* Ensures it stays on top */
}

.fixed-contact a img {
    width: 50px;  /* Adjust size */
    height: 50px;
    border-radius: 50%;  /* Make it round */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.fixed-contact a img:hover {
    transform: scale(1.1);
}

/* General Styling */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.product-details {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.product-title {
    font-size: 24px;
    color: #d10000;
    margin-bottom: 20px;
    text-align: center;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-image {
    flex: 1;
    position: relative;
}

.slider img {
    width: 100%;
    border-radius: 8px;
}


.product-info {
    flex: 2;
}

.product-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-info table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.product-info table td:first-child {
    font-weight: bold;
    width: 30%;
}

.enquiry-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.enquiry-btn {
    background-color: #d10000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
}

.enquiry-btn:hover {
    background-color: #a00000;
}

/* Product Description Tabs */
.product-description {
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-btn {
    background-color: #d10000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.tab-btn.active {
    background-color: #a00000;
}

.tab-content {
    display: none;
    padding: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    text-align: left;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.tab-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive Media Queries */
@media screen and (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-info {
        width: 100%;
    }
    
    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 8px 15px;
    }
    
    .tab-content {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .product-title {
        font-size: 20px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .enquiry-btn {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .tab-content p {
        font-size: 14px;
        text-align: left;
    }
}

  /* Bottle Container and Items */
  .bottles-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bottle-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.bottle-item:hover {
    transform: translateY(-5px);
}

.bottle-image {
    width: 200px;
    height: 300px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bottle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bottle-item:hover img {
    transform: scale(1.05);
}

.bottle-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
}

/* Preview Overlay */
.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-overlay.active {
    display: flex;
    opacity: 1;
}

.preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

.preview-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-preview {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .bottles-container {
        gap: 1rem;
        padding: 1rem;
    }

    .bottle-image {
        width: 150px;
        height: 225px;
    }

    .close-preview {
        top: -30px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .bottles-container {
        flex-direction: column;
        align-items: center;
    }

    .bottle-image {
        width: 200px;
        height: 300px;
    }
}

footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px 10px;
    font-family: sans-serif;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .footer-section {
    flex: 1 1 200px;
  }
  
  .footer-section h3 {
    color: #f4c10f;
    margin-bottom: 10px;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section a {
    text-decoration: none;
    color: #ccc;
  }
  
  .footer-section a:hover {
    color: #f4c10f;
  }
  
  .footer-section input,
  .footer-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
  }
  
  .footer-section button {
    width: 100%;
    padding: 10px;
    background-color: #f4c10f;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .footer-bottom {
    text-align: center;
    color: #aaa;
    border-top: 1px solid #333;
    margin-top: 30px;
    padding-top: 10px;
    font-size: 14px;
  }
  
  /* Mobile Layout Fix */
  @media (max-width: 768px) {
    .footer-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      text-align: left;
    }
  
    .quick-links     { grid-column: 1; grid-row: 1; }
    .address         { grid-column: 2; grid-row: 1; }
    .contact-info    { grid-column: 1; grid-row: 2; }
    .follow-us       { grid-column: 2; grid-row: 2; }
    .contact-us      { grid-column: 1 / span 2; grid-row: 3; text-align: center; }
  
    .footer-section form {
      max-width: 90%;
      margin: 0 auto;
    }
  
    .footer-bottom {
      margin-top: 15px;
    }
  }
  

.product-info {
    position: relative;
    padding: 20px;
}

.product-info h2 {
    margin-bottom: 20px;
}

table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.enquiry-btn {
    background: #cc0000;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 30px;
    display: block;
}

.bottles-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
    justify-content: flex-start;
    padding-left: 0;
}

.bottle-item {
    text-align: center;
}

.bottle-image {
    width: 80px;
    height: 120px;
    margin-bottom: 8px;
}

.bottle-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bottle-title {
    font-size: 14px;
    color: #333;
    margin: 5px 0 0 0;
}

@media (max-width: 768px) {
    .bottles-container {
        gap: 20px;
        justify-content: center;
    }
    
    .bottle-image {
        width: 60px;
        height: 90px;
    }
}
/* Existing CSS */
.brake-fluid {
    display: flex;
    align-items: center;
    padding: 50px;
    background: #f8f9fa;
}

.content {
    width: 50%;
}

.content h2 {
    font-size: 28px;
    color: #333;
}

.content ul {
    list-style: none;
    padding: 0;
}

.content ul li {
    font-size: 18px;
    padding: 8px 0;
}

.know-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.bg-image {
    width: 50%;
    height: 500px;
    background: url('images/dot4user.webp') no-repeat center/cover;
    border-radius: 10px;
}

/* Media Query for screens with a maximum width of 768px */
@media (max-width: 768px) {
    .brake-fluid {
        flex-direction: column; /* Stack content vertically */
        padding: 20px; /* Reduce padding for smaller screens */
    }

    .content {
        width: 100%; /* Full width for content */
        text-align: left; /* Align text to the left */
        margin-bottom: 20px; /* Add space between content and image */
    }

    .content h2 {
        font-size: 24px; /* Slightly smaller font size */
        text-align: center; /* Center-align the heading */
    }

    .content ul {
        padding-left: 20px; /* Add left padding for the list */
    }

    .content ul li {
        font-size: 16px; /* Slightly smaller font size */
    }

    .know-more {
        display: block; /* Make the button a block element */
        margin: 15px auto 0; /* Center-align the button */
        text-align: center; /* Center text inside the button */
        width: fit-content; /* Adjust width to fit content */
    }

    .bg-image {
        width: 100%; /* Full width for image */
        height: 250px; /* Reduce height */
        margin-top: 20px; /* Add space between content and image */
    }
}