/* nav-styles — Bottom nav, splash, product grid */
      /* -------------------------------------------------------
         NAVIGATION BUTTON STYLES (from original backup)
         ------------------------------------------------------- */

       .ni {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        cursor: pointer;
        color: var(--md-on-surface);
        position: relative;
        padding-top: 6px;
        transition: color 0.2s;
      }

      #nav-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--md-primary);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 700;
      }

      #nav-badge.show {
        display: flex;
      }

      .ni.on {
        color: var(--md-primary);
      }

      .ni-pill {
        width: 48px;
        height: 28px;
        border-radius: 14px;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .ni.on .ni-pill {
        background: rgba(255, 107, 0, 0.12);
      }

      .ni svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .ni.on svg {
        transform: scale(1.08);
      }

      .ni-lbl {
        font-size: 11px;
        font-weight: 500;
      }

      /* NAV CONTAINER - Fixed at bottom, within app borders */
      nav#nav-home {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: min(430px, 100vw) !important;
        max-width: 100vw !important;
        height: calc(60px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        display: flex;
        z-index: 999 !important;
        background: #fffaf7 !important;
        padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto !important;
        border-top: 1px solid var(--border);
      }

      /* Navigation is permanently visible across the app shell. Do not hide it
         via a body class on browse/detail/category screens. */

/* M3 PRODUCTS PAGE */



/* NOTE: #screen-products .search-full-bar is 100% verbatim in screens/products-search.css — do not override */
#sc-catpage .search-full-bar input,
#screen-top-sellers .search-full-bar input,
#screen-popular .search-full-bar input { flex: 1; border: none; background: transparent; color: #1a110a; padding: 0 14px; font-size: 16px; font-weight: 500; letter-spacing: 0.01em; outline: none; min-width: 0; }
#sc-catpage .search-full-bar input::placeholder,
#screen-top-sellers .search-full-bar input::placeholder,
#screen-popular .search-full-bar input::placeholder { color: rgba(209, 69, 0, 0.6); font-size: 15px; }




/* Homepage small avatar in search bar */
.home-search-shell .search-bar .avatar-chip,
.search-full-bar .avatar-chip {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.home-search-shell .search-bar .avatar-chip img,
.search-full-bar .avatar-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Profile card avatar image */
#p-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Edit-profile avatar image */
#ep-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Edit-profile avatar background should respect the user's actual image */
#sc-edit-profile .ep-av {
  background-image: none !important;
  background-size: cover !important;
  background-position: center !important;
}

#screen-products .search-pill-m3 { display: none; }

.icon-btn svg { width: 24px; height: 24px; }
.chip-row { display: flex; gap: 10px; padding: 8px 12px; overflow-x: auto; white-space: nowrap; scroll-behavior: smooth; }

/* ORDERS PAGE M3 */
.top-app-bar{
  padding:0 4px;
  height:64px;
  display:flex;align-items:center;gap:4px;
  background:var(--md-surface-1);
  position:relative;
  flex-shrink:0;
}
.top-app-bar.large{
  height:auto;flex-direction:column;align-items:flex-start;
  padding:16px 16px 20px;gap:8px;
  background:var(--md-surface-1);
}
.top-app-bar.large .bar-title{
  font-family:var(--font-display);
  font-size:28px;font-weight:400;
  color:#111111;
  line-height:1.2;
}
.top-app-bar.center-aligned{
  justify-content:space-between;
}
.top-app-bar .bar-title{
  font-family:var(--font-display);
  font-size:22px;font-weight:400;
  color:#111111;
  flex:1;text-align:center;
}
.scroll-body { overflow-y: auto; overflow-x: hidden; flex: 1; padding: 16px 16px 0; padding-bottom: calc(var(--nav-h, 80px) + 96px); width: 100%; box-sizing: border-box; }

#screen-products .chip-row { display: flex; gap: 10px; padding: 10px 16px 12px; overflow-x: auto; white-space: nowrap; scroll-behavior: smooth; background: #FFF8F6; border-radius: 20px; border: 1px solid rgba(209, 69, 0, 0.12); box-shadow: 0 10px 22px rgba(24, 13, 5, 0.06); margin: 0 0 12px; }
#screen-products .chip-row::-webkit-scrollbar { display: none; }

#screen-products .filter-chip {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(209, 69, 0, 0.12);
  background: rgba(255, 246, 240, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #672700;
  font-family: 'Inter', 'Google Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  box-shadow: 0 12px 24px rgba(24, 13, 5, 0.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}
#screen-products .filter-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 65%);
  opacity: 0.56;
  pointer-events: none;
}
#screen-products .filter-chip:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(24, 13, 5, 0.14);
  border-color: rgba(255, 141, 57, 0.34);
}
#screen-products .filter-chip:focus-visible {
  outline: 3px solid rgba(255, 106, 40, 0.28);
  outline-offset: 3px;
}
#screen-products .filter-chip.active {
  background: linear-gradient(135deg, #ff6d2c 0%, #ff8b4f 100%);
  border-color: rgba(255, 255, 255, 0.32);
  border-width: 1.5px;
  color: #fff;
  box-shadow: 0 18px 38px rgba(255, 106, 40, 0.22), inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: scale(1.02);
  position: relative;
}
#screen-products .filter-chip.active:hover {
  background: linear-gradient(135deg, #ff7a3f 0%, #ff9c6a 100%);
}

