:root {
    --bg: #f8f9fa;
    --surface: rgba(250, 252, 247, 0.88);
    --card: #ffffff;
    --card-soft: #eef6e6;
    --text: #172215;
    --muted: #65715f;
    --line: #dbe7d2;
    --accent: #4c8b35;
    --accent-dark: #28551c;
    --danger: #ef5f57;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-soft: 0 20px 46px rgba(50, 72, 41, 0.10);
    --shadow-card: 0 14px 30px rgba(62, 87, 52, 0.09);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Premium Mobile Grocery UI Refresh */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Search bar aur top action buttons ke liye styles */
.search-bar button {
    transition: all 0.3s ease;
}

#voiceSearchBtn {
    background: rgba(236, 247, 232, 0.95);
    color: #2d6a1f;
}

#themeToggleBtn {
    background: linear-gradient(145deg, #f4faef, #e6f2de);
    color: #3d652f;
}

.sched-eta {
    margin-top: 2px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.88);
    display: inline-block;
}

.hero-slide {
    isolation: isolate;
    animation: hero-pan 7s ease-in-out infinite alternate;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(132deg, rgba(2, 10, 0, 0.5), rgba(2, 10, 0, 0.15) 50%, rgba(2, 10, 0, 0.45));
    z-index: -1;
}

@keyframes hero-pan {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.03);
    }
}

/* Category chips / horizontal category list ke liye styles */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 20px 4px;
    scrollbar-width: none;
}

.category-chip {
    min-width: 70px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 18px;
    padding: 8px 6px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.category-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #f8fff4, #e9f5e0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 16px rgba(40, 73, 25, 0.14);
}

.cat-thumb {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    object-fit: cover;
}

.category-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #4b5b47;
}

.category-chip.active {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(140deg, #d9efc9, #c5e6ad);
}

/* Product card aur product image overlay ke liye styles */
.product-card {
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-img-container {
    position: relative;
}

.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 46%);
    pointer-events: none;
    z-index: 1;
}

.product-image {
    position: relative;
    z-index: 0;
}

.discount-badge {
    background: linear-gradient(135deg, #ff3b30, #ff1a1a);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.2);
}

.snap-add-btn {
    border-radius: 18px;
    transition: all 0.3s ease;
}

.snap-add-btn:active,
.qty-btn:active {
    transform: scale(0.96);
}

/* Bottom mobile navbar ke liye styles */
.mobile-bottom-nav {
    border-radius: 18px;
    padding: 8px 6px;
    background: rgba(250, 253, 247, 0.94);
}

.mob-nav-item {
    transition: all 0.3s ease;
    border-radius: 999px;
}

.mob-nav-item i {
    font-size: 1.04rem;
}

.mob-nav-item.active {
    background: linear-gradient(135deg, #2d8d2b, #1e721f);
    color: #fff;
    box-shadow: 0 10px 20px rgba(41, 104, 33, 0.28);
}

.mob-nav-item.tap-pop {
    animation: nav-pop 0.35s ease;
}

@keyframes nav-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* Floating cart summary bar ke liye styles */
.floating-cart-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    bottom: 82px;
    width: min(calc(100% - 22px), 390px);
    border: none;
    border-radius: 16px;
    min-height: 52px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0f8f2e, #0a6f23);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 14px 26px rgba(14, 88, 34, 0.34);
    z-index: 760;
    transition: all 0.3s ease;
}

.floating-cart-bar.show {
    display: flex;
    transform: translateX(-50%) translateY(0);
}

body.cart-open .floating-cart-bar {
    opacity: 0;
    pointer-events: none;
}

body.product-page-open .floating-cart-bar {
    opacity: 0;
    pointer-events: none;
}

body.product-page-open .mobile-bottom-nav {
    display: none !important;
}

.product-page.open~.floating-cart-bar,
.product-page.open~.mobile-bottom-nav {
    display: none !important;
}

.floating-cart-bar.pulse {
    animation: cart-pulse 0.45s ease;
}

.floating-cart-left {
    font-size: 0.8rem;
}

.floating-cart-right {
    font-size: 0.78rem;
    font-weight: 700;
}

@keyframes cart-pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.02);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.product-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 14, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 970;
}

.product-sheet-overlay.show {
    opacity: 1;
    visibility: visible;
}

.product-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: min(100%, 430px);
    background: #f9fcf6;
    border-radius: 24px 24px 0 0;
    z-index: 971;
    transition: all 0.3s ease;
    padding: 10px 14px 16px;
    display: grid;
    gap: 12px;
}

.product-sheet.open {
    transform: translate(-50%, 0);
}

.product-sheet-close {
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf5e7;
    margin-left: auto;
}

.product-sheet-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    background: linear-gradient(165deg, #f8fff3, #e7f2dc);
}

.product-sheet-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sheet-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #ff922d, #ff6e13);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.product-sheet-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.sheet-price {
    font-size: 1.22rem;
    font-weight: 800;
}

.sheet-old-price {
    font-size: 0.9rem;
    color: #8f9c8a;
    text-decoration: line-through;
}

.product-sheet-qty {
    max-width: 160px;
    margin-top: 6px;
}

.sheet-add-cart-btn {
    border: none;
    border-radius: 14px;
    min-height: 46px;
    background: linear-gradient(135deg, #189832, #0f7927);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    position: sticky;
    bottom: 4px;
}

.recommendation-section .container,
.recommendation-inline-head {
    margin-top: 10px;
}

.tap-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: ripple 0.45s ease-out forwards;
    pointer-events: none;
}

.ripple-host {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    to {
        transform: scale(2.9);
        opacity: 0;
    }
}

body.dark-mode {
    --bg: #0f1810;
    --surface: rgba(20, 27, 21, 0.86);
    --card: #161f18;
    --card-soft: #233526;
    --text: #ecf5e8;
    --muted: #a9b8a6;
    --line: #2d3f2f;
}

body.dark-mode .mobile-bottom-nav,
body.dark-mode .category-chip,
body.dark-mode .product-sheet,
body.dark-mode .floating-cart-bar {
    border-color: rgba(130, 166, 126, 0.25);
}

body.dark-mode .shop-now-btn {
    background: #e2f3d6;
    color: #173916;
}

@media (min-width: 768px) {
    .main-footer {
        padding-bottom: 150px;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.92), transparent 32%),
        radial-gradient(circle at 85% 18%, rgba(236, 222, 169, 0.34), transparent 28%),
        radial-gradient(circle at 80% 88%, rgba(165, 197, 151, 0.36), transparent 34%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(31, 48, 29, 0.1) 0.8px, transparent 0.8px);
    background-size: 10px 10px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
.category-chip:focus-visible,
.service-card:focus-visible,
.cat-panel-item:focus-visible {
    outline: 3px solid rgba(109, 163, 89, 0.28);
    outline-offset: 2px;
}

.container {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 0 14px;
}

.main-header,
.location-bar,
.sub-navbar,
.category-nav,
main,
.main-footer {
    width: min(100%, 430px);
    margin: 0 auto;
    background: var(--surface);
    backdrop-filter: blur(14px);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 300;
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(48, 67, 40, 0.06);
}

.header-content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mob-back-btn {
    display: none;
}

.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 108px;
    flex-shrink: 0;
}

.mobile-brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(213, 158, 18, 0.26);
    flex-shrink: 0;
}

.mobile-brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    min-width: 0;
}

.mobile-brand-text strong {
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    color: #1f261d;
    white-space: nowrap;
}

.mobile-brand-text small {
    font-size: 0.5rem;
    color: #7a8475;
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
}

.logo-desktop {
    display: none;
}

.desktop-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.desktop-brand-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(213, 158, 18, 0.22);
    flex-shrink: 0;
}

.desktop-brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.desktop-brand-text strong {
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    color: #1f261d;
}

.desktop-brand-text small {
    margin-top: 6px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: #7a8475;
    text-transform: uppercase;
}

