/* ============================================================
   AL RAYEES SDN BHD — Products Page Styles
   ============================================================ */

/* ─── PAGE HERO (shared) ─────────────────────────── */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--grad-hero);
  overflow: hidden;
  padding-bottom: var(--space-16);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10,36,25,0.5) 0%,
    rgba(10,36,25,0.3) 100%
  );
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-height) + var(--space-12));
  color: var(--white);
}
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.page-hero-breadcrumb a { color: var(--gold-400); transition: color var(--duration-fast) ease; }
.page-hero-breadcrumb a:hover { color: var(--gold-200); }
.page-hero-breadcrumb .sep { color: rgba(255,255,255,0.25); }
.page-hero h1 { color: var(--white); margin-bottom: var(--space-4); }
.page-hero p {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-xl));
  color: rgba(255,255,255,0.7);
  max-width: 640px;
}
.page-hero-deco {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(232,163,23,0.04));
  pointer-events: none;
  z-index: 1;
}

/* ─── ANIMATED PAGE HERO (motion variant) ─────────────
   Layered motion-graphic hero: illustrated bg artwork with
   slow drift, themed animated SVG elements, light sweep and
   pointer parallax (JS). Scoped to .page-hero--motion so the
   default .page-hero on other pages is untouched.          */
.page-hero--motion .page-hero-bg {
  opacity: 1;
  animation: heroDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}
/* Light artwork + white copy: dark forest scrim anchored to
   the text zone (left + bottom), artwork stays bright right */
.page-hero--motion::after {
  background:
    linear-gradient(90deg,
      rgba(10,36,25,0.85) 0%,
      rgba(10,36,25,0.72) 42%,
      rgba(10,36,25,0.30) 62%,
      rgba(10,36,25,0)    78%),
    linear-gradient(0deg,
      rgba(10,36,25,0.60) 0%,
      rgba(10,36,25,0.25) 38%,
      rgba(10,36,25,0)    62%);
  z-index: 1;
}
.page-hero--motion h1 { text-shadow: 0 2px 18px rgba(10,36,25,0.45); }
.page-hero--motion p  { color: rgba(255,255,255,0.88); text-shadow: 0 1px 12px rgba(10,36,25,0.5); }

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
/* overscan so parallax / drift never reveals edges */
.hero-layer-bg { inset: -36px; }

/* Light sweep passing over the artwork */
.hero-sweep {
  position: absolute;
  top: -10%; bottom: -10%;
  left: 0;
  width: 34%;
  background: linear-gradient(105deg, transparent 8%, rgba(255,255,255,0.32) 50%, transparent 92%);
  animation: heroSweep 10s ease-in-out infinite;
  mix-blend-mode: soft-light;
}

/* ── FX elements ── */
.fx {
  position: absolute;
  display: block;
  pointer-events: none;
}
.fx-fall {
  top: -80px;
  animation: fxFall var(--dur, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.fx-rise {
  bottom: -50px;
  animation: fxRise var(--dur, 12s) ease-in infinite;
  animation-delay: var(--delay, 0s);
}
.fx-glide {
  left: -80px;
  animation: fxGlide var(--dur, 36s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.65;
}
.fx-sway {
  transform-origin: 50% 100%;
  animation: fxSway var(--dur, 5.5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.fx-spin {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: fxSpin 70s linear infinite;
}
.fx-dot {
  border-radius: 50%;
  background: rgba(255,255,235,0.85);
  box-shadow: 0 0 8px rgba(255,255,215,0.8);
}
.fx-sun {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,160,0.55) 0%, rgba(255,236,160,0) 65%);
  animation: fxPulse 7s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.10) translate3d(-16px, -10px, 0); }
}
@keyframes heroSweep {
  0%   { transform: translateX(-130%) skewX(-14deg); opacity: 0; }
  12%  { opacity: 1; }
  55%  { opacity: 1; }
  70%  { transform: translateX(260%) skewX(-14deg); opacity: 0; }
  100% { transform: translateX(260%) skewX(-14deg); opacity: 0; }
}
@keyframes fxFall {
  0%   { transform: translateY(0) rotate(-10deg); opacity: 0; }
  7%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(560px) rotate(70deg); opacity: 0; }
}
@keyframes fxRise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.9; }
  85%  { opacity: 0.75; }
  100% { transform: translateY(-500px); opacity: 0; }
}
@keyframes fxGlide {
  0%   { transform: translateX(0) translateY(0); }
  25%  { transform: translateX(28vw) translateY(-9px); }
  50%  { transform: translateX(56vw) translateY(4px); }
  75%  { transform: translateX(84vw) translateY(-7px); }
  100% { transform: translateX(112vw) translateY(0); }
}
@keyframes fxSway {
  0%, 100% { transform: rotate(-3.5deg); }
  50%      { transform: rotate(3.5deg); }
}
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxPulse {
  from { opacity: 0.45; transform: scale(0.94); }
  to   { opacity: 0.9;  transform: scale(1.06); }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 320px;
    padding-bottom: var(--space-10);
  }
  .page-hero-inner {
    padding-top: calc(var(--nav-height) + var(--space-8));
  }
  .page-hero-breadcrumb {
    flex-wrap: wrap;
  }
  /* text spans full width on mobile — weight scrim to the bottom */
  .page-hero--motion::after {
    background: linear-gradient(0deg,
      rgba(10,36,25,0.85) 0%,
      rgba(10,36,25,0.65) 45%,
      rgba(10,36,25,0.15) 78%,
      rgba(10,36,25,0) 100%);
  }
  .fx-m-hide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--motion .page-hero-bg,
  .hero-sweep,
  .fx,
  .fx-spin { animation: none !important; }
  .fx-fall, .fx-rise, .fx-glide { display: none; }
}

