@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --white-color: #fff;
  --black-color: #000;
  --primary-color: #EE0202;
  --secondary-color: #4d81db;
  --bg-light: #f8f8f8;
  --text-gray: #555;
  --section-bg: #fafafa;
  --card-shadow: rgba(0, 0, 0, 0.1);
  --transition-fast: 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-light);
  color: var(--black-color);
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* ===============================
   Banner Section
=============================== */
.banner {
  width: 100%;
  height: 420px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
              url('../images/products/IMG-20250903-WA0004.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-align: center;
  text-shadow: 0 3px 10px rgba(0,0,0,0.8);
  margin-bottom: 40px;
  border-bottom: 4px solid var(--primary-color);
}

.banner h1 {
  font-size: 2rem;
  font-weight: 700;
  padding: 0 15px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .banner {
    height: 280px;
  }
  .banner h1 {
    font-size: 1.3rem;
  }
}

/* ===============================
   Filter Container
=============================== */
.filter_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px auto 50px;
  max-width: 1200px;
  padding: 0 20px;
}

.filter_container select {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: var(--white-color);
  color: var(--black-color);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.filter_container select:hover,
.filter_container select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(238, 2, 2, 0.3);
  outline: none;
}

/* ===============================
   Service Sections
=============================== */
section[id$="-section"] {
  padding: 60px 0;
  position: relative;
}

section[id$="-section"]:nth-child(odd) {
  background-color: var(--section-bg);
}

section[id$="-section"]:nth-child(even) {
  background-color: var(--white-color);
}

/* Section headings */
.service-heading {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
}

.service-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 3px;
}

/* ===============================
   Product Grid & Cards
=============================== */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
}

.product-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 246px;
  background: var(--white-color);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--card-shadow);
  overflow: hidden;
  transition: var(--transition-fast);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.image-container {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f0f0f0;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.product-card:hover .image-container img {
  transform: scale(1.05);
}

.product-name {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  color: #333;
  transition: opacity var(--transition-fast);
}

.product-card:hover .product-name {
  opacity: 0;
}

/* hover-info (unchanged except visual polish inside) */
.hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white-color);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #eee;
    height: 50%;
    overflow-y: auto;
}

.product-card:hover .hover-info {
  transform: translateY(0);
}

.price {
    font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  bottom: 258px;
  background: #d0d0d094;
  width: 152px;
  border-radius: 5px;
}

.duration {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-gray);
}

.duration-selector {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: border var(--transition-fast);
}

.duration-selector:hover,
.duration-selector:focus {
  border-color: var(--primary-color);
}

/* Add to cart button */
.add-to-cart {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--primary-color), #ff4d4d);
  color: var(--white-color);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background: linear-gradient(90deg, #ff3333, var(--primary-color));
}

.date-selector {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

.date-selector:focus {
    outline: none;
    border-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card {
    max-width: 100%;
    height: 229px;
  }

  .image-container {
    height: 230px;
  }

  .product-name {
    font-size: 16px;
  }

  .service-heading {
    font-size: 1.5rem;
  }
  .price{
    bottom: 221px;
  }
}
