/* Root Variables */
:root {
    --font-primary: Arial, sans-serif;
    --bg-body: #008170; /* Teal Green */
    --text-primary: #FAF9F6; /* Off White */
    --bg-header-footer: #0F0F0F; /* Dark Black */
    --highlight: #008170; /* Teal Green */
    --highlight-dark: #232D3F; /* Dark Blue-Gray (for darker highlights) */
    --link-hover: #005B41; /* Deep Green */
    --border-light: #005B41; /* Deep Green */
    --white: #FFFFFF;
    --shadow: rgba(15, 15, 15, 0.4); /* Black shadow */
    --shadow-hover: rgba(15, 15, 15, 0.4); /* Black shadow hover */
}

/* Thumbnail for product detail slider */
/* Keep everything inside the image gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Thumbnail Slider Container */
.thumbnail-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    width: 100%;
    max-width: 320px; /* Adjust based on layout */
    margin-top: 10px;
}

/* Wrapper for the scrollable area */
.thumbnails-wrapper {
    overflow: hidden;
    width: 250px; /* Controls how many thumbnails are visible */
    border-radius: 5px; /* Matches your existing styles */
    padding: 4px 0px; /* Add some space inside the box */
}

/* Thumbnail Strip (Inner Sliding Area) */
.thumbnails {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

/* Individual Thumbnails */
.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: var(--highlight);
}

/* Navigation Arrows */
.thumbnail-prev, .thumbnail-next {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.thumbnail-prev:hover, .thumbnail-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.thumbnail-prev {
    left: 0;
}

.thumbnail-next {
    right: 0;
}

.breadcrumb {
    font-size: 16px;
    margin: 20px 0;  /* Adds equal spacing above and below */
    
}

.breadcrumb a {
    text-decoration: none;
    color: var(--bg-header-footer);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--highlight-dark);
    font-weight: bold;
}

.breadcrumb-container {
    display: flex;
    justify-content: flex-start; /* Aligns to the left */
    margin: 10px; /* Ensures equal spacing */
}


 
h1 {
  color: var(--bg-header-footer);
}

h3 {
  color: var(--bg-header-footer);
}

/* Heading and Paragraph Colors */
h2 {
  color: var(--bg-header-footer);
}

p {
  color: var(--text-primary);
}

main h1 {
    text-align: center;
}

main {
  width: 70%;
  margin: 0 auto;
  text-align: left;
  flex: 1;
}

/* Homepage-specific styles */
.home-page {
  width: 100%;
  margin: 0;
  text-align: center;
}

.home-page h1 {
  text-align: center;
}

.banner-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Adjust spacing between banners */
    overflow: hidden; /* Ensures images don’t overflow */
    margin-top: 42px; /* Added gap between header and banner */
}

.banner-container img {
    width: 30%; /* Adjust width as needed */
    height: auto;
}

/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* Wrapper for Sticky Footer */
.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--text-primary);
}

.search-bar button {
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--highlight);
    color: var(--white);
    border: none;
    cursor: pointer;
}

/* Header Styles */
header {
    background-color: var(--bg-header-footer);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between; /* Space between logo, nav, and search */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
}

/* Logo and Navigation Section */
.logo-nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between logo and nav */
    flex-grow: 1; /* Take up available space */
    justify-content: flex-start; /* Align the logo and nav to the left */
}

.logo img {
    height: 70px;
}

nav {
    display: flex;
    justify-content: center; /* Center nav */
    flex-grow: 2; /* Make nav take up more space to be centered */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: bold;
}

/* Dropdown */
.categories-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-header-footer);
    box-shadow: 0 8px 16px var(--shadow);
    flex-direction: column;
    padding: 10px 0;
    min-width: 160px;
    z-index: 10;
}

.categories:hover .categories-dropdown-content {
    display: flex;
}

.categories-dropdown-content a {
    padding: 10px 16px;
    text-decoration: none;
    color: --white;
    display: block;
    transition: background-color 0.3s ease;
}

.categories-dropdown-content a:hover {
    background-color: var(--highlight);
    color: var(--white);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: auto;
}

/* Category Grid */
.category-grid {
    padding: 20px;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.category-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 240px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.card-text {
    margin-top: auto; /* Pushes text to bottom */
}

.category-card h3 {
    margin: 10px 0 5px;
}

.category-card p {
    color: var(--highlight);
    margin: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    row-gap: 20px;
    padding: 20px;
    align-items: start;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--text-primary);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px var(--shadow);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center; /* Ensures everything is centered */
    width: 200px;  /* Set a fixed width */
    height: 290px; /* Set a fixed height */
}

