/* =============================================
   Product Detail Page Styles
   ============================================= */

/* Page Headers */
.product-header {
    position: relative;
    padding: 140px 0 80px;
}

.product-header.ezz-header {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, rgba(212, 175, 55, 0.3) 100%);
}

.product-header.gioshy-header {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, rgba(212, 175, 55, 0.3) 100%);
}

.product-header.masryeen-header {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, rgba(212, 175, 55, 0.3) 100%);
}

.product-header.ashry-header {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, rgba(212, 175, 55, 0.3) 100%);
}

.product-header.cement-header {
    background: linear-gradient(135deg, #0a1222 0%, #1b2b47 50%, rgba(14, 165, 233, 0.3) 100%);
}

.product-badge-top {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Product Detail Section */
.product-detail {
    padding: 80px 0;
    background: var(--secondary-color);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

/* Product Image */
.product-detail-image {
    position: relative;
}

.product-image-main {
    height: 400px;
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ezz-gradient { background: linear-gradient(135deg, #D4AF37 0%, #B8942E 100%); }
.gioshy-gradient { background: linear-gradient(135deg, #B8942E 0%, #D4AF37 100%); }
.masryeen-gradient { background: linear-gradient(135deg, #D4AF37 0%, #E8C84A 100%); }
.ashry-gradient { background: linear-gradient(135deg, #E8C84A 0%, #D4AF37 100%); }
.cement-gradient { background: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%); }

.product-icon-large {
    width: 150px;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary-color);
    font-size: 4rem;
}

.brand-logo-image {
    width: min(78%, 340px);
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.product-brand-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 10px 25px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    color: var(--secondary-color);
}

/* Product Info */
.product-detail-info {
    background: var(--secondary-light);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.product-brand {
    margin-bottom: 15px;
}

.brand-label {
    color: var(--gray-400);
}

.brand-name {
    font-weight: 700;
    color: var(--primary-color);
}

.product-detail-info h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Price Box */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    flex-wrap: wrap;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-label {
    color: var(--gray-400);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-unit {
    color: var(--gray-400);
    font-size: 1rem;
}

.product-price-box .price-change {
    padding: 8px 15px;
}

.product-description {
    color: var(--gray-300);
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Specs Detail */
.product-specs-detail {
    margin-bottom: 25px;
}

.product-specs-detail h4,
.product-features-detail h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-specs-detail h4::before,
.product-features-detail h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.product-specs-detail ul {
    background: rgba(212, 175, 55, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.product-specs-detail li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
    color: var(--gray-300);
}

.product-specs-detail li:last-child {
    border-bottom: none;
}

.product-specs-detail li span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Features Tags */
.features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.features-tags span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.features-tags span i {
    color: var(--success-color);
}

/* Product Actions */
.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.product-actions-detail .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background: var(--secondary-light);
}

.related-products h3 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    color: var(--white);
    transition: var(--transition);
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item.gioshy { background: linear-gradient(135deg, #FF7429, #E65A00); }
.related-item.masryeen { background: linear-gradient(135deg, #059669, #047857); }
.related-item.ashry { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.related-item.ezz { background: linear-gradient(135deg, #1E40AF, #1E3A8A); }

.related-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.related-item span {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-main {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-info {
        padding: 25px;
    }
    
    .product-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .product-actions-detail {
        flex-direction: column;
    }
    
    .product-actions-detail .btn {
        width: 100%;
    }
}
