/* ═══════════════════════════════════════════════════════════
   Medical Sadhan – Global Stylesheet
   Font: Arial / Arial Narrow / System UI (No external fonts)
   Icons: Font Awesome 6 (loaded via CDN in HTML files)
═══════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, 'Arial Narrow', 'Helvetica Neue', Helvetica, sans-serif;
  background: #f0f4f8;
  color: #1a2332;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --teal:        #2ea89e;
  --teal-dark:   #1a7a72;
  --teal-light:  #e8f7f6;
  --teal-mid:    #b2e4e0;
  --navy:        #0f2027;
  --navy-mid:    #1a3a4a;
  --text:        #1a2332;
  --text-muted:  #5a6a7e;
  --text-light:  #8a9ab0;
  --bg:          #f0f4f8;
  --bg-white:    #ffffff;
  --bg-card:     #ffffff;
  --border:      #dde3ec;
  --border-dark: #c5cdd8;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.14);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --red:         #e74c3c;
  --red-light:   #fdf0ef;
  --green:       #27ae60;
  --green-light: #edf9f0;
  --amber:       #f39c12;
  --amber-light: #fef9ee;
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES (Login & Register)
════════════════════════════════════════════════════════ */
.auth-body {
  background: linear-gradient(135deg, #0f2027 0%, #1a3a4a 50%, #0f2027 100%);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius-xl);
  padding: 28px 24px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  color: #fff;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.logo-circle {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  margin: 0 auto 12px;
  box-shadow: 0 4px 20px rgba(46,168,158,.45);
}
.auth-logo h1 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.auth-logo p  { font-size: 13px; color: rgba(255,255,255,.5); }

.logo-circle{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 15px;
  padding: 0;
}

.logo-img{
  width: 100%;
  height: 100%;
  object-fit: cover;   /* full circle fill */
  border-radius: 50%; /* perfect round */
  display: block;
}

/* Step indicator */
.step-indicator { display: flex; align-items: center; margin-bottom: 22px; }
.step-indicator > div { flex: 1; text-align: center; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin: 0 auto 4px;
  transition: all .3s;
}
.step-dot.active  { background: var(--teal); color: #fff; box-shadow: 0 0 12px rgba(46,168,158,.5); }
.step-dot.done    { background: var(--teal-dark); color: #fff; }
.step-dot.pending { background: rgba(255,255,255,.1); color: rgba(255,255,255,.35); }
.step-label { font-size: 11px; color: rgba(255,255,255,.45); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,.1); max-width: 40px; transition: background .4s; }
.step-line.done { background: var(--teal); }

/* Auth alerts */
.alert-error {
  background: rgba(220,53,69,.14);
  border: 1px solid rgba(220,53,69,.38);
  border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13px; color: #ff7b8a;
  margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
}
.alert-success {
  background: rgba(39,174,96,.14);
  border: 1px solid rgba(39,174,96,.38);
  border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13px; color: #4ade80;
  margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
}

/* Form fields (auth) */
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; color: rgba(255,255,255,.42);
  margin-bottom: 6px; text-transform: uppercase;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .field-icon {
  position: absolute; left: 12px; color: rgba(255,255,255,.32);
  font-size: 14px; pointer-events: none; width: 18px; text-align: center;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 11px 12px 11px 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff; font-size: 14px; outline: none;
  transition: border-color .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.input-wrap input::placeholder { color: rgba(255,255,255,.22); }
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--teal);
  background: rgba(255,255,255,.10);
}
.input-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.input-wrap select option { background: #1a3a4a; color: #fff; }
.suffix-btn {
  position: absolute; right: 10px;
  background: none; border: none; color: rgba(255,255,255,.38);
  cursor: pointer; font-size: 14px; padding: 4px;
  transition: color .2s;
}
.suffix-btn:hover { color: rgba(255,255,255,.75); }

/* Select (no icon) */
select.full-select {
  width: 100%; padding: 11px 32px 11px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; color: #fff; font-size: 14px;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s;
}
select.full-select option { background: #1a3a4a; color: #fff; }
select.full-select:focus   { border-color: var(--teal); }

/* Auth buttons */
.btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none; border-radius: 12px;
  color: #fff; font-size: 15px; font-weight: 700;
  transition: opacity .2s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover  { opacity: .88; }
.btn-primary:active { transform: scale(.98); }
.btn-secondary {
  flex: 1; padding: 13px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; color: rgba(255,255,255,.7);
  font-size: 15px; font-weight: 600;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,.12); }
.btn-row { display: flex; gap: 10px; margin-top: 8px; }
.btn-row .btn-primary { flex: 1.5; }

/* Business type grid */
.btype-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 6px; }
.btype-btn {
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 6px; text-align: center;
  cursor: pointer; transition: all .22s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btype-btn:hover { border-color: rgba(46,168,158,.5); background: rgba(46,168,158,.08); }
.btype-btn.active {
  border-color: var(--teal); background: rgba(46,168,158,.18);
  box-shadow: 0 0 12px rgba(46,168,158,.25);
}
.btype-icon { font-size: 20px; margin-bottom: 5px; color: rgba(255,255,255,.65); }
.btype-btn.active .btype-icon { color: var(--teal); }
.btype-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.5); }
.btype-btn.active .btype-label { color: var(--teal); }