.search-container {
    min-width: 0;
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    border: 1px solid rgba(210, 224, 201, 0.95);
    padding: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-bar input {
    border: none;
    background: transparent;
    min-width: 0;
    width: 100%;
    font-size: 0.78rem;
    color: var(--text);
    padding: 8px 4px 8px 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: #97a294;
}

.search-bar button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--card-soft);
    color: var(--accent-dark);
    font-size: 0.85rem;
    flex-shrink: 0;
}

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

.action-item {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(46, 69, 39, 0.08);
}

.action-item i {
    pointer-events: none;
}

.action-item span {
    display: none;
}

.logout-btn {
    display: none;
}

.logout-btn.show {
    display: grid;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

.cart-badge.pop {
    animation: badge-pop 0.35s ease;
}

/* Header, location bar, sub-navbar aur category nav ke liye base layout */
.location-bar {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.loc-desktop {
    display: none;
}

.loc-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sched-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sched-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--card-soft);
    display: grid;
    place-items: center;
    color: var(--accent-dark);
}

.sched-title {
    display: block;
    font-weight: 600;
    font-size: 0.76rem;
}

.sched-loc {
    font-size: 0.77rem;
    color: var(--muted);
}

.sub-navbar {
    display: none;
}

/* Category navigation strip ke liye styles */
.category-nav {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 249, 239, 0.92));
    position: relative;
    overflow: hidden;
}

.category-scroll {
    display: none;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

#subcategoryContainer {
    margin-top: 0;
    display: none;
}

#subcategoryContainer.has-items {
    display: flex;
}

.category-chip {
    min-width: 76px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 6px 6px 8px;
    background: var(--card);
    font-size: 0.72rem;
    white-space: nowrap;
    color: var(--muted);
    transition: all 0.22s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.category-chip.active {
    background: linear-gradient(135deg, #dff3cf, #cfeab9);
    border-color: #9cc67b;
    color: #214819;
    font-weight: 600;
    box-shadow: 0 10px 22px rgba(103, 145, 70, 0.18);
    transform: translateY(-2px);
}

.cat-panel-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(79, 139, 58, 0.14);
    background: #f3f7ee;
    flex-shrink: 0;
}

main {
    padding: 12px 0 88px;
    box-shadow: var(--shadow-soft);
    border-radius: 0 0 30px 30px;
    min-height: calc(100vh - 120px);
}

#productSections {
    position: relative;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#productSections.is-loading {
    opacity: 0.52;
    transform: translateY(6px);
    pointer-events: none;
}

#productSections.is-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 24px;
    width: 34px;
    height: 34px;
    margin-left: -17px;
    border-radius: 50%;
    border: 3px solid rgba(76, 139, 53, 0.18);
    border-top-color: var(--accent);
    animation: productSectionSpin 0.8s linear infinite;
    z-index: 3;
}

/* Homepage hero/banner section ke liye styles */
.hero-section {
    padding-bottom: 14px;
}

body.catalog-view-active .hero-section,
body.catalog-view-active .services-section {
    display: none;
}

body.catalog-view-active .category-nav {
    display: none;
}

body.catalog-view-active #productSections {
    padding-top: 8px;
}

