/* =========================================
   QUICKNEST MART - FINAL CSS (V3.0)
   Reference: Index.css Header + QuickNest Theme
   ========================================= */

:root {
    /* --- BRAND COLORS --- */
    --brand-primary: #FF4500;       /* QuickNest Orange */
    --brand-dark: #cc3700;
    --brand-light: #fff0f3;
    
    /* Backgrounds */
    --background: #F3F4F6;    
    --surface: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.95); /* Glass Effect */
    
    /* Typography */
    --text-primary: #111827;  
    --text-secondary: #6B7280;
    --success: #32CD32;       
    --border-color: #e5e7eb;  
    
    /* UI Elements */
    --radius: 12px;           
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-header: 0 4px 12px rgba(0,0,0,0.03);
    --font-family: 'Poppins', sans-serif;
}

body.dark-mode {
    --background: #111827; --surface: #1F2937;
    --bg-header: rgba(31, 41, 55, 0.95);
    --text-primary: #F9FAFB; --text-secondary: #9CA3AF;
    --border-color: #374151;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font-family); background: var(--background); color: var(--text-primary); padding-bottom: 90px; }
.container { width: 100%; padding: 0 16px; max-width: 1200px; margin: 0 auto; }

/* =================================================================
   1. HEADER (Exact Reference from Index.css)
   ================================================================= */
.site-header {
    background: var(--bg-header);
    backdrop-filter: blur(10px); /* Glassmorphism */
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow-header);
    padding: 10px 0;
}
.header-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}

/* Logo */
.logo-wrapper { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--brand-primary); }

/* Search Bar */
.header-search { flex-grow: 1; max-width: 600px; position: relative; }

