/* ═══════════════════════════════════════════════════════════════════
   FLIPZIP — MOBILE UI UPGRADE v2.0
   Flipkart-style mobile experience
   Add this file AFTER your existing CSS in every page.
   No desktop styles are changed — all rules are @media(max-width:768px)
   ═══════════════════════════════════════════════════════════════════ */

/* ── VARIABLES (shared) ──────────────────────────────────────────── */
:root {
  --fz-blue:    #2874f0;
  --fz-blue2:   #1b4c8e;
  --fz-orange:  #fb641b;
  --fz-yellow:  #FEEE00;
  --fz-green:   #388e3c;
  --fz-red:     #e53935;
  --fz-gray:    #f1f3f6;
  --fz-border:  #e0e0e0;
  --fz-text:    #212121;
  --fz-muted:   #878787;
  --fz-white:   #ffffff;
  --fz-radius:  4px;
  --fz-bnav-h:  56px;
  --fz-safe:    env(safe-area-inset-bottom, 0px);
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 1 — MOBILE HEADER (Flipkart-style blue bar)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Announcement bar — smaller on mobile */
  #announce {
    font-size: 11px !important;
    padding: 6px 36px 6px 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Top utility bar — hide on mobile (links moved to account) */
  #topbar { display: none !important; }

  /* Header */
  #hdr {
    background: var(--fz-blue) !important;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.3) !important;
  }

  .hdr-inner {
    height: 56px !important;
    padding: 0 12px !important;
    gap: 8px !important;
    align-items: center;
  }

  /* Logo — left aligned */
  .logo img {
    height: 32px !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
  }

  /* Search bar — full width, Flipkart style */
  .search-wrap {
    flex: 1 !important;
    max-width: none !important;
    border-radius: 4px !important;
    height: 38px;
  }

  .search-cat { display: none !important; }

  .search-inp {
    padding: 0 12px !important;
    font-size: 13px !important;
    height: 38px;
    border-radius: 4px 0 0 4px;
  }

  .search-btn {
    padding: 0 14px !important;
    font-size: 16px !important;
    height: 38px;
    border-radius: 0 4px 4px 0;
  }

  /* Voice button — visible on mobile */
  .voice-btn {
    display: flex !important;
    padding: 0 10px !important;
    height: 38px;
    font-size: 16px !important;
  }

  /* Header action buttons (cart/account icons) */
  .hdr-actions { gap: 0 !important; }

  .hdr-btn {
    padding: 4px 8px !important;
    gap: 1px !important;
  }

  .hdr-btn .lbl { display: none !important; }
  .hdr-btn .ico { font-size: 22px !important; }

  .cart-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
    top: 0 !important;
    right: 2px !important;
  }

  /* Desktop nav — hidden on mobile */
  #nav { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 2 — MOBILE BOTTOM NAVIGATION (Flipkart-style)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fz-bnav {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9100;
    background: #fff;
    border-top: 1px solid var(--fz-border);
    padding-bottom: var(--fz-safe);
    box-shadow: 0 -2px 8px rgba(0,0,0,.1);
  }

  .fz-bnav-inner {
    display: flex;
    align-items: stretch;
    height: var(--fz-bnav-h);
  }

  .fz-bnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    transition: background .15s;
  }

  .fz-bnav-btn:active { background: #f5f5f5; }

  .bnav-ico {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s;
  }

  .fz-bnav-btn.on .bnav-ico { transform: scale(1.1); }

  .bnav-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--fz-muted);
    font-family: inherit;
  }

  .fz-bnav-btn.on .bnav-lbl { color: var(--fz-blue) !important; }

  .bnav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--fz-orange);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid #fff;
  }

  body { padding-bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 8px) !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 3 — MOBILE HERO / BANNER
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 8px !important;
  }

  .hero-side { display: none !important; }

  .hero-slider {
    height: 180px !important;
    border-radius: 0 !important;
    margin: 0 -10px !important;
  }

  .slider-btn { width: 28px !important; height: 28px !important; font-size: 14px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 4 — MOBILE CATEGORY PILLS (horizontal scroll, Flipkart style)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Replace grid with horizontal scroll strip */
  .cats-wrap {
    background: #fff;
    border-bottom: 1px solid var(--fz-border);
    margin: 0 -10px 8px !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .cats-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 !important;
    padding: 8px 0 !important;
    grid-template-columns: unset !important;
  }

  .cats-grid::-webkit-scrollbar { display: none; }

  .cat-item {
    flex-shrink: 0 !important;
    width: 72px !important;
    padding: 8px 4px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 6px !important;
    transform: none !important;
  }

  .cat-item:hover, .cat-item:active {
    background: #f0f6ff !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
  }

  .cat-ico {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    border: none !important;
  }

  .cat-name {
    font-size: 10px !important;
    color: var(--fz-text) !important;
    text-align: center;
    font-weight: 500 !important;
    line-height: 1.2;
  }

  .cat-count { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 5 — MOBILE PRODUCT CARDS (Flipkart grid style)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .prod-grid,
  .flash-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1px !important;
    background: var(--fz-border) !important;
    border: 1px solid var(--fz-border) !important;
    border-radius: 0 !important;
    margin: 0 -10px 8px !important;
  }

  .prod-card,
  .flash-card {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .prod-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .pc-img { aspect-ratio: 1 !important; }

  .pc-disc {
    font-size: 10px !important;
    padding: 2px 6px !important;
    top: 6px !important;
    left: 6px !important;
  }

  .pc-wish {
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
    top: 6px !important;
    right: 6px !important;
  }

  .pc-body { padding: 8px 8px 10px !important; }

  .pc-brand {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--fz-text) !important;
    text-transform: uppercase;
    margin-bottom: 2px !important;
  }

  .pc-title {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #555 !important;
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2;
  }

  .price-now {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: var(--fz-text) !important;
  }

  .price-mrp {
    font-size: 11px !important;
    color: var(--fz-muted) !important;
  }

  .price-off {
    font-size: 11px !important;
    color: var(--fz-green) !important;
    font-weight: 700 !important;
  }

  .pc-delivery {
    font-size: 10px !important;
    color: var(--fz-green) !important;
  }

  .pc-add {
    width: 100% !important;
    padding: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: var(--fz-radius) !important;
    background: var(--fz-orange) !important;
    margin-top: 6px !important;
  }

  /* "You save" line */
  .pc-save {
    font-size: 9px !important;
    padding: 1px 5px !important;
  }

  /* Rating stars */
  .pc-rating { margin-bottom: 4px !important; }
  .stars { font-size: 11px !important; }
  .rev-cnt { font-size: 9px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 6 — MOBILE FLASH DEALS SECTION
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .flash-sec {
    border-radius: 0 !important;
    margin: 0 -10px 8px !important;
    padding: 12px 10px !important;
  }

  .flash-hdr { margin-bottom: 10px !important; }

  .flash-title { font-size: 15px !important; }

  .dt-box {
    padding: 3px 7px !important;
    font-size: 13px !important;
    min-width: 30px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 7 — MOBILE TRUST BAR (scrollable pills)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trust-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 0 !important;
    margin: 0 -10px 8px !important;
    background: #fff !important;
    border: none !important;
    border-top: 1px solid var(--fz-border) !important;
    border-bottom: 1px solid var(--fz-border) !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .trust-bar::-webkit-scrollbar { display: none; }

  .trust-item {
    flex-shrink: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    text-align: center;
    padding: 10px 14px !important;
    gap: 4px !important;
    border-right: 1px solid var(--fz-border) !important;
    min-width: 90px;
  }

  .trust-item:last-child { border-right: none !important; }
  .trust-item:nth-child(5) { display: flex !important; } /* Show all on mobile scroll */

  .trust-ico { font-size: 20px !important; }
  .trust-text .t1 { font-size: 10px !important; }
  .trust-text .t2 { font-size: 9px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 8 — MOBILE SECTION HEADERS
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sec-hdr {
    padding: 0 2px !important;
    margin-bottom: 8px !important;
  }

  .sec-title {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .sec-more {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 9 — MOBILE CART PANEL (full-screen)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #cart-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    top: 0 !important;
    height: 100dvh !important;
  }

  .cart-hdr { padding: 16px !important; }
  .cart-hdr h3 { font-size: 16px !important; }

  .cart-foot { padding: 12px 16px !important; }

  .cart-checkout {
    padding: 14px !important;
    font-size: 15px !important;
    border-radius: 4px !important;
    font-weight: 800 !important;
  }

  .cart-item { padding: 12px 0 !important; }

  .ci-img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 10 — MOBILE CHATBOT FAB
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #chat-fab {
    bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 12px) !important;
    right: 12px !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
  }

  #chat-win {
    bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 70px) !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-height: 65vh !important;
    border-radius: 12px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 11 — MOBILE NOTIFICATIONS / ABANDONED CART
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #onotif {
    bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 12px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
  }

  #cart-nudge {
    bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 12px) !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 12 — MOBILE CONTAINER PADDING
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container {
    padding: 8px 10px !important;
  }

  .brands-strip,
  .foryou-sec,
  .coup-grid,
  .stats-bar,
  .social-sec {
    border-radius: 0 !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
  }

  /* Brands marquee */
  .brands-strip {
    margin-bottom: 8px !important;
    padding: 12px 0 !important;
  }

  .coup-grid {
    grid-template-columns: 1fr !important;
    margin-bottom: 8px !important;
    padding: 10px !important;
  }

  .coup-card {
    padding: 12px !important;
  }

  .stats-bar {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .foryou-sec {
    padding: 12px 10px !important;
    margin-bottom: 8px !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 13 — MOBILE FOOTER (condensed)
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .foot-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    padding: 20px 16px !important;
  }

  .foot-brand { grid-column: 1 / -1 !important; }

  .foot-seo { padding: 16px !important; }
  .foot-seo p { font-size: 11px !important; }

  .foot-bottom-inner {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 14 — NEW: MOBILE SEARCH SUGGESTIONS DROPDOWN
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #search-drop {
    border-radius: 0 0 4px 4px !important;
    max-height: 60vh !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
  }

  .sdrop-item { padding: 10px 12px !important; }
  .sdrop-img { width: 36px !important; height: 36px !important; }
  .sdrop-title { font-size: 13px !important; }
}

