 /* ── DESIGN TOKENS ───────────────────────────────────────────────── */
 :root {
     --brand-yellow: #F8CB46;
     --brand-yellow2: #fde047;
     --brand-green: #0C831F;
     --brand-green-lt: #f0fdf4;
     --brand-dark: #0f172a;
     --brand-gray: #475569;
     --brand-muted: #94a3b8;
     --brand-border: #e2e8f0;
     --brand-bg: #f8fafc;
     --app-max: 1400px;
     --r-lg: 18px;
     --r-md: 12px;
     --r-sm: 8px;
     /* Premium multi-layered shadows */
     --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
     --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
     --shadow-float: 0 12px 32px rgba(12, 131, 31, 0.28), 0 4px 8px rgba(12, 131, 31, 0.15);
     --ease: cubic-bezier(0.25, 1, 0.5, 1);
     --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
 }

 /* ── RESET ───────────────────────────────────────────────────────── */
 *,
 *::before,
 *::after {
     box-sizing: border-box;
 }

 html {
     scroll-behavior: smooth;
 }

 body {
     font-family: 'DM Sans', sans-serif;
     background: var(--brand-bg);
     margin: 0;
     padding: 0;
     display: flex;
     justify-content: center;
     -webkit-tap-highlight-color: transparent;
     user-select: none;
     overscroll-behavior: none;
     color: var(--brand-dark);
 }

 /* Premium Scrollbars: Hidden on mobile, styled cleanly on desktop */
 @media (max-width: 767px) {
     ::-webkit-scrollbar {
         display: none;
     }

     * {
         scrollbar-width: none;
     }
 }

 @media (min-width: 768px) {
     ::-webkit-scrollbar {
         width: 6px;
         height: 6px;
     }

     ::-webkit-scrollbar-track {
         background: transparent;
     }

     ::-webkit-scrollbar-thumb {
         background: #cbd5e1;
         border-radius: 10px;
     }

     ::-webkit-scrollbar-thumb:hover {
         background: #94a3b8;
     }
 }

 .app-container {
     width: 100%;
     max-width: var(--app-max);
     background: #fff;
     min-height: 100svh;
     position: relative;
     display: flex;
     flex-direction: column;
     box-shadow: 0 0 60px rgba(0, 0, 0, 0.04);
     overflow-x: hidden;
 }

 /* ── HEADER ──────────────────────────────────────────────────────── */
 .app-header {
     background: #fff;
     position: sticky;
     top: 0;
     z-index: 1020;
 }

 /* ── FIX 1: SITE LOGO — rounded corners + crisp rendering ──────── */
 .site-logo {
     height: 42px;
     width: auto;
     object-fit: contain;
     border-radius: 6px;
     /* Subtle rounding */
     -webkit-backface-visibility: hidden;
     will-change: transform;
     /* Hints GPU for crisp rendering */
     display: block;
     transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
 }

 .site-logo:active {
     opacity: 0.72;
     transform: scale(0.95);
 }

 /* ── BLINKIT-STYLE MOBILE HEADER ─────────────────────────────────── */
 .mobile-blinkit-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     padding: 12px 14px 4px;
     background: linear-gradient(180deg, #fde047 0%, #fff 100%);
 }

 .blinkit-loc-block {
     display: flex;
     flex-direction: column;
     cursor: pointer;
     flex: 1;
     min-width: 0;
     transition: opacity 0.15s;
 }

 .blinkit-loc-block:active {
     opacity: 0.7;
 }

 .blinkit-brand-sub {
     font-size: 0.7rem;
     font-weight: 800;
     color: var(--brand-dark);
     margin-bottom: -2px;
 }

 .blinkit-eta-main {
     font-size: 1.6rem;
     font-weight: 900;
     color: var(--brand-dark);
     letter-spacing: -0.04em;
     line-height: 1.1;
 }

 .blinkit-loc-sub {
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--brand-gray);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     display: flex;
     align-items: center;
     gap: 4px;
     margin-top: 2px;
 }

 /* Ensures the mobile search bar blends nicely with the yellow gradient */
 .mobile-blinkit-header~.mobile-search-wrap {
     padding: 4px 14px 12px;
 }

 /* ── FIX 4: ANIMATED LOCATION PIN — pure CSS, compositor-only ───── */
 /* Two-layer effect:
           · loc-pin-wrap::before  → expanding "ping" ring (opacity+scale)
           · .location-icon        → gentle float bob (translateY)
           Both animate on transform/opacity only → GPU, no layout thrash.   */
 .loc-pin-wrap {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     width: 26px;
     height: 26px;
 }

 .loc-pin-wrap::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     margin-top: -9px;
     /* Half of the 18px height */
     margin-left: -9px;
     /* Half of the 18px width */
     width: 18px;
     height: 18px;
     border-radius: 50%;
     background: var(--brand-green);
     opacity: 0;
     animation: locPing 2.8s var(--ease) infinite;
     pointer-events: none;
 }

 @keyframes locPing {
     0% {
         transform: scale(1.5);
         opacity: 0.42;
     }

     65% {
         transform: scale(2.0);
         opacity: 0.05;
     }

     100% {
         transform: scale(2.5);
         opacity: 0;
     }
 }

 .location-icon {
     font-size: 1.7rem;
     color: var(--brand-green);
     position: relative;
     z-index: 1;
     /* Forces the icon font to strip its invisible baseline padding */
     display: flex;
     align-items: center;
     justify-content: center;
     line-height: 1;
 }

 .location-text {
     min-width: 0;
     flex: 1;
     overflow: hidden;
 }

 .location-title {
     font-weight: 800;
     font-size: 0.87rem;
     color: var(--brand-dark);
     margin: 0;
     display: flex;
     align-items: center;
     gap: 3px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .location-title strong {
     color: var(--brand-green);
     /* Remove flex-shrink: 0 so it can shrink */
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     display: block;
     /* Allows truncation to work inside the flex parent */
 }

 .location-caret {
     font-size: 0.68rem;
     opacity: 0.55;
     flex-shrink: 0;
 }

 .location-desc {
     font-size: 0.68rem;
     color: var(--brand-muted);
     margin: 1px 0 0;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 /* ── PROFILE BUTTON ──────────────────────────────────────────────── */
 .profile-btn {
     background: none;
     border: none;
     padding: 0;
     cursor: pointer;
     transition: transform 0.15s;
     flex-shrink: 0;
     display: flex;
     align-items: center;
     gap: 4px;
     /* Aligns avatar and arrow */
 }

 .profile-btn:active {
     transform: scale(0.92);
 }

 .profile-btn img {
     width: 35px;
     height: 35px;
     border-radius: 50%;
     border: 2px solid var(--brand-border);
     object-fit: cover;
     display: block;
     pointer-events: none;
     /* Ensures the click goes to the button */
 }

 .profile-btn i {
     font-size: 0.75rem;
     color: var(--brand-muted);
     transition: color 0.2s;
     pointer-events: none;
     /* Ensures the click goes to the button */
 }

 .profile-btn:hover i {
     color: var(--brand-dark);
 }

 /* ── PROFILE DROPDOWN ────────────────────────────────────────────── */
 .dropdown-menu.profile-menu {
     border: 1px solid var(--brand-border) !important;
     border-radius: 16px !important;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13) !important;
     padding: 6px !important;
     min-width: 192px;
 }

 .profile-menu .dropdown-header {
     font-size: 0.84rem;
     font-weight: 800;
     color: var(--brand-dark);
     padding: 4px 10px 2px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .profile-menu .dropdown-header small {
     display: block;
     font-size: 0.68rem;
     font-weight: 500;
     color: var(--brand-muted);
     margin-top: 1px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .profile-menu .dropdown-item {
     border-radius: 10px;
     padding: 8px 10px;
     font-size: 0.84rem;
     font-weight: 600;
     display: flex;
     align-items: center;
     gap: 8px;
     color: var(--brand-dark);
     transition: background 0.14s;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .profile-menu .dropdown-item:hover {
     background: var(--brand-bg);
 }

 .profile-menu .dropdown-item i {
     font-size: 1.05rem;
     flex-shrink: 0;
 }

 .profile-menu .dropdown-item.text-danger {
     color: #ef4444 !important;
 }

 .profile-menu .dropdown-item.text-success {
     color: var(--brand-green) !important;
 }

 .profile-menu .dropdown-item.close-item {
     color: var(--brand-muted) !important;
 }

 /* ── SEARCH BAR ──────────────────────────────────────────────────── */
 .mobile-search-wrap {
     padding: 6px 14px 10px;
 }

 .search-bar {
     background: var(--brand-bg);
     border: 1.5px solid var(--brand-border);
     border-radius: var(--r-md);
     padding: 9px 12px;
     display: flex;
     align-items: center;
     gap: 9px;
     transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
 }

 .search-bar:focus-within {
     border-color: var(--brand-green);
     background: #fff;
     box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.08);
 }

 .search-bar>i {
     font-size: 1.08rem;
     color: var(--brand-muted);
     flex-shrink: 0;
 }

 .search-bar input {
     border: none;
     background: transparent;
     outline: none;
     width: 100%;
     font-size: 0.85rem;
     font-weight: 500;
     color: var(--brand-dark);
     font-family: inherit;
     text-overflow: ellipsis;
     /* truncate long search text */
 }

 .search-bar input::placeholder {
     color: var(--brand-muted);
 }

 /* Clear Search Button */
 .clear-btn {
     background: none;
     border: none;
     padding: 0 4px;
     cursor: pointer;
     flex-shrink: 0;
     display: none;
     /* Hidden by default, toggled via JS */
     align-items: center;
     justify-content: center;
 }

 .clear-btn i {
     font-size: 1.05rem;
     color: #ef4444;
     transition: transform 0.15s;
 }

 .clear-btn:active i {
     transform: scale(0.85);
 }

 .mic-btn {
     background: none;
     border: none;
     padding: 0 0 0 9px;
     border-left: 1.5px solid var(--brand-border);
     cursor: pointer;
     flex-shrink: 0;
     display: flex;
     align-items: center;
 }

 .mic-btn i {
     font-size: 1.05rem;
     color: var(--brand-dark);
 }

 .mic-btn.listening i {
     color: #ef4444;
 }

 .mic-btn.listening {
     animation: micPulse 0.7s ease-in-out infinite alternate;
 }

 @keyframes micPulse {
     from {
         opacity: 1;
     }

     to {
         opacity: 0.35;
     }
 }

 /* ── LOCATION ICON STATES ────────────────────────────────────────── */
 /* Guest (not logged in) — muted slate, no ping ring */
 .location-icon.ph-sign-in {
     color: var(--brand-muted);
 }

 .location-icon.ph-sign-in~.loc-pin-wrap::before,
 .loc-pin-wrap:has(.ph-sign-in)::before {
     display: none;
 }

 /* No address — amber/warning tone, gentle ring */
 .location-icon.ph-map-pin-plus {
     color: #f59e0b;
 }

 .loc-pin-wrap:has(.ph-map-pin-plus)::before {
     background: #f59e0b;
 }

 /* Has address — brand green (default, already styled by .location-icon) */
 .location-icon.ph-map-pin-area {
     color: var(--brand-green);
 }

 /* ── MAIN CONTENT ────────────────────────────────────────────────── */
 .app-content {
     flex-grow: 1;
     overflow-y: auto;
     padding-bottom: 86px;
 }

 .fade-in {
     animation: fadeIn 0.3s ease-out both;
 }

 @keyframes fadeIn {
     from {
         opacity: 0;
         transform: translateY(7px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* ── HERO BANNER ─────────────────────────────────────────────────── */
 .print-hero {
     margin: 12px 14px 0;
     background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-yellow2) 60%, #fef08a 100%);
     border-radius: var(--r-lg);
     padding: 18px 18px;
     position: relative;
     overflow: hidden;
     cursor: pointer;
     transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
     box-shadow: 0 5px 20px rgba(248, 203, 70, 0.22);
 }

 .print-hero:active {
     transform: scale(0.972);
 }

 .print-hero::before {
     /* decorative dot pattern */
     content: '';
     position: absolute;
     inset: 0;
     pointer-events: none;
     background-image: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
     background-size: 18px 18px;
     border-radius: inherit;
 }

 .print-hero-inner {
     position: relative;
     z-index: 2;
     display: flex;
     align-items: center;
     gap: 14px;
 }

 .print-hero-content {
     flex: 1;
     min-width: 0;
 }

 .print-hero h3 {
     font-weight: 900;
     font-size: 1.2rem;
     color: var(--brand-dark);
     margin: 0 0 4px;
     line-height: 1.15;
     letter-spacing: -0.025em;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .print-hero p {
     font-size: 0.74rem;
     color: #4b5563;
     margin: 0 0 12px;
     font-weight: 500;
     line-height: 1.4;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .btn-print-action {
     background: var(--brand-dark);
     color: #fff;
     border: none;
     padding: 8px 18px;
     border-radius: 50px;
     font-weight: 800;
     font-size: 0.71rem;
     display: inline-flex;
     align-items: center;
     gap: 5px;
     letter-spacing: 0.04em;
     text-transform: uppercase;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     font-family: inherit;
     white-space: nowrap;
 }

 .hero-icon-wrap {
     width: 64px;
     height: 64px;
     flex-shrink: 0;
     background: rgba(255, 255, 255, 0.38);
     border-radius: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2.1rem;
     backdrop-filter: blur(4px);
     animation: heroFloat 4s ease-in-out infinite;
 }

 /* ── ZERO GRAVITY PARTICLES ──────────────────────────────────────── */
 .hero-particles {
     position: absolute;
     inset: 0;
     pointer-events: none;
     z-index: 1;
     /* Sits behind the text, but above the background */
     overflow: hidden;
     border-radius: inherit;
 }

 .hero-particle {
     position: absolute;
     background: rgba(255, 255, 255, 0.35);
     border-radius: 50%;
     animation: zeroGravity linear infinite;
 }

 /* Abstract shapes and timings */
 .hp-1 {
     width: 45px;
     height: 45px;
     left: 5%;
     top: 110%;
     animation-duration: 12s;
     background: transparent;
     border: 4px solid rgba(255, 255, 255, 0.25);
 }

 .hp-2 {
     width: 12px;
     height: 12px;
     left: 25%;
     top: 110%;
     animation-duration: 8s;
     animation-delay: -2s;
 }

 .hp-3 {
     width: 30px;
     height: 30px;
     left: 55%;
     top: 110%;
     animation-duration: 15s;
     animation-delay: -6s;
     background: rgba(0, 0, 0, 0.04);
 }

 .hp-4 {
     width: 8px;
     height: 8px;
     left: 75%;
     top: 110%;
     animation-duration: 10s;
     animation-delay: -4s;
     background: rgba(255, 255, 255, 0.5);
 }

 .hp-5 {
     width: 70px;
     height: 70px;
     left: 85%;
     top: 110%;
     animation-duration: 18s;
     animation-delay: -9s;
     background: transparent;
     border: 2px solid rgba(0, 0, 0, 0.03);
 }

 .hp-6 {
     width: 18px;
     height: 18px;
     left: 40%;
     top: 110%;
     animation-duration: 11s;
     animation-delay: -1s;
 }

 @keyframes zeroGravity {
     0% {
         transform: translateY(0) scale(0.8) rotate(0deg);
         opacity: 0;
     }

     15% {
         opacity: 1;
     }

     85% {
         opacity: 1;
     }

     100% {
         /* Float all the way up and through the top of the card */
         transform: translateY(-200px) scale(1.2) rotate(180deg);
         opacity: 0;
     }
 }

 @keyframes heroFloat {

     0%,
     100% {
         transform: translateY(0) rotate(0deg);
     }

     50% {
         transform: translateY(-4px) rotate(-4deg);
     }
 }

 /* ── SECTION LABELS ──────────────────────────────────────────────── */
 .section-label {
     font-weight: 900;
     font-size: 1.04rem;
     color: var(--brand-dark);
     margin: 20px 14px 10px;
     letter-spacing: -0.02em;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     display: flex;
     align-items: center;
     gap: 7px;
 }

 /* ── CATEGORY PILLS ──────────────────────────────────────────────── */
 .cat-scroll-container {
     display: flex;
     overflow-x: auto;
     gap: 11px;
     padding: 2px 14px 12px;
 }

 .cat-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 5px;
     cursor: pointer;
     flex-shrink: 0;
     width: 62px;
     scroll-snap-align: start;
     transition: transform 0.15s;
 }

 .cat-item:active {
     transform: scale(0.87);
 }

 .cat-img-box {
     width: 60px;
     height: 60px;
     border-radius: 15px;
     background: var(--brand-bg);
     border: 2.5px solid transparent;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
 }

 .cat-img-box img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border-radius: 12px;
 }

 .cat-item.active .cat-img-box {
     border-color: var(--brand-green);
     box-shadow: 0 0 0 3px rgba(12, 131, 31, 0.13), 0 4px 12px rgba(12, 131, 31, 0.13);
     background: var(--brand-green-lt);
 }

 .cat-item span {
     font-size: 0.63rem;
     font-weight: 700;
     color: var(--brand-gray);
     text-align: center;
     line-height: 1.2;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
     word-break: break-word;
     transition: color 0.2s;
     max-width: 62px;
 }

 .cat-item.active span {
     color: var(--brand-green);
 }

 .cat-dot {
     width: 4px;
     height: 4px;
     border-radius: 50%;
     background: transparent;
     transition: background 0.2s;
     margin-top: -2px;
 }

 .cat-item.active .cat-dot {
     background: var(--brand-green);
 }

 /* ── ROW HEADERS ─────────────────────────────────────────────────── */
 .row-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 14px 7px;
     overflow: hidden;
 }

 .row-header h5 {
     font-weight: 900;
     font-size: 0.98rem;
     color: var(--brand-dark);
     margin: 0;
     letter-spacing: -0.02em;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     flex: 1;
     min-width: 0;
 }

 .see-all-btn {
     font-size: 0.74rem;
     font-weight: 700;
     color: var(--brand-green);
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 2px;
     transition: opacity 0.15s;
     white-space: nowrap;
     flex-shrink: 0;
     margin-left: 8px;
 }

 .see-all-btn:active {
     opacity: 0.6;
 }

 /* ── PRODUCT ROW (horizontal scroll) ─────────────────────────────── */
 .product-row {
     display: flex;
     overflow-x: auto;
     gap: 10px;
     padding: 0 14px 8px;
     align-items: stretch;
     /* Enforces uniform vertical height alignment across horizontally scrolling items */
 }

 .product-row .product-card {
     flex: 0 0 140px;
     scroll-snap-align: start;
 }

 /* ── PRODUCT GRID ────────────────────────────────────────────────── */
 .product-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
     gap: 10px;
     padding: 4px 14px 16px;
 }

 /* ── PRODUCT CARD ────────────────────────────────────────────────── */
 .product-card {
     background: #fff;
     border-radius: var(--r-lg);
     border: 1px solid var(--brand-border);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     position: relative;
     height: 100%;
     transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.15s;
     box-shadow: var(--shadow-card);
 }

 .product-card:active {
     transform: scale(0.975);
 }

 /* Image area */
 .product-img-wrapper {
     position: relative;
     width: 100%;
     padding-top: 88%;
     background: #ffffff;
     cursor: pointer;
     border-bottom: 1px solid #f8fafc;
     overflow: hidden;
 }

 .product-img-wrapper img {
     position: absolute;
     inset: 0;
     width: 100%;
     height: 100%;
     object-fit: contain;
     padding: 10px;
     mix-blend-mode: multiply;
     transition: transform 0.4s var(--ease);
 }

 /* ADD THIS NEW BLOCK */
 .product-img-wrapper img.img-disabled {
     filter: grayscale(50%);
     opacity: 0.45;
 }

 /* Only apply hover effects on devices with a mouse to prevent mobile 'sticky' hovers */
 @media (hover: hover) and (pointer: fine) {
     .product-card:hover {
         box-shadow: var(--shadow-hover);
         border-color: #cbd5e1;
     }

     .product-card:hover .product-img-wrapper img {
         transform: scale(1.06);
     }
 }

 /* Badges */
 .product-badge {
     position: absolute;
     bottom: 0;
     left: 0;
     z-index: 2;
     font-size: 0.54rem;
     font-weight: 800;
     padding: 2px 7px;
     border-top-right-radius: 8px;
     text-transform: uppercase;
     letter-spacing: 0.04em;
     display: flex;
     align-items: center;
     gap: 2px;
     white-space: nowrap;
     overflow: hidden;
     max-width: 85%;
     text-overflow: ellipsis;
     background: var(--brand-yellow);
     color: var(--brand-dark);
 }

 /* 1. The Base Offer Badge */
 .product-badge.offer {
     background: linear-gradient(135deg, #ff3366 0%, #e11d48 100%);
     color: #ffffff;
     box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
     border: 1px solid rgba(255, 255, 255, 0.15);
     /* Required for the shine effect */
     overflow: hidden;
 }

 /* 2. The Diagonal Light Stripe */
 .product-badge.offer::after {
     content: '';
     position: absolute;
     top: 0;
     left: -150%;
     width: 50%;
     height: 100%;
     background: linear-gradient(to right,
             rgba(255, 255, 255, 0) 0%,
             rgba(255, 255, 255, 0.4) 50%,
             rgba(255, 255, 255, 0) 100%);
     transform: skewX(-25deg);
     animation: badgeShine 3s infinite;
     z-index: 1;
     /* Ensures it sits above the background but under text if necessary */
 }

 /* 3. The Looping Animation */
 @keyframes badgeShine {
     0% {
         left: -150%;
     }

     20% {
         left: 150%;
     }

     100% {
         left: 150%;
     }

     /* The gap between 20% and 100% creates a pause between shines */
 }

 .product-badge.low-stock {
     background: #f97316;
     color: #fff;
     top: 0;
     bottom: auto;
     /* Overrides bottom anchoring */
     border-top-right-radius: 0;
     border-bottom-right-radius: 8px;
     /* Fixes corner for top-left */
 }

 .discount-pill {
     position: absolute;
     top: 0;
     right: 0;
     z-index: 2;
     background: #dcfce7;
     color: var(--brand-green);
     font-size: 0.54rem;
     font-weight: 800;
     padding: 2px 6px;
     border-bottom-left-radius: 8px;
     white-space: nowrap;
 }

 .product-info {
     padding: 7px 9px 8px;
     display: flex;
     flex-direction: column;
     flex-grow: 1;
     min-width: 0;
 }

 .product-detail-area {
     cursor: pointer;
     flex: 1;
     min-width: 0;
 }

 .product-name {
     font-size: 0.79rem;
     font-weight: 800;
     color: var(--brand-dark);
     margin: 0 0 2px;
     line-height: 1.25;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
     word-break: break-word;
     overflow-wrap: break-word;
     text-overflow: ellipsis;
     min-height: calc(1.25em * 2);
     /* Forces exact 2-line height alignment */
 }

 .product-unit {
     font-size: 0.62rem;
     font-weight: 600;
     color: var(--brand-muted);
     margin: 0 0 6px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .product-footer {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 5px;
     margin-top: auto;
     min-width: 0;
     overflow: hidden;
 }

 .price-block {
     flex: 1;
     min-width: 0;
     overflow: hidden;
 }

 .price-current {
     font-size: 0.74rem;
     font-weight: 900;
     color: var(--brand-dark);
     display: block;
     line-height: 1;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .price-original {
     font-size: 0.6rem;
     color: var(--brand-muted);
     text-decoration: line-through;
     display: block;
     margin-top: 2px;
     white-space: nowrap;
 }

 /* ADD button — compact pill */
 .btn-add {
     border: 1.5px solid var(--brand-green);
     background: var(--brand-green-lt);
     color: var(--brand-green);
     font-weight: 800;
     font-size: 0.67rem;
     text-transform: uppercase;
     border-radius: var(--r-sm);
     padding: 0 10px;
     cursor: pointer;
     flex-shrink: 0;
     height: 26px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.12s, color 0.12s, transform 0.12s;
     white-space: nowrap;
     font-family: inherit;
     letter-spacing: 0.02em;
 }

 .btn-add:active {
     background: var(--brand-green);
     color: #fff;
     transform: scale(0.9);
 }

 /* QTY CONTROL — 70×26, fits cleanly beside price */
 .qty-control {
     display: none;
     align-items: center;
     justify-content: space-between;
     background: var(--brand-green);
     border-radius: var(--r-sm);
     overflow: hidden;
     width: 60px;
     height: 26px;
     flex-shrink: 0;
     box-shadow: 0 3px 10px rgba(12, 131, 31, 0.22);
 }

 .qty-control.active {
     display: flex;
     animation: popIn 0.2s var(--spring) both;
 }

 @keyframes popIn {
     from {
         transform: scale(0.7);
         opacity: 0;
     }

     to {
         transform: scale(1);
         opacity: 1;
     }
 }

 .qty-btn {
     background: transparent;
     border: none;
     color: #fff;
     width: 22px;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.95rem;
     cursor: pointer;
     font-weight: 700;
     transition: background 0.1s;
     font-family: inherit;
 }

 .qty-btn:active {
     background: rgba(0, 0, 0, 0.18);
 }

 .qty-val {
     color: #fff;
     font-size: 0.76rem;
     font-weight: 900;
     flex: 1;
     text-align: center;
     white-space: nowrap;
 }

 .btn-oos {
     font-size: 0.62rem;
     font-weight: 700;
     color: var(--brand-muted);
     display: flex;
     align-items: center;
     gap: 3px;
     flex-shrink: 0;
     white-space: nowrap;
     height: 26px;
     /* Matches structural height footprint of active action buttons to preserve grid alignment */
 }

 /* ── PRODUCT DETAIL SHEET ────────────────────────────────────────── */
 .sheet-overlay {
     position: fixed;
     inset: 0;
     background: rgba(15, 23, 42, 0.5);
     z-index: 2000;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.3s var(--ease);
     backdrop-filter: blur(3px);
     -webkit-backdrop-filter: blur(3px);
 }

 .sheet-overlay.active {
     opacity: 1;
     pointer-events: all;
 }

 .product-sheet {
     position: fixed;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%) translateY(106%);
     width: 100%;
     max-width: 560px;
     background: #fff;
     border-radius: 22px 22px 0 0;
     z-index: 2001;
     transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
     max-height: 92svh;
     overflow-y: auto;
     padding-bottom: calc(20px + env(safe-area-inset-bottom));
 }

 .product-sheet.active {
     transform: translateX(-50%) translateY(0);
 }

 .sheet-handle {
     width: 38px;
     height: 5px;
     background: #cbd5e1;
     border-radius: 4px;
     margin: 12px auto 8px;
     transition: background 0.2s;
 }

 .product-sheet:active .sheet-handle {
     background: #94a3b8;
 }

 .sheet-close-btn {
     position: absolute;
     top: 12px;
     right: 14px;
     background: #f1f5f9;
     border: none;
     width: 32px;
     height: 32px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     font-size: 1rem;
     color: var(--brand-gray);
     transition: background 0.14s, transform 0.14s;
     z-index: 5;
 }

 .sheet-close-btn:active {
     background: #e2e8f0;
     transform: scale(0.9);
 }

 .sheet-img {
     width: 100%;
     max-height: 218px;
     object-fit: contain;
     padding: 14px 28px;
     background: var(--brand-bg);
 }

 .sheet-body {
     padding: 14px 18px 0;
 }

 .sheet-name {
     font-size: 1.08rem;
     font-weight: 900;
     color: var(--brand-dark);
     margin: 0 0 3px;
     line-height: 1.25;
     letter-spacing: -0.02em;
     overflow-wrap: break-word;
     word-break: break-word;
 }

 .sheet-unit {
     font-size: 0.75rem;
     font-weight: 600;
     color: var(--brand-muted);
     margin: 0 0 8px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .sheet-desc {
     font-size: 0.8rem;
     color: var(--brand-gray);
     line-height: 1.55;
     margin: 0 0 12px;
     font-weight: 400;
     overflow-wrap: break-word;
 }

 .sheet-price-row {
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
     margin: 0 0 7px;
 }

 .sheet-price {
     font-size: 1.3rem;
     font-weight: 900;
     color: var(--brand-dark);
     line-height: 1;
     white-space: nowrap;
 }

 .sheet-orig-price {
     font-size: 0.86rem;
     color: var(--brand-muted);
     text-decoration: line-through;
     font-weight: 500;
     white-space: nowrap;
 }

 .sheet-discount-pill {
     background: #dcfce7;
     color: var(--brand-green);
     font-size: 0.68rem;
     font-weight: 800;
     padding: 2px 9px;
     border-radius: 50px;
     white-space: nowrap;
 }

 .sheet-stock-row {
     display: flex;
     align-items: center;
     gap: 6px;
     margin: 0 0 15px;
 }

 .stock-dot {
     width: 7px;
     height: 7px;
     border-radius: 50%;
     flex-shrink: 0;
 }

 .stock-dot.in {
     background: var(--brand-green);
 }

 .stock-dot.low {
     background: #f97316;
 }

 .stock-dot.oos {
     background: #ef4444;
 }

 .sheet-stock-txt {
     font-size: 0.75rem;
     font-weight: 700;
     white-space: nowrap;
 }

 .sheet-stock-txt.in {
     color: var(--brand-green);
 }

 .sheet-stock-txt.low {
     color: #f97316;
 }

 .sheet-stock-txt.oos {
     color: #ef4444;
 }

 .sheet-divider {
     border: none;
     border-top: 1px solid var(--brand-border);
     margin: 0 -18px 13px;
 }

 .sheet-action-row {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .sheet-qty-ctrl {
     display: flex;
     align-items: center;
     background: var(--brand-bg);
     border: 1.5px solid var(--brand-border);
     border-radius: 10px;
     overflow: hidden;
     flex-shrink: 0;
 }

 .sheet-qty-btn {
     background: none;
     border: none;
     width: 37px;
     height: 41px;
     font-size: 1.12rem;
     font-weight: 700;
     cursor: pointer;
     color: var(--brand-dark);
     font-family: inherit;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: background 0.1s;
 }

 .sheet-qty-btn:active {
     background: var(--brand-border);
 }

 .sheet-qty-btn:disabled {
     color: var(--brand-muted);
     cursor: not-allowed;
 }

 .sheet-qty-val {
     font-size: 0.92rem;
     font-weight: 900;
     color: var(--brand-dark);
     padding: 0 2px;
     min-width: 26px;
     text-align: center;
     white-space: nowrap;
 }

 .btn-sheet-add {
     flex: 1;
     background: var(--brand-green);
     color: #fff;
     border: none;
     border-radius: 10px;
     height: 41px;
     font-size: 0.84rem;
     font-weight: 800;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 6px;
     transition: transform 0.12s, background 0.12s;
     font-family: inherit;
     box-shadow: 0 4px 14px rgba(12, 131, 31, 0.22);
     min-width: 0;
     overflow: hidden;
 }

 .btn-sheet-add span {
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .btn-sheet-add:active {
     transform: scale(0.97);
     background: #0a6b1a;
 }

 .btn-sheet-add.oos {
     background: var(--brand-border);
     color: var(--brand-muted);
     cursor: not-allowed;
     box-shadow: none;
 }

 /* ── FLOATING CART STRIP ─────────────────────────────────────────── */
 .floating-cart-strip {
     position: fixed;
     bottom: 65px;
     left: 50%;
     transform: translateX(-50%) translateY(200%);
     width: calc(100% - 28px);
     max-width: 456px;
     background: var(--brand-green);
     border-radius: var(--r-md);
     padding: 11px 18px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     color: #fff;
     box-shadow: var(--shadow-float);
     z-index: 1030;
     cursor: pointer;
     overflow: hidden;
     transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
 }

 .floating-cart-strip.visible {
     transform: translateX(-50%) translateY(0);
 }

 .floating-cart-strip:active {
     transform: translateX(-50%) translateY(0) scale(0.97);
 }

 .floating-cart-strip.bounce {
     animation: bounceStrip 0.38s cubic-bezier(0.16, 1, 0.3, 1);
 }

 @keyframes bounceStrip {

     0%,
     100% {
         transform: translateX(-50%) translateY(0) scale(1);
     }

     50% {
         transform: translateX(-50%) translateY(0) scale(1.034);
     }
 }

 .strip-left {
     display: flex;
     flex-direction: column;
     gap: 1px;
     overflow: hidden;
 }

 .strip-items {
     font-size: 0.67rem;
     font-weight: 700;
     opacity: 0.85;
     text-transform: uppercase;
     letter-spacing: 0.06em;
     white-space: nowrap;
 }

 .strip-price {
     font-size: 1.02rem;
     font-weight: 900;
     line-height: 1;
     white-space: nowrap;
 }

 .strip-cta {
     font-size: 0.86rem;
     font-weight: 800;
     display: flex;
     align-items: center;
     gap: 4px;
     white-space: nowrap;
     flex-shrink: 0;
 }

 /* ── BOTTOM NAVIGATION ───────────────────────────────────────────── */
 .bottom-nav {
     position: fixed;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 100%;
     max-width: var(--app-max);
     background: #fff;
     border-top: 1px solid var(--brand-border);
     display: flex;
     justify-content: space-around;
     padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
     z-index: 1040;
 }

 .nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 3px;
     color: var(--brand-muted);
     text-decoration: none;
     font-size: 0.58rem;
     font-weight: 700;
     cursor: pointer;
     transition: color 0.18s;
     width: 58px;
     overflow: hidden;
 }

 .nav-item span {
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .nav-item i {
     font-size: 1.38rem;
     transition: transform 0.18s var(--spring);
 }

 .nav-item.active {
     color: var(--brand-green);
 }

 .nav-item.active i {
     transform: scale(1.12);
 }

 .nav-item:active i {
     transform: scale(0.82);
 }

 /* ── SKELETON LOADERS ────────────────────────────────────────────── */
 .skeleton {
     background: #f1f5f9;
     background: linear-gradient(110deg, #ececec 8%, #f8fafc 18%, #ececec 33%);
     background-size: 200% 100%;
     animation: shimmer 1.4s linear infinite;
     border-radius: var(--r-md);
 }

 @keyframes shimmer {
     0% {
         background-position: 200% 0;
     }

     100% {
         background-position: -200% 0;
     }
 }

 /* ── EMPTY / ERROR ───────────────────────────────────────────────── */
 .empty-state {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 50px 20px;
     text-align: center;
     gap: 9px;
 }

 .empty-state i {
     font-size: 2.7rem;
     color: var(--brand-muted);
     opacity: 0.45;
 }

 .empty-state strong {
     font-size: 0.9rem;
     color: var(--brand-dark);
     overflow-wrap: break-word;
 }

 .empty-state span {
     font-size: 0.77rem;
     color: var(--brand-muted);
 }

 .error-state {
     margin: 14px;
     padding: 18px;
     border-radius: var(--r-md);
     background: #fff5f5;
     border: 1px solid #fecaca;
     text-align: center;
 }

 .error-state p {
     font-size: 0.84rem;
     color: #64748b;
     margin: 6px 0 0;
     overflow-wrap: break-word;
 }

 .error-state button {
     margin-top: 10px;
     background: var(--brand-green);
     color: #fff;
     border: none;
     border-radius: var(--r-sm);
     padding: 7px 18px;
     font-size: 0.82rem;
     font-weight: 700;
     cursor: pointer;
     font-family: inherit;
 }

 /* ── SEARCH MODE LAYOUT SHIFT ────────────────────────────────────── */
 body.search-mode .print-hero,
 body.search-mode .delivery-route-card,
 body.search-mode .desktop-route-wrapper,
 body.search-mode #catSectionLabel,
 body.search-mode #catContainer {
     display: none !important;
 }

 /* ── BRAND FOOTER (Blinkit Style) ────────────────────────────────── */
 .brand-footer {
     padding: 40px 20px 0;
     /* 0 bottom padding prevents conflict with app-content's safe area */
     display: flex;
     flex-direction: column;
     align-items: flex-start;
 }

 .brand-footer h2 {
     font-size: 2.4rem;
     font-weight: 900;
     color: #cbd5e1;
     /* Soft, bulky gray */
     line-height: 1.1;
     letter-spacing: -0.03em;
     margin: 0 0 20px 0;
     font-family: inherit;
 }

 .brand-footer .heart {
     color: #ef4444;
     /* Vibrant Red */
     display: inline-block;
     opacity: 0.7;
     /* Subtle, not overpowering */
     animation: heartbeat 2.5s infinite;
 }

 @keyframes heartbeat {

     0%,
     100% {
         transform: scale(1);
     }

     10%,
     30% {
         transform: scale(1.12);
     }

     20% {
         transform: scale(1.22);
     }
 }

 .brand-footer-divider {
     width: 100%;
     height: 3px;
     background: linear-gradient(to right, #e2e8f0 0%, transparent 80%);
     margin-bottom: 18px;
 }

 .brand-footer-logo {
     height: 32px;
     width: auto;
     object-fit: contain;
     filter: opacity(0.55);
     border-radius: 5px;
 }

 /* Hide footer when searching */
 body.search-mode .brand-footer {
     display: none !important;
 }

 /* ── DESKTOP ─────────────────────────────────────────────────────── */
 @media (min-width: 768px) {
     .app-content {
         padding-bottom: 48px;
     }

     .bottom-nav {
         display: none;
     }

     .mobile-logo-bar,
     .header-top,
     .mobile-search-wrap {
         display: none !important;
     }

     .desktop-header-wrap {
         display: flex !important;
         align-items: center;
         gap: 20px;
         padding: 12px 32px;
         width: 100%;
     }

     .desktop-header-wrap .site-logo {
         height: 48px;
     }

     .desktop-header-wrap .location-block {
         flex: 0 0 auto;
         max-width: 256px;
         display: flex;
         /* Add this: Forces children into a row */
         align-items: center;
         /* Add this: Vertically centers the icon with the text */
         cursor: pointer;
         /* Add this: Makes it obvious it's clickable on desktop */
     }

     .section-label {
         font-size: 1.22rem;
         margin: 26px 32px 13px;
     }

     .cat-scroll-container {
         padding: 2px 32px 14px;
         gap: 18px;
     }

     .cat-img-box {
         width: 80px;
         height: 80px;
         border-radius: 20px;
     }

     .cat-item {
         width: 80px;
     }

     .cat-item span {
         font-size: 0.76rem;
         max-width: 80px;
     }

     .print-hero {
         margin: 22px 32px 0;
         padding: 34px 32px;
     }

     .delivery-route-card {
         margin: 22px 32px 0;
         /* Matches desktop .print-hero */
     }

     .print-hero h3 {
         font-size: 1.85rem;
     }

     .print-hero p {
         font-size: 0.9rem;
     }

     .hero-icon-wrap {
         width: 94px;
         height: 94px;
         font-size: 2.9rem;
     }

     .product-row {
         padding: 0 32px 14px;
         gap: 14px;
     }

     .product-row .product-card {
         flex: 0 0 182px;
     }

     .product-grid {
         grid-template-columns: repeat(auto-fill, minmax(182px, 1fr));
         gap: 14px;
         padding: 4px 32px 20px;
     }

     .row-header {
         padding: 18px 32px 9px;
     }

     .floating-cart-strip {
         left: auto;
         right: 32px;
         transform: translateY(200%);
         width: 344px;
         bottom: 32px;
     }

     .floating-cart-strip.visible {
         transform: translateY(0);
     }

     .floating-cart-strip:active {
         transform: translateY(0) scale(0.98);
     }

     .floating-cart-strip.bounce {
         animation: bounceStripD 0.38s cubic-bezier(0.16, 1, 0.3, 1);
     }

     @keyframes bounceStripD {

         0%,
         100% {
             transform: translateY(0) scale(1);
         }

         50% {
             transform: translateY(0) scale(1.022);
         }
     }

     .product-sheet {
         border-radius: 22px;
         bottom: 32px;
     }

     .brand-footer {
         padding: 64px 32px 48px;
         align-items: flex-start;
         border-top: 1px solid #e2e8f0;
         margin-top: 24px;
     }

     .brand-footer h2 {
         font-size: 4.2rem;
         font-weight: 900;
         letter-spacing: -0.04em;
         line-height: 1.05;
         color: #cbd5e1;
         margin: 0 0 32px 0;
     }

     .brand-footer-divider {
         width: 400px;
         height: 3px;
         background: linear-gradient(to right, #e2e8f0 0%, transparent 80%);
         margin-bottom: 24px;
         border-radius: 2px;
     }

     .brand-footer-logo {
         height: 44px;
         filter: grayscale(0%) opacity(0.45);
     }
 }

 /* ── COMPACT MOBILE TOAST (Blinkit Style) ────────────────────────── */
 div.qc-toast-popup {
     width: auto !important;
     min-height: auto !important;
     padding: 8px 16px 8px 12px !important;
     border-radius: 50px !important;
     /* Sleek pill shape */
     background: rgba(30, 41, 59, 0.95) !important;
     /* Dark translucent */
     backdrop-filter: blur(4px);
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
     margin-bottom: 80px !important;
     /* Pushes it above your bottom nav */
     display: flex !important;
     align-items: center !important;
     gap: 8px !important;
 }

 /* Shrink and align Swal's default animated icons */
 div.qc-toast-popup .swal2-icon {
     margin: 0 !important;
     font-size: 12px !important;
     width: 2em !important;
     height: 2em !important;
     min-width: 2em !important;
 }

 /* Crisp, compact text */
 h2.qc-toast-title {
     margin: 0 !important;
     padding: 0 !important;
     font-size: 0.8rem !important;
     font-weight: 600 !important;
     color: #ffffff !important;
     font-family: inherit !important;
     letter-spacing: 0.01em !important;
 }

 /* ── VOICE SEARCH MODAL ──────────────────────────────────────────── */
 .swal2-popup.voice-swal-popup {
     border-radius: 28px !important;
     padding: 36px 28px 32px !important;
     box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08) !important;
     background: #ffffff !important;
     max-width: 340px !important;
     width: 90vw !important;
     font-family: 'DM Sans', sans-serif !important;
 }

 .voice-mic-ring-wrap {
     position: relative;
     width: 88px;
     height: 88px;
     margin: 0 auto 20px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .voice-mic-ring-wrap .ring {
     position: absolute;
     inset: 0;
     border-radius: 50%;
     background: rgba(239, 68, 68, 0.10);
     animation: voiceRingPulse 1.6s ease-out infinite;
 }

 .voice-mic-ring-wrap .ring:nth-child(2) {
     background: rgba(239, 68, 68, 0.06);
     animation-delay: 0.5s;
 }

 .voice-mic-ring-wrap .ring:nth-child(3) {
     background: rgba(239, 68, 68, 0.03);
     animation-delay: 1s;
 }

 @keyframes voiceRingPulse {
     0% {
         transform: scale(1);
         opacity: 1;
     }

     100% {
         transform: scale(1.85);
         opacity: 0;
     }
 }

 .voice-mic-core {
     position: relative;
     z-index: 2;
     width: 64px;
     height: 64px;
     border-radius: 50%;
     background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 8px 24px rgba(239, 68, 68, 0.38);
     animation: voiceMicBeat 1.2s ease-in-out infinite alternate;
 }

 @keyframes voiceMicBeat {
     from {
         transform: scale(1);
         box-shadow: 0 8px 24px rgba(239, 68, 68, 0.38);
     }

     to {
         transform: scale(1.07);
         box-shadow: 0 12px 32px rgba(239, 68, 68, 0.55);
     }
 }

 .voice-mic-core i {
     font-size: 1.7rem;
     color: #fff;
 }

 /* Idle state (permission / error) — grey, no animation */
 .voice-mic-core.idle {
     background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
     box-shadow: 0 8px 24px rgba(100, 116, 139, 0.30);
     animation: none;
 }

 .voice-mic-ring-wrap.idle .ring {
     display: none;
 }

 h2.voice-swal-title {
     font-family: 'DM Sans', sans-serif !important;
     font-size: 1.12rem !important;
     font-weight: 800 !important;
     color: #0f172a !important;
     margin: 0 0 6px !important;
     letter-spacing: -0.02em !important;
 }

 div.voice-swal-html-container {
     font-family: 'DM Sans', sans-serif !important;
     font-size: 0.82rem !important;
     color: #64748b !important;
     margin: 0 !important;
     min-height: 44px;
 }

 /* The word-by-word transcript area */
 .voice-transcript-area {
     margin-top: 14px;
     min-height: 38px;
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 4px 5px;
     padding: 0 4px;
 }

 .voice-word {
     display: inline-block;
     font-size: 0.88rem;
     font-weight: 700;
     color: #0f172a;
     opacity: 0;
     transform: translateY(6px) scale(0.88);
     animation: wordPop 0.28s var(--spring, cubic-bezier(0.175, 0.885, 0.32, 1.275)) forwards;
 }

 @keyframes wordPop {
     to {
         opacity: 1;
         transform: translateY(0) scale(1);
     }
 }

 .voice-hint {
     font-size: 0.72rem;
     color: #94a3b8;
     margin-top: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 5px;
 }

 .voice-hint i {
     font-size: 0.8rem;
 }

 /* Cancel / close button inside the modal */
 button.voice-swal-cancel {
     margin-top: 8px !important;
     background: var(--brand-bg, #f8fafc) !important;
     color: #475569 !important;
     border: 1.5px solid #e2e8f0 !important;
     border-radius: 50px !important;
     font-family: 'DM Sans', sans-serif !important;
     font-size: 0.8rem !important;
     font-weight: 700 !important;
     padding: 8px 24px !important;
     box-shadow: none !important;
     transition: background 0.15s !important;
 }

 button.voice-swal-cancel:hover {
     background: #f1f5f9 !important;
 }

 /* ── LOCATION PICKER MODAL (PREMIUM REFINEMENT) ──────────────────── */
 .swal2-popup.loc-picker-popup {
     border-radius: 24px !important;
     /* Softer, modern corners */
     padding: 0 !important;
     overflow: hidden !important;
     max-width: 380px !important;
     width: 94vw !important;
     box-shadow: 0 32px 80px rgba(0, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.06) !important;
     font-family: 'DM Sans', sans-serif !important;
 }

 div.loc-picker-html {
     margin: 0 !important;
     padding: 0 !important;
 }

 .loc-picker-header {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 12px 20px;
     /* Better breathing room */
     background: var(--brand-bg);
     /* Distinct header area */
     border-bottom: 1px solid var(--brand-border);
     font-size: 1.05rem;
     /* Slightly larger, bolder presence */
     font-weight: 800;
     color: var(--brand-dark);
     letter-spacing: -0.02em;
 }

 .loc-picker-list {
     max-height: 62vh;
     overflow-y: auto;
     padding: 0 0;
     /* Removed bottom padding to let the footer handle it */
 }

 .loc-picker-item {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 5px 15px;
     cursor: pointer;
     transition: background 0.15s;
     position: relative;
     border-bottom: 1px solid #f8fafc;
 }

 .loc-picker-item:last-child {
     border-bottom: none;
 }

 .loc-picker-item:active,
 .loc-picker-item:hover {
     background: var(--brand-bg);
 }

 .loc-picker-item.active {
     background: var(--brand-green-lt);
 }

 .loc-picker-icon-wrap {
     width: 32px;
     height: 32px;
     border-radius: 12px;
     background: #fff;
     border: 1.5px solid var(--brand-border);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     font-size: 1.15rem;
     color: var(--brand-gray);
     transition: all 0.2s var(--ease);
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
 }

 /* Forces the phosphor icon to perfectly center itself inside the 42x42 wrap */
 .loc-picker-icon-wrap i {
     display: flex;
     align-items: center;
     justify-content: center;
     line-height: 1;
 }

 .loc-picker-item.active .loc-picker-icon-wrap {
     background: var(--brand-green);
     border-color: var(--brand-green);
     color: #fff;
     box-shadow: 0 4px 12px rgba(12, 131, 31, 0.25);
     transform: scale(1.05);
     /* Slight pop effect for the active icon */
 }

 .loc-picker-text {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
     gap: 0px;
     padding-top: 0px;
 }

 .loc-picker-text strong {
     font-size: 0.9rem;
     font-weight: 800;
     color: var(--brand-dark);
     display: block;
 }

 .loc-picker-text span {
     font-size: 0.78rem;
     color: var(--brand-gray);
     font-weight: 500;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     display: block;
 }

 .loc-picker-text .loc-picker-sub {
     font-size: 0.71rem;
     color: var(--brand-muted);
     font-weight: 400;
 }

 .loc-picker-check {
     font-size: 1.15rem;
     color: var(--brand-green);
     flex-shrink: 0;
     align-self: center;
     margin-left: auto;
     animation: popIn 0.3s var(--spring) both;
 }

 .loc-picker-manage {
     display: flex;
     align-items: center;
     justify-content: center;
     /* Center aligns the action like a bottom sheet button */
     gap: 8px;
     padding: 16px 20px;
     font-size: 0.88rem;
     font-weight: 800;
     color: var(--brand-green);
     text-decoration: none;
     border-top: 1px solid var(--brand-border);
     transition: background 0.15s;
     background: #fff;
 }

 .loc-picker-manage:hover {
     background: var(--brand-green-lt);
 }

 .loc-picker-manage i {
     font-size: 1.1rem;
 }

 button.loc-picker-close-btn {
     color: var(--brand-muted) !important;
     font-size: 2.0rem !important;
     /* FIXED: Was 140px, causing it to float over the list */
     top: 14px !important;
     right: 14px !important;
     transition: color 0.15s, transform 0.15s !important;
 }

 button.loc-picker-close-btn:hover {
     color: var(--brand-dark) !important;
     transform: scale(1.1) !important;
 }

 /* Removes the default Swal2 focus outline on the 'x' */
 button.loc-picker-close-btn:focus {
     outline: none !important;
     box-shadow: none !important;
 }

 /* ── DELIVERY ROUTE MAP CARD ─────────────────────────────────────── */
 .delivery-route-card {
     margin: 12px 14px 0;
     border-radius: var(--r-lg);
     border: 1px solid var(--brand-border);
     overflow: hidden;
     background: #fff;
     box-shadow: var(--shadow-card);
     transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
     display: flex;
     flex-direction: column;
 }

 /* States: loading, no-login, no-address, no-coords, out-of-zone, ready */
 .route-card-state {
     display: flex;
     align-items: center;
     gap: 14px;
     padding: 18px 16px;
     min-height: 80px;
 }

 .route-card-state-icon {
     width: 44px;
     height: 44px;
     border-radius: 12px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.4rem;
     flex-shrink: 0;
 }

 .route-card-state-icon.green {
     background: var(--brand-green-lt);
     color: var(--brand-green);
 }

 .route-card-state-icon.amber {
     background: #fffbeb;
     color: #d97706;
 }

 .route-card-state-icon.red {
     background: #fff5f5;
     color: #ef4444;
 }

 .route-card-state-icon.muted {
     background: #f8fafc;
     color: var(--brand-muted);
 }

 .route-card-state-text strong {
     display: block;
     font-size: 0.87rem;
     font-weight: 800;
     color: var(--brand-dark);
     line-height: 1.2;
 }

 .route-card-state-text span {
     font-size: 0.74rem;
     color: var(--brand-muted);
     margin-top: 2px;
     display: block;
 }

 .route-card-state-text a {
     font-size: 0.78rem;
     font-weight: 700;
     color: var(--brand-green);
     text-decoration: none;
 }

 /* ── Info bar above the map ── */
 .route-info-bar {
     display: flex;
     align-items: center;
     gap: 10px;
     padding: 10px 14px;
     background: #fff;
     border-bottom: 1px solid var(--brand-border);
 }

 .route-info-pills {
     display: flex;
     gap: 7px;
     margin-left: auto;
     flex-shrink: 0;
 }

 .route-pill {
     display: flex;
     align-items: center;
     gap: 4px;
     padding: 4px 9px;
     border-radius: 50px;
     font-size: 0.72rem;
     font-weight: 700;
     white-space: nowrap;
 }

 .route-pill.green {
     background: var(--brand-green-lt);
     color: var(--brand-green);
 }

 .route-pill.yellow {
     background: #fef9c3;
     color: #a16207;
 }

 .route-pill i {
     font-size: 0.8rem;
 }

 .route-info-addr {
     flex: 1;
     min-width: 0;
 }

 .route-info-addr strong {
     font-size: 0.82rem;
     font-weight: 800;
     color: var(--brand-dark);
     display: block;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .route-info-addr span {
     font-size: 0.7rem;
     color: var(--brand-muted);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     display: block;
 }

 /* ── Leaflet map container ── */
 #deliveryMap {
     height: 210px;
     width: 100%;
     background: #f0f4f0;
     display: block;
 }

 @media (min-width: 768px) {
     #deliveryMap {
         height: auto;
         flex: 1;
         min-height: 260px;
     }
 }

 /* ── Leaflet overrides — match brand ── */
 .leaflet-control-attribution {
     font-size: 9px !important;
     opacity: 0.5;
 }

 /* Style the main container box */
 .leaflet-bar {
     border: 1px solid var(--brand-border) !important;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
     border-radius: var(--r-sm) !important;
     overflow: hidden;
     /* Ensures the buttons respect the rounded corners */
 }

 /* Style the + and - buttons */
 .leaflet-bar a {
     font-size: 16px !important;
     width: 30px !important;
     height: 30px !important;
     line-height: 30px !important;
     color: var(--brand-dark) !important;
     background-color: #fff !important;
     border-bottom: 1px solid var(--brand-border) !important;
     /* Subtle separator */
 }

 /* Remove the separator line from the bottom (-) button */
 .leaflet-bar a:last-child {
     border-bottom: none !important;
 }

 /* Add a nice hover effect for desktop users */
 .leaflet-bar a:hover {
     background-color: var(--brand-bg) !important;
     color: var(--brand-green) !important;
 }

 /* ── Custom map markers ── */
 .map-marker {
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50% 50% 50% 0;
     transform: rotate(-45deg);
     font-size: 1rem;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
     border: 2px solid #fff;
 }

 .map-marker i {
     transform: rotate(45deg);
 }

 .map-marker.shop {
     width: 32px;
     height: 32px;
     background: var(--brand-green);
     color: #fff;
 }

 .map-marker.home {
     width: 32px;
     height: 32px;
     background: var(--brand-yellow);
     color: #fff;
 }

 /* ── Animated route polyline (SVG path via Leaflet) ── */
 .route-flow-line {
     stroke-dasharray: 12 8;
     animation: routeFlow 1.8s linear infinite;
 }

 @keyframes routeFlow {
     to {
         stroke-dashoffset: -60;
     }
 }

 /* ── Out-of-zone: red-themed info bar variants ── */
 .route-info-bar.outzone {
     background: #fff5f5;
     border-bottom-color: #fecaca;
 }

 .route-info-bar.outzone .route-info-addr strong {
     color: #b91c1c;
 }

 .route-info-bar.outzone .route-info-addr strong i {
     color: #ef4444;
 }

 .route-info-bar.outzone .route-info-addr span {
     color: #ef4444;
     opacity: 0.8;
 }

 .route-pill.red {
     background: #fff1f2;
     color: #be123c;
 }

 .route-pill.red-outline {
     background: transparent;
     color: #b91c1c;
     border: 1.5px solid #fca5a5;
     cursor: pointer;
     transition: background 0.14s;
     font-family: inherit;
 }

 .route-pill.red-outline:hover {
     background: #fee2e2;
 }

 /* ── Red animated route overlay ── */
 .route-flow-line-red {
     stroke-dasharray: 12 8;
     animation: routeFlowRed 1.8s linear infinite;
 }

 @keyframes routeFlowRed {
     to {
         stroke-dashoffset: -60;
     }
 }

 /* ── DESKTOP ROUTE WRAPPER & PROMO CARD ──────────────────────────── */
 .promo-card {
     background: #fff;
     border-radius: var(--r-lg);
     border: 1px solid var(--brand-border);
     box-shadow: var(--shadow-card);
     padding: 24px;
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     flex: 0 0 340px;
     /* Fixed width for the promo card */
     transition: box-shadow 0.3s var(--ease);
 }

 .promo-card:hover {
     box-shadow: var(--shadow-hover);
 }

 .promo-card img {
     width: 140px;
     margin-bottom: 16px;
 }

 .promo-card h4 {
     font-weight: 900;
     font-size: 1.15rem;
     color: var(--brand-dark);
     margin: 0 0 8px;
     letter-spacing: -0.02em;
 }

 .promo-card p {
     font-size: 0.85rem;
     color: var(--brand-gray);
     margin: 0 0 16px;
     line-height: 1.4;
 }

 .promo-card .btn-promo {
     background: var(--brand-green-lt);
     color: var(--brand-green);
     border: 1.5px solid var(--brand-green);
     font-weight: 800;
     font-size: 0.75rem;
     padding: 8px 24px;
     border-radius: 50px;
     text-transform: uppercase;
     letter-spacing: 0.04em;
     cursor: pointer;
     transition: background 0.15s, color 0.15s;
 }

 .promo-card .btn-promo:hover {
     background: var(--brand-green);
     color: #fff;
 }

 /* Desktop margins & flex grid for the wrapper */
 @media (min-width: 768px) {
     .desktop-route-wrapper {
         display: flex;
         gap: 24px;
         margin: 22px 32px 0;
         align-items: stretch;
         /* Makes both cards the same height */
     }

     /* Overrides the standalone desktop margins when inside the wrapper */
     .desktop-route-wrapper .delivery-route-card {
         margin: 0;
         flex: 1;
         min-width: 0;
     }
 }

 /* ── IDLE ROUTE ANIMATION MAP ──────────────────────────────────────────── */
 #idleRouteMap {
     width: 100%;
     height: 100%;
     border-radius: inherit;
     position: absolute;
     inset: 0;
     z-index: 0;
 }

 .delivery-route-card.idle-anim-mode {
     position: relative;
     overflow: hidden;
     min-height: 220px;
 }

 .idle-map-overlay {
     position: absolute;
     inset: 0;
     z-index: 10;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: flex-end;
     padding-bottom: 18px;
     pointer-events: none;
     background: linear-gradient(to top, rgba(255, 255, 255, 0.72) 0%, transparent 55%);
 }

 .idle-map-cta {
     pointer-events: all;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     background: var(--brand-green);
     color: #fff;
     font-family: 'DM Sans', sans-serif;
     font-weight: 700;
     font-size: 0.78rem;
     padding: 9px 20px;
     border-radius: 50px;
     border: none;
     cursor: pointer;
     box-shadow: 0 4px 14px rgba(12, 131, 31, 0.30);
     transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
     text-decoration: none;
 }

 .idle-map-cta:hover {
     transform: translateY(-1px);
     box-shadow: 0 6px 20px rgba(12, 131, 31, 0.38);
     color: #fff;
 }

 .idle-map-cta:active {
     transform: scale(0.96);
 }

 /* Compact idle map CTA for mobile screens */
 @media (max-width: 767px) {
     .idle-map-overlay {
         padding-bottom: 12px;
     }

     .idle-map-cta {
         padding: 6px 14px;
         font-size: 0.72rem;
         gap: 5px;
     }

     .idle-map-cta i {
         font-size: 0.9rem;
     }
 }