/* Tool Park — страница товара (/product/…). Сетка 8px, радиусы 8/12/16. */
.tpp{padding:24px 0 64px}
.tpp .tp-crumbs{margin-bottom:24px}

.tpp-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:start}

/* Картинки товаров на сайте пока нет — показываем значок раздела и бренд, без «пустой рамки». */
.tpp-visual{position:sticky;top:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;aspect-ratio:1/1;border-radius:16px;background:var(--light,#f5f5f6);color:var(--black,#0b0b0d)}
.tpp-visual-ic svg{width:160px;height:160px}
.tpp-visual-brand{font-size:14px;line-height:20px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--gray,#696970)}

.tpp-main h1{margin:0 0 16px;font-size:32px;line-height:40px;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere;text-wrap:balance}
.tpp-meta{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 24px;padding:0;list-style:none;font-size:14px;line-height:20px;color:var(--gray,#696970)}
.tpp-meta b{font-weight:600;color:var(--black,#0b0b0d);font-variant-numeric:tabular-nums}

.tpp-buy{padding:24px;border:1px solid var(--line,#e7e7e9);border-radius:16px;background:#fff}
/* Цена — крупно, но не жирно (как в каталоге) */
.tpp-price{font-size:40px;line-height:48px;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--black,#0b0b0d)}
.tpp-buy .pp-stock{margin:8px 0 0;font-size:14px;line-height:20px;font-weight:600}
.tpp-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.tpp-actions .btn{min-height:48px;padding:12px 24px;border-radius:12px;font-size:16px;line-height:24px;font-weight:600}
.tpp-add{flex:1 1 200px}
.tpp-wa .icon{width:20px;height:20px}
.tpp-add.added{background:var(--black,#0b0b0d)}
.tpp-note{margin:16px 0 0;font-size:13px;line-height:20px;color:var(--gray,#696970)}

.tpp-specs,.tpp-how{margin-top:40px}
.tpp-specs h2,.tpp-how h2,.tpp-similar h2{margin:0 0 16px;font-size:24px;line-height:32px;font-weight:700;letter-spacing:-.02em}
.tpp-specs h2::after,.tpp-how h2::after,.tpp-similar h2::after{display:none}
.tpp-specs dl{margin:0}
.tpp-specs dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line,#e7e7e9);font-size:15px;line-height:24px}
.tpp-specs dt{color:var(--gray,#696970)}
.tpp-specs dd{margin:0;font-weight:500;overflow-wrap:anywhere}

.tp-buy-terms{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.tp-buy-terms li{position:relative;padding-left:24px;font-size:15px;line-height:24px}
.tp-buy-terms li::before{content:"";position:absolute;left:4px;top:9px;width:8px;height:8px;border-radius:50%;background:var(--red,#f01938)}
.tp-buy-terms b{font-weight:600}
.tp-seo-text h3{margin:24px 0 12px;font-size:17px;line-height:24px;font-weight:700}
.tp-seo-text .tp-buy-terms li{color:var(--char,#17171a)}

.tpp-similar{margin-top:64px}
.tpp-similar-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.tpp-similar-list a{display:flex;flex-direction:column;justify-content:space-between;gap:16px;height:100%;padding:16px;border:1px solid var(--line,#e7e7e9);border-radius:12px;background:#fff;color:inherit;transition:border-color .2s var(--tp-ease-out,ease),transform .2s var(--tp-ease-out,ease)}
.tpp-s-name{font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tpp-s-bottom{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.tpp-s-bottom b{font-size:18px;line-height:24px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.tpp-s-bottom small{font-size:12px;line-height:16px;font-weight:600;color:var(--gray,#696970);white-space:nowrap}
.tpp-s-bottom small.is-in{color:var(--black,#0b0b0d)}
@media (hover:hover) and (pointer:fine){
  .tpp-similar-list a:hover{border-color:var(--black,#0b0b0d);transform:translateY(-2px)}
}
.tpp-similar-list a:focus-visible{outline:3px solid var(--red,#f01938);outline-offset:2px}

@media (max-width:1024px){
  .tpp-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .tpp-visual{position:static;aspect-ratio:auto;flex-direction:row;padding:24px;justify-content:flex-start}
  .tpp-visual-ic svg{width:64px;height:64px}
  .tpp-similar-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .tpp{padding:16px 0 48px}
  .tpp-main h1{font-size:24px;line-height:32px}
  .tpp-price{font-size:32px;line-height:40px}
  .tpp-buy{padding:16px}
  .tpp-actions .btn{flex:1 1 100%}
  .tpp-specs dl>div{grid-template-columns:minmax(0,1fr);gap:0}
  .tpp-similar{margin-top:48px}
  .tpp-similar-list{gap:8px}
  .tpp-similar-list a{padding:12px}
  .tpp-s-bottom{flex-direction:column;align-items:flex-start;gap:0}
}
@media (prefers-reduced-motion:reduce){
  .tpp-similar-list a{transition:none}
}

/* Название товара в каталоге — ссылка на его страницу */
a.pp-product-name{display:block;color:inherit;text-decoration:none}
a.pp-product-name:hover,.pp-mobile-card h3 a:hover{color:var(--red,#f01938)}
.pp-mobile-card h3 a{color:inherit;text-decoration:none}
a.pp-product-name:focus-visible,.pp-mobile-card h3 a:focus-visible{outline:3px solid var(--red,#f01938);outline-offset:2px;border-radius:4px}

/* Цена со скидкой: старая зачёркнута, новая красным, бейдж −N% */
.tp-price{display:inline-flex;flex-wrap:wrap;align-items:baseline;justify-content:inherit;gap:2px 8px}
.tp-price-old{color:var(--gray,#696970);font-size:.72em;font-weight:500;text-decoration-thickness:1px}
.tp-price.is-sale .tp-price-now{color:var(--red,#f01938)}
.tp-price-badge{align-self:center;padding:2px 6px;border-radius:6px;background:var(--red,#f01938);color:#fff;font-size:12px;line-height:16px;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums}
.pp-col-price .tp-price{justify-content:flex-end}
.tp-price--big .tp-price-old{font-size:20px;line-height:28px}
.tp-price--big .tp-price-badge{font-size:14px;line-height:20px;padding:4px 8px}
.tpp-sale-until{margin:4px 0 0;font-size:13px;color:var(--red,#f01938);font-weight:600}

/* Фото товара */
.tpp-gallery{position:sticky;top:24px;display:flex;flex-direction:column;gap:12px}
.tpp-gallery-main{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:16px;background:#fff;border:1px solid var(--line,#e7e7e9)}
.tpp-gallery-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.tpp-gallery-thumbs button{padding:0;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer;line-height:0}
.tpp-gallery-thumbs button.is-on{border-color:var(--red,#f01938)}
.tpp-gallery-thumbs img{width:64px;height:64px;object-fit:contain;border-radius:8px}
.tp-thumb{display:block;flex:none;object-fit:contain;background:#fff;border:1px solid var(--line,#e7e7e9);border-radius:8px}
.pp-col-name.has-thumb{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:12px;align-items:start}
.pp-col-name.has-thumb>.tp-thumb{grid-row:1/span 20;grid-column:1}
.pp-col-name.has-thumb>*:not(.tp-thumb){grid-column:2}
.pp-mobile-card.has-thumb{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:12px}
.pp-mobile-card.has-thumb>.tp-thumb{grid-row:1/span 3;grid-column:1}
.pp-mobile-card.has-thumb>*:not(.tp-thumb){grid-column:2}
.pp-mobile-card.has-thumb>.pp-mobile-bottom{grid-column:1/-1}
.tpp-similar-list .tp-thumb{width:100%;height:auto;aspect-ratio:1/1;border:0}
@media (max-width:1024px){.tpp-gallery{position:static}.tpp-gallery-main{max-height:420px}}
