/* ============================================================
   Grocery Storefront — Android Native Theme  v3.0
   Design: Material You · Android 14 · Dynamic Color
   Font: DM Sans — clean, modern, app-native feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&display=swap');


/* ═══════════════════════════════════════════════════════════
   WORDPRESS DEFAULT THEME OVERRIDE
   Uses .gsf-storefront-page body class (added by PHP)
   Compatible with all browsers — no :has() needed
   ═══════════════════════════════════════════════════════════ */

/* Hide WP admin bar */
#wpadminbar, #wp-admin-bar, .wp-admin-bar { display: none !important; }
html.wp-toolbar, html.admin-bar { padding-top: 0 !important; margin-top: 0 !important; }

/* ── Hide all WP theme chrome on our storefront pages ── */
body.gsf-storefront-page .site-header,
body.gsf-storefront-page header[id*="masthead"],
body.gsf-storefront-page .wp-site-blocks > header,
body.gsf-storefront-page header.wp-block-template-part,
body.gsf-storefront-page .wp-block-template-part[class*="header"],
body.gsf-storefront-page nav.navigation,
body.gsf-storefront-page .site-navigation,
body.gsf-storefront-page .main-navigation,
body.gsf-storefront-page .primary-navigation,
body.gsf-storefront-page .nav-primary,
body.gsf-storefront-page #site-navigation,
body.gsf-storefront-page footer.wp-block-template-part,
body.gsf-storefront-page .site-footer,
body.gsf-storefront-page #colophon,
body.gsf-storefront-page .wp-block-template-part[class*="footer"],
body.gsf-storefront-page .page-header,
body.gsf-storefront-page .entry-header,
body.gsf-storefront-page h1.entry-title,
body.gsf-storefront-page h1.page-title,
body.gsf-storefront-page .wp-block-post-title,
body.gsf-storefront-page .has-global-padding > .wp-block-post-title,
body.gsf-storefront-page [class*="wp-block-query-title"],
body.gsf-storefront-page .breadcrumb,
body.gsf-storefront-page .breadcrumbs,
body.gsf-storefront-page .comments-area,
body.gsf-storefront-page .post-navigation,
body.gsf-storefront-page .entry-footer,
body.gsf-storefront-page .sidebar,
body.gsf-storefront-page .widget-area,
body.gsf-storefront-page .woocommerce-breadcrumb { display: none !important; }

/* Flatten WP content wrappers */
body.gsf-storefront-page .wp-site-blocks,
body.gsf-storefront-page main.wp-block-group,
body.gsf-storefront-page .is-layout-flow,
body.gsf-storefront-page .site,
body.gsf-storefront-page .site-content,
body.gsf-storefront-page .site-main,
body.gsf-storefront-page #main,
body.gsf-storefront-page #content,
body.gsf-storefront-page #primary,
body.gsf-storefront-page .entry,
body.gsf-storefront-page .entry-content,
body.gsf-storefront-page .page-content,
body.gsf-storefront-page .container,
body.gsf-storefront-page .container-fluid,
body.gsf-storefront-page main {
  display: block !important;
  width: 100% !important; max-width: 100% !important;
  padding: 0 !important; margin: 0 !important;
  background: transparent !important;
  border: none !important; box-shadow: none !important;
  overflow: visible !important;
}

body.gsf-storefront-page {
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
}
/* ── Design Tokens ──────────────────────────────────────── */
:root {
  --c-brand:        #1DB954;
  --c-brand-dk:     #148C3E;
  --c-brand-xdk:    #0D6630;
  --c-brand-lt:     #E8F8EF;
  --c-brand-mid:    #A8E6BF;
  --c-brand-glass:  rgba(29,185,84,.12);
  --c-orange:   #FF6B35;
  --c-red:      #F44336;
  --c-red-lt:   #FFF0EE;
  --c-blue:     #2196F3;
  --c-yellow:   #FFC107;
  --c-purple:   #7C4DFF;
  --c-bg:       #F4F6F9;
  --c-bg2:      #ECEEF1;
  --c-surface:  #FFFFFF;
  --c-surface2: #F8F9FA;
  --c-border:   #E8EAED;
  --c-border2:  #DEE0E3;
  --c-text:     #0D1117;
  --c-text-md:  #2D3748;
  --c-text-muted: #64748B;
  --c-text-lt:  #A0AEC0;
  --r-xs:  4px; --r-sm:  8px; --r:     12px; --r-lg:  16px;
  --r-xl:  20px; --r-2xl: 28px; --r-full: 100px;
  --sh-xs:  0 1px 2px rgba(0,0,0,.06);
  --sh-sm:  0 1px 4px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.05);
  --sh:     0 2px 8px rgba(0,0,0,.09), 0 4px 16px rgba(0,0,0,.06);
  --sh-lg:  0 8px 24px rgba(0,0,0,.12), 0 16px 40px rgba(0,0,0,.08);
  --sh-green: 0 4px 16px rgba(29,185,84,.35);
  --sh-green-sm: 0 2px 8px rgba(29,185,84,.25);
  --ease-std:   cubic-bezier(.4,0,.2,1);
  --ease-decel: cubic-bezier(0,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --t-fast: .12s; --t: .20s; --t-slow: .32s;
  --max: 480px; --topbar-h: 96px; --nav-h: 64px; /* topbar-h is 2-row height */
  /* Safe-area aware nav — accounts for iOS home indicator & Android gesture bar */
  --nav-total: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  --content-pb: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* ── Global reset scoped to plugin ─────────────────────── */
.gsf-wrap *, .gsf-wrap *::before, .gsf-wrap *::after,
.gsf-sticky-cart *, .gsf-loc-modal-overlay *,
.gsf-vm-overlay *, .gsf-bottom-nav * { box-sizing: border-box; }

/* Horizontal overflow clip on body level (safe for fixed children) */
body { overflow-x: hidden; }

/* ─── Remove browser focus rings on mouse/touch interactions ───
   These cause the "blue border outside element" issue on Android Chrome.
   :focus-visible keeps keyboard nav accessible. ─────────────── */
.gsf-wrap *:focus,
.gsf-bottom-nav *:focus { outline: none !important; box-shadow: none !important; }
.gsf-wrap *:focus-visible { outline: 2px solid var(--c-brand) !important; outline-offset: 1px; }
/* Special: inputs keep focus ring */
.gsf-input:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(29,185,84,.18) !important; }

.gsf-wrap {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-text); background: var(--c-bg);
  min-height: 100vh;
  min-height: 100dvh;
  font-size: 14px; line-height: 1.5; max-width: var(--max);
  margin: 0 auto;
  /* CRITICAL: no overflow:hidden, no transform, no filter, no will-change here.
     overflow:hidden kills scroll. transform creates stacking context that traps fixed nav. */
  overflow: visible !important;  /* Never clip — scroll must be free */
  overflow-x: hidden;            /* Only clip horizontal */
  -webkit-font-smoothing: antialiased;
  position: static !important;
  isolation: auto !important;
}

/* ── Ripple ─────────────────────────────────────────────── */
.gsf-ripple { position: relative; overflow: hidden; cursor: pointer; }
.gsf-ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0); pointer-events: none;
  animation: _ripple .55s var(--ease-std) forwards;
}
@keyframes _ripple { to { transform: scale(4); opacity: 0; } }


/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   TOP BAR — BigBasket style (2-row compact header)
   Row 1: delivery time + address (left) | profile icon (right)
   Row 2: search bar (flex-1) | cart icon (right)
   ═══════════════════════════════════════════════════════════ */
.gsf-topbar {
  background: var(--c-brand);
  position: sticky; top: 0; z-index: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.gsf-topbar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 10px 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
}
/* ── Row 1 ── */
.gsf-tb-row1 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.gsf-loc-btn-bb {
  display: flex; flex-direction: column; align-items: flex-start;
  background: none; border: none; cursor: pointer; padding: 0; flex: 1; min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.gsf-tb-mins {
  display: flex; align-items: baseline; gap: 2px; line-height: 1;
}
.gsf-tb-lightning { font-size: 14px; line-height: 1; }
.gsf-tb-mins-num { font-size: 22px; font-weight: 900; color: #fff; line-height: 1; }
.gsf-tb-mins-label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.gsf-tb-addr-row {
  display: flex; align-items: center; gap: 3px; margin-top: 2px;
  max-width: 100%; overflow: hidden;
}
.gsf-tb-addr-icon { font-size: 11px; flex-shrink: 0; }
.gsf-tb-addr {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 200px;
}
.gsf-tb-chevron { font-size: 9px; color: rgba(255,255,255,.7); flex-shrink: 0; }
.gsf-tb-profile-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; text-decoration: none; flex-shrink: 0;
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.gsf-tb-profile-btn:hover { background: rgba(255,255,255,.28); }

/* ── Row 2 ── */
.gsf-tb-row2 {
  display: flex; align-items: center; gap: 8px;
}
.gsf-search-wrap { flex: 1; position: relative; min-width: 0; }
.gsf-search-svg-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-muted); pointer-events: none; flex-shrink: 0;
}
.gsf-search {
  width: 100%; height: 38px; background: #fff;
  border: none; border-radius: var(--r-full);
  padding: 0 14px 0 36px; font-size: 13px; font-family: inherit;
  color: var(--c-text); outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  transition: box-shadow var(--t);
}
.gsf-search::placeholder { color: var(--c-text-lt); font-size: 13px; }
.gsf-search:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.gsf-tb-cart-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; text-decoration: none; flex-shrink: 0; position: relative;
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.gsf-tb-cart-btn:hover { background: rgba(255,255,255,.28); }
.gsf-tb-cart-btn svg { flex-shrink: 0; }
.gsf-cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--c-orange); color: #fff;
  font-size: 9px; font-weight: 900;
  min-width: 17px; height: 17px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid var(--c-brand); line-height: 1;
}

