/* PunchKart Main CSS - Green & Orange Fresh Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary: #16A34A;        /* Main Green */
    --primary-light: #22C55E;  /* Light Green */
    --primary-bg: #DCFCE7;     /* Pale Green BG */
    
    --secondary: #F97316;      /* Main Orange */
    --secondary-hover: #FB923C; /* Highlight Orange */
    --secondary-bg: #FFF7ED;   /* Pale Orange BG */
    
    /* Neutrals */
    --text-dark: #111827;
    --text-light: #6B7280;
    --bg-page: #F9FAFB;
    --bg-card: #FFFFFF;
    
    /* System */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Premium Animations */
.transition-up { transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.group { transition: transform 0.3s ease; display: block; }
.group:hover { transform: translateY(-5px); }
.group:hover .transition-up { transform: scale(1.1); }
.group:hover .shadow-sm { box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1) !important; }
.group:hover h6 { color: var(--primary) !important; transition: color 0.3s; }

/* Interactive Hover Feedback */
.text-fresh { transition: var(--transition); }
.text-fresh:hover { color: var(--primary-light) !important; }
.text-fresh:hover i { transform: translateX(5px); transition: transform 0.3s ease; }
i { transition: transform 0.3s ease; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

/* Top Announcement Bar */
.top-notice-bar {
    background: linear-gradient(90deg, #F97316 0%, #16A34A 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 1060;
    letter-spacing: 0.2px;
    overflow: hidden;
    white-space: nowrap;
}

.top-notice-bar span {
    display: inline-block;
    animation: marquee 40s linear infinite;
    padding-left: 0;
}

.top-notice-bar i { margin-right: 6px; }

/* Smart Header Behavior */
.navbar.sticky-top {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 1050;
}

.nav-up {
    transform: translateY(-100%);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.top-notice-bar i {
    margin-right: 8px;
    color: #FFF7ED;
}

/* Promotional Banners (Blinkit Style) */
.promo-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    cursor: pointer;
    border: none !important;
}

.promo-card::after {
    display: none; /* Remove previous overlays for a flatter look */
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.promo-card .btn-blinkit {
    background: #000000;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
}

.promo-card:hover .btn-blinkit {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
}

.banner-img-blend {
    object-fit: contain; /* Blinkit uses contained product shots */
    /* mix-blend-mode: multiply; - Disabled for true transparent PNGs */
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.promo-card:hover .banner-img-blend {
    transform: scale(1.1) rotate(2deg);
}

.text-shadow-sm { text-shadow: none; } /* Blinkit uses flat design */

/* Navbar Style */
.navbar {
    background: var(--bg-card) !important;
    border-bottom: 1px solid #E5E7EB;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.navbar-brand .text-primary { color: var(--primary) !important; }
.navbar-brand .text-secondary { color: var(--secondary) !important; }

.brand-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

/* Location Selector */
.location-selector {
    background: #F8F9FA;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 45px;
    max-width: 280px; /* Limit width */
}

.location-selector span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.location-selector i.pin { color: var(--secondary); }
.location-selector i.chevron { font-size: 10px; color: var(--secondary); }

/* Large Search Bar */
.nav-search-bar {
    background: #F1F5F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 48px;
    flex-grow: 1;
    max-width: 900px; /* Heavily increased to fill space */
    margin: 0 30px; /* More breathing room */
}

.nav-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    padding-left: 10px;
    color: #4B5563;
}

.nav-search-bar i { color: var(--primary); }

/* Nav Icons/Actions */
/* Secondary Top-Right Links (About, Career, Contact) */
.nav-link-secondary {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569 !important; /* Modern Slate 600 */
    text-decoration: none !important;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-link-secondary i {
    font-size: 1rem;
    color: #10B981; /* Fresh Emerald 500 */
    opacity: 0.8;
}

.nav-link-secondary:hover {
    background: #F0FDF4; /* Light Fresh background */
    color: #16A34A !important; /* Deeper Emerald */
}

/* Header Action Items (Login, Cart) */
.nav-action-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #1F2937 !important; /* Neutral 800 */
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    gap: 3px !important;
    padding: 8px 12px !important;
    border-radius: 14px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: none !important;
    background: transparent;
}

.nav-action-item i {
    font-size: 1.2rem !important;
    color: #16A34A !important; /* Primary Brand Green */
    margin-bottom: 2px;
}

.nav-action-item:hover {
    background: #F8FAFC !important; /* Subtle hover state */
    color: #16A34A !important;
}

.nav-action-item:hover i {
    transform: translateY(-2px);
}

.nav-action-item span {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.cart-badge-custom {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* start hidden via visibility so flex layout is preserved */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Pop/bounce animation triggered by JS */
@keyframes badgePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.cart-badge-custom.badge-pop {
    animation: badgePop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Modern Buttons */
.btn {
    border-radius: var(--radius);
    padding: 10px 20px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    transform: scale(1.05);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Admin UI Components */
.btn-white {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
}
.btn-white:hover {
    background: #F8FAFC;
    color: #1E293B;
}
.dropdown-menu {
    z-index: 1100 !important;
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1) !important;
}

/* Product Cards - Premium Revision */
.product-card {
    background: #fff;
    border-radius: 16px; /* Reduced from 24px */
    border: 1px solid #F1F5F9;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -2px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
    border-color: #E2E8F0;
}

.product-img-wrapper {
    position: relative;
    padding: 2px;
    background: #fff;
    overflow: hidden;
}

.product-img {
    width: 70%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
    display: block;
    margin: 4px auto;
}

.product-card:hover .product-img { transform: scale(1.05); }

.badge-discount, .badge-fresh {
    position: absolute;
    top: 10px; /* Reduced from 15px */
    left: 10px; /* Reduced from 15px */
    padding: 4px 10px; /* Reduced from 6px 14px */
    font-size: 0.6rem; /* Reduced from 0.7rem */
    font-weight: 900;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
}

.badge-discount { background: #F97316; color: #fff; }
.badge-fresh { background: #2563EB; color: #fff; } /* Solid Blue for Freshness */

.delivery-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #F97316;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}
.delivery-time i { font-size: 0.7rem; } /* Reduced from 0.8rem */

.cat-label {
    color: #16A34A;
    font-weight: 700;
    font-size: 0.7rem;
    margin-bottom: 2px;
    line-height: 1;
    letter-spacing: -0.2px;
}

.prod-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1E293B;
    line-height: 1.2;
    margin-bottom: 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prod-desc {
    color: #64748B;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 6px;
}

.product-rating i {
    font-size: 0.75rem; 
    color: #FBBF24; /* Star Yellow */
}

.price-tag {
    color: #16A34A;
    font-weight: 800;
    font-size: 1.15rem; /* Reduced from 1.4rem */
    letter-spacing: -0.5px;
}

.product-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
    margin-top: auto;
    flex-wrap: nowrap;
}

.add-to-cart-premium {
    height: 30px;
    padding: 0 8px;
    background: #16A34A;
    color: #fff;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
    margin: 0;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.add-to-cart-premium:hover {
    background: #15803D;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(22, 163, 74, 0.3);
}

.add-to-cart-premium:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Hero Section & Slider Bulletproof Fixes */
#heroSlider {
    background: #f8fafc;
    overflow: hidden;
    position: relative;
    min-height: 320px; /* Further reduced to remove white space */
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 320px;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.carousel-item .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.carousel-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Push leaving slide down or away to avoid stacking */
.carousel-item:not(.active) {
    pointer-events: none;
}

.carousel-item:not(.active) .slider-content,
.carousel-item:not(.active) .slider-image {
    opacity: 0 !important;
    transition: opacity 0.3s ease-out !important;
}

.hero-title {
    font-size: 2.4rem; /* Reduced for 320px height */
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #FFFFFF;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Hero elements staggered "In-and-Out" vertical motion */
.carousel-item .hero-badge,
.carousel-item .hero-title,
.carousel-item .lead,
.carousel-item .hero-btns {
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

/* Active slide elements - Slide In from Bottom */
.carousel-item.active .hero-badge { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.carousel-item.active .hero-title { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.carousel-item.active .lead       { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.carousel-item.active .hero-btns   { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }

/* Leaving slide elements - Slide Out to Top */
.carousel-item:not(.active) .hero-badge,
.carousel-item:not(.active) .hero-title,
.carousel-item:not(.active) .lead,
.carousel-item:not(.active) .hero-btns {
    transform: translateY(-40px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 1, 1), opacity 0.4s ease-out;
    transition-delay: 0s !important;
}

/* Reset slider-content horizontal movement for cleaner look */
.slider-content {
    opacity: 1;
    transform: none;
    transition: none;
}
.carousel-item.active .slider-content {
    opacity: 1;
    transform: none;
}

/* Fixed Button Container */
.hero-btns .btn {
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px;
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.animate-float img {
    animation: float 6s ease-in-out infinite;
}

/* Layout Utilities */
.bg-fresh { background-color: var(--primary-bg); color: var(--primary) !important; }
.bg-offer { background-color: var(--secondary-bg); color: var(--secondary) !important; }
.text-fresh { color: var(--primary); }
.text-offer { color: var(--secondary); }

/* Badge Customization */
.badge.bg-fresh {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 0.7rem;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

/* Footer */
footer {
    background-color: #111827;
    color: #FFFFFF;
    padding: 60px 0 30px;
}

footer a {
    color: #D1D5DB;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light);
}

/* Sidebar (Admin) */
.admin-sidebar {
    background-color: #111827;
    color: #fff;
    min-height: 100vh;
}

.admin-nav-link {
    color: #9CA3AF;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.admin-nav-link:hover, .admin-nav-link.active {
    background-color: rgba(22, 163, 74, 0.1);
    color: var(--primary-light);
}

.admin-nav-link i {
    font-size: 1.1rem;
}

/* Dashboard Cards */
.dash-card {
    border-radius: 12px;
    border: none;
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.dash-card.orders { border-top: 4px solid var(--secondary); }
.dash-card.revenue { border-top: 4px solid var(--primary); }

/* Toast Notifications */
.toast-success { background-color: var(--primary); color: #fff; }
.toast-alert { background-color: var(--secondary); color: #fff; }

/* Form Controls */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
}

/* Attractive Focus State for Groups (Unified Field) */
.input-group {
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.input-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(22, 197, 94, 0.15) !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(22, 197, 94, 0.15) !important;
    outline: none;
}

/* Specific fix for border-0 inputs inside groups */
.input-group .form-control:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Animations */
/* Cinematic Slider Animations */
.carousel-fade .carousel-item {
    transition-duration: 1.2s;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.carousel-item.active {
    animation: kenBurns 10s linear infinite alternate;
}

/* Cinematic Slide-In Up removed in favor of smoother transitions above */
/* This section can be kept for other uses or removed if it conflicts */

/* Premium Typography Utilities */
.fw-800 { font-weight: 800 !important; }
.fw-850 { font-weight: 850 !important; }
.fw-900 { font-weight: 900 !important; }

.text-slate-900 { color: #0F172A !important; }
.text-slate-800 { color: #1E293B !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-500 { color: #64748B !important; }

.x-small { font-size: 0.75rem !important; }
.xx-small { font-size: 0.65rem !important; }

/* ==========================================================================
   Responsive Design & Mobile Optimization
   ========================================================================== */

/* Tablet & Smaller Desktop (below 1200px) */
@media (max-width: 1200px) {
    .nav-search-bar { max-width: 600px; margin: 0 15px; }
    .hero-title { font-size: 2.8rem; }
}

/* Tablets (below 992px) */
@media (max-width: 991.98px) {
    .nav-search-bar { display: none; } /* Hide heavy search, show on mobile menu or separate icon */
    .location-selector { max-width: 180px; font-size: 12px; }
    
    /* Dashboard Sidebar Logic */
    .sidebar { width: 80px !important; padding: 30px 10px !important; }
    .sidebar span, .sidebar .xx-small { display: none; }
    .main-content { margin-left: 80px !important; padding: 25px !important; }
    .nav-link-merchant { justify-content: center; padding: 15px !important; }
    .nav-link-merchant i { margin: 0 !important; font-size: 1.4rem; }
}

/* Mobile Devices (below 768px) */
@media (max-width: 767.98px) {
    #heroSlider, .carousel-inner, .carousel-item {
        height: 480px !important; /* Taller on mobile to fit all text and buttons */
    }
    .hero-title { 
        font-size: 1.8rem !important; 
        margin-bottom: 0.8rem !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* extra pop */
    }
    .hero-overlay {
        background: rgba(0,0,0,0.55) !important; /* Darker, solid overlay for mobile text visibility */
    }
    .carousel-item {
        background-position: center right !important; /* Keeps products on the right visible */
    }
    .lead {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        text-shadow: 0 1px 5px rgba(0,0,0,0.4);
    }
    .top-notice-bar { font-size: 0.75rem; }
    
    /* Navbar stack */
    .navbar-brand { font-size: 1.3rem; }
    .location-selector { display: none; } /* Hide on small mobile to save space */
    
    /* Grid adjustments */
    .row.g-4 { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.8rem; }
    
    .product-img { width: 100% !important; margin: 0 auto 8px !important; border-radius: 12px; }
    .product-info { padding: 10px 8px !important; }
    
    .prod-title { font-size: 0.8rem !important; margin-bottom: 2px; height: 2.6em !important; }
    .prod-desc { display: none; } /* Hide description on mobile to save space for 2-column grid */
    .price-tag { font-size: 0.95rem !important; margin-bottom: 2px; }
    
    .add-to-cart-premium { 
        width: 100% !important; 
        min-width: unset !important; 
        height: 34px !important;
        font-size: 0.75rem !important;
        padding: 0 4px !important;
        border-radius: 8px !important;
    }
    
    .product-footer { flex-direction: column; align-items: start; gap: 4px !important; }
    .add-to-cart-premium span { font-size: 0.7rem; }
    
    /* Stats & Cards */
    .stat-card-premium { padding: 20px; gap: 15px; }
    .stat-card-premium div .fs-2 { font-size: 1.5rem; }
    
    /* Fix dashboard sidebars for mobile (Bottom Navigation style or full-width) */
    .manager-layout, .dashboard-container { flex-direction: column; }
    
    .sidebar, .sidebar-dashboard { 
        width: 100% !important; 
        height: auto !important; 
        position: relative !important; 
        padding: 15px !important; 
        display: block !important;
        background: #fff;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }
    
    .sidebar .mb-5, .sidebar .mt-auto, .sidebar hr,
    .sidebar-dashboard .mb-5, .sidebar-dashboard .mt-auto, .sidebar-dashboard hr { display: none !important; }
    
    .sidebar nav, .sidebar-menu { 
        display: flex !important; 
        width: 100% !important; 
        flex-wrap: wrap !important;
        margin: 0 !important;
        gap: 8px !important;
        list-style: none; /* Ensure no bullets */
    }
    
    .sidebar-menu li {
        width: calc(50% - 4px); /* 2 items per row */
        display: block;
    }

    .nav-link-merchant, .sidebar-link { 
        margin-bottom: 0 !important; 
        padding: 14px 18px !important; 
        width: 100% !important;
        flex: unset !important;
        font-size: 0.9rem !important;
        display: flex;
        align-items: center;
        justify-content: start; /* Standard left align */
        text-align: left;
        border: none;
        border-radius: 14px;
        transition: all 0.2s;
        color: #475569;
        text-decoration: none;
    }
    
    .sidebar-link:hover, .sidebar-link.active {
        background: #f0fdf4 !important;
        color: #16a34a !important;
    }

    .sidebar-link i {
        font-size: 1.1rem;
        width: 24px;
        margin-right: 12px;
        opacity: 0.8;
    }
    
    .main-content, .content-area-premium { 
        margin-left: 0 !important; 
        padding: 24px 15px !important; 
        width: 100% !important;
    }
    
    /* Order Cards */
    .order-action-card, .mission-card, .premium-form-card { padding: 20px; border-radius: 20px; }
}

/* Extra Small Devices (below 480px) */
@media (max-width: 480px) {
    .nav-action-item span { display: none; } /* Show icons only */
    .navbar { padding: 10px 0; }
    .btn { padding: 8px 16px; font-size: 14px; }
    .hero-title { font-size: 1.8rem; letter-spacing: -0.5px; }
    
    #heroSlider { min-height: 420px; } /* Increased from 320px to fit buttons */
    .carousel-inner { height: 420px; }
    .carousel-item { height: 420px; }
    
    .hero-overlay { background: linear-gradient(0deg, rgba(255,255,255,1) 40%, rgba(255,255,255,0.6) 100%); }
    .slider-content { text-align: left; padding: 15px; }
    .hero-title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.8rem; }
    .hero-content p.lead { font-size: 0.85rem; margin-bottom: 1.2rem !important; line-height: 1.4; }
    
    .hero-btns { display: flex; flex-direction: column; width: 100%; gap: 8px; }
    .hero-btns .btn { width: 100%; text-align: center; font-size: 13px; padding: 12px; }
    .hero-badge { font-size: 0.6rem; padding: 4px 8px !important; margin-bottom: 0.5rem !important; }
    
    /* Move indicators down or hide them to avoid overlap */
    .carousel-indicators { margin-bottom: 0.5rem; }
    .carousel-indicators [data-bs-target] { width: 25px; height: 3px; }
    
    .cat-label { font-size: 0.6rem !important; }
    .delivery-time { scale: 0.9; transform-origin: left; margin-bottom: 4px; }
}

/* Clipping & Layout Fixes */
.carousel-inner {
    padding-left: 0;
    padding-right: 0;
}

/* Blinkit Style Modal Refinement */
#productDetailModal .modal-content {
    background: #f8fafc;
}

.modal-left-panel {
    background: #fff;
    border-right: 1px solid #f1f5f9;
}

.modal-right-panel {
    background: #fff;
}

/* Breadcrumb subtle stylings */
.modal-breadcrumb {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.unit-selector-grid {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.unit-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    min-width: 70px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.unit-box.active {
    border-color: #16A34A;
    background: #f0fdf4;
}

.unit-box .unit-size {
    font-size: 0.65rem;
    font-weight: 600;
}

.unit-box .unit-price {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e293b;
}

.why-shop-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.why-shop-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.why-shop-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-shop-icon img {
    width: 18px;
}

.why-shop-text h6 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0px;
    color: #1e293b;
}

.why-shop-text p {
    font-size: 0.65rem;
    color: #64748b;
    line-height: 1.3;
}

.details-section-title {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-content-text {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.6;
}

#modalThumbGrid::-webkit-scrollbar { display: none; }
#modalThumbGrid { -ms-overflow-style: none; scrollbar-width: none; }

.container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- Navigation Cart Pulse --- */
@keyframes pulseCart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #16A34A; }
    100% { transform: scale(1); }
}
.pulse-cart {
    animation: pulseCart 0.5s ease;
}

/* --- Auth Modal Tabs --- */
.active-tab {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
#login-method-tabs {
    border: 1px solid #f1f5f9;
}
#login-method-tabs .btn {
    transition: all 0.3s ease;
}

/* Categorized Grid: 10 per row */
.category-item-wrapper {
    flex: 0 0 calc(10% - 1rem);
    min-width: 100px;
}
.category-img-container {
    aspect-ratio: 1/1;
    width: 100%;
}
@media (max-width: 992px) {
    .category-item-wrapper { flex: 0 0 20%; }
}
@media (max-width: 576px) {
    .category-item-wrapper { flex: 0 0 33%; }
}
