/* ============================================
   VOKKAL SEEDS — Products Page
   products.css
   ============================================ */

/* ─── Hero ──────────────────────────────────── */
.prod-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.05;
  max-height: 80vh;
  overflow: hidden;
  line-height: 0;
}

.prod-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.prod-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: rgba(0, 0, 0, 0.25); */
  z-index: 2;
}

/* Figma: Paytone One 128px / line-height 160px */
.prod-hero-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 8rem;
  line-height: 10rem;                    /* 160/128 = 1.25 */
  margin-top: 12rem;
  text-align: center;
  color: #ffffff;
  letter-spacing: 0;
}

/* ─── Category tabs ─────────────────────────── */
.prod-category-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--green-dark);
  padding: 0;
}

.prod-cat-btn {
  flex: 1;
  max-width: 18rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.5px;
}

.prod-cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.prod-cat-btn.active {
  color: #fff;
  border-bottom-color: var(--orange);
  font-weight: 600;
}

/* ─── Crop Selector Section ─────────────────── */
.prod-crop-section {
  background: #fff;
  padding: 2.5rem 0 0;
}

/* Figma: VegetableCrops box — #F6F8F4 bg, radius 10px, padding 0 24px, gap 32px */
.prod-crop-box {
  background: var(--green-faint);
  border-radius: 0.625rem;
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Figma: section heading "Vegetable Crops" & Category Switch Tabs */
.prod-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.prod-section-title {
  font-family: var(--font-body);   /* Figma: Roboto, not brand font */
  font-weight: 600;
  font-size: clamp(1.75rem, 3.33vw, 3rem);  /* 3rem = 48px */
  line-height: 1.05;
  color: var(--green-light);
  white-space: nowrap;
}

.prod-category-tabs {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 3px;
  background: #F6F6F6;
  border: 1px solid #E3E3E3;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 100px;
  gap: 0.25rem;
}

.prod-cat-tab {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.5rem;
  border: none;
  cursor: pointer;
  background: transparent;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: #1B5E20;
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
}

.prod-cat-tab.active {
  background: #F07235;
  box-shadow: 0px 0px 20px #DE9B85;
  border-radius: 100px;
  color: #FFFFFF;
}

.prod-cat-tab:not(.active):hover {
  color: #0E3D12;
  background: rgba(27, 94, 32, 0.06);
}

/* ─── Crop carousel ─────────────────────────── */
.prod-crop-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.prod-crop-carousel-window {
  flex: 1;
  overflow: visible;
}

.prod-crop-track {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Carousel buttons 40×40px circles */
.prod-carousel-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  z-index: 2;
  opacity: 1;
}

.prod-carousel-next {
  background: #FF6633;
}

.prod-carousel-prev {
  background: #FF6633;
}

.prod-carousel-btn:hover:not(:disabled) {
  transform: scale(1.08);
}

/* Disabled state — faded and no pointer */
.prod-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Individual crop item */
.prod-crop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.5rem 0.25rem 0;
  flex-shrink: 0;
  width: auto;
  min-width: 6rem;
  transition: transform 0.2s;
}

.prod-crop-item:hover {
  transform: translateY(-4px);
}

/* Figma: 96px circle, border 1px solid #1B5E20 */
.prod-crop-icon-wrap {
  width: 6rem;      /* 96px */
  height: 6rem;
  border-radius: 50%;
  border: 0.07rem solid var(--Light-green, rgba(27, 94, 32, 1));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.2s, border-width 0.2s, box-shadow 0.2s;
}

/* Figma: active = border 2px solid #F07235 */
.prod-crop-item.active .prod-crop-icon-wrap {
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 114, 53, 0.15);
}

.prod-crop-icon {
  object-fit: contain;
  display: block;
  height: 6.2rem;
  width: 6.2rem;
  max-width: none;
}

/* Figma: Roboto 700 20px color #333 / active #F07235 */
.prod-crop-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;  /* 20px */
  color: #333333;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.prod-crop-item.active .prod-crop-label {
  color: var(--orange);
}