/* Search results dropdown */
.gsf-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 700;
  background: var(--c-surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); max-height: 320px; overflow-y: auto; display: none;
  animation: _scale-in .15s var(--ease-decel) both;
}
.gsf-search-results.open { display: block; }
@keyframes _scale-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.gsf-sr-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  cursor: pointer; border-bottom: 1px solid var(--c-border); transition: background var(--t-fast);
}
.gsf-sr-item:last-child { border-bottom: none; }
.gsf-sr-item:active { background: var(--c-brand-glass); }
.gsf-sr-img { width: 38px; height: 38px; object-fit: contain; border-radius: var(--r-sm); background: var(--c-surface2); flex-shrink: 0; padding: 3px; }
.gsf-sr-body { flex: 1; min-width: 0; }
.gsf-sr-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsf-sr-price { font-size: 12px; font-weight: 800; color: var(--c-brand); }

/* Legacy compat — keep old IDs working in JS */
.gsf-loc-bar { display: none; }
.gsf-loc-bar-change { display: none; }
#gsf-loc-display { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ═══════════════════════════════════════════════════════════
   LOCATION MODAL
   ═══════════════════════════════════════════════════════════ */
.gsf-loc-modal-overlay {
  position: fixed; inset: 0; z-index: 9200; /* above nav (9000) */
  background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
}
.gsf-loc-modal-box {
  background: var(--c-surface); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  padding: 6px 20px 40px; width: 100%; max-width: var(--max);
  box-shadow: var(--sh-lg); animation: _slide-up .24s var(--ease-decel) both;
}
@keyframes _slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.gsf-loc-modal-handle { width: 32px; height: 4px; border-radius: 2px; background: var(--c-border2); margin: 8px auto 18px; }
.gsf-loc-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gsf-loc-modal-head h3 { font-size: 17px; font-weight: 800; margin: 0; }
.gsf-loc-modal-close {
  background: var(--c-surface2); border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted); font-family: inherit;
}
.gsf-loc-modal-desc { font-size: 13px; color: var(--c-text-muted); margin-bottom: 18px; line-height: 1.5; }
.gsf-loc-modal-status { margin-top: 10px; font-size: 12px; font-weight: 700; min-height: 18px; }
.gsf-loc-modal-status.error { color: var(--c-red); }
.gsf-loc-modal-status.ok    { color: var(--c-brand); }
.gsf-loc-detected-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-brand-lt); border: 1.5px solid var(--c-brand-mid);
  border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 14px;
}
.gsf-loc-detected-icon { font-size: 22px; flex-shrink: 0; }
.gsf-loc-detected-info { flex: 1; min-width: 0; }
.gsf-loc-detected-label { font-size: 10px; font-weight: 800; color: var(--c-brand-dk); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.gsf-loc-detected-addr  { font-size: 12px; font-weight: 600; color: var(--c-text-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-loc-redetect-btn {
  background: none; border: 1.5px solid var(--c-brand); color: var(--c-brand);
  border-radius: var(--r-full); padding: 5px 12px;
  font-size: 11px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  transition: all var(--t) var(--ease-std); font-family: inherit;
}
.gsf-loc-redetect-btn:hover { background: var(--c-brand); color: #fff; }


/* ═══════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════ */
/* ── Hero banner — compact green block ── */
.gsf-hero { overflow: hidden; position: relative; }
.gsf-hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 16px 18px;
  display: flex; align-items: center; gap: 12px; position: relative; z-index: 1;
}
.gsf-hero-text { flex: 1; }
.gsf-hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.15); color: rgba(255,255,255,.95);
  font-size: 9px; font-weight: 800; padding: 2px 8px;
  border-radius: var(--r-full); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .7px;
  border: 1px solid rgba(255,255,255,.2);
}
.gsf-hero h1 { font-size: 17px; font-weight: 900; color: #fff; margin: 0 0 4px; line-height: 1.2; }
.gsf-hero p  { font-size: 11px; color: rgba(255,255,255,.82); margin: 0 0 8px; }
.gsf-hero-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.gsf-hero-badges span {
  background: rgba(0,0,0,.14); color: rgba(255,255,255,.9);
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.14);
}
.gsf-hero-art { flex-shrink: 0; }
.gsf-hero-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}


/* ═══════════════════════════════════════════════════════════
   SECTION + CATEGORY TABS
   ═══════════════════════════════════════════════════════════ */
.gsf-section { padding: 16px 0 0; max-width: var(--max); margin: 0 auto; }
.gsf-section-head { display: flex; align-items: center; gap: 8px; padding: 0 14px 10px; }
.gsf-section-head h2 { font-size: 15px; font-weight: 800; margin: 0; flex: 1; }
.gsf-see-all { font-size: 12px; font-weight: 700; color: var(--c-brand); text-decoration: none; padding: 4px 10px; border-radius: var(--r-full); transition: background var(--t-fast); }
.gsf-see-all:hover { background: var(--c-brand-lt); }
.gsf-section-cat-img {
  width: 28px; height: 28px; min-width: 28px; min-height: 28px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block;
}

