/* ============================================================
   Agros-98 AD — Products CSS
   ============================================================ */

/* ============================================================
   PRODUCTS PAGE — CATEGORY TABS
   ============================================================ */
.cat-tabs {
  padding: 2.5rem 0 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 100;
}
.cat-tabs__list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.cat-tab {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  flex: 1;
  text-align: center;
  transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base), transform var(--transition-spring);
  cursor: pointer;
}
.cat-tab:hover { color: var(--brand-amber); border-color: var(--brand-amber); transform: translateY(-1px); }
.cat-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cat-tab:active { transform: translateY(0); }
.cat-tab.is-active {
  color: var(--white);
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  box-shadow: 0 2px 8px rgba(184,114,58,0.25);
}
.cat-tab[data-cat="seeds"].is-active {
  background: var(--seeds-green);
  border-color: var(--seeds-green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(89,139,67,0.25);
}
.cat-tab[data-cat="oils"].is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(212,168,67,0.25);
}
.cat-tab[data-cat="flours"].is-active {
  background: var(--brand-amber);
  border-color: var(--brand-amber);
  color: var(--white);
}
.cat-tab[data-cat="tahinis"].is-active {
  background: #7c5c3a;
  border-color: #7c5c3a;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(124,92,58,0.25);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-cat-heading {
  grid-column: 1 / -1;
  padding: 2rem 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.products-cat-heading:first-child { padding-top: 0; }
.products-cat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-amber);
}
.products-cat-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.products-section {
  padding: 4rem 0 7rem;
  background: var(--cream);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  /* No alignment needed at 1-column — drop forced min-heights to reduce page scroll length */
  .prod-card__name { min-height: unset; }
  .prod-card__tagline { min-height: unset; }
}

/* ============================================================
   PRODUCT CARD — Green Bridge style
   ============================================================ */
.prod-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: visible;
  position: relative;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  cursor: pointer;
  isolation: isolate;
}
.prod-card--visible {
  opacity: 1;
  transform: translateY(0);
}
.prod-card:hover {
  box-shadow: 0 12px 40px rgba(30,22,10,0.13);
}
.prod-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Category bar — full label bar */
.prod-card__cat-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.prod-card__cat-bar--seeds   { background: var(--seeds-green); }
.prod-card__cat-bar--oils    { background: var(--gold); color: var(--brand-deep); }
.prod-card__cat-bar--flours  { background: var(--brand-amber); }
.prod-card__cat-bar--tahinis { background: #7c5c3a; }

/* Floating circular image — top-right */
.prod-card__img-wrap {
  position: absolute;
  top: -10px;
  right: 18px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 2px 16px rgba(30,22,10,0.2);
  z-index: 3;
  background: var(--cream-dark);
  flex-shrink: 0;
}
.prod-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.prod-card:hover .prod-card__img-wrap img { transform: scale(1.08); }

/* Body */
.prod-card__body {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.prod-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  padding-right: 70px;
  min-height: calc(1rem * 1.25 * 2);
}
.prod-card__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 400;
  min-height: calc(0.85rem * 1.55 * 2);
}

/* Specs */
.prod-card__specs-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
}
.prod-card__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.prod-card__spec-key {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.prod-card__spec-val {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: right;
}
.prod-card__spec-dots { display: none; }

/* Meta (origins + tags) */
.prod-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-card__origins {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.prod-card__origins svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* Tags */
.prod-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.prod-card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  background: rgba(184,114,58,0.1);
  color: var(--brand-amber);
  border-radius: 2px;
  border: none;
}

/* Card footer */
.prod-card__footer {
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 3px 3px;
}
.prod-card__packaging {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.prod-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-amber);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.prod-card:hover .prod-card__cta { gap: 10px; }

/* ============================================================
   PRODUCT DETAIL HERO
   ============================================================ */
.prod-hero {
  background: linear-gradient(135deg, #0f0802 0%, #1e160a 55%, #4a2d14 100%);
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.prod-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: 0;
  width: 55vw; height: 100%;
  background: radial-gradient(ellipse, rgba(184,114,58,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.prod-hero--has-bg {
  background-color: #0f0802;
  background-size: cover;
  background-position: center;
}
.prod-hero--has-bg::before {
  width: 100%;
  top: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.68) 35%, rgba(0,0,0,0.30) 65%, rgba(0,0,0,0.08) 100%);
}
.prod-hero__pattern {
  display: none;
}
.prod-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.prod-hero__cat-label {
  display: none;
}
.prod-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.875rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.prod-hero__tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 500px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.prod-hero__certs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.prod-hero__cert {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

/* MOQ Box */
.prod-hero__moq {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  min-width: 220px;
  flex-shrink: 0;
}
.prod-hero__moq-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.75rem;
}
.prod-hero__moq-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.55rem;
}
.prod-hero__moq-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 0.1rem;
}
.prod-hero__moq-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.prod-hero__moq-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0.65rem 0;
}

/* Packaging option rows after the divider — display as inline pills */
.prod-hero__moq-divider ~ .prod-hero__moq-row {
  display: inline-flex;
  margin: 0 0.3rem 0.3rem 0;
}
.prod-hero__moq-divider ~ .prod-hero__moq-row .prod-hero__moq-label {
  display: none;
}
.prod-hero__moq-divider ~ .prod-hero__moq-row .prod-hero__moq-val {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}
/* Tighten the "Packaging Options" heading after the divider */
.prod-hero__moq-divider ~ .prod-hero__moq-heading {
  display: block;
  margin-bottom: 0.45rem !important;
  margin-top: 0;
}