#screen-products .scroll-body { padding-left: 0; padding-right: 0; }
html body #shell #screen-products .prod-grid-m3,
html body #shell #screen-top-sellers .prod-grid-m3,
html body #shell #screen-popular .prod-grid-m3,
html body #shell #sc-catpage .prod-grid-m3,
#screen-products .prod-grid-m3,
#screen-top-sellers .prod-grid-m3,
#screen-popular .prod-grid-m3,
#sc-catpage .prod-grid-m3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 12px;
  background: #FFF8F6 !important;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
#sc-catpage {
  background: #FFF8F6 !important;
}
#sc-catpage .scroll-body {
  background: #FFF8F6 !important;
  padding: 0 !important;
}
html body #shell .prod-card-m3,
.prod-card-m3 { width: 100%; max-width: 100%; height: auto; min-height: 0; background: #FFFFFF !important; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 14px rgba(28, 14, 6, 0.06); border: 1px solid rgba(28, 14, 6, 0.06); transition: box-shadow 200ms cubic-bezier(.2,0,0,1), transform 200ms cubic-bezier(.2,0,0,1), border-color 200ms ease, background 200ms ease; cursor: pointer; position: relative; display: flex; flex-direction: column; will-change: transform, box-shadow; }

#screen-products .prod-card-m3,
#screen-top-sellers .prod-card-m3,
#screen-popular .prod-card-m3 {
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(28, 14, 6, 0.06) !important;
}
.prod-card-m3:hover { box-shadow: 0 12px 24px rgba(116, 64, 31, 0.12), 0 3px 10px rgba(234, 88, 12, 0.10); transform: translateY(-4px); border-color: rgba(234, 88, 12, 0.32); background: linear-gradient(180deg, #fffdfb 0%, #fff5f0 100%); }
.prod-card-m3:active { transform: scale(.98); }
html body #shell .prod-img-wrap,
.prod-img-wrap { position: relative; width: 100%; height: 162px; min-height: 162px; padding: 0; border-radius: 16px 16px 0 0; background: #FFFFFF !important; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; flex-shrink: 0; box-sizing: border-box; }
.prod-img-wrap img, .prod-img-wrap .product-img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 0; box-sizing: border-box; font-size: 0; visibility: visible !important; display: block !important; border-radius: 10px; transition: transform 200ms ease; background: #FFFFFF !important; }
.prod-card-m3:hover .prod-img-wrap img,
.prod-card-m3:hover .prod-img-wrap .product-img { transform: scale(1.03); }
.prod-img-wrap > .prod-name-m3, .prod-img-wrap > .prod-name { display: none !important; }
.product-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #FFFFFF; font-size: 60px; }
.prod-fab{position:absolute;bottom:8px;right:8px;width:44px;height:44px;background:linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;border-radius:999px;box-shadow:0 6px 14px rgba(255,69,0,0.24) !important;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background var(--md-duration-short),transform var(--md-duration-short),box-shadow var(--md-duration-short);color:white !important;font-size:11px;font-weight:700;}
.prod-fab:hover { background:linear-gradient(135deg, #d64000 0%, #f06a00 100%) !important; transform:translateY(-1px); box-shadow:0 8px 18px rgba(255,69,0,0.28) !important; }
.prod-fab:active { transform: scale(0.94); box-shadow:0 2px 8px rgba(232, 80, 10, 0.2) !important; }
.prod-fab svg { width: 18px; height: 18px; fill: white !important; }

button.prod-fab,
button.prod-fab.prod-fab-stepper,
#screen-products .prod-fab,
#screen-home .products-grid .prod-fab,
#screen-detail .detail-add-cart {
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 14px rgba(255,69,0,0.24) !important;
}
#screen-detail .detail-add-cart:hover,
button.prod-fab:hover {
  background: linear-gradient(135deg, #d64000 0%, #f06a00 100%) !important;
  box-shadow: 0 8px 18px rgba(255,69,0,0.28) !important;
}

  #screen-detail {
    position: relative;
    background: var(--md-surface-1) !important;
    background-image: linear-gradient(180deg, var(--md-surface-1) 0%, #fff8f4 100%) !important;
  }
  #screen-detail #detail-scroll {
    background: transparent !important;
  }
  #screen-detail .top-app-bar {
    position: relative;
    background: linear-gradient(115deg, #1c1410 0%, #47200f 66%, #a83c10 145%) !important;
    border-bottom: none !important;
    box-shadow: 0 12px 28px rgba(28, 20, 16, 0.18) !important;
    min-height: 68px !important;
    height: 68px !important;
  }
  #screen-detail .top-app-bar::before { display: none !important; }
  /* detail back/whatsapp buttons — match other top-app-bar icon-btns across the app */
  #screen-detail .top-app-bar .icon-btn:not(:last-child) {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: none !important;
    color: #fff !important;
    fill: #fff !important;
  }
  #screen-detail .top-app-bar .icon-btn:not(:last-child) {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: none !important;
    color: #fff !important;
    fill: #fff !important;
  }
  #screen-detail .top-app-bar .icon-btn:hover { background: rgba(255,255,255,0.14) !important; }
  #screen-detail .top-app-bar .icon-btn:active { background: rgba(255,255,255,0.18) !important; }
  #screen-detail .bar-title { color: #fff !important; font-size: 22px !important; font-weight: 400 !important; font-family: var(--font-display) !important; flex: 1 !important; text-align: center !important; }
  #screen-detail #detail-bar-title-text { color: #fff !important; }
  #detail-scroll { padding: 0; }
  #screen-detail .detail-img-area .prod-badges { top: 10px; left: 24px; margin: 0; padding: 0; z-index: 3; }
  .detail-img-area {
    position: relative;
    margin: 0 18px 6px !important;
    width: auto !important;
    max-height: none !important;
    height: 280px !important;
    aspect-ratio: auto !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--md-outline-var);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    background: #ffffff !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .detail-carousel-media { position: relative; display: block; width: 100%; height: 100%; }
  .detail-carousel-track { display:flex; width:100%; height:100%; transition:transform .4s cubic-bezier(.4,0,.2,1); }
  .detail-carousel-slide { flex:0 0 100%; width:100%; height:100%; display:flex; align-items:flex-start; justify-content:center; position:relative; overflow:hidden; padding:0 24px; box-sizing:border-box; }
  .detail-carousel-slide img { width:100%; max-width:210px; height:100%; display:block; object-fit:contain; object-position:top center; margin:0 auto; filter:drop-shadow(0 6px 14px rgba(13,6,0,.10)); }
.prod-info { padding: 12px 12px 14px; position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 0; margin-top: 0; background: var(--md-surface-2) !important; }
#screen-home .prod-info,
#screen-home .products-grid .prod-info,
#home-products-grid .prod-info {
  background: var(--md-surface-2) !important;
}

#screen-home #top-sellers-carousel .prod-card-m3,
#screen-home #home-popular-grid .prod-card-m3,
#screen-home #home-products-grid .prod-card-m3 {
  height: 100% !important;
  align-self: stretch !important;
}