.gsf-cats-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; }
.gsf-cats-scroll::-webkit-scrollbar { display: none; }
.gsf-cat-pill, .gsf-cat-tab {
  display: flex; align-items: center; gap: 5px; padding: 7px 14px;
  border-radius: var(--r-full); border: 1.5px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-muted);
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; transition: all var(--t) var(--ease-std);
  font-family: inherit; box-shadow: var(--sh-xs);
  -webkit-tap-highlight-color: transparent;
}
.gsf-cat-pill img, .gsf-cat-tab img {
  width: 22px; height: 22px; min-width: 22px; min-height: 22px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: block;
}
.gsf-cat-pill:hover, .gsf-cat-tab:hover { border-color: var(--c-brand-mid); color: var(--c-brand-dk); }
.gsf-cat-pill.active, .gsf-cat-tab.active { border-color: var(--c-brand); background: var(--c-brand); color: #fff; box-shadow: var(--sh-green-sm); }
/* Hard-lock pill shape — must survive any global resets */
.gsf-cat-pill, .gsf-cat-tab {
  border-radius: var(--r-full) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1.2;
  min-height: 36px;
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID + CARDS
   ═══════════════════════════════════════════════════════════ */
.gsf-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 10px 16px; }
.gsf-products-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
.gsf-products-row::-webkit-scrollbar { display: none; }
.gsf-products-row .gsf-product-card { flex: 0 0 138px; }

.gsf-product-card {
  background: var(--c-surface); border-radius: var(--r-lg);
  overflow: visible; position: relative;
  box-shadow: var(--sh-sm); border: 1px solid var(--c-border);
  transition: box-shadow var(--t) var(--ease-std), transform var(--t) var(--ease-std);
  -webkit-tap-highlight-color: transparent;
}
.gsf-product-card:active { transform: scale(.97); }
.gsf-product-card:hover  { box-shadow: var(--sh); }

.gsf-pcard-img-wrap {
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  height: 100px; display: flex; align-items: center; justify-content: center;
  background: var(--c-surface2); padding: 8px;
}
.gsf-pcard-img-wrap img { max-height: 84px; max-width: 100%; object-fit: contain; transition: transform .3s var(--ease-std); }
.gsf-product-card:hover .gsf-pcard-img-wrap img { transform: scale(1.05); }
.gsf-pcard-no-img { font-size: 38px; opacity: .2; }

.gsf-pcard-badge {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 8px; font-weight: 900; padding: 2px 6px;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: .4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.gsf-badge-sale    { background: var(--c-orange); color: #fff; }
.gsf-badge-new     { background: var(--c-blue); color: #fff; }
.gsf-badge-organic { background: #2E7D32; color: #fff; }
.gsf-badge-hot     { background: var(--c-red); color: #fff; }
.gsf-badge-best    { background: var(--c-purple); color: #fff; }

.gsf-pcard-body { padding: 6px 8px 40px; }
.gsf-pcard-unit { font-size: 10px; color: var(--c-text-lt); font-weight: 600; margin-bottom: 2px; }
.gsf-pcard-pack-hint {
  font-size: 10px; font-weight: 800; color: var(--c-brand);
  margin-bottom: 2px; display: flex; align-items: center; gap: 3px;
}
.gsf-pcard-pack-hint::before { content: "📦"; font-size: 9px; }
.gsf-pcard-name {
  font-size: 11.5px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gsf-pcard-price-row { position: absolute; bottom: 6px; left: 8px; right: 8px; display: flex; align-items: center; justify-content: space-between; }
.gsf-pcard-price { font-size: 13px; font-weight: 900; color: var(--c-text); }
.gsf-pcard-mrp   { font-size: 10px; color: var(--c-text-lt); text-decoration: line-through; margin-left: 3px; font-weight: 500; }
.gsf-out-of-stock { font-size: 10px; color: var(--c-text-lt); font-weight: 600; background: var(--c-bg2); padding: 3px 8px; border-radius: var(--r-full); }

.gsf-add-btn {
  background: var(--c-brand); color: #fff; border: none; border-radius: var(--r-sm);
  width: 28px; height: 28px; font-size: 20px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast);
  flex-shrink: 0; line-height: 1; box-shadow: var(--sh-green-sm);
  -webkit-tap-highlight-color: transparent;
}
.gsf-add-btn:hover  { background: var(--c-brand-dk); box-shadow: var(--sh-green); }
.gsf-add-btn:active { transform: scale(.88); box-shadow: none; }
.gsf-add-btn.loading { opacity: .5; pointer-events: none; }

.gsf-qty-stepper {
  position: absolute; bottom: 8px; right: 8px;
  display: flex; align-items: center;
  background: var(--c-brand); border-radius: var(--r-sm);
  height: 32px; box-shadow: var(--sh-green-sm); overflow: hidden;
}
.gsf-qty-stepper button {
  background: none; border: none; color: #fff;
  width: 28px; height: 32px; font-size: 17px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast); font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.gsf-qty-stepper button:active { background: rgba(0,0,0,.2); }
.gsf-qty-val { color: #fff; font-size: 13px; font-weight: 800; min-width: 22px; text-align: center; }


/* ═══════════════════════════════════════════════════════════
   PACK-SIZE BOTTOM SHEET
   ═══════════════════════════════════════════════════════════ */
.gsf-vm-overlay {
  position: fixed; inset: 0; z-index: 9100;
  background: rgba(0,0,0,.55); display: flex; align-items: flex-end;
  backdrop-filter: blur(1px);
}
.gsf-vm-sheet {
  background: var(--c-surface); border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 6px 16px 40px;
  transform: translateY(100%); transition: transform .28s var(--ease-decel);
  box-shadow: 0 -4px 32px rgba(0,0,0,.2);
}
.gsf-vm-sheet-open { transform: translateY(0); }
.gsf-vm-handle { width: 36px; height: 4px; background: var(--c-border2); border-radius: 2px; margin: 8px auto 16px; }
.gsf-vm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.gsf-vm-title { font-size: 17px; font-weight: 800; }
.gsf-vm-close {
  background: var(--c-surface2); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted); font-family: inherit; transition: background var(--t-fast);
}
.gsf-vm-close:hover { background: var(--c-border); }
.gsf-vm-product-name { font-size: 13px; color: var(--c-text-muted); font-weight: 600; margin-bottom: 18px; }
.gsf-vm-opts { display: flex; flex-direction: column; gap: 8px; }
.gsf-vopt {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-surface2); border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg); padding: 13px 16px;
  cursor: pointer; transition: all var(--t) var(--ease-std);
  font-family: inherit; text-align: left; width: 100%;
}
.gsf-vopt:hover, .gsf-vopt:focus-visible { border-color: var(--c-brand); background: var(--c-brand-lt); }
.gsf-vopt:active { transform: scale(.98); }
.gsf-vopt-left  { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.gsf-vopt-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.gsf-vopt-name  { font-size: 14px; font-weight: 700; color: var(--c-text); }
.gsf-vopt-badge { display: inline-block; background: var(--c-orange); color: #fff; font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: var(--r-full); }
.gsf-vopt-price { font-size: 16px; font-weight: 900; color: var(--c-brand); }
.gsf-vopt-mrp   { font-size: 11px; color: var(--c-text-lt); text-decoration: line-through; }


/* ═══════════════════════════════════════════════════════════
   STICKY CART BAR
   ═══════════════════════════════════════════════════════════ */
.gsf-sticky-cart {
  position: fixed;
  bottom: var(--nav-total);   /* sits directly above the nav bar incl safe area */
  left: 0; right: 0;
  margin: 0 auto;
  width: 100%; max-width: var(--max);
  padding: 8px 14px 6px;
  z-index: 8900;              /* just below nav (9000) */
  pointer-events: none;
  will-change: transform;
  /* Ensure it NEVER goes behind the bottom nav */
  transform: none !important;
}
.gsf-sticky-inner {
  background: var(--c-text); border-radius: var(--r-xl);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 -2px 24px rgba(0,0,0,.35); pointer-events: all;
}
.gsf-sticky-info { color: #fff; }
.gsf-sticky-info span:first-child { display: block; font-size: 11px; opacity: .7; font-weight: 600; }
.gsf-sticky-info span:last-child  { display: block; font-size: 17px; font-weight: 900; }
.gsf-sticky-btn {
  background: var(--c-brand); color: #fff; padding: 9px 18px; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 800; text-decoration: none;
  transition: all var(--t) var(--ease-std); box-shadow: var(--sh-green-sm);
}
.gsf-sticky-btn:hover { background: var(--c-brand-dk); }


/* ═══════════════════════════════════════════════════════════
   SPINNER
   ═══════════════════════════════════════════════════════════ */
.gsf-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--c-border); border-top-color: var(--c-brand); animation: _spin .7s linear infinite; margin: 0 auto; }
@keyframes _spin { to { transform: rotate(360deg); } }
.gsf-loader-center { padding: 40px; display: flex; justify-content: center; }


/* ═══════════════════════════════════════════════════════════
   SHARED CHROME
   ═══════════════════════════════════════════════════════════ */
.gsf-page-header { max-width: var(--max); margin: 0 auto; padding: 14px 14px 0; display: flex; align-items: center; gap: 10px; }
.gsf-page-title { font-size: 20px; font-weight: 900; margin: 0; }
.gsf-back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--c-brand);
  text-decoration: none; padding: 7px 14px;
  border: 1.5px solid var(--c-brand); border-radius: var(--r-full);
  transition: all var(--t) var(--ease-std); white-space: nowrap; flex-shrink: 0;
}
.gsf-back-btn:hover { background: var(--c-brand); color: #fff; }

.gsf-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 16px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.gsf-card h3 { font-size: 14px; font-weight: 800; margin: 0 0 14px; }
.gsf-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gsf-card-head h3 { margin: 0; }

.gsf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 13px 20px; border-radius: var(--r-lg);
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
  border: 1.5px solid transparent; text-decoration: none;
  transition: all var(--t) var(--ease-std);
  -webkit-tap-highlight-color: transparent;
}
.gsf-btn:active { transform: scale(.97); }
.gsf-btn-primary { background: var(--c-brand); color: #fff; border-color: var(--c-brand-dk); box-shadow: var(--sh-green-sm); }
.gsf-btn-primary:hover { background: var(--c-brand-dk); box-shadow: var(--sh-green); }
.gsf-btn-outline { background: transparent; color: var(--c-brand); border-color: var(--c-brand); }
.gsf-btn-outline:hover { background: var(--c-brand-lt); }
.gsf-btn-full  { width: 100%; margin-top: 6px; }
.gsf-btn-sm    { padding: 8px 14px; font-size: 12px; border-radius: var(--r-full); }
.gsf-btn-danger { background: var(--c-red-lt); color: var(--c-red); border-color: #FFCDD2; }

.gsf-input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-lg);
  border: 1.5px solid var(--c-border); background: var(--c-surface2);
  font-size: 14px; font-family: inherit; color: var(--c-text); outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.gsf-input:focus { border-color: var(--c-brand); background: #fff; box-shadow: 0 0 0 3px rgba(29,185,84,.14); }
.gsf-input::placeholder { color: var(--c-text-lt); }
textarea.gsf-input { resize: vertical; min-height: 72px; }

.gsf-msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; margin-top: 8px; }
.gsf-msg.success { background: var(--c-brand-lt); color: var(--c-brand-xdk); }
.gsf-msg.error   { background: var(--c-red-lt); color: #C62828; }
.gsf-error-msg   { background: var(--c-red-lt); color: #C62828; border-radius: var(--r-sm); padding: 10px 14px; font-size: 13px; font-weight: 700; margin-top: 8px; }
.req { color: var(--c-red); }
.gsf-form-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.gsf-field label { display: block; font-size: 12px; font-weight: 700; color: var(--c-text-md); margin-bottom: 5px; }


/* ═══════════════════════════════════════════════════════════
   TOAST (Android snackbar)
   ═══════════════════════════════════════════════════════════ */
.gsf-toast {
  position: fixed;
  bottom: calc(var(--nav-total) + 12px);  /* above nav + gap */
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1C1C1E; color: #fff;
  padding: 12px 22px; border-radius: var(--r-full);  /* pill shape = Android snackbar */
  font-size: 13.5px; font-weight: 600; font-family: 'DM Sans', sans-serif;
  max-width: min(88vw, 340px); width: max-content; text-align: center;
  z-index: 9100; opacity: 0; transition: all .22s var(--ease-std);
  box-shadow: 0 4px 20px rgba(0,0,0,.4); pointer-events: none;
}
.gsf-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.gsf-toast-error   { background: var(--c-red); }
.gsf-toast-success { background: var(--c-brand); }


/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.gsf-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; /* use left/right instead of transform trick */
  width: 100%;
  /* On desktop, restrict to phone width centered */
  max-width: var(--max);
  margin: 0 auto; /* centering when max-width kicks in */
  left: 50%; transform: translateX(-50%); /* re-center with transform */
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid var(--c-border);
  display: flex; align-items: flex-start; /* align to top so padding-bottom creates safe zone */
  height: var(--nav-total);     /* total = nav height + safe area */
  z-index: 9000;                /* high z-index — above everything */
  box-shadow: 0 -1px 0 rgba(0,0,0,.06), 0 -8px 32px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0px); /* push content above home indicator */
  /* Ensure this is always visible — prevent any parent clipping */
  will-change: transform;       /* promote to GPU layer — prevents flickering on scroll */
}
.gsf-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--c-text-lt);
  font-size: 10px; font-weight: 700; letter-spacing: .2px;
  transition: color var(--t-fast), transform .1s var(--ease-std);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* no delay */
  padding: 8px 4px 4px;        /* bigger tap area */
  min-width: 44px; min-height: 44px; /* WCAG minimum touch target */
}
/* Press animation */
.gsf-nav-item:active { transform: scale(.88); }
.gsf-nav-item:hover { color: var(--c-text-muted); }
.gsf-nav-item.gsf-nav-active { color: var(--c-brand-dk); }
/* Material You pill indicator behind icon */
.gsf-nav-item.gsf-nav-active .gsf-nav-icon::before {
  content: ''; position: absolute; inset: -5px -12px;
  background: var(--c-brand-lt); border-radius: var(--r-full); z-index: -1;
}
.gsf-nav-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: visible; /* allow pill indicator to bleed out */
}
.gsf-nav-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.gsf-nav-label { font-size: 10px; font-weight: 700; line-height: 1; }

/* ─── Content bottom padding — clears the fixed nav bar + safe area ─── */
.gsf-wrap {
  padding-bottom: calc(var(--nav-total) + 24px) !important;
}

/* Individual page wrappers need additional clearance for sub-elements */
.gsf-shop-wrap,
.gsf-cart-wrap,
.gsf-checkout-wrap,
.gsf-orders-wrap,
.gsf-profile-wrap,
.gsf-cats-page-wrap {
  padding-bottom: var(--content-pb);
}


/* ═══════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════ */
.gsf-cart-wrap {
  /* Must clear: nav bar + sticky cart bar (approx 66px) + safe area + breathing room */
  padding: 0 0 calc(var(--content-pb) + 72px);
}
.gsf-cart-layout { padding: 12px; max-width: var(--max); margin: 0 auto; }
.gsf-clear-cart-btn { background: none; border: none; color: var(--c-red); font-size: 12px; font-weight: 700; cursor: pointer; padding: 5px 10px; border-radius: var(--r-full); transition: background var(--t-fast); font-family: inherit; }
.gsf-clear-cart-btn:hover { background: var(--c-red-lt); }
.gsf-cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-border); align-items: flex-start; transition: opacity .22s, transform .22s; }
.gsf-cart-item:last-child { border-bottom: none; }
.gsf-item-removing { opacity: 0; transform: translateX(24px); pointer-events: none; }
.gsf-ci-img { width: 66px; height: 66px; background: var(--c-surface2); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.gsf-ci-img img { max-width: 58px; max-height: 58px; object-fit: contain; }
.gsf-ci-info    { flex: 1; min-width: 0; }
.gsf-ci-name    { font-size: 13px; font-weight: 700; line-height: 1.3; }
.gsf-ci-variant { font-size: 11px; color: var(--c-brand); font-weight: 700; margin-top: 1px; }
.gsf-ci-unit    { font-size: 11px; color: var(--c-text-lt); font-weight: 600; margin-top: 1px; }
.gsf-ci-price   { font-size: 13px; font-weight: 800; margin-top: 4px; }
.gsf-ci-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.gsf-ci-stepper { display: flex; align-items: center; background: var(--c-brand); border-radius: var(--r-sm); height: 32px; overflow: hidden; box-shadow: var(--sh-green-sm); }
.gsf-ci-stepper button { background: none; border: none; color: #fff; width: 30px; height: 32px; font-size: 17px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: background var(--t-fast); -webkit-tap-highlight-color: transparent; }
.gsf-ci-stepper button:active { background: rgba(0,0,0,.2); }
.gsf-ci-qty { color: #fff; font-size: 13px; font-weight: 800; min-width: 24px; text-align: center; }
.gsf-ci-subtotal { font-size: 13px; font-weight: 900; }
.gsf-ci-remove { background: none; border: none; color: var(--c-text-lt); font-size: 14px; cursor: pointer; padding: 3px; line-height: 1; font-family: inherit; transition: color var(--t-fast); border-radius: 50%; }
.gsf-ci-remove:hover { color: var(--c-red); background: var(--c-red-lt); }

.gsf-bill-rows { display: flex; flex-direction: column; gap: 9px; }
.gsf-bill-row  { display: flex; justify-content: space-between; font-size: 13px; }
.gsf-bill-row span:first-child { color: var(--c-text-muted); font-weight: 600; }
.gsf-bill-row span:last-child  { font-weight: 800; }
.gsf-bill-discount span { color: var(--c-brand) !important; }
.gsf-bill-total { border-top: 1.5px solid var(--c-border); padding-top: 10px; margin-top: 3px; font-size: 15px !important; }
.gsf-bill-total span { font-weight: 900 !important; }
.gsf-free { color: var(--c-brand); font-weight: 900; }
.gsf-free-delivery-bar { margin: 14px 0 4px; }
.gsf-fdb-text { font-size: 12px; color: var(--c-text-muted); font-weight: 600; margin-bottom: 7px; }
.gsf-fdb-track { height: 5px; background: var(--c-border); border-radius: 3px; overflow: hidden; }
.gsf-fdb-fill  { height: 100%; background: var(--c-brand); border-radius: 3px; transition: width .4s var(--ease-std); }
.gsf-coupon-card h3 { margin-bottom: 10px; }
.gsf-coupon-row { display: flex; gap: 8px; }
.gsf-coupon-row .gsf-input { flex: 1; }
.gsf-coupon-row .gsf-btn   { flex-shrink: 0; padding: 12px 16px; }
.gsf-checkout-btn { font-size: 15px !important; font-weight: 900 !important; height: 54px; }
.gsf-safe-note { text-align: center; font-size: 11px; color: var(--c-text-lt); font-weight: 600; padding: 8px 0; }



/* ── Checkout: optional create-account block ── */
.gsf-create-acct-wrap {
  margin: 16px 0 4px;
  border: 2px solid #C3E6CB;
  border-radius: var(--r-lg);
  background: #F0FBF4;
  overflow: visible;
}
.gsf-create-acct-header {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px 11px;
}
.gsf-create-acct-icon { font-size: 22px; flex-shrink: 0; }
.gsf-create-acct-title {
  font-size: 14px; font-weight: 800; color: #1B5E20; line-height: 1.2;
}
.gsf-create-acct-sub {
  font-size: 11.5px; color: var(--c-text-muted); font-weight: 600;
  line-height: 1.3; margin-top: 2px;
}
.gsf-create-acct-fields {
  display: block !important;   /* always visible — no toggle */
  padding: 4px 16px 16px;
  border-top: 1.5px solid #C3E6CB;
  background: #F8FFF9;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.gsf-create-acct-fields .gsf-field { margin-top: 12px; }
.gsf-create-acct-fields .gsf-field:first-child { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════ */
.gsf-checkout-wrap { padding: 0 0 20px; }
.gsf-steps { display: flex; align-items: center; padding: 16px 16px 0; max-width: var(--max); margin: 0 auto; }
.gsf-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.gsf-step span:first-child { width: 32px; height: 32px; border-radius: 50%; background: var(--c-border); color: var(--c-text-lt); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; transition: all var(--t) var(--ease-std); }
.gsf-step.active span:first-child { background: var(--c-brand); color: #fff; box-shadow: var(--sh-green-sm); }
.gsf-step.done   span:first-child { background: var(--c-brand-lt); color: var(--c-brand-dk); }
.gsf-step-lbl { font-size: 10px; font-weight: 700; color: var(--c-text-lt); white-space: nowrap; }
.gsf-step.active .gsf-step-lbl { color: var(--c-brand); font-weight: 800; }
.gsf-step-divider { flex: 1; height: 2px; background: var(--c-border); margin: 0 4px 16px; }
.gsf-checkout-layout { padding: 10px 12px 0; max-width: var(--max); margin: 0 auto; }
.gsf-step-card { animation: _fade-up .2s var(--ease-decel) both; }
@keyframes _fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.gsf-gps-block { background: var(--c-brand-lt); border: 1.5px solid var(--c-brand-mid); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 16px; }
.gsf-gps-inner  { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gsf-gps-icon   { font-size: 26px; flex-shrink: 0; }
.gsf-gps-text   { flex: 1; min-width: 0; }
.gsf-gps-title  { font-size: 13px; font-weight: 800; color: var(--c-brand-xdk); }
.gsf-gps-sub    { font-size: 11px; color: var(--c-text-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsf-gps-btn { background: var(--c-brand); color: #fff; border: none; border-radius: var(--r-full); padding: 8px 14px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 4px; flex-shrink: 0; transition: background var(--t-fast); -webkit-tap-highlight-color: transparent; }
.gsf-gps-btn:hover { background: var(--c-brand-dk); }
.gsf-gps-btn:disabled { opacity: .6; cursor: not-allowed; }
.gsf-gps-status { font-size: 11px; font-weight: 700; min-height: 16px; }
.gsf-gps-status.ok    { color: var(--c-brand-dk); }
.gsf-gps-status.error { color: var(--c-red); }

.gsf-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.gsf-slot { padding: 10px 8px; border-radius: var(--r-lg); border: 1.5px solid var(--c-border); background: var(--c-surface2); cursor: pointer; transition: all var(--t) var(--ease-std); font-family: inherit; text-align: center; font-size: 12px; font-weight: 600; color: var(--c-text-md); }
.gsf-slot input[type=radio] { display: none; }
.gsf-slot:hover, .gsf-slot-active { border-color: var(--c-brand); background: var(--c-brand-lt); color: var(--c-brand-dk); font-weight: 800; }

.gsf-payment-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.gsf-pay-option { display: block; border-radius: var(--r-lg); border: 1.5px solid var(--c-border); background: var(--c-surface2); cursor: pointer; transition: all var(--t) var(--ease-std); }
.gsf-pay-option input[type=radio] { display: none; }
.gsf-pay-option-inner { display: flex; align-items: center; gap: 12px; padding: 13px 14px; }
.gsf-pay-icon  { font-size: 24px; flex-shrink: 0; }
.gsf-pay-title { font-size: 14px; font-weight: 800; }
.gsf-pay-desc  { font-size: 11px; color: var(--c-text-muted); font-weight: 500; }
.gsf-pay-check { margin-left: auto; color: var(--c-brand); font-size: 18px; font-weight: 900; }
.gsf-pay-active { border-color: var(--c-brand); background: var(--c-brand-lt); }
.gsf-step2-btns {
  display: flex; gap: 10px;
  /* NOT sticky — sits inline so it never covers content above */
  position: relative;
  background: var(--c-bg);
  margin: 16px 0 0;
  padding: 0 0 16px;
  z-index: 1;
}
.gsf-step2-btns .gsf-btn { flex: 1; }

.gsf-order-success { text-align: center; padding: 28px !important; }
.gsf-success-icon  { font-size: 60px; margin-bottom: 10px; }
.gsf-order-success h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.gsf-conf-detail { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.gsf-conf-detail span { color: var(--c-text-muted); font-weight: 600; }
.gsf-conf-detail strong { font-weight: 900; }
.gsf-success-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.gsf-co-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--c-border); align-items: center; }
.gsf-co-item:last-of-type { border-bottom: none; }
.gsf-co-img  { width: 42px; height: 42px; background: var(--c-surface2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.gsf-co-img img { max-width: 36px; max-height: 36px; object-fit: contain; }
.gsf-co-info  { flex: 1; }
.gsf-co-name  { font-size: 12px; font-weight: 700; }
.gsf-co-meta  { font-size: 11px; color: var(--c-text-muted); margin-top: 1px; }
.gsf-co-price { font-size: 13px; font-weight: 900; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════════
   ORDERS PAGE
   ═══════════════════════════════════════════════════════════ */
.gsf-orders-wrap { padding: 0 12px 20px; max-width: var(--max); margin: 0 auto; }
.gsf-order-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl); padding: 15px 16px; margin-bottom: 10px; box-shadow: var(--sh-sm); }
.gsf-oc-header  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.gsf-oc-number  { font-size: 14px; font-weight: 900; }
.gsf-oc-date    { font-size: 11px; color: var(--c-text-lt); font-weight: 500; margin-top: 2px; }
.gsf-oc-status  { padding: 4px 11px; border-radius: var(--r-full); font-size: 11px; font-weight: 800; flex-shrink: 0; }
.gsf-oc-body    { margin-bottom: 12px; }
.gsf-oc-meta    { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--c-text-muted); font-weight: 600; }
.gsf-oc-footer  { border-top: 1px solid var(--c-border); padding-top: 10px; }

.gsf-order-detail-layout { padding: 10px 12px 0; max-width: var(--max); margin: 0 auto; }
.gsf-order-status-banner { border: 1.5px solid; border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 16px; }
.gsf-osb-status { font-size: 14px; font-weight: 900; margin-bottom: 3px; }
.gsf-osb-num    { font-size: 13px; font-weight: 700; }
.gsf-osb-date   { font-size: 11px; color: var(--c-text-muted); margin-top: 2px; }

/* Tracking timeline (horizontal) */
.gsf-track { display: flex; align-items: flex-start; gap: 0; margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.gsf-track::-webkit-scrollbar { display: none; }
.gsf-track-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 60px; }
.gsf-track-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-bg2); border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all var(--t); position: relative; z-index: 1;
}
.gsf-track-step.done .gsf-track-icon    { background: var(--c-brand-lt); border-color: var(--c-brand); }
.gsf-track-step.current .gsf-track-icon { background: var(--c-brand); border-color: var(--c-brand-dk); box-shadow: 0 0 0 5px rgba(29,185,84,.2); }
.gsf-track-label { font-size: 10px; font-weight: 700; text-align: center; color: var(--c-text-lt); white-space: nowrap; }
.gsf-track-step.done .gsf-track-label,
.gsf-track-step.current .gsf-track-label { color: var(--c-brand-dk); }
.gsf-track-line { flex: 1; height: 2px; background: var(--c-border); margin-top: 18px; transition: background var(--t); align-self: flex-start; }
.gsf-track-line.done { background: var(--c-brand); }
.gsf-cancelled-note { background: var(--c-red-lt); color: #C62828; border-radius: var(--r-lg); padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: center; margin: 12px 0; }

.gsf-pay-status { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: var(--r-full); }
.gsf-pay-paid    { background: var(--c-brand-lt); color: var(--c-brand-xdk); }
.gsf-pay-pending { background: #FFF8E1; color: #E65100; }
.gsf-pay-failed  { background: var(--c-red-lt); color: #C62828; }
.gsf-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.gsf-detail-row:last-child { border-bottom: none; }
.gsf-detail-row span:first-child { color: var(--c-text-muted); font-weight: 600; }
.gsf-gps-coords { font-size: 10px; color: var(--c-text-lt); font-family: monospace; }
.gsf-login-required { padding: 56px 24px; text-align: center; }
.gsf-login-required p { font-size: 15px; font-weight: 600; color: var(--c-text-muted); margin: 0; }
.gsf-login-required a { color: var(--c-brand); font-weight: 800; }
.gsf-empty-cart { padding: 64px 24px; text-align: center; }
.gsf-empty-icon { font-size: 68px; margin-bottom: 14px; opacity: .45; }
.gsf-empty-cart h2 { font-size: 20px; font-weight: 900; margin: 0 0 7px; }
.gsf-empty-cart p  { color: var(--c-text-muted); font-weight: 500; margin-bottom: 22px; }


/* ═══════════════════════════════════════════════════════════
   OTP BANNER
   ═══════════════════════════════════════════════════════════ */
.gsf-otp-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #0D1117 0%, #1A2744 100%);
  color: #fff; border-radius: var(--r-xl);
  padding: 18px 20px; margin: 18px 0;
  box-shadow: 0 8px 24px rgba(13,17,23,.4);
}
.gsf-otp-icon { font-size: 30px; flex-shrink: 0; }
.gsf-otp-body { flex: 1; }
.gsf-otp-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #64748B; margin-bottom: 5px; }
.gsf-otp-digits { font-size: 40px; font-weight: 900; letter-spacing: 10px; font-family: 'Courier New', monospace; color: #E2E8F0; line-height: 1; }
.gsf-otp-hint { font-size: 11px; color: #64748B; margin-top: 7px; line-height: 1.5; }


/* ═══════════════════════════════════════════════════════════
   CATEGORIES PAGE — BigBasket style
   White bg · round uniform images · parent + sub-cat layout
   ═══════════════════════════════════════════════════════════ */
.gsf-cats-page-wrap {
  padding-top: 0;
  background: #fff;
  min-height: 100vh;
}

/* ── Sticky white topbar ── */
.gsf-cats-topbar {
  background: #fff;
  position: sticky; top: 0; z-index: 600;
  padding: 14px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--c-border);
}
.gsf-cats-topbar-title {
  font-size: 20px; font-weight: 900; color: var(--c-text);
  letter-spacing: -.3px;
}
.gsf-cats-search-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--c-text-muted); border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.gsf-cats-search-btn:active { background: var(--c-bg2); }

/* ── Parent section block ── */
.gsf-cpage-section {
  padding: 18px 0 4px;
}
.gsf-cpage-section-title {
  font-size: 16px; font-weight: 900; color: var(--c-text);
  padding: 0 14px 14px; margin: 0; letter-spacing: -.2px;
}

/* ── Grid: 4 columns with minmax so they're always equal ── */
.gsf-cpage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 0 14px 10px;
}

/* ── Card: round image + label below ── */
.gsf-cpage-card {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--c-text);
  gap: 8px;
  transition: transform var(--t) var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.gsf-cpage-card:active { transform: scale(.88); }

/* THE IMAGE CIRCLE — always identical size, always round */
.gsf-cpage-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;   /* ROUND — not square */
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 2.5px solid rgba(0,0,0,.06); /* subtle ring */
  background: #F0F7F0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.gsf-cpage-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  transition: transform .28s var(--ease-std);
}
.gsf-cpage-card:active .gsf-cpage-img-wrap img { transform: scale(1.08); }

/* Pastel bg per position so no-image cards look good too */
.gsf-cpage-card:nth-child(5n+1) .gsf-cpage-img-wrap { background: #E8F8EF; border-color: #A8E6BF40; }
.gsf-cpage-card:nth-child(5n+2) .gsf-cpage-img-wrap { background: #FEF3E7; border-color: #FFCC8040; }
.gsf-cpage-card:nth-child(5n+3) .gsf-cpage-img-wrap { background: #EEF2FF; border-color: #C7D2FE40; }
.gsf-cpage-card:nth-child(5n+4) .gsf-cpage-img-wrap { background: #FFF0F0; border-color: #FCA5A540; }
.gsf-cpage-card:nth-child(5n+5) .gsf-cpage-img-wrap { background: #F0FFFE; border-color: #99F6E440; }

.gsf-cpage-emoji { font-size: 26px; line-height: 1; }

.gsf-cpage-name {
  font-size: 10.5px; font-weight: 700; text-align: center;
  color: var(--c-text-md); line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
}

/* Section separator */
.gsf-cpage-section + .gsf-cpage-section {
  border-top: 6px solid #F5F5F5;
}

/* Legacy compat */
.gsf-topbar-title { color: #fff; font-size: 17px; font-weight: 800; }



/* ── BigBasket sidebar layout (when parent+sub-cat structure exists) ── */
.gsf-cats-layout {
  display: flex;
  min-height: calc(100vh - 54px); /* fill screen below topbar */
}

/* Left sidebar: narrow, sticky, scrollable list of parent names */
.gsf-cats-sidebar {
  width: 88px;
  min-width: 88px;
  background: #F5F5F5;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  position: sticky;
  top: 54px; /* below cats-topbar */
  height: calc(100vh - 54px - var(--nav-total));
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.gsf-cats-sidebar::-webkit-scrollbar { display: none; }

.gsf-cats-sidebar-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 12px 6px;
  background: none; border: none; border-left: 3px solid transparent;
  cursor: pointer; font-family: inherit;
  text-align: center; transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.gsf-cats-sidebar-item.active {
  background: #fff;
  border-left-color: var(--c-brand);
}
.gsf-cats-sidebar-item.active::after {
  content: '';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 7px;
  border-color: transparent transparent transparent #fff;
}

.gsf-cats-si-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center;
  border: 2px solid rgba(0,0,0,.07);
  background: #E8F8EF;
  flex-shrink: 0;
}
.gsf-cats-si-emoji { font-size: 26px; line-height: 1; }
.gsf-cats-si-name {
  font-size: 10px; font-weight: 700; line-height: 1.2;
  color: var(--c-text-muted); word-break: break-word;
}
.gsf-cats-sidebar-item.active .gsf-cats-si-name { color: var(--c-brand-dk); }

/* Right panel: white, scrollable, shows active parent's sub-cats */
.gsf-cats-right {
  flex: 1; min-width: 0;
  background: #fff;
  overflow-y: auto;
  padding-bottom: var(--nav-total);
}

.gsf-cats-panel { display: none; padding: 16px 0 8px; }
.gsf-cats-panel.active { display: block; }

/* Sub-cat grid in right panel — 3 cols (wider than flat 4-col) */
.gsf-cats-panel .gsf-cpage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 10px;
  padding: 0 12px 12px;
}



/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════ */
.gsf-profile-wrap { background: var(--c-bg); min-height: 100vh; }
.gsf-profile-hero {
  background: linear-gradient(160deg, var(--c-brand-dk) 0%, var(--c-brand) 100%);
  padding: 44px 24px 32px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.gsf-profile-hero::before, .gsf-profile-hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.gsf-profile-hero::before { width: 200px; height: 200px; top: -80px; right: -40px; }
.gsf-profile-hero::after  { width: 120px; height: 120px; bottom: -40px; left: -20px; }
.gsf-avatar {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.2);
  font-size: 30px; font-weight: 900; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; border: 3px solid rgba(255,255,255,.45); color: #fff;
  position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.gsf-profile-name  { font-size: 21px; font-weight: 900; color: #fff; position: relative; z-index: 1; }
.gsf-profile-email { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 3px; position: relative; z-index: 1; }
.gsf-profile-phone { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 4px; position: relative; z-index: 1; }

.gsf-profile-stats { display: flex; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.gsf-stat-card { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 8px; border-right: 1px solid var(--c-border); }
.gsf-stat-card:last-child { border-right: none; }
.gsf-stat-num { font-size: 26px; font-weight: 900; color: var(--c-brand); line-height: 1; }
.gsf-stat-lbl { font-size: 11px; font-weight: 600; color: var(--c-text-muted); margin-top: 4px; }

.gsf-profile-section { margin: 10px 0; }
.gsf-profile-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gsf-profile-section-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.gsf-profile-edit-btn { background: none; border: none; color: var(--c-brand); font-size: 13px; font-weight: 800; cursor: pointer; padding: 5px 0; text-decoration: none; font-family: inherit; }
.gsf-saved-addr-text { font-size: 13px; color: var(--c-text-md); line-height: 1.6; }
.gsf-no-addr-hint { font-size: 13px; color: var(--c-text-lt); font-style: italic; }
.gsf-mini-order { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--c-border); text-decoration: none; color: inherit; transition: opacity var(--t-fast); }
.gsf-mini-order:first-of-type { border-top: none; }
.gsf-mini-order:active { opacity: .7; }
.gsf-mo-left  { min-width: 0; }
.gsf-mo-num   { font-size: 13px; font-weight: 800; }
.gsf-mo-date  { font-size: 11px; color: var(--c-text-lt); margin-top: 2px; }
.gsf-mo-mid   { flex: 1; }
.gsf-mo-status { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-full); }
.gsf-mo-right  { font-size: 14px; font-weight: 800; color: var(--c-text-md); white-space: nowrap; }
.gsf-mo-arrow  { color: var(--c-text-lt); }
.gsf-logout-btn {
  width: 100%; padding: 16px; background: var(--c-surface);
  border: 1.5px solid #FFCDD2; border-radius: var(--r-xl);
  color: var(--c-red); font-size: 15px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; transition: background var(--t-fast);
}
.gsf-logout-btn:hover { background: var(--c-red-lt); }


/* ═══════════════════════════════════════════════════════════
   LOGIN / REGISTER SCREEN
   ═══════════════════════════════════════════════════════════ */
.gsf-login-screen {
  min-height: calc(100vh - var(--topbar-h));
  padding-bottom: calc(var(--nav-total) + 24px); /* Always clears nav including safe area */
  overflow-x: hidden;
}
.gsf-login-hero {
  text-align: center; padding: 52px 24px 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(29,185,84,.12) 0%, transparent 70%);
}
.gsf-login-logo {
  font-size: 62px; margin-bottom: 16px;
  filter: drop-shadow(0 6px 16px rgba(29,185,84,.4));
  animation: _bounce-in .5s var(--ease-spring) both;
}
@keyframes _bounce-in { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gsf-login-title { font-size: 28px; font-weight: 900; color: var(--c-text); margin: 0 0 8px; }
.gsf-login-sub   { font-size: 14px; color: var(--c-text-muted); margin: 0; }
.gsf-auth-card { margin: 0 14px; background: var(--c-surface); border-radius: var(--r-2xl); box-shadow: var(--sh-lg); border: 1px solid var(--c-border); overflow: hidden; }
.gsf-auth-tabs { display: flex; background: var(--c-surface2); padding: 5px; gap: 4px; }
.gsf-auth-tab { flex: 1; padding: 10px; border: none; background: none; border-radius: var(--r-lg); font-size: 14px; font-weight: 800; color: var(--c-text-muted); cursor: pointer; transition: all var(--t) var(--ease-std); font-family: inherit; }
.gsf-auth-tab.active { background: var(--c-surface); color: var(--c-brand); box-shadow: var(--sh-sm); }
.gsf-auth-panel { padding: 20px 18px 22px; }
.gsf-pw-wrap { position: relative; }
.gsf-pw-wrap .gsf-input { padding-right: 46px; }
.gsf-pw-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 15px; cursor: pointer; padding: 5px; line-height: 1; color: var(--c-text-lt); font-family: inherit; transition: color var(--t-fast); }
.gsf-pw-eye:hover { color: var(--c-text); }
.gsf-btn-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: _spin .7s linear infinite; }
.gsf-auth-footer { text-align: center; margin-top: 14px; }
.gsf-forgot-link { font-size: 13px; color: var(--c-brand); font-weight: 700; text-decoration: none; padding: 4px 8px; border-radius: var(--r-sm); transition: background var(--t-fast); }
.gsf-forgot-link:hover { background: var(--c-brand-lt); }
.gsf-gps-coords { font-size: 10px; color: var(--c-text-lt); font-family: monospace; }
.gsf-ip-mrp { font-size: 10px; font-weight: 600; color: var(--c-text-lt); text-decoration: line-through; }



/* ═══════════════════════════════════════════════════════════
   REGISTRATION FORM — full address layout
   ═══════════════════════════════════════════════════════════ */
.gsf-reg-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--c-text-muted);
  margin: 4px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.gsf-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gsf-btn-gps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: var(--c-brand-lt);
  border: 1.5px dashed var(--c-brand);
  border-radius: var(--r-lg);
  color: var(--c-brand-dk);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: 'DM Sans', sans-serif;
}
.gsf-btn-gps:hover { background: var(--c-brand-mid); }
.gsf-gps-status {
  font-size: 11.5px;
  color: var(--c-brand-dk);
  font-weight: 600;
  min-height: 16px;
  margin-bottom: 4px;
  text-align: center;
}
/* req asterisk */
.req { color: var(--c-red); font-weight: 900; }

/* ═══════════════════════════════════════════════════════════
   CATEGORY HORIZONTAL ROWS — product cards in rows
   ═══════════════════════════════════════════════════════════ */
/* Product rows are always 3-column grid (no horizontal scroll) */
.gsf-cat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 10px 14px;
}
.gsf-cat-row .gsf-product-card {
  flex: none; width: auto;   /* reset any lingering flex sizing */
}
/* Full-grid state (after "See All" or tab click) — same as default now */
.gsf-products-grid.gsf-cat-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow-x: visible;
  padding: 0 10px 14px;
}
.gsf-products-grid.gsf-cat-row .gsf-product-card {
  flex: none; width: auto;
}

/* See All link styling */
.gsf-cat-see-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-brand);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--r-full);
  transition: background var(--t-fast);
  white-space: nowrap;
  margin-left: auto;
}
.gsf-cat-see-all:hover { background: var(--c-brand-lt); }


/* ═══════════════════════════════════════════════════════════════
   CHECKOUT — SAVED ADDRESS PICKER
   ═══════════════════════════════════════════════════════════════ */

/* Top banner: "Use saved or current location?" */
.gsf-loc-change-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-brand-lt);
  border: 1.5px solid var(--c-brand);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
}
.gsf-loc-banner-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.gsf-loc-banner-text { flex: 1; }
.gsf-loc-banner-text strong { display: block; font-size: 13px; font-weight: 800; color: var(--c-text); margin-bottom: 3px; }
.gsf-loc-banner-text span  { font-size: 11.5px; color: var(--c-text-muted); }

/* Saved address card list */
.gsf-saved-addr-list { display: flex; flex-direction: column; gap: 10px; }

/* Individual saved address card */
.gsf-saved-addr-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 13px 12px;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  background: #fff;
  touch-action: manipulation;
}
.gsf-saved-addr-card:active { transform: scale(.985); }
.gsf-saved-addr-card.selected {
  border-color: var(--c-brand);
  background: var(--c-brand-lt);
  box-shadow: 0 0 0 3px rgba(29,185,84,.12);
}

/* Radio dot */
.gsf-sac-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  transition: border-color var(--t-fast);
}
.gsf-saved-addr-card.selected .gsf-sac-radio { border-color: var(--c-brand); }
.gsf-sac-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-brand);
  opacity: 0; transition: opacity var(--t-fast);
}
.gsf-saved-addr-card.selected .gsf-sac-dot { opacity: 1; }

