@tailwind base;
@tailwind components;
@tailwind utilities;

/* For Info section on Home page */
.image-container {
    height: 400px;  
    overflow: hidden; 
  }
  
  .equal-height-img {
    height: 100%;  
    width: 100%;  
    object-fit: cover;
  }


  .feature-product-area .carousel-container {
    position: relative;
    overflow: hidden;
  }
  
  .feature-product-area .carousel-items {
    display: flex;
    transition: transform 0.3s ease-in-out;
  }
  
  .feature-product-area .carousel-item {
    width: 50%; 
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .feature-product-area .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
  }
  
  .feature-product-area .prev-button {
    left: 10px;
  }
  
  .feature-product-area .next-button {
    right: 10px;
  }


  .product-scroll-container-wrapper {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .product-scroll-container {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow: hidden; 
    width: 100%; 
  }

  /* .product {
    flex-shrink: 0;
    width: 250px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  } */

  .scroll-button {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }


  .scroll-button.left {
    left: 10px;
  }
  
  .scroll-button.right {
    right: 10px;
  }
  
  .scroll-button i {
    font-size: 24px;
  }


.product-scroll-container-wrapper {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.product-scroll-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  white-space: nowrap;
  padding: 10px;
  scrollbar-width: none;
}

.product-scroll-container::-webkit-scrollbar {
  display: none;
}


.thumb {
  width: 100%; 
  height: auto;
  max-width: 250px; 
  max-height: 250px; 
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px; 
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

.scroll-button.left {
  left: 0;
}

.scroll-button.right {
  right: 0;
}

.search-element {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%; 
  left: 0;
  background-color: white;
  width: 100%;
  border: 1px solid #ddd;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000; 
}

.suggestions-dropdown li {
  padding: 8px;
  cursor: pointer;
}

.suggestions-dropdown li:hover {
  background-color: #f0f0f0;
}




.offcanvas {
    position: fixed;
    top: 0;
    left: 0; /* Start from the left */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 999;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out; 
  }
  
  .offcanvas.open {
    transform: translateX(0); 
  }
  
  .offcanvas-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
  }
  
  .offcanvas-menu {
    list-style-type: none;
    padding: 0;
  }
  
  .offcanvas-menu li {
    margin: 10px 0;
  }
  
  .offcanvas-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
  }
  
  .offcanvas-social {
    margin-top: 30px;
  }
  
  .offcanvas-social ul {
    list-style: none;
    padding: 0;
  }
  
  .offcanvas-social ul li {
    display: inline;
    margin-right: 10px;
  }
  
  .offcanvas-social ul li a {
    color: #333;
    font-size: 20px;
  }
  

  .visual-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    background-color: white; 
    border-radius: 50%;  
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: absolute;  
    bottom: 10px;
    right: 10px;
}

.visual-search-icon img {
    width: 24px;  
    height: 24px;
}

.shop-link:hover {
  background-color: #03a9f4 !important;
}

/* Initially hide the navigation buttons */
.hidden-nav-btn {
  display: none;
}

/* Show the navigation buttons when hovering over the slideshow container */
.slideshow-container:hover .hidden-nav-btn {
  display: block;
}


