﻿/* ============================================
           PRODUCT DETAIL — صفحه محصول
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
}

/* ============================================
           BREADCRUMB
           ============================================ */
.breadcrumb-section {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

    .breadcrumb-section a {
        color: #003366;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .breadcrumb-section a:hover {
            color: #F4B400;
        }

    .breadcrumb-section .separator {
        color: #9ca3af;
    }

    .breadcrumb-section .current {
        color: #6b7280;
        font-size: 0.9rem;
    }

/* ============================================
           PRODUCT MAIN
           ============================================ */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

    .product-main .product-gallery {
        flex: 1;
        min-width: 300px;
    }

        .product-main .product-gallery .main-image {
            width: 100%;
            height: 400px;
            background: linear-gradient(135deg, #fafafa, #f0f2f5);
            border-radius: 16px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: 1px solid #f0f2f5;
        }

            .product-main .product-gallery .main-image img {
                max-height: 100%;
                max-width: 100%;
                object-fit: contain;
                transition: transform 0.5s ease;
            }

            .product-main .product-gallery .main-image:hover img {
                transform: scale(1.05);
            }

            .product-main .product-gallery .main-image .badge-product {
                position: absolute;
                top: 16px;
                right: 16px;
                padding: 6px 18px;
                border-radius: 50px;
                font-size: 0.75rem;
                font-weight: 700;
                background: linear-gradient(135deg, #F4B400, #d49d00);
                color: #003366;
                box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
            }

        .product-main .product-gallery .thumbnails {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            justify-content: center;
        }

            .product-main .product-gallery .thumbnails .thumb {
                width: 80px;
                height: 80px;
                border-radius: 12px;
                overflow: hidden;
                border: 2px solid #f0f2f5;
                cursor: pointer;
                transition: all 0.4s ease;
                display: flex;
                align-items: center;
                justify-content: center;
                background: #fafafa;
            }

                .product-main .product-gallery .thumbnails .thumb:hover {
                    border-color: #F4B400;
                    transform: translateY(-3px);
                }

                .product-main .product-gallery .thumbnails .thumb.active {
                    border-color: #F4B400;
                    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.2);
                }

                .product-main .product-gallery .thumbnails .thumb img {
                    max-height: 100%;
                    max-width: 100%;
                    object-fit: contain;
                }

    /* ============================================
           PRODUCT INFO
           ============================================ */
    .product-main .product-info {
        flex: 1;
        min-width: 300px;
    }

        .product-main .product-info .product-category {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            border-radius: 50px;
            background: #f0f2f5;
            color: #6b7280;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 8px;
        }

            .product-main .product-info .product-category i {
                color: #F4B400;
            }

        .product-main .product-info h1 {
            font-weight: 800;
            color: #003366;
            font-size: 1.8rem;
            margin-bottom: 4px;
        }

        .product-main .product-info .product-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

            .product-main .product-info .product-rating .stars {
                color: #F4B400;
                font-size: 1rem;
            }

            .product-main .product-info .product-rating .rating-number {
                font-weight: 700;
                color: #003366;
            }

            .product-main .product-info .product-rating .reviews-count {
                color: #9ca3af;
                font-size: 0.85rem;
            }

        .product-main .product-info .product-price {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 16px;
            padding: 16px 0;
            border-top: 1px solid #f0f2f5;
            border-bottom: 1px solid #f0f2f5;
        }

            .product-main .product-info .product-price .current {
                font-weight: 800;
                font-size: 1.6rem;
                color: #003366;
            }

            .product-main .product-info .product-price .old {
                color: #bbb;
                text-decoration: line-through;
                font-size: 1.1rem;
            }

            .product-main .product-info .product-price .discount-badge {
                background: #ef4444;
                color: #fff;
                font-size: 0.75rem;
                font-weight: 700;
                padding: 4px 14px;
                border-radius: 50px;
            }

        .product-main .product-info .product-description {
            color: #6b7280;
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 16px;
        }

        .product-main .product-info .product-stock {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 16px;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 16px;
        }


            .product-main .product-info .product-stock.in-stock {
                background: #d1fae5;
                color: #065f46;
            }

            .product-main .product-info .product-stock.low-stock {
                background: #fef3c7;
                color: #92400e;
            }

            .product-main .product-info .product-stock.out-stock {
                background: #fee2e2;
                color: #991b1b;
            }

        /* ============================================
           QUANTITY & ADD TO CART
           ============================================ */
        .product-main .product-info .cart-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 16px;
            margin-top:16px;
        }

            .product-main .product-info .cart-actions .quantity {
                display: flex;
                align-items: center;
                border: 2px solid #e5e7eb;
                border-radius: 12px;
                overflow: hidden;
            }

                .product-main .product-info .cart-actions .quantity button {
                    width: 44px;
                    height: 44px;
                    border: none;
                    background: transparent;
                    font-size: 1.2rem;
                    cursor: pointer;
                    transition: all 0.3s ease;
                    color: #003366;
                    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                }

                    .product-main .product-info .cart-actions .quantity button:hover {
                        background: rgba(244, 180, 0, 0.1);
                    }

                .product-main .product-info .cart-actions .quantity input {
                    width: 50px;
                    height: 44px;
                    border: none;
                    text-align: center;
                    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                    font-size: 1rem;
                    font-weight: 700;
                    color: #003366;
                    background: transparent;
                    -moz-appearance: textfield;
                }

                    .product-main .product-info .cart-actions .quantity input::-webkit-outer-spin-button,
                    .product-main .product-info .cart-actions .quantity input::-webkit-inner-spin-button {
                        -webkit-appearance: none;
                        margin: 0;
                    }

            .product-main .product-info .cart-actions .btn-add-to-cart {
                flex: 1;
                min-width: 180px;
                padding: 12px 28px;
                background: linear-gradient(135deg, #003366, #0a4d8c);
                color: #fff;
                border: none;
                border-radius: 12px;
                font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                font-weight: 700;
                font-size: 1rem;
                cursor: pointer;
                transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 10px;
                box-shadow: 0 4px 20px rgba(0, 51, 102, 0.2);
            }

                .product-main .product-info .cart-actions .btn-add-to-cart:hover {
                    transform: translateY(-3px);
                    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.3);
                }

                .product-main .product-info .cart-actions .btn-add-to-cart.added {
                    background: #24c06d;
                }

            .product-main .product-info .cart-actions .btn-wishlist {
                width: 48px;
                height: 48px;
                border-radius: 12px;
                border: 2px solid #e5e7eb;
                background: transparent;
                color: #9ca3af;
                font-size: 1.2rem;
                cursor: pointer;
                transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
                display: flex;
                align-items: center;
                justify-content: center;
            }

                .product-main .product-info .cart-actions .btn-wishlist:hover {
                    border-color: #ef4444;
                    color: #ef4444;
                    transform: scale(1.05);
                }

                .product-main .product-info .cart-actions .btn-wishlist.active {
                    border-color: #ef4444;
                    color: #ef4444;
                    background: rgba(239, 68, 68, 0.05);
                }

        /* ============================================
           PRODUCT META
           ============================================ */
        .product-main .product-info .product-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            padding-top: 16px;
            border-top: 1px solid #f0f2f5;
        }

            .product-main .product-info .product-meta .meta-item {
                display: flex;
                align-items: center;
                gap: 6px;
                color: #9ca3af;
                font-size: 0.85rem;
            }

                .product-main .product-info .product-meta .meta-item i {
                    color: #F4B400;
                }