body.catalog-view-active .product-catalog-section .container {
    background: linear-gradient(180deg, #ffffff, #f8fbf4);
    border: 1px solid rgba(216, 230, 207, 0.95);
    border-radius: 28px;
    padding: 20px 18px;
    box-shadow: 0 20px 38px rgba(60, 86, 46, 0.08);
}

body.catalog-view-active .product-catalog-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.catalog-view-active .product-catalog-section .product-card {
    border-radius: 18px;
}

body.catalog-view-active .product-catalog-section .product-img-container,
body.catalog-view-active .product-catalog-section .product-image {
    height: 150px;
}

body.catalog-view-active .product-catalog-section .product-title {
    font-size: 0.86rem;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    margin: 10px 0 14px;
}

.catalog-tool-btn,
.catalog-sort-select {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7e5cf;
    border-radius: 14px;
    background: #fff;
    min-height: 42px;
    padding: 0 12px;
    color: #35552c;
    box-shadow: 0 6px 14px rgba(57, 86, 45, 0.06);
}

.catalog-tool-btn {
    justify-content: center;
    font-weight: 700;
}

.catalog-tool-btn.active {
    background: #eef8e7;
    border-color: #9bc37f;
}

.catalog-sort-select select {
    border: none;
    background: transparent;
    width: 100%;
    font: inherit;
    color: inherit;
    outline: none;
}

.catalog-filter-panel {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: -2px 0 14px;
}

.catalog-filter-panel.open {
    display: grid;
}

.catalog-filter-chip,
.catalog-filter-clear {
    border: 1px solid #dbe7d4;
    background: #fff;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #45613f;
}

.catalog-filter-chip.active {
    background: #edf8e6;
    border-color: #9bc37f;
    color: #27501d;
}

.hero-slide {
    position: relative;
    min-height: 172px;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 16px;
    color: #fff;
    box-shadow: 0 22px 40px rgba(29, 46, 23, 0.18);
}

.hero-tag {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 0.65rem;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.hero-content h2 {
    max-width: 76%;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 5px;
}

.hero-content p {
    max-width: 76%;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 14px;
    background: #d0f0c2;
    color: #1f4515;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-deco {
    display: none;
}

.swiper-button-prev,
.swiper-button-next {
    display: none;
}

.swiper-pagination-bullet {
    background: #b7c5b2;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}

.services-section {
    display: none;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-card {
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    box-shadow: var(--shadow-card);
}

.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
}

.service-info h4 {
    font-size: 0.8rem;
    line-height: 1.2;
}

.service-info p {
    font-size: 0.68rem;
    color: var(--muted);
}

.service-arrow {
    color: #95a390;
    font-size: 0.72rem;
}

.product-section {
    padding: 10px 0 2px;
}

.frequently-bought-section {
    padding-top: 0;
}

.frequently-bought-section .container {
    background:
        radial-gradient(circle at top right, rgba(255, 232, 160, 0.32), transparent 24%),
        linear-gradient(180deg, #fffdf6, #fff8e5);
    border: 1px solid #f0e5b9;
    border-radius: 26px;
    padding: 18px;
    box-shadow: 0 18px 34px rgba(105, 93, 34, 0.08);
}

.best-deals-section {
    padding-top: 12px;
}

.more-savings-section {
    padding-top: 12px;
}

.best-deals-section .container {
    background:
        radial-gradient(circle at top left, rgba(255, 196, 134, 0.24), transparent 26%),
        linear-gradient(180deg, #fffdf6, #fff6df);
}

.more-savings-section .container {
    background:
        radial-gradient(circle at right top, rgba(185, 223, 161, 0.28), transparent 26%),
        linear-gradient(180deg, #fffdf5, #f9f6e5);
}

.section-emoji {
    margin-right: 6px;
}

.subcategory-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}

.subcategory-scroll::-webkit-scrollbar {
    display: none;
}

.subcategory-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 244, 0.92));
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 12px 7px 8px;
    font-size: 0.74rem;
    white-space: nowrap;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.subcategory-chip:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 24px rgba(82, 103, 66, 0.12);
}

.subcategory-chip.active {
    background: linear-gradient(135deg, #e6f4db, #d6edc7);
    border-color: #a8cf8d;
    color: #2a5a1d;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(96, 137, 66, 0.14);
    transform: translateY(-1px);
}

.subcategory-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(79, 139, 58, 0.18);
    background: #f3f7ee;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.subcategory-chip:hover .subcategory-thumb,
.subcategory-chip.active .subcategory-thumb {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(96, 137, 66, 0.18);
}

.subcategory-chip-label {
    display: inline-block;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-sub {
    font-size: 0.73rem;
    color: var(--muted);
}

.product-catalog-header {
    align-items: center;
    gap: 12px;
}

.animated-product-grid {
    animation: productGridReveal 0.32s ease;
}

.animated-product-grid.expanded .product-card,
.animated-product-grid.limited .product-card {
    animation: productCardLift 0.32s ease;
}

.view-all {
    font-size: 0.73rem;
    color: #397127;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(214, 226, 203, 0.9);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.featured-product-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.featured-product-row::-webkit-scrollbar {
    height: 8px;
}

.featured-product-row::-webkit-scrollbar-thumb {
    background: rgba(144, 136, 76, 0.35);
    border-radius: 999px;
}

.featured-product-row .product-card {
    min-height: 100%;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(233, 228, 203, 0.92);
    background: var(--card);
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 34px rgba(71, 88, 39, 0.13);
    border-color: #d6e4ca;
}

.discount-badge,
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.discount-badge {
    background: linear-gradient(135deg, #ff3b30, #ff1a1a);
    color: #fff;
}

.product-badge {
    position: static;
    display: inline-flex;
    margin: 6px 0 4px;
    background: transparent;
    color: #6c7759;
    padding: 0;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    right: auto;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: #8e9c89;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(76, 84, 48, 0.12);
}

.wishlist-btn.active {
    color: var(--danger);
}

.product-img-container {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #fbfbf7);
    height: 165px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 165px;
    object-fit: contain;
    background: transparent;
}

.product-title {
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 600;
    min-height: 3.2em;
    margin-bottom: 6px;
}

.product-subcategory {
    font-size: 0.75rem;
    color: #5a6650;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.old-price {
    font-size: 0.86rem;
    color: #bcc6ba;
    text-decoration: line-through;
}

.save-tag {
    font-size: 0.68rem;
    color: #8f9989;
    margin-bottom: 10px;
    min-height: 1.2em;
}

.card-actions {
    margin-top: auto;
}

.add-btn,
.qty-controls {
    width: 100%;
    min-height: 36px;
}

.add-btn {
    border: none;
    background: linear-gradient(135deg, #11952d, #0d7d23);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.snap-add-btn {
    border-radius: 14px;
    min-height: 44px;
    letter-spacing: 0.08em;
}

@keyframes productGridReveal {
    from {
        opacity: 0.35;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes productCardLift {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes productSectionSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.skeleton-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px;
    background: var(--card);
    height: 100%;
}

.skeleton-img {
    height: 165px;
    border-radius: 18px;
    background: var(--card-soft);
    margin-bottom: 12px;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-text {
    height: 14px;
    border-radius: 6px;
    background: var(--card-soft);
    margin-bottom: 8px;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-btn {
    height: 36px;
    border-radius: 18px;
    background: var(--card-soft);
    margin-top: 14px;
    animation: skeletonPulse 1.5s infinite ease-in-out;
}

@keyframes skeletonPulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.qty-controls {
    border: 1px solid #c7dcbc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 14px;
    min-height: 44px;
    background: #f6fbf2;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 1rem;
    color: #3d6f30;
}

.qty-num {
    font-weight: 600;
    font-size: 0.82rem;
}

.empty-state,
.empty-cart {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    text-align: center;
    padding: 24px 16px;
    color: var(--muted);
}

.empty-icon,
.empty-cart-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.reset-btn {
    margin-top: 10px;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--card-soft);
    color: #3c6a2f;
    font-size: 0.78rem;
}

.main-footer {
    padding: 12px 0 90px;
}

.footer-grid {
    display: grid;
    gap: 10px;
}

.footer-col {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 12px;
}

.footer-col h3 {
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 3px;
    font-size: 0.73rem;
    color: var(--muted);
}

.footer-col p {
    font-size: 0.73rem;
    color: var(--muted);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    color: #587e4d;
}

.footer-bottom {
    text-align: center;
    font-size: 0.67rem;
    color: #82907d;
    padding-top: 10px;
}

/* Cart drawer, cart overlay aur cart items ke liye styles */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 26, 10, 0.34);
    opacity: 0;
    visibility: hidden;
    transition: 0.28s;
    z-index: 900;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw, 360px);
    height: 100dvh;
    background: #f8fbf5;
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 901;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-left: 1px solid var(--line);
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header,
.cart-footer {
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header button {
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf4e8;
}

.cart-items {
    padding: 10px;
    overflow-y: auto;
    display: grid;
    gap: 9px;
}

.cart-item {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
}

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

.cart-item-name {
    font-size: 0.76rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-qty-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f2f8ed;
    border-radius: 999px;
    padding: 2px 4px;
}

.cart-remove {
    border: none;
    background: transparent;
    color: #b35e52;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.checkout-btn {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 11px;
    background: linear-gradient(135deg, #71a95c, #4f813d);
    color: #fff;
    font-weight: 700;
}

/* Fixed mobile bottom navbar ka main placement aur layout */
.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: min(calc(100% - 22px), 404px);
    border-radius: 22px;
    background: rgba(251, 254, 249, 0.92);
    border: 1px solid #cfdbc9;
    box-shadow: 0 16px 28px rgba(44, 68, 35, 0.2);
    backdrop-filter: blur(8px);
    z-index: 700;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 6px;
}

.mob-nav-item {
    border: none;
    background: transparent;
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #8b9886;
    font-size: 0.66rem;
    padding: 6px 2px;
    border-radius: 14px;
}

.mob-nav-item i {
    font-size: 0.96rem;
}

.mob-nav-item span {
    white-space: nowrap;
}

.mob-nav-item.active {
    background: #dff0d6;
    color: #2f5f22;
    font-weight: 600;
}

.cat-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 20, 9, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s;
    z-index: 710;
}

.cat-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cat-panel {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 110%);
    bottom: 0;
    width: min(100%, 430px);
    max-height: 80dvh;
    background: #f8fbf5;
    border-radius: 24px 24px 0 0;
    z-index: 711;
    transition: transform 0.26s ease;
    display: grid;
    grid-template-rows: auto 1fr;
}

.cat-panel.open {
    transform: translate(-50%, 0);
}

.cat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.cat-panel-close {
    border: none;
    background: #eef5e8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.cat-panel-list {
    overflow-y: auto;
    padding: 10px 12px 24px;
    display: grid;
    gap: 7px;
}

.cat-panel-group {
    display: grid;
    gap: 8px;
}

.cat-panel-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 9px 10px;
    background: #fff;
    text-align: left;
}

.cat-panel-item.active-cat {
    border-color: #bcd9ad;
    background: #e8f4e2;
}

.cat-panel-sublist {
    display: grid;
    gap: 6px;
    padding-left: 14px;
}

.cat-panel-subitem {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2ecdb;
    border-radius: 12px;
    padding: 8px 10px;
    background: #fbfdf9;
    text-align: left;
}

.cat-panel-subitem.active-subcat {
    border-color: #bcd9ad;
    background: #f0f8eb;
}

.cat-panel-subthumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.cat-panel-subname {
    font-size: 0.86rem;
    color: #24401f;
}

.cat-panel-toggle {
    width: 100%;
    border: 1px dashed #c9d9c0;
    background: #f7fbf3;
    color: #3b6d2d;
    border-radius: 14px;
    min-height: 44px;
    font-weight: 600;
    font-size: 0.82rem;
    margin-top: 10px;
}

.signup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 31, 16, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s;
    z-index: 960;
}

.signup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.signup-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -44%) scale(0.98);
    width: min(calc(100% - 24px), 420px);
    background: #f8fbf5;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 42px rgba(22, 36, 16, 0.25);
    z-index: 961;
    opacity: 0;
    visibility: hidden;
    transition: 0.24s;
}

.signup-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.signup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 8px;
}

.signup-header h3 {
    font-size: 1rem;
}

.auth-mode-switch {
    margin: 0 14px;
    padding: 4px;
    background: #edf5e7;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.auth-mode-btn {
    border: none;
    border-radius: 999px;
    min-height: 34px;
    background: transparent;
    color: #55714c;
    font-weight: 700;
    font-size: 0.82rem;
}

.auth-mode-btn.active {
    background: #fff;
    color: #2f5724;
    box-shadow: 0 5px 12px rgba(49, 75, 41, 0.12);
}

.signup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #eaf2e4;
    color: #45693a;
}

