/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

h1 {
    text-align: center;
    color: #d60000;
    margin-top: 40px;
    font-family:emoji;
    font-size: 36px;
}

.offers {
    text-align: justify;
    font-size: 20px;
      font-family:emoji;
    margin: 20px auto;
    max-width: 90%;
    padding-left: 20px;
    padding-right: 20px;
}

/* Banner Styles */
.banner {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-top:100px;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 90%;
}

.banner-text h1 {
    font-size: 36px;
      font-family:emoji;
}

.banner-text p {
    font-size: 18px;
}

/* Updated Product Categories Styles */
.tab-menu {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 89%;
    flex-wrap: wrap;
    gap: 15px;
}

.tab {
    background-color: #f5f5f5;
    padding: 15px 25px;
    margin: 10px;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.4s ease;
    flex: 1 1 180px;
    min-width: 140px;
      font-family:emoji;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #333;
}

.tab:hover {
    background-color: #ff6f61;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tab.active {
    background-color: #ff6f61;
    color: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Image Grid */
.image-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(300px, 0fr));
    gap: 22px;
    width:84%;
    margin: 20px auto;
    padding: 0 15px; /* Center on smaller screens */
}

.image-grid img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin: 20px;
}

.image-grid img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Footer Styles */
.footer {
    background-color: #333;
    padding: 20px 0;
    text-align: center;
    color: white;
    font-size: 14px;
}

/* Responsive CSS */
@media (max-width: 1200px) {
    .banner-img {
        max-height: 350px;
    }

    .banner-text h1 {
        font-size: 32px;
    }

    .banner-text p {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .banner-img {
        max-height: 300px;
    }

    .banner-text h1 {
        font-size: 28px;
    }

    .tab {
        padding: 12px 20px;
        flex: 1 1 150px; /* Adjust for medium screens */
    }

    .tab-menu {
        gap: 10px;
    }
    .image-grid img {
        height: 200px;
        margin-left:6px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
        margin-top: 30px;
    }

    p {
        font-size: 16px;
    }

    .banner-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    margin-top:118px;
}

    .banner-text h1 {
        font-size: 24px;
    }

    .tab {
        padding: 10px 18px;
        flex: 1 1 120px; /* Further adjust for small screens */
    }

    .image-grid img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
        margin-top: 20px;
    }

    p {
        font-size: 14px;
    }

    .banner-img {
        max-height: 200px;
    }

    .banner-text h1 {
        font-size: 20px;
    }

    .tab {
        padding: 8px 16px;
        flex: 1 1 100px; /* Compact for very small screens */
    }

    .image-grid img {
        height: 150px;
        margin-left: 3px;
        margin-right: 45px;
    }

    .footer {
        font-size: 12px;
    }
}
