/* 
 * تنسيقات صفحة المنتج - تصميم "Luminous Horizon" (2026)
 */

/* تفاصيل المنتج */
.product-detail {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

/* معرض الصور */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 120px;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    width: 100%;
    aspect-ratio: 1/1;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    cursor: zoom-in;
    display: block;
}

.main-image.zoomed {
    transform: scale(2);
    cursor: zoom-out;
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    background: rgba(255,255,255,0.05);
}

.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail.active {
    border-color: var(--primary-glow);
    opacity: 1;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* معلومات المنتج */
.product-details-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-details-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.product-details-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-glow);
    margin-bottom: 2rem;
    display: inline-block;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    margin: 0;
}

.product-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
    border-right: none;
    padding: 0;
}

/* المواصفات */
.product-specs {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 1px solid var(--glass-border);
}

.product-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-specs ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.product-specs li {
    position: relative;
    padding-right: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-bottom: none;
    display: block;
}

.product-specs li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-glow);
    font-weight: bold;
}

/* نموذج الإضافة للسلة */
.add-to-cart-form {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 2rem;
    background: transparent;
    padding: 0;
    border: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 0;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
}

.quantity-selector input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0,0,0,0.2);
    color: white;
}

.quantity-selector input:focus {
    outline: none;
    border-color: var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    width: auto;
    flex-grow: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

/* استجابة */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .add-to-cart-form {
        flex-direction: column;
    }
    
    .quantity-selector {
        justify-content: space-between;
    }
}
