﻿/* ===== استایل صفحه جزئیات محصول ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8fafc;
    color: #1E2B37;
    line-height: 1.8;
}

a {
    text-decoration: none;
}

.product-detail-page {
    background: #f8fafc;
    min-height: 100vh;
    padding: 40px 0 60px;
}

/* ===== هدر صفحه ===== */
.page-header {
    background: linear-gradient(135deg, #0B4F6C 0%, #1A6D8A 100%);
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .page-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
    }

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

    .page-header .breadcrumb-item a:hover {
        color: #F4B400;
    }

.page-header .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== کارت محصول ===== */
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    height: 100%;
}

/* ===== تصویر محصول ===== */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
    width: 100%;
    aspect-ratio: 4 / 3;
}

    .product-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
        display: block;
    }

    .product-image-wrapper:hover img {
        transform: scale(1.03);
    }

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #F4B400;
    color: #0B4F6C;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
}

.product-stock {
    position: absolute;
    bottom: 15px;
    left: 15px;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

    .product-stock.available {
        background: rgba(39, 174, 96, 0.9);
        color: white;
    }

    .product-stock.unavailable {
        background: rgba(231, 76, 60, 0.9);
        color: white;
    }

/* ===== محتوای محصول ===== */
.product-body {
    padding: 2rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1E2B37;
    margin-bottom: 0.5rem;
}

.product-company-name {
    font-size: 1rem;
    color: #0B4F6C;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .product-company-name i {
        color: #F4B400;
    }

/* ===== متا اطلاعات ===== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
    margin-bottom: 1.5rem;
}

    .product-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #7a8a9e;
        font-size: 0.95rem;
    }

        .product-meta .meta-item i {
            color: #F4B400;
            width: 18px;
        }

        .product-meta .meta-item .value {
            color: #1E2B37;
            font-weight: 600;
        }

/* ===== قیمت ===== */
.product-price-box {
    background: linear-gradient(135deg, #f0f8ff, #f8fafc);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .product-price-box .price-label {
        font-size: 0.9rem;
        color: #7a8a9e;
    }

    .product-price-box .price-value {
        font-size: 1.8rem;
        font-weight: 800;
        color: #0B4F6C;
    }

        .product-price-box .price-value .currency {
            font-size: 1rem;
            color: #7a8a9e;
        }

    .product-price-box .off-price {
        font-size: 1.2rem;
        color: #e74c3c;
        text-decoration: line-through;
        margin-right: 1rem;
    }

/* ===== متن محصول ===== */
.product-description {
    color: #3d4f60;
    font-size: 1.05rem;
    line-height: 2;
}

    .product-description p {
        margin-bottom: 1.2rem;
    }

    .product-description h4 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #0B4F6C;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .product-description ul {
        padding-right: 1.5rem;
        margin-bottom: 1.5rem;
    }

        .product-description ul li {
            margin-bottom: 0.5rem;
        }

/* ===== برچسب‌ها ===== */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f4f8;
    margin-top: 1.5rem;
}

    .product-tags .tag {
        background: #f0f4f8;
        color: #546E7A;
        padding: 0.3rem 1.2rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .product-tags .tag:hover {
            background: #0B4F6C;
            color: white;
            transform: translateY(-2px);
        }

/* ===== دکمه‌ها ===== */
.product-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-product {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-product-primary {
    background: linear-gradient(135deg, #0B4F6C, #1A6D8A);
    color: white;
}

    .btn-product-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(11, 79, 108, 0.3);
        color: white;
    }

.btn-product-secondary {
    background: #f1f4f9;
    color: #1E2B37;
}

    .btn-product-secondary:hover {
        background: #e2e8f0;
        transform: translateY(-3px);
    }

.btn-product-whatsapp {
    background: #25D366;
    color: white;
}

    .btn-product-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
        color: white;
    }

/* ===== کارت معرفی شرکت ===== */
.company-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .company-card:hover {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    }

    .company-card .company-logo {
        width: 100px;
        height: 100px;
        border-radius: 20px;
        background: #f0f4f8;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 3rem;
        color: #0B4F6C;
        border: 2px solid #e2e8f0;
        overflow: hidden;
    }

        .company-card .company-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .company-card .company-name {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1E2B37;
        text-align: center;
        margin-bottom: 0.3rem;
    }

    .company-card .company-type {
        text-align: center;
        color: #0B4F6C;
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .company-card .company-desc {
        color: #7a8a9e;
        font-size: 0.95rem;
        text-align: center;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }

    .company-card .company-info {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        padding-top: 1rem;
        border-top: 2px solid #f0f4f8;
    }

        .company-card .company-info .info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #7a8a9e;
            font-size: 0.9rem;
        }

            .company-card .company-info .info-item i {
                color: #F4B400;
                width: 20px;
            }

            .company-card .company-info .info-item a {
                color: #0B4F6C;
            }

                .company-card .company-info .info-item a:hover {
                    color: #F4B400;
                }

    .company-card .btn-company {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.7rem;
        background: #0B4F6C;
        color: white;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        margin-top: 1.5rem;
    }

        .company-card .btn-company:hover {
            background: #F4B400;
            color: #0B4F6C;
            transform: translateY(-3px);
        }

/* ===== ریسپانسیو ===== */
@@media (max-width: 992px) {
    .product-title {
        font-size: 1.5rem;
    }

    .product-price-box .price-value {
        font-size: 1.5rem;
    }
}

@@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 40px;
    }

    .page-header {
        padding: 25px 0 20px;
    }

        .page-header h1 {
            font-size: 1.5rem;
        }

    .product-title {
        font-size: 1.3rem;
    }

    .product-body {
        padding: 1.5rem;
    }

    .product-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .product-price-box {
        flex-direction: column;
        text-align: center;
    }

    .product-actions {
        flex-direction: column;
    }

        .product-actions .btn-product {
            width: 100%;
            justify-content: center;
        }

    .company-card {
        padding: 1.5rem;
    }
}

@@media (max-width: 576px) {
    .page-header h1 {
        font-size: 1.2rem;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-body {
        padding: 1rem;
    }

    .product-price-box {
        padding: 1rem;
    }

        .product-price-box .price-value {
            font-size: 1.3rem;
        }

    .company-card .company-logo {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
}