.product-card img {
    
    width: 100%;
    height: 120px;
     object-fit: cover;  /*Ensures the image fills the area without distortion */
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: var(--white); /* Optional: adds a background for transparent images */
}

.product-card h3 {
    margin: 10px 0 5px;
    height: 65px; /* Set a fixed height */
    overflow: hidden; /* Prevents text from expanding */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limits title to 2 lines */
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}


.product-card p {
    color: var(--highlight-dark);
    font-weight: bold;
    margin-bottom: 5px; /* Adds spacing below the text */
    
}

.product-card a {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--highlight-dark);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-card a:hover {
    background-color: var(--highlight-dark);
    transform: translateY(-3px);
}

/* Product Detail Pge */
.contact-buttons {
    margin: 20px 0;
}

.contact-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.contact-buttons a.email-button {
    background-color: #007BFF; /* Email blue */
}

.contact-buttons a:hover {
    opacity: 0.8;
}

/* Footer Styles */
footer {
    background-color: var(--bg-header-footer);
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    min-height: 150px;  /* Adjust height as needed */
    max-height: 160px;  /* Adjust height as needed */
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.footer-column h3 {
    margin-bottom: 10px;
    color: var(--highlight);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 5px 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-primary);
}

/* Global Rule */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Links Hover */
nav ul li a:hover,
.footer-column ul li a:hover {
    color: var(--highlight);
   
}

/* Centering Content */
.wrapper, .header-container, .footer-container, .category-grid, .grid-container, .product-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Us Page: Form Alignment */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-bottom: 40px;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: var(--link-hover);
  color: var(--white);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--highlight-dark);
  color: var(--white);
  border-color: var(--highlight-dark);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--highlight);
    background-color: var(--white);
    color: var(--highlight-dark);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.pagination button.active,
.pagination button:hover {
    background-color: var(--highlight-dark);
    color: var(--white);
    box-shadow: 0 2px 5px var(--shadow-hover);
}


/* Product Detail Main Wrapper */
main.product-detail {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Detail Section */
main.product-detail .product-detail {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* Image Gallery */
main.product-detail .image-gallery {
    flex: 1;
    max-width: 500px;
}

main.product-detail #main-image {
    width: 100%;
    height: 300px; /* Fixed height */
    object-fit: contain; /* Ensures image fits without distortion */
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow);
    background-color: var(--white); /* Optional: adds a background for transparent images */
}


main.product-detail .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

main.product-detail .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

main.product-detail .thumbnail:hover {
    border-color: var(--highlight);
}

/* Product Info */
main.product-detail .product-info {
    flex: 1;
}

main.product-detail .product-info h1 {
    margin-bottom: 10px;
}

main.product-detail .product-info .price {
    font-size: 1.5rem;
    color: var(--highlight-dark);
    font-weight: bold;
    margin-bottom: 15px;
}

main.product-detail .product-info .description {
    margin-bottom: 20px;
    line-height: 1.6;
}

main.product-detail .specifications {
    list-style: none;
    padding: 0;
}

main.product-detail .specifications li {
    margin-bottom: 8px;
}

/* Product Category & ID */
.product-meta {
    display: flex;
    gap: 20px; /* Adds spacing between Product ID & Category */
    font-size: 16px;
    margin-bottom: 10px;
}

.product-category a {
    text-decoration: none;
    color: var(--highlight-dark); /* Bootstrap blue, you can change it */
    font-weight: bold;
}

.product-category a:hover {
    text-decoration: underline;
}


/* Similar Products Section */
main.product-detail .similar-products {
    position: relative;
}

main.product-detail .similar-products h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--highlight);
}

main.product-detail .similar-products-container {
    display: flex;
    gap: 20px;
    overflow: hidden; /* ✅ Removes scrollbar completely */
    white-space: nowrap; /* ✅ Prevents wrapping */
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

main.product-detail .similar-product-card {
    min-width: 200px;
    background-color: var(--white);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px var(--shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

main.product-detail .similar-product-card:hover {
    transform: translateY(-5px);
}

main.product-detail .similar-product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
}

main.product-detail .similar-product-card h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

main.product-detail .similar-product-card p {
    color: var(--highlight-dark);
    font-weight: bold;
}

/* Arrows */
main.product-detail .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--highlight);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow);
    transition: background-color 0.3s ease;
}

main.product-detail .arrow:hover {
    background-color: var(--highlight-dark);
}

