/* --- Basic Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7f6;
    overflow-x: hidden;
    padding-bottom: 80px; /* மொபைல் மெனுவிற்காக கீழே இடைவெளி */
}

/* --- Header & Navigation --- */
header {
    background-color: #f85606; 
    padding: 10px 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    border-radius: 5px;
    object-fit: contain;
}

.search-bar {
    display: flex;
    flex: 0.8;
    margin: 0 15px;
    background: #fff;
    border-radius: 25px; /* வளைவான வடிவம் (Rounded) */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.search-bar:focus-within {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 15px;
}

.search-bar button {
    padding: 10px 20px;
    background: #212121;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar button:hover {
    background: #444;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
}

.search-bar button {
    padding: 10px 15px;
    background: #212121;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.user-icons { color: white; font-size: 20px; }
.user-icons i { margin-left: 15px; cursor: pointer; }

/* பேனருக்கும் கீழே உள்ள பகுதிக்கும் இடையில் இடைவெளி வர */
.slider-container, .hero-section { 
    margin-bottom: 50px; /* உங்களுக்குத் தேவையான அளவு இடைவெளியை மாற்றிக்கொள்ளலாம் */
}

/* அல்லது Recommended தலைப்பிற்கு மேலே இடைவெளி வர */
h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    padding-left: 12px;
}

/* --- Product Grid (முக்கியமான திருத்தம்) --- */
.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* மொபைலில் ஒரு வரிசைக்கு 2 */
    gap: 12px;
    padding: 12px;
}

@media (min-width: 768px) {
    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* படங்கள் வெடிக்காமல் இருக்க இந்த பகுதி உதவும் */
.img-box {
    width: 100%;
    height: 160px;
    background-color: #fff;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* படத்தை பெட்டிக்குள் கச்சிதமாக வைக்கும் */
    transition: 0.3s;
}

.card:hover .img-box img {
    transform: scale(1.05);
}

.card:hover {
    transform: translateY(-5px); /* பெட்டி லேசாக மேலே உயரும் */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* மெல்லிய நிழல் தோன்றும் */
    border-color: #f85606; /* பார்டர் உங்கள் பிராண்ட் நிறத்திற்கு மாறும் */
    transition: all 0.3s ease;
}

.info {
    padding: 10px;
    text-align: left;
}

.info h3 {
    font-size: 13px;
    color: #333;
    height: 38px;
    line-height: 1.4;
    overflow: hidden;
    margin-bottom: 5px;
}

.price {
    color: #f85606;
    font-size: 15px;
    font-weight: bold;
}

/* --- Login & Signup Box --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    min-height: 70vh;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #f85606;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}



.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 85px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1000;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* --- Footer Styles (Corrected) --- */
.main-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 5% 100px; /* Bottom Nav-kaaga keele space */
    text-align: left;
}

.footer-container {
    display: grid;
    /* Mobile-il 1 column, Tablet-il 2, PC-yil 4 varum */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-box h3 {
    color: #f85606;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-box p, .footer-box a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-box a:hover {
    color: #f85606;
}

.social-icons {
    margin-top: 15px;
}

.social-icons i {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons i:hover {
    color: #f85606;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    margin-top: 30px;
    font-size: 13px;
    color: #777;
}

/* Mobile-il footer box-galukku naduvil space vara */
@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; /* Mobile-il onrin keel onraaka varum */
        text-align: center;
    }
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    border-top: 1px solid #eee;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #f85606; /* உங்கள் பிராண்ட் நிறம் */
    font-weight: bold;
}

/* கணினியில் பார்க்கும்போது இதை மறைக்க */
@media (min-width: 769px) {
    .bottom-nav { display: none; }
}

/* --- Add to Cart Button --- */
.buy-btn {
    width: 90%;
    padding: 8px;
    margin: 10px auto;
    background: #f85606; /* உங்கள் பிராண்ட் நிறம் */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    text-align: center;
    font-size: 14px;
}

.buy-btn:hover {
    background: #d44a05;
    transform: translateY(-2px);
}
/* Top Promo Bar Style */
.top-promo-bar {
    background: #f85606;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
}
.code-text {
    background: white;
    color: #f85606;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Coupon Card Style */
.coupon-container {
    border: 2px dashed #f85606;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    background: #fff5f0;
    cursor: pointer;
    transition: 0.3s;
}
.coupon-container:active {
    transform: scale(0.95);
}
#promo-code {
    color: #f85606;
    font-size: 24px;
    margin: 10px 0;
}