/* Card body text */
.gsf-sac-body { flex: 1; min-width: 0; }
.gsf-sac-label {
  font-size: 12px; font-weight: 800; color: var(--c-brand-dk);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.gsf-sac-addr {
  font-size: 13px; font-weight: 600; color: var(--c-text);
  line-height: 1.4; word-break: break-word;
}
.gsf-sac-land { font-size: 11.5px; color: var(--c-text-muted); margin-top: 2px; }

/* Edit button on card */
.gsf-sac-edit {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  font-size: 15px; padding: 4px 6px;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  transition: background var(--t-fast);
  touch-action: manipulation;
  min-width: 32px; min-height: 32px;
}
.gsf-sac-edit:hover { background: var(--c-brand-lt); color: var(--c-brand); }

/* "Add another address" button */
.gsf-add-addr-btn {
  display: flex; align-items: center; gap: 10px;
  border: 2px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--c-brand);
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  transition: border-color var(--t-fast), background var(--t-fast);
  touch-action: manipulation;
}
.gsf-add-addr-btn:hover { border-color: var(--c-brand); background: var(--c-brand-lt); }
.gsf-add-addr-icon { font-size: 18px; font-weight: 400; }

/* OR divider */
.gsf-or-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px;
  color: var(--c-text-muted); font-size: 12px; font-weight: 600;
}
.gsf-or-divider::before,
.gsf-or-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

