* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

    /* GLOBAL BACKGROUND */
body {
    /* Locks an animated GIF or image to cover the whole screen */
    background-image: url('../images/firework-bg.jpg'); 
    background-color: #120500; /* Fallback dark color */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    font-family: sans-serif;
}

/* Make sure your product cards and modals have a solid white background 
   so the text stays readable against the dark firework background */
.product-card, .modal-content {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* LOGO LAYOUT */
.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 200px;
    width: auto;
    border-radius: 8px; /* Slightly rounds the logo corners */
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
}

.logo-text p {
    margin: 5px 0 0 0;
    font-size: 14px;
}
    font-family: Arial, sans-serif;
    background: #fff8ed;
    color: #222;



/* HEADER */

header {
    background: #7a0000;
    color: white;

    padding: 18px 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text h1 {
    font-size: 24px;
}

.logo-text p {
    margin-top: 5px;
    font-size: 13px;
}

.cart {
    background: #ffd700;
    color: #600000;

    padding: 10px 18px;

    border: none;
    border-radius: 25px;

    font-weight: bold;
}


/* HERO */

.hero {
    min-height: 450px;

    background:
        linear-gradient(
            rgba(80, 0, 0, 0.7),
            rgba(80, 0, 0, 0.7)
        );

    display: flex;

    justify-content: center;
    align-items: center;

    text-align: center;

    color: white;
}

.hero-content {
    padding: 30px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
}

.shop-button {
    margin-top: 25px;

    padding: 14px 32px;

    border: none;

    border-radius: 30px;

    background: #ffd700;

    color: #650000;

    font-weight: bold;

    font-size: 16px;

    cursor: pointer;
}


/* CATEGORIES */

.categories {
    padding: 25px 6% 15 px;
    text-align: center;
}

.categories h2 {
    margin-bottom: 12px;
    color: #c5b5b5;
    font-size: 26px;
}

.category-list {

    display: flex;

    gap: 10px;

    overflow-x: auto;

    justify-content: flex-start;

    flex-wrap: nowrap;

    padding: 8px 4px 14px;

    scrollbar-width: thin;

    -webkit-overflow-scrolling: touch;
}


.category-list button {

    flex: 0 0 auto;

    padding: 10px 18px;

    background: white;

    border: 1px solid #7a0000;

    color: #7a0000;

    border-radius: 25px;

    cursor: pointer;

    white-space: nowrap;

    font-size: 13px;

    font-weight: bold;

    transition: 0.2s;
}


.category-list button:hover {

    background: #7a0000;

    color: white;

}

.category-list button {

    padding: 10px 20px;

    background: white;

    border: 1px solid #7a0000;

    color: #597a00;

    border-radius: 20px;

    cursor: pointer;
}


/* PRODUCTS */

.products {
    padding: 20px 6% 60px;

    text-align: center;
}

.products h2 {
    color: #d0ff00;

    font-size: 32px;
}


/* FOOTER */

footer {
    background: #350000;

    color: white;

    text-align: center;

    padding: 30px;
}


/* MOBILE */

@media (max-width: 600px) {

    header {
        padding: 15px 4%;
    }

    .logo h1 {
        font-size: 18px;
    }

    .hero {
        min-height: 350px;
    }

    .hero h2 {
        font-size: 34px;
    }

}
/* =========================
   PRODUCT CARDS
========================= */

.product-grid {

    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 18px;

    margin-top: 30px;

    text-align: left;
}


.product-card {

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12);

    transition: 0.2s;
}


.product-card:hover {

    transform: translateY(-5px);

}


.product-card img {

    width: 100%;

    aspect-ratio: 4/5;

    object-fit: contain;

    display: block;
    background: #ffffff;
    padding: 5px;
}


.product-info {

    padding: 12px;
}


.category {

    font-size: 12px;

    color: #888;

    text-transform: uppercase;

    margin-bottom: 6px;
}


.product-info h3 {

    font-size: 16px;

    color: #550000;
    line-height: 1.3;

}


.price {

    margin-top: 12px;

}


.mrp {

    color: #999;

    text-decoration: line-through;

    margin-right: 10px;
}


.sale-price {

    color: #d00000;

    font-size: 22px;

    font-weight: bold;
}


.pack {

    margin-top: 8px;

    color: #666;

    font-size: 14px;
}


.demo-button {

    display: block;

    margin-top: 15px;

    padding: 10px;

    text-align: center;

    border: 1px solid #7a0000;

    border-radius: 6px;

    color: #7a0000;

    text-decoration: none;

    font-weight: bold;
}


.add-cart {

    width: 100%;

    margin-top: 10px;

    padding: 12px;

    border: none;

    border-radius: 6px;

    background: #7a0000;

    color: white;

    font-weight: bold;

    cursor: pointer;
}


.add-cart:hover {

    background: #a00000;
}


/* MOBILE */

@media (max-width: 600px) {

    .product-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }


    .product-card img {

        aspect-ratio: 4/5;
        height: auto;
    }


    .product-info {

        padding: 12px;
    }


    .product-info h3 {

        font-size: 15px;
    }


    .sale-price {

        font-size: 18px;
    }

}
@media (max-width: 1200px) {

    .product-grid {

        grid-template-columns:
            repeat(4, 1fr);

    }

}


