/* Product detail page (product.html). Shared tokens and components live in css/styles.css.
   Everything here is scoped to .pdp-* so it can't leak into other pages. */

.pdp-page { padding-bottom: var(--s8, 64px); }
.pdp-crumbs { padding: var(--s5, 24px) 0 var(--s4, 16px); }
.pdp-crumbs [aria-current] { color: var(--ink); }

/* ---------- Layout: 7/12 gallery, 5/12 buy box ---------- */
.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s7, 48px);
  align-items: start;
}
/* Both columns are sticky: whichever is shorter stays in view while the taller one scrolls. */
.pdp-buy, .pdp-gallery { position: sticky; top: 88px; }
.pdp-nowrap { white-space: nowrap; }
.pdp-buybox { display: flex; flex-direction: column; gap: var(--s4, 16px); }

/* ---------- Gallery ---------- */
.pdp-gallery { min-width: 0; }
.pdp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius, 8px);
  background: var(--surface);
  overflow: hidden;
}
.pdp-stage-img {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  touch-action: pan-y;
}
.pdp-stage-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-viewer { position: absolute; inset: 0; }
.pdp-viewer[hidden], .pdp-stage-img[hidden] { display: none; }
.pdp-viewer canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.pdp-viewer canvas:active { cursor: grabbing; }
.pdp-hint {
  position: absolute; left: 50%; bottom: var(--s5, 24px); transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px;
  background: rgb(18 19 22 / .78); color: #fff;
  font: 500 var(--t-xs, .75rem)/1.2 var(--font-body);
  pointer-events: none; transition: opacity .4s ease;
}
.pdp-hint.gone { opacity: 0; }

.pdp-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-btn, 6px);
  background: var(--bg); color: var(--ink); cursor: pointer;
  opacity: 0; transition: opacity .15s ease;
}
.pdp-prev { left: var(--s3, 12px); }
.pdp-next { right: var(--s3, 12px); }
.pdp-stage:hover .pdp-arrow, .pdp-arrow:focus-visible { opacity: 1; }
.pdp-arrow:hover { background: var(--surface-2); }
.pdp-stage.is-3d .pdp-arrow { top: auto; bottom: var(--s3, 12px); transform: none; }

.pdp-stage-img img.pdp-in-r { animation: pdp-in-r .26s var(--ease, ease-out); }
.pdp-stage-img img.pdp-in-l { animation: pdp-in-l .26s var(--ease, ease-out); }
@keyframes pdp-in-r { from { opacity: .35; transform: translateX(28px); } }
@keyframes pdp-in-l { from { opacity: .35; transform: translateX(-28px); } }

