/* styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: "Barlow", sans-serif;
  padding: 0;
  margin: 0;
  font-size: 16px;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

/* .brand {
  color: #48ac48;
} */
.hover\:bg-brand-dark:hover {
  background-color: #1e4b2a;
}
.hover\:text-brand-dark:hover {
  color: #1e4b2a;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 1rem;
  font-weight: 600;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

.animate-zoomIn {
  animation: zoomIn 5s ease-in-out infinite alternate;
}
@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .animate-spin-slow {
    animation: spin-slow 12s linear infinite;
  }
/* 👇 Global font styles for headings */
.swiper-button-prev:after,
.swiper-button-next:after {
  color: #48ac48;
}
.category-product-swiper-controls .swiper-button-prev:after,
.category-product-swiper-controls .swiper-button-next:after,
.sector-product-swiper-controls .swiper-button-prev:after,
.sector-product-swiper-controls .swiper-button-next:after {
  color: #fff;
}

/* base transition */
.transition-all-fast {
  transition: all 0.25s ease;
}

/* Top bar hide */
.topbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Sticky header state (applied when body has .header-sticky) */
header.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: white;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Optional: smooth top bar transition */
.top-bar {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.rotated {
  transform: rotate(180deg);
}

/* product-details slider  */

#imageContainer .swiper {
  width: 100%;
  height: 100%;
}

#imageContainer .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

#imageContainer .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#imageContainer .swiper {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

#imageContainer .swiper-slide {
  background-size: cover;
  background-position: center;
}

#imageContainer .mySwiper2 {
  height: 80%;
  width: 100%;
}

#imageContainer .mySwiper {
  height: 20%;
  box-sizing: border-box;
  padding: 10px 0;
}

#imageContainer .mySwiper .swiper-slide {
  height: 100%;
  opacity: 0.4 !important;
  transform: none !important;
}

#imageContainer .mySwiper .swiper-slide-thumb-active {
  opacity: 1 !important;
}
#imageContainer .mySwiper2 .swiper-slide img {
  max-height: 400px;
}
#imageContainer .mySwiper .swiper-slide img {
  height: 100px;
  width: 100px;
}
.swiper-button-next,
.swiper-rtl .swiper-button-prev,
.swiper-button-prev,
.swiper-rtl .swiper-button-next {
  background: #f7f7f7;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
}

 .active {
    color: #2EAD04 !important;
    font-weight: 600;
    position: relative;
  }
  .active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2EAD04;
    border-radius: 2px;
  }