/* styles.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: "Lato", sans-serif;
  padding: 0;
  margin: 0;
  font-size: 16px;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

.bg-brand-light {
  background-color: #74d474;
}

.bg-brand-dark {
  background-color: #088408;
}

.bg-brand {
  background-color: #48ac48;
}
.text-brand-light {
  color: #74d474;
}
p{
  text-align: justify !important;
}
.text-brand-dark {
  color: #088408;
}

.text-brand {
  color: #48ac48;
}

.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;
}

/* 👇 Global font styles for headings */
h1,
h2,
h3,
h4 {
  font-family: "Cairo", sans-serif;
}

h5,
h6,
p {
  font-family: "Lato", sans-serif;
}

.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: 100%;
  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: 500px;
}
#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;
}
