/* Shannana Foods — product detail page. Loaded after style.css/forms.css/i18n.css. */
.product-page { padding:132px 0 84px; min-height:62vh; }
.crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:26px; font-size:14px; color:var(--muted); }
.crumbs a:hover { color:var(--brand-red); }
.crumbs [aria-current] { color:var(--ink); font-weight:800; }
.crumbs .sep::before { content:"›"; }
html[dir="rtl"] .crumbs .sep::before { content:"‹"; }
.pd { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(28px,5vw,64px); align-items:center; }
.pd-media { display:flex; align-items:center; justify-content:center; aspect-ratio:1/1; padding:clamp(24px,4vw,44px); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.pd-image { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; filter:drop-shadow(0 20px 26px rgba(0,0,0,.14)); }
.pd-info h1 { margin:14px 0 14px; font-size:clamp(32px,4vw,52px); line-height:1.2; }
.pd-desc { margin:0 0 30px; font-size:18px; line-height:1.9; color:var(--muted); white-space:pre-line; }
.pd-actions { display:flex; flex-wrap:wrap; gap:12px; }
.pd-back { display:inline-block; margin-top:28px; font-weight:800; color:var(--olive-dark); }
.pd-back:hover { color:var(--brand-red); }
.pd-missing { max-width:560px; margin:0 auto; padding:36px 0 20px; text-align:center; }
.pd-missing h1 { margin:0 0 12px; font-size:clamp(30px,4vw,44px); }
.pd-missing p { margin:0 0 26px; color:var(--muted); font-size:18px; }

/* Consumer-facing product specifications */
.pd-specs { margin-top:clamp(42px,6vw,72px); padding:clamp(22px,3.5vw,36px); background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); }
.pd-specs-heading { margin-bottom:22px; }
.pd-specs-kicker { display:block; margin-bottom:5px; color:var(--olive-dark); font-size:13px; font-weight:900; }
.pd-specs-heading h2 { margin:0; color:var(--ink); font-size:clamp(23px,3vw,32px); font-weight:900; }
.pd-spec-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.pd-spec-card { display:flex; align-items:center; gap:12px; min-width:0; padding:16px; background:var(--cream); border:1px solid rgba(36,32,30,.07); border-radius:18px; }
.pd-spec-icon { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:13px; background:#edf1e7; color:var(--olive-dark); font-size:22px; font-weight:900; }
.pd-spec-card-copy { display:flex; flex-direction:column; min-width:0; gap:2px; }
.pd-spec-card-copy span { color:var(--muted); font-size:12px; font-weight:700; }
.pd-spec-card-copy strong { color:var(--ink); font-size:16px; font-weight:900; overflow-wrap:anywhere; }
.pd-spec-list { margin:0; border-top:1px solid var(--line); }
.pd-spec-row { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(0,1.3fr); gap:18px; padding:15px 4px; border-bottom:1px solid var(--line); }
.pd-spec-row:last-child { border-bottom:0; }
.pd-spec-row dt { color:var(--muted); font-size:14px; font-weight:800; }
.pd-spec-row dd { margin:0; color:var(--ink); font-size:15px; line-height:1.8; font-weight:700; white-space:pre-line; overflow-wrap:anywhere; }

@media (max-width:820px) {
  .product-page { padding:112px 0 60px; }
  .pd { grid-template-columns:1fr; }
  .pd-media { aspect-ratio:auto; min-height:300px; }
  .pd-desc { font-size:17px; }
  .pd-actions .btn { flex:1 1 100%; }
  .pd-spec-cards { grid-template-columns:1fr; }
  .pd-spec-row { grid-template-columns:1fr; gap:4px; padding:13px 2px; }
}

/* Minimal arrow-only scroll cue, centered at the bottom of the viewport. */
.pd-scroll-cue {
  display:none;
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom, 0px));
  z-index:50;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid rgba(113,140,63,.24);
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--olive-dark);
  box-shadow:0 5px 20px rgba(41,37,36,.14);
  text-decoration:none;
  transform:translateX(-50%);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:1;
  visibility:visible;
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease, background-color .2s ease, box-shadow .2s ease;
}
.pd-scroll-cue.is-hidden {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(-50%, 8px);
}
.pd-scroll-cue-end {
  width:1px;
  height:1px;
  pointer-events:none;
}
/* Show only when the server rendered a specifications section. */
.product-page .container:has(.pd-specs) .pd-scroll-cue { display:flex; }
.pd-scroll-cue:hover {
  background:#fff;
  box-shadow:0 7px 24px rgba(41,37,36,.19);
}
.pd-scroll-cue:active { transform:translateX(-50%) scale(.94); }
.pd-scroll-cue:focus-visible {
  outline:3px solid rgba(113,140,63,.38);
  outline-offset:4px;
}
.pd-scroll-cue svg { animation:pd-scroll-down 1.45s ease-in-out infinite; }
.pd-specs-heading h2 { scroll-margin-top:120px; }
html { scroll-behavior:smooth; }
@keyframes pd-scroll-down {
  0%, 100% { transform:translateY(-2px); }
  50% { transform:translateY(4px); }
}


@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .pd-scroll-cue,
  .pd-scroll-cue-icon svg { transition:none !important; animation:none !important; }
  .pd-spec-card { transition:none !important; }
}
