/* ==========================================================================
   ПорогиСтор — карточка товара (21.11). Раскладка Electro: фото + миниатюры
   строкой, одна колонка описания и покупки, полоса преимуществ, вкладки по
   центру. Общие правила porog.css для .pp-* (вертикальные миниатюры, липкая
   галерея) здесь переопределены в пределах .sp.
   ========================================================================== */
.sp-crumbs { padding: 22px 0 0 !important; }

.sp { padding: 18px 0 10px; }
.sp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* --- галерея --- */
.sp .sp-gallery { display: flex; flex-direction: column; gap: 14px; position: static; max-width: none; }
.sp-media { min-width: 0; }
.sp .sp-gallery > .sp-main { align-self: stretch; width: 100%; }
.sp .sp-thumbs-col { min-width: 0; width: 100%; }
.sp .sp-main { position: relative; aspect-ratio: 1 / 1; max-height: none; border: 1px solid var(--ps-line); border-radius: 0; background: #fff; }
.sp .sp-main .pp-slide img { padding: 18px; }
.sp .sp-arrow { width: 44px; height: 44px; border-radius: 0; background: var(--ps-gray); color: var(--ps-dark); font-size: 22px; opacity: 1; box-shadow: none; }
.sp .sp-arrow:hover { background: var(--ps-yellow); color: var(--ps-dark); }
.sp .pp-arrow--prev { left: 0; } .sp .pp-arrow--next { right: 0; }
.sp-counter { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; font-size: 12px; color: var(--ps-muted); background: rgba(255,255,255,.9); border: 1px solid var(--ps-line); z-index: 2; }
.sp-zoom { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--ps-muted); background: rgba(255,255,255,.9); border: 1px solid var(--ps-line); pointer-events: none; z-index: 2; }
.sp-flag { position: absolute; top: 14px; left: 0; padding: 5px 14px; background: var(--ps-dark); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; z-index: 2; }
.sp .sp-thumbs-col { order: 2; display: block; }
.sp .sp-thumbs { flex-direction: row; gap: 10px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; scrollbar-width: thin; }
.sp .pp-thumb { width: 86px; height: 86px; padding: 4px; border: 1px solid var(--ps-line); border-radius: 0; opacity: .7; }
.sp .pp-thumb:hover { opacity: 1; border-color: #c9c9c9; }
.sp .pp-thumb.is-active { opacity: 1; border: 2px solid var(--ps-yellow); }
.sp-note { order: 3; margin: 0; font-size: 13px; color: var(--ps-muted); }
.sp-note .fas { color: var(--ps-orange); }

/* --- описание и покупка --- */
.sp-cat { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ps-muted); margin-bottom: 8px; }
.sp-cat a { color: var(--ps-muted); }
.sp-cat a:hover { color: var(--ps-blue); }
.sp-title { font-size: 26px; line-height: 1.3; font-weight: 400; color: var(--ps-dark); margin: 0 0 12px; text-transform: none; letter-spacing: 0; }
.sp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--ps-muted); }
.sp-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--ps-muted); }
.sp-rating .fa-star, .sp-rating .fas, .sp-rating .far { color: var(--ps-orange); }
.sp-rating--link { color: var(--ps-blue); }
.sp-sku b { color: var(--ps-dark); font-weight: 600; }
.sp-avail { margin: 12px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--ps-line); font-size: 14px; color: var(--ps-muted); position: relative; }
.sp-avail::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 2px; background: var(--ps-yellow); }
.sp-avail b { font-weight: 600; color: var(--ps-dark); }
.sp-avail.is-in b { color: #3a9d23; }
.sp-avail i { font-style: normal; }

.sp-bullets { margin: 18px 0 6px; padding: 0; }
.sp-bullets li { position: relative; padding-left: 18px; margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: #5d6670; }
.sp-bullets li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #c5c5c5; }
.sp-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ps-blue); }
.sp-link:hover { color: var(--ps-dark); text-decoration: underline; }

