/* Navbar Styles */
.navbar {
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    padding: 1.5rem 1.5rem; /* Increase padding to make the navbar taller */

    background: linear-gradient(90deg, #1f4037 0%, #99f2c8 100%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.nav-link {
    font-weight: bold; /* Make navbar links bold */
    margin-right: 20px; /* Add space between navbar list items */
}
.nav-link:hover {
    color: #007bff !important;
}
.navbar-brand img {
    height: 40px;
}
.search-bar-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background-color: #f8f9fa;
}
.search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}
.search-bar input {
    padding-left: 2.5rem;
    border-radius: 20px;
}
.search-bar .fa-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}
.dark-mode-toggle {
    cursor: pointer;
    margin-right: 15px;
}
.navbar-nav {
    margin-right: 50px; /* Add space between navbar lists and profile */
}

/* General Reset */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f4f4f4; /* Light grey background */
    line-height: 1.6;
}

/* Container for Body Contents */
.container-body {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

/* Carousel Styles */
.carousel-inner img {
    width: 100%;
    height: auto; /* Adjust height for images */
    object-fit: cover; /* Ensure images cover the slide area */
}

/* Carousel Container */
.carousel-container {
    width: 100%; /* Full width of the parent container */
    max-width: 2000px; /* Adjust the max-width as needed */
    margin: 0 auto; /* Center the container horizontally */
    padding: 0; /* Remove padding */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Carousel Styles */
.carousel {
    border-radius: 10px; /* Add border-radius for rounded corners */
    overflow: hidden; /* Hide overflow to ensure rounded corners */
}

/* Slide */
.carousel-item img {
    height: 400px; /* Adjust height as needed */
    object-fit: cover; /* Ensure image covers the carousel area */
}

/* Slide Animation */
@media (max-width: 768px) {
    .carousel-item img {
        height: 250px; /* Adjust height for smaller screens */
    }
}

main {
    margin-left: 30px;  /* Adjust left margin as needed */
    margin-right: 30px; /* Adjust right margin as needed */
}

/* Cards Section Styles */
.container-fluid {
    padding: 0 15px; /* Optional: adjust container padding */
}

.row.gx-4 {
    margin-left: -1.5rem; /* Adjust gutter width */
    margin-right: -1.5rem; /* Adjust gutter width */
}

.col-lg-3 {
    padding-left: 1.5rem; /* Adjust gutter width */
    padding-right: 1.5rem; /* Adjust gutter width */
}

.card {
    border: 1px solid #ddd; /* Light border around the card */
    border-radius: 10px; /* Rounded corners for cards */
    overflow: hidden; /* Hide overflow to ensure rounded corners */
}

.card-img-top {
    height: 200px; /* Adjust height as needed */
    object-fit: cover; /* Ensure image covers the card area */
}

.card-body {
    padding: 1.25rem; /* Padding inside the card */
}

.btn-primary {
    background-color: #007bff; /* Primary button color */
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3; /* Darker color on hover */
    border-color: #004085;
}

/* Custom CSS for cards */
.card {
    margin: 0 auto; /* Center cards */
}
.card-img-top {
    width: 100%; /* Ensure image fills the card width */
    height: auto; /* Maintain aspect ratio */
}

.product-section {
    margin-top: 20px;
}
.product-item {
    text-align: center;
    padding: 10px;
}
.product-image-frame {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}
.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.product-title {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 10px;
}
.product-price {
    font-size: 0.9rem;
    color: #666;
}
.product-item {
    margin-bottom: 1rem; /* Adjust spacing as needed */
}
.product-image-frame img {
    width: 100%; /* Make image responsive */
    height: auto; /* Maintain aspect ratio */
}
.product-title {
    font-size: 1rem; /* Adjust font size as needed */
    text-align: center;
}
.product-price {
    font-size: 1.25rem; /* Adjust font size as needed */
    text-align: center;
}

/* Adjusting the number of product cards per row on different screen sizes */
@media (max-width: 576px) { /* Phones */
    .product-item {
        flex: 1 1 33.333%; /* Show 3 products per row */
        max-width: 33.333%;
    }
}

@media (min-width: 576px) and (max-width: 768px) { /* Tablets */
    .product-item {
        flex: 1 1 33.333%; /* Show 3 products per row */
        max-width: 33.333%;
    }
}

@media (min-width: 768px) and (max-width: 992px) { /* Medium to large screens (e.g., laptops) */
    .product-item {
        flex: 1 1 20%; /* Show 5 products per row */
        max-width: 20%;
    }
}

@media (min-width: 992px) { /* Large screens (e.g., desktops) */
    .product-item {
        flex: 1 1 16.666%; /* Show 6 products per row (adjust as needed) */
        max-width: 16.666%;
    }
}

#uniqueBody {
    background-image: url('../images/3d-car-repair.png');
    background-size: cover; /* This makes sure the image covers the entire body */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}

/* sidebar styles */
.sidebar {
    width: 150px;
    border-right: 1px solid #ddd;
    /* min-height: calc(100vh - 200px); */
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.sidebar-item {
    margin-bottom: 1rem;
}

.sidebar-link {
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.sidebar-link i {
    margin-right: 10px;
}

.sidebar-link:hover {
    background-color: #000;
    color: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-link:active {
    background-color: rgba(247, 246, 246, 0.1);
    box-shadow: inset 0 2px 4px #e0e0e0;
}

.sidebar-link.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.sidebar-link.active i {
    color: #fff;
}

/* second search bar styling codes */
.form-control {
    border-radius: 20px;
    transition: box-shadow 0.3s;
  }

  .form-control:focus {
    box-shadow: 0px 0px 8px rgba(31, 64, 55, 0.5);
  }

  .btn-outline-success {
    border-radius: 20px;
    color: #ffffff;
    border-color: #ffffff;
    transition: background-color 0.3s, border-color 0.3s;
  }

  .btn-outline-success:hover {
    background-color: #ffffff;
    color: #1f4037;
    border-color: #1f4037;
  }

  /* Centered search bar with max-width */
  .search-bar-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }

  .search-bar-container form {
    max-width: 500px;
    width: 100%;
  }

  #searchbtn {
    background: linear-gradient(90deg, #1f4037 0%, #99f2c8 100%);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  }

  .search-bar-container {
    margin-right: 20px;
    margin-left: 20px;
  }
/* search button codes ends here */

/* codes for horizontal line anchor lists */
.horizontal-list-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  
  .horizontal-list {
    display: flex;
    align-items: center;
  }
  
  .horizontal-list-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    margin-right: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    white-space: nowrap; /* Prevents text from wrapping */
    transition: background 0.3s, color 0.3s; /* Smooth transition for background and text color */
  }
  
  .horizontal-list-item:hover,
  .horizontal-list-item.active {
    background: #007bff; /* Default Bootstrap blue */
    color: #fff; /* Text color for the active/hover state */
  }
  
  .horizontal-list-item i {
    font-size: 20px;
    margin-bottom: 5px;
  }
  
  .horizontal-list-item div {
    font-size: 12px; /* Adjust the font size as needed */
    line-height: 1.2;
  }
  
  @media (max-width: 767px) {
    .horizontal-list-item {
      padding: 6px;
      margin-right: 5px;
    }
    .horizontal-list-item i {
      font-size: 18px;
    }
    .horizontal-list-item div {
      font-size: 10px;
    }
  }
  
  @media (min-width: 768px) {
    .horizontal-list-item {
      padding: 10px;
      margin-right: 15px;
    }
    .horizontal-list-item i {
      font-size: 24px;
    }
    .horizontal-list-item div {
      font-size: 14px;
    }
  }
  
  @media (min-width: 992px) {
    .horizontal-list-item {
      padding: 12px;
      margin-right: 20px;
    }
    .horizontal-list-item i {
      font-size: 28px;
    }
    .horizontal-list-item div {
      font-size: 16px;
    }
  }
  
  @media (min-width: 1200px) {
    .horizontal-list-item {
      padding: 14px;
      margin-right: 25px;
    }
    .horizontal-list-item i {
      font-size: 32px;
    }
    .horizontal-list-item div {
      font-size: 18px;
    }
  }