:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-soft: #ECFDF5;
    --secondary: #F59E0B;
    --bg-cream: #F9FAFB;
    --white: #FFFFFF;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--glass);
    height: 80px;
    display: flex;
    align-items: center;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo i {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

.nav-icons > div {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-icons > div:hover {
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    margin-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 15, 0, 0.7), rgba(0, 0, 0, 0.23));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.search-bar {
    background: white;
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    border-radius: 100px;
    background-color: transparent;
}

.search-bar button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Section Styling */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
}

/* Category Chips */
.categories {
    margin-bottom: 5rem;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-chip {
    padding: 0.75rem 2rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-chip:hover,
.category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

/* Product Cards */
.products {
    margin-bottom: 8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid #F3F4F6;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border: none;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F3F4F6;
}

.cart-header h3 {
    font-size: 1.5rem;
}

#cartClose {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F9FAFB;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-muted);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.qty-btn {
    background: #F3F4F6;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    padding: 2rem;
    background: var(--bg-cream);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: none;
}

.cart-overlay.show {
    display: block;
}

/* Footer Styling */
.footer {
    background: #064E3B;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer .logo {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-info p {
    opacity: 0.7;
    max-width: 300px;
}

.footer h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    animation: fadeUp 0.8s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Responsive Styling */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-social { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { height: auto; padding: 120px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .search-bar { flex-direction: column; border-radius: 20px; }
    .search-bar button { width: 100%; border-radius: 12px; }
    .cart-sidebar { width: 100%; right: -100%; }
}

/* v1.1 Enhancements: Wishlist & Modal */
.nav-icons > div i.far.fa-heart {
    transition: var(--transition);
}

.nav-icons > div:hover i.far.fa-heart {
    color: #EF4444;
}

.wishlist-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

/* Status Badges */
.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.badge-deal { background: #EF4444; color: white; }
.badge-local { background: var(--primary); color: white; }
.badge-organic { background: #064E3B; color: white; }

/* Favorite Button on Card */
.fav-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active i { color: #EF4444; font-weight: 900; }

/* Quick View Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.show { display: flex; }

.quick-view-modal {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#modalClose {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #F3F4F6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

#modalClose:hover { background: #E5E7EB; transform: rotate(90deg); }

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
}

.modal-img {
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.nutrition-item {
    background: var(--primary-soft);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
}

.nutrition-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.nutrition-item strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .modal-content { grid-template-columns: 1fr; }
    .modal-img { height: 300px; }
    .quick-view-modal { height: 90vh; overflow-y: auto; }
}

/* v1.3 Nepal Login System */
.login-modal {
    background: white;
    width: 450px;
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.login-header h2 span { color: var(--primary); }
.login-header p { color: var(--text-muted); font-size: 0.95rem; }

.phone-input-group {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 15px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.phone-input-group:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.country-prefix {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1rem;
    border-right: 1px solid #E5E7EB;
    color: var(--text-dark);
    font-weight: 600;
}

.np-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

#userPhone {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.otp-box {
    width: 55px;
    height: 65px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: #F9FAFB;
    transition: var(--transition);
}

.otp-box:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
}

.resend-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.resend-text a {
    color: var(--primary);
    font-weight: 600;
}

/* v1.4 Nepal Location Selector */
.location-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.location-btn:hover { background: rgba(255, 255, 255, 0.2); }

.location-btn i { font-size: 0.9rem; }
#currentLocation { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.pulse-slow { animation: pulseSlow 3s infinite; }
@keyframes pulseSlow {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.location-modal {
    background: white;
    width: 480px;
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.location-search {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    margin-bottom: 2rem;
}

.location-search input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
}

.detect-location-btn {
    width: 100%;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.detect-location-btn:hover { background: var(--primary); color: white; }

.zone-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.zone-list h4 { margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.zone-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.zone-item:hover { background: #F9FAFB; border-color: #E5E7EB; }
.zone-item.active { background: var(--primary-soft); border-color: var(--primary); }

.zone-item i { font-size: 1.5rem; color: var(--text-muted); }
.zone-item.active i { color: var(--primary); }

.zone-item div { display: flex; flex-direction: column; }
.zone-item strong { font-size: 1.1rem; color: var(--text-dark); }
.zone-item span { font-size: 0.85rem; color: var(--text-muted); }

#locationClose {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* v1.5 Mega-Store Scalability */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    bottom: 120px;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
}

.loader-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: dots 0.6s infinite alternate;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.6); opacity: 0.3; }
}

/* v1.7 Related Products in Modal */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.related-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.related-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.related-card p {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.related-card span {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* v2.0 Deep Inventory & Upsells */
.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #F59E0B; /* Amber star color */
    margin-bottom: 8px;
}

.product-rating span {
    color: var(--text-muted);
}

.cart-recommendations {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: #F9FAFB;
}

.cart-recommendations h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.upsell-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upsell-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.upsell-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.upsell-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

.upsell-info {
    flex: 1;
}

.upsell-name {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.upsell-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

.upsell-add-btn {
    background: var(--bg-cream);
    color: var(--primary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.upsell-add-btn:hover {
    background: var(--primary);
    color: white;
}

.login-footer p.terms-notice a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* v1.9 Mobile Bar View (List View) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 5%;
}

.view-switcher {
    display: flex;
    background: #F3F4F6;
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    border: none;
    background: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* List View Layout */
.product-grid.list-view {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card.list {
    flex-direction: row;
    align-items: center;
    padding: 12px;
    text-align: left;
    height: auto;
}

.product-card.list .product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    margin-right: 15px;
    margin-bottom: 0;
}

.product-card.list .product-info {
    flex: 1;
}

.product-card.list .product-name {
    font-size: 1rem;
    margin-bottom: 4px;
}

.product-card.list .product-price {
    font-size: 1rem;
    margin-bottom: 0;
}

.product-card.list .add-to-cart-btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.85rem;
}

.product-card.list .fav-btn {
    top: 5px;
    right: 5px;
}

@media (max-width: 480px) {
    .product-card.list .product-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    .product-card.list .product-name {
        font-size: 0.9rem;
    }
    .product-card.list .add-to-cart-btn {
        padding: 6px 12px;
    }
}

.mini-flex {
    justify-content: center;
    gap: 1rem;
}

.mini-flex .app-btn.mini {
    background: #111;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 1.1rem;
    width: auto;
    min-width: unset;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    transition: var(--transition);
}

.login-btn:hover { background: var(--primary-soft); }

@media (max-width: 580px) {
    .login-modal { width: 90%; padding: 2.5rem 1.5rem; }
    .login-header h2 { font-size: 1.75rem; }
    .otp-box { width: 50px; height: 60px; }
}

.download-app {
    margin: 8rem auto;
    background: #064E3B;
    border-radius: 40px;
    color: white;
    overflow: hidden;
    position: relative;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 4rem;
}

.download-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.download-text h2 span { color: #FBBF24; }

.download-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 450px;
}

.app-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-btn {
    background: black;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 170px;
    transition: var(--transition);
}

.app-btn:hover { background: #1F2937; transform: translateY(-5px); }

.app-btn i { font-size: 1.8rem; }
.app-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.app-btn-text span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; }
.app-btn-text strong { font-size: 1.1rem; }

.app-btn.mini {
    min-width: unset;
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
}

.download-image {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.mockup-frame {
    width: 320px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    border: 12px solid #333;
    overflow: hidden;
    transform: rotate(5deg) translateY(60px);
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.mockup-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .download-content { grid-template-columns: 1fr; padding: 4rem 2rem; }
    .download-text { text-align: center; }
    .download-text p { margin-inline: auto; }
    .app-badges { justify-content: center; }
    .download-image { display: none; }
}

.top-promo-bar {
    background: #064E3B;
    color: white;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.container-promo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-timer {
    font-weight: 700;
    color: #FBBF24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse { animation: pulseAnim 2s infinite; }
@keyframes pulseAnim {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.category-scroller {
    overflow-x: auto;
    padding: 1rem 0;
    margin: 0 -1rem;
    scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar { display: none; }
.category-scroller .category-grid {
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.sticky-bottom-bar {
    position: fixed;
    bottom: -120px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 1400;
    padding: 1rem 1.5rem;
    transition: var(--transition);
    border-top: 1px solid #F3F4F6;
}

.sticky-bottom-bar.show { bottom: 0; }
.progress-info { margin-bottom: 0.75rem; }
.progress-bar-bg { height: 4px; background: #F3F4F6; border-radius: 10px; overflow: hidden; margin-bottom: 0.4rem; }
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.5s ease; }
#deliveryMsg { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
}

.summary-info { display: flex; flex-direction: column; }
#bottomCartCount { font-size: 0.8rem; opacity: 0.9; }
#bottomCartTotal { font-size: 1.1rem; font-weight: 700; }

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
    z-index: 1300;
    border-top: 1px solid #F3F4F6;
}

.bottom-nav a { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: var(--text-muted); gap: 0.25rem; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a i { font-size: 1.25rem; }

@media (max-width: 580px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 0.5rem; }
    .product-card { border-radius: 15px; }
    .product-image { height: 150px; }
    .product-info { padding: 1rem; }
    .product-name { 
        font-size: 1rem; 
        height: 2.4rem; 
        overflow: hidden; 
        display: -webkit-box; 
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical; 
        line-clamp: 2;
    }
    .product-price { font-size: 1rem; margin-bottom: 1rem; }
    .add-to-cart-btn { padding: 0.6rem; font-size: 0.85rem; }
    .sticky-bottom-bar.show { bottom: 65px; }
    .bottom-nav { display: flex; }
    .navbar { height: 70px; }
    .hero { padding: 40px 0 20px; }
    .hero h1 { font-size: 2rem; }
}

/* On-card quantity control */
.add-to-cart-btn.in-cart { background: var(--primary-soft); color: var(--primary); padding: 0; border: 1px solid var(--primary); }
.qty-controls { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.qty-controls button { background: none; border: none; padding: 0.6rem 1rem; cursor: pointer; color: var(--primary); font-weight: 700; }
.qty-controls span { font-weight: 700; }


