/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

html {
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: #dc3545;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info i {
    margin-right: 5px;
}

.phone-link {
    color: #f1f107;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.auth-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.auth-links a:hover {
    opacity: 0.8;
}

/* Header */
.header {
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img { 
    height: 100px;
}

.logo h1 {
    color: #dc3545;
    font-size: 50px;
    font-weight: 700;
    margin: 0;
    display: inline;
}

.tagline {
    color: #ff6600;
    font-size: 14px;
    font-weight: 500;
    margin-left: 5px;
    display: inline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    color: #dc3545;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
}

.search-cart {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: #dc3545;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #c82333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6600;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Navigation */
.navigation {
    background-color: #dc3545;
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #c82333;
}

.shop-btn {
    background-color: #ffc107 !important;
    color: #dc3545 !important;
    font-weight: 700 !important;
    margin-left: 20px;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 15px;
}

/* Combined Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #dc3545 0%, #ff6600 50%, #ffc107 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cracker-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cracker {
    position: absolute;
    font-size: 2rem;
    animation: crackerBurst 3s infinite ease-in-out;
    opacity: 0.8;
}

.cracker-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cracker-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.cracker-3 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.cracker-4 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.cracker-5 {
    top: 70%;
    left: 20%;
    animation-delay: 2s;
}

.cracker-6 {
    top: 40%;
    right: 25%;
    animation-delay: 2.5s;
}

.cracker-7 {
    top: 15%;
    left: 50%;
    animation-delay: 0.8s;
}

.cracker-8 {
    top: 80%;
    right: 30%;
    animation-delay: 1.8s;
}

@keyframes crackerBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 20px;
    text-align: left;
}

.offer-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.offer-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-right: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.discount-text {
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.6);
    letter-spacing: 1px;
    animation: discountShine 2s ease-in-out infinite;
}

@keyframes discountShine {
    0% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.6);
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 255, 0, 0.4);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 10px rgba(255, 215, 0, 0.6);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 500;
}

.offer-description {
    font-size: 20px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #ffd93d;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255, 217, 61, 0.5);
    }
    to {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255, 217, 61, 0.8);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background: linear-gradient(45deg, #ffc107, #ff8c00);
    color: #dc3545;
    border: 3px solid #fff;
}

.cta-button.primary:hover {
    background: linear-gradient(45deg, #ff8c00, #ffc107);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 3px solid #fff;
}

.cta-button.secondary:hover {
    background: white;
    color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.timer-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    min-width: 80px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.timer-item:nth-child(1) { animation-delay: 0s; }
.timer-item:nth-child(2) { animation-delay: 0.5s; }
.timer-item:nth-child(3) { animation-delay: 1s; }
.timer-item:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.timer-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    color: #ffd93d;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.timer-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Tamil Content Section - Now part of hero banner */
.hero-banner .tamil-content {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 20px;
    position: relative;
    overflow: hidden;
    flex: 1;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.tamil-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.tamil-banner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.tamil-banner h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.4;
}

.hero-banner .tamil-banner h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffd700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-banner .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
    max-width: 100%;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-banner .feature-item {
    padding: 15px 10px;
    border-radius: 10px;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.feature-item:nth-child(1) .feature-icon { animation-delay: 0s; }
.feature-item:nth-child(2) .feature-icon { animation-delay: 0.2s; }
.feature-item:nth-child(3) .feature-icon { animation-delay: 0.4s; }
.feature-item:nth-child(4) .feature-icon { animation-delay: 0.6s; }
.feature-item:nth-child(5) .feature-icon { animation-delay: 0.8s; }
.feature-item:nth-child(6) .feature-icon { animation-delay: 1s; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.feature-item p {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-banner .feature-item p {
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Responsive for Tamil Content */
@media (max-width: 768px) {
    .tamil-banner h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px 15px;
    }
    
    .feature-icon {
        font-size: 28px;
    }
    
    .feature-item p {
        font-size: 14px;
    }
    
    .hero-banner {
        min-height: 40vh;
        padding: 20px 0;
    }
    
    .hero-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-banner .tamil-banner h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .hero-banner .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .hero-banner .feature-item {
        padding: 10px 5px;
    }
    
    .hero-banner .feature-item p {
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .hero-banner-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tamil-content {
        padding: 60px 0;
    }
    
    .tamil-banner h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .feature-item {
        padding: 15px 10px;
    }
    
    .feature-icon {
        font-size: 24px;
    }
    
    .feature-item p {
        font-size: 13px;
    }
}

/* Categories */
.categories {
    padding: 80px 0;
    background-color: white;
}

.categories h2 {
    text-align: center;
    font-size: 36px;
    color: #dc3545;
    margin-bottom: 50px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.category-grid:last-child {
    margin-bottom: 0;
}

.category-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-item:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.category-item i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.category-item:hover i {
    color: white;
}

.category-item h3 {
    font-size: 20px;
    font-weight: 600;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: #f8f9fa;
    width: 100%;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    color: #dc3545;
    margin-bottom: 50px;
    font-weight: 700;
}

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #dc3545;
    color: white;
}

.products-table {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 80px 1fr 80px 120px 100px 120px;
    background-color: #8b4513;
    color: white;
    font-weight: 600;
    padding: 15px;
    align-items: center;
}

.products-list {
    max-height: 600px;
    overflow-y: auto;
}

.product-item {
    display: grid;
    grid-template-columns: 60px 80px 1fr 80px 120px 100px 120px;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    align-items: center;
    transition: background-color 0.3s;
}

.product-item:hover {
    background-color: #f8f9fa;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #dc3545;
}

.product-name {
    font-weight: 500;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dc3545;
    background-color: white;
    color: #dc3545;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background-color: #dc3545;
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.actual-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.discounted-price {
    font-weight: 700;
    color: #dc3545;
    font-size: 18px;
}

.product-price {
    font-weight: 600;
    color: #dc3545;
    font-size: 16px;
    margin-left: 15px;
}

.add-to-cart {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.add-to-cart:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

.btn-primary {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Footer */
.footer {
    background-color: #dc3545;
    color: white;
    padding: 50px 0 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffc107;
}

.contact-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffc107;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links-footer a:hover {
    background-color: #ffc107;
    color: #dc3545;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}

.disclaimer {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 15px;
    line-height: 1.4;
    text-align: justify;
    max-width: 100%;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.cart-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #dc3545;
    color: white;
    border-radius: 15px 15px 0 0;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: #25D366 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Customer Information Modal */
.customer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
}

.customer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background-color: #25D366;
    color: white;
    border-radius: 15px 15px 0 0;
}

.customer-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-customer {
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.customer-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h4 {
    color: #dc3545;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group input[type="date"] {
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.form-actions .btn-primary {
    background-color: #25D366;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
}

.form-actions .btn-primary:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Offer Popup */
.offer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offer-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.offer-popup.show .popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #dc3545 0%, #ff6600 50%, #ffc107 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    text-align: center;
}

.offer-badge-popup {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.tamil-offer {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.english-offer {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: discountPulse 1.5s infinite;
}

.popup-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-buttons .btn-primary {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.popup-buttons .btn-primary:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.popup-buttons .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.popup-buttons .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

/* Fixed Cart Icon */
.fixed-cart {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.fixed-cart:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cart-icon-fixed {
    position: relative;
    font-size: 24px;
    color: #dc3545;
}

.cart-count-fixed {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff6600;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-total-fixed {
    font-size: 14px;
    font-weight: 600;
    color: #dc3545;
}

.cart-total-amount {
    font-size: 16px;
}

/* WhatsApp Chat Widget */
.whatsapp-chat {
    position: fixed;
    bottom: 80px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon i {
    font-size: 30px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1001;
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-tooltip {
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.quick-order-form {
    padding: 20px;
}

.quick-order-form .form-group {
    margin-bottom: 15px;
}

.quick-order-form input,
.quick-order-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.quick-order-form input:focus,
.quick-order-form textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-send-btn {
    width: 100%;
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-send-btn:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-cart {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #dc3545;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .offer-description {
        font-size: 16px;
    }
    
    .offer-badge {
        padding: 12px 20px;
        margin-bottom: 20px;
    }
    
    .offer-text {
        font-size: 14px;
    }
    
    .discount-text {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 250px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .timer-item {
        padding: 15px 10px;
        min-width: 60px;
    }
    
    .timer-number {
        font-size: 24px;
    }
    
    .timer-label {
        font-size: 10px;
    }
    
    .cracker {
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    /* Mobile Products Section - Card Layout */
    .products-table {
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .table-header {
        display: none;
    }
    
    .products-list {
        max-height: none;
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .product-item {
        display: block;
        background-color: white;
        border: 1px solid #e9ecef;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: relative;
        transition: all 0.3s ease;
        animation: fadeInUp 0.6s ease-out;
    }
    
    .product-item:hover {
        background-color: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        transform: translateY(-2px);
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile Product Card Layout */
    .col-sno {
        display: none;
    }
    
    .col-image {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .product-image {
        width: 80px;
        height: 80px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        background-color: #f8f9fa;
        border-radius: 12px;
        border: 2px solid #e9ecef;
    }
    
.col-name {
    text-align: center;
    margin-bottom: 20px;
}

.col-unit {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}
    
    .product-name {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }
    
    .col-quantity {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .quantity-controls {
        display: flex;
        align-items: center;
        gap: 15px;
        justify-content: center;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        border: 2px solid #dc3545;
        background-color: #dc3545;
        color: white;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: bold;
        transition: all 0.3s;
    }
    
    .quantity-btn:hover {
        background-color: #c82333;
        transform: scale(1.1);
    }
    
    .quantity-input {
        width: 60px;
        height: 40px;
        text-align: center;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        background-color: #f8f9fa;
    }
    
    .quantity-input:focus {
        outline: none;
        border-color: #dc3545;
        background-color: white;
    }
    
    .col-price {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .price-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .actual-price {
        font-size: 16px;
        color: #999;
        text-decoration: line-through;
        font-weight: 500;
    }
    
    .discounted-price {
        font-size: 22px;
        font-weight: 700;
        color: #dc3545;
    }
    
    .product-price {
        font-size: 20px;
        font-weight: 700;
        color: #dc3545;
        margin: 0;
    }
    
    .col-action {
        text-align: center;
    }
    
    .add-to-cart {
        background-color: #dc3545;
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 25px;
        cursor: pointer;
        font-weight: 600;
        font-size: 16px;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 120px;
        justify-content: center;
    }
    
    .add-to-cart:hover {
        background-color: #c82333;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }
    
    .add-to-cart i {
        font-size: 16px;
    }
    
    /* Special badge for featured items */
    .product-item.featured::before {
        content: "✨";
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 20px;
        z-index: 1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
        gap: 20px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .social-links-footer {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .customer-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .customer-form {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .fixed-cart {
        right: 10px;
        padding: 12px;
        min-width: 70px;
    }
    
    .whatsapp-chat {
        bottom: 10px;
        left: 10px;
    }
    
    .whatsapp-tooltip {
        width: 280px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .categories,
    .products {
        padding: 60px 0;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .fixed-cart {
        right: 5px;
        padding: 10px;
        min-width: 60px;
    }
    
    .whatsapp-tooltip {
        width: 250px;
    }
    
    .product-filters {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    /* Extra small mobile improvements */
    .product-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
        font-size: 14px;
    }
    
    .actual-price {
        font-size: 14px;
    }
    
    .discounted-price {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .add-to-cart {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .products h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
}
