/* ============================================================
 * product-page.css — стили страницы товара.
 * Использует классы витрины (.vitrina_*, .v11-photo-*).
 * ============================================================ */

.pp-section { padding-top: 20px !important; padding-bottom: 60px !important; }

body.page-vitrina-white 

/* ============ МЕДИА ============ */
.pp-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto 32px;
}
.pp-media__main {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 4 / 3;
    background: #f7f7f8;
    border: 1px solid #e2e2e5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}
.pp-media__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pp-media__main .v11-photo-tags,
.pp-media__main .v11-photo-gact { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
.pp-media__main .v11-photo-tag__txt { max-width: 180px; opacity: 1; margin-left: 6px; }

.pp-media__carousel {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 6px 4px 10px;
    width: 100%;
    max-width: 760px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c8c8cc transparent;
}
.pp-media__carousel::-webkit-scrollbar { height: 6px; }
.pp-media__carousel::-webkit-scrollbar-thumb { background: #c8c8cc; border-radius: 3px; }

.pp-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    padding: 0;
    border: 2px solid #e2e2e5;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-thumb:hover { border-color: #c8c8cc; transform: translateY(-2px); }
.pp-thumb.is-active { border-color: #fed500; box-shadow: 0 0 0 2px rgba(254,213,0,.25); }

@media (max-width: 900px) {
    .pp-thumb { flex: 0 0 80px; width: 80px; height: 80px; }
}

/* ============ ИНФО ============ */
.pp-info {
    max-width: 760px;
    margin: 0 auto 32px;
    width: 100%;
}
.pp-title {
    font-family: "Capture", sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
    margin: 0 0 8px;
    color: #16161a;
}
.pp-cat {
    display: inline-block;
    margin-bottom: 20px;
    color: #5c5c63;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px dashed #c8c8cc;
    padding-bottom: 1px;
}
.pp-cat:hover { color: #dc2626; border-color: #dc2626; }

/* ============ ЦВЕТА ============ */
.pp-colors {
    margin: 16px 0 20px;
    padding: 16px;
    background: #f7f7f8;
    border-radius: 8px;
}
.pp-colors__label {
    font-size: 13px;
    color: #5c5c63;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.pp-colors__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pp-color {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 3px;
    background: #fff;
    border: 2px solid #e2e2e5;
    border-radius: 50%;
    cursor: default;
    transition: border-color .2s ease, transform .2s ease;
}
.pp-color img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }
.pp-color:hover { border-color: #fed500; transform: translateY(-2px); }

/* ============ VAT (только страница товара) ============ */
.pp-vat { margin: 20px 0 24px !important; }
.pp-vat .vat-row,
.pp-vat .vat-old-row { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============ КНОПКИ ============ */
.pp-actions { max-width: 520px; margin: 0 auto !important; }
.pp-actions .btn,
.pp-actions .btn_products { padding: 14px 20px; font-size: 14px; }

/* ============ МИНИ-ТТХ ============ */
.pp-specs-short {
    max-width: 520px;
    margin: 24px auto 0 !important;
    background: #f7f7f8 !important;
}

/* ============ ПОЛНЫЕ ТТХ ============ */
.pp-full-specs { max-width: 900px; margin: 40px auto 0; }
.pp-section-title {
    font-family: "Capture", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 26px);
    margin: 0 0 20px;
    padding: 0;
    color: #16161a;
    text-align: center;
}
.pp-specs-table {
    background: #fff;
    border: 1px solid #e2e2e5;
    border-radius: 8px;
    overflow: hidden;
}
.pp-specs-table .specs-table,
.pp-specs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pp-specs-table .specs-table td,
.pp-specs-table table td {
    padding: 12px 18px;
    border-bottom: 1px solid #efeff1;
    vertical-align: top;
    color: #16161a;
    text-align: left;
}
.pp-specs-table .specs-table tr:last-child td,
.pp-specs-table table tr:last-child td { border-bottom: none; }
.pp-specs-table .specs-table tr td:first-child,
.pp-specs-table table tr td:first-child {
    width: 40%;
    color: #5c5c63;
    font-weight: 500;
}
.pp-specs-table .specs-table tr:hover,
.pp-specs-table table tr:hover { background: #f7f7f8; }

/* ============ ОПИСАНИЕ ============ */
.pp-desc { max-width: 760px; margin: 40px auto 0; }
.pp-desc p { color: #2b2b30; line-height: 1.7; font-size: 15px; margin: 0; }

/* ============ ПОХОЖИЕ ============ */
.pp-related { margin-top: 60px; }
.pp-related-vitrina {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}
.pp-related-vitrina .vitrina_1 { width: 33%; }

@media (max-width: 900px) {
    .pp-related-vitrina .vitrina_1 { width: 50%; }
}
@media (max-width: 640px) {
    .pp-related-vitrina .vitrina_1 { width: 100%; }
    .pp-specs-table .specs-table tr td:first-child,
    .pp-specs-table table tr td:first-child { width: 50%; padding: 10px 12px; }
    .pp-specs-table .specs-table td,
    .pp-specs-table table td { padding: 10px 12px; }
}
/* ============================================================
 * Ширина контейнера — как у витрины (90% / 1400px из vitrina-white.css).
 * Медиа и info остаются по центру, но занимают больше места.
 * ============================================================ */
.pp-media__main { max-width: 900px; }
.pp-media__carousel { max-width: 900px; }
.pp-info { max-width: 900px; }
.pp-vat .vat-row,
.pp-vat .vat-old-row { max-width: 620px; }
.pp-actions { max-width: 620px; }
.pp-specs-short { max-width: 620px; }
.pp-full-specs { max-width: 1200px; }
.pp-desc { max-width: 900px; }