/* ============================================
           TABS
           ============================================ */
.product-tabs {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 30px;
}

    .product-tabs .tab-nav {
        display: flex;
        border-bottom: 2px solid #f0f2f5;
        background: #fafafa;
        overflow-x: auto;
    }

        .product-tabs .tab-nav .tab-btn {
            padding: 16px 28px;
            border: none;
            background: transparent;
            font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.4s ease;
            position: relative;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .product-tabs .tab-nav .tab-btn i {
                font-size: 1rem;
            }

            .product-tabs .tab-nav .tab-btn:hover {
                color: #003366;
            }

            .product-tabs .tab-nav .tab-btn.active {
                color: #003366;
            }

                .product-tabs .tab-nav .tab-btn.active::after {
                    content: '';
                    position: absolute;
                    bottom: -2px;
                    right: 0;
                    width: 100%;
                    height: 3px;
                    background: #F4B400;
                    border-radius: 3px 3px 0 0;
                }

    .product-tabs .tab-content {
        padding: 28px 30px;
    }

        .product-tabs .tab-content .tab-pane {
            display: none;
            animation: fadeIn 0.5s ease;
        }

            .product-tabs .tab-content .tab-pane.active {
                display: block;
            }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
           DESCRIPTION TAB
           ============================================ */
.tab-content .description-content h4 {
    color: #003366;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.tab-content .description-content p {
    color: #6b7280;
    line-height: 1.9;
    margin-bottom: 16px;
}

.tab-content .description-content ul {
    list-style: none;
    padding: 0;
}

    .tab-content .description-content ul li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f2f5;
        color: #4b5563;
    }

        .tab-content .description-content ul li:last-child {
            border-bottom: none;
        }

        .tab-content .description-content ul li i {
            color: #F4B400;
            width: 20px;
        }