/* ════════════════════════════════════════════════════════════════════
   SECTION 15 — NEW MOBILE COMPONENTS
   (Add these via mobile-upgrade.js injection)
   ════════════════════════════════════════════════════════════════════ */

/* ── MOBILE PINCODE BAR (below header) ─────────────────────────── */
.fz-pin-bar {
  display: none;
  background: var(--fz-blue);
  padding: 4px 12px 6px;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
}

@media (max-width: 768px) {
  .fz-pin-bar {
    display: flex !important;
  }
}

.fz-pin-bar .pin-ico { font-size: 13px; }
.fz-pin-bar .pin-txt { flex: 1; }
.fz-pin-bar .pin-txt strong { color: #fff; font-weight: 600; }
.fz-pin-bar .pin-change { color: var(--fz-yellow); font-weight: 700; font-size: 11px; border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── MOBILE OFFER BADGE on product cards ────────────────────────── */
.pc-offer-badge {
  display: none;
  font-size: 9px;
  font-weight: 700;
  color: #2874f0;
  background: #e8f0fe;
  border: 1px solid #c5d8fb;
  border-radius: 2px;
  padding: 2px 5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .pc-offer-badge { display: block !important; }
}

/* ── MOBILE DELIVERY DATE on product cards ──────────────────────── */
.pc-delivery-date {
  font-size: 10px;
  color: var(--fz-muted);
  margin-bottom: 4px;
}

.pc-delivery-date span { color: var(--fz-text); font-weight: 600; }

/* ── MOBILE CART PRICE BREAKDOWN ────────────────────────────────── */
.fz-cart-breakdown {
  border-top: 1px solid var(--fz-border);
  margin: 8px 0;
  padding-top: 10px;
}

.fz-breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--fz-text);
}

