#ppd-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 9999;
    overflow-y: auto;
    padding: 20px 10px;
}

.ppd-content {
    position: relative;
    max-width: 350px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    margin: 5% auto;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeInScale 0.3s ease-in-out;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#ppd-popup .ppd-close {
    position: absolute!important;
    top: 19px;        /* فاصله از بالا */
    right: 26px;      /* فاصله از راست */
    font-size: 26px;  
    cursor: pointer;
    color: #333;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    z-index: 2000;
    transition: color 0.2s;
}

.ppd-close:hover {
    color: #e11d48;
}


.ppd-img-wrapper {
    position: relative;
}

.ppd-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e11d48;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 7px 13px;
    border-radius: 18px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.ppd-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.ppd-content span {
    font-size: 20px;
    margin-bottom: 12px;
    color: #222;
        font-weight: 800;
}

.ppd-prices {
    margin-bottom: 15px;
    font-size: 15px;
}

.ppd-prices .regular {
    text-decoration: line-through;
    color: #C4C4C4!important;
    margin-right: 8px;
    font-weight: 500;
}

.ppd-prices .sale {
    color: #353535!important;
    margin-right: 8px;
    font-weight: 600;
}
#ppd-popup .ppd-prices .regular .woocommerce-Price-amount,
#ppd-popup .ppd-prices .regular .woocommerce-Price-amount bdi,
#ppd-popup .ppd-prices .regular .woocommerce-Price-currencySymbol {
    color: #C4C4C4 !important;
    text-decoration: line-through !important;
}

#ppd-popup .ppd-prices .sale .woocommerce-Price-amount,
#ppd-popup .ppd-prices .sale .woocommerce-Price-amount bdi,
#ppd-popup .ppd-prices .sale .woocommerce-Price-currencySymbol {
    color: #353535 !important;
    font-weight: 700 !important;
}


#ppd-timer {
    font-size: 16px;
    color: #C09E55;
    margin-bottom: 15px;
    font-weight: 700;
}

.ppd-buy-btn {
    display: inline-block;
    padding: 14px 83px!important;
    background-color:#e11d48!important;
    color:#fff!important;
    border-radius: 6px!important;
    font-size: 15px!important;
    font-weight: 700!important;
    text-decoration: none;
    transition: background 0.3s;
}

.ppd-buy-btn:hover {
    background-color: #e60023;
}

@media (max-width: 480px) {
    .ppd-content {
        padding: 15px 10px;
    }
    .ppd-img {
        max-height: 180px;
    }
    .ppd-content h2 {
        font-size: 18px;
    }
    .ppd-buy-btn {
        width: 100%;
        padding: 10px 0;
    }
    .ppd-close {
    top: 22px;
   
   
}
}