.sp-vars { margin-top: 22px; }
.sp-label { font-size: 14px; color: var(--ps-dark); margin-bottom: 10px; }
.sp-vars__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sp .sp-var.porog-variant { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 16px; margin: 0; min-width: 0;
    border: 1px solid var(--ps-line); border-radius: 0; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.sp .sp-var.porog-variant input { position: absolute; opacity: 0; width: 0; height: 0; }
.sp .sp-var.porog-variant:hover { border-color: var(--ps-dark); }
.sp .sp-var.porog-variant:has(input:checked) { border-color: var(--ps-yellow); background: rgba(var(--ps-yellow-rgb), .14); box-shadow: inset 0 0 0 1px var(--ps-yellow); }
.sp .sp-var.porog-variant:has(input:focus-visible) { outline: 2px solid var(--ps-dark); outline-offset: 2px; }
.sp-var__name { font-size: 14px; color: var(--ps-dark); line-height: 1.3; }
.sp-var__price { font-size: 12px; color: var(--ps-muted); white-space: nowrap; }

.sp-buy { margin-top: 22px; padding: 22px 24px; background: var(--ps-gray); }
.sp-buy__title { font-size: 20px; font-weight: 400; margin: 0 0 6px; }
.sp-buy__text { font-size: 14px; color: #5d6670; }
.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 16px; }
.sp-price__val { font-size: 36px; line-height: 1; font-weight: 300; color: var(--ps-dark); white-space: nowrap; }
.sp-price__pay { font-size: 13px; color: var(--ps-muted); }
.sp-cartrow { display: flex; gap: 12px; align-items: stretch; }
.sp .sp-qty.quantity-box { display: flex; align-items: center; width: 132px; height: 50px; flex: none; border: 1px solid #ddd; border-radius: 25px; background: #fff; overflow: hidden; }
.sp .sp-qty.quantity-box button { position: static; width: 40px; height: 100%; border: 0; background: transparent; color: var(--ps-dark); transform: none; font-size: 12px; }
.sp .sp-qty.quantity-box button:hover { color: var(--ps-orange); background: transparent; }
.sp .sp-qty.quantity-box input { flex: 1; width: 40px; height: 100%; border: 0; padding: 0; text-align: center; font-size: 16px; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.sp .sp-qty input::-webkit-outer-spin-button, .sp .sp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sp-cart { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 28px; border: 0; border-radius: 25px;
    background: var(--ps-yellow); color: var(--ps-dark); font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.sp-cart:hover { background: var(--ps-dark); color: #fff; }
.sp-call { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e2e2; font-size: 13px; color: var(--ps-muted); }
.sp-call b { display: block; font-size: 17px; font-weight: 600; color: var(--ps-dark); }
.sp-call:hover b { color: var(--ps-blue); }
.sp-call__ic { width: 42px; height: 42px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--ps-orange); font-size: 18px; }

/* --- преимущества --- */
.sp-perks { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; padding: 0; border: 1px solid var(--ps-line); }
.sp-perks li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.sp-perks li + li { border-left: 1px solid var(--ps-line); }
.sp-perks .fas { font-size: 26px; color: var(--ps-orange); width: 32px; text-align: center; flex: none; }
.sp-perks b { display: block; font-size: 14px; font-weight: 600; color: var(--ps-dark); }
.sp-perks small { display: block; font-size: 12px; color: var(--ps-muted); line-height: 1.4; }

/* --- отзыв и фото покупателей --- */
.sp-social { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
.sp-social.is-two { grid-template-columns: 1fr 1fr; }
.sp-box__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ps-line); }
.sp-h2 { position: relative; font-size: 20px; font-weight: 400; margin: 0; padding-bottom: 10px; color: var(--ps-dark); }
.sp-h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--ps-yellow); }
.sp-quote blockquote { margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--ps-yellow); }
.sp-quote p { font-size: 15px; line-height: 1.6; color: #4b545e; font-style: italic; margin: 0 0 10px; }
.sp-quote footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ps-muted); }
.sp-quote footer strong { color: var(--ps-dark); }
.sp-quote__about { margin-top: 8px; font-size: 13px; color: var(--ps-muted); }
.sp-buyer { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sp-buyer__ph { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--ps-line); }
.sp-buyer__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-buyer__ph.is-hidden { display: none; }
.sp-buyer__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(var(--ps-dark-rgb), .65); color: #fff; font-size: 18px; font-weight: 600; }

