/* Product page and quick view, from the Product Page Redesign. Builds on .product-page in styles.css. */

.pp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 20px 0 0;
  border: 0;
  text-align: left;
}
.pp .card__body { align-items: stretch; text-align: left; gap: 20px; padding: 0; }
.pp .crumbs { margin: 0 0 6px; }

/* Photos */
.pp-gallery { display: flex; flex-direction: column; gap: 12px; justify-items: stretch; }
.pp-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #f5f3f3;
}
.pp .pp-gallery__main img.media--photo { width: 100%; max-width: none; height: 100%; object-fit: contain; }
.pp-gallery__caption {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--red-ink);
  font-size: 12px;
  font-weight: 700;
}
.pp-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; justify-content: stretch; }
.pp-gallery__thumb.product-gallery__thumb {
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f5f3f3;
}
.pp-gallery__thumb[aria-pressed="true"] { border-color: var(--red-ink); }
.pp-video-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}
.pp-video-link__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red-ink);
  color: #fff;
}
.pp-video-link__text { display: flex; flex-direction: column; line-height: 1.3; }
.pp-video-link__text strong { font-size: 14px; color: var(--ink); }
.pp-video-link__text span { font-size: 12px; color: var(--muted); }

/* Name, price, facts */
.pp-head { display: flex; flex-direction: column; gap: 8px; }
.pp-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-dark); }
.pp .product-page__title { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; color: var(--red-ink); }
.pp-lead { font-size: 16px; color: #4a3d3f; }
.pp-lead p { margin: 0 0 8px; }
.pp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pp .card__price { margin: 0; font-size: 28px; font-weight: 800; color: var(--ink); }
.pp-stock { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pp-stock--in { background: #e8f6ee; color: #17663a; }
.pp-stock--out { background: #fdecec; color: #9b1c1c; }
.pp-stock--backorder { background: #fff7e6; color: #6b4a00; }
.pp-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pp-glance li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--red-soft);
  color: var(--red-ink);
}
.pp-glance span { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--text); }

/* Options */
.pp-opts { gap: 16px; }
.pp-opt { gap: 10px; }
.pp-opt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pp-opt__head .opt__name { font-size: 13px; letter-spacing: 0.08em; color: var(--text); }
.pp-opt__head a { font-size: 13px; font-weight: 600; color: var(--red-dark); }
.pp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pp-choice {
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid #e2d3d5;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.pp-choice[aria-pressed="true"] { border: 2px solid var(--red-ink); background: var(--red-soft); color: var(--red-ink); }
/* The select stays for the add-to-cart logic while the buttons show; `.opt select` would size it. */
.pp-opt select.pp-hidden {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pp-help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f5f5;
  color: #4a3d3f;
  font-size: 13px;
}
.pp-help svg { flex: none; margin-top: 1px; color: var(--muted); }

/* Quantity, add to cart, help lines */
.pp-buy { display: flex; gap: 12px; align-items: stretch; }
.pp .pp-buy .qty--pick { flex: none; align-self: stretch; }
.pp .pp-buy .btn--add { flex: 1; width: auto; min-height: 52px; }
.pp-trust {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: #4a3d3f;
  font-size: 13px;
}
.pp-trust li { display: flex; gap: 10px; align-items: center; }
.pp-trust svg { flex: none; color: var(--red-ink); }
.pp-trust a { color: var(--red-dark); font-weight: 600; }

/* Sections below */
.pp-below { padding-bottom: 72px; }
.pp-jump {
  position: sticky;
  top: var(--pp-header, 0px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 56px 0 0;
  padding: 12px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pp-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.pp-jump__link--video { background: var(--red-ink); color: #fff; }
.pp-sec { padding: 64px 0 0; scroll-margin-top: calc(var(--pp-header, 0px) + 72px); }
.pp-sec__summary { display: none; }
.pp-sec__body { display: flex; flex-direction: column; gap: 18px; }
.pp-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-dark); }
.pp-h2 { margin: 0; font-size: 28px; line-height: 1.2; text-transform: none; color: var(--red-ink); }
.pp-muted { margin: 0; color: var(--muted); }
.pp-center { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }

.pp-box { display: grid; gap: 40px; align-items: center; }
.pp-box__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #f5f3f3; }
.pp-box__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-box__text { display: flex; flex-direction: column; gap: 18px; }
.pp-box__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pp-box__list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.pp-box__list strong { color: var(--ink); }
.pp-box__qty {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-ink);
  color: #fff;
  font-weight: 800;
}
.pp-note { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff7e6; color: #6b4a00; font-size: 13px; }
.pp-note a { color: #6b4a00; }

.pp-how { gap: 28px; }
.pp-video { display: grid; gap: 24px; scroll-margin-top: calc(var(--pp-header, 0px) + 72px); }
.pp-video__player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #1a1213; }
.pp-video__player video,
.pp-video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-video__side { display: flex; flex-direction: column; gap: 12px; }
.pp-video__side h3 { margin: 0; font-size: 18px; text-transform: none; color: var(--ink); }
.pp-video__more { margin-top: auto; font-size: 13px; }
.pp-chapters { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pp-chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pp-chapter[aria-current="step"] { border: 2px solid var(--red-ink); background: var(--red-soft); }
.pp-chapter__n {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red-ink);
  font-size: 13px;
  font-weight: 800;
}
.pp-chapter[aria-current="step"] .pp-chapter__n { background: var(--red-ink); color: #fff; }
.pp-chapter__title { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
.pp-chapter__time { font-size: 12px; font-weight: 600; color: var(--muted); }
.pp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pp-step { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.pp-step__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f3f3; }
.pp-step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-step__text { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.pp-step__n { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-dark); }
.pp-step h3 { margin: 0; font-size: 17px; text-transform: none; color: var(--ink); }
.pp-step p { margin: 0; font-size: 14px; color: #4a3d3f; }
.pp-tip { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 0; font-size: 14px; color: #4a3d3f; }
.pp-tip svg { flex: none; color: var(--red-ink); }

.pp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.pp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.pp-table th {
  padding: 14px 20px;
  background: var(--red-soft);
  color: var(--red-ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}
.pp-table td { padding: 16px 20px; border-top: 1px solid var(--line); }
.pp-table a { color: var(--red-dark); font-weight: 600; }
.pp-table__cards { font-weight: 700; color: var(--ink); }
.pp-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.pp-pill--ok { background: #e8f6ee; color: #17663a; }
.pp-pill--warn { background: #fff7e6; color: #6b4a00; }

.pp-prose { max-width: 75ch; color: var(--text); }
.pp-prose p { margin: 0 0 12px; }

.pp-pair { display: grid; gap: 0 32px; }
.pp-specs { display: grid; grid-template-columns: 160px 1fr; margin: 0; border-top: 1px solid var(--line); font-size: 14px; }
.pp-specs dt,
.pp-specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-specs dt { color: var(--muted); }
.pp-specs dd { font-weight: 600; }
.pp-care { display: flex; flex-direction: column; gap: 12px; }
.pp-care__item { display: flex; gap: 14px; padding: 16px; border-radius: 12px; background: #f7f5f5; }
.pp-care__item p { margin: 4px 0 0; font-size: 14px; color: var(--text); }
.pp-care__item .pp-icon { flex: none; color: var(--muted); }
.pp-care__item--do { background: #e8f6ee; }
.pp-care__item--do strong,
.pp-care__item--do .pp-icon { color: #17663a; }
.pp-care__item--dont { background: var(--red-soft); }
.pp-care__item--dont strong,
.pp-care__item--dont .pp-icon { color: var(--red-ink); }
.pp-faq { max-width: 820px; }
.pp-faq .faq details p { margin: 0 0 12px; }

.pp-more { display: flex; flex-direction: column; gap: 24px; padding: 72px 0 0; }
.pp-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pp-more__card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; }
.pp-more__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f3f3; }
.pp-more__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-more__text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.pp-more__kicker { font-size: 12px; font-weight: 700; color: var(--muted); }
.pp-more__name { font-weight: 700; color: var(--ink); }
.pp-more__price { font-weight: 800; color: var(--red-ink); }
.pp-more__price s { margin-right: 6px; font-weight: 500; color: var(--muted); }
.pp .card__price s { margin-right: 8px; font-size: 0.7em; font-weight: 500; color: var(--muted); }

@media (min-width: 900px) {
  .pp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; }
  .pp-box { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .pp-box:not(:has(.pp-box__media)) { grid-template-columns: minmax(0, 1fr); }
  .pp-video { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pp-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: sections fold into accordions under a scrolling jump bar. */
@media (max-width: 719px) {
  .pp-glance { gap: 8px; }
  .pp-glance li { padding: 10px; }
  .pp-glance .pp-icon { display: none; }
  .pp-glance span { font-size: 12px; }
  .pp-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 24px; padding: 10px 0; }
  .pp-jump::-webkit-scrollbar { display: none; }
  .pp-jump__link { flex: none; }
  .pp-sec { padding: 0; border-bottom: 1px solid var(--line); }
  .pp-sec__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .pp-sec__summary::-webkit-details-marker { display: none; }
  .pp-sec__summary::after { content: "+"; font-size: 22px; font-weight: 600; color: var(--red-ink); }
  .pp-sec[open] > .pp-sec__summary { color: var(--red-ink); }
  .pp-sec[open] > .pp-sec__summary::after { content: "−"; }
  .pp-sec__body { padding-bottom: 20px; }
  .pp-sec__body > .pp-kicker,
  .pp-sec__body > .pp-center .pp-kicker,
  .pp-box__text > .pp-kicker { display: none; }
  .pp-h2 { font-size: 20px; }
  .pp-more { padding-top: 32px; }
  .pp-more__grid { display: flex; overflow-x: auto; }
  .pp-more__card { flex: none; width: 220px; }
}

/* The quick view shows the top of the page only, in one column. */
.qv .pp { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
@media (min-width: 900px) {
  .qv .pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