main.product-detail .arrow.left {
    left: -20px;
}

main.product-detail .arrow.right {
    right: -20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Force grid layout */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        width: 100% !important;
    }
    
    .breadcrumb-container {
        display: none;
    }
    
        .breadcrumb {
        display: none;
    }
    
    .product-video {
        width: 100%;
        max-width: 400px; /* Adjust if needed */
        margin: 0 auto;
    }
    
    .product-video iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Ensures proper video scaling */
        display: block;
    }

    
    /* Ensure product cards fit inside grid */
    .product-card {
        width: 160px;  /* Set a fixed width */
        height: 200px; /* Set a fixed height */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }  

    /* Shrink product images */
    .product-card img {
        width: 135px ;
        height: 85px;
        margin-bottom: 4px;
    }
    
    /* Adjust product title */
    .product-card h3 {
        font-size: 0.85rem;
        height: 32px; /* Fixed height (adjust as needed) */
        margin: 6px 0 4px;
        text-align: center;
        overflow: hidden; /* Prevents text from expanding */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limits to 2 lines */
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
    }
    

    /* Style the "View Details" link */
    .product-card a {
        font-size: 0.8rem;
        padding: 4px 8px;
        display: inline-block;
        margin-top: 5px;
    }   
    
    main {
      width: 95%;
      margin: 0 auto;
      text-align: left;
      flex: 1;
    }

    header {
       /* padding: 5px 0;  Reduce top and bottom padding to make the header smaller */
        height: auto;
    }

    /* Header Container */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .logo-nav {
        width: 100%;
        justify-content: flex-start;  /* Align logo and nav to the left */
        gap: 5px;
      /*  margin-left: -8px;  Move the logo left a bit */
    }
    

    /* Navigation */
        nav ul {
        display: flex;
        gap: 1px;
        padding: 0px;
        margin: 0;
        list-style: none;
        
        border-radius: 12px;
        align-items: center;
        margin-left: 0; /* Remove any extra margin */
        flex-wrap: nowrap; /* Prevent wrapping to the next row */
    }

    nav ul li:first-child {
        display: none; /* Hide Home */
    }
    
    nav ul li {
        margin: 4px; /* Remove margin between items */
    }

    nav ul li a {
        text-decoration: none;
        font-size: 15px;
        padding: 5px; /* Add a little padding around the text */
    }

    /* Search Bar Below */
    .search-bar {
      width: 100%;
      display: flex ;
      justify-content: center;  /* Center content horizontally */
      align-items: center;      /* Center content vertically */
      background: var(--white);


      border: 1px solid #ccc;
      box-sizing: border-box;
    }

    .search-bar input[type="text"] {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-size: 15px;
      padding: 1px;
      border-radius: 25px;
      text-align: center;
    }

    .search-bar button {
        display: none;
    }
    
    .contact-form {
        max-width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .footer {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1px; /* Slight gap between columns */
      padding: 5px;
      margin: 0;
    }
    
    .footer-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      width: 100%; /* Keep within bounds */
      margin: 0;
      padding: 0;
    }
    
    .footer-column {
      flex: 0 0 calc(33.33% - 0px); /* 3 columns per row */
      box-sizing: border-box; /* Ensures padding/margin don't break layout */
      text-align: center;
      margin: 0;
      padding: 5px 0;
    }
    
    .footer-column h3 {
      margin-bottom: 5px;
      font-size: 14px;
    }
    
    .footer-column a {
      display: block;
      margin-bottom: 3px;
      font-size: 13px;
      text-decoration: none;
    }
    
    .footer-column ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .footer-column ul li {
      margin-bottom: 3px;
    }

    
    main.product-detail .product-detail {
        flex-direction: column;
        align-items: center;
    }

    main.product-detail .similar-products-container {
        gap: 10px;
    }

    main.product-detail .arrow {
        display: none;
    }
    
    main.product-detail #main-image {
    width: 100%;
    height: 200px; /* Fixed height */
    }
    
  .category-grid {
    padding: 10px;
  }

  .grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .category-card {
    width: 45%; /* Two cards per row */
    height: 180px; /* Fixed height */
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
  }

  .category-card img {
    width: 80%;
    height: 120px; /* Fixed image height */
    object-fit: cover; /* Ensures image fits without distortion */
    border-radius: 5px;
  }

  .category-card h3 {
    font-size: 14px;
    margin: 5px 0 0 0;
  }

  .category-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
  }
    
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        padding: 0 10px;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-bar button {
        width: 100%;
    }
}
