/* ==========================================================================
   PRO PHONE — Storefront design system (customer + shared auth pages)
   Scoped to body.customer so vendor/admin panels (app.css only) are unaffected.
   Sections: 1 Tokens · 2 Header/Nav · 3 Base components · 4 Home · 5 Cards
             6 Listing · 7 Product · 8 Cart/Checkout · 9 Orders/Track/Account
             10 Wizards · 11 Forms/Modals · 12 Auth · 13 Content pages · 14 Footer
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
body.customer {
  --primary: #155EEF;
  --primary-dark: #0F4BC4;
  --primary-soft: #EFF4FF;
  --primary-100: #D6E4FF;
  --accent: #3B82F6;
  --navy: #0B1F3A;
  --ink: #111827;
  --muted: #667085;
  --muted-soft: #98A2B3;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --border: #E4E9F2;
  --border-soft: #EEF2F8;
  --success: #16A34A;
  --success-soft: #E8F7EE;
  --danger: #DC2626;
  --danger-soft: #FDECEC;
  --warning-soft: #FEF3E2;
  --r-lg: 18px; --r-md: 12px; --r-sm: 9px;
  --shadow-xs: 0 1px 2px rgba(11,31,58,.05);
  --shadow-sm: 0 4px 14px rgba(11,31,58,.06);
  --shadow-md: 0 14px 34px rgba(11,31,58,.12);
  --shadow-lift: 0 8px 20px rgba(21,94,239,.28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hdr-h: 64px;
  --nav-h: 66px;

  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  letter-spacing: -0.005em;
}
html { scroll-behavior: smooth; }
body.customer h1, body.customer h2, body.customer h3, body.customer h4 { letter-spacing: -0.02em; color: var(--navy); }
body.customer .container { max-width: 1240px; padding: 0 16px; }
@media (min-width: 900px) { body.customer .container { padding: 0 24px; } body.customer { padding-bottom: 0; } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.site-main.page-main { padding-top: 18px; padding-bottom: 48px; min-height: 55vh; }
.flash-wrap { margin-top: 14px; }

/* ---------- 2. Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border-soft); box-shadow: 0 1px 0 rgba(11,31,58,.02); }
.hdr-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--hdr-h); }
.hdr-burger { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; color: var(--navy); }
.hdr-burger:hover { background: var(--primary-soft); }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.brand-name b { color: var(--primary); font-weight: 800; }
.brand-tag { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 9.5px; letter-spacing: .08em; color: var(--muted); font-weight: 500; white-space: nowrap; }
.brand-tag i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-soft); }
.hdr-search, .hdr-loc { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 4px; }
.hdr-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); transition: background .15s, color .15s; }
.hdr-icon:hover { background: var(--primary-soft); color: var(--primary); }
.hdr-icon .count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.hdr-icon .count[hidden] { display: none; }
.hdr-wish { display: none; }
.acct-menu { display: none; }
.hdr-nav { display: none; }

/* mobile search block (scrolls away) */
.m-search { padding-top: 10px; padding-bottom: 12px; background: #fff; }
.m-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.m-loc svg { color: var(--primary); }
.m-loc strong { color: var(--ink); font-weight: 600; }
.m-search .hdr-search { display: flex; }

.hdr-search { align-items: center; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 0 0 14px; height: 46px; gap: 10px; color: var(--muted-soft); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.hdr-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hdr-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); height: 100%; font-family: inherit; }
.hdr-search input::-webkit-search-cancel-button { display: none; }
.hdr-search-btn { width: 52px; height: 100%; border: 0; background: var(--primary); display: grid; place-items: center; transition: background .15s; }
.hdr-search-btn:hover { background: var(--primary-dark); }

