/* =========================
   ТОЛЬКО СТРАНИЦА ТОВАРА
========================= */

.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================
   LAYOUT
========================= */

.product-page .product-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

.product-page .product-left {
    max-width: 780px;
}

.product-page .product-right {
    position: sticky;
    top: 20px;
}

/* =========================
   ФОТО
========================= */

.product-page .blockimg {
    position: relative;
    max-width: 780px;
}

.product-page .imagebig {
    width: 100%;
}

.product-page .blockimg img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* =========================
   SIDEBAR
========================= */

.product-page .product-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TOP */

.ps-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

.ps-stock.in {
    color: #2e7d32;
    font-weight: 600;
}

.ps-stock.out {
    color: #d32f2f;
}

/* PRICE */

.ps-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ps-price {
    font-size: 32px;
    font-weight: 700;
}

.ps-nds {
    font-size: 13px;
    color: #777;
}

.ps-leasing-badge {
    background: #f5e7d3;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

/* PAYBACK */

.ps-payback {
    background: #eef5ee;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.ps-payback-row {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.ps-payback-value {
    font-weight: 600;
}

/* BUTTON */

.ps-btn-main {
    width: 100%;
    background: linear-gradient(180deg,#ff8a00,#ff6a00);
    color: #fff;
    padding: 16px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    font-size: 16px;
    transition: 0.2s;
}

.ps-btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,122,0,0.3);
}

/* ACTIONS */

.ps-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.ps-btn {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    font-size: 14px;
    cursor: pointer;
}

.ps-btn.blue {
    background: #e8f0ff;
}

/* BOX */

.ps-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    overflow: visible;
}

.ps-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* FEATURES */

.ps-features {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ps-feature {
    background: #f5f7f5;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

/* HELP */

.ps-help {
    margin-top: 8px;
    background: #eef5ee;
    padding: 12px;
    border-radius: 12px;
}

.ps-help-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

/* CERT */

.ps-cert {
    margin-top: 12px;
    font-weight: 600;
}

.ps-cert a {
    color: #2e7d32;
    text-decoration: none;
}
.product-page .blockimg {
    position: relative;
    max-width: 780px;
}

/* =========================
   БЕЙДЖИ (правый верх)
========================= */

.product-page .product-badge-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.product-page .product-code {
    background: rgba(255,255,255,0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.product-page .product-brand {
    background: #fff;
    padding: 6px;
    border-radius: 6px;
}

.product-page .product-brand img {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
}

.product-page .product-stock {
    background: #4caf50;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
}
.ps-icon svg {
    width: 18px;
    height: 18px;
    fill: #666;
}

.ps-icon-big {
    width: 20px;
    height: 20px;
    fill: #2e7d32;
}

/* =========================
   СЕРТИФИКАТ
========================= */

.product-page .ps-cert {
    margin-top: 15px;
}

.product-page .ps-cert-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-page .ps-cert-icon {
    width: 20px;
    height: 20px;
    fill: #666;
    flex-shrink: 0;
}

.product-page .ps-cert-title {
    font-size: 12px;
    font-weight: 600;
}

.product-page .ps-cert-sub {
    font-size: 13px;
    color: #777;
}

/* ===== ОФИЦИАЛЬНЫЙ ДИЛЕР ===== */

.product-page .ps-cert-row {
    margin-top: 8px;
    padding: 14px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px;
    border-radius: 10px;
    background: #fafafa;

    text-decoration: none;
    color: inherit;

    transition: 0.2s;
}

.product-page .ps-cert-row:hover {
    background: #eef6ee;
}

.product-page .ps-cert-left {
    margin-right: 10px;
}

.product-page .ps-cert-center {
    flex: 1;
}

.product-page .ps-cert-sub {
    font-size: 13px;
    color: #777;
}

.product-page .ps-cert-right {
    margin-left: 10px;
}

.product-page .ps-arrow {
    width: 16px;
    height: 16px;
    stroke: #999;
}
.ps-icon-circle {
    width: 28px;
    height: 28px;
    background: #e6efe6;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===== HELP BLOCK ===== */

.ps-help {
    margin-top: 8px;
    background: #eef5ee;
    padding: 12px;
    border-radius: 12px;
}

/* заголовок */

.ps-help-title {
    font-weight: 600;
    margin-bottom: 8px;
}

/* строка контактов */

.ps-help-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* один контакт */

.ps-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

/* иконки */

.ps-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: #666;
    fill: none;
}

/* заголовок + иконка */

.ps-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* иконка info */

.ps-tooltip svg {
    width: 14px;
    height: 14px;
    stroke: #999;
    cursor: pointer;
}

/* контейнер */

.ps-tooltip {
    position: relative;
}

/* текст подсказки */

.ps-tooltip-text {
    position: absolute;
    left: 0;
    top: 22px;

    background: #333;
    color: #fff;
    font-size: 12px;

    padding: 8px 10px;
    border-radius: 6px;

    width: 220px;
    line-height: 1.4;

    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);

    transition: 0.2s;
}

/* появление */

.ps-tooltip:hover .ps-tooltip-text {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ЛИЗИНГ ===== */

.ps-leasing-badge {
    background: #f5e7d3;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ps-leasing-top {
    font-weight: 600;
}

.ps-leasing-bottom {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
}

/* чуть уменьшим tooltip тут */
.ps-leasing-bottom .ps-tooltip {
    width: 16px;
    height: 16px;
}

.ps-leasing-bottom .ps-tooltip svg {
    width: 12px;
    height: 12px;
}
/* ===== tooltip для лизинга ===== */

/* чтобы не обрезался */
.product-sidebar {
    overflow: visible;
}
.ps-tooltip {
    position: relative;
    display: inline-flex;
}
.ps-leasing-badge .ps-tooltip-text {
    position: absolute;

    right: 0;
    left: auto;
    top: 22px;

    width: 240px;

    background: #333;
    color: #fff;
    font-size: 12px;

    padding: 8px 10px;
    border-radius: 6px;

    opacity: 0;
    pointer-events: none;

    transform: translateY(5px);
    transition: 0.2s;

    z-index: 50;
}
.ps-leasing-badge {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* hover эффект как у кнопок */
.ps-leasing-badge:hover {
    background: #f0dfc6;
}

.ps-payback {
    display: flex;
    align-items: center;
    gap: 8px;

    background: #eef5ee;
    border-radius: 12px;
    padding: 4px 12px;
    margin-top: 8px;
}

/* Окупаемость в одну строку */
.ps-payback-text {
    font-size: 14px;
}
.ps-icon-circle svg {
    width: 24px;
    height: 24px;
    stroke: #2e7d32;
    fill: none;
}
.ps-delivery-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.ps-pickup-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}