/* ═══════════════════════════════════════════════════════════
   PRODUCTS PAGE — Redesigned
   Horizontal Filters + Clean Image Grid
   ═══════════════════════════════════════════════════════════ */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(145deg, #04321C 0%, #0A5233 60%, #127a44 100%);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(10, 82, 51, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(4, 50, 28, 0.3) 0%, transparent 50%);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.page-hero-label {
  display: inline-block;
  font-family: 'Montserrat', var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.page-hero p {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 560px;
  line-height: 1.7;
}

.page-hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
}

.page-hero-curve svg {
  width: 100%;
  height: 60px;
}

/* ═══════════════════════════════════════════════════════════
   INGREDIENT UNIVERSE — REDESIGNED LAYOUT
   Full-width: Category Tabs → Horizontal Filters → Image Grid
   ═══════════════════════════════════════════════════════════ */
.iu-section {
  padding: 56px 0 100px;
  background: var(--light-bg);
}

/* ── Category Tabs (horizontal row) ── */
.iu-category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.iu-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  font-family: 'Montserrat', var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.iu-tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9a9a9a;
  transition: color 0.25s ease;
}

.iu-tab-btn:hover {
  background: #f0f0f0;
  border-color: #c8c8c8;
  color: #2a2a2a;
  transform: translateY(-1px);
}

.iu-tab-btn.active {
  background: #0f3d2e;
  border-color: #0f3d2e;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 61, 46, 0.3);
  transform: translateY(-1px);
}

.iu-tab-btn.active svg {
  color: rgba(255, 255, 255, 0.8);
}

.iu-tab-count {
  font-size: 11px;
  font-weight: 600;
  color: #9a9a9a;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 7px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.iu-tab-btn.active .iu-tab-count {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
}

/* ── Content Area (heading + subtitle + grid) ── */
.iu-content {
  width: 100%;
}

.iu-content-header {
  text-align: center;
  margin-bottom: 36px;
}

.iu-content-header h2 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
}

.iu-content-header p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

/* ── Horizontal Sub-Filters (product-level pills) ── */
.iu-filters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 0 16px;
}

.iu-filter-pill {
  padding: 8px 20px;
  background: #ffffff;
  border: 1.5px solid #e2e2e2;
  border-radius: 999px;
  font-family: 'Montserrat', var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #5a5a5a;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.iu-filter-pill:hover {
  background: #f5f5f5;
  border-color: #c0c0c0;
  color: #2a2a2a;
}

.iu-filter-pill.active {
  background: #0f3d2e;
  border-color: #0f3d2e;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 61, 46, 0.25);
}

/* ── Product Grid ── */
.iu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.iu-grid.iu-grid-fade {
  opacity: 0;
  transform: scale(0.97);
}

/* ── Product Card — Image Only ── */
.iu-card {
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: relative;
  animation: cardFadeIn 0.4s ease both;
}

.iu-card:nth-child(1) { animation-delay: 0.04s; }
.iu-card:nth-child(2) { animation-delay: 0.08s; }
.iu-card:nth-child(3) { animation-delay: 0.12s; }
.iu-card:nth-child(4) { animation-delay: 0.16s; }
.iu-card:nth-child(5) { animation-delay: 0.20s; }
.iu-card:nth-child(6) { animation-delay: 0.24s; }
.iu-card:nth-child(7) { animation-delay: 0.28s; }
.iu-card:nth-child(8) { animation-delay: 0.32s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.iu-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.iu-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  height: auto;
  overflow: hidden;
}

.iu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.iu-card:hover .iu-card-img img {
  transform: scale(1.08);
}

/* Dark gradient overlay — bottom only, for text readability */
.iu-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.iu-card:hover .iu-card-overlay {
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.7) 100%);
}

/* Product name — bottom left */
.iu-card-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: 'Montserrat', var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
  letter-spacing: 0.2px;
}

/* Badge — top right, minimal */
.iu-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Montserrat', var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(15, 61, 46, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 10px;
  border-radius: 6px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* ── Private Label Info Bar ── */
.iu-private-label-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 24px;
  background: rgba(15, 61, 46, 0.05);
  border: 1px dashed rgba(15, 61, 46, 0.2);
  border-radius: 12px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.iu-private-label-bar svg {
  width: 18px;
  height: 18px;
  color: #0f3d2e;
  flex-shrink: 0;
}

.iu-private-label-bar p {
  font-family: 'Montserrat', var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.iu-private-label-bar strong {
  color: #0f3d2e;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════════════════════ */
.iu-cta {
  padding: 80px 0;
  background: var(--white);
}

.iu-cta-inner {
  background: linear-gradient(145deg, #04321C, #0A5233);
  border-radius: 24px;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.iu-cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.iu-cta-inner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.iu-cta-text {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.iu-cta-text h2 {
  font-family: 'Montserrat', var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.iu-cta-text p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.btn-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffff;
  color: #04321C;
  font-family: 'Montserrat', var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-cta-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-cta-contact svg {
  transition: transform 0.2s ease;
}

.btn-cta-contact:hover svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .iu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .page-hero h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-hero p {
    font-size: 14px;
  }

  .page-hero-curve svg {
    height: 36px;
  }

  .iu-section {
    padding: 36px 0 60px;
  }

  /* Category tabs scroll horizontally on mobile */
  .iu-category-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .iu-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .iu-tab-btn {
    padding: 10px 18px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Sub-filters scroll horizontally */
  .iu-filters-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 28px;
  }

  .iu-filters-row::-webkit-scrollbar {
    display: none;
  }

  .iu-filter-pill {
    flex-shrink: 0;
    padding: 7px 16px;
    font-size: 12px;
  }

  .iu-content-header h2 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .iu-content-header p {
    font-size: 14px;
    padding: 0 16px;
  }

  .iu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .iu-card-name {
    font-size: 13px;
    bottom: 12px;
    left: 12px;
  }

  .iu-card-badge {
    font-size: 8px;
    padding: 3px 8px;
    top: 8px;
    right: 8px;
  }

  .iu-cta {
    padding: 48px 0;
  }

  .iu-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 20px;
  }

  .iu-cta-text {
    max-width: 100%;
  }

  .iu-cta-text h2 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .iu-cta-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 100px 0 48px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .iu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .iu-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .iu-card-name {
    font-size: 12px;
    bottom: 10px;
    left: 10px;
  }
}
