/* Страница товара магазина (scripts/product-page.mjs): галерея с лентой миниатюр + колонка покупки. */
.pdp{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:12px;align-items:start;padding:0 0 24px}
.pdp__gallery{position:sticky;top:16px;display:grid;grid-template-columns:84px minmax(0,1fr);gap:10px}
.pdp__main{grid-column:2;grid-row:1;margin:0;aspect-ratio:1;overflow:hidden;border-radius:28px;background:#fff}
.pdp__main img{display:block;width:100%;height:100%;object-fit:cover}
.pdp__thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:8px;max-height:100%;overflow-y:auto;scrollbar-width:none}
.pdp__thumbs::-webkit-scrollbar{display:none}
.pdp__thumbs button{flex:0 0 auto;width:84px;aspect-ratio:1;padding:0;overflow:hidden;border:2px solid transparent;border-radius:16px;background:#fff;cursor:pointer;opacity:.7;transition:opacity .2s,border-color .2s}
.pdp__thumbs button[aria-selected="true"]{border-color:#111;opacity:1}
.pdp__thumbs img{display:block;width:100%;height:100%;object-fit:cover}

.pdp__info{display:grid;gap:22px;padding:36px;border-radius:28px;background:#fff}
.pdp__back{color:#8e8e93;font-size:13px;font-weight:650;text-decoration:none}
.pdp__back:hover{color:#111}
.pdp__head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.pdp__head h1{margin:0;font-size:clamp(28px,2.6vw,40px);font-weight:750;line-height:1.05;letter-spacing:-.035em}
.pdp__price{flex:0 0 auto;font-size:24px;font-weight:750;letter-spacing:-.02em;white-space:nowrap}
.pdp__head h1{min-width:0}
.pdp__price small{display:block;margin-top:2px;color:#6e6e73;font-size:13px;font-weight:500;letter-spacing:0;text-align:right}
.pdp__status{display:flex;align-items:center;gap:8px;margin:-12px 0 0;color:#6e6e73;font-size:14px}
.pdp__status i{width:7px;height:7px;border-radius:50%;background:#34a36a}
.pdp__lead{margin:0;color:#6e6e73;font-size:16px;line-height:1.5}

/* Параметры: цвет квадратными плашками, высота и т. п. — плашками-кнопками */
.pdp .product-config{display:grid;gap:20px;margin:0;padding:0;border:0}
.pdp .product-colors{margin:0;padding:0;border:0}
.pdp .product-colors legend,.pdp .product-options__label{margin:0 0 10px;padding:0;color:#6e6e73;font-size:13px;font-weight:650;letter-spacing:0;text-transform:none}
.pdp .product-colors legend output{color:#111}
.pdp .product-colors__options{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
.pdp .product-colors__options input,.pdp .product-options__chips input{position:absolute;opacity:0;pointer-events:none}
.pdp .product-colors__options label{position:relative;width:44px;height:44px;border-radius:10px;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);cursor:pointer}
.pdp .product-colors__options label span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pdp .product-colors__options input:checked+label{outline:2px solid #111;outline-offset:3px}
.pdp .product-colors__options input:focus-visible+label{outline:2px solid #5059c9;outline-offset:3px}
.pdp .product-options{display:grid;gap:20px;margin:0;padding:0}
.pdp .product-options fieldset{margin:0;padding:0;border:0}
.pdp .product-options__chips{display:flex;flex-wrap:wrap;gap:8px}
.pdp .product-options__chips label{min-width:64px;padding:12px 16px;border:1px solid #d9d9de;border-radius:10px;font-weight:650;text-align:center;cursor:pointer}
.pdp .product-options__chips input:checked+label{border-color:#111;background:#111;color:#fff}
.pdp .product-name{display:grid;gap:0}
.pdp .product-name input{width:100%;padding:14px 16px;border:1px solid #d9d9de;border-radius:10px;background:#fff;color:#111;font:700 16px/1.2 Inter,Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase}
.pdp .product-name small{margin-top:8px;color:#8e8e93;font-size:12px;line-height:1.4}
.pdp .product-addon{display:flex;align-items:center;gap:10px;font-weight:600;cursor:pointer}
.pdp .product-addon input{width:20px;height:20px;margin:0;accent-color:#111}
.pdp .product-addon i{display:none}
.pdp .product-addon em{color:#8e8e93;font-size:12px;font-style:normal}

.pdp__buy{display:grid}
.pdp__cart{min-height:58px;border:0;border-radius:12px;background:#111;color:#fff;font:750 16px/1 Inter,Arial,sans-serif;cursor:pointer;transition:background .2s}
.pdp__cart:hover{background:#333}
.pdp__cart.is-added{background:#2f7d4f}


.pdp__delivery{padding:18px 20px;border-radius:14px;background:#f4f4f6}
.pdp__delivery h2{margin:0 0 12px;font-size:17px;letter-spacing:-.01em}
.pdp__delivery dl{display:grid;gap:8px;margin:0}
.pdp__delivery div{display:grid;grid-template-columns:110px 1fr;gap:12px;font-size:14px;line-height:1.4}
.pdp__delivery dt{color:#8e8e93}
.pdp__delivery dd{margin:0}

.pdp__acc{border-top:1px solid #ececf0}
.pdp__acc:last-child{border-bottom:1px solid #ececf0}
.pdp__acc summary{display:flex;align-items:center;justify-content:space-between;padding:18px 0;font-size:17px;font-weight:700;cursor:pointer;list-style:none}
.pdp__acc summary::-webkit-details-marker{display:none}
.pdp__acc summary:after{content:"";width:9px;height:9px;margin-right:4px;border-right:1.6px solid #111;border-bottom:1.6px solid #111;transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.pdp__acc[open] summary:after{transform:rotate(-135deg) translateY(-3px)}
.pdp__acc-lead{margin:0 0 14px;color:#6e6e73;font-size:14px;line-height:1.5}
.pdp__features{display:grid;gap:14px;padding-bottom:18px}
.pdp__features div{display:grid;grid-template-columns:96px 1fr;gap:4px 14px}
.pdp__features b{grid-row:span 2;font-size:20px;letter-spacing:-.02em}
.pdp__features span{font-weight:700;font-size:14px}
.pdp__features p{margin:0;color:#6e6e73;font-size:14px;line-height:1.45}
.pdp__specs{display:grid;margin:0;padding-bottom:18px}
.pdp__specs div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:10px 0;border-top:1px solid #f0f0f3;font-size:14px;line-height:1.45}
.pdp__specs div:first-child{border-top:0}
.pdp__specs dt{color:#8e8e93}
.pdp__specs dd{margin:0}
.pdp__fit{display:grid;gap:8px;margin:0;padding-bottom:18px}
.pdp__fit div{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:14px;border-radius:14px;background:#f4f4f6}
.pdp__fit div.is-current{background:#111;color:#fff}
.pdp__fit dt{font-size:18px;font-weight:750}
.pdp__fit dd{margin:0;font-size:14px;line-height:1.45}
.pdp__fit dd b{display:block;margin-bottom:2px}

@media(max-width:900px){
  .pdp{grid-template-columns:1fr}
  .pdp__gallery{position:static}
}
@media(max-width:620px){
  /* Как в мобильной версии: большое фото и узкая лента миниатюр справа */
  .pdp__gallery{grid-template-columns:minmax(0,1fr) 56px;gap:6px}
  .pdp__main{grid-column:1;border-radius:20px}
  .pdp__thumbs{grid-column:2;gap:6px}
  .pdp__thumbs button{width:56px;border-radius:12px}
  .pdp__info{gap:18px;padding:22px 18px;border-radius:22px}
  .pdp__head h1{font-size:28px}
  .pdp__price{font-size:20px}
}
