/* ============================================
   ViarnexMall — Stylesheet
   Mobile: App-like (bottom nav, cards, no scroll chrome)
   Tablet/Desktop: Full website
   Brand: Red #E10600 | White | Yellow #FFD700
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Primary — deep space navy */
  --red:     #0B5FBF;
  --red-dk:  #0848A0;
  /* Accent — electric teal */
  --teal:    #00B4D8;
  --teal-dk: #0090AD;
  /* Gold highlight */
  --yellow:  #FFB800;
  --yellow-dk:#E0A200;
  /* Neutrals */
  --white:   #ffffff;
  --black:   #0A0F1E;
  --gray:    #f0f4f8;
  --gray-md: #dde3ec;
  --text:    #0D1B2A;
  --muted:   #6B7A90;
  --radius:  12px;
  --shadow:  0 2px 20px rgba(11,95,191,0.10);
  --shadow-lg: 0 8px 40px rgba(11,95,191,0.18);
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--gray); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ============================================
   LOGO COMPONENT (used everywhere consistently)
   ============================================ */
.vm-logo {
  font-family: var(--font-head);
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  display: inline-block;
}
.vm-logo .accent { color: var(--yellow); }
.vm-logo.dark    { color: var(--red); }
.vm-logo.dark .accent { color: var(--black); }

/* ============================================
   DESKTOP NAVBAR (hidden on mobile)
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--black) 0%, #0B5FBF 100%);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.navbar .vm-logo { font-size: 1.9rem; }
.navbar-search {
  flex: 1; max-width: 400px; margin: 0 20px;
  display: flex; background: rgba(255,255,255,0.18);
  border-radius: 24px; overflow: hidden;
}
.navbar-search input {
  flex: 1; padding: 8px 16px; background: transparent;
  border: none; color: var(--white); outline: none;
  font-family: var(--font-body); font-size: 0.9rem;
}
.navbar-search input::placeholder { color: rgba(255,255,255,0.7); }
.navbar-search button {
  background: rgba(255,255,255,0.2); border: none;
  padding: 0 16px; color: var(--white); cursor: pointer; font-size: 1rem;
}
.navbar-search button:hover { background: rgba(255,255,255,0.3); }
.navbar-actions { display: flex; align-items: center; gap: 18px; }
.navbar-actions a { color: var(--white); font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 5px; }
.navbar-actions a:hover { color: var(--yellow); }
.currency-switcher select {
  background: rgba(255,255,255,0.18); border: none;
  color: var(--white); font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; cursor: pointer; outline: none;
}
.currency-switcher select option { color: var(--black); background: var(--white); }
.cart-badge {
  background: var(--yellow); color: var(--black);
  font-size: 0.7rem; font-weight: 900; border-radius: 50%;
  width: 17px; height: 17px; display: flex; align-items: center; justify-content: center;
}

/* ============================================
   MOBILE APP HEADER (shown only on mobile)
   ============================================ */
.mobile-header {
  display: none;
  background: var(--red);
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.mobile-header .vm-logo { font-size: 1.6rem; }
.mobile-header-right { display: flex; align-items: center; gap: 14px; }
.mobile-header-right a { color: var(--white); font-size: 1.3rem; position: relative; }
.mobile-cart-badge {
  position: absolute; top: -5px; right: -6px;
  background: var(--yellow); color: var(--black);
  font-size: 0.62rem; font-weight: 900; border-radius: 50%;
  width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
}

/* ============================================
   MOBILE BOTTOM NAV (app-style)
   ============================================ */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-md);
  z-index: 200;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 58px;
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; flex: 1; cursor: pointer; color: var(--muted);
  font-size: 0.68rem; font-weight: 700; padding: 6px 0;
  transition: color 0.2s; position: relative;
  background: none; border: none;
}
.bnav-item span:first-child { font-size: 1.35rem; line-height: 1; }
.bnav-item.active { color: var(--red); }
.bnav-badge {
  position: absolute; top: 4px; right: calc(50% - 18px);
  background: var(--red); color: var(--white);
  font-size: 0.6rem; font-weight: 900;
  border-radius: 50%; width: 14px; height: 14px;
  display: none; align-items: center; justify-content: center;
}
.bnav-badge.show { display: flex; }

/* ============================================
   MOBILE SEARCH BAR
   ============================================ */
.mobile-search-bar {
  display: none;
  padding: 10px 14px 4px;
  background: var(--red);
  position: sticky; top: 56px; z-index: 99;
}
.mobile-search-bar input {
  width: 100%; padding: 10px 16px;
  border-radius: 24px; border: none;
  background: rgba(255,255,255,0.92);
  font-family: var(--font-body); font-size: 0.92rem; outline: none;
}

