/* css/style.css - PREMIUM THEME WITH ADS */

:root {
    --bg-cream: #FFF8E1;
    --brand-brown: #4E342E;
    --brand-green: #2E7D32;
    --brand-golden: #D4AF37;
    --text-main: #212121;
    --card-bg: #FFFFFF;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg-cream);
    color: var(--text-main);
    padding-bottom: 80px;
}

nav {
    background: var(--brand-brown);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.logo { font-weight: bold; font-size: 1.3rem; color: var(--brand-golden); }
.nav-icons { display: flex; align-items: center; color: white; }
.cart-btn { cursor: pointer; padding: 5px 10px; position: relative; display: flex; align-items: center; gap: 5px; }

.lang-btn {
    border: 1px solid var(--brand-golden);
    color: var(--brand-golden);
    background: transparent;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s;
}
.lang-btn:hover { background: var(--brand-golden); color: var(--brand-brown); }

.badge {
    background: var(--brand-golden);
    color: var(--brand-brown);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    position: absolute;
    top: -5px;
    right: -5px;
    font-weight: bold;
}

.top-banner { background: var(--brand-golden); color: var(--brand-brown); font-size: 0.85rem; padding: 8px; font-weight: bold; }

.hero {
    background: linear-gradient(135deg, var(--brand-brown) 0%, #3e2a25 100%);
    color: var(--brand-golden);
    padding: 30px;
    text-align: center;
    border-bottom: 4px solid var(--brand-golden);
}
.hero h1 { margin: 0; color: var(--brand-golden); }
.hero p { color: var(--bg-cream); margin-top: 5px; }

.search-container { padding: 15px; display: flex; justify-content: center; }
.search-box { position: relative; width: 100%; max-width: 500px; }
.search-box input {
    padding: 12px 20px 12px 40px;
    border-radius: 25px;
    border: 2px solid var(--brand-brown);
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    color: var(--text-main);
    background: white;
}
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--brand-brown); }

.filters { display: flex; gap: 10px; overflow-x: auto; padding: 10px 15px; white-space: nowrap; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--brand-brown);
    background: transparent;
    color: var(--brand-brown);
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.filter-btn.active { background: var(--brand-brown); color: var(--brand-golden); border-color: var(--brand-brown); }

.container { padding: 10px 15px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ebdcb5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.card-img { width: 100%; height: 150px; object-fit: cover; }
.card-body { padding: 12px; }

.tag {
    font-size: 0.7rem; background: var(--bg-cream); color: var(--brand-brown);
    padding: 3px 8px; border-radius: 4px; font-weight: bold; text-transform: uppercase; border: 1px solid var(--brand-golden);
}
.title { font-size: 0.95rem; font-weight: bold; margin: 8px 0; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.size-select { width: 100%; padding: 6px; margin-bottom: 8px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; color: var(--text-main); }

.price-row { display: flex; justify-content: space-between; align-items: center; }
.price-container { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mrp-price { text-decoration: line-through; color: #888; font-size: 0.9rem; font-weight: 500; }
.selling-price { font-weight: bold; color: var(--text-main); font-size: 1.2rem; }

.add-btn { background: var(--brand-green); color: white; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.add-btn:hover { background: #1b5e20; }

.modal-overlay, .login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(33,33,33,0.6); display: none; z-index: 1000; justify-content: center; align-items: center; }
.cart-sidebar { position: absolute; right: 0; width: 85%; max-width: 400px; height: 100%; background: white; display: flex; flex-direction: column; box-shadow: -4px 0 15px rgba(0,0,0,0.1); }
.cart-header { background: var(--brand-brown); color: var(--brand-golden); padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px; }
.cart-footer, .checkout-form { padding: 20px; border-top: 1px solid #eee; background: var(--bg-cream); }

.login-box { background: white; padding: 25px; width: 85%; max-width: 350px; border-radius: 10px; text-align: center; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.login-box h2 { color: var(--brand-brown); margin-top: 0; }
.login-input, .checkout-form textarea { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-family: inherit; }
.login-btn, .checkout-btn { width: 100%; padding: 14px; background: var(--brand-green); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1rem; transition: 0.3s; }
.login-btn:hover, .checkout-btn:hover { background: #1b5e20; }

.payment-options label { display: block; margin-bottom: 10px; padding: 12px; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; background: white; }
.payment-radio input { margin-right: 10px; }

footer { background: var(--brand-brown); color: white; text-align: center; padding: 25px 20px; margin-top: 40px; border-top: 4px solid var(--brand-golden); }
footer h3 { color: var(--brand-golden); margin-top: 0; }
footer a { color: var(--brand-golden) !important; transition: 0.2s; }
footer a:hover { color: white !important; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text-main); color: var(--brand-golden); padding: 12px 25px; border-radius: 30px; display: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 3000; }
.toast.show { display: block; animation: fadeUp 0.3s; }
@keyframes fadeUp { from { bottom: 0; opacity: 0; } to { bottom: 20px; opacity: 1; } }

@media(max-width:600px) { .mobile-hide { display: none; } }

.tracker-container { display: flex; justify-content: space-between; margin: 15px 0; position: relative; padding: 0 10px; }
.tracker-container::before { content: ''; position: absolute; top: 10px; left: 20px; right: 20px; height: 3px; background: #e0e0e0; z-index: 1; }
.track-step { position: relative; z-index: 2; text-align: center; font-size: 0.7rem; color: #888; width: 25%; }
.track-icon { width: 24px; height: 24px; background: #e0e0e0; border-radius: 50%; margin: 0 auto 5px auto; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; border: 3px solid white; }
.track-step.active .track-icon { background: var(--brand-green); }
.track-step.active { color: var(--brand-green); font-weight: bold; }

/* --- ADVERTISEMENTS LAYOUT (SINGLE BANNERS) --- */
.google-ad-top {
    margin: 15px auto;
    width: 95%;
    max-width: 1200px;
    background: #fcfcfc;
    border: 1px dashed #ccc;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.ad-label-small { 
    display: block; font-size: 0.7rem; color: #aaa; text-transform: uppercase; margin-bottom: 5px; letter-spacing: 1px; 
}
/* --- TRUE EDGE-TO-EDGE HORIZONTAL BANNERS --- */
.full-width-ad-container {
    margin: 25px 0; /* Keeps space above and below, but ZERO space on the sides */
    width: 100%; /* Forces the container to stretch from the far left to the far right */
    display: block;
}
.full-width-ad-link {
    display: block;
    width: 100%;
    border-radius: 0; /* Removes rounded corners so it sits flush against the screen edge */
}
.full-width-ad-img {
    width: 100%; 
    height: 80px; 
    
    /* 👇 THE MAGIC FIX 👇 */
    object-fit: contain; /* Shinks the whole image to fit, stops the zooming/cropping */
    
    object-position: center; 
    display: block;
    
    /* Adds a premium color behind the image to fill the empty edge-to-edge space */
    background-color: var(--brand-brown); 
}
.custom-ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.custom-ad-card img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}
.custom-ad-card h4 { margin: 0 0 5px 0; color: var(--brand-brown); font-size: 1.2rem; }
.custom-ad-card p { margin: 0; font-size: 0.95rem; color: #666; line-height: 1.3; }