/* ---------- Products page styles (after common style.css) ---------- */
/* basic background colour, most resets and variables live in style.css */
body {
  background-color: white;
  overflow-x: hidden;
}

/* HERO SECTION */
#products-hero {
  position: relative;
  top: -178px;
  height: min(65vh, 600px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 991px) {
  #products-hero {
    top: 0;
    margin-top: 0;
  }
}

.products-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("Aravali Cattle Feed/Ex Images/main2.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20vh;
  background: linear-gradient(
    /* same stops that were used previously */ rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.products-hero-text-box {
  border: 1.5px solid var(--green);
  background-color: rgba(0, 0, 0, 0.45);
  padding: 10px 30px;
  text-align: center;
}

.products-hero-text-box h1 {
  color: white;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 54px);
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* CATEGORY PILLS */
.pills-section {
  margin-top: -30px;
}

.category-pill {
  background-color: transparent;
  border: 1.5px solid var(--green);
  border-radius: 50px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.category-pill.active,
.category-pill:hover {
  background-color: var(--green);
  color: white;
}

/* SECTION TITLES */
.products-section-heading h6 {
  color: #799d79;
  font-size: 13px;
  letter-spacing: 2.5px;
}
.products-section-heading h1 {
  font-size: clamp(30px, 6vw, 54px);
  font-weight: 700;
  margin: 0;
}

/* PRODUCT CARDS */
.product-page-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  background-color: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-top-green {
  background-color: #2b6e37;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-bag-img {
  height: 210px;
  width: auto;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.product-page-card:hover .product-bag-img {
  transform: scale(1.05);
}

.cow-silhouette-bg {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  height: 50%;
  width: auto;
  opacity: 0.15;
  z-index: 1;
}

.card-bottom-white {
  padding: 22px;
  background-color: white;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-family: var(--font-family);
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.product-category {
  font-size: 13px;
  color: #777;
  font-weight: 500;
  margin-bottom: auto;
}

.product-category .text-green {
  color: var(--green);
}

.contact-now-btn {
  background-color: #2b6e37;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

.contact-now-btn:hover {
  background-color: #1e5227;
}

.more-btn {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 500;
  font-family: var(--font-family);
  text-align: center;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  background-color: var(--green);
  color: white;
  line-height: 1.2;
  padding: 6px 0;
  width: clamp(160px, 20%, 250px);
  transition: all 0.5s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
}

.more-btn:hover {
  background-color: white;
  color: var(--green);
}

/* animate filtered items */
.fade-up-trig[data-category] {
  transition: opacity 0.3s ease;
}

/* responsive tweaks */
@media (max-width: 767px) {
  .card-top-green {
    height: 200px;
  }
  .product-bag-img {
    height: 150px;
  }
}
@media (max-width: 575px) {
  .card-top-green {
    height: 180px;
  }
}