@media (max-width: 800px) {

    .product-grid {

        grid-template-columns:
            repeat(3, 1fr);

        gap: 12px;

    }

}


@media (max-width: 600px) {

    .product-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;

    }


    .product-info {

        padding: 10px;

    }


    .product-info h3 {

        font-size: 14px;

    }


    .sale-price {

        font-size: 17px;

    }

}
/* =========================
   SEARCH BOX
========================= */

.search-box {

    max-width: 600px;

    margin: 25px auto 10px;

}


.search-box input {

    width: 100%;

    padding: 14px 18px;

    border: 2px solid #7a0000;

    border-radius: 30px;

    font-size: 16px;

    outline: none;

}


.search-box input:focus {

    box-shadow:
        0 0 0 3px rgba(122, 0, 0, 0.12);

}


@media (max-width: 600px) {

    .search-box {

        margin: 20px auto 5px;

    }


    .search-box input {

        padding: 12px 15px;

        font-size: 14px;

    }

}
#product-count {

    margin-top: 5px;

    color: #ffffff;

    font-size: 14px;

}
.cart-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.qty-input {
    width: 60px;
    padding: 10px;
    border: 1px solid #7a0000;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.add-cart {
    margin-top: 0; /* Overrides the old margin */
    flex: 1; /* Makes the button fill the remaining space */
}
/* CART MODAL */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute; right: 20px; top: 15px;
    font-size: 28px; font-weight: bold; cursor: pointer; color: #7a0000;
}

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee; padding: 12px 0;
}

.cart-item-info h4 { margin: 0; color: #333; font-size: 15px;}
.cart-item-price { font-weight: bold; color: #d00000; }

.remove-btn {
    background: #ffeded; border: none; color: #d00000; 
    padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: bold;
}

.cart-total { text-align: right; margin-top: 15px; padding-top: 10px; border-top: 2px solid #333; }

.checkout-button {
    width: 100%; padding: 15px; margin-top: 20px;
    background: #25D366; color: white; border: none;
    border-radius: 8px; font-weight: bold; font-size: 16px; cursor: pointer;
}

.checkout-button:hover { background: #1ebe5d; }
.cart-qty-input {
    width: 45px; 
    padding: 3px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    margin-left: 5px;
    font-weight: bold;
}

.continue-button {
    width: 100%; 
    padding: 12px; 
    margin-top: 10px;
    background: #f8f9f9; 
    color: #333; 
    border: 1px solid #ccc;
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 15px; 
    cursor: pointer;
}

.continue-button:hover { 
    background: #e2e2e2; 
}
.checkout-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background: #f8f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.payment-options label {
    font-size: 15px;
    cursor: pointer;
}
/* FESTIVE GLOW EFFECT */
.logo h1 {
    color: #ffffff;
    animation: sparkler-glow 1.5s ease-in-out infinite alternate;
}

@keyframes sparkler-glow {
    from {
        text-shadow: 0 0 5px #ffbb00, 0 0 10px #ff8800;
    }
    to {
        text-shadow: 0 0 15px #ffee00, 0 0 25px #ff9900, 0 0 35px #ff0000;
    }
}

/* SIDE MENU & ICON STYLES */
.menu-icon {
    font-size: 28px;
    font-weight: bold;
    color: white; /* Change if your header background is light */
    cursor: pointer;
    padding: 0 10px;
}

.side-menu {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    right: -250px; /* Hides it off-screen to the right */
    background-color: #f8f9f9;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: 0.3s; /* Smooth sliding animation */
    padding-top: 60px;
    z-index: 2000;
}

.side-menu a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: block;
    transition: 0.2s;
    border-bottom: 1px solid #eee;
}

.side-menu a:hover {
    background-color: #e2e2e2;
    color: #d00000;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #333;
}
.category-container::-webkit-scrollbar {
    display: none; /* Hides scrollbar for Chrome/Safari */
}
.category-container {
    -ms-overflow-style: none;  /* Hides scrollbar for IE/Edge */
    scrollbar-width: none;  /* Hides scrollbar for Firefox */
}
.tamil-highlight {
    font-family: "Coiny", system-ui;
    font-weight: 400;
    font-size: 38px; 
    color: #FFD700; 
    background: transparent; 
    box-shadow: none;
    padding: 0;
    
    /* ADD THESE TWO LINES TO FIX SPACING */
    display: block; 
    margin-bottom: 15px; 
    
    text-shadow: 
        1px 1px 0 #cc0000,
        2px 2px 0 #b30000,
        3px 3px 0 #990000,
        4px 4px 0 #800000,
        5px 5px 0 #660000,
        6px 6px 0 #4d0000,
        8px 8px 15px rgba(0, 0, 0, 0.9); 
}
/* Fixes the header layout and pushes cart to the right */
header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
    box-sizing: border-box;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Makes the dark subtitle text bright white */
.logo-text p.subtitle {
    color: #ffffff !important;
    margin: 0; /* Resets the margin */
    font-size: 15px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}