/* ======== تصميم جسم الصفحة ======== */
.product-page-body { background: var(--bg-color); }

/* ======== القسم العلوي (البطل) ======== */
.product-hero-section {
    padding: 60px 0;
}
.product-hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ======== معرض الصور (تصميم الأزرار الرقمية) ======== */
.product-gallery {
    animation: slide-up-fade 0.8s ease-out;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumbnail-images {
    display: flex; /* نستخدم flex لتوسيط الأزرار */
    justify-content: center;
    gap: 10px;
}

.thumbnail-btn {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    color: var(--text-color-muted);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
}

.thumbnail-btn.active, .thumbnail-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}
/* ======== صندوق الشراء ======== */
.product-purchase-box { animation: slide-up-fade 0.8s 0.2s ease-out backwards; }
.product-category-tag { background-color: var(--primary-color); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.product-main-title { font-size: 2.8rem; font-weight: 900; margin: 20px 0; }
.product-short-desc { font-size: 1rem; color: var(--text-color-muted); line-height: 1.7; margin-bottom: 25px; }
.product-price-large { margin-bottom: 25px; }
.product-price-large span { font-size: 1.2rem; color: var(--text-color-muted); }
.product-price-large strong { font-size: 2.5rem; color: var(--primary-color); font-weight: 900; }
.purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.purchase-actions .btn { padding: 18px; font-size: 1rem; font-weight: 700; }
.trust-badges { display: flex; gap: 20px; margin-top: 25px; color: var(--text-color-muted); }

/* ======== القسم السفلي (التفاصيل) ======== */
.product-details-section { padding-bottom: 60px; }
.tabs-container { background-color: var(--surface-color); border-radius: 15px; padding: 30px; animation: slide-up-fade 0.8s 0.4s ease-out backwards; }
.tab-buttons { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 25px; }
.tab-btn { background: none; border: none; color: var(--text-color-muted); padding: 15px 25px; font-size: 1.1rem; font-weight: 700; cursor: pointer; position: relative; transition: color 0.3s; }
.tab-btn::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background-color: var(--primary-color); transform: scaleX(0); transition: transform 0.4s ease; }
.tab-btn.active { color: #fff; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content .tab-pane { display: none; animation: fade-in 0.5s; }
.tab-content .tab-pane.active { display: block; }
.tab-pane h3 { font-size: 1.8rem; margin-bottom: 15px; }
.tab-pane ul { list-style-position: inside; padding-right: 5px; }

/* ======== مؤثرات وحركات ======== */
@keyframes slide-up-fade { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }


/* ======== التجاوب مع الجوال (Mobile Responsiveness) ======== */
@media (max-width: 992px) {
    .product-hero-section .container {
        grid-template-columns: 1fr;
    }
    .product-purchase-box {
        text-align: center;
    }
    .purchase-actions {
        grid-template-columns: 1fr;
    }
    .trust-badges {
        justify-content: center;
    }
    .product-main-title {
        font-size: 2.2rem;
    }
    .product-price-large strong {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-hero-section {
        padding: 30px 0;
    }
    .product-hero-section .container {
        gap: 30px;
    }
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
}
