/* Products Page Styles */

/* Hero Section */
.products-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    background-image: url('images/Products-hero.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
}

.products-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.products-hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.products-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.products-hero-content h1 span {
    color: rgba(255, 255, 255, 0.7);
}

.products-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin: 0 auto;
}

/* All Products Section */
.all-products {
    padding: 50px 0 20px;
    background-color: var(--light-bg);
}

.all-products h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
    color: var(--primary-color);
}

/* Product Categories Section */
.product-categories {
    padding: 30px 0 80px;
    background-color: var(--light-bg);
}

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

.product-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.product-info p {
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.product-info p::-webkit-scrollbar {
    width: 6px;
}

.product-info p::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.product-info p::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.product-info p::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

.product-info .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    color: var(--light-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .products-hero-content h1 {
        font-size: 3.5rem;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .products-hero {
        height: 50vh;
    }
    
    .products-hero-content h1 {
        font-size: 3rem;
    }
    
    .products-hero-content p {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .products-hero {
        height: 40vh;
    }
    
    .products-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .products-hero-content p {
        font-size: 1rem;
    }
    
    .all-products h2 {
        font-size: 2rem;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}