.fz-breakdown-row.discount { color: var(--fz-green); }
.fz-breakdown-row.total { font-weight: 800; font-size: 15px; padding-top: 8px; border-top: 1px dashed var(--fz-border); margin-top: 4px; }

.fz-save-banner {
  background: #e8f5e9;
  color: var(--fz-green);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ── COUPON INPUT in cart ───────────────────────────────────────── */
.fz-coupon-row {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  align-items: stretch;
}

.fz-coupon-input {
  flex: 1;
  border: 1.5px dashed var(--fz-border);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: inherit;
  outline: none;
  color: var(--fz-text);
  background: #fff;
}

.fz-coupon-input:focus { border-color: var(--fz-blue); }

.fz-coupon-apply {
  background: var(--fz-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.fz-coupon-apply:hover { background: #e55a00; }

/* ── CHECKOUT STEPPER ───────────────────────────────────────────── */
.fz-checkout-stepper {
  display: flex;
  align-items: center;
  background: var(--fz-blue);
  padding: 12px 16px;
  gap: 0;
}

.fz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}

.fz-step::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: rgba(255,255,255,.3);
}

.fz-step:last-child::after { display: none; }

.fz-step.done::after { background: var(--fz-yellow); }

.fz-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(255,255,255,.4);
}

.fz-step.done .fz-step-num {
  background: var(--fz-yellow);
  color: #000;
  border-color: var(--fz-yellow);
}

.fz-step.active .fz-step-num {
  background: #fff;
  color: var(--fz-blue);
  border-color: #fff;
}

.fz-step-lbl {
  font-size: 9px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  text-align: center;
}

.fz-step.active .fz-step-lbl,
.fz-step.done .fz-step-lbl {
  color: #fff;
}

/* ── ORDER CONFIRMATION PAGE ─────────────────────────────────────── */
.fz-order-confirm {
  min-height: 100vh;
  background: var(--fz-gray);
  padding-bottom: calc(var(--fz-bnav-h) + 16px);
}

.fz-confirm-hero {
  background: var(--fz-blue);
  padding: 24px 16px 32px;
  text-align: center;
  color: #fff;
}

.fz-confirm-check {
  width: 64px;
  height: 64px;
  background: var(--fz-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
  animation: confirmPop .4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes confirmPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.fz-confirm-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fz-confirm-delivery {
  font-size: 14px;
  opacity: .85;
}

.fz-confirm-delivery strong {
  color: var(--fz-yellow);
  font-weight: 700;
}

.fz-confirm-card {
  background: #fff;
  margin: 8px 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fz-border);
}

.fz-confirm-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fz-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.fz-confirm-addr {
  font-size: 13px;
  color: var(--fz-text);
  line-height: 1.6;
}

.fz-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  margin-top: 8px;
}

.fz-confirm-btn {
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  border: none;
}

.fz-confirm-btn.primary {
  background: var(--fz-orange);
  color: #fff;
  grid-column: 1 / -1;
}

.fz-confirm-btn.secondary {
  background: #fff;
  color: var(--fz-blue);
  border: 1.5px solid var(--fz-blue);
}

.fz-confirm-btn.whatsapp {
  background: #25d366;
  color: #fff;
}

/* Coins earned badge */
.fz-coins-earned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  margin-top: 8px;
}