@media (min-width: 900px) {
  :root { scroll-padding-top: 130px; }
  .hdr-burger, .m-search { display: none; }
  .hdr-main { display: grid; grid-template-columns: auto minmax(320px, 1fr) auto auto; gap: 28px; padding-top: 14px; padding-bottom: 12px; }
  .brand { flex: none; }
  .brand-name { font-size: 28px; }
  .brand-tag { font-size: 10.5px; letter-spacing: .14em; }
  .hdr-search { display: flex; max-width: 640px; width: 100%; justify-self: center; }
  .hdr-loc { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 12px; height: 46px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .hdr-loc svg { color: var(--primary); }
  .hdr-wish { display: grid; }
  .hdr-actions { gap: 6px; }

  .hdr-nav { display: block; border-top: 1px solid var(--border-soft); }
  .hdr-nav-inner { display: flex; justify-content: center; gap: clamp(20px, 3.2vw, 46px); }
  .hdr-nav a { position: relative; padding: 14px 2px 13px; font-size: 14px; font-weight: 500; color: #344054; transition: color .15s; white-space: nowrap; }
  .hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
  .hdr-nav a:hover { color: var(--primary); }
  .hdr-nav a.active { color: var(--primary); font-weight: 600; }
  .hdr-nav a:hover::after, .hdr-nav a.active::after { transform: scaleX(1); }

  .acct { position: relative; }
  .acct::after { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 12px; }
  .acct-menu { display: block; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 70; }
  .acct:hover .acct-menu, .acct:focus-within .acct-menu { opacity: 1; visibility: visible; transform: none; }
  .acct-menu a, .acct-who { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: 14px; font-weight: 500; color: var(--ink); }
  .acct-menu a:hover { background: var(--primary-soft); color: var(--primary); }
  .acct-menu a.danger { color: var(--danger); }
  .acct-who { flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border-soft); }
  .acct-who span { color: var(--muted); font-size: 12.5px; font-weight: 400; }
}

/* drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(11,31,58,.5); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 330px); background: #fff; z-index: 100; transform: translateX(-102%); transition: transform .28s cubic-bezier(.32,.72,0,1); display: flex; flex-direction: column; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
.drawer.open { transform: none; box-shadow: var(--shadow-md); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--border-soft); }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--primary-soft); }
.drawer-user strong { display: block; font-size: 15px; }
.drawer-user span { font-size: 12.5px; color: var(--muted); }
.drawer-user .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.drawer-links { display: flex; flex-direction: column; padding: 8px 10px 20px; }
.drawer-links a { padding: 13px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; color: #1D2939; }
.drawer-links a.active, .drawer-links a:hover { background: var(--primary-soft); color: var(--primary); }
.drawer-links a.danger { color: var(--danger); }
.drawer-sep { height: 1px; background: var(--border-soft); margin: 8px 6px; }
@media (min-width: 900px) { .drawer, .drawer-overlay { display: none; } }

/* bottom nav (mobile) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); display: flex; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 22px rgba(11,31,58,.06); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted-soft); padding: 7px 0; border-radius: 12px; background: none; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { stroke-width: 2.2; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------- 3. Base components ---------- */
body.customer .btn { border-radius: 12px; font-weight: 600; font-size: 14.5px; padding: 12px 20px; letter-spacing: -0.005em; gap: 8px; }
body.customer .btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-lift); }
body.customer .btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(21,94,239,.34); transform: translateY(-1px); }
body.customer .btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
body.customer .btn-outline:hover { background: var(--primary-soft); }
body.customer .btn-ghost { background: var(--primary-soft); color: var(--primary); }
body.customer .btn-ghost:hover { background: var(--primary-100); }
body.customer .btn-light { background: #fff; border: 1.5px solid var(--border); color: var(--ink); }
body.customer .btn-light:hover { border-color: var(--primary-100); background: var(--primary-soft); }
body.customer .btn-danger { background: var(--danger-soft); color: var(--danger); }
body.customer .btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 13px; }
body.customer .btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
body.customer .card { border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border); background: #fff; color: var(--ink); flex-shrink: 0; transition: background .15s, border-color .15s; }
.icon-btn:hover { background: var(--primary-soft); border-color: var(--primary-100); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert svg { flex-shrink: 0; margin-top: 2px; }
.alert-danger { background: var(--danger-soft); color: #B42318; }
.alert-success { background: var(--success-soft); color: #15803D; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); }
body.customer .note-box { background: var(--warning-soft); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { display: inline-flex; color: var(--muted-soft); }
.breadcrumbs .current { color: var(--ink); font-weight: 500; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 20px; flex-wrap: wrap; }
.page-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0; line-height: 1.15; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
body.customer .section-title { font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; color: var(--navy); }
body.customer .link-more { font-size: 13.5px; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 4px; }
body.customer .link-more:hover { text-decoration: underline; }
body.customer .empty-state { padding: 56px 20px; }
body.customer .empty-state .icon-wrap { background: var(--primary-soft); }

.pill { font-weight: 600; }
body.customer .pill-pending { background: #FEF3E2; color: #B54708; }
body.customer .pill-info { background: var(--primary-soft); color: var(--primary-dark); }
body.customer .pill-progress { background: #EEF2FF; color: #3730A3; }
body.customer .pill-success { background: var(--success-soft); color: #15803D; }
body.customer .pill-danger { background: var(--danger-soft); color: #B42318; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 6px; flex-wrap: wrap; }
.pg-btn { min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--ink); transition: all .15s; }
a.pg-btn:hover { border-color: var(--primary); color: var(--primary); }
.pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-gap { display: inline-grid; place-items: center; width: 24px; color: var(--muted-soft); }

body.customer table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.customer th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); }
body.customer td { padding: 12px; border-bottom: 1px solid var(--border-soft); }

/* ---------- 4. Home ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #E6F0FF 0%, #F5F9FF 52%, #DCEAFF 100%); }
.hero::before { content: ''; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,130,246,.18), transparent); }
.hero-inner { position: relative; display: grid; gap: 4px; align-items: center; padding-top: 26px; padding-bottom: 22px; }
.hero-eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 9vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; margin: 10px 0 14px; color: var(--navy); }
.hero h1 span { display: block; color: var(--primary); }
.hero-sub { font-size: 15.5px; color: #344054; margin: 0 0 22px; }
.hero-sub i { color: var(--muted-soft); margin: 0 8px; font-style: normal; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-feats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 12px 28px; margin-top: 26px; font-size: 13px; color: #475467; font-weight: 500; }
.hero-feats div { display: flex; align-items: center; gap: 8px; }
.hero-feats svg { color: var(--primary); }
.hero-art { position: relative; display: block; margin: 8px auto 0; width: min(88%, 420px); }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(11,31,58,.18)); }
.hero-script { display: none; }
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.02fr .98fr; padding-top: 52px; padding-bottom: 44px; min-height: 440px; }
  .hero-art { width: 100%; max-width: 560px; margin: 0 0 0 auto; }
  .hero-script { display: block; position: absolute; left: 3%; top: 2%; z-index: 3; transform: rotate(-8deg); white-space: nowrap; font-family: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive; font-size: 22px; line-height: 1.15; color: var(--navy); text-align: left; }
  .hero-feats { grid-template-columns: repeat(4, auto); gap: 12px 30px; }
}

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; position: relative; z-index: 2; }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; background: var(--tint, #fff); border: 1px solid rgba(11,31,58,.04); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-ic { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--ic, var(--primary)); box-shadow: 0 4px 12px rgba(11,31,58,.08); }
.cat-t { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.cat-d { display: none; font-size: 12px; color: var(--muted); }
.cat--new { --tint: #FFF1EC; --ic: #E5484D; }
.cat--used { --tint: #EAF4FF; --ic: #1570EF; }
.cat--sell { --tint: #E9F8EF; --ic: #16A34A; }
.cat--repair { --tint: #F6EEFB; --ic: #7A3FD0; }
.cat--appl { --tint: #EEF1FF; --ic: #3B5BDB; }
.cat--acc { --tint: #FFF6E5; --ic: #F59E0B; }
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 24px; }
  .cat { padding: 22px 12px 20px; gap: 10px; }
  .cat-ic { width: 58px; height: 58px; border-radius: 18px; }
  .cat-t { font-size: 15px; }
  .cat-d { display: block; }
}

.home-sec { margin-top: 36px; }
@media (min-width: 900px) { .home-sec { margin-top: 52px; } }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 12px; }
.sec-title h2 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.sec-title p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.sec-ic { width: 40px; height: 40px; border-radius: 12px; background: #FFF4D6; color: #F59E0B; display: grid; place-items: center; flex-shrink: 0; }
.sec-tools { display: flex; align-items: center; gap: 10px; }
.arrow-btn { display: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; place-items: center; color: var(--ink); transition: all .15s; }
.arrow-btn:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 900px) { .arrow-btn { display: grid; } }

.deals-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deals-track .hide-m { display: none; }
@media (min-width: 900px) {
  .deals-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; scrollbar-width: none; padding: 4px 2px 14px; margin: 0 -2px; }
  .deals-track::-webkit-scrollbar { display: none; }
  .deals-track .pc { flex: 0 0 calc((100% - 64px) / 5); min-width: 215px; scroll-snap-align: start; }
  .deals-track .hide-m { display: flex; }
}

.promo-row { display: grid; gap: 16px; }
@media (min-width: 900px) { .promo-row { grid-template-columns: 1fr 1fr; gap: 20px; } }
.promo { position: relative; overflow: hidden; border-radius: 22px; padding: 24px 22px; min-height: 200px; background: linear-gradient(120deg, #E6F0FF, #F6FAFF 55%, #D9E8FF); border: 1px solid #DCE8FB; }
.promo-body { position: relative; z-index: 2; max-width: 62%; }
.promo h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 6px; line-height: 1.12; }
.promo h3 b { color: var(--primary); font-weight: 800; }
.promo p { margin: 0 0 10px; font-size: 14px; color: #475467; }
.promo-feats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13.5px; color: #344054; font-weight: 500; }
.promo-feats li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.promo-feats li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .75; }
.promo-art { position: absolute; right: 0; bottom: 0; height: 100%; max-height: 230px; width: auto; max-width: 50%; object-fit: contain; object-position: right bottom; z-index: 1; }
.promo-badge { position: absolute; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--success); box-shadow: 0 10px 22px rgba(22,163,74,.35); z-index: 3; }
.promo--sell .promo-badge { background: var(--success); }
.promo--repair { background: linear-gradient(120deg, #F1F6FF, #E4EEFF 60%, #D6E5FF); }
@media (max-width: 520px) {
  .promo { padding: 20px 18px; }
  .promo-body { max-width: 66%; }
  .promo-feats li:nth-child(n+4) { display: none; }
  .promo-badge { width: 48px; height: 48px; right: 12px; bottom: 12px; }
}

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding: 22px 0 6px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.25; }
.trust-item span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 30px 0 10px; } .trust-item strong { font-size: 14px; } }

/* ---------- 5. Product cards + grids ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pgrid--side { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .pgrid--side { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; min-width: 0; }
.pc:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.pc-media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(180deg, #F7F9FD, #EDF1F8); }
.pc-img { display: block; width: 100%; height: 100%; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .35s ease; }
.pc:hover .pc-img img { transform: scale(1.06); }
.pc-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 7px; color: #fff; background: var(--success); }
.pc-badge--superb { background: #1570EF; }
.pc-badge--good { background: #7A5AF8; }
.pc-badge--fair { background: #F79009; }
.pc-tag { position: absolute; left: 10px; top: 38px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: #15803D; background: #fff; padding: 3px 7px; border-radius: 6px; box-shadow: var(--shadow-xs); }
.pc-wish-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.pc-wish { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: #667085; display: grid; place-items: center; box-shadow: var(--shadow-xs); transition: transform .15s, color .15s; }
.pc-wish:hover { color: #E11D48; transform: scale(1.08); }
.pc-wish.on { color: #E11D48; }
.pc-wish.on svg { fill: #E11D48; }
.pc-off { position: absolute; left: 10px; bottom: 10px; background: #fff; color: #15803D; font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 7px; box-shadow: var(--shadow-xs); }
.pc-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; flex: 1; }
.pc-brand { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.pc-title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title a:hover { color: var(--primary); }
.pc-meta { font-size: 12.5px; color: var(--muted); }
.pc-extra { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #475467; margin-top: 2px; }
.pc-extra svg { color: var(--success); }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 7px; min-width: 0; }
.pc-now { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.pc-was { font-size: 12px; color: var(--muted-soft); }
.pc-save { flex-basis: 100%; font-size: 11.5px; font-weight: 600; color: #15803D; }
.pc-cart { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--primary); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 6px 14px rgba(21,94,239,.28); transition: background .15s, transform .15s; }
.pc-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pc-cart.is-loading { opacity: .55; pointer-events: none; }
.pc-oos { font-size: 11.5px; font-weight: 700; color: var(--danger); background: var(--danger-soft); padding: 5px 9px; border-radius: 8px; }
.pc-view { display: none; }
@media (min-width: 640px) {
  .pc-body { padding: 14px 16px 16px; }
  .pc-now { font-size: 19px; }
  .pc-view { display: block; margin-top: 12px; text-align: center; padding: 9px 10px; border: 1.5px solid var(--primary-100); border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--primary); transition: all .15s; }
  .pc-view:hover { background: var(--primary-soft); border-color: var(--primary); }
}

/* ---------- 6. Listing page ---------- */
.listing { display: grid; gap: 18px; }
@media (min-width: 900px) { .listing { grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; } }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.list-count { font-size: 14px; color: var(--muted); }
.list-count strong { color: var(--navy); }
.list-tools { display: flex; align-items: center; gap: 10px; }
.sort-select { border: 1.5px solid var(--border); background: #fff; border-radius: 10px; padding: 9px 34px 9px 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); font-family: inherit; }
.filter-open-btn { display: inline-flex; }
@media (min-width: 900px) { .filter-open-btn { display: none; } }

body.customer .filter-panel.bottom-sheet { max-height: 88vh; padding: 12px 20px 20px; }
.fp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fp-head h3 { margin: 0; font-size: 17px; }
.fgroup { border-top: 1px solid var(--border-soft); padding: 14px 0; }
.fgroup:first-of-type { border-top: 0; }
.fgroup h4 { font-size: 13px; margin: 0 0 10px; font-weight: 700; color: var(--navy); }
.fgroup select, .fgroup input[type=text], .fgroup input[type=number], .fgroup input[type=search] { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; background: #fff; font-family: inherit; color: var(--ink); }
.fgroup select:focus, .fgroup input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.range-row { display: flex; align-items: center; gap: 8px; }
.range-row span { color: var(--muted-soft); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: #344054; background: #fff; transition: all .15s; }
.opt:hover span { border-color: var(--primary-100); }
.opt input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.fp-actions { display: flex; gap: 10px; padding-top: 6px; }
.fp-actions .btn { flex: 1; }
@media (min-width: 900px) {
  body.customer .filter-panel.bottom-sheet { position: sticky; top: 130px; left: auto; right: auto; bottom: auto; transform: none; z-index: 1; max-height: calc(100vh - 150px); border-radius: 18px; border: 1px solid var(--border); box-shadow: none; padding: 18px 20px 20px; }
  .fp-head .icon-btn, .filter-panel .sheet-handle { display: none; }
  .fp-head { margin-bottom: 0; }
}

/* ---------- 7. Product detail ---------- */
.pd { display: grid; gap: 22px; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; } }
.pd-gallery { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .pd-gallery { flex-direction: row-reverse; position: sticky; top: 140px; } }
.pd-stage { position: relative; overflow: hidden; flex: 1; border-radius: 22px; background: linear-gradient(180deg, #F7F9FD, #ECF0F8); aspect-ratio: 1 / 1; border: 1px solid var(--border-soft); }
@media (min-width: 900px) { .pd-stage { cursor: zoom-in; } }
.pd-stage img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .2s ease; will-change: transform; }
.pd-stage.zoom img { transform: scale(2); }
.pd-zoom-hint { position: absolute; right: 12px; bottom: 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.9); padding: 4px 9px; border-radius: 8px; display: none; }
@media (min-width: 900px) { .pd-zoom-hint { display: block; } .pd-stage.zoom .pd-zoom-hint { display: none; } }
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .pd-thumbs { flex-direction: column; width: 78px; max-height: 560px; overflow-y: auto; } }
.pd-thumb { width: 68px; height: 68px; flex-shrink: 0; border-radius: 14px; border: 2px solid var(--border); background: #fff; padding: 0; overflow: hidden; transition: border-color .15s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); }
.pd-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pd-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.15; margin: 6px 0 10px; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.stars { display: inline-flex; color: #F59E0B; }
.stars svg { fill: currentColor; }
.stars .off { color: #D0D5DD; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-info { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 600; }
.chip-info.green { background: var(--success-soft); color: #15803D; }
.pd-priceblock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 14px; }
.pd-price { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--navy); letter-spacing: -0.03em; }
.pd-was { font-size: 18px; color: var(--muted-soft); text-decoration: line-through; }
.pd-off { background: var(--success-soft); color: #15803D; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.pd-save { flex-basis: 100%; font-size: 13.5px; color: #15803D; font-weight: 600; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.avail::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.avail.low::before { background: #F79009; box-shadow: 0 0 0 4px #FEF3E2; }
.avail.out::before { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.pd-perks { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); margin-bottom: 18px; }
.pd-perk { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #344054; }
.pd-perk svg { color: var(--primary); flex-shrink: 0; }
.pd-perk strong { color: var(--navy); }
.pd-cta { display: none; gap: 12px; }
@media (min-width: 900px) { .pd-cta { display: flex; } .pd-cta .btn { flex: 1; } }
.pd-wish-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 0; }
.pd-wish-link:hover, .pd-wish-link.on { color: #E11D48; }
.pd-wish-link.on svg { fill: #E11D48; }
.pd-sections { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 900px) { .pd-sections { grid-template-columns: 1fr 1fr; align-items: start; } .pd-sections .span-2 { grid-column: 1 / -1; } }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.panel h2, .panel h3 { margin: 0 0 12px; font-size: 18px; }
.spec-grid { display: grid; }
body.customer .spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
body.customer .spec-row:last-child { border-bottom: 0; }
body.customer .spec-row span { color: var(--muted); }
body.customer .spec-row strong { color: var(--navy); font-weight: 600; text-align: right; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 4px; }
.review p { margin: 6px 0 0; font-size: 14px; color: #475467; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 55; display: flex; gap: 10px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 22px rgba(11,31,58,.07); }
.mobile-cta .btn { flex: 1; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
.has-mobile-cta { padding-bottom: 76px; }
@media (min-width: 900px) { .has-mobile-cta { padding-bottom: 0; } }

/* ---------- 8. Cart & checkout ---------- */
.checkout { display: grid; gap: 18px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; } }
.co-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.co-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.co-head h2 { margin: 0; font-size: 17px; }
.co-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.co-body { padding: 16px 20px 20px; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.cart-item:last-child { border-bottom: 0; }
.ci-img { width: 84px; height: 84px; border-radius: 14px; background: linear-gradient(180deg, #F7F9FD, #ECF0F8); overflow: hidden; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ci-name { font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--navy); }
.ci-name a:hover { color: var(--primary); }
.ci-meta { font-size: 13px; color: var(--muted); }
.ci-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ci-price { font-size: 17px; font-weight: 800; color: var(--navy); }
.ci-price s { font-size: 12.5px; color: var(--muted-soft); font-weight: 500; margin-left: 6px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; color: var(--ink); font-size: 18px; line-height: 1; }
.qty button:hover { background: var(--primary-soft); color: var(--primary); }
.qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }
.ci-links { display: flex; gap: 16px; margin-top: 10px; }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-family: inherit; }
.link-btn:hover { color: var(--primary); }
.link-btn.danger:hover { color: var(--danger); }
.opt-card { position: relative; display: block; cursor: pointer; margin-bottom: 10px; }
.opt-card:last-child { margin-bottom: 0; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card .oc-body { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; transition: all .15s; font-size: 14px; }
.opt-card .oc-body::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD5E1; flex-shrink: 0; margin-top: 2px; transition: all .15s; }
.opt-card:hover .oc-body { border-color: var(--primary-100); }
.opt-card input:checked + .oc-body { border-color: var(--primary); background: var(--primary-soft); }
.opt-card input:checked + .oc-body::before { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, #fff 50%); }
.opt-card input:focus-visible + .oc-body { outline: 2px solid var(--primary); outline-offset: 2px; }
.oc-body small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.summary { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
@media (min-width: 900px) { .summary { position: sticky; top: 140px; } }
.summary h2 { margin: 0 0 12px; font-size: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; color: #475467; }
.sum-row strong { color: var(--navy); font-weight: 600; }
.sum-row.save, .sum-row.save strong { color: #15803D; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 17px; font-weight: 800; color: var(--navy); }
.sum-total strong { font-size: 24px; letter-spacing: -0.02em; }
.summary .btn { margin-top: 16px; }
.summary-trust { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); justify-content: center; }
.summary-trust svg { color: var(--success); }
.place-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 22px rgba(11,31,58,.07); }
.place-bar .pb-total { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.2; }
.place-bar .pb-total strong { display: block; font-size: 18px; color: var(--navy); }
.place-bar .btn { flex: 1.3; }
@media (min-width: 900px) { .place-bar { display: none; } }

/* ---------- 9. Orders / tracking / account ---------- */
body.customer .tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
body.customer .tabs::-webkit-scrollbar { display: none; }
body.customer .tabs button { border: 1.5px solid var(--border); background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: all .15s; }
body.customer .tabs button:hover { border-color: var(--primary-100); color: var(--primary); }
body.customer .tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.o-list { display: grid; gap: 14px; }
@media (min-width: 900px) { .o-list { grid-template-columns: 1fr 1fr; } }
.o-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: grid; gap: 14px; transition: box-shadow .2s; }
.o-card:hover { box-shadow: var(--shadow-sm); }
.o-top { display: flex; gap: 14px; align-items: center; }
.o-thumb { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(180deg, #F7F9FD, #ECF0F8); flex-shrink: 0; overflow: hidden; }
.o-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.o-info { min-width: 0; flex: 1; }
.o-info h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.o-sub { font-size: 12.5px; color: var(--muted); }
.o-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.o-amount { font-size: 17px; font-weight: 800; color: var(--navy); }
.o-meta { font-size: 13px; color: var(--muted); }

.track-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.track-head h2 { margin: 0; font-size: 20px; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl li { position: relative; padding: 0 0 28px 50px; min-height: 52px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--border); }
.tl li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; color: var(--muted-soft); transition: all .2s; }
.tl li strong { display: block; font-size: 15px; color: var(--muted); font-weight: 600; }
.tl li span { font-size: 12.5px; color: var(--muted-soft); }
.tl li.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tl li.done::before { background: var(--primary); }
.tl li.done strong, .tl li.current strong { color: var(--navy); }
.tl li.current .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-100); }
.tl li.current span { color: var(--primary); font-weight: 600; }
.tl.cancelled li .dot { border-color: var(--danger); color: var(--danger); }
@media (min-width: 760px) {
  .tl { flex-direction: row; }
  .tl li { flex: 1; padding: 46px 6px 0; text-align: center; min-height: 0; }
  .tl li::before { left: calc(50% + 22px); right: calc(-50% + 22px); top: 15px; bottom: auto; width: auto; height: 2px; }
  .tl .dot { left: 50%; transform: translateX(-50%); }
}
.track-items { margin-top: 24px; border-top: 1px solid var(--border-soft); padding-top: 14px; display: grid; gap: 12px; }
.track-item { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.track-item .o-thumb { width: 52px; height: 52px; }
.track-find { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.track-find input { flex: 1; min-width: 200px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14.5px; font-family: inherit; }
.track-find input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.acct-card { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, var(--navy), #123A7A); color: #fff; padding: 20px; border-radius: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.acct-card .avatar { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.acct-card h1 { margin: 0; font-size: 20px; color: #fff; }
.acct-card p { margin: 2px 0 0; font-size: 13.5px; opacity: .8; }
.acct-card .grow { flex: 1; min-width: 160px; }
.acct-card .btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
@media (min-width: 760px) { .dash-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.dash-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.dash-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.dash-card strong { font-size: 15px; color: var(--navy); }
.dash-card span { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.sec-simple { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.sec-simple h2 { margin: 0; font-size: 20px; }
.addr-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .addr-grid { grid-template-columns: 1fr 1fr; } }
.addr-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; font-size: 14px; line-height: 1.6; }
.addr-card .addr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

/* ---------- 10. Wizards (sell / repair / appliance) ---------- */
.wizard { display: grid; gap: 18px; }
@media (min-width: 900px) { .wizard { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; } }
.wz-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 20px 18px 22px; }
@media (min-width: 640px) { .wz-card { padding: 28px; } }
.stepper { display: flex; margin: 0 0 26px; }
.stepper .step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted-soft); min-width: 0; }
.stepper .step + .step::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--border); transition: background .25s; }
.stepper .step i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--border); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; transition: all .25s; }
.stepper .step span { line-height: 1.2; }
.stepper .step.done::before, .stepper .step.active::before { background: var(--primary); }
.stepper .step.done i { background: var(--primary); border-color: var(--primary); color: #fff; }
.stepper .step.active i { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.stepper .step.done span, .stepper .step.active span { color: var(--navy); }
@media (min-width: 640px) { .stepper .step { font-size: 12.5px; } }

.sstep > h3, .rstep > h3, .step-title { font-size: 19px; margin: 0 0 16px; }
.sstep h4, .rstep h4 { color: var(--navy); }
body.customer .chip-select .chip { padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--border); font-weight: 600; font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; transition: all .15s; user-select: none; }
body.customer .chip-select .chip:hover { border-color: var(--primary-100); background: var(--primary-soft); }
body.customer .chip-select .chip.selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: 0 0 0 3px rgba(21,94,239,.08); }
body.customer .chip-select .chip.disabled { opacity: .5; cursor: not-allowed; }
#brand-chips, #model-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
#brand-chips .chip, #model-chips .chip { text-align: center; padding: 16px 10px; border-radius: 14px; }
#brand-chips p, #model-chips p { grid-column: 1 / -1; }
#storage-chips .chip { min-width: 84px; text-align: center; }
body.customer .estimate-card { background: linear-gradient(160deg, var(--primary-soft), #fff 70%); border: 1px solid var(--primary-100); border-radius: 20px; }
body.customer .estimate-card .amount { color: var(--primary); font-size: clamp(28px, 5vw, 38px); font-weight: 800; }
body.customer .estimate-card .icon-wrap { background: #fff; color: var(--primary); }
.wz-aside { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 20px; }
@media (min-width: 900px) { .wz-aside { position: sticky; top: 140px; } }
.wz-aside h3 { margin: 0 0 12px; font-size: 16px; }
.wz-aside .spec-row { padding: 10px 0; font-size: 13.5px; }
.wz-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.wz-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #344054; }
.wz-list svg { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.wz-list strong { color: var(--navy); }
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 16px; border: 2px dashed #C7D7F5; border-radius: 18px; background: var(--primary-soft); color: var(--primary); text-align: center; cursor: pointer; transition: background .15s; }
.upload-drop:hover { background: #E4EDFF; }
.test-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.test-row input { width: 20px; height: 20px; accent-color: var(--primary); }

/* ---------- 11. Forms, modals ---------- */
body.customer .field label { font-size: 13px; font-weight: 600; color: #344054; }
body.customer .field input[type=text], body.customer .field input[type=email], body.customer .field input[type=tel],
body.customer .field input[type=password], body.customer .field input[type=number], body.customer .field input[type=date],
body.customer .field select, body.customer .field textarea { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 15px; }
body.customer .field input:focus, body.customer .field select:focus, body.customer .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
body.customer .field input:disabled { background: var(--bg); color: var(--muted); }
.form-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

body.customer .bottom-sheet { border-radius: 24px 24px 0 0; }
@media (min-width: 900px) {
  body.customer .bottom-sheet:not(.filter-panel) { left: 50%; right: auto; bottom: auto; top: 50%; width: min(540px, 92vw); max-height: 90vh; border-radius: 22px; padding: 24px 26px; transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility .25s; }
  body.customer .bottom-sheet.open:not(.filter-panel) { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
  body.customer .bottom-sheet:not(.filter-panel) .sheet-handle { display: none; }
}

/* legacy helpers still used by a few pages */
body.customer .order-card { padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
body.customer .menu-list a, body.customer .menu-list button { font-weight: 600; }
body.customer .included-list .item svg { color: var(--success); }

/* ---------- 12. Auth pages ---------- */
body.customer .auth-wrap { max-width: 420px; margin: 0 auto; padding: 44px 20px 60px; }
body.customer .auth-logo { text-align: center; margin-bottom: 28px; }
body.customer .auth-logo .logo-box { width: 56px; height: 56px; border-radius: 17px; margin: 0 auto 14px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: var(--shadow-lift); }
.auth-shell { min-height: 100vh; display: grid; background: #fff; }
.auth-side { display: none; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, #0F3A82 60%, var(--primary) 130%); color: #fff; padding: 56px; flex-direction: column; justify-content: space-between; }
.auth-side::after { content: ''; position: absolute; right: -90px; bottom: -90px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.06); }
.auth-side .brand-name, .auth-side .brand-name b { color: #fff; }
.auth-side h2 { font-size: 38px; line-height: 1.1; color: #fff; margin: 0 0 14px; font-weight: 800; }
.auth-side p { font-size: 16px; opacity: .8; max-width: 380px; margin: 0 0 26px; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.auth-side li svg { background: rgba(255,255,255,.14); border-radius: 50%; padding: 6px; width: 32px; height: 32px; }
.auth-main { display: grid; place-items: center; padding: 28px 18px 40px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box .brand { justify-content: center; margin-bottom: 26px; }
.auth-box h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
.auth-box .sub { color: var(--muted); font-size: 14.5px; margin: 0 0 24px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.auth-back:hover { color: var(--primary); }
@media (min-width: 900px) { .auth-shell { grid-template-columns: 1fr 1fr; } .auth-side { display: flex; } .auth-box .brand { display: none; } }

/* ---------- 13. Content pages (about / policies) ---------- */
.info-hero { background: linear-gradient(135deg, #E6F0FF, #F5F9FF 55%, #DCEAFF); border-radius: 24px; padding: 34px 24px; margin-bottom: 26px; }
.info-hero h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 6px 0 10px; font-weight: 800; }
.info-hero p { max-width: 640px; color: #475467; font-size: 16px; margin: 0; }
.prose { max-width: 820px; font-size: 15.5px; line-height: 1.75; color: #344054; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose ul { padding-left: 20px; }
.value-grid { display: grid; gap: 14px; margin: 24px 0; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.value-card .dash-ic { margin-bottom: 12px; }
.value-card h3 { margin: 0 0 6px; font-size: 16px; }
.value-card p { margin: 0; font-size: 14px; color: var(--muted); }
.contact-grid { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 22px; padding: 26px 28px; margin-top: 30px; }
.cta-band h3 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.cta-band p { margin: 0; opacity: .75; font-size: 14.5px; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--navy); color: #C7D2E5; margin-top: 56px; padding: 44px 0 20px; }
.site-footer a:hover { color: #fff; }
.ft-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.ft-brand { grid-column: 1 / -1; }
.ft-brand .brand { flex: none; margin-bottom: 14px; }
.ft-brand .brand-name, .ft-brand .brand-name b { color: #fff; }
.ft-brand p { font-size: 14px; line-height: 1.65; margin: 0 0 16px; max-width: 360px; }
.ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ft-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ft-contact svg { flex-shrink: 0; margin-top: 2px; color: #7FA8FF; }
.ft-social { display: flex; gap: 10px; margin-top: 16px; }
.ft-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .15s; }
.ft-social a:hover { background: var(--primary); }
.ft-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.ft-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .15s, transform .15s; }
.ft-col a:hover { transform: translateX(3px); }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #93A4C0; }
.ft-pay { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) {
  .ft-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: 36px; }
  .ft-brand { grid-column: auto; }
}

/* ---------- 15. Late additions ---------- */
a.value-card { display: block; transition: transform .2s, box-shadow .2s; }
a.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sstep > h3, .rstep > h3 { font-size: 19px !important; }
.sstep h3, .rstep h3 { color: var(--navy); }
.checkout { padding-bottom: 76px; }
@media (min-width: 900px) { .checkout { padding-bottom: 0; } }
.o-card[href] { display: grid; }
.o-card[href]:hover { border-color: var(--primary-100); }

/* ---------- 16. Mobile/tablet hero → compact banner (desktop untouched) ---------- */
@media (max-width: 899.98px) {
  .hero { margin: 12px 16px 0; border-radius: 22px; }
  .hero::before { display: none; }
  body.customer .hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: center; padding: 20px 8px 18px 18px; gap: 6px; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: .1em; white-space: nowrap; }
  .hero h1 { font-size: clamp(26px, 7.6vw, 40px); line-height: 1.06; margin: 8px 0 10px; }
  .hero-sub { font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
  .hero-sub i { margin: 0 4px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 10px 14px; font-size: 13px; border-radius: 11px; box-shadow: 0 6px 14px rgba(21,94,239,.25); }
  .hero-cta .btn-light { display: none; }          /* "Sell Your Phone" is one tap away in the category cards + bottom nav */
  .hero-feats { display: none; }
  .hero-art { width: 100%; max-width: none; margin: 0; padding-right: 6px; }
  .hero-art img { display: block; width: 100%; height: auto; max-height: 250px; object-fit: contain; object-position: right center; filter: drop-shadow(0 12px 16px rgba(11,31,58,.2)); }
}
@media (min-width: 560px) and (max-width: 899.98px) {
  .hero-cta .btn-light { display: inline-flex; }   /* room for both buttons on larger phones/tablets */
  body.customer .hero .hero-inner { padding: 30px 20px 30px 32px; }
  .hero h1 { font-size: clamp(34px, 6vw, 46px); }
  .hero-sub { font-size: 14px; }
}