#screen-home #top-sellers-carousel .prod-img-wrap,
#screen-home #home-popular-grid .prod-img-wrap,
#screen-home #home-products-grid .prod-img-wrap {
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

#screen-home #top-sellers-carousel .prod-info,
#screen-home #home-popular-grid .prod-info,
#screen-home #home-products-grid .prod-info {
  flex: 1 1 auto !important;
  align-self: stretch !important;
}

#screen-home .products-grid .prod-img-wrap,
#home-products-grid .prod-img-wrap {
  height: 200px !important;
  min-height: 200px !important;
}

#screen-home .products-grid .prod-img-wrap img,
#home-products-grid .prod-img-wrap img,
#screen-home .products-grid .prod-img-wrap .product-img,
#home-products-grid .prod-img-wrap .product-img {
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
.prod-name-m3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #111111; margin-bottom: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: .02em; min-height: 2.6em; }
.prod-unit-m3 { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; min-height: 29px; align-items: flex-start; }
.prod-unit-m3 span { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; background: rgba(79, 127, 244, 0.12); border: 1px solid rgba(79, 127, 244, 0.18); color: #1D3F7F; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.prod-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.prod-price-block { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.prod-savings-row { min-height: 22px; display: flex; align-items: center; margin-top: 0; }
.prod-savings-row-empty { visibility: hidden; }
.prod-price-row .prod-fab { position: static; margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.prod-price-row .prod-fab svg { width: 18px; height: 18px; }
.prod-price-row .prod-qty-ctrl { position: static; margin-left: auto; }

/* Product-card standard: every add button sits at the info panel bottom-right. */
.prod-info .prod-price-row {
  position: static;
  flex: 0 0 auto;
  align-items: flex-end;
  min-height: 44px;
  padding-right: 0;
  margin-top: auto;
}

.prod-info .prod-price-row .prod-fab {
  position: static !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

/* Keep the homepage quantity control as a visible boxed pill in every card renderer. */
#screen-home .products-grid .prod-qty-ctrl {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  height: 29px !important;
  min-height: 29px !important;
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.35) !important;
  z-index: 4 !important;
}

#screen-home .products-grid .prod-qty-ctrl .pqb {
  width: 22px !important;
  height: 29px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#screen-home .products-grid .prod-qty-ctrl .pqn {
  min-width: 16px !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* ============================================================================
   PRODUCTS SCREEN QUANTITY CONTROLS — Force Orange
   ============================================================================ */
#screen-products .products-grid .prod-qty-ctrl {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  height: 29px !important;
  min-height: 29px !important;
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.35) !important;
  z-index: 4 !important;
}