.search-wrapper {
    display: flex; align-items: center;
    background: #f3f4f6; border-radius: 12px;
    padding: 0 14px; height: 44px;
    border: 1px solid transparent; transition: all 0.3s ease;
}
.search-wrapper:focus-within {
    background: #fff; border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}
.search-icon { color: #9ca3af; font-size: 1rem; margin-right: 10px; }
.search-wrapper input {
    border: none; background: transparent; width: 100%;
    font-size: 0.9rem; color: var(--text-primary); outline: none; font-weight: 500;
}
.search-dropdown {
    position: absolute; top: 50px; left: 0; right: 0;
    background: var(--surface); border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 1100;
    max-height: 300px; overflow-y: auto; display: none;
}
.search-dropdown:not(.hidden) { display: block; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 20px; }
.action-item { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); cursor: pointer; }
.icon-box { font-size: 1.4rem; color: var(--text-primary); position: relative; transition: 0.2s; }
.action-item:hover .icon-box { color: var(--brand-primary); transform: translateY(-2px); }

.text-box { display: flex; flex-direction: column; line-height: 1.1; }
.label-small { font-size: 0.7rem; color: var(--text-secondary); }
.label-bold { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }

/* Cart Button */
.cart-btn { background: #f0fdf4; padding: 6px 12px; border-radius: 50px; border: 1px solid #dcfce7; }
.cart-btn .label-bold { color: var(--success); }
.cart-btn:hover { background: #dcfce7; }
.badge {
    background: var(--brand-primary); color: #fff; font-size: 0.6rem; font-weight: 700;
    height: 16px; min-width: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: -6px; right: -6px; border: 2px solid #fff;
}

/* Utilities */
.desktop-only-flex, .desktop-only-text, .desktop-only-footer { display: none; }

/* =================================================================
   2. HERO & FEATURES
   ================================================================= */
.hero-slider { margin-top: 16px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-wrapper::-webkit-scrollbar { display: none; }
.hero-slide { min-width: 100%; scroll-snap-align: center; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2.5 / 1; }

/* Feature Strip (Hidden Mobile) */
.features-strip { display: none; } 

/* =================================================================
   3. CATEGORIES & PROMOS
   ================================================================= */
.category-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 10px 4px; scrollbar-width: none; margin-top: 10px; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 75px; cursor: pointer; transition: 0.2s; }
.cat-item:active { transform: scale(0.95); }
.cat-item.active .cat-img { border-color: var(--brand-primary); background: #fff5f5; }
.cat-img { width: 65px; height: 65px; background: #fff; border-radius: 18px; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.cat-img img { width: 40px; height: 40px; object-fit: contain; }
.cat-name { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; text-align: center; }

.promo-banner-section { margin: 20px 0; }
.promo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.promo-card { border-radius: var(--radius); padding: 16px; display: flex; justify-content: space-between; align-items: center; position: relative; height: 140px; overflow: hidden; box-shadow: var(--shadow-sm); color: #333; }
.gradient-1 { background: linear-gradient(135deg, #e0f7fa 0%, #ccfbf1 100%); }
.gradient-2 { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }
.promo-text h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 5px 0; }
.promo-text p { font-size: 0.8rem; margin: 0; opacity: 0.8; }
.highlight-tag { background: var(--success); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.65rem; font-weight: 700; display: inline-block; margin-bottom: 6px; }
.promo-btn { background: var(--brand-primary); color: #fff; border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-top: 8px; cursor: pointer; }
.promo-img { width: 90px; height: 90px; object-fit: contain; transform: rotate(-5deg); position: absolute; right: -10px; bottom: -10px; }

/* =================================================================
   4. PRODUCT GRID
   ================================================================= */
.section-block { margin-top: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title { font-size: 1.1rem; font-weight: 800; margin: 0; letter-spacing: -0.5px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 20px; }
.product-card { background: var(--surface); border-radius: var(--radius); padding: 10px; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.discount-badge { position: absolute; top: 0; left: 0; z-index: 10; background: #2563eb; color: #fff; font-size: 0.6rem; font-weight: 800; padding: 3px 6px; border-bottom-right-radius: 10px; }
.product-unit { font-size: 0.7rem; color: var(--text-secondary); background: #f3f4f6; padding: 2px 6px; border-radius: 4px; margin-bottom: 6px; width: fit-content; }
.card-info h3 { font-size: 0.85rem; font-weight: 600; margin: 0 0 4px 0; height: 36px; overflow: hidden; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.price { font-size: 0.95rem; font-weight: 800; }
.btn-wrapper { width: 70px; height: 30px; }
.btn-add { width: 100%; height: 100%; background: #fff; border: 1px solid var(--success); color: var(--success); border-radius: 6px; font-weight: 800; font-size: 0.20rem; cursor: pointer; text-transform: uppercase; box-shadow: 0 2px 0 #dcfce7; }
.btn-add:active { transform: translateY(2px); box-shadow: none; background: #f0fdf4; }
.qty-stepper { width: 100%; height: 100%; background: var(--success); border-radius: 6px; display: flex; align-items: center; justify-content: space-between; color: white; }
.qty-btn { width: 22px; background: transparent; border: none; color: white; font-weight: 700; font-size: 1.1rem; }
.qty-val { font-size: 0.85rem; font-weight: 700; }

/* =========================================
   COMPACT PREMIUM CART (Mobile)
   Smaller Size, Same Premium Look
   ========================================= */

.floating-cart {
    position: fixed; 
    bottom: 20px; left: 16px; right: 16px;
    
    /* Dark Theme Background */
    background: #111827; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Reduced Padding (Height ઓછી કરી) */
    padding: 10px 16px; 
    border-radius: 12px; /* થોડું ઓછું ગોળ */
    
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.floating-cart:not(.hidden) { transform: translateY(0); }

/* Left: Info (Text નાનું કર્યું) */
.cart-info { display: flex; flex-direction: column; justify-content: center; }

.cart-items-count {
    font-size: 0.65rem; /* નાની સાઈઝ */
    color: #9ca3af; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.cart-total-price {
    font-size: 1rem; /* 1.2rem થી ઘટાડીને 1rem */
    font-weight: 700; 
    color: #fff;
    line-height: 1.2;
}

/* Right: Button (Compact) */
.cart-action {
    background: #FF4500; 
    color: #fff;
    
    /* Padding ઘટાડ્યું */
    padding: 6px 12px; 
    border-radius: 8px; /* થોડું ચોરસ */
    
    font-size: 0.8rem; /* ફોન્ટ નાના કર્યા */
    font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
}

.cart-action i { font-size: 0.75rem; }
/* =================================================================
   6. MEDIA QUERIES (Mobile Header Logic from Index.css)
   ================================================================= */
@media (max-width: 768px) {
    /* Mobile Header Layout - Exactly like Index.css */
    .header-container { flex-wrap: wrap; gap: 10px; padding-bottom: 4px; }
    .logo-wrapper { order: 0; flex: 0 0 auto; }
    .header-actions { order: 2; gap: 16px; margin-left: auto; } /* Actions Right Aligned */
    .header-search { order: 3; width: 100%; margin: 8px 0 0 0; max-width: 100%; }
    .search-wrapper { height: 42px; background: #f9fafb; border: 1px solid #e5e7eb; }
    .cart-btn { background: transparent; border: none; padding: 0; } /* Simple icon on mobile */
    .cart-btn .text-box { display: none; } /* Hide "My Cart" text on mobile */
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .container { padding: 0 32px; }
    
    /* Desktop Header Layout */
    .desktop-only-flex { display: flex; }
    .desktop-only-text { display: flex; }
    .header-container { flex-wrap: nowrap; }
    .header-actions { order: 3; }
    
    /* Features Strip (Visible Desktop) */
    .features-strip { display: flex; justify-content: space-between; background: var(--surface); padding: 20px 30px; border-radius: 12px; margin: 30px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--border-color); }
    .feature-item { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center; }
    .feature-item i { font-size: 1.8rem; color: var(--brand-primary); background: var(--brand-light); padding: 12px; border-radius: 50%; }
    .feature-item h6 { font-size: 0.95rem; font-weight: 700; color: #333; margin: 0; }
    .feature-item p { font-size: 0.8rem; color: #666; margin: 0; }

    .floating-cart { display: none !important; }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .promo-grid { grid-template-columns: 1fr 1fr; }
    .category-scroll { flex-wrap: wrap; justify-content: center; overflow: visible; }
    .cat-item { width: 90px; } .cat-img { width: 80px; height: 80px; }
    .hero-slide img { aspect-ratio: 4 / 1; }

    /* Desktop Footer */
    .desktop-only-footer { display: block; background: #fff; padding: 60px 0 20px; margin-top: 60px; border-top: 1px solid #eee; }
    .footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
    .footer-col h4 { font-weight: 700; margin-bottom: 20px; }
    .footer-col ul { list-style: none; padding: 0; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul li a { text-decoration: none; color: #666; transition: 0.2s; }
    .footer-col ul li a:hover { color: var(--brand-primary); }
    .footer-bottom { border-top: 1px solid #eee; padding-top: 20px; text-align: center; color: #999; margin-top: 40px; }
}

@media (min-width: 1024px) { .header-actions {
        gap: 25px; /* PC પર થોડી વધુ જગ્યા માટે */
    }}
/* =========================================
   MOBILE BOTTOM NAVIGATION & FLOATING CART FIX
   ========================================= */

/* 1. Bottom Navigation Bar (પાછું લાવવા માટે) */
.bottom-nav {
    position: fixed; 
    bottom: 0; left: 0; right: 0;
    background: #fff; 
    padding: 10px 0; 
    display: flex; justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px 16px 0 0; /* ઉપરથી થોડું ગોળ */
}

/* Nav Links Styling */
.nav-link {
    display: flex; flex-direction: column; align-items: center; 
    text-decoration: none; 
    color: #9ca3af; /* Grey */
    font-size: 0.7rem; 
    gap: 4px;
    position: relative;
    width: 20%; /* Touch area વધારવા */
}

.nav-link i { font-size: 1.3rem; margin-bottom: 2px; transition: 0.2s; }
.nav-link.active { color: #FF4500; font-weight: 600; }
.nav-link.active i { transform: translateY(-2px); }
/* 2. Floating Cart Position Adjustment */
/* નેવિગેશન બારની ઉપર આવવું જોઈએ */
.floating-cart {
    bottom: 80px; /* Nav bar (60px) + Gap (20px) */
    z-index: 1001; /* Nav bar ની ઉપર */
}

/* 3. Body Padding Adjustment */
/* જેથી છેલ્લી પ્રોડક્ટ Nav bar ની પાછળ ન દબાઈ જાય */
body {
    padding-bottom: 140px; 
}

/* 4. Desktop માં Nav Bar છુપાવો */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* New Stepper Button Style (+ 1 -) */
.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FF4500; /* Your Brand Color */
    color: white;
    border-radius: 6px;
    padding: 0 4px;
    width: 85px; 
    height: 36px;
    box-shadow: 0 2px 5px rgba(255, 69, 0, 0.3);
    transition: all 0.2s;
}

.qty-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    width: 25px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:active { transform: scale(0.9); }

.qty-val {
    font-weight: 700;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}
/* =======================================================
   QUICKNEST MART - FINAL STABLE CSS (V5.1)
   Fixes: Removed Button Animation (Stable Grid), Neon Logo
   ======================================================= */

/* GLOBAL RESET */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* =======================================================
   1. QUICKNEST LOGO DESIGN (DARK MODE FIX)
   ======================================================= */
/* Light Mode Defaults handled in HTML inline styles, 
   but we override for Dark Mode here */

body.dark-mode .logo span:first-child {
    color: #FF4500 !important;
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.6); /* Orange Neon Glow */
}

body.dark-mode .logo span:last-child {
    color: #ffffff !important; /* Make 'Nest' White */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* =======================================================
   2. PRODUCT CARDS
   ======================================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; padding: 0 16px;
}
@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    /* No animation on hover to keep grid stable */
}

/* IMAGE (White BG Fix) */
.card-img-box {
    width: 100%; height: 140px;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; 
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.body.dark-mode .card-img-box {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.card-img-box img {
    width: 100%; height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* INFO */
.product-unit {
    font-size: 0.7rem; color: var(--text-muted);
    background: rgba(0,0,0,0.04);
    padding: 2px 8px; border-radius: 6px;
    width: fit-content; margin-bottom: 6px;
    font-weight: 500;
}
body.dark-mode .product-unit { background: rgba(255,255,255,0.1); }

.card-info h3 {
    font-size: 0.9rem; font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 2.6em;
    color: var(--text-main);
}

/* FOOTER */
.card-footer {
    margin-top: auto;
    display: flex; align-items: flex-end; justify-content: space-between;
}
.price-col { display: flex; flex-direction: column; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--text-price); }
.mrp { 
    font-size: 0.75rem; color: var(--text-muted); 
    text-decoration: line-through; margin-top: -2px;
}

/* =======================================================
   3. STABLE BUTTONS (NO ANIMATION)
   ======================================================= */
.btn-wrapper { 
    width: 85px; height: 36px; 
    position: relative;
}

/* Default ADD Button */
.btn-add {
    width: 100%; height: 100%;
    background: #fff;
    color: var(--green-success);
    border: 1px solid var(--green-success);
    border-radius: 8px;
    font-size: 0.85rem; font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(22, 163, 74, 0.15);
    /* Removed transition/animation for instant swap */
}

/* Dark Mode Add Button */
body.dark-mode .btn-add {
    background: rgba(22, 163, 74, 0.1); 
    border-color: var(--green-success);
    color: #4ade80; 
    box-shadow: none;
}

/* STEPPER [ - 1 + ] */
.qty-stepper {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--green-success);
    border-radius: 8px;
    width: 100%; height: 100%;
    padding: 0 2px;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
    
    /* 🚫 ANIMATION REMOVED FOR UNIFORMITY */
    animation: none; 
    transform: none;
}

body.dark-mode .qty-stepper {
    background: var(--green-dark);
    box-shadow: var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Icons */
.qty-btn {
    background: transparent; border: none; color: white;
    width: 28px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
}
.qty-val {
    font-size: 1rem; font-weight: 700; color: white;
    min-width: 20px; text-align: center;
}

/* =======================================================
   4. OTHER UTILITIES
   ======================================================= */
.site-header, .bottom-nav { border-color: var(--border-color); }

/* Skeleton */
.skeleton { 
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 8px;
}
body.dark-mode .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}
@keyframes loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.address-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 100px; /* નામની લંબાઈ મર્યાદિત કરો */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* નામ લાંબુ હોય તો ... બતાવશે */
    display: inline-block;
    vertical-align: middle;
}
/* home.css માં ઉમેરો */

/* Flash Sale કાર્ડ માટે પ્રીમિયમ ગ્લો */
.flash-sale-card {
    border: 2px solid #FF4500 !important; /* બ્રાન્ડ ઓરેન્જ બોર્ડર */
    background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%) !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2) !important;
    transform: scale(1.02); /* થોડું મોટું દેખાશે */
    position: relative;
    overflow: hidden;
}

/* "Hot" ટેગ જે ગ્લો કરશે */
.flash-sale-card::before {
    content: "🔥 HOT";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #FF4500;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 10;
    animation: pulse-red 1.5s infinite;
}
/* Remove the old .flash-alert on body */
@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
/* ડાર્ક મોડ માટે ગ્લો */
body.dark-mode .flash-sale-card {
    background: #1e293b !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4) !important;
}
/* =========================================
   MARUTI STORE - PERFECTED CSS (V6.0)
   Required Changes only - Stable & Professional
   ========================================= */

:root {
    --brand-primary: #FF4500;
    --brand-secondary: #2563eb;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --radius-lg: 16px;
    --shadow-premium: 0 8px 25px rgba(0,0,0,0.08);
}

/* Dark Mode Support */
body.dark-mode {
    --bg-body: #020617;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    margin: 0; font-family: 'Poppins', sans-serif;
    background: var(--bg-body); color: var(--text-main);
    padding-bottom: 140px; /* Mobile Nav + Floating Cart space */
}

/* --- 1. HEADER ETA & LOCATION (Perfected) --- */
.location-context {
    display: flex; flex-direction: column; cursor: pointer; padding: 2px 0;
}

.loc-top {
    display: flex; align-items: center; gap: 4px;
    color: var(--brand-primary); font-weight: 800; font-size: 0.8rem;
}

/* ETA ko badge jaisa look dene ke liye */
#header-eta {
    background: rgba(255, 69, 0, 0.1);
    padding: 1px 6px; border-radius: 4px;
    font-size: 0.75rem;
}

.loc-bottom { display: flex; align-items: center; gap: 4px; margin-top: -2px; }

#header-address {
    font-size: 0.85rem; font-weight: 700;
    max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- 2. PRODUCT GRID (Mobile 2, PC 6 Columns) --- */
.product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 12px; padding: 0 16px;
}

@media (min-width: 768px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(6, 1fr); }
}

.product-card {
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 12px; border: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; transition: transform 0.2s;
}

.card-img-box {
    width: 100%; height: 130px; display: flex; 
    align-items: center; justify-content: center;
    background: #fff; border-radius: 12px; margin-bottom: 10px;
}

.card-img-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- 3. FLOATING CART STRIP (Blinkit Style Fix) --- */
.floating-cart {
    position: fixed; bottom: 80px; left: 12px; right: 12px;
    background: #1e293b; color: white;
    padding: 12px 20px; border-radius: 14px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1001; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart.hidden { display: none; }

.cart-info { font-weight: 700; font-size: 1rem; color: #fff; }

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* PC adjustment for Cart */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .floating-cart {
        max-width: 380px; left: auto; right: 30px; bottom: 30px;
    }
}

/* --- 4. STEPPER BUTTONS (Optimized) --- */
.btn-wrapper { width: 85px; height: 36px; }

.btn-add {
    width: 100%; height: 100%; background: #fff;
    color: #16a34a; border: 1px solid #16a34a;
    border-radius: 8px; font-weight: 800; font-size: 0.85rem;
    cursor: pointer; box-shadow: 0 2px 0 rgba(22,163,74,0.1);
}

.qty-stepper {
    background: #16a34a; color: white;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; height: 100%; border-radius: 8px; padding: 0 4px;
}

.qty-btn { background: none; border: none; color: white; font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.qty-val { font-weight: 700; font-size: 1rem; }

/* --- 5. FLASH SALE GLOW --- */
.flash-sale-card {
    border: 2px solid var(--brand-primary) !important;
    background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%) !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.15) !important;
    position: relative;
}

.flash-sale-card::before {
    content: "🔥 HOT"; position: absolute; top: 6px; right: 6px;
    background: var(--brand-primary); color: white;
    font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 10px;
}
/* home.css માં આ ફેરફાર કરો */
.floating-cart.hidden {
    transform: translateY(150%); /* નીચે છુપાઈ જશે */
    opacity: 0;
    pointer-events: none;
    display: flex; /* display: none ન વાપરવું જેથી એનિમેશન ચાલે */
}

.floating-cart {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
/* --- FOOTER MASTER STYLES --- */
.site-footer {
    background: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

body.dark-mode .site-footer {
    background: #111827;
    border-top-color: rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

/* Brand Section */
.footer-brand { font-size: 2rem; font-weight: 800; text-decoration: none; }
.brand-q { color: var(--brand-primary); }
.brand-n { color: #111827; }
body.dark-mode .brand-n { color: #fff; }

.footer-tagline { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: -5px; margin-bottom: 15px; }
.footer-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }

/* Links & Titles */
.footer-col h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 25px; color: var(--text-primary); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.95rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--brand-primary); transform: translateX(5px); }

/* Contact & Socials */
.contact-info { list-style: none; padding: 0; }
.contact-info li { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; color: var(--text-secondary); font-size: 0.95rem; }
.contact-info i { color: var(--brand-primary); font-size: 1.1rem; }

.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: 0.3s; text-decoration: none; }
.social-icon:hover { background: var(--brand-primary); color: #fff; transform: translateY(-3px); }

/* Footer Bottom */
.footer-bottom { border-top: 1px solid #eee; padding-top: 20px; text-align: center; color: var(--text-secondary); margin-top: 40px; font-size: 0.85rem; }
/* --- TIME AWARE GREETING (Blinkit Style) --- */
#dynamic-greeting-area {
    margin-bottom: 15px; /* Hero Slider ની ઉપર જગ્યા */
}

.greeting-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%); /* સવાર જેવો સોનેરી કલર */
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 5px solid #FF4500; /* બ્રાન્ડ કલર */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.greet-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greet-text p {
    font-size: 0.85rem;
    color: #666;
    margin: 4px 0 0 0;
    font-weight: 500;
}

/* ડાર્ક મોડ માટે */
body.dark-mode .greeting-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left-color: #FF4500;
}
body.dark-mode .greet-text h1 { color: #fff; }
body.dark-mode .greet-text p { color: #94a3b8; }