/* "Use current GPS" button */
.gsf-use-gps-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px;
  background: #fff; border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  font-size: 13px; font-weight: 700; color: var(--c-text);
  cursor: pointer; transition: all var(--t-fast);
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation;
}
.gsf-use-gps-btn:hover { border-color: var(--c-brand); background: var(--c-brand-lt); color: var(--c-brand); }
.gsf-use-gps-btn:active { transform: scale(.97); }

/* Inline edit/add form */
.gsf-addr-inline-form {
  margin-top: 14px;
  border: 1.5px solid var(--c-brand);
  border-radius: var(--r-xl);
  padding: 16px;
  background: var(--c-brand-lt);
}
.gsf-aif-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.gsf-aif-head strong { font-size: 14px; font-weight: 800; color: var(--c-text); }
.gsf-aif-close {
  background: none; border: none; font-size: 18px;
  color: var(--c-text-muted); cursor: pointer; padding: 4px;
  border-radius: 50%; line-height: 1;
  touch-action: manipulation;
}
.gsf-aif-close:hover { background: rgba(0,0,0,.07); }

/* When GPS address overrides saved — expand form fields */
.gsf-addr-form-expanded { display: block !important; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE AUDIT — v1.4.6 comprehensive responsive fixes
   ═══════════════════════════════════════════════════════════════ */

/* ── Root box model safety ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ── Prevent horizontal scroll on any page — allow vertical scroll ── */
html {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto; /* Explicitly allow vertical scroll */
}
body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: auto; /* Explicitly allow vertical scroll */
  /* NEVER use overflow:hidden on body — kills scroll entirely */
}

