/*
* CSS Styles for Products Page
* ===========================
*/

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/banner-products.jpg') no-repeat center center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white-color);
}

.page-banner h1 {
    margin-bottom: 15px;
    color: var(--white-color);
}
.carousel-img {
    height: 450px;              /* غيري القيمة حسب الرغبة مثل 300px أو 400px */
    object-fit: cover;          /* يجعل الصورة تغطي المساحة بشكل جميل */
    border-radius: 8px;         /* اختياري - يجعل الزوايا مستديرة */
  }


.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--light-gray);
}

.breadcrumb a {
    color: var(--primary-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

/* Product Categories */
.product-categories {
    padding-bottom: 50px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--white-color);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-image {
    height: 180px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-card h3 {
    padding: 15px;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Product Sections */
.product-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--light-gray);
}

.product-section:last-child {
    border-bottom: none;
}

.bg-light {
    background-color: var(--light-color);
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.product-details-grid.reverse {
    grid-template-columns: 1fr 1fr;
    direction: ltr;
}

[dir="ltr"] .product-details-grid.reverse {
    direction: rtl;
}

.product-image {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

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

.product-features,
.product-materials {
    margin-bottom: 30px;
}

.product-features h4,
.product-materials h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-right: 15px;
}

.product-features h4::before,
.product-materials h4::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary-color);
}

.product-features ul,
.product-materials ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-features ul li,
.product-materials ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features ul li i {
    color: var(--success-color);
}

.product-materials ul li i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.product-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cta-bg.jpg') no-repeat center center/cover;
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white-color);
}

.cta-content h2 {
    margin-bottom: 20px;
    color: var(--white-color);
}

.cta-content p {
    margin-bottom: 30px;
    color: var(--light-gray);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .product-details-grid,
    .product-details-grid.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-image {
        height: 350px;
    }
    
    .product-details-grid.reverse {
        direction: rtl;
    }
    
    [dir="ltr"] .product-details-grid.reverse {
        direction: ltr;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-features ul,
    .product-materials ul {
        grid-template-columns: 1fr;
    }
    
    .product-cta {
        flex-direction: column;
    }
    
    .product-section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 576px) {
    .page-banner {
        padding: 40px 0;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}