
  /* Slider container with responsive height */
  .aryslide-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #000;
  }

  /* Shop Now button */
.aryslide-shop-now {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--theme-color-first-active);
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
      box-shadow: 0 2px 5px var(--theme-color-second-active);
  }

   /* Responsive adjustments */
  @media (max-width: 768px) {
    .aryslide-shop-now {
      font-size: 12px;
      padding: 5px 10px;
    }
  }

  .aryslide-shop-now:hover {
    background: var(--theme-color-first-active);
  }

  /* Slide container */
  .aryslide-slide-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }

  /* Each slide */
  .aryslide-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
  }

.aryslide-slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


  /* Overlay */
  .aryslide-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    border-radius: 3px;
    font-size: 16px;
  }

  .aryslide-overlay a {
    color: #fff;
    text-decoration: none;
  }

  /* Previous and Next buttons */
  .aryslide-prev,
  .aryslide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    border-radius: 3px;
  }

  .aryslide-prev {
    left: 10px;
  }

  .aryslide-next {
    right: 10px;
  }

  /* Thumbnail navigation */
  .aryslide-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }

  .aryslide-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: opacity 0.3s, border-color 0.3s;
  }

  .aryslide-thumbnail:hover,
  .aryslide-thumbnail.active {
    opacity: 1;
    border-color: var(--theme-color-second-active);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .aryslide-overlay {
      font-size: 14px;
    }
  }



.aryslide-button-container {
  display: flex;
  flex-direction: column; /* Vertical stacking */
  gap: 10px;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.aryslide-button {
  flex: 0 0 auto;
  min-width: fit-content;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: var(--theme-color-first-active);
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}



.aryslide-button:hover {
  background-color: var(--theme-color-second-active);
}

/* provide spaces */

#FirstSearchresults {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.search-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.search-item:hover {
    background: #f8f9fa;
}
.buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.buy-btn, .view-btn {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.buy-btn {
    background-color: var(--theme-color-first-active); /* Green */
    color: white;
}

.view-btn {
    background-color: var(--theme-color-second-active); /* Blue */
    color: white;
}



/* ...existing code... */

/* Slider container with responsive height */
:root { --aryslide-height: 420px; }

.aryslide-slider {
  position: relative;
  width: 100%;
  height: var(--aryslide-height); /* fixed visual height */
  max-height: 80vh; /* optional cap to viewport */
  overflow: hidden;
  background: #000;
}

/* Shop Now button */
.aryslide-shop-now {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--theme-color-first-active);
  color: white;
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  box-shadow: 0 2px 5px var(--theme-color-second-active);
}

/* Responsive adjustments for Shop Now */
@media (max-width: 768px) {
  .aryslide-shop-now {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* Slide container */
.aryslide-slide-container {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

/* Each slide */
.aryslide-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

/* Images fill the slide box (crop to fit) */
.aryslide-slide img,
.aryslide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fill the box and crop if needed */
  object-position: center;  /* center the crop */
  display: block;
}

/* Optional placeholder inside slide */
.aryslide-slide .placeholder {
  position: absolute;
  inset: 0;
  background: #f3f3f3;
  display: block;
}

/* When full image has loaded, mark slide as loaded (hide placeholder via JS/CSS) */
.aryslide-slide.loaded .placeholder {
  display: none;
}

/* Overlay */
.aryslide-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  border-radius: 3px;
  font-size: 16px;
}

.aryslide-overlay a {
  color: #fff;
  text-decoration: none;
}

/* Previous and Next buttons */
.aryslide-prev,
.aryslide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1;
  border-radius: 3px;
}

.aryslide-prev { left: 10px; }
.aryslide-next { right: 10px; }

/* Thumbnail navigation */
.aryslide-thumbnails {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.aryslide-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: opacity 0.3s, border-color 0.3s;
}

.aryslide-thumbnail:hover,
.aryslide-thumbnail.active {
  opacity: 1;
  border-color: var(--theme-color-second-active);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .aryslide-overlay {
    font-size: 14px;
  }
}

/* Button container and utility styles (kept from existing file) */
.aryslide-button-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.aryslide-button {
  flex: 0 0 auto;
  min-width: fit-content;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  background-color: var(--theme-color-first-active);
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
}
.aryslide-button:hover {
  background-color: var(--theme-color-second-active);
}

/* Search results and item styles (kept) */
#FirstSearchresults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.search-link { text-decoration: none; color: inherit; display: block; }
.search-item { padding: 10px; border-bottom: 1px solid #ddd; cursor: pointer; transition: background 0.3s; }
.search-item:hover { background: #f8f9fa; }
.buttons { display: flex; gap: 10px; margin-top: 10px; }
.buy-btn, .view-btn { padding: 8px 12px; border: none; cursor: pointer; font-size: 14px; border-radius: 5px; }
.buy-btn { background-color: var(--theme-color-first-active); color: white; }
.view-btn { background-color: var(--theme-color-second-active); color: white; }