@media (max-width: 900px) {
  .prod-hero__content { grid-template-columns: 1fr; }
  .prod-hero__moq { min-width: unset; }
}

/* ============================================================
   PRODUCT DETAIL BODY
   ============================================================ */
.prod-body {
  padding: 5rem 0;
  overflow-x: hidden;
}
.prod-body__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.prod-body__desc-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}
.prod-body__desc p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prod-body__desc p:last-child { margin-bottom: 0; }
.prod-body__desc li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.spec-table__head th {
  background: var(--brand-amber);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 1.25rem;
  text-align: left;
}
.spec-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}
.spec-table tbody tr:last-child { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--cream); }
.spec-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-body);
  vertical-align: top;
}
.spec-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  width: 50%;
}
.spec-table td:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 900px) {
  .prod-body__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DOCUMENTATION SECTION
   ============================================================ */
.docs-section {
  padding: 4rem 0;
  background: var(--cream-dark);
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(30,22,10,0.08), 0 8px 32px rgba(30,22,10,0.06);
}
.doc-card__icon {
  width: 40px; height: 40px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.doc-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}
.doc-card__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.doc-card__status {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.doc-card__status--available {
  color: #2a6e3f;
  background: rgba(42,110,63,0.1);
  border: 1px solid rgba(42,110,63,0.2);
}
.doc-card__status--on-request {
  color: var(--brand-amber);
  background: rgba(184,114,58,0.1);
  border: 1px solid rgba(184,114,58,0.2);
}

@media (max-width: 1024px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .docs-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 5rem 0;
}
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30,22,10,0.04);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition-base);
}
.faq-question:hover { color: var(--brand-amber); }
.faq-question:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--brand-amber);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-answer { max-height: 400px; }
.faq-answer__inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ============================================================
   RELATED PRODUCTS
   ============================================================ */
.related-section {
  padding: 5rem 0;
  background: var(--cream-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PRODUCTS PAGE EMPTY STATE
   ============================================================ */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.products-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.products-empty__text { font-size: 1rem; }

/* ============================================================
   MOBILE OPTIMIZATIONS (Products)
   ============================================================ */

/* ≤ 768px */
@media (max-width: 768px) {
  /* Category tabs — horizontal scroll instead of wrapping */
  .cat-tabs { padding: 1.25rem 0 0; top: 62px; }
  /* Fade hint at right edge indicates more tabs are scrollable */
  .cat-tabs::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 3.5rem;
    background: linear-gradient(to right, transparent, var(--white) 85%);
    pointer-events: none;
    z-index: 1;
  }
  .cat-tabs__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.75rem;
    gap: 0.4rem;
  }
  .cat-tabs__list::-webkit-scrollbar { display: none; }
  .cat-tab { flex-shrink: 0; font-size: 0.75rem; padding: 0.5rem 1rem; }

  /* Products section */
  .products-section { padding: 2.5rem 0 4rem; }

  /* Product detail hero */
  .prod-hero { padding: 3.5rem 0 3.5rem; }
  .prod-hero__title { font-size: clamp(1.75rem, 6.5vw, 2.5rem); }
  .prod-hero__tagline { font-size: 0.95rem; margin-bottom: 1.25rem; }

  /* Product detail body */
  .prod-body { padding: 3rem 0; }
  .prod-body__desc-title { font-size: 1.4rem; }

  /* Docs section */
  .docs-section { padding: 2.5rem 0; }

  /* FAQ section */
  .faq-section { padding: 3rem 0; }
  .faq-question { padding: 1rem 1.25rem; font-size: 0.9rem; }
  .faq-answer__inner { padding: 0 1.25rem 1rem; padding-top: 0.875rem; }

  /* Related section */
  .related-section { padding: 3rem 0; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  /* Product card body — tighten spacing */
  .prod-card__body { padding: 16px 18px 12px; gap: 10px; }
  .prod-card__name { font-size: 0.95rem; padding-right: 60px; }
  .prod-card__tagline { font-size: 0.82rem; }
  .prod-card__footer { padding: 12px 18px; }

  /* Floating image — slightly smaller on very small screens */
  .prod-card__img-wrap { width: 72px; height: 72px; right: 14px; }

  /* Category heading */
  .products-cat-heading { padding: 1.5rem 0 0; }

  /* Spec table */
  .spec-table td { padding: 0.6rem 1rem; font-size: 0.82rem; }
  .spec-table__head th { padding: 0.75rem 1rem; font-size: 0.75rem; }

  /* Product hero — reduce padding */
  .prod-hero { padding: 3rem 0 3rem; }
  .prod-hero__moq { padding: 1rem 1.25rem; min-width: unset; }
  .prod-hero__certs { gap: 0.35rem; }
  .prod-hero__cert { font-size: 0.75rem; padding: 0.25rem 0.6rem; }

  /* Doc cards — tighter */
  .doc-card { padding: 1.1rem 1.25rem; gap: 0.75rem; }
  .doc-card__icon { width: 34px; height: 34px; font-size: 1rem; }

  /* FAQ */
  .faq-question { padding: 0.875rem 1rem; }
  .faq-answer__inner { padding: 0 1rem 0.875rem; padding-top: 0.75rem; }

  /* Related grid — already 1-col at 540px, nothing extra needed */
}