/* ── MY ORDERS PAGE ──────────────────────────────────────────────── */
.fz-orders-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fz-blue);
  padding: 10px 12px;
}

.fz-orders-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.fz-orders-search input {
  flex: 1;
  border: none;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  color: var(--fz-text);
}

.fz-orders-search button {
  background: none;
  border: none;
  padding: 0 12px;
  font-size: 16px;
  color: var(--fz-muted);
  cursor: pointer;
}

.fz-orders-filter-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--fz-border);
}

.fz-orders-filter-bar::-webkit-scrollbar { display: none; }

.fz-filter-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--fz-border);
  border-radius: 2px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--fz-text);
  transition: all .15s;
}

.fz-filter-chip:hover,
.fz-filter-chip.active {
  border-color: var(--fz-blue);
  color: var(--fz-blue);
  background: #e8f0fe;
}

.fz-order-row {
  background: #fff;
  border-bottom: 8px solid var(--fz-gray);
  padding: 14px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}

.fz-order-row:active { background: #f5f5f5; }

.fz-order-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.fz-order-img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--fz-gray);
  border: 1px solid var(--fz-border);
  flex-shrink: 0;
}

.fz-order-info { flex: 1; min-width: 0; }

.fz-order-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--fz-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fz-order-name {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fz-order-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fz-text);
}

.fz-order-status {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fz-order-status.delivered { color: var(--fz-green); }
.fz-order-status.cancelled { color: var(--fz-red); }
.fz-order-status.on-the-way { color: var(--fz-blue); }
.fz-order-status.returned { color: #ff6900; }

.fz-order-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fz-order-status.delivered .fz-order-status-dot { background: var(--fz-green); }
.fz-order-status.cancelled .fz-order-status-dot { background: var(--fz-red); }
.fz-order-status.on-the-way .fz-order-status-dot { background: var(--fz-blue); animation: pulse-dot 1.2s ease-out infinite; }
.fz-order-status.returned .fz-order-status-dot { background: #ff6900; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(40,116,240,.5); }
  70% { box-shadow: 0 0 0 6px rgba(40,116,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,116,240,0); }
}

.fz-order-row-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f5f5f5;
}

.fz-star-row {
  display: flex;
  gap: 4px;
}

.fz-star {
  font-size: 18px;
  cursor: pointer;
  color: #ddd;
  line-height: 1;
  transition: color .1s;
}

.fz-star.lit { color: var(--fz-yellow); }
.fz-star:hover ~ .fz-star { color: #ddd !important; }

.fz-order-rate-lbl {
  font-size: 11px;
  color: var(--fz-muted);
}

/* Refund badge */
.fz-refund-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fz-green);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 2px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* ── ACCOUNT PAGE ────────────────────────────────────────────────── */
.fz-account-hero {
  background: var(--fz-blue);
  padding: 20px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.fz-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.fz-account-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.fz-account-email {
  font-size: 12px;
  opacity: .8;
}

.fz-account-plus {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}

.fz-account-plus .plus-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fz-yellow);
  margin-bottom: 2px;
}