.signup-form {
    padding: 6px 12px 10px;
    display: none;
    gap: 7px;
}

.signup-form.active {
    display: grid;
}

.signup-field {
    display: grid;
    gap: 3px;
}

.signup-field label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #3a4f34;
}

.signup-field input {
    height: 36px;
    border: 1px solid #cbdbbf;
    border-radius: 10px;
    padding: 0 10px;
    outline: none;
    background: #fff;
    font-size: 0.82rem;
}

.signup-field input:focus {
    border-color: #97bc89;
    box-shadow: 0 0 0 3px rgba(152, 188, 137, 0.22);
}

.signup-check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.72rem;
    color: #596d53;
}

.signup-check input {
    margin-top: 2px;
}

.field-error {
    font-size: 0.66rem;
    color: #c24338;
    min-height: 0.85em;
}

.signup-submit {
    border: none;
    border-radius: 999px;
    min-height: 36px;
    background: linear-gradient(135deg, #6da359, #4a7b3a);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.auth-switch-link {
    border: none;
    background: transparent;
    color: #3f6f33;
    font-weight: 600;
    font-size: 0.78rem;
    text-align: left;
    padding: 2px 0 0;
}

.location-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 31, 16, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.24s;
    z-index: 962;
}

.location-overlay.show {
    opacity: 1;
    visibility: visible;
}

.location-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -44%) scale(0.98);
    width: min(calc(100% - 24px), 420px);
    background: #f8fbf5;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 42px rgba(22, 36, 16, 0.25);
    z-index: 963;
    opacity: 0;
    visibility: hidden;
    transition: 0.24s;
}

.location-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.location-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 18px 10px;
}

.location-modal-header h3 {
    font-size: 1.02rem;
    color: #14852c;
    margin-bottom: 6px;
}

.location-modal-subtext {
    font-size: 0.8rem;
    color: #8a9086;
}

.location-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #eaf2e4;
    color: #45693a;
}

.location-modal-body {
    display: grid;
    gap: 10px;
    padding: 0 18px 18px;
}

.location-modal-body label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #3a4f34;
}