/* ── All images responsive by default ── */
.gsf-wrap img { max-width: 100%; height: auto; display: block; }

/* ── Input / select sizes — prevent iOS zoom (must be ≥16px) ── */
.gsf-wrap input,
.gsf-wrap select,
.gsf-wrap textarea {
  font-size: 16px !important; /* iOS zoom prevention */
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--r-lg);
}

/* ── Touch target minimum size (WCAG / Android guideline 48dp) ── */
.gsf-btn,
.gsf-add-btn,
.gsf-nav-item,
.gsf-sac-edit,
.gsf-pw-eye,
.gsf-auth-tab {
  min-height: 44px;
  touch-action: manipulation;
}

/* ── Prevent text select on tap-targets ── */
.gsf-bottom-nav,
.gsf-add-btn,
.gsf-nav-item,
.gsf-qty-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── Safe-area insets for notched phones ── */
.gsf-bottom-nav {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 6px);
}
.gsf-sticky-cart {
  /* Add safe area so it doesn't overlap gesture bar */
  bottom: calc(var(--nav-total) + 2px);
}

/* ── Product grid — 3 columns on mobile ── */
@media (max-width: 400px) {
  .gsf-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 8px;
  }
  .gsf-product-card { min-width: 0; }
}

/* ── Auth cards — full-width on very small screens ── */
@media (max-width: 360px) {
  .gsf-auth-card { margin: 0 8px; }
  .gsf-form-grid-2 { grid-template-columns: 1fr; }
  .gsf-checkout-layout { padding: 0 8px; }
}