/* --- вкладки по центру --- */
.sp-tabs { padding: 46px 0 10px; }
.sp-tabs .product-details__main-tab-box > .pp-tab-nav { justify-content: center; gap: 8px; border-bottom: 1px solid var(--ps-line); }
.sp-tabs .pp-tab-control { min-height: 0; padding: 12px 22px 14px; font-size: 16px; font-weight: 400; color: var(--ps-muted); border: 1px solid transparent; border-bottom: 0; }
.sp-tabs .tab-btn.active-btn > .pp-tab-control { color: var(--ps-dark); font-weight: 600; border-color: var(--ps-line); background: #fff; margin-bottom: -1px; }
.sp-tabs .pp-tab-control::after { top: -1px; bottom: auto; height: 3px !important; background: var(--ps-yellow) !important; }
.sp-tabs .product-details__main-tab-box .pp-tab-nav .tab-btn .pp-tab-count { min-width: 22px; height: 22px; font-size: 12px; background: var(--ps-yellow); color: var(--ps-dark); }
.sp-tabs .tabs-content { padding-top: 26px; max-width: 980px; margin: 0 auto; }
.sp-tabs .pp-collapse:not(.is-open):not(.is-short)::after { background: linear-gradient(rgba(255,255,255,0), #fff); }
.sp-specs th { width: 38%; background: var(--ps-gray); font-weight: 500; color: var(--ps-dark); }
.sp-specs th, .sp-specs td { border: 1px solid var(--ps-line) !important; padding: 10px 16px !important; }
.sp-more { display: inline-flex; gap: 8px; padding: 9px 24px; border: 1px solid var(--ps-line) !important; border-radius: 20px; background: #fff; color: var(--ps-dark); font-size: 14px; }
.sp-more:hover { background: var(--ps-yellow); border-color: var(--ps-yellow) !important; }

/* --- нижние секции --- */
.sp-section { padding: 34px 0 10px; }
.sp-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--ps-line); }
.sp-section__head h2 { position: relative; margin: 0; padding-bottom: 12px; font-size: 22px; font-weight: 400; color: var(--ps-dark); }
.sp-section__head h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--ps-yellow); }
.sp-section__head a { flex: none; font-size: 14px; color: var(--ps-blue); }
.sp-models { padding-bottom: 50px; }
.sp-models__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.sp-models__list a { display: block; padding: 7px 16px; border: 1px solid var(--ps-line); border-radius: 18px; font-size: 13px; color: var(--ps-dark); }
.sp-models__list a:hover { background: var(--ps-yellow); border-color: var(--ps-yellow); color: var(--ps-dark); }

/* --- адаптив --- */
@media (max-width: 1199px) {
    .sp-top { gap: 32px; }
    .sp-perks { grid-template-columns: 1fr 1fr; }
    .sp-perks li:nth-child(3) { border-left: 0; }
    .sp-perks li:nth-child(n+3) { border-top: 1px solid var(--ps-line); }
}
@media (max-width: 991px) {
    .sp-top { grid-template-columns: minmax(0, 1fr); }
    .sp-media { max-width: 620px; width: 100%; margin: 0 auto; }
    .sp-social.is-two { grid-template-columns: 1fr; }
    .sp-tabs .product-details__main-tab-box > .pp-tab-nav { justify-content: flex-start; }
}
@media (max-width: 575px) {
    .sp-title { font-size: 21px; }
    .sp-price__val { font-size: 30px; }
    .sp-buy { padding: 18px 16px; margin-left: -4px; margin-right: -4px; }
    .sp-cartrow { flex-wrap: wrap; }
    .sp .sp-qty.quantity-box { width: 116px; }
    .sp-cart { padding: 0 18px; }
    .sp .pp-thumb { width: 66px; height: 66px; }
    .sp-perks { grid-template-columns: 1fr; }
    .sp-perks li + li { border-left: 0; border-top: 1px solid var(--ps-line); }
    .sp-buyer { grid-template-columns: repeat(4, 1fr); }
    .sp-tabs .pp-tab-control { padding: 10px 14px 12px; font-size: 14px; }
    .sp-section__head { flex-direction: column; gap: 4px; }
}