/* Small dot in the selected filament color (label, caption, swatch chips, sticky bar). */
.pdp-color-dot {
  display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%;
  background: var(--sw, #888); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
  vertical-align: -1px;
}
html[data-theme="dark"] .pdp-color-dot { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }

/* Tag on the stage: "Designer's print in white" on photos, "Your print in Lava Red" in 3D. */
.pdp-caption {
  position: absolute; left: var(--s3, 12px); top: var(--s3, 12px); margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgb(18 19 22 / .72); color: #fff;
  font: 500 var(--t-xs, .75rem)/1.3 var(--font-body);
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pdp-caption .pdp-color-dot { box-shadow: 0 0 0 1.5px rgb(255 255 255 / .85); }
.pdp-caption[hidden] { display: none; }

/* "In your color" / "Original photo": sits under the caption while a color preview is possible. */
.pdp-rc {
  position: absolute; left: var(--s3, 12px); top: calc(var(--s3, 12px) + 34px); z-index: 2;
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgb(18 19 22 / .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pdp-rc[hidden] { display: none; }
.pdp-rc button {
  position: relative; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: rgb(255 255 255 / .78);
  font: 500 var(--t-xs, .75rem)/1 var(--font-body); white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.pdp-rc button:hover { color: #fff; }
.pdp-rc button[aria-pressed="true"] { background: #fff; color: #121316; font-weight: 600; }
.pdp-rc button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (pointer: coarse) { .pdp-rc button::after { content: ""; position: absolute; inset: -7px 0; } } /* 44px tap area */
/* While a recolor is being painted for the first time. */
.pdp-stage.is-busy .pdp-stage-img img { opacity: .82; transition: opacity .2s ease; }

.pdp-3d-pill, .pdp-dots { display: none; }

.pdp-thumbs {
  display: flex; gap: 8px; margin-top: var(--s3, 12px);
  overflow-x: auto; scrollbar-width: none; padding: 3px;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumbs[hidden] { display: none; }
.pdp-thumb {
  flex: 0 0 64px; width: 64px; height: 64px; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: var(--surface); cursor: pointer; color: var(--ink-2);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumb:hover { border-color: var(--muted); }
.pdp-thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); }
.pdp-thumb-3d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 var(--t-xs, .75rem)/1 var(--font-body); }
.pdp-thumb-3d svg { width: 22px; height: 22px; }

/* ---------- Buy box ---------- */
.pdp-cat { align-self: flex-start; color: var(--muted); font-size: var(--t-sm, .875rem); font-weight: 500; text-decoration: none; }
.pdp-cat:hover { color: var(--accent); }
.pdp-title {
  margin: -8px 0 0;
  font: 700 var(--t-3xl, 2.25rem)/1.12 var(--font-display);
  letter-spacing: -0.02em; color: var(--ink);
  text-wrap: balance;
}
.pdp-by { margin: -8px 0 0; color: var(--muted); font-size: var(--t-sm, .875rem); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdp-by a { color: var(--ink-2); font-weight: 500; }
.pdp-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pdp-price { margin: 0; font: 600 var(--t-2xl, 1.75rem)/1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }

.pdp-field { display: flex; flex-direction: column; gap: var(--s2, 8px); padding-top: var(--s4, 16px); border-top: 1px solid var(--line); }
.pdp-field + .pdp-field { border-top: 0; padding-top: 0; }
.pdp-label { margin: 0; font-size: var(--t-sm, .875rem); font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdp-label b { color: var(--ink); font-weight: 600; }
.pdp-color-now { display: inline-flex; align-items: center; gap: 6px; }
.pdp-color-now b { font-size: var(--t-md, 1rem); }

/* Color chips: a dot plus the filament name, so the four colors we sell read at a glance. */
.pdp-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp-swatch {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-btn, 6px);
  background: var(--bg); color: var(--ink-2); cursor: pointer;
  font: 500 var(--t-sm, .875rem)/1.2 var(--font-body); text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pdp-swatch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-swatch .pdp-color-dot { width: 20px; height: 20px; }
.pdp-swatch:hover { border-color: var(--ink-2); }
.pdp-swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 600; background: var(--surface); }
.pdp-swatch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* "Photos show the designer's print in white. Yours will be Lava Red." */
.pdp-note {
  margin: 2px 0 0; padding: 12px 14px; border-radius: var(--radius, 8px);
  background: var(--surface); color: var(--ink-2);
  font-size: var(--t-sm, .875rem); line-height: 1.5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.pdp-note p { margin: 0; }
.pdp-note b { color: var(--ink); font-weight: 600; }
.pdp-note[hidden] { display: none; }
.pdp-link { border: 0; padding: 0; background: none; color: var(--ink-2); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pdp-link:hover { color: var(--accent-text); }
.pdp-note a { color: var(--ink); }
.pdp-note a:hover { color: var(--accent-text); }
.pdp-see3d {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.pdp-see3d:hover { color: var(--accent-text); text-decoration: underline; }
.pdp-see3d svg { width: 18px; height: 18px; flex: none; }

.pdp-qty-field { flex-direction: row; align-items: center; justify-content: space-between; }
.pdp-qty { align-self: flex-start; }

.pdp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: var(--s1, 4px); }
.pdp-add, .pdp-buy-now { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.pdp-add { font-size: var(--t-md, 1rem); }
.pdp-add.is-added, .pdp-add.is-added:hover { background: var(--success); border-color: var(--success); color: var(--on-success); }
.pdp-add svg { width: 20px; height: 20px; }
.pdp-buy-now { min-height: 48px; }

.pdp-pay {
  margin: -6px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--t-sm, .875rem); line-height: 1.4; color: var(--ink-2); text-align: center;
}
.pdp-pay b { color: var(--ink); font-weight: 600; }
.pdp-pay svg { width: 16px; height: 16px; flex: none; color: var(--success); stroke-width: 2.4; }

.pdp-actions { display: flex; align-items: center; gap: var(--s2, 8px); margin-top: -10px; flex-wrap: wrap; }
.pdp-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pdp-actions .btn svg { width: 18px; height: 18px; }
.pdp-share-wrap { position: relative; margin-left: auto; }
.pdp-share-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-raised);
  width: 220px; padding: var(--s4, 16px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius, 8px);
  box-shadow: 0 10px 30px rgb(0 0 0 / .12);
  text-align: center;
}
.pdp-share-pop[hidden] { display: none; }
.pdp-share-pop p { margin: var(--s2, 8px) 0 var(--s3, 12px); font-size: var(--t-sm, .875rem); color: var(--ink-2); }
.pdp-qr { width: 148px; height: 148px; margin: 0 auto; padding: 6px; background: #fff; border-radius: 6px; }
.pdp-qr img, .pdp-qr canvas { width: 100% !important; height: 100% !important; display: block; }

.pdp-delivery {
  margin: 0; display: flex; gap: var(--s3, 12px); align-items: flex-start;
  font-size: var(--t-sm, .875rem); line-height: 1.5; color: var(--ink-2);
}
.pdp-delivery svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--ink); margin-top: 1px; }
.pdp-delivery b { color: var(--ink); font-weight: 600; }

/* .accordion (shared) draws the rows, chevrons and padding. */
.pdp-accordions summary { font-weight: 600; }
.pdp-acc-body { font-size: var(--t-sm, .875rem); line-height: 1.6; color: var(--ink-2); }
.pdp-acc-body p { margin: 0 0 var(--s3, 12px); max-width: 60ch; }
.pdp-acc-body p:last-child { margin-bottom: 0; }
.pdp-specs { margin: var(--s3, 12px) 0 0; display: grid; gap: 0; }
.pdp-specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s3, 12px); padding: 8px 0; border-top: 1px solid var(--line); }
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { margin: 0; color: var(--ink); }

/* Design credit: the one place the page leans in. Flat surface, no shadow. */
.pdp-credit {
  margin-top: var(--s2, 8px);
  padding: var(--s5, 24px);
  background: var(--surface);
  border-radius: var(--radius, 8px);
  display: flex; flex-direction: column; gap: var(--s3, 12px);
}
.pdp-credit-head { display: flex; align-items: center; gap: var(--s3, 12px); }
.pdp-credit-head .avatar { flex: 0 0 auto; }
.pdp-credit-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pdp-credit-name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pdp-credit-name a { color: inherit; text-decoration: none; }
.pdp-credit-name a:hover { color: var(--accent); text-decoration: underline; }
.pdp-credit-role { font-size: var(--t-xs, .75rem); color: var(--muted); }
.pdp-credit-head .license-badge { flex: 0 0 auto; }
.pdp-credit-line { margin: 0; font-size: var(--t-sm, .875rem); line-height: 1.55; color: var(--ink-2); }
.pdp-credit-stat { margin: 0; display: flex; align-items: center; gap: 8px; font-size: var(--t-sm, .875rem); color: var(--muted); }
.pdp-credit-stat svg { width: 16px; height: 16px; flex: 0 0 16px; }
.pdp-credit-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm, .875rem); font-weight: 600; color: var(--ink); }
.pdp-credit-link svg { width: 15px; height: 15px; }
.pdp-credit-link:hover { color: var(--accent); }

/* ---------- What happens after you order ---------- */
.pdp-process { margin-top: var(--s8, 64px); border-top: 1px solid var(--line); }
.pdp-process h2 { margin: 0 0 var(--s5, 24px); font: 700 var(--t-xl, 1.375rem)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.pdp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5, 24px); counter-reset: pdp-step; }
.pdp-steps li { counter-increment: pdp-step; display: flex; flex-direction: column; gap: 6px; position: relative; padding-top: var(--s7, 48px); }
.pdp-steps li::before {
  content: counter(pdp-step);
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-hover);
  font: 600 var(--t-sm, .875rem)/1 var(--font-body);
}
.pdp-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 16px; left: 44px; right: calc(-1 * var(--s5, 24px) + 12px);
  height: 1px; background: var(--line);
}
.pdp-steps b { color: var(--ink); font-weight: 600; }
.pdp-steps span { font-size: var(--t-sm, .875rem); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }

.pdp-more .section-head h2 { margin: 0; }

/* ---------- Missing product ---------- */
.pdp-missing { padding-top: var(--s7, 48px); }
.pdp-empty { text-align: center; padding: var(--s8, 64px) var(--s4, 16px); max-width: 520px; margin: 0 auto; }
.pdp-empty h1 { margin: 0 0 var(--s3, 12px); font: 700 var(--t-2xl, 1.75rem)/1.2 var(--font-display); color: var(--ink); }
.pdp-empty p { margin: 0 0 var(--s5, 24px); color: var(--ink-2); }

/* ---------- Loading skeleton ---------- */
.pdp-skeleton { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7, 48px); padding-top: 64px; }
.pdp-skel-media { aspect-ratio: 1 / 1; border-radius: var(--radius, 8px); }
.pdp-skel-info { display: flex; flex-direction: column; gap: var(--s4, 16px); }
.pdp-skel-info .skeleton { border-radius: 6px; }
.pdp-skeleton .skeleton:not([style*="background"]) { background-color: var(--surface-2); }

/* ---------- Lightbox ---------- */
.pdp-lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(10 10 12 / .94); color: #fff;
}
.pdp-lightbox[open] { display: grid; place-items: center; }
.pdp-lightbox::backdrop { background: rgb(10 10 12 / .6); }
.pdp-lightbox img { max-width: min(92vw, 1200px); max-height: 86vh; max-height: 86dvh; object-fit: contain; border-radius: 4px; touch-action: pan-y; }
.pdp-lb-count { position: absolute; bottom: var(--s5, 24px); left: 50%; transform: translateX(-50%); margin: 0; font-size: var(--t-sm, .875rem); color: rgb(255 255 255 / .75); font-variant-numeric: tabular-nums; }
.pdp-lb-btn {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-btn, 6px); background: rgb(255 255 255 / .1); color: #fff; cursor: pointer;
}
.pdp-lb-btn:hover { background: rgb(255 255 255 / .2); }
.pdp-lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pdp-lb-close { top: var(--s4, 16px); right: var(--s4, 16px); }
.pdp-lb-prev { left: var(--s4, 16px); top: 50%; transform: translateY(-50%); }
.pdp-lb-next { right: var(--s4, 16px); top: 50%; transform: translateY(-50%); }

