/* ==========================================================================
   Products Page — section-specific styles
   Reuses tokens.css, base.css, header.css, hero.css, sections-light.css,
   sections-dark.css from the shared Home/About design system.
   ========================================================================== */

/* ---- Products Hero (shorter still — this is a catalogue entry point) ---- */
.products-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-charcoal);
}
@media (max-width: 640px) {
  .products-hero { min-height: 62vh; }
}
.products-hero__media { position: absolute; inset: 0; z-index: 0; }
.products-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 60% center;
  transform: scale(1.05);
  animation: heroReveal 2200ms var(--ease-editorial) forwards;
}
.products-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(17,15,11,0.92) 0%, rgba(17,15,11,0.8) 28%, rgba(17,15,11,0.4) 55%, rgba(17,15,11,0.12) 78%, rgba(17,15,11,0.08) 100%),
    linear-gradient(0deg, rgba(17,15,11,0.55) 0%, rgba(17,15,11,0) 34%);
}
.products-hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding-block: 148px 56px;
}
@media (max-width: 640px) {
  .products-hero__inner { padding-block: 100px 36px; }
}
.products-hero__content { max-width: 620px; }
.products-hero__title {
  margin-top: 22px;
  font-size: clamp(32px, 5.2vw, 54px);
  color: var(--color-off-white);
}
.products-hero__lede {
  margin-top: 22px;
  max-width: 50ch;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.75;
  color: var(--color-off-white-dim);
}
.products-hero__markets {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}
.products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

/* ---- Category navigation (sticky pill bar) ---- */
.cat-nav {
  position: sticky;
  top: 70px;
  z-index: 50;
  scroll-margin-top: 78px;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--color-line-on-light);
  padding-block: 16px;
}
@media (max-width: 640px) {
  .cat-nav { top: 66px; }
}
.cat-nav__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav__scroll::-webkit-scrollbar { display: none; }

.cat-nav__pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(33, 28, 21, 0.62);
  border: 1px solid var(--color-line-on-light);
  border-radius: 999px;
  transition: background var(--dur-fast) var(--ease-editorial),
              color var(--dur-fast) var(--ease-editorial),
              border-color var(--dur-fast) var(--ease-editorial);
}
.cat-nav__pill:hover {
  border-color: var(--color-gold-dim);
  color: var(--color-ink);
}
.cat-nav__pill.is-active {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
  color: var(--color-off-white);
}

/* ---- Category section header ---- */
.cat-section {
  scroll-margin-top: 150px;
}
@media (max-width: 640px) {
  #spices.cat-section { padding-top: 36px; }
}
.cat-section__head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.cat-section__title {
  margin-top: 18px;
  font-size: clamp(26px, 3.6vw, 40px);
  color: var(--color-ink);
}
.cat-section__lede {
  margin-top: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(33, 28, 21, 0.66);
  max-width: 60ch;
}

/* ---- Product grid & cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 18px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (min-width: 960px) {
  .product-grid--spices { grid-template-columns: repeat(4, 1fr); }
  .product-grid--ayurvedic { grid-template-columns: repeat(4, 1fr); }
  .product-grid--coconut { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .product-grid--cashew { grid-template-columns: minmax(0, 420px); }
}

.product-card {
  display: flex;
  flex-direction: column;
}
.product-card__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--color-ivory-deep);
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1000ms var(--ease-editorial);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-off-white);
  background: rgba(23, 20, 15, 0.55);
  backdrop-filter: blur(4px);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.product-card__label {
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
}
.product-card__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--color-ink);
}
.product-card__desc {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(33, 28, 21, 0.62);
}

/* Coconut & cashew get a slightly larger, more prominent card treatment */
.product-card--large .product-card__media { aspect-ratio: 5 / 4; }
.product-card--large .product-card__title { font-size: clamp(20px, 2.4vw, 26px); }
.product-card--large .product-card__desc { font-size: 14.5px; max-width: 46ch; }

/* ---- Beyond the List CTA ---- */
.beyond-cta {
  position: relative;
  background: var(--color-charcoal);
  overflow: hidden;
  isolation: isolate;
}
.beyond-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 480px at 85% 20%, rgba(30, 46, 34, 0.5), transparent 60%),
    radial-gradient(ellipse 600px 460px at 10% 85%, rgba(198, 154, 70, 0.10), transparent 60%);
}
.beyond-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.beyond-cta__title {
  margin-top: 20px;
  font-size: clamp(28px, 4.4vw, 44px);
  color: var(--color-off-white);
}
.beyond-cta__copy {
  margin-top: 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--color-off-white-dim);
  max-width: 48ch;
}
.beyond-cta__actions { margin-top: 34px; }
.beyond-cta__tagline {
  margin-top: 28px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dim);
}