#screen-products .products-grid .prod-qty-ctrl .pqb {
  width: 22px !important;
  height: 29px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#screen-products .products-grid .prod-qty-ctrl .pqn {
  min-width: 16px !important;
  color: #fff !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

/* Match product add and quantity controls to the floating Sign In button. */
#screen-home .products-grid .prod-fab,
#screen-products .prod-fab,
#screen-home .products-grid .prod-qty-ctrl,
#screen-products .products-grid .prod-qty-ctrl {
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
}

.prod-save-msg { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 2px; font-family: 'Google Sans', sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1; color: #1B8A4B; background: #E7F5EA; padding: 4px 8px; border-radius: 8px; letter-spacing: .2px; }
.prod-price-m3,
.prod-price,
.h-price,
.seller-card-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #0D0600 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.prod-price-m3 { color: #ff4500 !important; margin-top: 0; }

.ipoo-price-kes {
  color: #ff4500 !important;
  font-size: 12px;
  font-weight: 500;
}

.ipoo-price-amt {
  color: #0D0600 !important;
  font-size: 16px;
  font-weight: 800;
}


/* Tighter product-card spacing for faster scanning */
.unit-row { margin-top: 12px; }
.product-bottom { margin-top: 10px; }
/* Ensure product name uses medium weight and normal case on products screen */
#screen-products .prod-name-m3,
#screen-products .prod-name {
  font-weight: 600 !important;
  text-transform: none !important;
}

