/* ============================================================
   AquaWave — Products Page (Redesigned)
   Wavy gradient blue · No wiggle · Enlarged smooth images
   ============================================================ */

/* ======================== PRODUCTS HERO ======================== */
.products-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #0A1628 0%, #0F2563 40%, #0096B7 100%);
  padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-5xl);
  overflow: hidden;
}

/* Animated blue wave layers inside hero */
.products-hero::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -10%;
  width: 120%;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%230A1628' fill-opacity='1' d='M0,64L60,58.7C120,53,240,43,360,48C480,53,600,75,720,80C840,85,960,75,1080,64C1200,53,1320,43,1380,37.3L1440,32L1440,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom / cover;
  pointer-events: none;
  z-index: 1;
}

.products-hero__content {
  position: relative;
  z-index: 2;
}

.products-hero__title {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.products-hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
}

.products-hero__desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}


/* ======================== PRODUCT DETAIL SECTION ======================== */
/* Continuous wavy gradient instead of solid dark blocks */
.product-detail-section {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: #0A1628;
  position: relative;
  overflow: hidden;
}

/* Animated gradient waves as background */
.product-detail-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 180, 216, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(26, 58, 143, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 150, 183, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Wave SVG between products */
.product-wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.product-wave-divider svg {
  display: block;
  width: 100%;
  height: 70px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: 2;
}

.product-detail:last-child {
  padding-bottom: 0;
}

.product-detail.reversed {
  direction: rtl;
}

.product-detail.reversed > * {
  direction: ltr;
}

/* ── VISUAL – enlarged bottle with smooth round frame ── */
.product-detail__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
}

/* Glowing background circle */
.product-detail__glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.14) 0%, rgba(26, 58, 143, 0.08) 40%, transparent 70%);
  pointer-events: none;
}

/* Clean enlarged bottle — no frame overlay */
.product-detail__image {
  width: 280px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s ease;
  z-index: 1;
}

.product-detail__image:hover {
  transform: scale(1.06) translateY(-8px);
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.4)) brightness(1.05);
}

.product-detail__info {
  padding: var(--space-xl) 0;
}

.product-detail__badge {
  display: inline-block;
  padding: 6px 22px;
  background: rgba(0, 180, 216, 0.15);
  color: var(--prism-teal-light);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(0, 180, 216, 0.25);
}

.product-detail__name {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.product-detail__tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: var(--space-lg);
}

.product-detail__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: var(--space-xl);
}

.product-detail__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-detail__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.product-detail__feature svg {
  flex-shrink: 0;
  color: var(--prism-teal);
}

.product-detail__price-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.product-detail__price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
}

.product-detail__price .label {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.product-detail__price .price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

/* Wavy divider between products */
.product-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), rgba(0, 180, 216, 0.5), rgba(0, 180, 216, 0.3), transparent);
  margin: 0;
  position: relative;
  z-index: 2;
}


/* ======================== COMPARISON TABLE ======================== */
.comparison-section {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #0A1628 0%, #0F2563 50%, #0096B7 100%);
  position: relative;
  overflow: hidden;
}

/* Wavy top edge */
.comparison-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -10%;
  width: 120%;
  height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90'%3E%3Cpath fill='%230A1628' d='M0,32L80,42.7C160,53,320,75,480,74.7C640,75,800,53,960,42.7C1120,32,1280,43,1360,48L1440,53L1440,0L0,0Z'/%3E%3C/svg%3E") no-repeat top / cover;
  pointer-events: none;
  z-index: 2;
}

.comparison-section .section-header h2 {
  color: var(--white);
}

.comparison-section .section-header .subtitle {
  background: rgba(0, 180, 216, 0.2);
  color: var(--prism-teal-light);
}

.comparison-section .section-header .description {
  color: rgba(255, 255, 255, 0.7);
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 180, 216, 0.08);
}

.comparison-table thead th {
  background: rgba(0, 150, 183, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table tbody td {
  padding: var(--space-md) var(--space-xl);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--transition-fast);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.comparison-table tbody tr:hover td {
  background: rgba(0, 180, 216, 0.12);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--prism-teal-light);
  font-size: 1.2rem;
  font-weight: 700;
}


/* ======================== NUTRITIONAL INFO ======================== */
.nutritional-section {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #0096B7 0%, #0F2563 60%, #0A1628 100%);
  position: relative;
  overflow: hidden;
}

/* Wavy top edge */
.nutritional-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -10%;
  width: 120%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%230096B7' d='M0,40L80,34.7C160,29,320,19,480,24C640,29,800,51,960,56C1120,61,1280,50,1360,45L1440,40L1440,0L0,0Z'/%3E%3C/svg%3E") no-repeat top / cover;
  pointer-events: none;
  z-index: 1;
}

.nutritional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.nutritional-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nutritional-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--prism-teal-light);
  display: inline-block;
}

.nutritional-card table {
  width: 100%;
  border-collapse: collapse;
}

.nutritional-card th,
.nutritional-card td {
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  text-align: left;
}

.nutritional-card th {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.nutritional-card td {
  color: rgba(255, 255, 255, 0.65);
  text-align: right;
}

.nutritional-card tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nutritional-text h3 {
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.nutritional-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.75);
}

.cert-badges {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  transition: all var(--transition-base);
}

.cert-badge:hover {
  background: rgba(0, 180, 216, 0.25);
  border-color: var(--prism-teal-light);
  transform: translateY(-2px);
}

.cert-badge svg {
  color: var(--prism-teal-light);
}


/* ======================== BULK ORDER CTA ======================== */
.bulk-cta {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, #0A1628 0%, #0F2563 50%, #0096B7 100%);
  background-size: 200% 200%;
  animation: gradientFlow 8s ease infinite;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bulk-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%230F2563' d='M0,32L60,37.3C120,43,240,53,360,53.3C480,53,600,43,720,37.3C840,32,960,32,1080,37.3C1200,43,1320,53,1380,58.7L1440,64L1440,0L0,0Z'/%3E%3C/svg%3E") no-repeat top / cover;
  pointer-events: none;
}

.bulk-cta h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
}

.bulk-cta p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
  position: relative;
}


/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .product-detail__image {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
  }

  .product-detail.reversed {
    direction: ltr;
  }

  .product-detail__visual {
    order: -1;
  }

  .product-detail__image {
    width: 200px;
  }

  .product-detail__features {
    grid-template-columns: 1fr;
    text-align: left;
    max-width: 300px;
    margin: 0 auto var(--space-xl);
  }

  .product-detail__price-row {
    justify-content: center;
  }

  .nutritional-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: var(--space-sm) var(--space-md);
  }
}