/* ─── PRODUCT FILTER BAR ─────────────────────────── */
.filter-bar {
  background: var(--white);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--nav-height);
  z-index: var(--z-raised);
  box-shadow: var(--shadow-sm);
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  letter-spacing: 0.02em;
}
.filter-btn:hover { border-color: var(--navy-400); color: var(--navy-700); }
.filter-btn.active {
  background: var(--grad-navy);
  color: var(--gold-300);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ─── PRODUCT GRID ───────────────────────────────── */
.products-section { background: var(--cream); }
.products-section > .container,
.advantages-section > .container {
  max-width: 1260px;
  padding-inline: clamp(1rem, 3.5vw, 2.5rem);
}
@media (min-width: 1600px) {
  .products-section > .container,
  .advantages-section > .container {
    max-width: 1440px;
  }
}

.products-grid,
.products-grid--trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  width: 100%;
  max-width: none;
  margin: 0;
  align-items: stretch;
  justify-items: stretch;
}

/* Agricultural Inputs page: centered divider accent line aligned to grid width */
.page-agri .product-category-divider {
  max-width: none;
}
/* mirrored line before the heading so it sits in the middle */
.page-agri .product-category-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(270deg, var(--color-border), transparent);
}
.page-agri .product-section-header p { max-width: 680px; }
.page-agri .product-cta-banner p     { max-width: 580px; }

/* ─── PRODUCT CARD (Unified Editorial Style, Zero Hover Flicker) ── */
.product-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 36, 25, 0.08), 0 1px 3px rgba(10, 36, 25, 0.06);
  border: 1px solid rgba(10, 36, 25, 0.1);
  transition: box-shadow 220ms var(--ease-out),
              border-color 220ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.product-card:focus-within {
  border-color: rgba(232, 163, 23, 0.55);
}
.product-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  background: var(--navy-800);
}
.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 36, 25, 0.16) 0%, transparent 38%, rgba(10, 36, 25, 0.22) 100%);
  pointer-events: none;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  will-change: transform;
  transition: transform 420ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: 0 14px 36px rgba(10, 36, 25, 0.14), 0 4px 12px rgba(232, 163, 23, 0.14);
    border-color: rgba(232, 163, 23, 0.45);
  }
  .product-card:hover .product-card-image img {
    transform: scale(1.04) translateZ(0);
  }
}
.product-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.78rem;
  background-color: var(--gold-400);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(10, 36, 25, 0.22);
}
.product-export-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.78rem;
  background-color: rgba(10, 36, 25, 0.9);
  color: var(--gold-200);
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 201, 77, 0.35);
  border-radius: var(--radius-full);
}
.product-card-body {
  padding: clamp(1.25rem, 2vw, 1.5rem);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card-body h3 {
  font-size: clamp(1.25rem, 1.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-800);
  margin-bottom: 0.25rem;
}
.product-card-body .product-scientific {
  flex: 0 0 auto;
  font-size: 0.85rem;
  line-height: 1.45;
  min-height: 2.5em;
  color: var(--color-text-light);
  font-style: italic;
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(10, 36, 25, 0.08);
}
.product-card-body p:not(.product-scientific) {
  font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 1.15rem;
  flex: 1 1 auto;
}
.product-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  padding: 0.9rem 1rem;
  min-height: 112px;
  align-content: center;
  background: linear-gradient(180deg, #f3f8f5 0%, #eaf3ee 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 60, 41, 0.11);
}
.product-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-800);
  font-family: var(--font-display);
  line-height: 1.25;
}
.spec-value {
  font-size: 0.9rem;
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-applications {
  margin-bottom: 1rem;
}
.product-applications .apps-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.apps-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.4rem;
  min-height: 60px;
}
.app-tag {
  padding: 0.28rem 0.72rem;
  background: var(--ivory);
  border: 1px solid rgba(18, 60, 41, 0.14);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--navy-700);
  font-weight: 500;
}
.product-packaging {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, rgba(232, 163, 23, 0.11) 0%, rgba(255, 248, 224, 0.65) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 163, 23, 0.24);
  border-left: 3px solid var(--gold-500);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--gold-900);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.packaging-icon { font-size: 16px; flex-shrink: 0; line-height: 1.2; }