/* ============================================
           REVIEWS TAB
           ============================================ */
.tab-content .reviews-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 24px;
}

    .tab-content .reviews-summary .avg-rating {
        text-align: center;
    }

        .tab-content .reviews-summary .avg-rating .big-number {
            font-size: 3rem;
            font-weight: 800;
            color: #003366;
            line-height: 1;
        }

        .tab-content .reviews-summary .avg-rating .stars {
            color: #F4B400;
            font-size: 1.2rem;
            margin: 4px 0;
        }

        .tab-content .reviews-summary .avg-rating .total-reviews {
            color: #9ca3af;
            font-size: 0.85rem;
        }

    .tab-content .reviews-summary .rating-bars {
        flex: 1;
        min-width: 200px;
    }

        .tab-content .reviews-summary .rating-bars .bar-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }

            .tab-content .reviews-summary .rating-bars .bar-item .bar-label {
                font-size: 0.8rem;
                color: #6b7280;
                min-width: 30px;
            }

            .tab-content .reviews-summary .rating-bars .bar-item .bar-track {
                flex: 1;
                height: 6px;
                background: #f0f2f5;
                border-radius: 10px;
                overflow: hidden;
            }

                .tab-content .reviews-summary .rating-bars .bar-item .bar-track .bar-fill {
                    height: 100%;
                    border-radius: 10px;
                    background: #F4B400;
                    transition: width 1s ease;
                }

            .tab-content .reviews-summary .rating-bars .bar-item .bar-percent {
                font-size: 0.75rem;
                color: #6b7280;
                min-width: 35px;
            }

