/*
Theme Name: کاتالوگ دکتر خطیب
Theme URI: https://riodev.ir/khatib/
Author: امیر حسین عسگری
Author URI: https://riodev.ir/khatib/
Description: دکتر خطیب
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive,2 columns,rtl
Text Domain: develop-wp-theme
*/


/* modern-properties.css - طراحی مدرن صفحه کاتالوگ دکتر خطیب */

/* ======================================== */
/* هدر مدرن با انیمیشن */
/* ======================================== */
/* استایل تخفیف */


/* استایل‌های مودال گالری */
.modal-gallery {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
}

.modal-gallery-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #fe599b;
    transform: rotate(90deg);
}

.main-gallery-image {
    text-align: center;
    margin-bottom: 20px;
}

.main-gallery-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    transform: scale(1.1);
    border-color: #fe599b;
}

.gallery-thumbnail.active {
    border-color: #fe599b;
    box-shadow: 0 0 15px rgba(254,89,155,0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: #fe599b;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.product-gallery-trigger {
    cursor: pointer;
}

.image-counter {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-family: 'IRANYekanX';
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        padding: 10px;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .main-gallery-image img {
        max-height: 50vh;
    }
}

/* استایل اتمام موجودی */
.out-of-stock-product {
    position: relative;
    opacity: 0.85;
    background: #f8f9fa;
}

.out-of-stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}

.out-of-stock-title {
    text-decoration: line-through;
    color: #999;
}

.out-of-stock-message {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.size-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e9ecef;
    color: #999;
}

.size-item.disabled:hover {
    transform: none;
    background: #e9ecef;
    color: #999;
}

.product-item.out-of-stock-product .product-image img {
    filter: grayscale(0.3);
}