/* Product page ("Specimen File"). Mobile order: gallery → title/price → flavor → sour → pack/qty → Add → info. */

.pdp-wait .pdp-main { visibility: hidden; }

/* ---------- breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #6b7563; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); }

/* ---------- layout ---------- */
.pdp { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 8px; }
  .gallery { position: sticky; top: calc(var(--hdr-h) + 24px); }
  .info { max-width: 540px; }
}

/* ---------- gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.stage {
  --stage-w: clamp(180px, 56vw, 300px);
  position: relative; aspect-ratio: 1; border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(58% 62% at 50% 58%, color-mix(in srgb, var(--c) 30%, transparent), transparent 74%), var(--s2);
}
@media (min-width: 900px) { .stage { --stage-w: clamp(240px, 26vw, 330px); } }
.view { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center; }
.view .pack { transform: rotate(-3deg); }
.view.slot { inset: 16px; border: 2px dashed var(--line-2); border-radius: 14px; background: #000a; }
.view.slot > .i { width: 32px; height: 32px; color: var(--muted); }
.view.slot .small { max-width: 34ch; }
.close-gummies { display: flex; gap: 14px; --s: 64px; margin-bottom: 8px; }
.close-gummies .gummy:nth-child(2) { transform: translateY(-14px) rotate(8deg); }
.close-gummies .gummy:nth-child(3) { transform: rotate(-10deg); }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line-2); font-size: 14px; font-weight: 500; transition: border-color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out); }
.thumbs button[aria-pressed="true"] { background: var(--text); color: #000; border-color: var(--text); }

/* ---------- buy box ---------- */
.info { display: flex; flex-direction: column; gap: 18px; }
.pdp-title [data-f="name"] { color: var(--ink); }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pdp-price b { font: 600 28px/1.1 var(--mono); }
.pdp-blurb { font-size: 17px; }
.opt-label { font-size: 15px; font-weight: 500; color: var(--muted); }
.opt-label b { color: var(--text); font-weight: 600; }

.swatches { list-style: none; display: flex; gap: 6px; margin-top: 10px; }
.swatches li { flex: 1; max-width: 76px; }
.swatches a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 6px 2px; border-radius: 14px; font-size: 13px; color: var(--muted); }
.sw { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 3px solid #000; box-shadow: 0 0 0 2px var(--line-2); transition: box-shadow var(--d-hover) var(--ease-out), transform var(--d-hover) var(--ease-out); }
@media (hover: hover) { .swatches a:hover .sw { transform: translateY(-2px); } }
.swatches a[aria-current] { color: var(--text); font-weight: 600; }
.swatches a[aria-current] .sw { box-shadow: 0 0 0 3px var(--text); }
.swatches a[aria-current] .sw-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.sour-row { display: flex; flex-direction: column; gap: 4px; }
.sour-line { display: flex; align-items: center; gap: 10px; }

.buy { display: flex; flex-direction: column; gap: 16px; }
.packs { border: 0; display: flex; flex-direction: column; gap: 10px; }
.packs legend { margin-bottom: 10px; }
.pack-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 2px solid var(--line-2); border-radius: 16px; cursor: pointer; transition: border-color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out); }
.pack-opt input { width: 22px; height: 22px; }
.pack-opt:has(input:checked) { border-color: var(--slime); background: #7cff2b0d; }
.pack-opt:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.po-main { display: flex; flex-direction: column; gap: 2px; }
.po-price { display: flex; flex-direction: column; align-items: flex-end; font: 600 17px/1.3 var(--mono); }
.po-save { font: 600 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-row .qty { margin-top: 0; }
.qty-row .qty button { width: 44px; height: 44px; }
.qty-row .qty button:disabled { opacity: .35; cursor: default; }
.pdp-add.added, .pdp-bar .btn.added { --bg: var(--text); }

.assure { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.assure li:first-child { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.assure .i { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- accordions ---------- */
.acc { border-bottom: 1px solid var(--line); margin-top: 8px; }
.acc details { border-top: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--d-hover) var(--ease-out); }
.acc details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; color: var(--muted); }
.acc-body .link { color: var(--slime); }
.facts { display: grid; gap: 6px; font-size: 15px; }
.facts div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--text); }

/* ---------- pairs with ---------- */
.pairs { padding-bottom: 0; }
.pair-list { list-style: none; display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pair-art { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: var(--s3); }
.pair-art.gift .i { width: 32px; height: 32px; color: var(--muted); }
.pair-body { display: flex; flex-direction: column; gap: 4px; }
.pair-body a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
@media (hover: hover) { .pair-body a:hover { text-decoration-color: currentColor; } }
.pair-buy { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pair-buy b { font-size: 18px; }
.pair-add { --bg: transparent; --fg: var(--text); min-height: 44px; border: 2px solid var(--slime); box-shadow: none; }
.pair-add .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .pair-add:hover { --bg: var(--slime); --fg: #000; transform: none; box-shadow: none; } }
.pair-add:active { --bg: var(--slime); --fg: #000; transform: scale(.97); box-shadow: none; }
@media (min-width: 700px) {
  .pair { grid-template-columns: 72px 1fr auto; align-items: center; }
  .pair-buy { grid-column: auto; gap: 20px; }
}

/* ---------- reviews ---------- */
.reviews { display: flex; flex-direction: column; gap: 8px; }
.reviews p { padding: 20px; border: 2px dashed var(--line-2); border-radius: var(--r-card); }

/* ---------- not found ---------- */
.notfound { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* ---------- mobile action bar ---------- */
.pdp-bar { transform: translateY(110%); visibility: hidden; transition: transform var(--d-state) var(--ease-in), visibility 0s linear var(--d-state); }
.pdp-bar.on { transform: none; visibility: visible; transition: transform var(--d-state) var(--ease-out), visibility 0s; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin-inline: auto; }
.bar-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bar-info b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-info span { font-size: 15px; }
@media (max-width: 899px) { html.has-bar { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }
