/* ---------- dress page ---------- */
.pdp { border: 0; padding: 0; background: #fff; color: var(--ink); }
.pdp::backdrop { background: rgba(31, 18, 11, 0.55); backdrop-filter: blur(3px); }
.pdp[open] {
  display: flex; flex-direction: column; overflow: hidden;
  width: min(1120px, calc(100% - 48px)); max-width: none; height: min(860px, calc(100dvh - 48px)); max-height: none;
  border-radius: 20px; box-shadow: 0 40px 120px rgba(31, 18, 11, 0.35); animation: pop 0.22s ease-out;
}
.pdp__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.pdp__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 32px; min-height: 100%; }
.pdp__gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; min-height: 0; }
.pdp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pdp__thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; aspect-ratio: 496 / 800; }
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp__thumb.is-on { border: 2px solid var(--ink); }
.pdp__main { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; max-height: calc(min(860px, 100dvh - 48px) - 64px); }
.pdp__main:not(.can-turn) { cursor: default; }
.pdp__main.can-turn:active { cursor: grabbing; }
.pdp__gallery.is-single { grid-template-columns: 1fr; }
.pdp__gallery.is-single .pdp__thumbs { display: none; }
.pdp__main img { width: 100%; height: 100%; max-height: inherit; object-fit: contain; display: block; pointer-events: none; }
.pdp__hint { position: absolute; right: 14px; bottom: 20px; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

.pdp__info { align-self: center; display: flex; flex-direction: column; gap: 6px; padding-right: 24px; }
.pill { align-self: flex-start; font-size: 0.72rem; font-weight: 500; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); }
.pdp__info h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin: 10px 0 0; }
.pdp__price { font-size: 1.3rem; font-weight: 500; margin: 6px 0 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp__label { margin: 0 0 10px; font-size: 0.88rem; font-weight: 500; }
.pdp__label strong { font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  min-width: 52px; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(31, 18, 11, 0.25);
  background: #fff; color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__actions .btn { padding: 13px 10px; font-size: 0.72rem; letter-spacing: 0.1em; white-space: nowrap; text-align: center; box-shadow: none; }
.pdp__info .err { margin: 8px 0 0; font-size: 0.85rem; }

@media (max-width: 820px) {
  .pdp[open] { width: 100%; height: 100dvh; border-radius: 0; animation: sheet 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .pdp__close { top: max(12px, env(safe-area-inset-top)); }
  .pdp__grid { grid-template-columns: 1fr; gap: 20px; padding: 0 0 20px; }
  .pdp__gallery { grid-template-columns: 1fr; gap: 10px; }
  .pdp__main { order: -1; border: 0; border-radius: 0; height: 62dvh; max-height: none; }
  .pdp__thumbs { flex-direction: row; padding: 0 var(--gutter); }
  .pdp__thumb { width: 56px; flex: none; }
  .pdp__info { padding: 0 var(--gutter); }
  .pdp__actions { position: sticky; bottom: 0; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) { .pdp[open] { animation: none; } }