.location-modal-body input,
.location-modal-body select {
    height: 52px;
    border: 1px solid #cbdbbf;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #fff;
    font-size: 0.96rem;
    color: #242b22;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7b8278 50%), linear-gradient(135deg, #7b8278 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.location-modal-body input:focus,
.location-modal-body select:focus {
    border-color: #97bc89;
    box-shadow: 0 0 0 3px rgba(152, 188, 137, 0.22);
}

.location-modal-body select:disabled {
    color: #9aa59a;
    background-color: #f4f6f3;
}

.location-modal-actions {
    margin-top: 10px;
}

.location-cancel-btn,
.location-save-btn {
    border: none;
    border-radius: 999px;
    min-height: 54px;
    padding: 0 14px;
    font-weight: 600;
}

.location-cancel-btn {
    background: #eaf2e4;
    color: #496a3d;
}

.location-save-btn {
    width: 100%;
    background: linear-gradient(135deg, #6da359, #4a7b3a);
    color: #fff;
    font-size: 0.96rem;
}

.toast-notification {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    bottom: 80px;
    background: rgba(28, 45, 22, 0.94);
    color: #f0f7ed;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.73rem;
    opacity: 0;
    transition: 0.22s;
    z-index: 950;
    max-width: calc(100% - 32px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.7) 50%, transparent 90%);
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes badge-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.16);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 370px) {
    .logo-desktop {
        display: none;
    }

    .mobile-brand-text small {
        display: none;
    }

    .grid-layout,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(223, 242, 214, 0.92), transparent 30%),
            linear-gradient(180deg, #eef7e8 0%, #f7fbf2 100%);
    }

    .container {
        padding: 0 12px;
    }

    .main-header,
    .location-bar,
    .category-nav,
    main {
        width: min(100%, 390px);
        background: #f7fbf2;
    }

    main {
        min-height: auto;
        padding-bottom: 26px;
    }

    .main-header {
        padding: 10px 0 6px;
        border-bottom: none;
        box-shadow: none;
    }

    .header-content {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .mobile-brand {
        max-width: 110px;
        gap: 4px;
    }

    .mobile-brand-badge {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        box-shadow: none;
    }

    .mobile-brand-text strong {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .mobile-brand-text small {
        display: none;
    }

    .search-bar {
        background: #ffffff;
        border: 1px solid #dbe8d2;
        box-shadow: 0 8px 18px rgba(86, 111, 72, 0.08);
        padding: 4px;
    }

    .search-bar input {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .search-bar button,
    .action-item {
        width: 34px;
        height: 34px;
    }

    .action-item {
        padding: 0;
        box-shadow: 0 8px 18px rgba(86, 111, 72, 0.08);
    }

    .location-bar {
        padding: 0 0 6px;
        border-bottom: none;
    }

    .loc-mobile {
        background: linear-gradient(135deg, #2f8f2f, #58b538);
        border-radius: 0 0 18px 18px;
        padding: 12px 12px 10px;
        color: #fff;
        box-shadow: 0 16px 30px rgba(56, 128, 46, 0.24);
    }

    .sched-left {
        gap: 8px;
    }

    .sched-icon {
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }

    .sched-title,
    .sched-loc,
    .sched-loc i,
    .sched-arrow {
        color: #fff;
    }

    .sched-title {
        font-size: 0.7rem;
    }

    .sched-loc {
        font-size: 0.62rem;
        opacity: 0.9;
    }

    .category-nav {
        padding: 10px 0 8px;
        border-bottom: none;
        background: #f7fbf2;
    }

    .subcategory-scroll {
        gap: 10px;
        padding: 0 2px;
    }

    .subcategory-chip {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-width: 58px;
        padding: 8px 6px;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #e4eddc;
        box-shadow: 0 10px 18px rgba(84, 102, 69, 0.08);
        font-size: 0.6rem;
        text-align: center;
    }

    .subcategory-chip.active {
        background: linear-gradient(180deg, #eff9e7, #ddf1cc);
        box-shadow: 0 12px 20px rgba(92, 146, 64, 0.16);
    }

    .subcategory-thumb {
        width: 30px;
        height: 30px;
        border-radius: 12px;
    }

    .subcategory-chip-label {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.6rem;
        line-height: 1.1;
    }

    main {
        padding: 10px 0 96px;
        box-shadow: none;
        border-radius: 0;
        min-height: auto;
    }

    .hero-section {
        padding-bottom: 12px;
    }

    .hero-slide {
        min-height: 142px;
        border-radius: 22px;
        padding: 14px;
        box-shadow: 0 16px 26px rgba(62, 107, 48, 0.18);
    }

    .hero-tag {
        font-size: 0.54rem;
        padding: 4px 7px;
        margin-bottom: 7px;
        background: rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.22);
    }

    .hero-content h2 {
        max-width: 55%;
        font-size: 0.88rem;
        line-height: 1.15;
        margin-bottom: 5px;
    }

    .hero-content p {
        max-width: 58%;
        font-size: 0.58rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .shop-now-btn {
        padding: 7px 12px;
        font-size: 0.66rem;
        background: #ffd44d;
        color: #214819;
        box-shadow: 0 8px 18px rgba(255, 212, 77, 0.22);
    }

    .frequently-bought-section .container,
    .best-deals-section .container,
    .more-savings-section .container {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .section-header {
        margin-bottom: 10px;
        align-items: center;
    }

    .section-header h2 {
        font-size: 0.95rem;
    }

    .view-all {
        padding: 4px 9px;
        font-size: 0.62rem;
        background: #f1f7ea;
        border: 1px solid #d9e8d0;
        color: #3f8a2a;
    }

    .featured-product-row,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .product-card {
        border-radius: 18px;
        padding: 10px;
        border: 1px solid #e7eedf;
        box-shadow: 0 14px 22px rgba(84, 102, 69, 0.08);
    }

    .wishlist-btn {
        width: 28px;
        height: 28px;
        top: 8px;
        left: 8px;
    }

    .discount-badge {
        top: 8px;
        right: 8px;
        padding: 4px 7px;
        font-size: 0.58rem;
        border-radius: 9px;
        background: #ff9d2d;
        color: #fff;
    }

    .product-img-container,
    .product-image {
        height: 92px;
        border-radius: 14px;
    }

    .product-img-container {
        margin-bottom: 8px;
        background: linear-gradient(180deg, #fefefe, #f7faf4);
    }

    .product-badge,
    .product-subcategory,
    .save-tag {
        display: none;
    }

    .product-title {
        font-size: 0.66rem;
        line-height: 1.25;
        min-height: 2.5em;
        margin-bottom: 4px;
    }

    .product-price {
        gap: 4px;
        margin-bottom: 8px;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .old-price {
        font-size: 0.6rem;
    }

    .add-btn,
    .qty-controls {
        min-height: 34px;
        border-radius: 10px;
    }

    .snap-add-btn {
        min-height: 34px;
        border-radius: 10px;
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .mobile-bottom-nav {
        bottom: 10px;
        width: min(calc(100% - 22px), 390px);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid #dce7d5;
        box-shadow: 0 18px 34px rgba(65, 90, 51, 0.16);
        padding: 8px 6px;
    }

    .mob-nav-item {
        font-size: 0.58rem;
        color: #7c8877;
        padding: 6px 2px;
    }

    .mob-nav-item.active {
        background: transparent;
        color: #2d7e25;
    }

    .mob-nav-item i {
        font-size: 0.92rem;
    }
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .container {
        width: min(100%, 1240px);
        padding: 0 24px;
    }

    .main-header,
    .location-bar,
    .sub-navbar,
    .category-nav,
    main,
    .main-footer {
        width: 100%;
        max-width: 1240px;
        border-left: none;
        border-right: none;
    }

    body::before {
        opacity: 0.16;
    }

    body {
        padding: 18px 18px 0;
    }

    .main-header {
        padding: 14px 0;
        border-radius: 30px 30px 0 0;
    }

    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }

    .mobile-brand {
        display: none;
    }

    .logo-desktop {
        display: block;
    }

    .desktop-brand-badge {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .desktop-brand-text strong {
        font-size: 1.7rem;
    }

    .desktop-brand-text small {
        font-size: 0.68rem;
    }

    .search-bar {
        padding: 8px;
        box-shadow: 0 18px 34px rgba(62, 88, 47, 0.08);
    }

    .search-bar input {
        font-size: 0.98rem;
        padding: 11px 14px;
    }

    .search-bar button {
        width: 40px;
        height: 40px;
    }

    .action-item {
        width: auto;
        height: auto;
        padding: 9px 14px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
    }

    .action-item span {
        display: inline;
        font-size: 0.88rem;
        font-weight: 600;
    }

    .logout-btn.show {
        display: inline-flex;
    }

    .loc-desktop {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.92rem;
        color: var(--muted);
    }

    .loc-desktop input {
        border: none;
        background: transparent;
        min-width: 280px;
        outline: none;
        color: var(--text);
        font-size: 0.9rem;
    }

    .loc-desktop input.invalid-location-input {
        border-radius: 8px;
        box-shadow: 0 0 0 2px rgba(194, 67, 56, 0.35);
        background: #fff4f2;
        padding: 4px 8px;
    }

    .loc-mobile {
        display: none;
    }

    .sub-navbar {
        display: none;
        border-bottom: 1px solid var(--line);
    }

    .sub-nav-links {
        display: flex;
        align-items: center;
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 12px 0;
        font-size: 0.86rem;
        color: #4b5647;
    }

    .sub-nav-links .highlight {
        color: var(--accent-dark);
        font-weight: 700;
    }

    .category-nav {
        padding: 16px 0 18px;
    }

    .category-chip {
        font-size: 0.84rem;
        padding: 10px 16px;
    }

    main {
        padding: 18px 0 36px;
        box-shadow: 0 28px 60px rgba(50, 72, 41, 0.12);
        border-radius: 0 0 34px 34px;
        min-height: auto;
    }

    .hero-slide {
        min-height: 320px;
        padding: 30px;
        border-radius: 34px;
    }

    .hero-tag {
        font-size: 0.78rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .hero-content h2 {
        max-width: 56%;
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-content p {
        max-width: 56%;
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .shop-now-btn {
        font-size: 0.92rem;
        padding: 11px 18px;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }

    .grid-layout {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        padding: 14px;
    }

    .service-info h4 {
        font-size: 0.95rem;
    }

    .service-info p {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-sub {
        font-size: 0.9rem;
    }

    .subcategory-chip {
        font-size: 0.84rem;
        padding: 9px 15px;
    }

    .view-all {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    body.catalog-view-active .product-catalog-section .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px;
    }

    .featured-product-row {
        grid-auto-columns: minmax(236px, 1fr);
    }

    .product-card {
        padding: 14px;
    }

    .product-image {
        height: 210px;
    }

    .product-img-container {
        min-height: 210px;
    }

    .product-title {
        font-size: 1.02rem;
    }

    body.catalog-view-active .product-catalog-section .product-img-container,
    body.catalog-view-active .product-catalog-section .product-image {
        height: 190px;
        min-height: 190px;
    }

    body.catalog-view-active .product-catalog-section .product-title {
        font-size: 0.92rem;
    }

    .current-price {
        font-size: 1.35rem;
    }

    .old-price,
    .save-tag {
        font-size: 0.88rem;
    }

    .add-btn {
        font-size: 0.92rem;
    }

    .main-footer {
        padding-bottom: 26px;
        border-radius: 0 0 34px 34px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .mobile-bottom-nav,
    .cat-panel,
    .cat-panel-overlay,
    .mob-back-btn {
        display: none !important;
    }

    .toast-notification {
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .product-page {
        padding-bottom: 98px;
    }

    .product-page-details {
        padding-bottom: 0;
    }

    .product-page-action-bar {
        position: fixed;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
        width: min(100%, 430px);
        transform: translateX(-50%);
        padding: 10px 0 0;
        background: linear-gradient(180deg, rgba(247, 251, 242, 0), #f7fbf2 28%);
        box-shadow: none;
        z-index: 720;
    }

    .product-page-action-bar .footer-content {
        padding: 0 14px;
    }

    body {
        padding: 0;
        background:
            radial-gradient(circle at 18% 12%, rgba(224, 240, 213, 0.82), transparent 26%),
            radial-gradient(circle at 82% 84%, rgba(247, 225, 178, 0.36), transparent 24%),
            linear-gradient(180deg, #edf6e6 0%, #f7fbf2 100%);
    }

    .container {
        width: min(100%, 430px);
        padding: 0 14px;
    }

    .main-header,
    .location-bar,
    .sub-navbar,
    .category-nav,
    main,
    .main-footer {
        width: min(100%, 430px);
        max-width: none;
        margin: 0 auto;
        border-left: none;
        border-right: none;
        background: #f7fbf2;
    }

    .main-header {
        padding: 10px 0 6px;
        border-radius: 26px 26px 0 0;
        box-shadow: 0 14px 30px rgba(65, 90, 51, 0.1);
    }

    .header-content {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
    }

    .mobile-brand {
        display: inline-flex;
        max-width: 74px;
        gap: 5px;
    }

    .mobile-brand-badge {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        box-shadow: none;
    }

    .mobile-brand-text strong {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .mobile-brand-text small,
    .logo-desktop,
    .loc-desktop,
    .sub-navbar {
        display: none;
    }

    .search-bar {
        background: #ffffff;
        border: 1px solid #dbe8d2;
        box-shadow: 0 8px 18px rgba(86, 111, 72, 0.08);
        padding: 4px;
    }

    .search-bar input {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .search-bar button,
    .action-item {
        width: 34px;
        height: 34px;
    }

    .action-item {
        padding: 0;
        display: grid;
        place-items: center;
        box-shadow: 0 8px 18px rgba(86, 111, 72, 0.08);
    }

    .action-item span {
        display: none;
    }

    .logout-btn.show {
        display: grid;
    }

    .location-bar {
        padding: 0 0 6px;
        border-bottom: none;
    }

    .loc-mobile {
        display: flex;
        background: linear-gradient(135deg, #2f8f2f, #58b538);
        border-radius: 0 0 18px 18px;
        padding: 12px 12px 10px;
        color: #fff;
        box-shadow: 0 16px 30px rgba(56, 128, 46, 0.24);
    }

    .category-nav {
        padding: 10px 0 8px;
        border-bottom: none;
        background: #f7fbf2;
    }

    .subcategory-scroll {
        gap: 10px;
        padding: 0 2px;
    }

    .subcategory-chip {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-width: 58px;
        padding: 8px 6px;
        border-radius: 18px;
        background: #fff;
        border: 1px solid #e4eddc;
        box-shadow: 0 10px 18px rgba(84, 102, 69, 0.08);
        font-size: 0.6rem;
        text-align: center;
    }

    .hero-section {
        padding-bottom: 12px;
    }

    .featured-product-row,
    .product-grid,
    body.catalog-view-active .product-catalog-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    main {
        min-height: auto;
        padding-bottom: 26px;
        border-radius: 0 0 26px 26px;
    }

    .main-footer {
        padding: 12px 0 90px;
        border-radius: 0 0 26px 26px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mobile-bottom-nav {
        display: grid !important;
        bottom: 10px;
        width: min(calc(100% - 22px), 390px);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid #dce7d5;
        box-shadow: 0 18px 34px rgba(65, 90, 51, 0.16);
        padding: 8px 6px;
    }

    .cat-panel {
        display: grid;
    }

    .cat-panel-overlay {
        display: block;
    }

    .mob-back-btn {
        display: none;
    }

    .toast-notification {
        bottom: 80px;
    }
}

/* Final Premium Overrides */
.category-scroll {
    display: flex !important;
}

.category-chip {
    min-width: 70px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 18px !important;
    padding: 8px 6px !important;
    backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.52) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.category-chip .category-label {
    font-size: 0.65rem;
    font-weight: 600;
}

.category-chip .cat-thumb {
    width: 38px !important;
    height: 38px !important;
}

.category-chip.active {
    transform: translateY(-2px) scale(1.03) !important;
}

.product-card {
    border-radius: 18px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.product-card .product-img-container {
    position: relative;
}

.product-card .product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 46%);
    z-index: 1;
    pointer-events: none;
}

.mobile-bottom-nav {
    border-radius: 18px !important;
}

.mob-nav-item {
    border-radius: 999px !important;
    transition: all 0.3s ease !important;
}

.mob-nav-item.active {
    background: linear-gradient(135deg, #2d8d2b, #1e721f) !important;
    color: #fff !important;
}

.floating-cart-bar.show {
    display: flex !important;
}

.product-sheet.open {
    transform: translate(-50%, 0) !important;
}

#voiceSearchBtn {
    background: rgba(236, 247, 232, 0.95) !important;
}

/* Checkout Modal */
/* Checkout modal, form aur order success popup ke liye styles */
.checkout-overlay,
.order-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 23, 14, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.checkout-overlay.show,
.order-success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.checkout-modal,
.order-success-box {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -48%) scale(0.96);
    background: linear-gradient(180deg, #fbfdf8 0%, #f4f8ef 100%);
    border: 1px solid #e4eddc;
    border-radius: 20px;
    padding: 14px;
    width: min(92%, 350px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 22px 44px rgba(19, 38, 12, 0.18);
}

.checkout-modal.open,
.order-success-box.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    max-height: min(88vh, 760px);
    overflow-y: auto;
    padding-bottom: 18px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.checkout-header h2 {
    font-size: 1rem;
    font-weight: 800;
    color: #28561e;
}

.checkout-header .close-btn {
    border: none;
    font-size: 1rem;
    background: #eef5e7;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #68845f;
}

.checkout-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.checkout-step {
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf4e8;
    color: #64805b;
    font-size: 0.64rem;
    font-weight: 700;
}

.checkout-step.active {
    background: #dff0d0;
    color: #2f5b24;
}

.checkout-delivery-card {
    background: #fff;
    border: 1px solid #e3ecdb;
    border-radius: 16px;
    padding: 10px 11px;
    margin-bottom: 10px;
    box-shadow: 0 6px 12px rgba(26, 48, 18, 0.05);
}

.checkout-delivery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.checkout-delivery-top strong {
    display: block;
    font-size: 0.82rem;
    color: #23491b;
}

.checkout-delivery-top p {
    font-size: 0.67rem;
    color: #70816b;
    margin-top: 1px;
}

.checkout-delivery-top i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #edf7e7;
    color: #3d7d2c;
    font-size: 0.82rem;
}

.checkout-delivery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkout-delivery-tags span {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f5f8f2;
    color: #5f7260;
    font-size: 0.64rem;
    border: 1px solid #e5ede0;
}

.checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(135deg, #e2f6c9, #cfeeae);
    border-radius: 16px;
    margin-bottom: 12px;
}

.checkout-summary p {
    font-weight: 700;
    color: #305920;
    font-size: 0.76rem;
}

.checkout-summary h3 {
    font-size: 1.18rem;
    color: #28561e;
    font-weight: 800;
}

.checkout-form {
    display: grid;
    gap: 8px;
}

.checkout-field {
    display: grid;
    gap: 4px;
}

.checkout-field label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #48623f;
}

.checkout-note {
    font-size: 0.62rem;
    color: #7d8c75;
}

.checkout-payment-options {
    display: grid;
    gap: 8px;
}

.checkout-payment-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #dce7d3;
    background: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.checkout-payment-option.active {
    border-color: #96c17d;
    background: #f4fbef;
    box-shadow: 0 6px 14px rgba(73, 122, 51, 0.08);
}

.checkout-payment-option input {
    margin: 0;
    accent-color: #2c8f36;
    width: 16px;
    height: 16px;
}

.checkout-payment-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.checkout-payment-copy strong {
    font-size: 0.78rem;
    color: #274120;
    line-height: 1.2;
}

.checkout-payment-copy small {
    font-size: 0.64rem;
    color: #7a8874;
    line-height: 1.3;
}

.checkout-review-card {
    background: #fff;
    border: 1px solid #e1ead9;
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.checkout-review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.checkout-review-head strong {
    font-size: 0.76rem;
    color: #274120;
}

.checkout-review-head span {
    font-size: 0.64rem;
    color: #7a8874;
}

.checkout-item-list {
    display: grid;
    gap: 6px;
}

.checkout-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e7eee1;
}

.checkout-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-item-copy {
    display: grid;
    gap: 2px;
}

.checkout-item-copy strong {
    font-size: 0.71rem;
    color: #33432f;
    line-height: 1.3;
}

.checkout-item-copy span {
    font-size: 0.62rem;
    color: #7d8c75;
}

.checkout-item-row b {
    font-size: 0.7rem;
    color: #24411e;
}

.checkout-bill {
    display: grid;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #edf2e8;
}

.checkout-bill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.69rem;
    color: #66735f;
}

.checkout-bill-row strong {
    color: #274120;
}

.checkout-bill-row.total {
    font-size: 0.78rem;
    font-weight: 800;
    color: #24411e;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d7e4ce;
    border-radius: 12px;
    background: #fff;
    font-size: 0.82rem;
    font-family: inherit;
    color: #253320;
    outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
    border-color: #7eb164;
    box-shadow: 0 0 0 3px rgba(126, 177, 100, 0.14);
}

.checkout-form textarea {
    resize: none;
    min-height: 60px;
}

.checkout-submit-btn {
    position: sticky;
    bottom: 12px;
    border: none;
    background: linear-gradient(135deg, #169734, #0f7e28);
    color: #fff;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 126, 40, 0.22);
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    z-index: 5;
    text-align: center;
    display: block;
}

.checkout-submit-btn:active {
    transform: scale(0.97);
}

/* Order Success */
.order-success-box {
    text-align: center;
    padding: 36px 20px 24px;
}

.success-check-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #189832, #0f7927);
    border-radius: 50%;
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 24px rgba(15, 121, 39, 0.3);
    animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-success-box h2 {
    font-size: 1.6rem;
    color: var(--accent-dark);
    margin-bottom: 6px;
    font-weight: 800;
}

.order-success-box p {
    color: var(--muted);
    margin-bottom: 24px;
}

.order-success-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.order-success-meta span {
    display: inline-flex;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f3f8ef;
    color: #46603d;
    font-size: 0.76rem;
    font-weight: 700;
}

#continueShoppingBtn {
    background: var(--card-soft);
    border: 2px solid transparent;
    color: var(--accent-dark);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

#continueShoppingBtn:active {
    transform: scale(0.95);
    background: var(--line);
}

@keyframes success-pop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ─── PRODUCT PAGE (In-flow Page View) ─── */
/* Product details page aur Add to Cart action bar ke liye styles */
.product-page {
    display: none;
    background: #ffffff;
    min-height: 100vh;
}

.product-page.open {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-breadcrumbs {
    padding: 14px 0;
    font-size: 0.75rem;
    color: #8c9888;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pp-breadcrumbs a {
    color: var(--accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.product-page-hero {
    background: #fff;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    border: 1px solid #f0f4ee;
    margin-bottom: 20px;
}

.product-page-image-container {
    width: 100%;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-page-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.pp-discount {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3b30;
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
}

.pp-pagination {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.pp-pagination .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e0e6dd;
}

.pp-pagination .dot.active {
    background: var(--accent-dark);
    width: 18px;
    border-radius: 4px;
}

.product-page-details {
    padding-bottom: 40px;
}

.pp-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
}

.pp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pp-rating .stars {
    color: #ffb400;
    font-size: 0.8rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #8a9686;
}

.pp-price-section {
    background: #f9fbf8;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #edf2ec;
}

.pp-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pp-current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.pp-old-price {
    font-size: 1rem;
    color: #bcc6ba;
    text-decoration: line-through;
}

.pp-tax-info {
    font-size: 0.7rem;
    color: #8c9888;
    margin-top: 4px;
}

.pp-offers {
    margin-bottom: 24px;
}

.pp-offers h3,
.pp-description h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3e4a39;
}

.offer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px dashed #c6dbbd;
    border-radius: 12px;
    background: #fbfdfa;
}

.offer-card i {
    color: #2e7d32;
    font-size: 1rem;
}

.offer-card span {
    font-size: 0.78rem;
    color: #4b5a45;
    line-height: 1.4;
}

.pp-description p {
    font-size: 0.88rem;
    color: #5d6c57;
    line-height: 1.6;
}

.pp-shipping-info {
    margin-top: 24px;
    padding: 16px;
    background: #fdfdfd;
    border-radius: 14px;
    border: 1px solid #f0f3ef;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-item i {
    font-size: 1.1rem;
    color: #27ae60;
}

.info-item div strong {
    display: block;
    font-size: 0.84rem;
    color: #2d3829;
}

.info-item div span {
    font-size: 0.76rem;
    color: #8a9686;
}

.product-page-action-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
}

.pp-qty-selector {
    flex: 0 0 120px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f8ed;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #dbe8d2;
}

.pp-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    color: #2e7d32;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-qty-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2e7d32;
    min-width: 20px;
    text-align: center;
}

.pp-highlights {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid #f0f3ef;
    border-bottom: 1px solid #f0f3ef;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.highlight-item i {
    font-size: 1.2rem;
    color: var(--accent-dark);
}

.highlight-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #8c9888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.pp-add-btn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #43a047, #1b5e20);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}



.pp-add-btn:active {
    transform: scale(0.97);
    filter: brightness(1.1);
}

/* ─── ACCOUNT PAGE ─── */
/* Account page, orders page aur profile sections ke liye styles */
@media (max-width: 767px) {
    .product-page {
        padding-bottom: 98px;
    }

    .product-page-details {
        padding-bottom: 0;
    }

    .product-page-action-bar {
        position: fixed;
        left: 50%;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
        width: min(100%, 430px);
        transform: translateX(-50%);
        padding: 10px 0 0;
        background: linear-gradient(180deg, rgba(247, 251, 242, 0), #f7fbf2 28%);
        box-shadow: none;
        z-index: 720;
    }

    .product-page-action-bar .footer-content {
        padding: 0 14px;
    }
}

.account-page {
    display: none;
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 80px;
    animation: fadeIn 0.3s ease-out;
}

.account-page.open {
    display: block;
}

.orders-page {
    display: none;
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 80px;
    animation: fadeIn 0.3s ease-out;
}

.orders-page.open {
    display: block;
}

.orders-hero {
    background: linear-gradient(135deg, #255d28, #3f8e3c);
    padding: 24px 20px;
    color: #fff;
}

.orders-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.orders-hero h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.orders-hero span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.orders-content {
    padding-top: 16px;
}

/* Profile Hero */
.acc-hero {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.acc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.acc-user-info {
    flex: 1;
}

.acc-user-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.acc-user-info p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

.acc-edit-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Quick Stats */
.acc-quick-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    margin: 16px;
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.acc-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.acc-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2e7d32;
}

.acc-stat-label {
    font-size: 0.72rem;
    color: #8c9888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acc-stat-divider {
    width: 1px;
    height: 40px;
    background: #f0f3ef;
}

/* Sections */
.acc-section {
    background: #fff;
    margin: 0 16px 16px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.acc-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3829;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-section-title i {
    color: #43a047;
    font-size: 1rem;
}

/* Empty State */
.acc-empty-state {
    text-align: center;
    padding: 20px 0;
    color: #adb9a8;
}

.acc-empty-state i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.acc-empty-state p {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.acc-empty-state small {
    font-size: 0.75rem;
}

/* Wishlist Grid */
.acc-wishlist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.acc-wishlist-card {
    border: 1px solid #f0f3ef;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.acc-wishlist-card:active {
    transform: scale(0.97);
}

.acc-wishlist-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #f9fbf8;
    padding: 8px;
}

.acc-wishlist-card-info {
    padding: 8px;
}

.acc-wishlist-card-info p {
    font-size: 0.72rem;
    color: #3e4a39;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.acc-wishlist-card-info span {
    font-size: 0.8rem;
    font-weight: 800;
    color: #2e7d32;
}

/* Settings */
.acc-settings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.acc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f7f4;
    cursor: pointer;
}

.acc-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.acc-setting-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #3e4a39;
}

.acc-setting-label i {
    color: #43a047;
    width: 18px;
    text-align: center;
}

.acc-setting-value {
    font-size: 0.8rem;
    color: #8c9888;
    font-weight: 500;
}

.acc-footer-grid {
    gap: 12px;
}

.acc-footer-grid .footer-col {
    background: #f9fbf8;
    border-color: #edf3eb;
    padding: 14px;
}

.acc-footer-bottom {
    padding-top: 14px;
}

.acc-help-section {
    background: #f7faf6;
    box-shadow: none;
    border: 1px solid #edf3eb;
}

/* Toggle Switch */
.acc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.acc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.acc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #dde4db;
    border-radius: 99px;
    transition: 0.3s;
    cursor: pointer;
}

.acc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.acc-toggle input:checked+.acc-toggle-slider {
    background: #43a047;
}

.acc-toggle input:checked+.acc-toggle-slider::before {
    transform: translateX(20px);
}

/* Buttons */
.acc-signout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #fff5f5;
    color: #e53935;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    border: 1px solid #ffcdd2;
    transition: background 0.2s;
}

.acc-signout-btn:active {
    background: #ffcdd2;
}

.acc-login-prompt {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #1b5e20, #43a047, #66bb6a);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
    transition: transform 0.2s, filter 0.2s;
    text-align: left;
}

.acc-login-prompt:active {
    transform: scale(0.98);
    filter: brightness(1.08);
}

.acc-login-prompt::before {
    content: '👤';
    font-size: 1.6rem;
    margin-right: 12px;
}

.acc-login-text {
    flex: 1;
}

.acc-login-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.acc-login-text span {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}

.acc-login-prompt i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.acc-login-prompt {
    padding: 16px 18px;
    gap: 12px;
    justify-content: flex-start;
}

.acc-login-prompt::before {
    content: none;
}

.acc-login-text {
    flex: 1;
    min-width: 0;
}

.acc-login-text strong {
    line-height: 1.25;
}

.acc-login-text span {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    opacity: 0.88;
    font-weight: 500;
    line-height: 1.35;
}

.acc-login-prompt i {
    font-size: 1rem;
    opacity: 0.95;
    flex-shrink: 0;
}

.acc-login-prompt i:first-child {
    font-size: 1.15rem;
}

.acc-login-prompt {
    width: auto;
    min-width: 112px;
    margin: 0 auto;
    padding: 11px 18px;
    border-radius: 999px;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.22);
}

.acc-login-prompt span {
    display: inline;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    opacity: 1;
}

.acc-signout-btn {
    width: auto;
    min-width: 112px;
    height: 42px;
    margin: 0 auto 12px;
    padding: 0 18px;
    border-radius: 999px;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.acc-signout-btn i {
    font-size: 1.05rem;
}

/* Order Card */
.acc-order-card {
    border: 1px solid #edf2ec;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.acc-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.acc-order-id {
    font-size: 0.75rem;
    color: #8c9888;
    font-weight: 600;
}

.acc-order-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 99px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}

.acc-order-items {
    font-size: 0.82rem;
    color: #4b5a45;
    margin-bottom: 6px;
}

.acc-order-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8c9888;
}

.acc-order-total {
    font-weight: 700;
    color: #2e7d32;
}

.contact-page {
    padding: 28px 0 42px;
}

.contact-hero-card,
.contact-card {
    background: #fff;
    border: 1px solid #e6eee0;
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(31, 61, 19, 0.08);
}

.contact-hero-card {
    padding: 26px 24px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f6fbf1, #ffffff);
}

.contact-hero-card h1 {
    margin: 6px 0 10px;
    font-size: 2rem;
    color: #21451b;
}

.contact-hero-card p:last-child {
    color: #61705d;
    max-width: 62ch;
}

.contact-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card {
    padding: 20px;
}

.contact-card h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #23471d;
}

.contact-card p,
.contact-help-list {
    color: #5f6d59;
    line-height: 1.6;
}

.contact-card a {
    color: #0f7e28;
    font-weight: 700;
}

.contact-help-list {
    margin: 0;
    padding-left: 18px;
}

/* Final mobile fix: product page Add to Cart bar should stay visible while scrolling */
@media (max-width: 767px) {

    body.product-page-open .mobile-bottom-nav,
    body.product-page-open .floating-cart-bar,
    .product-page.open~.mobile-bottom-nav,
    .product-page.open~.floating-cart-bar {
        display: none !important;
    }

    .product-page.open {
        padding-bottom: calc(var(--product-action-bar-height, 92px) + env(safe-area-inset-bottom, 0px) + 18px) !important;
    }

    .product-page.open .product-page-details {
        padding-bottom: 0 !important;
    }

    .product-page.open .product-page-action-bar {
        position: fixed !important;
        left: 50% !important;
        right: auto !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
        width: min(calc(100% - 20px), 430px) !important;
        transform: translateX(-50%) !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 860 !important;
    }

    .product-page.open .product-page-action-bar .footer-content {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid #dce7d5;
        border-radius: 18px;
        background: rgba(247, 251, 242, 0.98);
        box-shadow: 0 16px 30px rgba(44, 68, 35, 0.18);
        backdrop-filter: blur(10px);
    }

    .product-page.open .pp-qty-selector,
    .product-page.open .pp-add-btn {
        min-height: 52px;
    }
}

/* Catalog layout tuning for cleaner on-screen fit */
body.catalog-view-active .product-catalog-section .container {
    width: min(100%, 1320px);
    padding: 22px 20px 24px;
}

.product-catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-toolbar {
    grid-template-columns: minmax(112px, 140px) minmax(0, 1fr);
    align-items: stretch;
}

.catalog-sort-select {
    min-width: 0;
}

.catalog-sort-select select {
    min-width: 0;
    text-overflow: ellipsis;
}

.catalog-filter-panel {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

body.catalog-view-active .product-catalog-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    align-items: start;
}

body.catalog-view-active .product-catalog-section .product-card {
    min-width: 0;
}

@media (min-width: 992px) {
    body.catalog-view-active .product-catalog-section .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    }
}

@media (max-width: 991px) {
    body.catalog-view-active .product-catalog-section .container {
        width: 100%;
    }
}

@media (max-width: 767px) {
    body.catalog-view-active .product-catalog-section .container {
        padding: 18px 14px 20px;
        border-radius: 24px;
    }

    .product-catalog-header {
        align-items: stretch;
    }

    .product-catalog-header .view-all {
        align-self: flex-start;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .catalog-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.catalog-view-active .product-catalog-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
/* Flipkart-style top header */
.main-header {
    background: linear-gradient(180deg, #55adff 0%, #dff2ff 100%);
    border-bottom: 0;
    box-shadow: none;
    padding: 8px 0 10px;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.top-brand-tab {
    min-height: 36px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-style: italic;
    font-size: 1.08rem;
    text-shadow: 0 1px 2px rgba(0, 48, 160, 0.22);
    white-space: nowrap;
}

.top-brand-tab.active {
    background: transparent;
}

.top-brand-tab i {
    font-size: 1.15rem;
}

.top-brand-tab:not(.active) i {
    color: #ee6b4d;
}

.top-location-row {
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 2px;
    font-size: 0.84rem;
    text-align: left;
}

.top-location-left {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.top-location-action {
    color: #004de6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.top-location-action i {
    font-size: 0.72rem;
}

.main-header .search-container {
    width: 100%;
}

.main-header .search-bar {
    height: 50px;
    border-radius: 10px;
    border: 1.5px solid #2a73ff;
    background: #fff;
    padding: 0 12px;
    gap: 10px;
    box-shadow: none;
}

.main-header .search-bar input {
    font-size: 0.96rem;
    color: #111827;
    padding: 0;
}

.main-header .search-bar input::placeholder {
    color: #111827;
}

.main-header .search-bar button {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent;
    color: #176bff;
    font-size: 1.15rem;
}

.main-header #voiceSearchBtn {
    display: none;
}

.main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.main-header .action-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    box-shadow: none;
    padding: 0;
    font-size: 1.25rem;
}

.main-header .menu-dot-btn {
    font-size: 1.2rem;
}

.main-header .cart-badge {
    display: flex;
    top: -9px;
    right: -11px;
    border-color: #2f7cf0;
}

.location-bar {
    display: none;
}

@media (min-width: 768px) {
    .main-header {
        padding: 10px 0 12px;
    }
}
