/* GENERAL & ROOT VARIABLES */
:root {
    --primary-color: #1e3a8a; /* Changed from Purple to Premium Dark Blue */
    --secondary-color: #F59E0B;
    --green-color: #16a34a;
    --whatsapp-color: #128C7E;
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB; 
    --slider-interval-duration: 5s;
}


/* --- Suggested For You (STRICT RIGID DESIGN) --- */
.sfy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; padding: 0 0.75rem; }
.sfy-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; justify-content: flex-start; overflow: hidden; background: #ffffff; min-width: 0; }

/* 1. Rigid Box: Modern Aspect Ratio (यह बॉक्स को 3:4 रेशियो से बिल्कुल हिलने नहीं देगा) */
.sfy-img-box { width: 100%; aspect-ratio: 3 / 4; background-color: #f3f4f6; border-radius: 8px; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }

/* 2. Center Image: इमेज बॉक्स के अंदर फिट रहेगी */
.sfy-img-box img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }

.sfy-rating { position: absolute; bottom: 6px; left: 6px; background: white; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; font-weight: 800; color: #111827; display: flex; align-items: center; gap: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 10; }
.sfy-rating i { color: #16a34a; font-size: 0.55rem; }

/* Info Area */
.sfy-info { padding-top: 6px; display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start; overflow: hidden; }

/* 3. Title 1 Line Fix */
.sfy-name { font-size: 0.65rem; font-weight: 700; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; display: block; width: 100%; }

.sfy-price-box { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; flex-wrap: wrap; overflow: hidden; }
.sfy-old-price { font-size: 0.6rem; color: #9ca3af; text-decoration: line-through; }
.sfy-new-price { font-size: 0.8rem; font-weight: 800; color: #111827; }
.sfy-upi-offer { font-size: 0.55rem; color: #2874f0; font-weight: 600; margin-top: 1px; display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }




html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
}

/* Scroll rokne ke liye jab menu khula ho */
body.menu-open, body.location-open {
    overflow: hidden;
}

/* === NEW: LOCATION POPUP SCROLL LOCK === */
body.location-mode-active {
    overflow: hidden !important;
    height: 100vh;
}

/* --- HEADER & SEARCH SCROLL EFFECT --- */
#page-header {
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Default state: Logo visible, search hidden */
#header-logo-container {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#header-search-container {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
    pointer-events: none;
    padding: 0 0.5rem;
}

/* Scrolled state: Logo hidden, search visible */
.header-scrolled #header-logo-container {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}
.header-scrolled #header-search-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; 
}


.search-link-header {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 1rem 0 3rem; 
    border: 1px solid #d1d5db; 
    border-radius: 9999px; 
    background-color: #f9fafb; 
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem; 
}

.search-link-header:hover {
    border-color: var(--primary-color);
    background-color: white;
}

.search-link-header .search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}


/* LOADER (Global) */
.loader { border-radius: 50%; width: 40px; height: 40px; margin: 0 auto; border-top: 4px solid rgba(79, 70, 229, 0.2); border-right: 4px solid rgba(79, 70, 229, 0.2); border-bottom: 4px solid rgba(79, 70, 229, 0.2); border-left: 4px solid var(--primary-color); transform: translateZ(0); animation: loader 1.1s infinite linear; }
@keyframes loader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Deals Loader (Specific) */
.deals-loader { display: none; justify-content: center; align-items: center; padding: 2rem; }
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 36px; height: 36px; border-radius: 50%; border-left-color: var(--primary-color); animation: spin 1s ease infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* UNIVERSAL HORIZONTAL SCROLLER */
.horizontal-scroller, .category-scroll-container, .carousel-container { display: flex; gap: 0.1rem; overflow-x: auto; scroll-behavior: smooth; padding: 0.5rem 1rem; scrollbar-width: none; -ms-overflow-style: none; }
.horizontal-scroller::-webkit-scrollbar, .category-scroll-container::-webkit-scrollbar, .carousel-container::-webkit-scrollbar { display: none; }

/* REVEAL ON SCROLL ANIMATION */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* SIDE MENU STYLES */
#menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 199; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
body.menu-open #menu-overlay { opacity: 1; visibility: visible; }
#side-menu { position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100%; background-color: var(--bg-white); z-index: 200; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
body.menu-open #side-menu { transform: translateX(0); box-shadow: 0 0 20px rgba(0,0,0,0.2); }
.menu-items { padding: 0.5rem; overflow-y: auto; flex-grow: 1; }
.menu-item { display: flex; align-items: center; padding: 0.9rem 1rem; border-radius: 8px; text-decoration: none; color: var(--text-dark); font-weight: 500; cursor: pointer; transition: background-color 0.2s; }
.menu-item:hover, .menu-item.active { background-color: #f3f4f6; color: var(--primary-color); }
.menu-item img { width: 24px; height: 24px; margin-right: 1rem; opacity: 0.8; }
.menu-item .fa-chevron-down { transition: transform 0.3s ease; }
.menu-item.open .fa-chevron-down { transform: rotate(180deg); }
.submenu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; padding-left: 1rem; }
.submenu.open { max-height: 500px; }
.submenu-item { display: flex; align-items: center; padding: 0.75rem 1rem 0.75rem 2.5rem; border-radius: 8px; text-decoration: none; color: var(--text-light); font-size: 0.9rem; }
.submenu-item:hover { background-color: #f9fafb; }
.submenu-item img { width: 20px; height: 20px; margin-right: 1rem; }


/* SECTION CONTAINER & TITLE */
.section-container { padding: 1.5rem 0; }
.section-title { font-size: 1.4rem; font-weight: 800; text-align: left; margin-bottom: 1rem; letter-spacing: -0.5px; padding: 0 1rem; }
@media (min-width: 768px) { .section-title { font-size: 1.6rem; } }
@media (min-width: 1024px) { .section-container { padding: 2rem 0; } }

/* SLIDER */
.slider-wrapper { padding: 0 0.75rem; margin-top: 0.25rem; margin-bottom: 0.25rem; }
.slider-container { position: relative; width: 100%; overflow: hidden; aspect-ratio: 21 / 9; max-height: 150px; border-radius: 12px; user-select: none; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.slider { display: flex; height: 100%; cursor: grab; }
.slider.grabbing { cursor: grabbing; }
.slider.transitioning { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.slide { width: 100%; height: 100%; flex-shrink: 0; position: relative; }
.slide video, .slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 1; border-radius: 12px; pointer-events: none; }
/* --- Main Slider Premium Dots (Exact Flipkart Style) --- */
.slider-dots { display: flex !important; justify-content: center !important; align-items: center !important; gap: 6px !important; margin-top: 10px !important; margin-bottom: 4px !important; }
/* डॉट की हाइट 4px की गई ताकि वह स्लिम लगे */
.slider-dots .dot { width: 6px !important; height: 4px !important; background-color: #d1d5db !important; border-radius: 10px !important; cursor: pointer !important; transition: width 0.3s ease-in-out !important; overflow: hidden !important; }
/* एक्टिव डॉट को 36px तक लंबा (चौड़ा) किया गया है! */
.slider-dots .dot.active { width: 56px !important; background-color: #e5e7eb !important; }
/* डार्क कलर का टाइमर (width और transition अब पूरी तरह JS कंट्रोल करेगा) */
.slider-dots .dot .timer { height: 100% !important; width: 0%; background-color: #111827 !important; border-radius: 10px !important; }


/* VIDEO CARD */
.video-card { flex: 0 0 70%; max-width: 300px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: block; text-decoration: none; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 1rem; }
.video-card-title { color: white; font-weight: 700; font-size: 1rem; }
.video-card-desc { color: #e5e7eb; font-size: 0.8rem; margin-top: 0.25rem; }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: rgba(255,255,255,0.9); }



/* FOOTER */
#desktop-footer { display: none; } 
@media (min-width: 768px) { 
    #desktop-footer { display: block; background-color: var(--bg-white); color: var(--text-light); padding: 3rem 2rem; border-top: 1px solid var(--border-color); } 
}
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; } 
.footer-column h3 { font-weight: 600; color: var(--text-dark); margin-bottom: 1rem; } 
.footer-column a { display: block; margin-bottom: 0.5rem; transition: color 0.3s; } 
.footer-column a:hover { color: var(--primary-color); } 
.footer-bottom { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.9rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }


/* --- CATEGORY SECTION STYLES (SINGLE & DOUBLE) --- */
#normal-category-section { 
    padding-top: 0.25rem !important; 
    padding-bottom: 0 !important; 
    position: sticky; 
    top: 41px; 
    z-index: 40; 
    background-color: #F8F8FA; 
    transition: all 0.3s ease;
} 
/* When scrolled down, change background to white and add slight shadow */
#normal-category-section.compact-category {
    padding-top: 0.35rem !important;
    padding-bottom: 0 !important; /* बाहर की एक्स्ट्रा पैडिंग हटा दी गई है */
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* अंदर के कंटेनर्स से फालतू पैडिंग और मार्जिन को 0 करने के लिए (सिर्फ़ स्क्रॉल होने पर) */
#normal-category-section.compact-category > div {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
#normal-category-section.compact-category .category-scroll-container {
    padding-bottom: 0 !important;
}

.cat-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: pointer; flex-shrink: 0; }

/* Image Box with smooth transition for shrinking */
.cat-img-box { height: 52px; background: #ffffff; border: 1px solid #f3f4f6; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.03); overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: top; opacity: 1; }
.cat-item:hover .cat-img-box { border-color: #d1d5db; }

/* Compact Category Mode: Shrink & Hide Images smoothly */
.compact-category .cat-img-box {
    height: 0px;
    opacity: 0;
    margin-bottom: 0px;
    border-width: 0px;
    padding: 0px;
}

/* Width for Single and Double Badges */
.cat-single .cat-img-box { width: 52px; padding: 1px; } 
.cat-double .cat-img-box { width: 115px; padding: 0px; } 

.cat-img-box img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.1); } 

/* Text styling */
.cat-item .cat-name { font-size: 0.68rem; font-weight: 700; color: #374151; white-space: nowrap; transition: all 0.3s ease; margin-top: -1px; border-bottom: 2px solid transparent; }
.cat-item:hover .cat-name { color: #111827; }

/* Compact Mode Text Styles (Looks like standard tabs) */
.compact-category .cat-name {
    font-size: 0.75rem;
    color: #4b5563;
    padding-bottom: 6px; /* बॉर्डर लाइन के लिए सिर्फ़ हल्की सी पैडिंग छोड़ी गई है */
}
.compact-category .cat-item:hover .cat-name { color: #16a34a; border-bottom-color: #16a34a; }












/* Toast Notification */
#toast-notification { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #333; color: white; padding: 12px 24px; border-radius: 8px; z-index: 1000; opacity: 0; transition: opacity 0.3s ease-in-out; pointer-events: none; }
#toast-notification.show { opacity: 1; }
#toast-notification.success { background-color: var(--green-color); }
#toast-notification.error { background-color: #ef4444; }

/* Add to Cart Popup (Home) */
#home-go-to-cart-notification {
    position: fixed; bottom: 1rem; right: 1rem; left: 1rem;
    background-color: white; border-radius: 0.5rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1rem; transform: translateY(5rem); opacity: 0; 
    transition: all 0.3s ease-in-out; z-index: 50; pointer-events: none;
    display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { #home-go-to-cart-notification { left: auto; width: 400px; } }
#home-go-to-cart-notification.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }


/* GLOBAL SEARCH */
#search-suggestions { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: white; border-radius: 12px; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); z-index: 60; max-height: 300px; overflow-y: auto; }
.suggestion-item { display: flex; align-items: center; padding: 0.75rem; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background-color 0.2s; text-decoration: none; }
.suggestion-item:hover { background-color: #f9fafb; }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; margin-right: 0.75rem; }
.suggestion-item span { color: var(--text-dark); }
#category-suggestions { background-color: #f9fafb; padding: 0.75rem; border-bottom: 1px solid #e5e7eb; }
.suggestion-tag { display: inline-block; background-color: #e5e7eb; color: #4b5563; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.8rem; margin-right: 0.5rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; }
.suggestion-tag:hover { background-color: #d1d5db; color: #1f2937; }

#search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.4); z-index: 35; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } 
body.search-active #search-overlay { opacity: 1; pointer-events: auto; } 
body.search-active > .category-filter-container, body.search-active > main { filter: blur(4px); pointer-events: none; user-select: none; } 
body.search-active header { filter: none; pointer-events: auto; user-select: auto; }


/* ADDRESS & PINCODE MODAL */
#location-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1005; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#location-overlay.visible { opacity: 1; visibility: visible; }

.address-panel { position: fixed; bottom: 0; left: 0; width: 100%; max-height: 85vh; background-color: white; border-top-left-radius: 20px; border-top-right-radius: 20px; z-index: 1010; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.address-panel.open { transform: translateY(0); }

.location-panel-header { padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.location-panel-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin: 0; display: flex; align-items: center; }
#close-location-btn { background: none; border: none; font-size: 1.8rem; line-height: 1; color: #6b7280; cursor: pointer; padding: 0 0.5rem; transition: color 0.2s; }
#close-location-btn:hover { color: #111827; }

.location-panel-body { overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px) !important; }

/* Saved Address Cards */
.saved-address-card { background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1rem; cursor: pointer; transition: all 0.2s ease; position: relative; }
.saved-address-card:hover { border-color: #111827; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.saved-address-card.selected { border-color: #111827; background-color: #f9fafb; }
.saved-address-card.selected::after { content: '\f058'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; right: 1rem; top: 1rem; color: #111827; font-size: 1.2rem; }

.address-name-tag { font-weight: 700; color: #1f2937; margin-bottom: 0.25rem; display: flex; justify-content: space-between; padding-right: 1.5rem;}
.address-phone { font-size: 0.85rem; color: #4b5563; font-weight: 600; margin-bottom: 0.5rem; }
.address-full-text { font-size: 0.85rem; color: #6b7280; line-height: 1.4; }

/* === NEW: LOCATION POPUP STYLES (HIGH Z-INDEX) === */
#location-welcome-popup {
    z-index: 10000 !important; /* Ensure topmost */
}











/* --- CUSTOMER REVIEWS STYLES --- */
.reviews-scroll-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.reviews-scroll-wrapper::-webkit-scrollbar { display: none; }

.review-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 10px;
    /* 3 कार्ड्स का परफेक्ट लेआउट बनाने के लिए 2.85 का कैलकुलेशन */
    flex: 0 0 calc((100% - 24px) / 2.85); 
    max-width: 135px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviewer-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background-color: #f3f4f6;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
}

.reviewer-name {
    font-size: 0.6rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.45rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.55rem;
    color: #4b5563;
    line-height: 1.35;
    /* टेक्स्ट को 4 लाइन से ज़्यादा होने पर '...' कर देगा */
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}





/* --- POPULAR BRANDS STYLES --- */
.brands-scroll-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.brands-scroll-wrapper::-webkit-scrollbar { display: none; }

.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* एक लाइन में 6+ ब्रांड्स दिखाने के लिए 6.3 की कैलकुलेशन (ताकि स्क्रॉल का पता चले) */
    flex: 0 0 calc((100% - 40px) / 6.3); 
    max-width: 52px; 
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-box {
    width: 100%;
    aspect-ratio: 1 / 1; /* चौड़ाई के बराबर हाइट */
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px; /* साइज छोटा हुआ है, इसलिए रेडियस भी हल्का कम किया है */
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 6px; /* पैडिंग कम की गई है ताकि लोगो के लिए जगह बचे */
}

.brand-item:hover .brand-logo-box {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    border-color: #e5e7eb;
}

.brand-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 0.55rem; /* नाम का साइज बॉक्स के हिसाब से एडजस्ट किया गया है */
    font-weight: 700;
    color: #374151;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}










/* --- SEASON SPECIAL STYLES --- */
.season-scroll-wrapper { -ms-overflow-style: none; scrollbar-width: none; }
.season-scroll-wrapper::-webkit-scrollbar { display: none; }

.season-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    padding: 12px 14px;
    /* एक पूरा कार्ड और दूसरे का हल्का सा हिस्सा दिखाने के लिए 1.15 का लेआउट */
    flex: 0 0 calc((100% - 12px) / 1.15); 
    max-width: 280px;
    min-height: 95px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* Pastel Backgrounds */
.season-bg-summer { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border: 1px solid #7dd3fc; }
.season-bg-monsoon { background: linear-gradient(135deg, #f3e8ff, #e0e7ff); border: 1px solid #c7d2fe; }
.season-bg-winter { background: linear-gradient(135deg, #ffe4e6, #fecdd3); border: 1px solid #fda4af; }

.season-text-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    max-width: 60%;
}

.season-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.1;
}

.season-subtitle {
    font-size: 0.55rem;
    color: #4b5563;
    margin-bottom: 6px;
    line-height: 1.1;
}

.season-discount {
    font-size: 0.6rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.season-shop-btn {
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 0.55rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.season-img-side {
    position: absolute;
    right: -5px;
    bottom: -5px;
    height: 90%;
    z-index: 1;
}

.season-img-side img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 4px 4px rgba(0,0,0,0.1));
}






/* --- DEALS ON HOME STYLES --- */
#deals-on-home-scroll::-webkit-scrollbar {
    display: none;
}

.doh-card {
    /* एक स्क्रीन में 3 कार्ड्स दिखाने के लिए */
    flex: 0 0 calc((100% - 24px) / 2.85); 
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.doh-card:hover {
    transform: translateY(-2px);
}

/* मेन कार्ड बॉक्स (सफ़ेद बैकग्राउंड और राउंडेड कॉर्नर्स) */
.doh-card-inner {
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* इमेज कंटेनर: 3:4 रेशियो (Strict Lock) */
.doh-img-container {
    width: 100%;
    aspect-ratio: 3 / 4; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px; /* पैडिंग को एडजस्ट किया गया है */
    box-sizing: border-box; /* यह बॉक्स को फैलने से रोकेगा */
    background-color: #ffffff;
    overflow: hidden; /* कोई भी इमेज बॉक्स से बाहर नहीं जाएगी */
}

.doh-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* इमेज 3:4 रेशियो के अंदर ही फिट रहेगी, कटेगी नहीं */
    display: block;
}


/* ऑरेंज प्राइस पट्टी (इमेज के ठीक नीचे) */
.doh-price-bar {
    width: 100%;
    background-color: #ea580c; 
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 6px 0;
}

/* प्रोडक्ट का नाम (कार्ड के नीचे) */
.doh-title {
    font-size: 0.65rem;
    color: #1f2937;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}





/* --- BOTTOM NAVIGATION BAR (CLEAN 4-BUTTON STYLE) --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px !important;
    box-sizing: border-box !important;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); 
    z-index: 1000;
    padding: 0 10px !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #717478; 
    font-size: 0.65rem;
    font-weight: 500; 
    width: 25%; /* 🔥 अब 4 बटन हैं, इसलिए इसे 25% कर दिया गया है */
    height: 100%;
    position: relative;
    -webkit-tap-highlight-color: transparent; 
    background: transparent !important;
    border: none !important;
}

/* Base icon styling */
.nav-item i {
    font-size: 1.35rem; 
    margin-bottom: 3px;
    color: #717478; 
}

.nav-svg-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    fill: none;
    stroke: #717478; 
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Active State (Blue) */
.nav-item.active { color: #2874F0; }
.nav-item.active i { color: #2874F0; }
.nav-item.active .nav-svg-icon { stroke: #2874F0; }

/* Active indicator line - Top Edge */
.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 60%; 
    height: 3px;
    background-color: #2874F0;
    border-radius: 0 0 3px 3px;
}

/* --- CART BADGE --- */
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-bottom: 3px;
}

.cart-icon-wrapper i {
    margin-bottom: 0;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #ff6161; 
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    border-radius: 10px; 
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    z-index: 5;
}




/* ==========================================
   SPA (SINGLE PAGE APP) CORE & PAGES STYLES
   ========================================== */

/* Page Switching Animation */
.page-section { display: none; width: 100%; min-height: 100vh; animation: fadeIn 0.15s ease-in-out; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Hide Scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- GLOBAL BOTTOM NAVIGATION --- */
.bottom-nav-bar { position: fixed; bottom: 0; left: 0; width: 100%; height: 60px !important; box-sizing: border-box !important; background-color: #ffffff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05); z-index: 1000; padding: 0 10px !important; padding-bottom: env(safe-area-inset-bottom, 0px) !important; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #717478; font-size: 0.65rem; font-weight: 500; width: 25%; height: 100%; position: relative; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.nav-item i { font-size: 1.35rem; margin-bottom: 3px; color: #717478; transition: color 0.2s; }
.nav-svg-icon { width: 22px; height: 22px; margin-bottom: 3px; fill: none; stroke: #717478; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.nav-item.active { color: #2874F0; }
.nav-item.active i { color: #2874F0; }
.nav-item.active .nav-svg-icon { stroke: #2874F0; }
.nav-item.active::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 3px; background-color: #2874F0; border-radius: 0 0 3px 3px; }

.cart-icon-wrapper { position: relative; display: flex; align-items: center; justify-content: center; height: 24px; margin-bottom: 3px; }
.cart-icon-wrapper i { margin-bottom: 0; }
.cart-badge { position: absolute; top: -6px; right: -10px; background-color: #ff6161; color: white; font-size: 0.55rem; font-weight: 800; border-radius: 10px; height: 16px; min-width: 16px; padding: 0 4px; display: flex; align-items: center; justify-content: center; border: 1px solid #ffffff; z-index: 5; }

/* --- CATEGORIES PAGE STYLES (SPLIT LAYOUT) --- */
.sidebar-cat-item { padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; border-left: 3px solid transparent; transition: all 0.2s ease; background-color: transparent; }
.sidebar-cat-item.active { background-color: #ffffff; border-left-color: #1e3a8a; box-shadow: 0 -2px 5px rgba(0,0,0,0.01), 0 2px 5px rgba(0,0,0,0.01); }
.sidebar-cat-item.active .cat-text-label { color: #1e3a8a; font-weight: 800; }
.sidebar-cat-item .cat-img-wrap { width: 45px; height: 45px; background-color: #f8fafc; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #f1f5f9; }
.sidebar-cat-item.active .cat-img-wrap { background-color: #eff6ff; border-color: #bfdbfe; }
.sidebar-cat-item .cat-text-label { font-size: 10px; font-weight: 600; color: #64748b; text-align: center; line-height: 1.2; }

/* 1. 'For You' Items (Locked 1:1 Ratio for Images) */
.rv-small-card { min-width: 75px; width: 75px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-decoration: none; flex-shrink: 0; }
.rv-small-card .img-box { width: 100%; aspect-ratio: 1 / 1; background: #ffffff; border: 1px solid #f1f5f9; border-radius: 8px; padding: 6px; display: flex; justify-content: center; align-items: center; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.02); box-sizing: border-box; }
.rv-small-card .img-box img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rv-small-card .rv-title { font-size: 10px; font-weight: 600; color: #64748b; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2. Sub-categories (Rounded Rectangles) */
.sub-category-card { min-width: 70px; width: 70px; background-color: #ffffff; border-radius: 12px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid #f1f5f9; box-shadow: 0 1px 3px rgba(0,0,0,0.02); cursor: pointer; flex-shrink: 0; transition: all 0.2s ease; }
.sub-category-card:active { transform: scale(0.95); }
.sub-category-card.active { border-color: var(--primary-color); background-color: #eff6ff; box-shadow: 0 2px 6px rgba(30, 58, 138, 0.1); }
.sub-category-card.active .cat-title { color: var(--primary-color); }
.sub-category-card .cat-img-wrap { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.sub-category-card .cat-img-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sub-category-card .cat-svg-thin svg { width: 100%; height: 100%; stroke-width: 1.5px; }
.sub-category-card .cat-title { font-size: 10px; font-weight: 700; color: #374151; text-align: center; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }

/* 3. Products Grid Cards (Blinkit Style for 2-Columns) */
.cat-product-card { display: flex; flex-direction: column; width: 100%; background: transparent; position: relative; height: 100%; border: none; text-decoration: none; cursor: pointer; }

/* FIXED: Ratio locked to 3:4 and padding shifted to img for strict containment */
.cat-product-card .img-box { width: 100%; aspect-ratio: 3 / 4; background-color: #ffffff; border: 1px solid #f3f4f6; border-radius: 12px; position: relative; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); overflow: visible; box-sizing: border-box; }

/* FIXED: Image is absolute to never stretch the parent box */
.cat-product-card .img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; border-radius: 12px; padding: 12px; box-sizing: border-box; }

/* UPDATED: Theme Color Border, Column Flex for "Options" text */
.cat-product-card .add-btn { position: absolute; bottom: -14px; right: 8px; background-color: #ffffff; color: var(--primary-color); border: 1px solid var(--primary-color); font-size: 12px; font-weight: 600; text-transform: uppercase; padding: 4px 18px; border-radius: 6px; box-shadow: 0 2px 5px rgba(0,0,0,0.04); transition: all 0.2s ease; cursor: pointer; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 28px; min-width: 70px; }
.cat-product-card .add-btn.variant-btn { padding: 2px 12px; background-color: #f8fafc; border-color: #cbd5e1; color: #1e293b; }
.cat-product-card .add-btn.active-qty { background-color: var(--primary-color); color: white; border-color: var(--primary-color); padding: 0; width: 80px; height: 30px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3); }
.cat-product-card .details-box { display: flex; flex-direction: column; padding: 0 4px 8px 4px; }
.cat-product-card .price-row { display: flex; align-items: baseline; margin-bottom: 4px; }
.cat-product-card .price { font-size: 13px; font-weight: 800; color: #111827; line-height: 1; }
.cat-product-card .orig-price { font-size: 10px; color: #9ca3af; text-decoration: line-through; margin-left: 4px; font-weight: 500; }
.cat-product-card .title { font-size: 11.5px; font-weight: 600; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; line-height: 1.2; margin-bottom: 2px;}

/* --- ACCOUNT PAGE STYLES --- */
.account-header { display: flex; justify-content: space-between; align-items: center; background-color: #ffffff; padding: 16px 20px; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.account-card { background-color: #ffffff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border: 1px solid #f3f4f6; }

/* --- CART PAGE STYLES --- */
.stepper { display: flex; justify-content: space-between; align-items: center; position: relative; margin-bottom: 20px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; transition: all 0.3s ease; }
.step-icon { width: 32px; height: 32px; border-radius: 50%; background-color: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; border: 2px solid #e5e7eb; transition: all 0.3s ease; }
.step-label { margin-top: 6px; font-size: 0.7rem; font-weight: 600; color: #6b7280; }
.step.active .step-icon { background-color: #111827; border-color: #111827; color: white; }
.step.active .step-label { color: #111827; }
.step.completed .step-icon { background-color: #16a34a; border-color: #16a34a; color: white; }
.stepper-line { position: absolute; top: 15px; left: 10%; right: 10%; height: 3px; background-color: #e5e7eb; z-index: 0; }
.stepper-progress { height: 100%; background-color: #16a34a; width: 0%; transition: width 0.5s ease; }

.cart-step-content { display: none; animation: fadeIn 0.4s ease-out; }
.cart-step-content.active { display: block; }

/* --- MODALS & FORMS (Auth, Address, Edit Profile) --- */
.auth-panel, .address-panel { position: fixed; bottom: 0; left: 0; width: 100%; max-height: 90vh; background-color: white; border-top-left-radius: 20px; border-top-right-radius: 20px; z-index: 1010; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
.auth-panel.open, .address-panel.open { transform: translateY(0); }
.auth-panel-body, .location-panel-body { overflow-y: auto; flex-grow: 1; padding: 1.5rem; padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px); }
.form-input { width: 100%; border-radius: 8px; border: 1px solid #D1D5DB; padding: 12px 14px; font-size: 0.95rem; outline: none; transition: border-color 0.2s; background: #f9fafb; }
.form-input:focus { border-color: #111827; background: #ffffff; box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.1); }
.btn-primary { background-color: #111827; color: white; border-radius: 8px; padding: 12px; font-weight: 700; width: 100%; display: flex; justify-content: center; align-items: center; transition: background 0.2s; }

#toast-notification { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 8px; padding: 12px; position: fixed; z-index: 2000; left: 50%; bottom: 80px; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; }
#toast-notification.show { visibility: visible; opacity: 1; }