/* User type grid */
.utype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.utype-btn {
  background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 10px; text-align: center;
  cursor: pointer; transition: all .22s; user-select: none;
}
.utype-btn:hover { border-color: rgba(46,168,158,.5); }
.utype-btn.active { border-color: var(--teal); background: rgba(46,168,158,.18); }
.utype-icon { font-size: 22px; margin-bottom: 6px; }
.utype-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); }
.utype-btn.active .utype-label { color: var(--teal); }

/* Password hints */
.pw-hints { margin: -4px 0 12px; }
.pw-hint { font-size: 11px; color: rgba(255,255,255,.28); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.pw-hint.ok { color: var(--teal); }
.pw-hint i  { width: 12px; text-align: center; }

/* License upload */
.license-upload { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.upload-zone {
  background: rgba(255,255,255,.05); border: 1.5px dashed rgba(255,255,255,.15);
  border-radius: 10px; padding: 12px 10px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all .2s;
}
.upload-zone:hover { border-color: var(--teal); background: rgba(46,168,158,.07); }
.uz-icon  { font-size: 18px; color: rgba(255,255,255,.38); min-width: 22px; text-align: center; }
.uz-text  { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65); }
.uz-sub   { font-size: 10px; color: rgba(255,255,255,.28); margin-top: 2px; }
.upload-zone.has-file { border-color: var(--teal); background: rgba(46,168,158,.10); }
.upload-zone.has-file .uz-icon { color: var(--teal); }

/* Section head in reg */
.section-head { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.req-star { color: #ff6b6b; }
.opt-tag  { font-size: 10px; font-weight: 400; color: rgba(255,255,255,.3); margin-left: 4px; }
.info-box {
  background: rgba(46,168,158,.10); border: 1px solid rgba(46,168,158,.25);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 16px;
  font-size: 11px; color: rgba(255,255,255,.5); display: flex; gap: 8px; align-items: center;
}
.login-link { text-align: center; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.4); }
.login-link a { color: var(--teal); font-weight: 700; }
.login-link a:hover { text-decoration: underline; }
select:disabled { opacity: .4; cursor: not-allowed; }
.reg-step { animation: slideUp .28s ease; }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ════════════════════════════════════════════════════════
   APP LAYOUT (Home / Internal pages)
════════════════════════════════════════════════════════ */
.app-layout { display: flex; flex-direction: column; min-height: 100vh; }

/* Top Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  height: 58px;
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 12px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; color: var(--navy);
}
.navbar-brand .brand-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
}
.navbar-spacer { flex: 1; }
.navbar-cart-btn {
  position: relative;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  color: var(--teal-dark);
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.navbar-cart-btn:hover { background: var(--teal-mid); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.navbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; position: relative;
}
.navbar-avatar-menu {
  position: absolute; top: 44px; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px; padding: 6px;
  display: none; z-index: 200;
}
.navbar-avatar-menu.open { display: block; }
.avatar-menu-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); cursor: pointer;
  transition: background .15s;
}
.avatar-menu-item:hover { background: var(--bg); }
.avatar-menu-item.danger { color: var(--red); }

/* ── Banner Slider ───────────────────────────────────────── */
.banner-section { padding: 16px 20px 0; }
.banner-slider {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 160px;
  box-shadow: var(--shadow-md);
}
.banner-track {
  display: flex; transition: transform .5s ease;
  height: 100%; will-change: transform;
}
.banner-slide {
  min-width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  position: relative;
}
.banner-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.banner-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: all .2s;
}
.banner-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ── Vendor Filter Bar ──────────────────────────────────── */
.filter-bar {
  padding: 14px 20px 10px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.vendor-select-wrap { position: relative; flex: 1; min-width: 180px; }
.vendor-select-wrap .vi {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: 14px; pointer-events: none;
}
.vendor-select-wrap select {
  width: 100%; padding: 10px 32px 10px 34px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  cursor: pointer; transition: border-color .2s;
}
.vendor-select-wrap select:focus { border-color: var(--teal); }

.search-bar-wrap { position: relative; flex: 2; min-width: 200px; }
.search-bar-wrap .si {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 14px; pointer-events: none;
}
.search-bar-wrap input {
  width: 100%; padding: 10px 36px 10px 34px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 14px;
  outline: none; transition: border-color .2s;
}
.search-bar-wrap input:focus { border-color: var(--teal); }
.search-bar-wrap .sc {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 14px; cursor: pointer;
  display: none;
}
.search-bar-wrap input:not(:placeholder-shown) ~ .sc { display: block; }

/* ── Section Title ──────────────────────────────────────── */
.section-title {
  padding: 4px 20px 10px;
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title .count-badge {
  background: var(--teal-light); color: var(--teal-dark);
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px;
}

/* ── Product Grid ───────────────────────────────────────── */
.product-grid {
  padding: 0 20px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.product-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow .2s, transform .15s;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-top {
  background: var(--teal-light);
  padding: 14px 12px 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.product-vendor-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--teal-dark); background: #fff;
  padding: 2px 8px; border-radius: 20px;
  border: 1px solid var(--teal-mid);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.product-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-company { font-size: 11px; color: var(--text-muted); }
.product-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-price-row { display: flex; align-items: baseline; gap: 6px; }
.product-mrp  { font-size: 11px; color: var(--text-light); text-decoration: line-through; }
.product-rate { font-size: 16px; font-weight: 700; color: var(--teal-dark); }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-pill {
  font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
}
.meta-stock    { background: var(--green-light); color: #1a7a40; }
.meta-nostock  { background: var(--red-light);   color: #a93226; }
.meta-batch    { background: #f5f0ff; color: #6b3ec9; }
.meta-exp      { background: var(--amber-light);  color: #9a6a00; }
.meta-deal     { background: var(--teal-light);   color: var(--teal-dark); }
.add-to-cart-btn {
  margin-top: auto;
  width: 100%; padding: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none; border-radius: var(--radius-sm);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.add-to-cart-btn:hover { opacity: .88; }
.add-to-cart-btn:disabled { opacity: .4; cursor: not-allowed; }

/* No results */
.no-results {
  grid-column: 1/-1; text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}
.no-results i { font-size: 40px; color: var(--teal-mid); margin-bottom: 12px; display: block; }
.no-results p { font-size: 15px; font-weight: 600; }
.no-results span { font-size: 13px; }

/* ── Cart Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 20px 32px;
  transform: translateY(100%); transition: transform .3s ease;
  max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border-dark); margin: 0 auto 18px;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-vendor { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* Qty stepper */
.qty-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.qty-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qty-block label { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; display: block; }
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--border-dark); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff;
}
.qty-stepper button {
  width: 36px; height: 36px; border: none; background: var(--bg);
  color: var(--teal-dark); font-size: 16px; font-weight: 700;
  flex-shrink: 0; transition: background .15s;
}
.qty-stepper button:hover { background: var(--teal-light); }
.qty-stepper input {
  flex: 1; border: none; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--text);
  width: 0; min-width: 0; outline: none;
  background: #fff;
}

/* Note field */
.note-field { margin-top: 12px; }
.note-field label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; display: block; }
.note-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text);
  resize: none; outline: none; transition: border-color .2s;
  font-family: Arial, sans-serif;
}
.note-field textarea:focus { border-color: var(--teal); }

/* Payment mode */
.pay-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.pay-btn {
  padding: 11px; border: 2px solid var(--border-dark);
  border-radius: var(--radius-sm); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pay-btn:hover  { border-color: var(--teal); color: var(--teal-dark); }
.pay-btn.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); }

/* Checkout button */
.checkout-btn {
  width: 100%; margin-top: 16px; padding: 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none; border-radius: var(--radius-md);
  color: #fff; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s; box-shadow: 0 4px 16px rgba(46,168,158,.35);
}
.checkout-btn:hover { opacity: .88; }

/* ── Floating Cart Button (mobile) ─────────────────────── */
.float-cart {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 200;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border: none; border-radius: 28px;
  padding: 13px 20px;
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(46,168,158,.45);
  display: flex; align-items: center; gap: 8px;
  transition: transform .15s;
}
.float-cart:hover  { transform: scale(1.04); }
.float-cart:active { transform: scale(.97); }
.float-cart .fc-badge {
  background: #fff; color: var(--teal-dark);
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ── Toast ──────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
  display: flex; align-items: center; gap: 8px; pointer-events: all;
  white-space: nowrap;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── Loading Spinner ────────────────────────────────────── */
.loading-grid {
  grid-column: 1/-1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 48px;
  gap: 12px; color: var(--text-muted);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--teal-mid);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton loaders ───────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #e8edf2 25%, #f3f6fa 50%, #e8edf2 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Utility ────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.text-teal  { color: var(--teal-dark); }
.text-muted { color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px 100px; }
  .banner-section { padding: 12px 12px 0; }
  .filter-bar     { padding: 10px 12px 8px; }
  .section-title  { padding: 4px 12px 8px; }
  .navbar         { padding: 0 12px; }
  .banner-slider  { height: 130px; }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .banner-slider { height: 200px; }
  .modal-sheet   { border-radius: var(--radius-xl); max-height: 80vh; }
  .modal-overlay { align-items: center; }
}