/* Review Item */
.tab-content .review-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .tab-content .review-item:last-child {
        border-bottom: none;
    }

    .tab-content .review-item .review-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 6px;
    }

        .tab-content .review-item .review-header .review-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #003366, #0a4d8c);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
        }

        .tab-content .review-item .review-header .review-name {
            font-weight: 700;
            color: #003366;
        }

        .tab-content .review-item .review-header .review-date {
            color: #9ca3af;
            font-size: 0.8rem;
            margin-right: auto;
        }

    .tab-content .review-item .review-stars {
        color: #F4B400;
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .tab-content .review-item .review-text {
        color: #6b7280;
        font-size: 0.9rem;
        line-height: 1.7;
    }

/* ============================================
           FAQ TAB
           ============================================ */
.tab-content .faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

    .tab-content .faq-item:last-child {
        border-bottom: none;
    }

    .tab-content .faq-item .faq-question {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 700;
        color: #003366;
        transition: color 0.3s ease;
    }

        .tab-content .faq-item .faq-question:hover {
            color: #F4B400;
        }

        .tab-content .faq-item .faq-question i {
            color: #F4B400;
            transition: transform 0.4s ease;
        }

        .tab-content .faq-item .faq-question.open i {
            transform: rotate(180deg);
        }

    .tab-content .faq-item .faq-answer {
        color: #6b7280;
        font-size: 0.9rem;
        line-height: 1.8;
        padding-right: 30px;
        margin-top: 6px;
        display: none;
    }

        .tab-content .faq-item .faq-answer.open {
            display: block;
            animation: fadeIn 0.4s ease;
        }

/* ============================================
           RELATED PRODUCTS
           ============================================ */
.related-products {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 30px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .related-products .related-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f2f5;
    }

        .related-products .related-header h3 {
            font-weight: 700;
            color: #003366;
            font-size: 1.2rem;
        }

            .related-products .related-header h3 i {
                color: #F4B400;
                margin-left: 8px;
            }

    .related-products .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }

    .related-products .related-item {
        background: #fafafa;
        border-radius: 12px;
        padding: 16px;
        text-align: center;
        border: 1px solid #f0f2f5;
        transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
        cursor: pointer;
    }

        .related-products .related-item:hover {
            transform: translateY(-6px);
            border-color: #F4B400;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        }

        .related-products .related-item .related-image {
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

            .related-products .related-item .related-image img {
                max-height: 100%;
                max-width: 100%;
                object-fit: contain;
            }

        .related-products .related-item h5 {
            font-weight: 700;
            color: #003366;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .related-products .related-item .related-price {
            font-weight: 700;
            color: #003366;
            font-size: 0.95rem;
        }

            .related-products .related-item .related-price .old {
                color: #bbb;
                text-decoration: line-through;
                font-size: 0.8rem;
                margin-left: 6px;
            }

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 992px) {
    .product-main .product-gallery .main-image {
        height: 320px;
    }

    .product-main .product-info h1 {
        font-size: 1.5rem;
    }

    .product-main .product-info .product-price .current {
        font-size: 1.3rem;
    }

    .product-tabs .tab-content {
        padding: 20px;
    }

    .related-products {
        padding: 20px;
    }

        .related-products .related-grid {
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        }
}

@media (max-width: 768px) {
    .product-main {
        padding: 20px;
        flex-direction: column;
    }

        .product-main .product-gallery {
            min-width: unset;
        }

            .product-main .product-gallery .main-image {
                height: 280px;
            }

            .product-main .product-gallery .thumbnails .thumb {
                width: 60px;
                height: 60px;
            }

        .product-main .product-info {
            min-width: unset;
        }

            .product-main .product-info h1 {
                font-size: 1.3rem;
            }

    .product-tabs .tab-nav .tab-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .product-tabs .tab-content {
        padding: 16px;
    }

    .tab-content .reviews-summary {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .related-products .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .product-main .product-info .cart-actions .btn-add-to-cart {
        min-width: 140px;
        font-size: 0.9rem;
    }

    .product-main .product-info .cart-actions .quantity button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .product-main .product-info .cart-actions .quantity input {
        width: 40px;
        height: 38px;
        font-size: 0.9rem;
    }

    .product-main .product-info .cart-actions .btn-wishlist {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .breadcrumb-section {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .product-main {
        padding: 16px;
    }

        .product-main .product-gallery .main-image {
           
            height: 260px; /* افزایش ارتفاع برای نمایش بهتر */
            border-radius: 12px;
            padding: 8px; /* فاصله داخلی برای جلوگیری از برش */
        }

        .product-main .product-gallery .thumbnails .thumb {
            width: 50px;
            height: 50px;
        }

        .product-main .product-info h1 {
            font-size: 1.1rem;
        }

        .product-main .product-info .product-price .current {
            font-size: 1.1rem;
        }

        .product-main .product-info .cart-actions {
            flex-direction: column;
        }

            .product-main .product-info .cart-actions .btn-add-to-cart {
                width: 100%;
                min-width: unset;
            }

            .product-main .product-info .cart-actions .quantity {
                width: 100%;
                justify-content: center;
            }

            .product-main .product-info .cart-actions .btn-wishlist {
                width: 100%;
                height: 44px;
                border-radius: 12px;
            }

    .product-tabs .tab-nav .tab-btn {
        padding: 10px 12px;
        font-size: 0.75rem;
    }

        .product-tabs .tab-nav .tab-btn i {
            display: none;
        }

    .product-tabs .tab-content {
        padding: 12px;
    }

    .tab-content .review-item .review-header {
        flex-wrap: wrap;
    }

        .tab-content .review-item .review-header .review-date {
            margin-right: 0;
            width: 100%;
        }

    .related-products {
        padding: 16px;
    }

        .related-products .related-grid {
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .related-products .related-item {
            padding: 12px;
        }

            .related-products .related-item .related-image {
                height: 90px;
            }

            .related-products .related-item h5 {
                font-size: 0.8rem;
            }

            .related-products .related-item .related-price {
                font-size: 0.8rem;
            }

    .breadcrumb-section {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .product-main .product-info .product-meta {
        gap: 10px;
    }

        .product-main .product-info .product-meta .meta-item {
            font-size: 0.75rem;
        }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #d49d00;
    }
/* ============================================
       PROPERTIES — ویژگی‌های محصول
       ============================================ */

.properties-content {
    padding: 4px 0;
}

/* Header */
.properties-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

    .properties-header h4 {
        font-weight: 700;
        color: #003366;
        font-size: 1.1rem;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .properties-header h4 i {
            font-size: 1.2rem;
        }

    .properties-header .properties-count {
        font-size: 0.8rem;
        color: #9ca3af;
        background: #f0f2f5;
        padding: 4px 14px;
        border-radius: 50px;
        font-weight: 500;
    }

/* Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

/* Property Item */
.property-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    cursor: default;
}

    .property-item:hover {
        transform: translateY(-4px);
        border-color: #F4B400;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .property-item .property-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.1rem;
        flex-shrink: 0;
        transition: all 0.4s ease;
    }

    .property-item:hover .property-icon {
        transform: scale(1.05) rotate(-4deg);
    }

    .property-item .property-info {
        flex: 1;
        min-width: 0;
    }

        .property-item .property-info .property-label {
            display: block;
            font-size: 0.7rem;
            color: #9ca3af;
            font-weight: 500;
            margin-bottom: 1px;
        }

        .property-item .property-info .property-value {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: #003366;
            line-height: 1.3;
        }

/* Footer */
.properties-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

    .properties-footer .btn-show-all {
        padding: 10px 28px;
        border: 2px solid #e5e7eb;
        border-radius: 50px;
        background: transparent;
        color: #6b7280;
        font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
        font-weight: 600;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .properties-footer .btn-show-all:hover {
            border-color: #F4B400;
            color: #003366;
            background: rgba(244, 180, 0, 0.04);
            transform: translateY(-2px);
        }

        .properties-footer .btn-show-all i {
            font-size: 0.9rem;
        }

/* ============================================
       RESPONSIVE
       ============================================ */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
    }

    .property-item {
        padding: 12px 14px;
        gap: 10px;
    }

        .property-item .property-icon {
            width: 36px;
            height: 36px;
            font-size: 0.95rem;
            border-radius: 8px;
        }

        .property-item .property-info .property-label {
            font-size: 0.65rem;
        }

        .property-item .property-info .property-value {
            font-size: 0.8rem;
        }

    .properties-header h4 {
        font-size: 0.95rem;
    }

    .properties-footer .btn-show-all {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
}

@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .property-item {
        padding: 10px 12px;
        gap: 8px;
        border-radius: 10px;
    }

        .property-item .property-icon {
            width: 32px;
            height: 32px;
            font-size: 0.8rem;
            border-radius: 6px;
        }

        .property-item .property-info .property-label {
            font-size: 0.6rem;
        }

        .property-item .property-info .property-value {
            font-size: 0.75rem;
        }

    .properties-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

        .properties-header .properties-count {
            font-size: 0.7rem;
            padding: 2px 12px;
        }

    .properties-footer .btn-show-all {
        font-size: 0.75rem;
        padding: 6px 16px;
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   OTHER BUTTON
   ============================================ */

.other {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    min-height: 44px;
    background: #fff;
    color: #003366;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    .other:hover {
        background: #003366;
        color: rgba(255,255,255,0.9);
        border-color: #003366;
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0,51,102,0.2);
    }

    .other:active {
        transform: translateY(0) scale(0.97);
    }

    .other:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

/* سایزها */
.other-sm {
    padding: 6px 14px;
    min-height: 34px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.other-lg {
    padding: 14px 30px;
    min-height: 54px;
    font-size: 1rem;
    border-radius: 12px;
}

.other-block {
    width: 100%;
    justify-content: center;
}

/* رنگ‌ها */
.other-gold {
    border-color: #F4B400;
}

    .other-gold:hover {
        background: #F4B400;
        color: rgba(0,51,102,0.9);
        border-color: #F4B400;
    }

.other-danger {
    border-color: #ef4444;
    color: #ef4444;
}

    .other-danger:hover {
        background: #ef4444;
        color: rgba(255,255,255,0.9);
        border-color: #ef4444;
    }

.other-success {
    border-color: #24c06d;
    color: #24c06d;
}

    .other-success:hover {
        background: #24c06d;
        color: rgba(255,255,255,0.9);
        border-color: #24c06d;
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .other {
        padding: 8px 16px;
        min-height: 38px;
        font-size: 0.8rem;
    }

    .other-sm {
        padding: 5px 10px;
        min-height: 30px;
        font-size: 0.65rem;
    }

    .other-lg {
        padding: 12px 20px;
        min-height: 46px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .other {
        padding: 6px 12px;
        min-height: 34px;
        font-size: 0.75rem;
        border-radius: 8px;
        border-width: 1.5px;
    }

    .other-sm {
        padding: 4px 8px;
        min-height: 26px;
        font-size: 0.6rem;
        border-radius: 6px;
    }
}
/* ============================================
   دکمه ناموجود
   ============================================ */

.btn-out-of-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 12px 20px;
    background: #f3f4f6;
    color: #9ca3af;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: not-allowed;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    
}

    .btn-out-of-stock i {
        font-size: 1.1rem;
        color: #9ca3af;
    }

/* ===== گزینه قرمز (اخطار) ===== */
.btn-out-of-stock-danger {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

    .btn-out-of-stock-danger i {
        color: #dc2626;
    }

/* ===== گزینه نارنجی (هشدار) ===== */
.btn-out-of-stock-warning {
    background: #fffbeb;
    color: #d97706;
    border-color: #fcd34d;
}

    .btn-out-of-stock-warning i {
        color: #d97706;
    }

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 576px) {
    .btn-out-of-stock {
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

        .btn-out-of-stock i {
            font-size: 0.95rem;
        }
}

/* ============================================
       COMMENT FORM — فرم ثبت نظر
       ============================================ */
.comment-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    margin-top: 24px;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 18px;
}

    .comment-form-header i {
        font-size: 1.3rem;
    }

    .comment-form-header h4 {
        font-weight: 700;
        color: #003366;
        margin: 0;
        font-size: 1.1rem;
    }

/* ============================================
       فرم
       ============================================ */
.comment-form-body .form-group {
    margin-bottom: 16px;
}

.comment-form-body .form-label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .comment-form-body .form-label .required-star {
        color: #ef4444;
        font-size: 1.1rem;
    }

.comment-form-body .form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #fafafa;
    color: #1a1a2e;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.4s ease;
}

    .comment-form-body .form-control:focus {
        border-color: #F4B400;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.08);
    }

    .comment-form-body .form-control::placeholder {
        color: #9ca3af;
    }

.comment-form-body textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.comment-form-body .form-hint {
    display: block;
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* ============================================
       امتیاز (Range)
       ============================================ */
.rating-input-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
}

    .rating-input-wrapper input[type="range"] {
        flex: 1;
        height: 4px;
        -webkit-appearance: none;
        background: #e5e7eb;
        border-radius: 4px;
        outline: none;
        transition: background 0.3s ease;
    }

        .rating-input-wrapper input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #F4B400;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(244, 180, 0, 0.3);
            transition: all 0.3s ease;
        }

            .rating-input-wrapper input[type="range"]::-webkit-slider-thumb:hover {
                transform: scale(1.1);
            }

        .rating-input-wrapper input[type="range"]::-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #F4B400;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(244, 180, 0, 0.3);
        }

    .rating-input-wrapper .rating-value {
        min-width: 30px;
        font-weight: 700;
        color: #003366;
        font-size: 1.1rem;
        text-align: center;
        background: #f0f2f5;
        padding: 2px 10px;
        border-radius: 6px;
    }

/* ============================================
       آپلود فایل
       ============================================ */
.upload-wrapper {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #fafafa;
    overflow: hidden;
}

    .upload-wrapper:hover {
        border-color: #F4B400;
        background: rgba(244, 180, 0, 0.04);
    }

    .upload-wrapper .upload-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        pointer-events: none;
    }

        .upload-wrapper .upload-content i {
            font-size: 1.8rem;
            color: #9ca3af;
            transition: color 0.3s ease;
        }

    .upload-wrapper:hover .upload-content i {
        color: #F4B400;
    }

    .upload-wrapper .upload-content span {
        font-size: 0.8rem;
        color: #6b7280;
        font-weight: 500;
    }

    .upload-wrapper input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

/* ============================================
       دکمه ثبت
       ============================================ */
.comment-form-footer {
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
    margin-top: 4px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #003366, #0a4d8c);
    color: #fff;
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.2);
}

    .btn-submit:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 51, 102, 0.3);
        color: #fff;
    }

    .btn-submit:active {
        transform: translateY(0) scale(0.97);
    }