.fz-account-plus .plus-coins {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.fz-account-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 8px solid var(--fz-gray);
}

.fz-acc-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  cursor: pointer;
  border-right: 1px solid var(--fz-border);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}

.fz-acc-shortcut:last-child { border-right: none; }
.fz-acc-shortcut:active { background: var(--fz-gray); }

.fz-acc-shortcut-ico { font-size: 24px; }

.fz-acc-shortcut-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--fz-text);
  text-align: center;
}

.fz-account-section {
  background: #fff;
  margin-bottom: 8px;
}

.fz-account-section-title {
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fz-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--fz-border);
}

.fz-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
  text-decoration: none;
  color: var(--fz-text);
}

.fz-account-item:last-child { border-bottom: none; }
.fz-account-item:active { background: var(--fz-gray); }

.fz-account-item-ico { font-size: 18px; flex-shrink: 0; }

.fz-account-item-text { flex: 1; }

.fz-account-item-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fz-text);
}

.fz-account-item-sub {
  font-size: 11px;
  color: var(--fz-muted);
  margin-top: 1px;
}

.fz-account-item-arrow {
  color: #bbb;
  font-size: 16px;
}

.fz-logout-btn {
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 14px;
  border: 1.5px solid var(--fz-red);
  background: #fff;
  color: var(--fz-red);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
}

/* ── PRODUCT DETAIL PAGE ─────────────────────────────────────────── */
.fz-product-sticky-bar {
  display: none;
  position: fixed;
  bottom: calc(var(--fz-bnav-h) + var(--fz-safe));
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--fz-border);
  padding: 8px 12px;
  gap: 8px;
}

@media (max-width: 768px) {
  .fz-product-sticky-bar {
    display: flex !important;
  }
}

.fz-sticky-add {
  flex: 1;
  background: #fff;
  border: 1.5px solid var(--fz-orange);
  color: var(--fz-orange);
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.fz-sticky-buy {
  flex: 1;
  background: var(--fz-orange);
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ── PAYMENT PAGE ────────────────────────────────────────────────── */
.fz-payment-section {
  background: #fff;
  margin-bottom: 8px;
  border-top: 1px solid var(--fz-border);
  border-bottom: 1px solid var(--fz-border);
}

.fz-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}

.fz-payment-option:last-child { border-bottom: none; }
.fz-payment-option:active { background: var(--fz-gray); }

.fz-payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--fz-blue);
  flex-shrink: 0;
}

.fz-payment-ico { font-size: 20px; flex-shrink: 0; }
.fz-payment-label { flex: 1; }
.fz-payment-name { font-size: 13px; font-weight: 600; color: var(--fz-text); }
.fz-payment-sub { font-size: 11px; color: var(--fz-green); font-weight: 500; margin-top: 1px; }

.fz-cod-fee-note {
  font-size: 11px;
  color: var(--fz-muted);
  padding: 8px 16px 12px 46px;
  line-height: 1.5;
}

.fz-pay-now-btn {
  width: calc(100% - 32px);
  margin: 12px 16px;
  padding: 15px;
  background: var(--fz-orange);
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
}

/* ── COD CONFIRM POPUP ───────────────────────────────────────────── */
.fz-cod-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9500;
  align-items: flex-end;
}

.fz-cod-popup-overlay.on { display: flex; }

.fz-cod-popup {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  animation: slideUp .3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.fz-cod-popup-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fz-text);
}

.fz-cod-popup-desc {
  font-size: 13px;
  color: var(--fz-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.fz-cod-popup-desc strong { color: var(--fz-blue); }

.fz-cod-popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fz-cod-cancel {
  padding: 13px;
  border: 1.5px solid var(--fz-border);
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: var(--fz-text);
}

.fz-cod-confirm {
  padding: 13px;
  background: var(--fz-orange);
  border: none;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* ── TOAST (global) ──────────────────────────────────────────────── */
.fz-toast {
  position: fixed;
  bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #323232;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

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

/* ── BACK-TO-TOP (above bnav) ────────────────────────────────────── */
@media (max-width: 768px) {
  #fz-btt {
    bottom: calc(var(--fz-bnav-h) + var(--fz-safe) + 12px) !important;
  }
}
