/* =========================================================
   PHARMAS WORLD | Trending Product Grid – Modern Teal Glow
   Color: #019a9a
   ========================================================= */

/* ---------- Grid Container ---------- */
.zsprod-display {
  padding: 80px 20px;
  position: relative;
  width: 100%;
  max-width: 100vw;
  /* Clean, professional off-white gradient */
  background: linear-gradient(180deg, #f8fdfd 0%, #ffffff 100%);
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 70px;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif; /* Your Font Style */
}

/* ---------- Background Ambient Glow ---------- */
.zsprod-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(1, 154, 154, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(1, 154, 154, 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Grid Title ---------- */
.product-title {
  text-align: center;
  font-size: 2rem !important;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 60px;
  /* Gradient Text Effect */
  background: linear-gradient(135deg, #1f2937 30%, #019a9a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

/* Decorative Underline */
.product-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 50px;
  background: #019a9a;
  box-shadow: 0 4px 10px rgba(1, 154, 154, 0.4);
}

/* ---------- Product Grid ---------- */
.zsprod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Product Card ---------- */
.zsprod-item {
  background: #ffffff;
  border-radius: 16px;
  /* Very subtle border for clean look */
  border: 1px solid #e5e7eb;
  overflow: hidden;
  /* Premium soft shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.zsprod-item:hover {
  transform: translateY(-10px);
  border-color: #019a9a;
  box-shadow: 0 20px 50px rgba(1, 154, 154, 0.15);
}

/* ---------- Image Area ---------- */
.zsprod-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  padding: 30px;
  /* Soft Teal Tint Background for image */
  background: radial-gradient(circle, #ffffff 40%, #f0fdfd 100%);
  transition: 0.5s ease;
  border-bottom: 1px solid #f3f4f6;
}

.zsprod-item:hover img {
  transform: scale(1.05);
  background: #ffffff;
}

/* ---------- Product Name ---------- */
.zsprod-item h3 {
  text-align: center;
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #1f2937; /* Dark Grey */
  margin: 15px 15px 5px;
  height: 48px; /* Fixed height for alignment */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s;
}

.zsprod-item:hover h3 {
  color: #019a9a;
}

/* ---------- Price ---------- */
.zsprod-price {
  text-align: center;
  padding-bottom: 25px;
  margin-top: auto; /* Pushes price to bottom */
}

.zsprod-price mark,
.zsprod-price ins,
.zsprod-price span {
  background: none !important;
  text-decoration: none;
}

.zsprod-price-value,
.zsprod-price .amount,
.zsprod-price span {
  font-size: 1.2rem;
  font-weight: 800;
  color: #019a9a !important;
  -webkit-text-fill-color: #019a9a !important;
  font-family: 'Poppins', sans-serif;
}

/* ---------- "Trending" Badge ---------- */
.zsprod-item::after {
  content: "HOT";
  position: absolute;
  top: 15px;
  right: 15px;
  background: #019a9a;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(1, 154, 154, 0.3);
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s ease;
}

.zsprod-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1200px) {
  .zsprod-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .zsprod-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .product-title { font-size: 1.8rem !important; }
}

@media (max-width: 576px) {
  .zsprod-display { padding: 50px 10px; }
  
  .zsprod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-title {
    font-size: 1.4rem !important;
    margin-bottom: 40px;
  }
  
  .zsprod-item {
    border-radius: 12px;
  }
  
  .zsprod-item img {
    height: 130px;
    padding: 15px;
  }
  
  .zsprod-item h3 {
    font-size: 0.85rem !important;
    margin: 10px 8px;
    height: 38px;
  }
  
  .zsprod-price-value,
  .zsprod-price .amount,
  .zsprod-price span {
    font-size: 1rem;
  }
  
  .zsprod-item:hover { transform: translateY(-5px); }
  .zsprod-item::after { display: none; } /* Hide badge on mobile to save space */
}