﻿/* بخش‌های قبلی شما که به درستی کار می‌کرد */
.product-box {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px; 
    box-shadow: 0 0 10px rgba(0,0,0,0.05); 
}
.product-detail {
    background-color: #fff;
}

.theme-dark .product-detail {
    background-color: #212b36;
}

.theme-dark .product-box {
    position: relative;
    overflow: hidden;
    background-color: #212b36;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); 
}

    .product-box .product-action {
        position: absolute;
        right: 0;
        top: 0;
        padding: 1rem;
        z-index: 3;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.3s ease-in-out;
    }

    .product-box:hover .product-action {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    /* --- اصلاح بخش تصویر (bg-light) --- */
    .product-box .bg-light {
        position: relative;
        width: 100%;
        height: 250px; 
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f8f9fa !important;
    }

.theme-dark .product-box .bg-light {
    position: relative;
    width: 100%;
    height: 250px; 
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3c2828 !important;
}

        .product-box .bg-light img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            transition: transform 0.5s ease;
        }

    .product-box:hover .bg-light img {
        transform: scale(1.05); /* افکت زوم ملایم هنگام هوور */
    }


    .product-box .product-info {
        padding: 1.5rem;
    }

    .product-box .product-price-tag {
        height: 48px;
        line-height: 48px;
        font-weight: 700;
        font-size: 20px;
        background-color: #f3f7f9;
        text-align: center;
        padding: 0 10px;
        border-radius: 3px;
    }

.sp-line-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.text-dark-them{
    color:black !important;
}
.theme-dark text-dark-them{
    color:white !important;
}
/*salePlan*/
.salePlan-a li {
    margin-bottom: 10px;
}

    .salePlan-a li:last-child {
        margin-bottom: 0;
    }

    .salePlan-a li a {
        position: relative;
        color: var(--grayColor);
    }

        .salePlan-a li a:after {
            position: absolute;
            content: "";
            top: 100%;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--secondaryColor);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.5s;
        }

        .salePlan-a li a:hover {
            color: #FFB800;
        }

            .salePlan-a li a:hover:after {
                transform: scaleX(1);
                transform-origin: left;
            }
/*salePlan*/