/* ============================================
       پیام‌ها (Alert)
       ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

    .alert.text-danger {
        background: #fee2e2;
        color: #991b1b;
        border-color: #fecaca;
    }

    .alert.text-success {
        background: #d1fae5;
        color: #065f46;
        border-color: #a7f3d0;
    }

    .alert.text-warning {
        background: #fef3c7;
        color: #92400e;
        border-color: #fde68a;
    }

/* ============================================
       حالت لاگین نشده
       ============================================ */
.comment-login-box {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    margin-top: 24px;
}

    .comment-login-box i {
        font-size: 2.5rem;
        display: block;
        margin-bottom: 10px;
    }

    .comment-login-box p {
        color: #6b7280;
        font-size: 0.95rem;
        margin: 0;
    }

    .comment-login-box .login-link {
        color: #003366;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .comment-login-box .login-link:hover {
            color: #F4B400;
        }

/* ============================================
       ریسپانسیو
       ============================================ */
@media (max-width: 768px) {
    .comment-form-wrapper {
        padding: 18px 20px;
    }

    .comment-form-header h4 {
        font-size: 0.95rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .rating-input-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .comment-form-wrapper {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .comment-form-header h4 {
        font-size: 0.85rem;
    }

    .comment-form-body .form-label {
        font-size: 0.8rem;
    }

    .comment-form-body .form-control {
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 8px;
    }

    .upload-wrapper {
        padding: 12px 14px;
    }

        .upload-wrapper .upload-content i {
            font-size: 1.3rem;
        }

        .upload-wrapper .upload-content span {
            font-size: 0.7rem;
        }

    .btn-submit {
        font-size: 0.85rem;
        padding: 10px 24px;
    }

    .rating-input-wrapper .rating-value {
        font-size: 0.9rem;
        min-width: 26px;
        padding: 2px 8px;
    }

    .comment-login-box {
        padding: 20px 16px;
    }

        .comment-login-box i {
            font-size: 2rem;
        }

        .comment-login-box p {
            font-size: 0.85rem;
        }
}

/* ============================================
       COMMENT CARD — کارت نظرات
       ============================================ */

.comment-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

    .comment-card:hover {
        border-color: #F4B400;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

/* ============================================
       هدر نظر
       ============================================ */
.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366, #0a4d8c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-author {
    font-weight: 700;
    color: #003366;
    font-size: 0.95rem;
    display: block;
}

.comment-date {
    font-size: 0.7rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

    .comment-date i {
        color: #F4B400;
    }

/* ============================================
       امتیاز
       ============================================ */
.comment-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .comment-rating i {
        font-size: 0.85rem;
    }

    .comment-rating .rating-number {
        font-weight: 700;
        color: #003366;
        font-size: 0.85rem;
        margin-right: 4px;
        background: #f0f2f5;
        padding: 0 8px;
        border-radius: 4px;
    }

/* ============================================
       متن نظر
       ============================================ */
.comment-text {
    color: #1a1a2e;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* ============================================
       نکات مثبت و منفی
       ============================================ */
.comment-points {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
}

    .comment-points.positive {
        background: #f0fdf4;
        border-right: 3px solid #24c06d;
    }

    .comment-points.negative {
        background: #fef2f2;
        border-right: 3px solid #ef4444;
    }

    .comment-points .points-header {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .comment-points.positive .points-header {
        color: #065f46;
    }

    .comment-points.negative .points-header {
        color: #991b1b;
    }

    .comment-points .points-header i {
        font-size: 0.9rem;
    }

    .comment-points .points-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .comment-points .tag {
        display: inline-block;
        padding: 2px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 500;
    }

    .comment-points .tag-positive {
        background: #d1fae5;
        color: #065f46;
    }

    .comment-points .tag-negative {
        background: #fee2e2;
        color: #991b1b;
    }

/* ============================================
       تصویر نظر
       ============================================ */
.comment-image {
    margin-top: 12px;
}

    .comment-image img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
        border: 2px solid #f0f2f5;
        transition: all 0.4s ease;
        cursor: pointer;
    }

        .comment-image img:hover {
            transform: scale(1.05);
            border-color: #F4B400;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

/* ============================================
       پاسخ
       ============================================ */
.comment-response {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-right: 3px solid #F4B400;
}

    .comment-response .response-header {
        display: flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        font-size: 0.85rem;
        color: #003366;
        margin-bottom: 4px;
    }

        .comment-response .response-header i {
            font-size: 0.85rem;
        }

    .comment-response p {
        color: #4b5563;
        font-size: 0.9rem;
        line-height: 1.7;
        margin: 0;
    }

/* ============================================
       بدون نظر
       ============================================ */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

    .no-comments i {
        font-size: 3rem;
        color: #e5e7eb;
        display: block;
        margin-bottom: 12px;
    }

    .no-comments h4 {
        font-weight: 700;
        color: #003366;
        margin-bottom: 4px;
    }

    .no-comments p {
        color: #9ca3af;
        font-size: 0.95rem;
    }

/* ============================================
       ریسپانسیو
       ============================================ */
@media (max-width: 768px) {
    .comment-card {
        padding: 14px 16px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .comment-rating {
        align-self: flex-start;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .comment-author {
        font-size: 0.85rem;
    }

    .comment-text {
        font-size: 0.9rem;
    }

    .comment-points {
        padding: 8px 12px;
    }

        .comment-points .tag {
            font-size: 0.7rem;
        }

    .comment-image img {
        width: 80px;
        height: 80px;
    }

    .comment-response {
        padding: 10px 14px;
    }

        .comment-response p {
            font-size: 0.85rem;
        }
}

@media (max-width: 576px) {
    .comment-card {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .comment-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .comment-author {
        font-size: 0.8rem;
    }

    .comment-date {
        font-size: 0.6rem;
    }

    .comment-text {
        font-size: 0.85rem;
    }

    .comment-rating i {
        font-size: 0.7rem;
    }

    .comment-rating .rating-number {
        font-size: 0.75rem;
    }

    .comment-points .points-header {
        font-size: 0.75rem;
    }

    .comment-points .tag {
        font-size: 0.65rem;
        padding: 2px 10px;
    }

    .comment-image img {
        width: 60px;
        height: 60px;
    }

    .comment-response {
        padding: 8px 12px;
    }

        .comment-response .response-header {
            font-size: 0.75rem;
        }

        .comment-response p {
            font-size: 0.8rem;
        }
}
.blog-page-title {
    font-size: 1.4rem;
    font-weight: 800;
}