.ipoo-price-amt {
  color: #0D0600 !important;
}
#screen-products .prod-actions-row { display: flex !important; align-items: center !important; gap: 4px !important; margin-top: 6px !important; }
.prod-stock-chip { display: inline-block; margin-top: 0; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--md-shape-full); }
.prod-stock-chip-out{color:var(--md-error);background:#FCEAE9;}
.prod-stock-chip-low{color:#B25608;background:#FFF4E5;}
.prod-stock-chip-in{color:#1B8A4B;background:#E7F5EA;}

  .prod-badges { position: absolute; top: 0 !important; left: 0 !important; display: flex; flex-direction: column; gap: 6px; z-index: 20; align-items: flex-start; margin: 0 !important; padding: 0 !important; }
  .prod-badge { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 13px; gap: 6px; font-family: 'Google Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 1; color: #fff; text-transform: none; letter-spacing: .2px; border-radius: 16px; white-space: nowrap; width: auto; box-shadow: 0 3px 8px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.08); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25); animation: badgePop .3s cubic-bezier(.34,1.56,.64,1) both; }
  .prod-badge svg { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
  .prod-badge-hotsale { background: linear-gradient(135deg, #FF3D6E, #E01050); }
  .prod-badge-deal { background: linear-gradient(135deg, #FF7A18, #E8500A); }
  .prod-badge-offer { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
  .prod-badge-new { background: linear-gradient(135deg, #0EA5E9, #0369A1); }
  .prod-badge-sale { background: linear-gradient(135deg, #F43F5E, #BE123C); }
  .prod-badge-bestseller { background: linear-gradient(135deg, #F5B400, #D89000); color: #2b1a00; }
  .prod-badge-info { background: linear-gradient(135deg, #10B981, #047857); }
  .prod-badge-sponsored { background: linear-gradient(135deg, #4F7FF4, #0D4CC8); color: #fff; }

  .prod-badge-savings-flat { display: inline-flex; align-items: center; gap: 5px; background: #10462F; color: #E9F7EF !important; border: none; box-shadow: none; border-radius: 6px; padding: 4px 8px 4px 7px; font-family: 'Google Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; line-height: 1; white-space: nowrap; }
  .prod-badge-savings-flat .dot { width: 5px; height: 5px; border-radius: 50%; background: #FFD166; flex-shrink: 0; }
  .prod-savings-row { display: flex; margin-top: 4px; }
  .prod-badge-savings-flat span.ipoo-price-kes.ipoo-price-kes.ipoo-price-kes.ipoo-price-kes,
  .prod-badge-savings-flat span.ipoo-price-amt.ipoo-price-amt.ipoo-price-amt.ipoo-price-amt,
  .prod-badge-savings-ribbon span.ipoo-price-kes.ipoo-price-kes.ipoo-price-kes.ipoo-price-kes,
  .prod-badge-savings-ribbon span.ipoo-price-amt.ipoo-price-amt.ipoo-price-amt.ipoo-price-amt { color: #E9F7EF !important; }

  .prod-badge-savings-ribbon { position: absolute; top: 0; left: 0; background: #10462F; color: #E9F7EF; border: none; font-family: 'Google Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 5px 9px 5px 8px; line-height: 1; white-space: nowrap; border-bottom-right-radius: 8px; box-shadow: none; z-index: 21; }
  .prod-badge-savings-ribbon::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 0; border-left: 6px solid transparent; border-top: 6px solid #0A2D1E; }

  @keyframes badgePop {
    0% {
      transform: scale(0.92);
      opacity: 0;
    }
    60% {
      transform: scale(1.05);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }
  }

/* Ensure category-level button rows match page background and spacing
   Targets primary and level-2 rows inside *-filters that use overflow-x */
[id$="-filters"] > div[style*="overflow-x: auto"] {
  background: transparent !important;
  padding-left: 12px !important;
  padding-right: 8px !important;
}

/* ============================================================================
   SPLASH SCREEN STYLES (NEW)
   ============================================================================ */
#splash-screen {
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--splash-bg, #0d0600);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

/* Ambient background glow */
.glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.18) 0%, rgba(255, 77, 0, 0.06) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -58%) scale(1.1); }
}

/* Grid background pattern (replaces plain dark bg) */
.splash-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(255,77,0,.06) 48px, rgba(255,77,0,.06) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,77,0,.06) 48px, rgba(255,77,0,.06) 49px);
}

/* Badge */
.splash-badge {
  position: absolute;
  top: 52px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  animation: badgeBounce 1s cubic-bezier(.34,1.56,.64,1) .5s both;
  z-index: 2;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--md-primary, #ff4d00);
  flex-shrink: 0;
  animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,0,.55); }
  70%  { box-shadow: 0 0 0 6px rgba(255,77,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,0,0); }
}

.badge-text {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-text strong {
  color: #fff;
  font-weight: 800;
}

@keyframes badgeBounce {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* Main logo container */
.logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(48px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* SVG Pin Logo */
.logo-float {
  animation: logoFloat 3s ease-in-out infinite;
}

.logo {
  width: 185px;
  height: auto;
  display: block;
  margin-bottom: 48px;
  opacity: 0;
  animation: logoReveal 900ms cubic-bezier(.16, 1, .3, 1) forwards;
}

.pin-svg {
  width: 185px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(255, 77, 0, 0.3));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(.82) translateY(18px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* IPOO wordmark */
.wordmark {
  margin-top: 32px;
  font-size: 64px;
  font-weight: 900;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff !important;
  background-clip: border-box;
  letter-spacing: 12px;
  text-indent: 12px;
  line-height: 1;
  animation: slideIn 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Orange accent bar under wordmark */
.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--md-primary);
  border-radius: 3px;
  margin: 16px auto 0;
  animation: barExpand 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.5);
}
@keyframes barExpand {
  from { width: 0; opacity: 0; }
  to { width: 48px; opacity: 1; }
}

/* Tagline */
.tagline {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #FEF1EE;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  text-align: center;
  animation: fadeIn 0.6s 0.7s ease both;
  opacity: 0.8;
}

/* Progress bar */
.loader-wrap {
  margin-top: 64px;
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  animation: fadeIn 0.4s 0.8s ease both;
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.15);
}
.loader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--md-primary), #FFB84D);
  border-radius: 3px;
  animation: load 2s 1s ease-out forwards;
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.6);
}

#screen-home.startup-reveal {
  animation: startupHomeReveal 0.55s ease both;
}

@keyframes startupHomeReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes load {
  0% { width: 0; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* Kenya flag label */
.country {
  position: absolute;
  bottom: 40px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 0.6s 1.2s ease both;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Orange corner accent top-right */
.corner-tr {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
}
.corner-tr::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.15), transparent);
  animation: accentPulse 5s ease-in-out infinite;
}

/* Bottom-left corner */
.corner-bl {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}
.corner-bl::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.08), transparent);
  animation: accentPulse 6s ease-in-out infinite reverse;
}

@keyframes accentPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}

/* FINAL OVERRIDE (end of file) - force muted surfaces for Orders/Receipt elements */
#sc-orders .ord-card,
#sc-orders .ord-card-md,
.ocf-header,
.ocf-items,
.track-driver,
.pay-section,
.pay-section,
.btn-pay,
.track-driver,
.ocf-footer,
.rct-wrap,
.rct-items-card,
.rct-meta-cell {
  background: var(--surface-2) !important;
  box-shadow: none !important;
  border-color: var(--border) !important;
  color: var(--md-on-surface) !important;
}

/* ensure any inline white backgrounds inside orders get overwritten */
#sc-orders [style*="background:#fff"],
#sc-orders [style*="background:white"],
#sc-orders [style*="background: #fff"],
#sc-orders [style*="background: white"] {
  background: var(--surface-2) !important;
}

/* SEPARATOR OVERRIDES: match Help/Support divider clarity */
#sc-orders .ord-card,
#sc-orders .ord-card-md,
#sc-orders .rct-wrap,
#sc-orders .rct-items-card,
#sc-orders .pay-section,
#sc-orders .ocf-items,
#sc-orders .ord-item,
#sc-orders .ord-top,
#sc-orders .ord-bot,
#orders-body,
.ocf-items,
.pay-section {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

#sc-orders .ord-step:not(:last-child)::after {
  height: 1px !important;
  background: var(--border) !important;
}

#sc-orders .rct-divider-line,
#sc-orders .ord-step-line {
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  height: 0 !important;
  margin: 12px 0 !important;
}

#sc-orders .rct-section {
  border-bottom: 1px solid var(--border) !important;
}

.ocf-items {
  border-top: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  background: transparent !important;
}

/* subtle inset to make sections feel separated on muted cream */
#sc-orders .ord-card::before,
#sc-orders .rct-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  border-radius: inherit;
}

/* Old splash screen CSS removed — replaced with new design */

/* Match product add and quantity controls to the floating Sign In button. */
#screen-home .prod-fab,
#screen-home .products-grid .prod-fab,
#screen-home .products-grid .prod-fab.prod-fab-stepper,
#screen-products .prod-fab,
#screen-home .prod-qty-ctrl,
#screen-products .prod-qty-ctrl {
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
}
#screen-home .prod-fab:hover,
#screen-home .products-grid .prod-fab:hover,
#screen-home .products-grid .prod-fab.prod-fab-stepper:hover,
#screen-products .prod-fab:hover {
  background: linear-gradient(135deg, #FF8E3E 0%, #D14500 100%) !important;
}

/* Products page finishing pass. */
#screen-products {
  background: #FFF8F6 !important;
}

#screen-products > .top-app-bar {
  height: 76px !important;
  padding: 8px 12px 8px 6px !important;
  background: #FFF8F6 !important;
  border-bottom: 1px solid rgba(28, 14, 6, 0.08) !important;
}





#screen-products #cat-chips {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  gap: 8px !important;
  padding: 10px 14px 12px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: rgba(255, 250, 247, 0.96) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(28, 14, 6, 0.08) !important;
  box-shadow: 0 4px 14px rgba(28, 14, 6, 0.05) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

#screen-products #cat-chips .filter-chip {
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  box-shadow: 0 3px 10px rgba(28, 14, 6, 0.06) !important;
}