/* ── Checkout step cards — no horizontal scroll ── */
.gsf-step-card { width: 100%; overflow-x: hidden; }
.gsf-checkout-layout { width: 100%; }
.gsf-checkout-main { min-width: 0; width: 100%; }

/* ── Order summary sidebar — no overflow ── */
.gsf-checkout-sidebar { width: 100%; overflow-x: hidden; }

/* ── Slots grid — wraps cleanly on small phones ── */
.gsf-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 340px) {
  .gsf-slots { grid-template-columns: 1fr; }
}

/* ── Profile hero — constrained on wide screens ── */
.gsf-profile-hero {
  padding: 28px 16px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Order items table — no overflow ── */
.gsf-order-item-row,
.gsf-order-line { word-break: break-word; }

/* ── Cart items — no text overflow ── */
.gsf-co-name,
.gsf-ci-name { word-break: break-word; max-width: 100%; }

/* ── OTP input — centered and properly sized ── */
.gsf-otp-big-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 28px !important;
  font-weight: 800;
  padding: 14px 12px;
  width: 100%;
  max-width: 240px;
  display: block;
  margin: 0 auto;
}
.gsf-otp-input-row {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* ── Resend code row ── */
.gsf-resend-row {
  text-align: center;
  margin-bottom: 16px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-muted);
}
.gsf-resend-btn {
  background: none; border: none; cursor: pointer;
  color: var(--c-brand); font-weight: 700; font-size: 13px;
  font-family: inherit; padding: 4px 8px;
  touch-action: manipulation;
}
.gsf-resend-timer { font-size: 12px; color: var(--c-text-muted); }