/* ============================================
   PAGE WRAPPER (accounts for mobile bottom nav)
   ============================================ */
.page-wrap { padding-bottom: 0; overflow-x: hidden; }

/* ============================================
   CONTAINER
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--red) 0%, #8b0000 100%);
  color: var(--white); padding: 52px 24px; text-align: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: 3px; line-height: 1.1;
}
.hero h1 .accent { color: var(--yellow); }
.hero p { font-size: 1rem; margin: 10px 0 24px; opacity: 0.9; }
.hero-search {
  display: flex; max-width: 500px; margin: 0 auto;
  background: var(--white); border-radius: 50px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.hero-search input {
  flex: 1; padding: 13px 20px; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.95rem;
}
.hero-search button {
  background: var(--yellow); color: var(--black);
  border: none; padding: 0 24px; font-weight: 800; font-size: 0.9rem; cursor: pointer;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 3px solid var(--red);
}
.section-header h2 {
  font-family: var(--font-head); font-size: 1.6rem;
  letter-spacing: 1px; color: var(--red);
}
.section-header a { color: var(--red); font-weight: 700; font-size: 0.85rem; }

/* ============================================
   PRODUCT CARD
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s; cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(225,6,0,0.14); }
.product-card-img { width: 100%; height: 190px; object-fit: cover; background: var(--gray); }
.product-card-placeholder {
  width: 100%; height: 190px; background: linear-gradient(135deg,#f0f0f0,#e8e8e8);
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem;
}
.product-card-body { padding: 12px; }
.product-card-cat { font-size: 0.7rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.product-card-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-card-price { font-size: 1.05rem; font-weight: 900; color: var(--red); margin-bottom: 10px; }
.product-card-price small { font-size: 0.75rem; color: var(--muted); font-weight: 400; display: block; }
.btn-add-cart {
  width: 100%; padding: 8px; background: var(--red); color: var(--white);
  border: none; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--red-dk); }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
  gap: 12px; margin-bottom: 32px;
}
.category-card {
  background: var(--white); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; cursor: pointer;
  box-shadow: var(--shadow); transition: transform 0.2s;
  border-top: 3px solid var(--red);
}
.category-card:hover { transform: translateY(-3px); }
.category-card .cat-icon { font-size: 1.9rem; margin-bottom: 8px; }
.category-card .cat-name { font-weight: 700; font-size: 0.85rem; }
.category-card .cat-count { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 0.92rem; cursor: pointer; border: none;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-primary  { background: var(--red);    color: var(--white); }
.btn-primary:hover { background: var(--red-dk); }
.btn-yellow   { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: #e6c000; }
.btn-outline  { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-wa       { background: #25D366;    color: var(--white); }
.btn-wa:hover { background: #1da854; }
.btn-dark     { background: var(--black); color: var(--white); }
.btn-sm       { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg       { padding: 13px 28px; font-size: 1rem; }
.btn-block    { width: 100%; justify-content: center; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-md); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.93rem; outline: none;
  background: var(--white); transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 90px; resize: vertical; }

/* ============================================
   ORDER SUMMARY
   ============================================ */