/* ─── Package of Practices Button ───────────── */
/* Figma: #99CAAD bg, #293C2A text, Roboto 600 24px, radius 5px */
.prod-pop-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  background: #99CAAD;
  color: #293C2A;
  font-family: var(--font-body);
  font-size: 1.5rem;    /* 24px */
  font-weight: 600;
  border-radius: 3.125rem;  /* 5px */
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  margin-bottom: 5rem;
  box-shadow: 0px 4px 25px 0px rgba(183, 173, 173, 0.8);

}

.prod-pop-btn svg {
  flex-shrink: 0;
  color: #293C2A;
}

.prod-pop-btn:hover {
  background: #84b899;
  transform: translateY(-1px);
}

/* ─── Hybrids Section ───────────────────────── */
.prod-hybrids-section {
  background: #fff;
}

/* PoP button sits above hybrids header as a standalone link */
.prod-hybrids-section > .container-full > .prod-pop-btn {
  margin: 0.5rem 0rem 4.5rem 0rem;
}

.prod-hybrids-header {
  margin-bottom: 2rem;
}

/* Title row: heading on left, hint on right — rule sits below */
.prod-hybrids-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Figma: Roboto 600 40px color #734531 */
.prod-hybrids-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.78vw, 2.5rem);   /* 2.5rem = 40px */
  color: var(--seed-brown);
  white-space: nowrap;
  margin-bottom: 1.45rem;
}

/* Figma: Roboto 500 20px #000 */
.prod-hybrids-hint {
  font-family: var(--font-body);
  font-size: 1.25rem;  /* 20px */
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
}

/* Figma: rule color #99CAAD — full-width line below title+hint */
.prod-hybrids-rule {
  width: 100%;
  height: 1.5px;
  background: #99CAAD;
}

/* Hybrids grid — Figma: 4 cards × 300px with ~21px gaps */
.prod-hybrids-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 6rem;
}

/* Hybrid card — Figma: 300×310px, border 1px #F3F4F6, radius 5px, shadow */
.prod-hybrid-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #F3F4F6;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 2rem;
}

.prod-hybrid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Figma: image area 300×260px → aspect ratio 300/260 ≈ 1.154 */
.prod-hybrid-img-wrap {
  width: 100%;
  aspect-ratio: 300 / 260;
  background: var(--green-faint);
  overflow: hidden;
  position: relative;
}

.prod-hybrid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.prod-hybrid-card:hover .prod-hybrid-img {
  transform: scale(1.04);
}

/* Placeholder when image fails to load */
.prod-hybrid-img-placeholder {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-hybrid-img-placeholder::after {
  content: '🌱';
  font-size: 3rem;
  opacity: 0.4;
}

/* Figma: caption area 49px, Roboto 500 20px #000 centered */
.prod-hybrid-caption {
  padding: 0.875rem 1rem;
  min-height: 3.0625rem;   /* 49px */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;   /* 20px */
  line-height: 1.125rem; /* ~18px */
  color: #000000;
  text-align: center;
  background: #fff;
  border-top: 1px solid #F3F4F6;
}

/* ─── CTA Section ───────────────────────────── */
.prod-cta-section {
  position: relative;
  width: 100%;
  object-position: bottom;
  aspect-ratio: 2.8;
  max-height: 70vh;
  overflow: hidden;
  line-height: 0;
}

.prod-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.prod-cta-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6% 0 5%;
}

/* Figma: Paytone One 96px / line-height 100px, staircase offset per line */
.prod-cta-heading {
  font-family: 'Paytone One', 'Roboto', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 6.67vw, 6rem); /* 96px at 1440px viewport */
  line-height: 1.042;                   /* 100/96 */
  color: #fff;
  display: flex;
  flex-direction: column;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.prod-cta-line {
  display: block;
}

/* Figma staircase: each line indented ~2.5rem more than previous */
.prod-cta-line--1 { margin-left: 0; }
.prod-cta-line--2 { margin-left: 7rem; }
.prod-cta-line--3 { margin-left: 13rem; }

/* Figma: Talk to Our Experts pill button: width 298px, height 64px, Roboto 600 24px, icon 30px */
.prod-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 298px;
  height: 64px;
  box-sizing: border-box;
  background: #F07235;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  align-self: flex-end;
  margin-bottom: 3.5rem;
  flex-shrink: 0;
}