#screen-products #cat-chips .filter-chip.active {
  padding-left: 28px !important;
  box-shadow: 0 8px 18px rgba(255, 106, 40, 0.2) !important;
}

#screen-products .scroll-body {
  background: #FFF8F6 !important;
  padding-top: 12px !important;
}

#screen-products .prod-grid-m3 {
  gap: 10px !important;
  padding: 0 12px 104px !important;
}

#screen-products .prod-card-m3 {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(28, 14, 6, 0.08) !important;
  box-shadow: 0 4px 14px rgba(28, 14, 6, 0.06) !important;
}

#screen-products .prod-card-m3:hover {
  box-shadow: 0 10px 24px rgba(28, 14, 6, 0.11) !important;
}

#screen-products .prod-img-wrap {
  flex: 0 0 200px !important;
  height: 200px !important;
  min-height: 200px !important;
  background: #ffffff !important;
  align-self: stretch !important;
}

#screen-products .prod-img-wrap img,
#screen-products .prod-img-wrap .product-img {
  transform: none !important;
}

#screen-products .prod-info {
  flex: 1 1 auto !important;
  align-self: stretch !important;
  min-height: 116px !important;
  padding: 11px 12px 12px !important;
  gap: 5px !important;
  background: var(--md-surface-2) !important;
}