/* ---------- Mobile sticky bar ---------- */
.pdp-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pdp-top, .pdp-skeleton { gap: var(--s6, 32px); }
  .pdp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6, 32px); }
  .pdp-steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 899px) {
  .pdp-top, .pdp-skeleton { grid-template-columns: 1fr; gap: var(--s5, 24px); }
  .pdp-buy, .pdp-gallery { position: static; }
  .pdp-crumbs { padding: var(--s4, 16px) 0 var(--s3, 12px); }
  .pdp-title { font-size: var(--t-2xl, 1.75rem); }
  .pdp-process { margin-top: var(--s7, 48px); }

  /* Gallery goes edge to edge; swipe the photo, or tap a thumbnail (the last one is 3D). */
  .pdp-gallery { margin-inline: calc(-1 * var(--gutter, 16px)); }
  .pdp-stage { border-radius: 0; }
  .pdp-thumbs { margin-top: 10px; padding: 3px var(--gutter, 16px); gap: 8px; scroll-padding-inline: var(--gutter, 16px); }
  .pdp-thumb { flex-basis: 56px; width: 56px; height: 56px; }
  .pdp-rc button { min-height: 36px; padding: 0 14px; }
  .pdp-rc { top: calc(var(--s3, 12px) + 32px); }
  .pdp-arrow { display: none; }
  .pdp-dots { display: flex; gap: 6px; position: absolute; bottom: 18px; left: var(--s3, 12px); pointer-events: none; }
  .pdp-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(0 0 0 / .18); transition: width .2s ease, background .2s ease; }
  .pdp-dots span.on { width: 16px; background: #fff; }
  .pdp-3d-pill {
    display: inline-flex; align-items: center; gap: 6px;
    position: absolute; right: var(--s3, 12px); bottom: var(--s3, 12px);
    min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--bg); color: var(--ink); font: 600 var(--t-sm, .875rem)/1 var(--font-body); cursor: pointer;
    box-shadow: 0 2px 10px rgb(0 0 0 / .12);
  }
  .pdp-3d-pill svg { width: 18px; height: 18px; }
  .pdp-stage.is-3d .pdp-dots { display: none; }
  /* In 3D the loader sits at the bottom, so move the Photos button up to the corner. */
  .pdp-stage.is-3d .pdp-3d-pill { top: var(--s3, 12px); bottom: auto; }

  .pdp-buybox { gap: 14px; }
  .pdp-title { margin-top: -6px; }
  .pdp-price { font-size: var(--t-xl, 1.375rem); }
  .pdp-swatch { min-height: 48px; }
  .pdp-add { min-height: 54px; }
  .pdp-accordions summary { min-height: 56px; }
  .pdp-credit { padding: var(--s4, 16px); }

  /* Related and more-from-designer: one swipeable row instead of a tall grid. */
  .pdp-more .card-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%;
    gap: var(--s3, 12px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter, 16px)); padding: 2px var(--gutter, 16px) 4px; scroll-padding-inline: var(--gutter, 16px);
    scrollbar-width: none;
  }
  .pdp-more .card-grid::-webkit-scrollbar { display: none; }
  .pdp-more .card-grid > * { scroll-snap-align: start; min-width: 0; }
  .pdp-more .section-head h2 { font-size: var(--t-lg, 1.125rem); }

  .pdp-bar {
    display: flex; align-items: center; gap: var(--s3, 12px);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
    min-height: 68px;
    padding: 10px var(--gutter, 16px) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgb(0 0 0 / .08);
    transform: translateY(110%); transition: transform .22s ease, visibility .22s;
    visibility: hidden;
  }
  .pdp-bar.show { transform: none; visibility: visible; }
  .pdp-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.2; }
  .pdp-bar-text b { font: 600 var(--t-lg, 1.125rem)/1.1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
  .pdp-bar-color { display: flex; align-items: center; gap: 6px; font-size: var(--t-sm, .875rem); color: var(--ink-2); min-width: 0; }
  .pdp-bar-color span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pdp-bar .btn { flex: 0 0 auto; min-height: 48px; padding-inline: 28px; font-weight: 600; }
  /* Room for the sticky bar so it never hides the footer (this file only loads on product.html). */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* Keep toasts above the buy bar while it shows (bar is 69px tall). */
  body:has(.pdp-bar.show) { --toast-lift: 84px; }
}