.prod-cta-btn svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.prod-cta-btn:hover {
  background: #d9622b;
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px -2px rgba(0, 0, 0, 0.15);
}

/* ─── Fade-up animation ─────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 1200px) {
  .prod-hybrids-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .prod-crop-item {
    /* width: 5.5rem; */
  }

  .prod-crop-icon-wrap {
    /* width: 5.5rem; */
    /* height: 5.5rem; */
  }

  .prod-crop-label {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .prod-hero {
    aspect-ratio: 16/9;
    min-height: 220px;
    max-height: 280px;
    margin-top: 0;
  }

  .prod-hero-title {
    margin-top: 0;
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.2;
  }

  .prod-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .prod-section-title {
    /* font-size: 1.5rem; */
    white-space: normal;
  }

  .prod-hybrids-title {
    /* font-size: 1.5rem; */
    white-space: normal;
  }

  .prod-hybrids-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .prod-hybrids-hint {
    font-size: 0.975rem;
  }

  .prod-hybrids-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .prod-cta-section {
    aspect-ratio: auto;
    min-height: 360px;
    max-height: none;
  }

  .prod-cta-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.25rem 1.5rem;
  }

  .prod-cta-heading {
    /* font-size: clamp(2.25rem, 8vw, 3.25rem); */
    /* line-height: 1.08; */
    align-items: center;
    text-align: center;
    
  }

  .prod-cta-line--1 { margin-left: 0; text-align: center; margin-bottom: 0.5rem;}
  .prod-cta-line--2 { margin-left: 0; text-align: center; margin-bottom: 0.5rem;}
  .prod-cta-line--3 { margin-left: 0; text-align: center; margin-bottom: 0.5rem;}

  .prod-cta-btn {
    align-self: center;
    margin: 0 auto;
    margin-bottom: 0;
    width: auto;
    min-width: 0;
    /* height: 48px; */
    /* font-size: 1.05rem; */
    padding: 0 1.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(240, 114, 53, 0.4);
  }

  .prod-cta-btn svg {
    width: 22px;
    height: 22px;
  }

  .prod-crop-item {
    /* width: 5rem; */
  }

  .prod-crop-icon-wrap {
    /* width: 5rem;
    height: 5rem; */
  }

  .prod-crop-label {
    /* font-size: 0.875rem; */
  }
}

@media (max-width: 480px) {
  .prod-hero {
    aspect-ratio: 16/9;
    min-height: 200px;
    max-height: 240px;
  }

  .prod-hero-title {
    /* font-size: clamp(1.75rem, 6.5vw, 2.5rem); */
    margin-top: 0;
  }

  .prod-hybrids-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .prod-hybrid-caption {
    /* font-size: 0.9375rem; */
  }

  .prod-category-tabs {
    width: 100%;
  }

  .prod-cat-tab {
    flex: 1;
    height: 42px;
    padding: 0 0.5rem;
    /* font-size: 15px; */
  }

  .prod-cta-section {
    min-height: 300px;
  }

  .prod-cta-content {
    padding: 1.75rem 1rem;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
  }

  .prod-cta-heading {
    /* font-size: 2.1rem;
    line-height: 1.05; */
    align-items: center;
    text-align: center;
  }

  .prod-cta-line--1 { margin-left: 0; text-align: center; }
  .prod-cta-line--2 { margin-left: 0; text-align: center; }
  .prod-cta-line--3 { margin-left: 0; text-align: center; }

  .prod-cta-btn {
    align-self: center;
    margin: 0 auto;
    /* height: 44px; */
    /* font-size: 0.95rem; */
    padding: 0 2.25rem;
  }

  .prod-cta-btn svg {
    /* width: 20px;
    height: 20px; */
  }

  .prod-crop-item {
    /* width: 4.5rem; */
  }

  .prod-crop-icon-wrap {
    /* width: 4.5rem;
    height: 4.5rem; */
  }

  .prod-crop-label {
    /* font-size: 0.75rem; */
  }
}
