/* ==========================================================================
   Vrinda Packing House — Products Page Styles
   ========================================================================== */

.products-page {
  background-color: var(--ivory);
}

/* ---------- Hero Section ---------- */
.products-hero {
  background: linear-gradient(90deg, #FBECE9 0%, #FAF0EC 40%, rgba(250,240,236,0.3) 100%);
  padding: 60px 0 0 0;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-bottom: 60px;
  max-width: 550px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.breadcrumb a:hover, .breadcrumb .active {
  color: var(--wine);
  font-weight: 600;
}

.breadcrumb i {
  font-size: 10px;
  color: var(--muted);
}

.hero-title-wrap .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title-wrap h1 {
  color: var(--wine);
  font-size: clamp(36px, 4vw, 48px);
  margin-top: 10px;
  line-height: 1.1;
}

.title-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  width: 280px;
  margin: 16px 0;
}

.title-divider.left-align {
  width: 180px;
}

.title-divider .line {
  flex: 1;
  height: 1px;
  background-color: var(--gold);
}

.hero-title-wrap p {
  color: var(--dark);
  font-size: 15px;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-right: -46px; /* Bleeds off edge slightly */
}

.hero-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Category Filters ---------- */
.products-filter-section {
  padding: 40px 0;
}

.filter-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: transparent;
  border: 1px solid rgba(199, 162, 98, 0.4);
  border-radius: 8px;
  color: var(--wine);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.filter-btn i {
  color: var(--gold);
  font-size: 16px;
}

.filter-btn:hover {
  border-color: var(--wine);
  background-color: var(--blush);
}

.filter-btn.active {
  background-color: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.filter-btn.active i {
  color: #fff;
}

/* ---------- Products Grid ---------- */
.products-grid-section {
  padding-bottom: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.products-empty {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 1px dashed rgba(199, 162, 98, 0.55);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.products-empty i {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 34px;
}

.products-empty h2 {
  margin-bottom: 8px;
  color: var(--wine);
  font-size: 28px;
}

.products-empty p {
  margin: 0;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(199, 162, 98, 0.25);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(143, 29, 44, 0.08);
  border-color: rgba(199, 162, 98, 0.5);
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  background: #fff;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.card-body {
  padding: 0 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  color: var(--wine);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-body h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.card-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.btn-book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background-color: var(--deep-wine);
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s var(--ease);
}

.btn-book:hover {
  background-color: var(--wine);
  color: #fff;
}

.btn-book i {
  font-size: 16px;
  color: #25D366; /* WhatsApp Green */
}

/* ---------- Middle Divider ---------- */
.custom-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--wine);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.custom-divider i {
  color: var(--gold);
}

/* ---------- Bottom Custom CTA ---------- */
.custom-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #FDF4ED 0%, #FAECEB 100%);
  border: 1px solid rgba(199, 162, 98, 0.3);
  border-radius: 12px;
  padding: 30px 40px;
  position: relative;
  overflow: hidden;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.cta-icon {
  width: 70px;
  height: 70px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon i {
  font-size: 32px;
  color: var(--gold);
}

.cta-text h2 {
  color: var(--wine);
  font-size: 30px;
}

.cta-text p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cta-actions {
  display: flex;
  gap: 16px;
  z-index: 2;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.btn-cta.bg-wine {
  background-color: var(--deep-wine);
  color: #fff;
}

.btn-cta.bg-wine:hover {
  background-color: var(--wine);
}

.btn-cta.bg-wine i {
  color: #25D366;
}

.btn-cta-outline {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--wine);
  color: var(--wine);
}

.btn-cta-outline:hover {
  background-color: var(--wine);
  color: #fff;
}

.cta-image {
  position: absolute;
  right: -20px;
  bottom: -20px;
  opacity: 0.8;
  z-index: 1;
}

.cta-image img {
  height: 180px;
  object-fit: contain;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .custom-cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 30px 20px;
  }
  .cta-left {
    flex-direction: column;
    text-align: center;
  }
  .title-divider.left-align {
    margin: 16px auto;
  }
  .cta-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    padding-bottom: 20px;
  }
  .hero-image {
    margin-right: 0;
  }
  .title-divider {
    margin: 16px auto;
  }
  .breadcrumb {
    justify-content: center;
  }
  .filter-btn {
    padding: 8px 16px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-cta {
    width: 100%;
  }
}