#screen-products .prod-card-m3 {
  height: 100% !important;
  align-self: stretch !important;
}

#screen-products .prod-name-m3 {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

#screen-products .prod-price-m3 {
  font-size: 16px !important;
  color: #d14500 !important;
}

#screen-products .prod-fab {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 16px 0 !important;
}

#screen-products .prod-fab:focus-visible,
#screen-products .filter-chip:focus-visible,
#screen-products .top-app-bar .icon-btn:focus-visible {
  outline: 3px solid rgba(255, 77, 0, 0.3) !important;
  outline-offset: 3px !important;
}

@media (min-width: 700px) {
  #screen-home .products-grid .prod-img-wrap,
  #home-products-grid .prod-img-wrap {
    height: 225px !important;
    min-height: 225px !important;
  }

  #screen-products .prod-grid-m3 {
    gap: 14px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #screen-products .prod-img-wrap {
    height: 225px !important;
    min-height: 225px !important;
  }
}

/* Product-card rhythm: shared slots keep every price and action aligned. */
.prod-card-m3 .prod-info {
  gap: 8px !important;
  padding: 12px !important;
}

.prod-card-m3 .prod-name-m3 {
  min-height: 2.6em !important;
  max-height: 2.6em !important;
}

.prod-card-m3 .prod-unit-m3 {
  min-height: 29px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.prod-card-m3 .prod-savings-row {
  min-height: 22px !important;
  margin: 0 !important;
}

.prod-card-m3 .prod-price-row {
  margin-top: auto !important;
  min-height: 44px !important;
  align-items: flex-end !important;
}

.prod-card-m3 .prod-price-row .prod-fab,
.prod-card-m3 .prod-price-row .prod-qty-ctrl {
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
}

#screen-products .prod-grid-m3,
#screen-home .products-grid,
#home-products-grid {
  gap: 16px !important;
}

