/**
 * PYM Product Info Display System - Styles
 * استایل‌های سیستم نمایش اطلاعات محصول
 * Version: 20.9.9.9.16
 */

/* کانتینر اصلی */
.pym-right-single-dore {
    background: #E6EEFA;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0;
    font-family: inherit; /* استفاده از فونت قالب */
    direction: rtl;
}

/* باکس قیمت و تعداد */
.pym-box-price-tedad {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #1350C3;
    border-radius: 10px;
    color: white;
}

.pym-box-price-tedad1 {
    text-align: center;
}

.pym-tedad-adad {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.pym-price-taranom {
    font-size: 18px;
}

.pym-price-taranom del {
    color: #ffebee;
    text-decoration: line-through;
    margin-left: 10px;
}

.pym-price-taranom ins {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
}

/* تایمر تخفیف - مینیمال و حرفه‌ای */
.pym-iran-pak.pym-in-offer-2.pym-nevise {
    float: right;
    width: 100%;
    margin-top: 30px;
    padding: 30px 25px;
    box-sizing: border-box;
    border-radius: 12px;
    position: relative;
}

.pym-timet-new-onvan {
    margin: auto;
    width: 180px;
    background: #F47C45;
    text-align: center;
    padding: 10px 16px;
    margin-top: -30px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    border-radius: 8px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pym-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.pym-timer-wrapper {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
    width: 65px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: none;
}

.pym-timer-wrapper:hover {
    background: #f1f3f4;
    border: none;
}

.pym-time1 {
    font-size: 28px;
    font-weight: 700;
    display: block;
    margin-bottom: -3px;
    color: #1350C3;
}

.pym-text32 {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* باکس خرید */
.pym-price-kharid-43534 {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pym-price {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pym-price del {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 0;
    font-size: 16px;
    font-weight: 400;
    filter: blur(0.5px);
    opacity: 0.7;
}

.pym-price ins {
    color: #27ae60;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
}

.pym-price .woocommerce-Price-currencySymbol {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    margin-right: 3px;
}

/* استایل حرفه‌ای فرم سبد خرید */
.cart {
    margin-bottom: 20px;
}

.quantity {
    margin-bottom: 15px;
}

.pymaddtocart-quantity-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pymaddtocart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.pymaddtocart-btn:hover {
    background: #1350C3;
    color: #ffffff;
    border-color: #1350C3;
    transform: translateY(-1px);
}

.pymaddtocart-quantity-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 15px;
}

.pymaddtocart-quantity-span {
    font-size: 18px;
    font-weight: 700;
    color: #1350C3;
    margin-bottom: 2px;
}

.pymaddtocart-text-span {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.pymaddtocart-go-to-shop {
    display: block;
    text-align: center;
    background: #1350C3;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.pymaddtocart-go-to-shop:hover {
    background: #0d3d8f;
    transform: translateY(-1px);
    color: #ffffff;
}

.single_add_to_cart_button {
    width: 100%;
    background: #1350C3;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(19, 80, 195, 0.2);
}

.single_add_to_cart_button:hover {
    background: #0d3d8f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(19, 80, 195, 0.3);
}

/* علاقه مندی ها */
.pym-yith-wcwl-add-to-wishlist {
    margin-bottom: 15px;
}

.pym-add_to_wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #1350C3;
    border: 2px solid #1350C3;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pym-add_to_wishlist:hover {
    background: #1350C3;
    color: white;
    transform: translateY(-2px);
}

.pym-add_to_wishlist i {
    font-size: 18px;
}

/* لینک دانلود */
.pym-listdoroos {
    display: block;
    text-align: center;
    background: #E6EEFA;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.pym-listdoroos:hover {
    transform: translateY(-2px);
    color: white;
}

/* پیشرفت دوره */
.pym-mizan-pishraft {
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.pym-darsad-daryaft-shod {
    background: #d5dfee;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pym-darsad-darsas-23454 {
    background: #1350C3;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.pym-dakheldore {
    text-align: center;
    font-size: 14px;
    color: #2c3e50;
    font-weight: bold;
}

/* اطلاعات مدرس */
.pym-modares-99-12 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(240, 240, 240, 0.02);
}

.pym-teacher-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pym-avatar.pym-avatar-30.pym-photo {
    border-radius: 50%;
    border: 3px solid #1350C3;
}

.pym-modares-1402 {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 2px;
}

/* آمار دوره */
.pym-joziat-dars {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}

.pym-joziat-dars-box {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(240, 240, 240, 0.02);
    transition: transform 0.3s ease;
}

.pym-joziat-dars-box:hover {
    transform: translateY(-3px);
}

.pym-sdfgfg-45645 {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.pym-jozi-54 {
    font-size: 12px;
    color: #7f8c8d;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pym-right-single-dore {
        padding: 12px;
        margin: 8px 0;
    }
    
    .pym-box-price-tedad {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .pym-tedad-adad {
        font-size: 20px;
    }
    
    .pym-price-taranom {
        font-size: 16px;
    }
    
    .pym-iran-pak.pym-in-offer-2.pym-nevise {
        padding: 20px 15px;
        border-radius: 15px;
        margin-top: 20px;
    }
    
    .pym-timet-new-onvan {
        width: 160px;
        padding: 8px 12px;
        font-size: 12px;
        margin-top: -25px;
        margin-bottom: 20px;
    }
    
    /* تایمر در موبایل در یک ردیف */
    .pym-timer {
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pym-timer-wrapper {
        padding: 10px 8px;
        width: 55px;
        height: 55px;
        min-width: 55px;
    }
    
    .pym-time1 {
        font-size: 16px;
        margin-bottom: -7px;
    }
    
    .pym-text32 {
        font-size: 9px;
    }
    
    /* جزئیات درس در موبایل در یک ردیف */
    .pym-joziat-dars {
        flex-direction: row;
        gap: 8px;
        margin: 15px 0;
    }
    
    .pym-joziat-dars-box {
        padding: 10px 8px;
        flex: 1;
        min-width: 0;
    }
    
    .pym-sdfgfg-45645 {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .pym-jozi-54 {
        font-size: 10px;
    }
    
    .pym-modares-99-12 {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .pym-modares-1402 {
        font-size: 11px;
    }
    
    /* کاهش سایز فونت‌ها و پدینگ‌ها */
    .pym-price {
        font-size: 20px;
        margin-bottom: 15px;
        gap: 10px;
    }
    
    .pym-price del {
        font-size: 14px;
    }
    
    .pym-price ins {
        font-size: 18px;
    }
    
    .pymaddtocart-quantity-container {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .pymaddtocart-quantity-span {
        font-size: 16px;
    }
    
    .pymaddtocart-text-span {
        font-size: 11px;
    }
    
    .pymaddtocart-go-to-shop {
        padding: 10px 16px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .single_add_to_cart_button {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .pym-add_to_wishlist {
        padding: 10px;
        font-size: 13px;
    }
    
    .pym-listdoroos {
        padding: 10px;
        font-size: 13px;
    }
    
    .pym-dakheldore {
        font-size: 12px;
    }
    
    .pym-price-kharid-43534 {
        padding: 15px;
        margin: 15px 0;
    }
    
    .pym-mizan-pishraft {
        padding: 12px;
        margin: 15px 0;
    }
}

/* انیمیشن‌های مینیمال */
.pym-timer-wrapper:hover {
    transform: translateY(-1px);
}

/* استایل حرفه‌ای دکمه Ajax افزودن به سبد خرید */
.pym-ajax-cart-container {
    display: grid !important;
    margin-bottom: 20px;
}

.pym-ajax-add-to-cart-btn {
    width: 100%;
    background: linear-gradient(135deg, #1350C3 0%, #0d3d8f 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(19, 80, 195, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
}

.pym-ajax-add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pym-ajax-add-to-cart-btn:hover::before {
    left: 100%;
}

.pym-ajax-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #0d3d8f 0%, #1350C3 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 80, 195, 0.4);
}

.pym-ajax-add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(19, 80, 195, 0.3);
}

.pym-ajax-add-to-cart-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.pym-ajax-add-to-cart-btn:disabled:hover {
    background: #efe9e9;
    transform: none;
    box-shadow: none;
}

/* حالت‌های مختلف دکمه */
.pym-ajax-add-to-cart-btn.pym-loading {
    background: #1350C3;
    cursor: wait;
}

.pym-ajax-add-to-cart-btn.pym-success {
    background: #2f8a60 !important;
    animation: pym-success-pulse 0.6s ease-in-out;
}

.pym-ajax-add-to-cart-btn.pym-variable-product {
    background: #6c757d;
}

.pym-ajax-add-to-cart-btn.pym-out-of-stock {
    background: #dc3545;
}

/* انیمیشن‌ها */
@keyframes pym-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* اسپینر loading */
.pym-spinner {
    width: 20px;
    height: 20px;
    animation: pym-spin 1s linear infinite;
}

@keyframes pym-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* پیام‌های موفقیت و خطا */
.pym-cart-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: pym-message-slide 0.3s ease-out;
}

.pym-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pym-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes pym-message-slide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .pym-ajax-add-to-cart-btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .pym-cart-message {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* مخفی کردن دکمه پیشفرض ووکامرس */
.woocommerce .single-product .woocommerce-variation-add-to-cart,
.woocommerce .single-product .cart,
.woocommerce .single-product form.cart {
    display: none !important;
}

/* wrapper دکمه Ajax */
.pym-ajax-cart-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

 