﻿/* ====================== صفحة تفاصيل المنتج - النسخة النهائية اللي هتعجبك ====================== */

.product-details-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.main-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1.4px solid #e2e8f0;
    /* بدون شادو قوي خالص */
}

/* الجزء العلوي: صورة + معلومات */
.product-details-card {
    display: flex;
    flex-direction: row;
    min-height: 460px;
}

.product-details-image {
    flex: 0 0 44%;
    overflow: hidden;
    background: #f8fafc;
}

    .product-details-image img {
        
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .product-details-image:hover img {
        transform: scale(1.06);
    }

.product-details-info {
    flex: 1;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}
    .product-details-info h1 {
        width:fit-content;
        font-size: 2.3rem;
        font-weight: 800;
        color: #1a1a1a;
        margin-bottom: 16px;
        line-height: 1.2;
    }

/* حالة التوفر */
.available-badge {
    width:fit-content;
    display: inline-block;
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.bg-success.available-badge {
    background: #ecfdf5;
    
}

.bg-danger.available-badge {
    background: #fef2f2;
    
}

.btn-add-cart {
    background-color: #87c508 !important;
    border: none !important;
    width: 40%;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 18px;
    transition: 0.3s ease;
}

    .btn-add-cart:hover {
        background-color: #004282 !important;
        color: #fff !important;
        transform: translateY(-2px);
    }

/* السعر */
.product-price {
    margin: 28px 0;
    font-size: 1.15rem;
}

    .product-price .text-danger {
        font-size: 2.2rem;
        font-weight: 900;
    }

.text-decoration-line-through {
    color: #94a3b8;
}

/* زر إضافة للسلة */
.addToCart-btn {
    margin-top: auto;
    padding-top: 32px;
}

    .addToCart-btn button {
        background: #87c508;
        color: white;
        padding: 16px 32px;
        border-radius: 16px;
        font-size: 1.15rem;
        font-weight: 700;
        width: 100%;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .addToCart-btn button:hover {
            background: #74a806;
            transform: translateY(-3px);
        }

/* ====================== الـ Tabs اللي حبيتها (من غير تغيير) ====================== */
.tab-btn {
    background: transparent;
    color: #666;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 20px 24px;
    font-size: 1.15rem;
    font-weight: 600;
    flex: 1;
}

    .tab-btn:hover {
        color: #87c508;
    }

    .tab-btn.active {
        color: #87c508;
        font-weight: 800;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: #87c508;
            border-radius: 4px 4px 0 0;
        }

.tab-content {
    padding: 44px 44px;
    background: #fcfdfc;
    min-height: 320px;
    animation: fadeIn 0.4s ease-in-out;
}

.ck-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #2d3748;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================== ريسبونسيف ====================== */
@media (max-width: 992px) {
    .product-details-card {
        flex-direction: column;
    }

    .product-details-image {
        flex: 0 0 340px;
    }

    .product-details-info {
        padding: 36px 28px;
    }

        .product-details-info h1 {
            font-size: 2rem;
        }
}

@media (max-width: 640px) {
    .product-details-info {
        padding: 28px 20px;
    }

        .product-details-info h1 {
            font-size: 1.8rem;
        }

    .tab-btn {
        padding: 16px 12px;
        font-size: 1rem;
    }

    .tab-content {
        padding: 32px 20px;
    }
}