@media (max-width: 560px) {
  .pdp-steps { grid-template-columns: 1fr; gap: var(--s5, 24px); }
  .pdp-steps li { padding: 0 0 0 48px; min-height: 32px; }
  .pdp-steps li::after { display: none; }
  .pdp-steps li:not(:last-child)::before { box-shadow: none; }
  .pdp-specs div { grid-template-columns: 8em 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pdp-bar, .pdp-hint, .pdp-dots span, .pdp-swatch { transition: none; }
  .pdp-stage-img img.pdp-in-r, .pdp-stage-img img.pdp-in-l { animation: none; }
}

/* "Make it two colors" (designs in LU.colorParts): a toggle under the swatches, then a second swatch row. */
.pdp-two { display: grid; gap: 10px; }
.pdp-two-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px dashed var(--line-strong, var(--line)); border-radius: var(--radius-btn, 6px);
  background: transparent; color: var(--ink); cursor: pointer; font: 600 var(--t-sm, .875rem)/1.2 var(--font-body);
}
.pdp-two-toggle:hover { border-color: var(--ink-2); }
.pdp-two-toggle[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: var(--surface); }
.pdp-two-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pdp-two-dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--accent) 0 50%, var(--ink) 50% 100%); flex: none; }
.pdp-two-pick { display: grid; gap: 8px; }
.pdp-two-pick[hidden] { display: none; }
.pdp-two-where { margin: 0; font-size: var(--t-sm, .875rem); color: var(--muted); line-height: 1.5; }
