body{
    overflow-x: hidden;
}
/* ========================= */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center;
}

.modal-content {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: white;
  width: 30%;
  position:absolute;
  top: 29px;
  right: 10px;
}

.modal-content.success {
  background: linear-gradient(135deg, #17702c, #1d418d);
}

.modal-content.error {
  background: linear-gradient(135deg, #751e27, #961b27);
}

.close-btn {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

  /* ========================== */
.hpgrid {
  width: 100%;
  min-height: 100vh;
  position: relative;
  background-color: white;
}
h2{
  font-size: x-large;
}
.layout-container {
  display: flex;
  flex-wrap: nowrap;
}

/* Main content - 80% */
.main-content {
  width: 100%;
  transition: all 0.3s ease;
}
.main-content.full-width {
  width: 100%;
}

/* ------------------------------------- */
.custom-carousel {
    position: relative;
    overflow: hidden;
    width: 98%;
    box-shadow: rgb(0 0 0 / 33%) 0px 5px 15px;
    border-radius: 12px;
    margin: auto;
    margin-top: 12px;
}
.carousel-wrapper {
  display: flex;
  width: 100%;
 }
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
 }
.carousel-slide img {
  /* width: 100%; */
  height: auto;
  display: block;
  object-fit: cover;
  margin: auto;
}
/* Base styles */
.info-section {
   background:#0e3b1f;
  padding-top: 23px;
  margin-top: 15px;
}
.info-section:hover{
  background-color: var(--primary-color);
}
.info-container {
  max-width: 1200px;
  margin: 0 auto;
}
.info-heading {
  font-size: x-large;
  color: white;
  text-align: center;
  text-transform: capitalize;
  position: relative;
}
.info-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #00a86b;
  margin: 0.5rem auto 0;
  border-radius: 4px;
}
.info-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
/* Image container */
.info-image-wrapper {
  flex: 1 1 350px;
  text-align: center;
}
.info-image {
  max-width: 80%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin: auto;
}
/* Text content */
.info-text-wrapper {
  flex: 1 1 500px;
}

.info-text {
    font-size: 15px;
    line-height: 30px;
    color:rgb(247, 247, 247);
    margin-bottom: 1rem;
    text-align: justify;
}
.info-text1{
      font-size: 13px;
    line-height: 30px;
    color:rgb(247, 247, 247);
    margin-bottom: 1rem;
    text-align: justify;
}
.slider-card{
    width: 30%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.slider-container {
  display: flex;
  align-items: center; 
  justify-content: center; 
  position: relative;
}

.cards-container {
  display: flex;
  overflow: hidden;
  width: 70%;
  justify-content: space-between;
  transition: transform 0.5s ease-in-out;
}

.card {
  width: 30%;
  height: 200px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn {
  position: absolute;
  top: 50%;
  background-color: #6c5ce7;
  border: none;
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1;
}

.prev {
  left: -50px;
}
.next {
  right: -50px;
}
.nav-btn:hover {
  background-color: #a29bfe;
}
.card-img-top{
    width: 100%;
}
#productTrack{
    display: flex;
}
/* agriclinic products  */
.agriclinic-section {
  padding: 40px 0;
  background: white;
}
 
.section-title {
  font-size: 24px;
 }

/* =======================================================
ageiclinic products
======================================================= */
.sp-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  align-items: stretch;  /* make all cards same height */
}

.sp-slider-card {
  flex: 0 0 auto;
  width: 235px;
  scroll-snap-align: start;
  display: flex;         /* so child stretches */
}
.pro-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 27%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #9e9e9e61;
  flex: 1;               /* stretch to same height */
}
.card-img-top {
  width: 50%;
  height: 146px;
  object-fit: cover;
  margin: auto;
}


.badge.discount-badge {
  position: absolute;
  top: 10px;
  left: 5px;
  background: repeating-linear-gradient(45deg, var(--youtube-color), var(--bs-warning) 100px);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: dotted;
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;          /* make body fill remaining height */
}
.card-title2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  color: rgb(230, 224, 199);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.sale-price {
  color: black;
  font-weight: 600;
}

.original-price {
  color: #888;
  font-size: 14px;
}

.btn-view {
  margin-top: auto;      /* always stick at bottom */
  padding: 3px;
  font-size: 14px;
  background: rgb(2, 59, 2);
  color: white;
  text-align: center;
  border-radius: 20px;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: 1px double #03a9f45c;
  box-shadow: rgb(0 0 0 / 8%) 0px 19px 38px,
              rgb(0 0 0 / 11%) 0px 15px 12px;
}
.btn-view:hover {
  background: #20794f;
  color: white;
}

/* Navigation buttons */
.sp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #ccc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sp-nav.prev {
  left: -10px;
}

.sp-nav.next {
  right: -10px;
}
/* --------------------------------------------- */
/* Brans collobrations */
.brands-section {
  background-color:white;
  padding: 5px 16px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin-top: 30px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
/* Headings */
.section-title {
  text-align: center;
  font-size: x-large;
  color: black;
}
.category-block {
  margin-bottom: 20px;
}
.category-title {
    font-size: 19px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--footer-bg);
}
/* Grid Layout */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  justify-items: center;
}
/* Logo Card */
.logo-card {
    background-color: #fff;
    border-radius: 3px;
    padding: 26px;
     transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 67px;
}
.logo-card:hover {
  transform: scale(1.05);
  background-color: #cdece5;
}
/* Logo Image */
.brand-logo {
  max-width: 69%;
  max-height: 80px;
  object-fit: contain;
  margin: auto;
}
/* ------------------------------------ */
/* rating & review */
.reviews {
  padding: 30px 20px;
  background-color: #182a4f;
   margin: auto;
}

.reviews h2.hedding {
  font-size: x-large;
  margin-bottom: 10px;
  color: white;
}
.rating {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 69%;
  margin: auto;
}
.review-stat {
  flex: 1 1 300px;
  padding: 10px;
  text-align: center;
}
.review-stat-inside h1 {
  margin: 0;
  font-size: 22px;
  color: var(--twitter-color);
}
.review-stat-inside i.material-icons {
  color: #f5a623;
  font-size: 1.5em;
}
.review-bar-div {
  flex: 1 1 300px;
  padding: 10px;
}
.review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px;
  gap: 10px;
}

.review-bar p {
  margin: 0;
  font-size: 0.9em;
}

.rate-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 25px;
  height: 12px;
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.rate-fill {
  background-color: #007b5e;
  height: 100%;
  display: block;
  border-radius: 25px;
  transition: width 0.5s ease-in-out;
}


.rate-fill {
  display: block;
  height: 100%;
  background: #4caf50;
  width: 0;
  transition: width 1s ease;
}

/* User Reviews Section */
.user-review {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.review-sec {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  flex: 1 1 300px;
}

.name-letter {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.review-sec i.material-icons {
  color: #f5a623;
  font-size: 1em;
}

.review-sec .date {
  font-size: 0.7em;
  color: gray;
}

.review-btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  font-size: 0.9em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: auto;
}
.d-none {
  display: none !important;
}
/* ------------------------ */
.product-track-wrapper {
   position: relative;
}

.product-track {
  display: flex;
  animation: scroll-left 30s linear infinite;
  width: max-content;
}

.slider-card {
  flex: 0 0 auto;
  width: 7%;
  margin-right: 1rem;
}

.card-link {
  text-decoration: none;
}

.product-card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: scale(1.02);
}

.product-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.product-info {
  padding: 1rem;
  text-align: center;
}
.product-card {
  position: relative;
  overflow: hidden;
}
.product-img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Initially hide the product-info overlay */
.product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(40, 192, 154);
  color: #fff;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show name on hover */
.product-card:hover .product-info {
    opacity: 1;
}

/* Optional: zoom image on hover for effect */
.product-card:hover .product-img {
    transform: scale(1.05);
}
/* Auto-scrolling keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ======================================================== */
.events-track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
}

.event-card {
  min-width: 300px;
  max-width: 320px;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  background-image: url('https://res.cloudinary.com/dm71xhdxd/image/upload/v1755171742/dsh/home/91345_jvxy6i.jpg');
  background-size: cover;        
  background-repeat: no-repeat;   
  background-attachment: fixed;  
  background-position: center; 
    transform: scale(1.05);
 }

.event-card:hover {
  transform: scale(1.05);
}
.card-data{
  color: white;
    font-size: 14px;
    margin: auto;
    text-align: center;
    padding-top: 23px;
}
 
.event-card-body {
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
  position: absolute;
  bottom: 0;
  width: 100%;
  font-size: 0.9rem; 
}

.modal-dialog{
    background-image: url('https://res.cloudinary.com/dm71xhdxd/image/upload/v1755171742/dsh/home/91345_jvxy6i.jpg');
  background-size: cover;        
  background-repeat: no-repeat;   
  background-attachment: fixed;  
  background-position: center; 
    transform: scale(1.05);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}
 

/* ---------------------------------------------------------- */
 
/* Responsive */
@media (max-width: 768px) {
  .hpgrid
 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: aliceblue;
}

  .rate-bar {
    width: 100%;
  }

  .review-sec {
    flex-direction: column;
  }

  .name-letter {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .review-btn {
    width: 90%;
    font-size: 1rem;
  }
    .events-track {
    animation: scroll 20s linear infinite;
  }
  .event-card {
    min-width: 250px;
    height: 200px;
  }
  
}

@media (max-width: 480px) {
  .custom-carousel {
    max-height: 200px;
    margin-top: 1rem;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 2px solid lightgrey; 
  }
    .info-text {
    font-size: 0.95rem;
  }

  .info-main {
    gap: 1rem;
  }

  .info-section {
    padding: 1rem;
  }
  .sp-slider-card {
    width: 48%;
  }
  .product-title {
    font-size: 0.9rem;
  }
  .logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(129px, 2fr));
    gap: 4px;
    justify-items: center;
}
.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
 }
   .event-card {
    min-width: 200px;
    height: 180px;
  }
}


/* Responsive for tablet & mobile */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }


  .main-content {
    width: 100%;
  }
  .custom-carousel {
    max-height: 300px;
  }
  .info-main {
    flex-direction: column;
    padding: 0.5rem;
  }
    .info-main {
    flex-direction: column;
    padding: 1.5rem;
  }

  .info-heading {
    font-size: 22px;
  }
  .sp-slider-card {
    width:48%;
  }
  .slider-card {
    width: 70vw;
  }
  .info-image-wrapper {
  flex: 1 1 222px;
  text-align: center;
}

}
@media (min-width: 769px) and (max-width: 1199px) {
  .main-content {
    padding-top: 134px;
}
} 