﻿/* ============================================
       استایل‌های اختصاصی صفحه محصول - بدون تداخل با کلاس‌های موجود
       ============================================ */

/* بهبود فاصله‌گذاری کلی */
.product-box {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* گالری تصاویر */
.product-gallery-wrapper {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-main-image {
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .product-main-image:hover {
        transform: scale(1.02);
    }

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .thumbnail.active {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220,53,69,0.2);
    }

    .thumbnail:hover {
        transform: translateY(-3px);
        border-color: #dc3545;
    }

/* باکس قیمت */
.price-card {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .price-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(220,53,69,0.1);
    }

    .price-card .card-body {
        padding: 1.5rem;
    }

/* محصولات مشابه - گرید بدون فضای اضافی */
/* گرید محصولات مشابه - اصلاح شده برای ریسپانسیو */
.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* ریسپانسیو برای تبلت */
@media (max-width: 992px) {
    .similar-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ریسپانسیو برای موبایل - 2 ستون */
@media (max-width: 768px) {
    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ریسپانسیو برای موبایل کوچک - 1 ستون */
@media (max-width: 480px) {
    .similar-products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}

/* کارت محصولات مشابه */
.similar-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f6;
}

    .similar-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(220,53,69,0.15);
        border-color: #dc3545;
    }

.similar-product-img {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
}

    .similar-product-img img {
        max-width: 100%;
        max-height: 120px;
        transition: transform 0.3s ease;
    }

.similar-product-card:hover .similar-product-img img {
    transform: scale(1.05);
}

.similar-product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.similar-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
    margin: 8px 0;
}

    .similar-product-price strike {
        font-size: 13px;
        color: #999;
        font-weight: 400;
    }

.similar-product-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

    .similar-product-btn:hover {
        background: #c82333;
        transform: translateY(-2px);
        color: white;
    }

/* بخش نظرات */
.comment-card {
    border-radius: 16px;
    transition: all 0.3s ease;
}

    .comment-card:hover {
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    }

.comment-positive {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 8px;
}

.comment-negative {
    background: #ffebee;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 8px;
}

.comment-response {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 12px 15px;
    margin-top: 12px;
    border-right: 3px solid #dc3545;
}

/* تب‌ها */
.custom-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e5e7eb;
    margin: 20px 0;
    flex-wrap: wrap;
}

.custom-tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

    .custom-tab-btn:hover {
        color: #dc3545;
    }

    .custom-tab-btn.active {
        color: #dc3545;
    }

        .custom-tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -2px;
            right: 0;
            left: 0;
            height: 3px;
            background: #dc3545;
            border-radius: 3px;
        }

.custom-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .custom-tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* آیکون‌های مشخصات */
.spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-left: 8px;
    color: #dc3545;
    font-size: 13px;
}

/* ریسپانسیو گالری و اطلاعات اصلی */
@media (max-width: 768px) {
    .thumbnail {
        width: 55px;
        height: 55px;
    }

    .price-card .card-body {
        padding: 1rem;
    }
}