.product-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 36, 25, 0.1);
}
.product-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 28px;
}
.product-quality-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  background-color: rgba(44, 125, 82, 0.09);
  border: 1px solid rgba(44, 125, 82, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--navy-600);
  font-weight: 600;
}
.product-quality-badge::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--green-500);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.product-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.22rem 0.62rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}
.product-stock-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.product-stock-pill--in {
  background-color: rgba(44, 125, 82, 0.1);
  color: var(--navy-600);
}
.product-stock-pill--in::before { background-color: var(--green-500); }
.product-stock-pill--low {
  background-color: rgba(232, 163, 23, 0.16);
  color: var(--gold-900);
}
.product-stock-pill--low::before { background-color: var(--gold-600); }
.product-stock-pill--out {
  background-color: #fdecea;
  color: #9f1f17;
}
.product-stock-pill--out::before { background-color: #b42318; }

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 28px;
}
.product-price-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  font-family: var(--font-display);
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.product-price-prefix {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
}
.product-price-value strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
}
.product-price-unit {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Primary CTA Button — solid background-color transitions (zero flash/disappearance) */
.product-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 44px;
  padding: 0 1.15rem;
  background-color: var(--navy-700);
  color: var(--gold-200);
  border: 1.5px solid var(--navy-700);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(10, 36, 25, 0.16);
  transition: background-color 180ms ease,
              color 180ms ease,
              border-color 180ms ease,
              box-shadow 180ms ease;
}
.product-cta-btn svg {
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .product-cta-btn:hover:not(:disabled):not([aria-disabled="true"]) {
    background-color: var(--navy-600);
    color: var(--gold-100);
    border-color: var(--gold-500);
    box-shadow: 0 6px 18px rgba(10, 36, 25, 0.24);
  }
}
.product-cta-btn:focus-visible {
  outline: 2.5px solid var(--gold-400);
  outline-offset: 2px;
  background-color: var(--navy-600);
  color: var(--gold-100);
}
.product-cta-btn:active:not(:disabled):not([aria-disabled="true"]) {
  background-color: var(--navy-900);
  color: var(--gold-300);
  border-color: var(--navy-900);
}
.product-cta-btn:disabled,
.product-cta-btn[aria-disabled="true"] {
  background-color: #dde3df;
  color: #4b5d52;
  border-color: #c5cfc9;
  box-shadow: none;
  cursor: not-allowed;
}
.product-cta-btn.is-loading {
  background-color: var(--navy-800);
  color: var(--gold-200);
  border-color: var(--navy-800);
  cursor: progress;
}
.product-cta-btn.is-added {
  background-color: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  box-shadow: 0 4px 14px rgba(44, 125, 82, 0.32);
}

.product-enquire-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 24px;
  padding: 0.15rem 0.25rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(18, 60, 41, 0.32);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.product-enquire-link:hover,
.product-enquire-link:focus-visible {
  color: var(--gold-800);
  text-decoration-color: var(--gold-600);
}

/* ─── QUICK-ADD PICKER (Desktop Popover Modal / Mobile Bottom Sheet) ── */
.qa-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 30);
  background-color: rgba(6, 20, 14, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: qaFadeIn 180ms ease forwards;
}
.qa-dialog {
  width: min(460px, 100%);
  max-height: min(88vh, 680px);
  overflow-y: auto;
  background-color: var(--white);
  border: 1px solid rgba(10, 36, 25, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(6, 20, 14, 0.34);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  animation: qaSlideIn 220ms var(--ease-out) forwards;
}
.qa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.qa-head-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.qa-thumb {
  width: 56px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--navy-800);
}
.qa-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
  margin: 0 0 2px;
}
.qa-unit-price {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-600);
}
.qa-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background-color: var(--navy-50);
  color: var(--navy-800);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.qa-close:hover,
