/* ════════════ Product detail ════════════ */

.pdp-crumbs { padding-block: var(--s-5) 0; }
.pdp { padding-block: var(--s-5) var(--section-y); }
.pdp__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3.5vw, 5rem); align-items: start; }

/* Gallery */
.pdp-gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-4); position: sticky; top: calc(var(--header-h) + 64px); }
.pdp-gallery--single { grid-template-columns: minmax(0, 1fr); }
.pdp-thumbs { height: 100%; max-height: 560px; margin: 0; width: 84px; }
.pdp-thumbs .swiper-slide { height: 84px !important; background: var(--fog); cursor: pointer; border: 1px solid transparent; opacity: .7; transition: opacity var(--t-fast), border-color var(--t-fast); }
.pdp-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.pdp-thumbs .swiper-slide-thumb-active, .pdp-thumbs .swiper-slide:hover { opacity: 1; border-color: var(--ink); }
.pdp-main { position: relative; min-width: 0; }
.pdp-main__swiper { background: var(--fog); }
.pdp-main__swiper .swiper-slide { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pdp-main__swiper .swiper-slide img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; cursor: zoom-in; }
.pdp-main__nav { width: 44px !important; height: 44px !important; margin-top: -22px !important; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink) !important; opacity: 0; transition: opacity var(--t-fast); }
.pdp-main__nav::after { font-size: 14px !important; font-weight: 700; }
.pdp-main:hover .pdp-main__nav, .pdp-main__nav:focus-visible { opacity: 1; }
.pdp-main__nav.swiper-button-disabled { opacity: 0 !important; }
.pdp-main__dots { display: none; }
.pdp-main__badges { position: absolute; z-index: 2; top: var(--s-4); left: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); list-style: none; pointer-events: none; }

/* Info */
.pdp-info { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.pdp-info__titlebar { margin-top: calc(var(--s-3) * -1); }
.pdp-info__price { display: grid; gap: var(--s-2); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.pdp-sizes { display: grid; gap: 0; }
.pinfo__buy .qty { flex: 0 0 auto; }
.wish-toggle .ic-on, .wish-toggle[aria-pressed="true"] .ic-off { display: none; }
.wish-toggle[aria-pressed="true"] .ic-on { display: block; }
.pdp-perks { list-style: none; display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--fog); font-size: var(--fs-sm); }
.pdp-perks li { display: flex; align-items: center; gap: var(--s-3); }
.pdp-perks .ic { width: 20px; height: 20px; color: var(--signal-ink); }

@media (max-width: 1023px) {
  .pdp__layout { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery { position: static; grid-template-columns: minmax(0, 1fr); }
  .pdp-thumbs { order: 2; width: 100%; height: auto; max-height: none; }
  .pdp-thumbs .swiper-slide { height: auto !important; aspect-ratio: 1 / 1; }
}
@media (max-width: 767px) {
  .pdp-crumbs { display: none; }
  .pdp { padding-top: 0; }
  .pdp__layout { gap: var(--s-6); }
  .pdp-gallery { margin-inline: calc(var(--gutter) * -1); }
  .pdp-thumbs { display: none; }
  .pdp-main__dots { display: block; bottom: 10px !important; }
  .pdp-main__nav { display: none !important; }
  .pinfo__buy .btn { flex-basis: 0; }
}

/* Comments */
.pdp-reviews { border-top: 1px solid var(--line); }
.pdp-reviews .section-head { margin-bottom: var(--s-6); }
.pdp-reviews__count { color: var(--muted); font-size: .7em; }
.comments { list-style: none; display: grid; gap: 0; max-height: 520px; overflow-y: auto; }
.comment { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.comment__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.comment__avatar { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ash); font-family: var(--font-display); }
.comment__head strong { font-weight: 500; font-size: var(--fs-sm); }
.comment__head time { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); }
.comment p { margin: 0; color: var(--ink-soft); }

/* Sticky buy bar (mobile) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 44;
  display: none; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform var(--t-med) var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__info { flex: 1; min-width: 0; display: grid; }
.buybar__title { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-family: var(--font-display); font-size: 1.15rem; display: flex; gap: var(--s-2); align-items: baseline; }
.buybar__price del { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--muted); }
.buybar__price .is-sale { color: var(--sale); }
.buybar .btn { min-height: 46px; padding: 0 var(--s-6); }
@media (max-width: 767px) { .buybar { display: flex; } body.has-sticky-buy .notices { display: none; } }

