
/* ==========================================================================
    استایل‌های اختصاصی صفحه جزئیات محصول و اسلایدرها (منطبق با صفحه اصلی)
    ========================================================================== */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-thumb {
    opacity: 0.6;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.product-thumb.active,
.product-thumb:hover {
    opacity: 1;
}

.btn-outline-secondary {
    border-radius: 12px !important;
    border: 1px solid #ddd !important;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f60 !important;
    border-color: #f60 !important;
    color: white !important;
}

.nav-tabs {
    border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
    border: none;
    font-weight: 600;
    color: #666;
    padding: 12px 20px;
}

.nav-tabs .nav-link.active {
    color: #f60;
    border-bottom: 2px solid #f60;
    background: none;
}

.rating-stars i {
    transition: color 0.2s;
    cursor: pointer;
}

.rating-stars i:hover,
.rating-stars i.hover {
    color: #ffc107 !important;
}

/* استایل بخش هدر هر اسلایدر */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 2px solid #f60;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.section-title i {
    color: #f60;
    font-size: 28px;
}

.view-all {
    color: #f60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    color: #e55a00;
    transform: translateX(-3px);
}

/* بخش اسلایدر سوایپر */
.product-slider-section {
    position: relative;
    margin-bottom: 50px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    padding: 24px 56px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: visible;
}

.product-slider-section .section-header {
    margin-bottom: 20px;
}

.product-slider-box {
    position: relative;
    width: 100%;
}

.product-slider-box .swiper {
    overflow: hidden;
    padding: 10px 4px 14px;
}

.swiper {
    padding: 10px 5px;
}

.swiper-slide {
    height: auto;
}

/* دکمه‌های ناوبری شخصی‌سازی شده اسلایدر */
.swiper-button-next-custom,
.swiper-button-prev-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: all 0.3s;
    color: #333;
    padding: 0;
    line-height: 1;
}

.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
    background: #f60;
    border-color: #f60;
    color: white;
}

.swiper-button-next-custom.swiper-button-disabled,
.swiper-button-prev-custom.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.swiper-button-next-custom {
    right: -46px;
}

.swiper-button-prev-custom {
    left: -46px;
}

.used-book-note {
    border-radius: 14px;
    border: 1px solid rgba(255, 152, 0, 0.35);
    background: rgba(255, 152, 0, 0.08);
    color: #664200;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.9;
}

.used-book-note a {
    color: #f60;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #f60;
}

.used-book-note a:hover {
    color: #e55a00;
}

/* کارت محصول اسلایدر (دقیقاً مشابه صفحه اصلی) */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* برچسب‌های وضعیت و تخفیف کارت */
.condition-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.condition-badge.new {
    background: #4caf50;
    color: white;
}

.condition-badge.used {
    background: #ff9800;
    color: white;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f60;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* دکمه افزودن به سبد در اسلایدر */
.add-to-cart-btn {
    background: #f60;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1.2;
    min-height: 40px;
}

.add-to-cart-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

.product-info {
    padding: 15px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-slider {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    min-height: 40px;
}

.product-title-slider a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title-slider a:hover {
    color: #f60;
}

.product-author-slider {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    min-height: 30px;
}

.product-price-slider {
    margin-top: auto;
}

.product-price-slider .final-price {
    font-size: 16px;
    font-weight: 700;
    color: #f60;
}

.product-price-slider .old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

#price-orange {
    color: #f60;
}


/* واکنش‌گرایی اسلایدرها */
@media (max-width: 768px) {
    .section-title {
        font-size: 18px;
    }
    .section-title i {
        font-size: 22px;
    }
    .product-title-slider {
        font-size: 12px;
        min-height: 35px;
    }
    .product-author-slider {
        font-size: 10px;
        min-height: 25px;
    }
    .product-price-slider .final-price {
        font-size: 14px;
    }
    .product-slider-section {
        padding: 18px 42px 22px;
        border-radius: 18px;
    }

    .swiper-button-next-custom,
    .swiper-button-prev-custom {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .swiper-button-next-custom {
        right: -36px;
    }

    .swiper-button-prev-custom {
        left: -36px;
    }

    .used-book-note {
        font-size: 13px;
        padding: 9px 12px;
    }

    .add-to-cart-btn {
        font-size: 11px;
        padding: 9px 4px;
        gap: 4px;
        letter-spacing: -0.2px;
    }

    .add-to-cart-btn i {
        font-size: 11px;
        flex-shrink: 0;
    }

}
