/* ========================================
   استایل‌های اختصاصی صفحات محصولات
   ======================================== */
body {
    
}

/* ========================================
   ۱. صفحه محصول تکی (Single Product)
   ======================================== */
.product-single {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.product-breadcrumb {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--orange);
}
.product-breadcrumb a {
    color: var(--orange);
}
.product-breadcrumb a:hover {
    color: var(--orange-dark);
}

.product-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: var(--shadow-sm);
    display: block;
}

.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-gallery:hover img {
    transform: scale(1.05);
}
.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--orange);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-info {
    background: white;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: var(--shadow-sm);
}
.product-info .product-category {
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin: 8px 0 12px;
}
.product-info .product-code {
    color: var(--gray);
    font-size: 0.85rem;
}
.product-info .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
    margin: 15px 0;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 25px 0;
}

.product-specs .spec-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: rgba(243, 220, 204, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-specs .spec-item:hover {
    background: #f0f7ff;
    border-color: #d0e1f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.product-specs .spec-item .spec-label {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.product-specs .spec-item .spec-value {
    color: var(--navy);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

.product-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.product-description p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.btn-product {
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-product-primary {
    background: var(--orange);
    color: white;
}
.btn-product-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    color: white;
}
.btn-product-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
}
.btn-product-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

/* ===== محصولات مرتبط ===== */
.related-products {
    margin-top: 50px;
}
.related-products h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--orange);
}

/* ========================================
   ۲. صفحه دسته محصولات (Category Products)
   ======================================== */
.category-page {
    padding: 40px 0 60px;
    background: var(--gray-50);
}

.category-header {
    background: var(--navy);
    color: white;
    padding: 40px 0;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
}
.category-header h1 {
    font-size: 2rem;
    font-weight: 800;
}
.category-header p {
    opacity: 0.8;
    margin: 0;
}

/* ========================================
   ۳. صفحه همه محصولات (All Products)
   ======================================== */
.all-products {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

.all-products-header {
    text-align: center;
    margin-bottom: 40px;
}
.all-products-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
}
.all-products-header h1 span {
    color: var(--orange);
}
.all-products-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* ===== تب‌های دسته‌بندی ===== */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 35px;
}
.category-tabs .tab-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-tabs .tab-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.category-tabs .tab-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: white;
}

/* ===== بخش‌های محصولات (سکشن‌ها) ===== */
.product-section {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(10, 22, 40, 0.04);
}
.product-section h4 {
    color: var(--navy);
}
.product-section h4 span {
    color: var(--orange);
}
.product-section.hidden {
    display: none;
}

.section-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    position: relative;
    padding-right: 15px;
}
.section-label::before {
    content: '';
    position: absolute;
    margin: -10px;
    top: 8px;
    width: 4px;
    height: 100%;
    background: var(--orange);
    border-radius: 2px;
}

.product-grid-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.product-grid-card .card-img {
    overflow: hidden;
    background: #f8fafc;
}
.product-grid-card .card-img img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
}
.product-grid-card:hover .card-img img {
    transform: scale(1.05);
}
.product-grid-card .card-body {
    padding: 14px 16px;
}
.product-grid-card .card-body .card-category {
    font-size: 0.7rem;
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.product-grid-card .card-body h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 4px 0;
    color: var(--navy);
}
.product-grid-card .card-body .card-code {
    font-size: 0.7rem;
    color: var(--gray);
}
.product-grid-card .card-body .card-price {
    font-weight: 700;
    color: var(--orange);
    margin-top: 4px;
    font-size: 0.9rem;
}

/* ========================================
   ریسپانسیو
   ======================================== */

/* ===== تبلت ===== */
@media (max-width: 992px) {
    .product-specs {
        grid-template-columns: 1fr;
    }
    .product-card .card-img {
        aspect-ratio: 16 / 9;
    }
}

/* ===== موبایل بزرگ ===== */
@media (max-width: 768px) {
    /* ===== محصول تکی ===== */
    .product-info {
        padding: 24px 20px;
    }
    /* ===== همه محصولات ===== */
    .all-products-header h1 {
        font-size: 1.6rem;
    }
    .product-section {
        padding: 16px;
    }
    /* ===== دسته محصولات ===== */
    .product-card .card-img {
        aspect-ratio: 4 / 3;
    }
    .category-header h1 {
        font-size: 1.5rem;
    }
}

/* ===== موبایل کوچک ===== */
@media (max-width: 576px) {
    /* ===== محصول تکی ===== */
    .product-single {
        padding: 30px 0 50px;
    }
    .product-info {
        padding: 16px 14px;
    }
    .product-info h1 {
        font-size: 1.2rem;
    }
    .product-specs {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .product-specs .spec-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .product-actions {
        flex-direction: column;
    }
    .btn-product {
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .related-products h3 {
        font-size: 1.1rem;
    }

    /* ===== همه محصولات ===== */
    .all-products {
        padding: 30px 0 50px;
    }
    .product-grid-card .card-img {

    }
    .product-grid-card .card-body {
        padding: 8px 10px;
    }
    .product-grid-card .card-body h5 {
        font-size: 0.75rem;
    }
    .product-grid-card .card-body .card-category {
        font-size: 0.6rem;
    }
    .product-grid-card .card-body .card-code {
        font-size: 0.55rem;
    }
    .product-grid-card .card-body .card-price {
        font-size: 0.75rem;
    }
    .product-section {
        padding: 12px;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    .section-label {
        font-size: 1rem;
        padding-right: 10px;
    }

    /* ===== دسته محصولات ===== */
    .product-card .card-img {
        aspect-ratio: 4 / 3;
    }
    .product-card .card-body {
        padding: 10px 12px;
    }
    .product-card .card-body h5 {
        font-size: 0.85rem;
    }
    .category-header {
        padding: 25px 0;
        border-radius: 12px;
    }
    .category-header h1 {
        font-size: 1.2rem;
    }
    .category-header p {
        font-size: 0.85rem;
    }
    .category-page {
        padding: 30px 0 50px;
    }
}

/* ===== موبایل خیلی کوچک ===== */
@media (max-width: 400px) {
    .product-gallery {
        aspect-ratio: 1 / 1;
    }
    .product-grid-card .card-img {
        aspect-ratio: 1 / 1;
    }
    .product-grid-card .card-body h5 {
        font-size: 0.65rem;
    }
    .product-grid-card .card-body .card-category {
        font-size: 0.5rem;
    }
    .product-grid-card .card-body .card-code {
        font-size: 0.5rem;
    }
    .product-grid-card .card-body .card-price {
        font-size: 0.65rem;
    }
    .product-card .card-img {
        aspect-ratio: 1 / 1;
    }
    .product-card .card-body h5 {
        font-size: 0.75rem;
    }
    .product-card .card-body .card-category {
        font-size: 0.6rem;
    }
    .product-card .card-body .card-code {
        font-size: 0.6rem;
    }
    .product-card .card-body .card-price {
        font-size: 0.7rem;
    }
}

