/* /mnt/d/Green Shelter/project/static/css/components/products.css */
.products-page {
    padding: 0 20px 60px; /* Removed top padding */
    max-width: 1400px;
    margin: 0 auto;
}

.products-hero {
    text-align: center;
    margin-bottom: 60px;
}

.products-hero h1 {
    color: var(--primary);
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.products-hero p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services-section, .materials-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.services-section h2, .materials-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 2.5em;
    margin-bottom: 50px;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 3em;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1.4em;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

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

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details-btn {
    background: var(--white);
    color: var(--primary);
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--primary);
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.product-features {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: #e8f5e8;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

.product-unit-info {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 20px;
    font-style: italic;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 2.5em;
    }
    
    .products-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-section h2, .materials-section h2 {
        font-size: 2em;
    }
}