.order-summary { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--gray); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 900; font-size: 1.1rem; color: var(--red); }
.summary-row.profit { color: #2a7a2a; font-weight: 700; }

/* ============================================
   CART TABLE
   ============================================ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px 12px; text-align: left; border-bottom: 1px solid var(--gray); font-size: 0.88rem; }
.cart-table th { font-weight: 700; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; background: var(--gray); }
.qty-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-ctrl button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gray-md); background: var(--white); cursor: pointer; font-weight: 900; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.qty-ctrl span { min-width: 24px; text-align: center; font-weight: 700; }

/* ============================================
   BADGES & STATUS
   ============================================ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.badge-pending    { background: #fff3cd; color: #856404; }
.badge-paid       { background: #d1fae5; color: #065f46; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-shipped    { background: #ede9fe; color: #5b21b6; }
.badge-completed  { background: #d1fae5; color: #065f46; }
.badge-cancelled  { background: #fee2e2; color: #991b1b; }
.badge-unpaid     { background: #fee2e2; color: #991b1b; }

/* ============================================
   ALERTS
   ============================================ */
.alert { padding: 11px 15px; border-radius: 8px; margin-bottom: 14px; font-size: 0.88rem; font-weight: 600; }
.alert-info    { background: #dbeafe; color: #1e40af; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-warn    { background: #fff3cd; color: #856404; }

/* ============================================
   TOAST
   ============================================ */
.toast-container { position: fixed; bottom: 80px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--text); color: var(--white);
  padding: 11px 18px; border-radius: 8px; font-size: 0.87rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease; max-width: 280px;
}
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
@keyframes toastIn { from { transform: translateX(100%); opacity:0; } to { transform:translateX(0); opacity:1; } }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 20px 20px 0 0;
  padding: 24px 24px 36px; width: 100%; max-width: 500px;
  transform: translateY(100%); transition: transform 0.3s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-family: var(--font-head); font-size: 1.4rem; letter-spacing: 1px; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination button { width: 36px; height: 36px; border: 1.5px solid var(--gray-md); background: var(--white); border-radius: 8px; cursor: pointer; font-weight: 700; font-family: var(--font-body); transition: all 0.2s; font-size: 0.88rem; }
.pagination button.active, .pagination button:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ============================================
   TABS
   ============================================ */
.tabs { display: flex; border-bottom: 2px solid var(--gray-md); margin-bottom: 20px; }
.tab-btn { padding: 10px 18px; background: none; border: none; cursor: pointer; font-weight: 700; font-family: var(--font-body); font-size: 0.88rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); }

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout { display: flex; min-height: calc(100vh - 62px); }
.admin-sidebar {
  width: 220px; background: var(--black); color: var(--white);
  padding: 18px 0; flex-shrink: 0; position: sticky;
  top: 62px; height: calc(100vh - 62px); overflow-y: auto;
}
.sidebar-logo { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 2px; padding: 0 18px 16px; border-bottom: 1px solid #333; margin-bottom: 12px; }
.sidebar-logo .accent { color: var(--yellow); }
.sidebar-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 18px; font-size: 0.88rem; font-weight: 600; color: #bbb; transition: all 0.18s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(225,6,0,0.18); color: var(--white); border-left: 3px solid var(--red); }
.admin-content { flex: 1; padding: 24px; background: #f4f4f4; overflow-y: auto; }
.admin-page-title { font-family: var(--font-head); font-size: 1.8rem; letter-spacing: 1px; margin-bottom: 22px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-left: 4px solid var(--red); }
.stat-card .s-label { font-size: 0.76rem; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.stat-card .s-value { font-size: 1.65rem; font-weight: 900; }
.stat-card .s-sub   { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--red); color: var(--white); padding: 11px 13px; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.admin-table td { padding: 10px 13px; border-bottom: 1px solid var(--gray); font-size: 0.85rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fff8f8; }

/* ============================================
   FOOTER
   ============================================ */
footer { background: var(--black); color: #bbb; padding: 36px 24px 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 24px; max-width: 1200px; margin: 0 auto 24px; }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col a { display: block; color: #999; font-size: 0.85rem; margin-bottom: 7px; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { text-align: center; padding-top: 18px; border-top: 1px solid #2a2a2a; font-size: 0.8rem; color: #555; }

/* ============================================
   UTILITIES
   ============================================ */
.mt-1{margin-top:8px} .mt-2{margin-top:16px} .mt-3{margin-top:24px}
.mb-1{margin-bottom:8px} .mb-2{margin-bottom:16px} .mb-3{margin-bottom:24px}
.hidden{display:none!important}
.text-red{color:var(--red)} .text-muted{color:var(--muted)} .text-center{text-align:center}
.fw-bold{font-weight:800} .gap-2{gap:16px}
.card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }

/* ============================================
   RESPONSIVE — TABLET (768–1024px)
   ============================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-sidebar { width: 190px; }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 767px)
   APP-STYLE LAYOUT
   ============================================ */
@media (max-width: 767px) {
  /* Switch header */
  .navbar        { display: none; }
  .mobile-header { display: flex; }
  .mobile-search-bar { display: block; }

  /* Show bottom nav */
  .bottom-nav { display: block; }

  /* Add bottom padding so content isn't hidden behind bottom nav */
  .page-wrap { padding-bottom: 70px; }

  /* Toast above bottom nav */
  .toast-container { bottom: 76px; }

  /* Full-width modals slide up from bottom */
  .modal-overlay { align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-width: 100%; }

  /* Hero adjustments */
  .hero { padding: 32px 16px 36px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-search { display: none; } /* Mobile uses the sticky search bar */

  /* Containers */
  .container { padding: 0 12px; }

  /* Product grid: 2 columns on mobile */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card-img, .product-card-placeholder { height: 150px; }
  .product-card-body { padding: 9px; }
  .product-card-name { font-size: 0.82rem; }
  .product-card-price { font-size: 0.92rem; }

  /* Categories: horizontal scroll on mobile */
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; overflow-x: auto; }

  /* Section header */
  .section-header h2 { font-size: 1.3rem; }

  /* Cart table simplify */
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { display: none; }

  /* Admin: stack on mobile */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: relative; top: 0; }
  .sidebar-nav { display: flex; overflow-x: auto; }
  .sidebar-nav a { flex-shrink: 0; padding: 10px 14px; font-size: 0.8rem; }

  /* Stat cards: 2 cols */
  .stat-cards { grid-template-columns: repeat(2, 1fr); }

  /* Footer: compact */
  footer { margin-top: 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Page sections */
  section { padding-top: 20px !important; padding-bottom: 0 !important; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ============================================
   FLOATING FIND-ITEM BUTTON (FAB)
   ============================================ */
.fab-find-item {
  position: fixed;
  bottom: 80px;
  right: 14px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(225,6,0,0.35));
  transition: transform 0.2s;
}
.fab-find-item:hover { transform: translateY(-3px) scale(1.05); }
.fab-circle {
  width: 54px; height: 54px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid white;
}
.fab-circle svg { width: 26px; height: 26px; fill: none; stroke: white; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fab-label {
  background: var(--black);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 4px;
  text-align: center;
}

/* Find Item Modal */
.find-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 400;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.find-modal-overlay.open { opacity: 1; pointer-events: all; }
.find-modal {
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 40px;
  width: 100%; max-width: 520px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.find-modal-overlay.open .find-modal { transform: translateY(0); }
.find-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.find-modal-header h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--text);
}
.find-modal-close {
  background: var(--gray); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.upload-zone {
  border: 2px dashed var(--gray-md);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--red); background: #fff5f5; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone-icon svg { width: 40px; height: 40px; stroke: var(--muted); fill: none; stroke-width: 1.5; margin: 0 auto 10px; }
.upload-zone p { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.upload-zone small { font-size: 0.74rem; color: #bbb; }
.upload-preview { width: 100%; max-height: 220px; object-fit: contain; border-radius: 10px; margin-bottom: 14px; display: none; }

/* On desktop move FAB above footer */
@media (min-width: 768px) {
  .fab-find-item { bottom: 28px; right: 28px; }
  .find-modal-overlay { align-items: center; }
  .find-modal { border-radius: 20px; max-width: 480px; margin: 0 auto; }
}

/* ============================================
   MOBILE APP EXPERIENCE — FINAL FIXES
   ============================================ */

/* Prevent horizontal scroll everywhere */
html, body { max-width: 100%; overflow-x: hidden; }

/* Bottom nav always above content */
.bottom-nav { z-index: 200; }

/* Mobile: full-width cards */
@media (max-width: 767px) {
  .card { border-radius: 10px; padding: 14px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 10px; }
  .product-card-img { height: 150px; }
  
  /* Hero mobile */
  .hero-inner { flex-direction: column; padding: 28px 16px; }
  .hero-visual { display: none; } /* hide desktop visual on mobile */
  .hero-title { font-size: 2.2rem; }
  .hero-search-box { flex-direction: row; }
  .hero-stats { gap: 12px; }
  
  /* Checkout grid */
  .co-grid { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }
  
  /* Category grid */
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  
  /* Profile layout */
  .profile-layout { flex-direction: column; }
  
  /* Modal full screen on mobile */
  .modal-overlay { align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-width: 100%; margin: 0; width: 100%; max-height: 90vh; overflow-y: auto; }
  
  /* Admin hidden on mobile */
  .admin-sidebar { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-content { padding: 12px; }
  
  /* FAB above bottom nav */
  .fab-find-item { bottom: 80px; right: 14px; }

  /* Buttons full width on small screens in forms */
  .btn-block { width: 100%; }

  /* Page top spacing for mobile header */
  .page-wrap { padding-top: 0; }

  /* Trust bar wraps nicely */
  .trust-bar-inner { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; min-width: 120px; }

  /* How grid 2 columns on mobile */
  .how-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .how-step svg { width: 28px; height: 28px; }
  .how-step h4 { font-size: 0.8rem; }
  .how-step p  { font-size: 0.75rem; }
}

/* Very small screens */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 1.8rem; }
}

/* ============================================
   MOBILE USER MENU
   ============================================ */
#mob-user-menu a:hover, #mob-user-menu button:hover {
  opacity: 0.9;
}

/* Currency button more visible on mobile */
#mob-curr-btn {
  transition: background 0.2s;
}
#mob-curr-btn:active { background: rgba(255,255,255,0.35) !important; }

/* Profile balance card mobile */
@media (max-width: 767px) {
  .balance-card .bc-amount { font-size: 1.9rem; }
  .ship-due-amount { font-size: 1.3rem; }
}

/* Requests card on mobile */
@media (max-width: 767px) {
  .req-card { flex-direction: column; }
  .req-img, .req-img-ph { width: 100%; height: 160px; }
}