/* ── Password reset panels ── */
.gsf-reset-card {
  text-align: center;
  padding: 28px 20px 24px;
}
.gsf-reset-icon { font-size: 40px; margin-bottom: 12px; }
.gsf-reset-title { font-size: 22px; font-weight: 900; color: var(--c-text); margin: 0 0 8px; }
.gsf-reset-sub   { font-size: 13.5px; color: var(--c-text-muted); margin: 0 0 20px; line-height: 1.5; }
.gsf-back-panel-btn {
  display: block; background: none; border: none;
  color: var(--c-brand); font-weight: 700; font-size: 13px;
  cursor: pointer; padding: 0 0 12px; font-family: inherit;
  text-align: left; touch-action: manipulation;
}

/* ── Auth forgot link ── */
.gsf-auth-footer {
  text-align: center;
  padding-top: 12px;
}
.gsf-forgot-link {
  background: none; border: none; cursor: pointer;
  color: var(--c-text-muted); font-size: 13px;
  font-family: inherit; padding: 4px 8px;
  touch-action: manipulation;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gsf-forgot-link:hover { color: var(--c-brand); }

/* ── Section title in register form ── */
.gsf-reg-section-title {
  font-size: 12px; font-weight: 800;
  color: var(--c-brand-dk);
  text-transform: uppercase; letter-spacing: .7px;
  padding: 8px 0 4px; margin-top: 4px;
  border-top: 1px solid var(--c-border);
}
.gsf-reg-section-title:first-child { border-top: none; padding-top: 0; }

/* ── Message boxes ── */
.gsf-msg {
  font-size: 13px; font-weight: 600; padding: 10px 14px;
  border-radius: var(--r-lg); margin-top: 8px;
  line-height: 1.4;
}
.gsf-msg.success, .gsf-msg-success {
  background: #E8F8EF; color: #148C3E;
  border: 1px solid #A8E6BF;
}
.gsf-msg.error, .gsf-msg-error {
  background: #FFF0EE; color: #C62828;
  border: 1px solid #FFCCBC;
}

/* ── GPS status label ── */
.gsf-gps-status {
  font-size: 12.5px; font-weight: 600;
  color: var(--c-text-muted); padding: 4px 0;
  min-height: 20px;
}
.gsf-gps-status.ok    { color: var(--c-brand-dk); }
.gsf-gps-status.error { color: var(--c-red); }

/* ── View cart page — final item must not hide behind sticky bar ── */
.gsf-cart-layout {
  padding-bottom: calc(var(--nav-total) + 80px);
}

/* ── Steps bar — full width no overflow ── */
.gsf-steps {
  display: flex; align-items: center;
  padding: 14px 16px 10px;
  gap: 0; overflow: hidden; max-width: 100%;
}
.gsf-step-divider { flex: 1; height: 2px; background: var(--c-border); margin: 0 6px; }
.gsf-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--c-text-muted);
}
.gsf-step span:first-child {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c-border); color: var(--c-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  transition: background var(--t-fast), color var(--t-fast);
}
.gsf-step.active span:first-child { background: var(--c-brand); color: #fff; }
.gsf-step.done span:first-child   { background: var(--c-brand-dk); color: #fff; }
.gsf-step.active,
.gsf-step.done { color: var(--c-text); }

/* ── Form grid mobile ── */
.gsf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.gsf-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.gsf-field-full { grid-column: 1 / -1; }
@media (max-width: 380px) {
  .gsf-form-grid  { grid-template-columns: 1fr; }
  .gsf-form-grid-2{ grid-template-columns: 1fr; }
  .gsf-field-full { grid-column: 1; }
}

/* ── Inline address form inside checkout ── */
.gsf-addr-inline-form .gsf-form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 380px) {
  .gsf-addr-inline-form .gsf-form-grid { grid-template-columns: 1fr; }
}

/* ── GPS button full width ── */
.gsf-btn-gps {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%;
  background: var(--c-brand-lt); border: 1.5px solid var(--c-brand);
  color: var(--c-brand-dk); border-radius: var(--r-lg);
  padding: 11px 16px; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all var(--t-fast); touch-action: manipulation;
}
.gsf-btn-gps:hover { background: var(--c-brand); color: #fff; }

/* ── Full-width button ── */
.gsf-btn-full { width: 100%; display: block; text-align: center; }

/* ── Error message in step cards ── */
.gsf-error-msg {
  font-size: 13px; font-weight: 600;
  color: var(--c-red); background: var(--c-red-lt);
  border: 1px solid #FFCCBC;
  padding: 10px 14px; border-radius: var(--r-lg);
  margin: 8px 0; line-height: 1.4;
}

/* ── Saved address cards — proper touch targets ── */
.gsf-saved-addr-card { min-height: 64px; }

/* ── Order page mobile ── */
.gsf-order-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  word-break: break-word;
}

/* ── Typography scale for very small devices ── */
@media (max-width: 320px) {
  :root {
    --topbar-h: 54px;
  }
  .gsf-pcard-name   { font-size: 11px; }
  .gsf-pcard-price  { font-size: 14px; }
  .gsf-auth-card    { margin: 0 4px; }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP — phone frame on wide screens
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 520px) {
  .gsf-wrap {
    box-shadow: 0 0 0 1px var(--c-border), 0 20px 60px rgba(0,0,0,.1);
    min-height: 100vh;
    min-height: 100dvh;
  }
  /* On desktop: nav and sticky cart stay inside the phone-width column */
  .gsf-sticky-cart  { max-width: var(--max); }
  .gsf-bottom-nav   { max-width: var(--max); }
}

/* ── Mobile: nav spans full width ─── */
@media (max-width: 519px) {
  .gsf-bottom-nav {
    max-width: 100vw;
    left: 0;
    transform: none;  /* no centering needed — full width on mobile */
    z-index: 9000;
  }
}