.qa-close:focus-visible {
  background-color: var(--navy-700);
  color: var(--white);
}
.qa-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.qa-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.qa-label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
}
.qa-req { color: #b42318; }
.qa-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qa-size-btn {
  min-width: 60px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(10, 36, 25, 0.2);
  background-color: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.qa-size-btn:hover {
  border-color: var(--gold-500);
  background-color: var(--gold-50);
}
.qa-size-btn.is-active {
  background-color: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--gold-200);
}
.qa-qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.qa-stepper {
  display: inline-flex;
  border: 1.5px solid rgba(10, 36, 25, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
}
.qa-stepper button {
  width: 40px;
  height: 40px;
  background-color: #f3f6f4;
  color: var(--navy-900);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.qa-stepper button:hover { background-color: var(--gold-200); }
.qa-stepper input {
  width: 96px;
  height: 40px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-900);
  background-color: var(--white);
  padding: 0 0.5rem;
}
.qa-unit-toggle {
  display: inline-flex;
  border: 1.5px solid rgba(10, 36, 25, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
}
.qa-unit-toggle button {
  height: 40px;
  padding: 0 0.9rem;
  background-color: var(--white);
  color: var(--navy-800);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.qa-unit-toggle button.is-active {
  background-color: var(--navy-800);
  color: var(--white);
}
.qa-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}
.qa-error {
  background-color: #fdecea;
  color: #9f1f17;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
}
.qa-summary {
  background-color: var(--navy-50);
  border: 1px solid rgba(18, 60, 41, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.qa-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.qa-summary-row strong {
  color: var(--navy-900);
  font-family: var(--font-display);
}
.qa-summary-total {
  padding-top: 0.45rem;
  margin-top: 0.2rem;
  border-top: 1px solid rgba(18, 60, 41, 0.12);
  font-size: 0.9375rem;
}
.qa-summary-total strong {
  font-size: 1.25rem;
  color: var(--navy-900);
}
.qa-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.qa-foot-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.8125rem;
}
.qa-foot-links a {
  color: var(--navy-700);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.qa-foot-links a:hover { color: var(--gold-800); }

@keyframes qaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes qaSlideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Toast styles (shared with CartProvider on category pages) */
.st-toast-region {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-6);
  z-index: calc(var(--z-modal) + 40);
  pointer-events: none;
}
.st-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--navy-900);
  color: var(--white);
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--gold-400);
  max-width: min(92vw, 430px);
  font-size: 0.875rem;
  animation: qaSlideIn 260ms var(--ease-out);
}
.st-toast-icon { color: var(--gold-300); font-weight: 700; }
.st-toast-link { color: var(--gold-300); text-decoration: underline; white-space: nowrap; font-weight: 600; }
.st-toast-close { background: none; border: 0; color: rgba(255,255,255,0.75); font-size: 1.25rem; cursor: pointer; line-height: 1; }

@media (max-width: 680px) {
  .product-card-body .product-scientific,
  .product-specs,
  .apps-tags,
  .product-packaging {
    min-height: 0;
  }
  .qa-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .qa-dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-5) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  }
  .st-toast-region {
    bottom: calc(var(--space-6) + 64px);
    left: var(--space-4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qa-backdrop, .qa-dialog, .st-toast { animation: none; }
  .product-card-image img { transition: none; }
}

/* ─── PRODUCT SECTION HEADER ──────────────────────── */
.product-section-header {
  padding: clamp(2rem, 5vw, 4rem) 0 var(--space-8);
  text-align: center;
}
.product-section-header h2 { margin-bottom: var(--space-4); }
.product-section-header p {
  font-size: clamp(0.95rem, 1.25vw, var(--text-lg));
  max-width: 640px;
  margin-inline: auto;
}
.product-category-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: clamp(2.5rem, 5vw, 4rem) auto var(--space-8);
  width: 100%;
}
.product-category-divider h3 {
  font-size: clamp(1.25rem, 2.2vw, var(--text-2xl));
  color: var(--navy-700);
}
.product-category-divider .line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-border), transparent);
}
@media (max-width: 640px) {
  .product-category-divider {
    gap: var(--space-3);
  }
  .product-category-divider h3 {
    text-align: center;
  }
}

/* ─── CONTACT CTA BANNER ──────────────────────────── */
.product-cta-banner {
  background: var(--grad-navy);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(232,163,23,0.08) 0%, transparent 70%);
}
.product-cta-banner h2 { color: var(--white); margin-bottom: var(--space-4); }
.product-cta-banner p  { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto var(--space-8); font-size: var(--text-lg); }
.product-cta-banner .btn-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── ADVANTAGES SECTION ──────────────────────────── */
.advantages-section {
  background: var(--white);
  padding: var(--space-20) 0;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.advantage-card {
  background: var(--ivory);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  text-align: center;
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (hover: hover) and (pointer: fine) {
  .advantage-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(232, 163, 23, 0.35);
  }
}
.advantage-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.advantage-card:hover::before {
  transform: scaleX(1);
}
.advantage-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: transform var(--duration-base) var(--ease-spring);
}
.advantage-card:hover .advantage-icon-wrap {
  transform: scale(1.08) rotate(4deg);
  border-color: var(--gold-400);
}
.advantage-icon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.advantage-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: var(--space-3);
}
.advantage-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}
@media (max-width: 640px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}
