.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-banner {
    margin-bottom: 30px;
}

.hero-banner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-offers {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h1 {
    color: #e74c3c;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header .subtitle {
    color: #333;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}


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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px;
}

.price-container {
    margin-bottom: 15px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 8px;
}

.current-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #c0392b;
}


.featured-categories {
    margin-bottom: 50px;
}

.featured-categories h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.category-card {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    flex-grow: 1;
}

.category-card h3 {
    padding: 15px;
    text-align: center;
    background: white;
    margin: 0;
    flex-shrink: 0;
}


@media (max-width: 1024px) {
   
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .product-card img {
        height: 150px;
        padding: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .main-content {
        padding: 15px;
    }
    
    .section-header h1 {
        font-size: 1.5rem;
    }
    
    .section-header .subtitle {
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .product-card img {
        height: 120px;
        padding: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-info h3 {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .add-to-cart {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .featured-categories h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 360px) {
   
    .product-grid {
        grid-template-columns: 1fr;
    }
}