.main-product-image {
    cursor: zoom-in;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.image-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.image-modal-arrow.left {
    left: 30px;
}

.image-modal-arrow.right {
    right: 30px;
}

.image-modal-arrow:hover {
    opacity: 0.8;
}


.old-price {
    color: #888;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.old-price::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #e53935; /* красная линия */
    transform: rotate(-5deg);  /* лёгкий наклон (по желанию) */
}


.old-price-small {
    color: #888;
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.old-price-small::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #e53935;
}

.new-price,
.new-price-small {
    color: #e53935;
    font-weight: 700;
}

.old-price-table {
    color: #888;
    position: relative;
    display: inline-block;
    margin-right: 6px;
}

.old-price-table::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background-color: #e53935; /* красная линия */
}

.new-price-table {
    color: #e53935;
    font-weight: 600;
}

/* =========================================================
   BADGES (НАЕЗЖАЮТ НА ТОВАР, НЕ ЛОМАЮТ ВЕРСТКУ)
   ========================================================= */

/* Якорь для абсолютного позиционирования */
.product-detail-wrapper,
.product-image {
    position: relative;
}

/* Контейнер бейджей */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    z-index: 6;
    pointer-events: none; /* не мешает кликам и зуму */
    max-width: 75%;
}

/* Общий стиль бейджа */
.product-badges .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    white-space: nowrap;
}

/* Цвета бейджей */
.badge-new {
    background-color: #b60000;
    color: #fff;
}

.badge-bestseller {
    background-color: #da08c8;
    color: #fff;
}

.badge-discount {
    background-color: #e53935;
    color: #fff;
}

/* =========================================================
   OPTIONAL: адаптация под мобильные
   ========================================================= */

@media (max-width: 576px) {
    .product-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }

    .product-badges .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
}