:root {
  --brand: #EE6C2D;
  --brand-2: #F0904A;
  --brand-soft: #FDEEE4;
  --ink: #1A1D2E;
  --ink-2: #5B6275;
  --muted: #9AA0AE;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --line: #ECEEF2;
  --red: #E04A4A;
  --red-soft: #FDECEC;
  --green: #2FB67C;
  --green-soft: #E6F7EF;
  --blue: #4C7CF0;
  --blue-soft: #EAF0FE;
  --purple: #8B5CF6;
  --purple-soft: #F1ECFE;
  --radius: 22px;
  --shadow: 0 6px 24px rgba(26, 29, 46, .06);
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Vazirmatn', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.num { font-feature-settings: 'tnum'; direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: clamp(18px, 5vw, 24px); white-space: nowrap; letter-spacing: -.5px; direction: ltr; }
.logo .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; }
.logo .dot::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (max-width: 380px) { .icon-btn { width: 42px; height: 42px; } .header-actions .sep { display: none; } }
.icon-btn { width: 46px; height: 46px; border-radius: 14px; background: #F2F3F6; display: grid; place-items: center; position: relative; transition: transform .15s; }
.icon-btn:active { transform: scale(.94); }
.icon-btn.brand { background: var(--brand-soft); color: var(--brand); border: 1px solid #F8D9C5; }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.sep { width: 1px; height: 28px; background: var(--line); }
.desktop-nav { display: none; gap: 4px; }
.desktop-nav a { padding: 10px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-2); }
.desktop-nav a.active, .desktop-nav a:hover { background: var(--brand-soft); color: var(--brand); }
@media (min-width: 900px) { .desktop-nav { display: flex; } }

/* ---------- page head (back bar) ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.page-head h1 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 12px; }
.back-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #F7F8FA; display: grid; place-items: center; }
.back-btn svg { width: 18px; height: 18px; }
[dir=ltr] .back-btn svg { transform: scaleX(-1); }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; }

/* ---------- categories strip ---------- */
.cat-strip-wrap { background: #fff; border-radius: 0 0 28px 28px; box-shadow: var(--shadow); margin-bottom: 20px; }
.cat-strip { display: flex; gap: 14px; overflow-x: auto; padding: 18px 16px 22px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-chip { flex: 0 0 auto; width: 92px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.cat-chip .img { width: 80px; height: 80px; margin: 0 auto 8px; border-radius: 22px; background: #F4F5F8; border: 2px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.cat-chip .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip.active { color: var(--brand); }
.cat-chip.active .img { border-color: var(--brand); background: var(--brand-soft); }
.cat-chip .img svg { width: 34px; height: 34px; color: var(--brand); }

/* ---------- banner slider ---------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 2; background: #2A2F45; margin-bottom: 20px; }
@media (max-width: 600px) { .slider { aspect-ratio: 16 / 8; } }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: rgba(42,47,69,.9); color: #fff; padding: 18px 22px; border-radius: 18px; max-width: 58%; border: 1px solid rgba(255,255,255,.08); }
.slide .caption .tag { display: inline-block; background: var(--brand); padding: 2px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.slide .caption h3 { margin: 0 0 4px; font-size: clamp(17px, 3vw, 26px); }
.slide .caption p { margin: 0; opacity: .85; font-size: clamp(12px, 2vw, 15px); }
.dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.5); transition: width .3s; padding: 0; }
.dots button.active { width: 24px; background: var(--brand); }

/* ---------- flash sale ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.flash { padding: 18px; margin-bottom: 22px; }
.flash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.flash-head h2 { margin: 0; font-size: 19px; color: var(--red); display: flex; align-items: center; gap: 6px; }
.flash-head h2 svg { width: 20px; height: 20px; }
.countdown { display: flex; align-items: center; gap: 6px; background: var(--red-soft); border: 1px solid #F6C9C9; color: var(--red); padding: 5px 10px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.countdown .t { display: flex; gap: 4px; direction: ltr; align-items: center; }
.countdown b { background: var(--red); color: #fff; border-radius: 6px; padding: 1px 6px; min-width: 28px; text-align: center; }
.flash-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.flash-row::-webkit-scrollbar { display: none; }
.flash-item { flex: 0 0 160px; background: #F9FAFB; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.flash-item .img { position: relative; background: #fff; border-radius: 12px; aspect-ratio: 1; overflow: hidden; }
.flash-item .img img { width: 100%; height: 100%; object-fit: cover; }
.flash-item .bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(224,74,74,.9); color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: 2px 0; }
.flash-item .nm { font-size: 13.5px; font-weight: 600; margin: 8px 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-item .pr { margin: 0 4px; font-weight: 800; }

/* ---------- sort tabs ---------- */
.sort-tabs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 18px; border-bottom: 1px solid #E3E6EC; margin-bottom: 18px; }
.sort-tabs::-webkit-scrollbar { display: none; }
.sort-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; color: var(--ink-2); }
.sort-tab svg { width: 18px; height: 18px; }
.sort-tab.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* ---------- product grid ---------- */
.section-title { font-size: 19px; font-weight: 800; margin: 6px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.p-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.p-card:hover { transform: translateY(-2px); }
.p-card .img { position: relative; aspect-ratio: 1; background: #F4F5F8; }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; }
.p-card.soldout .img img { filter: grayscale(.6) blur(1px); opacity: .6; }
.p-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.p-card .nm { font-weight: 700; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; margin-bottom: 10px; }
.p-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 800; font-size: 18px; white-space: nowrap; }
.price small { font-size: 12px; color: var(--ink-2); font-weight: 600; margin-inline-start: 3px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 13px; font-weight: 600; white-space: nowrap; }
.prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.add-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(238,108,45,.35); flex: 0 0 auto; transition: transform .15s; }
.add-btn:active { transform: scale(.9); }
.add-btn:disabled { background: #D7DAE0; box-shadow: none; cursor: not-allowed; }
.add-btn svg { width: 22px; height: 22px; }
.tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; z-index: 2; }
.tag svg { width: 14px; height: 14px; }
.tag.start { inset-inline-start: 10px; }
.tag.end { inset-inline-end: 10px; }
.tag.off { background: var(--red); color: #fff; direction: ltr; }
.tag.feat { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.tag.sold { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.08); direction: ltr; }
.tag.out { background: #E07070; color: #fff; }
.tag.trend { background: var(--ink); color: #fff; }
.tag.low { background: #FFF4E5; color: #D97706; }
.tags-stack { position: absolute; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tags-stack.start { inset-inline-start: 10px; align-items: flex-start; }
.tags-stack.end { inset-inline-end: 10px; align-items: flex-end; }
.tags-stack .tag { position: static; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 70px 20px; }
.empty .ic { width: 120px; height: 120px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 0 0 18px rgba(253,238,228,.35); }
.empty .ic.sq { border-radius: 32px; width: 100px; height: 100px; box-shadow: none; }
.empty .ic svg { width: 50px; height: 50px; }
.empty h3 { margin: 0 0 6px; font-size: 20px; }
.empty p { margin: 0 0 24px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 34px; border-radius: 18px; font-weight: 700; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(238,108,45,.3); }
.btn-soft { background: #EEF0F4; color: var(--ink-2); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid #F6C9C9; }
.btn-block { width: 100%; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(26,29,46,.45); backdrop-filter: blur(6px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-radius: 30px 30px 0 0; padding: 14px 24px 28px; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); max-width: 640px; margin: 0 auto; }
.sheet.open { transform: none; }
.sheet .grab { width: 46px; height: 5px; border-radius: 3px; background: #D8DBE2; margin: 0 auto 18px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-head h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; }
.sheet-head .hic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.sheet-head .hic svg { width: 22px; height: 22px; }
.close-btn { width: 44px; height: 44px; border-radius: 50%; background: #F0F2F5; display: grid; place-items: center; }
.close-btn svg { width: 18px; height: 18px; }
.search-box { display: flex; align-items: center; gap: 10px; border: 2px solid var(--brand); border-radius: 20px; padding: 0 18px; height: 62px; box-shadow: 0 0 0 5px var(--brand-soft); margin-bottom: 18px; }
.search-box svg { width: 22px; height: 22px; color: var(--brand); flex: 0 0 auto; }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.chips .lbl { color: var(--ink-2); font-size: 14px; display: flex; gap: 4px; align-items: center; }
.chips .lbl svg { width: 18px; height: 18px; }
.chip { padding: 8px 18px; border-radius: 999px; background: #F2F4F7; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.sheet .btn { width: 100%; margin-bottom: 10px; }

.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(420px, 86vw); background: var(--bg); z-index: 70; transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
[dir=rtl] .drawer { transform: translateX(105%); }
.drawer.open { transform: none !important; }
.drawer > .cat-layout { flex: 1; min-height: 0; }
.drawer.full { width: min(760px, 100vw); }
.drawer-head { background: #fff; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.drawer-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; }
.drawer-body { overflow-y: auto; flex: 1; padding: 18px; }

/* side menu */
.menu-user { display: flex; align-items: center; gap: 14px; padding: 18px; margin-bottom: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; flex: 0 0 auto; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(238,108,45,.3); }
.menu-user .info { flex: 1; min-width: 0; }
.menu-user .info b { display: block; font-size: 17px; }
.menu-user .info span { color: var(--ink-2); font-size: 14px; }
.menu-list { overflow: hidden; margin-bottom: 18px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; }
.menu-item .mi svg { width: 22px; height: 22px; }
.menu-item .chev { margin-inline-start: auto; color: var(--muted); width: 18px; height: 18px; }
[dir=ltr] .menu-item .chev { transform: scaleX(-1); }
.menu-item.active { background: var(--brand-soft); color: var(--brand); box-shadow: inset -4px 0 0 var(--brand); }
[dir=ltr] .menu-item.active { box-shadow: inset 4px 0 0 var(--brand); }
.mi.o { background: var(--brand-soft); color: var(--brand); }
.mi.o.solid { background: var(--brand); color: #fff; }
.mi.b { background: var(--blue-soft); color: var(--blue); }
.mi.g { background: var(--green-soft); color: var(--green); }
.mi.p { background: var(--purple-soft); color: var(--purple); }
.mi.y { background: #FFF6E0; color: #E6A100; }
.mi.r { background: var(--red-soft); color: var(--red); }
.lang-box { padding: 18px; margin-bottom: 18px; }
.lang-box .lbl { color: var(--ink-2); font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.lang-box .lbl svg { width: 18px; height: 18px; }
.seg { display: flex; background: #EEF1F5; border-radius: 16px; padding: 5px; }
.seg button { flex: 1; padding: 11px 6px; border-radius: 12px; font-weight: 700; color: var(--ink-2); }
.seg button.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.socials-lbl { color: var(--ink-2); font-size: 14px; margin: 6px 4px 12px; }
.socials { display: flex; gap: 14px; justify-content: center; margin-bottom: 22px; }
.socials a { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.socials a svg { width: 24px; height: 24px; }

/* categories drawer */
.cat-layout { display: flex; height: 100%; }
.cat-side { width: 38%; max-width: 220px; background: #fff; overflow-y: auto; border-inline-end: 1px solid var(--line); }
.cat-side button { width: 100%; padding: 18px 8px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.cat-side button .img { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 16px; overflow: hidden; background: #F4F5F8; }
.cat-side button .img img { width: 100%; height: 100%; object-fit: cover; }
.cat-side button.active { background: #F7F8FA; color: var(--brand); }
.cat-main { flex: 1; overflow-y: auto; padding: 18px; }
.sub-item { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 18px; margin-bottom: 12px; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.03); width: 100%; }
.sub-item.all { background: var(--brand-soft); color: var(--brand); box-shadow: 0 4px 14px rgba(238,108,45,.12); }
.sub-item svg { width: 18px; height: 18px; color: var(--muted); }
.sub-item.all svg { color: var(--brand); }
[dir=ltr] .sub-item svg { transform: scaleX(-1); }
.sub-item .cnt { margin-inline-start: auto; margin-inline-end: 10px; color: var(--muted); font-size: 13px; }

/* ---------- profile ---------- */
.profile-hero { background: var(--grad); color: #fff; border-radius: 0 0 36px 36px; padding: 34px 0 80px; position: relative; overflow: hidden; }
.profile-hero::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); top: -80px; inset-inline-start: -60px; }
.profile-hero .container { display: flex; align-items: center; gap: 18px; position: relative; }
.profile-hero .avatar { width: 92px; height: 92px; font-size: 34px; background: rgba(255,255,255,.15); box-shadow: 0 0 0 4px #fff; }
.profile-hero b { font-size: 24px; display: block; }
.profile-hero a { color: #fff; text-decoration: underline; opacity: .95; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: -54px; position: relative; }
.stat { padding: 18px; display: flex; align-items: center; gap: 14px; }
.stat .mi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.stat .mi svg { width: 24px; height: 24px; }
.stat .lbl { color: var(--ink-2); font-size: 14px; }
.stat .val { font-weight: 800; font-size: 22px; }
.wallet { background: var(--ink); color: #fff; padding: 20px; margin: 14px 0; display: flex; align-items: center; gap: 14px; border-radius: var(--radius); }
.wallet .mi { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.08); color: var(--brand-2); display: grid; place-items: center; }
.wallet .mi svg { width: 24px; height: 24px; }
.wallet .lbl { opacity: .7; font-size: 14px; }
.wallet .val { font-weight: 800; font-size: 24px; }
.invite { background: #FFF8F3; border: 2px solid #FBE2D3; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.invite .top { display: flex; gap: 14px; margin-bottom: 14px; }
.invite .top .mi { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.invite .top .mi svg { width: 24px; height: 24px; }
.invite h4 { margin: 0 0 4px; font-size: 17px; }
.invite p { margin: 0; color: var(--ink-2); font-size: 14px; }
.code-row { display: flex; gap: 10px; }
.code-box { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 2px dashed #F5C3A5; border-radius: 16px; padding: 0 16px; height: 58px; background: #fff; }
.code-box b { font-family: ui-monospace, Menlo, monospace; color: var(--brand); font-size: 19px; letter-spacing: 2px; }
.code-box button svg { width: 20px; height: 20px; color: var(--brand); }
.sq-btn { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; }
.sq-btn svg { width: 26px; height: 26px; }
.sq-btn.wa { background: #4FCB6B; color: #fff; }
.status-card { padding: 18px; margin-bottom: 14px; }
.status-card .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.status-card .hd h4 { margin: 0; font-size: 18px; }
.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.status-grid a { font-size: 13px; color: var(--ink-2); font-weight: 600; position: relative; }
.status-grid .mi { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 8px; }
.status-grid .mi svg { width: 22px; height: 22px; }
.status-grid .n { position: absolute; top: -4px; left: 50%; margin-left: 12px; background: var(--brand); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.mi.gray { background: #EEF0F4; color: #5B6275; }

/* ---------- forms ---------- */
.form-card { padding: 22px; max-width: 520px; margin: 24px auto; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.input { width: 100%; height: 54px; border-radius: 16px; border: 2px solid var(--line); background: #FAFBFC; padding: 0 16px; outline: 0; transition: border-color .15s, box-shadow .15s; font-size: 16px; }
textarea.input { height: 90px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: #fff; }
.auth-title { text-align: center; margin-bottom: 22px; }
.auth-title .logo { justify-content: center; margin-bottom: 8px; }
.auth-title p { color: var(--ink-2); margin: 0; }
.switch-link { text-align: center; margin-top: 14px; color: var(--ink-2); }
.switch-link a { color: var(--brand); font-weight: 700; }
.err { background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.check.on { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- cart ---------- */
.cart-layout { display: grid; gap: 18px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-item { display: flex; gap: 14px; padding: 12px; margin-bottom: 12px; align-items: center; }
.cart-item img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: #F4F5F8; flex: 0 0 auto; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .nm { font-weight: 700; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qty { display: flex; align-items: center; gap: 4px; background: #F2F3F6; border-radius: 14px; padding: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.qty button svg { width: 16px; height: 16px; }
.qty span { min-width: 28px; text-align: center; font-weight: 800; }
.rm-btn { color: var(--muted); padding: 6px; }
.rm-btn svg { width: 20px; height: 20px; }
.summary { padding: 20px; position: sticky; top: 86px; }
.sum-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-2); font-weight: 600; }
.sum-row.total { color: var(--ink); font-size: 19px; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 6px; }
.hint { background: #FFF8F3; color: var(--brand); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.progress { height: 6px; background: #F8DCCB; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }

/* ---------- product page ---------- */
.pd { display: grid; gap: 22px; padding-top: 20px; padding-bottom: 40px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1fr 1fr; align-items: start; } }
.pd-gallery .main { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1; box-shadow: var(--shadow); }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs button { width: 70px; height: 70px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); flex: 0 0 auto; padding: 0; background: #fff; }
.thumbs button.active { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { padding: 22px; }
.pd-info .brand { color: var(--brand); font-weight: 700; font-size: 14px; }
.pd-info h1 { font-size: 24px; margin: 4px 0 14px; line-height: 1.35; }
.pd-info .prices .price { font-size: 28px; }
.pd-info .stock { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin: 12px 0 18px; padding: 6px 12px; border-radius: 10px; }
.pd-info .stock.in { background: var(--green-soft); color: var(--green); }
.pd-info .stock.out { background: var(--red-soft); color: var(--red); }
.pd-info .stock.low { background: #FFF4E5; color: #D97706; }
.pd-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.pd-actions .btn { flex: 1; }
.pd-desc h3 { font-size: 17px; margin: 18px 0 8px; }
.pd-desc p { color: var(--ink-2); white-space: pre-line; margin: 0; }

/* ---------- orders ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; white-space: nowrap; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink-2); font-size: 14px; }
.tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.order-card { padding: 16px; margin-bottom: 14px; display: block; }
.order-card .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order-card .hd b { font-size: 16px; }
.order-card .date { color: var(--muted); font-size: 13px; }
.st { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.st.pending { background: #EEF0F4; color: #5B6275; }
.st.preparing { background: var(--brand-soft); color: var(--brand); }
.st.shipping { background: var(--blue-soft); color: var(--blue); }
.st.delivered { background: var(--green-soft); color: var(--green); }
.st.cancelled { background: var(--red-soft); color: var(--red); }
.order-thumbs { display: flex; gap: 8px; margin-bottom: 12px; }
.order-thumbs img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #F4F5F8; }
.order-card .ft { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; color: var(--ink-2); font-weight: 600; }
.timeline { display: flex; justify-content: space-between; margin: 10px 0 22px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 20px; left: 8%; right: 8%; height: 3px; background: var(--line); }
.timeline .step { position: relative; text-align: center; flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.timeline .step .c { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; }
.timeline .step .c svg { width: 18px; height: 18px; }
.timeline .step.done { color: var(--ink); }
.timeline .step.done .c { border-color: var(--brand); background: var(--brand); color: #fff; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 16px; font-weight: 700; z-index: 100; transition: transform .3s; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 20px; height: 20px; color: var(--brand-2); }

/* ---------- footer ---------- */
.footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); padding: 30px 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.footer .logo { justify-content: center; margin-bottom: 8px; color: var(--ink); }
.skeleton { background: linear-gradient(90deg, #EEF0F3 25%, #F6F7F9 50%, #EEF0F3 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 34px; height: 34px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
main { min-height: 60vh; }
.otp-input { text-align: center !important; letter-spacing: 12px; font-size: 26px; font-weight: 800; height: 64px; }
.variant-lbl { font-weight: 700; font-size: 14px; color: var(--ink-2); margin: 16px 0 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; direction: ltr; }
.variant.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.variant.oos { color: var(--muted); text-decoration: line-through; }
.vlabel { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #F2F3F6; border-radius: 8px; padding: 2px 8px; margin-bottom: 6px; direction: ltr; }

/* trust strip */
.trust { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -6px 0 20px; padding: 2px; }
.trust::-webkit-scrollbar { display: none; }
.trust-item { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.trust-item svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }
a.trust-item { color: var(--brand); }
a.trust-item svg { color: var(--brand); }
.pd-info .trust { margin: 14px 0 0; flex-wrap: wrap; overflow: visible; }
/* WhatsApp floating button */
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; background: #25D366; color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 800; font-size: 14px; box-shadow: 0 8px 24px rgba(37,211,102,.4); }
.wa-float svg { width: 24px; height: 24px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }
/* checkout extras */
.src-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.src-chips .chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.coupon-row { display: flex; gap: 8px; margin: 4px 0 6px; }
.coupon-row .input { height: 48px; flex: 1; }
.coupon-row .btn { padding: 0 18px; height: 48px; }
.coupon-ok { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.coupon-ok svg { width: 18px; height: 18px; }
.coupon-ok button { margin-inline-start: auto; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.footer-addr { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.footer-addr svg { width: 16px; height: 16px; color: var(--brand); }
.footer-addr a { color: var(--brand); font-weight: 700; }

/* product extras */
.ptags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ptag { padding: 3px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 800; }
.usd-approx { color: var(--ink-2); font-weight: 700; font-size: 14px; margin-top: 2px; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.cashback-note { display: flex; align-items: center; gap: 8px; background: #FFF6E0; color: #B7791F; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; margin-top: 12px; }
.cashback-note svg { width: 18px; height: 18px; }
table.specs { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
table.specs th, table.specs td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; font-size: 14px; }
table.specs th { background: #F7F8FA; color: var(--ink-2); width: 40%; font-weight: 700; }
table.specs tr:last-child th, table.specs tr:last-child td { border-bottom: 0; }
/* bought-together sheet */
.bundle-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.bundle-item { flex: 0 0 132px; background: #F9FAFB; border: 1px solid var(--line); border-radius: 16px; padding: 8px; position: relative; }
.bundle-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #fff; }
.bundle-item .nm { font-size: 12.5px; font-weight: 700; margin: 6px 2px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bundle-item .bp .price { font-size: 14px; }
.add-btn.sm { width: 34px; height: 34px; position: absolute; top: 12px; inset-inline-end: 12px; }
.add-btn.sm svg { width: 18px; height: 18px; }
.eta { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.eta svg { width: 18px; height: 18px; }
/* FAQ */
.faq { padding: 0; margin-bottom: 10px; overflow: hidden; }
.faq summary { padding: 16px 18px; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); white-space: pre-line; }
.footer-links { margin: 6px 0; }
.footer-links a { color: var(--brand); font-weight: 700; }
.footer-slogan { margin: -4px 0 8px; }

/* home promo tiles */
.promo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -6px 0 20px; }
.promo-tile { border-radius: 20px; padding: 16px; color: #fff; display: flex; flex-direction: column; gap: 4px; min-height: 120px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.promo-tile.finder { background: linear-gradient(135deg, #7C5CFA, #4C7CF0); }
.promo-tile.swap { background: linear-gradient(135deg, #16A34A, #2FB67C); }
.promo-tile b { font-size: 16px; line-height: 1.3; }
.promo-tile small { opacity: .9; font-size: 12.5px; line-height: 1.4; }
.promo-tile .pi { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; margin-bottom: 6px; }
.promo-tile .pi svg { width: 22px; height: 22px; }
@media (max-width: 420px) { .promo-tile small { display: none; } .promo-tile { min-height: 96px; } }
/* trade-in banners */
.ti-banner, .ti-hint { display: flex; align-items: center; gap: 10px; background: var(--green-soft); color: #15803D; border: 2px dashed #9BDDBA; border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.ti-banner svg, .ti-hint svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ti-banner span, .ti-hint span { flex: 1; }
[dir=ltr] .ti-banner > svg:last-child, [dir=ltr] .ti-hint > svg:last-child { transform: scaleX(-1); }
.ti-hint { margin: 0 0 12px; }
.ti-applied { display: flex; align-items: center; gap: 10px; background: var(--green-soft); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.ti-applied > svg { width: 22px; height: 22px; color: var(--green); flex: 0 0 auto; }
.ti-applied div { flex: 1; } .ti-applied b { display: block; font-size: 14px; } .ti-applied small { color: var(--ink-2); font-size: 12px; }
.ti-applied button { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ti-applied button svg { width: 14px; height: 14px; }
/* wizards */
.wizard { max-width: 620px; padding-top: 18px; padding-bottom: 30px; }
.wizard.wide { max-width: 1100px; }
.wz-progress { height: 6px; background: #E8EAF0; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.wz-progress i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .3s; }
.wz-step { color: var(--muted); font-size: 13px; font-weight: 700; }
.wz-q { font-size: 22px; margin: 6px 0 14px; }
.wz-sub { color: var(--ink-2); margin: -6px 0 16px; }
.wz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wz-options.list { grid-template-columns: 1fr; }
.wz-opt { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px; font-weight: 800; font-size: 15.5px; text-align: start; transition: border-color .15s, transform .1s; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.wz-opt:active { transform: scale(.98); }
.wz-opt:hover, .wz-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.wz-opt small { color: var(--muted); font-weight: 600; }
.wz-back { margin-top: 12px; width: 100%; }
.wz-link { display: block; text-align: center; color: var(--brand); font-weight: 700; margin-top: 16px; }
.ti-result { padding: 24px; text-align: center; }
.ti-result .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 10px; }
.ti-result .ic svg { width: 32px; height: 32px; }
.ti-result .lbl { font-weight: 800; font-size: 17px; }
.muted-lbl { color: var(--ink-2); margin-top: 12px; font-weight: 700; }
.ti-price .price { font-size: 36px; color: var(--green); }
.ti-break { list-style: none; padding: 0; margin: 14px 0; text-align: start; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ti-break li { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ti-break li:last-child { border-bottom: 0; } .ti-break b { color: var(--red); }
.ti-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--ink-2); font-size: 13.5px; margin: 10px 0 18px; }
.ti-note svg { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }
/* finder results */
.fd-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.fd-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; }
.fd-card.best { border-color: var(--brand); }
.fd-badge { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; background: var(--grad); color: #fff; border-radius: 10px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; display: flex; gap: 4px; align-items: center; }
.fd-badge svg { width: 14px; height: 14px; }
.fd-badge.value { background: var(--green); }
.fd-img { background: #F4F5F8; aspect-ratio: 4 / 3; display: block; }
.fd-img img { width: 100%; height: 100%; object-fit: contain; }
.fd-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fd-body .nm { font-weight: 800; font-size: 16px; }
.fd-match { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13.5px; color: var(--brand); }
.fd-match .bar { flex: 1; height: 8px; background: var(--brand-soft); border-radius: 4px; overflow: hidden; }
.fd-match .bar i { display: block; height: 100%; background: var(--grad); }
.fd-reasons { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.fd-reasons li { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.fd-reasons svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }
.fd-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.fd-actions .btn { padding: 12px 10px; font-size: 14px; }

/* first-visit language picker */
.lang-gate { position: fixed; inset: 0; z-index: 200; background: linear-gradient(160deg, #FFF3EA, #F7F8FA 55%); display: grid; place-items: center; padding: 20px; }
.lang-card { width: 100%; max-width: 380px; text-align: center; }
.lang-card h2 { font-size: 22px; margin: 10px 0 22px; line-height: 1.5; }
.lang-card h2 span { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.lang-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow); transition: transform .1s, border-color .15s; }
.lang-opt:active { transform: scale(.98); }
.lang-opt b { font-size: 20px; }
.lang-opt small { color: var(--muted); font-weight: 600; }
.lang-opt.suggested { border-color: var(--brand); background: var(--brand-soft); }
.lang-opt.suggested b { color: var(--brand); }

/* repair */
.promo-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.promo-tile.repair { background: linear-gradient(135deg, #EE6C2D, #F0A04A); }
.repair-hero { text-align: center; background: linear-gradient(160deg, #1A1D2E, #2A2F45); color: #fff; border-radius: 24px; padding: 26px 20px; margin-bottom: 16px; }
.repair-hero .rh-ic { width: 62px; height: 62px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; margin: 0 auto 10px; }
.repair-hero .rh-ic svg { width: 32px; height: 32px; }
.repair-hero h2 { margin: 0 0 6px; font-size: 24px; }
.repair-hero p { margin: 0 0 16px; opacity: .85; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.promise { background: #fff; border-radius: 16px; padding: 14px; display: flex; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow); }
.promise svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; }
.how { padding: 16px 18px; margin-bottom: 14px; }
.how h3 { margin: 0 0 8px; font-size: 17px; }
.how ol { margin: 0; padding-inline-start: 20px; line-height: 2; font-weight: 600; color: var(--ink-2); }
.repair-links { display: flex; gap: 10px; }
.repair-links a { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; background: #fff; border-radius: 14px; padding: 12px; font-weight: 700; color: var(--brand); box-shadow: var(--shadow); }
.repair-links svg { width: 18px; height: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 14px 6px; font-weight: 800; font-size: 13.5px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.svc span { font-size: 26px; }
.svc:hover { border-color: var(--brand); background: var(--brand-soft); }
.r-options { display: grid; gap: 10px; margin-bottom: 12px; }
.r-opt { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; text-align: start; }
.r-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.ro-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.ro-top .free { color: var(--green); font-weight: 800; }
.ro-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.ro-meta span { display: flex; align-items: center; gap: 4px; }
.ro-meta svg { width: 15px; height: 15px; }
.ro-meta .front { color: var(--green); }
.advice { display: flex; gap: 10px; background: #FFF8E6; border: 2px solid #F5DFA0; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.advice > svg { width: 24px; height: 24px; color: #D97706; flex: 0 0 auto; }
.advice p { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; }
.advice .btn { padding: 10px 14px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.day { flex: 0 0 66px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day small { color: var(--muted); font-size: 12px; }
.day.on, .slot.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 4px; font-weight: 800; display: flex; flex-direction: column; align-items: center; }
.slot:disabled { opacity: .45; text-decoration: line-through; }
.slot small { font-size: 11px; font-weight: 600; }
.approval { padding: 18px; margin-bottom: 14px; border: 2px solid #F6C9C9; background: #FFF9F9; }
.approval p { margin: 6px 0; color: var(--ink-2); }
.approval .ex-price { font-weight: 800; font-size: 17px; margin: 8px 0 12px; }
.approval small { display: block; color: var(--muted); margin-top: 8px; }
.r-timeline { padding: 16px 18px; margin-bottom: 14px; }
.rt { display: flex; align-items: center; gap: 10px; position: relative; padding: 7px 0; color: var(--muted); font-weight: 700; }
.rt i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--line); background: #fff; flex: 0 0 auto; z-index: 1; }
.rt:not(:last-child)::after { content: ''; position: absolute; inset-inline-start: 7px; top: 24px; height: calc(100% - 10px); width: 2px; background: var(--line); }
.rt.done { color: var(--ink); } .rt.done i { border-color: var(--green); background: var(--green); }
.rt.done:not(:last-child)::after { background: var(--green); }
.rt.cur span { color: var(--brand); } .rt.cur i { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.r-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.cert { padding: 20px; text-align: center; border: 2px dashed #9BDDBA; margin-bottom: 14px; }
.cert-hd { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-size: 17px; }
.cert-hd svg { width: 24px; height: 24px; }
.cert-code { font-size: 26px; font-weight: 800; letter-spacing: 3px; margin: 8px 0 4px; }
.cert-dev { color: var(--ink-2); font-weight: 600; }
.cert-valid { display: inline-block; margin: 10px 0; padding: 6px 14px; border-radius: 10px; font-weight: 800; }
.cert-valid.ok { background: var(--green-soft); color: var(--green); } .cert-valid.no { background: var(--red-soft); color: var(--red); }
#qr svg { width: 140px; height: 140px; margin: 0 auto; display: block; }
.cert-url { color: var(--muted); font-size: 11.5px; word-break: break-all; margin: 6px 0; }
@media print { .header, .footer, .page-head, .summary, .approval, .r-timeline, .wa-float, #printCert, .toast { display: none !important; } .cert { border: 2px solid #000; } }

/* finder: custom budget */
.budget-custom { display: flex; gap: 8px; margin-top: 12px; }
.budget-custom .input { flex: 1; height: 54px; }
.budget-custom .btn { padding: 0 22px; }
/* home: repair section */
.promo-tiles { grid-template-columns: 1fr 1fr; }
.repair-home { background: linear-gradient(160deg, #1A1D2E, #2A2F45); border-radius: 22px; padding: 16px; margin: -6px 0 22px; color: #fff; box-shadow: var(--shadow); }
.rh-main { display: flex; align-items: center; gap: 12px; color: #fff; }
.rh-main .rh-ic { width: 50px; height: 50px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; flex: 0 0 auto; }
.rh-main .rh-ic svg { width: 26px; height: 26px; }
.rh-txt { flex: 1; display: flex; flex-direction: column; }
.rh-txt b { font-size: 18px; }
.rh-txt small { opacity: .8; font-size: 13px; line-height: 1.5; }
.rh-go svg { width: 20px; height: 20px; opacity: .7; }
[dir=ltr] .rh-go svg { transform: scaleX(-1); }
.rh-svcs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0; }
.rh-svcs a { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 12.5px; font-weight: 700; }
.rh-svcs a span { font-size: 22px; }
.rh-cta { padding: 13px; }

/* home: repair ad */
.repair-ad { position: relative; overflow: hidden; border-radius: 24px; margin: -6px 0 22px; padding: 18px 18px 16px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, #3A2A55 0%, transparent 55%), linear-gradient(160deg, #1A1D2E, #232843); box-shadow: 0 14px 34px rgba(26,29,46,.25); }
.ra-art { position: absolute; width: 104px; top: 16px; inset-inline-end: 12px; opacity: .95; transform: rotate(8deg); }
[dir=rtl] .ra-art { transform: rotate(-8deg); }
.ra-crack { stroke-dasharray: 220; stroke-dashoffset: 220; animation: ra-crack 1.6s .3s ease-out forwards; }
.ra-spark { animation: ra-pulse 2s ease-in-out infinite; transform-origin: 70px 40px; }
@keyframes ra-crack { to { stroke-dashoffset: 0; } }
@keyframes ra-pulse { 50% { transform: scale(1.6); opacity: .4; } }
.ra-body { position: relative; z-index: 1; }
.ra-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(240,144,74,.18); color: #FFB27E; border: 1px solid rgba(240,144,74,.35); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; }
.ra-tag svg { width: 15px; height: 15px; }
.ra-hooks { position: relative; min-height: 104px; margin: 12px 0 6px; padding-inline-end: 104px; }
.ra-hook { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; pointer-events: none; }
.ra-hook.on { opacity: 1; transform: none; position: relative; pointer-events: auto; }
.ra-hook b { display: block; font-size: clamp(21px, 6vw, 28px); line-height: 1.25; margin-bottom: 6px; }
.ra-hook span { display: block; color: #D6DAE6; font-size: 15px; line-height: 1.55; font-weight: 600; }
.ra-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.ra-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); transition: width .3s, background .3s; }
.ra-dots i.on { width: 22px; background: var(--brand-2); }
.ra-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ra-chips span { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 5px 10px; font-size: 12.5px; font-weight: 700; }
.ra-chips svg { width: 14px; height: 14px; color: #6EE7B7; }
.ra-from { font-weight: 700; color: #D6DAE6; margin-bottom: 12px; min-height: 22px; }
.ra-from .price { color: #fff; font-size: 20px; }
.ra-from .price small { color: #D6DAE6; }
.ra-cta { width: 100%; padding: 14px; font-size: 15.5px; }
.repair-ad .rh-svcs { margin: 12px 0 0; }
@media (prefers-reduced-motion: reduce) { .ra-crack { animation: none; stroke-dashoffset: 0; } .ra-spark { animation: none; } .ra-hook { transition: none; } }
/* all hooks share one grid cell → the card keeps the height of the longest hook (no page jump) */
.ra-hooks { display: grid; min-height: 0; }
.ra-hook, .ra-hook.on { grid-area: 1 / 1; position: static; }

.wz-opt .free-tag { color: var(--green); font-weight: 800; }
.promise:nth-child(2) svg { color: var(--brand); }
.ra-chips span[hidden] { display: none; }

/* ================= expert-panel redesign ================= */
/* readable meta text, steadier cards */
.p-card .body { padding: 12px 12px 14px; }
.c-brand { color: var(--brand); font-size: 12px; font-weight: 800; margin-bottom: 2px; }
.p-card .nm { font-size: 14.5px; line-height: 1.5; min-height: 2.9em; margin-bottom: 4px; }
.c-spec { color: #6B7080; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.c-from { color: var(--ink-2); font-weight: 600; font-size: 12px; }
.c-old { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.off-pill { background: #FDECEC; color: #D93B3B; border-radius: 6px; padding: 1px 6px; font-size: 12px; font-weight: 800; }
.old-price { font-size: 12.5px; }
.price small { font-size: .78em; }
.add-btn { width: 42px; height: 42px; box-shadow: 0 4px 10px rgba(238,108,45,.25); }
.tag { font-size: 12.5px; }
.tag.sold { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); direction: inherit; }
.tag.sold svg { color: var(--brand); }
.cat-chip { font-size: 13px; line-height: 1.35; }
.cat-chip { display: flex; flex-direction: column; align-items: center; }
.cat-strip { scroll-snap-type: x proximity; }
.cat-chip { scroll-snap-align: start; }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, 1fr); } }

/* hero: say what the store sells */
.hero-value { margin: -8px 0 14px; font-weight: 800; font-size: 15px; color: var(--ink); text-align: center; }
.slide .caption h3 { font-size: clamp(20px, 5.4vw, 34px); }
@media (min-width: 900px) { .slider { aspect-ratio: 16 / 5; } }

/* compact repair ad + compact, on-brand tiles */
.repair-ad.compact { padding: 14px 16px; }
.repair-ad.compact .ra-art { width: 66px; top: 12px; }
.repair-ad.compact .ra-hooks { margin: 8px 0 4px; padding-inline-end: 72px; }
.repair-ad.compact .ra-hook b { font-size: clamp(18px, 5vw, 22px); }
.repair-ad.compact .ra-hook span { font-size: 13.5px; }
.repair-ad.compact .ra-dots { margin-bottom: 10px; }
.ra-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ra-row .ra-from { margin: 0; font-size: 13px; }
.ra-row .ra-from .price { font-size: 17px; }
.ra-row .ra-cta { width: auto; flex: 0 0 auto; padding: 11px 16px; font-size: 14px; }
.repair-ad.compact .ra-chips { margin: 10px 0 0; }
.ra-chips span[hidden] { display: none; }
.promo-tiles { gap: 10px; margin: 0 0 20px; }
.promo-tile { min-height: 0; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff !important; color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.promo-tile b { font-size: 14.5px; }
.promo-tile .pi { margin: 0; width: 38px; height: 38px; flex: 0 0 auto; }
.promo-tile.finder .pi { background: var(--brand-soft); color: var(--brand); }
.promo-tile.swap .pi { background: var(--green-soft); color: var(--green); }

/* product page */
.pd-gallery .main { position: relative; }
.swipe { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.swipe-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.swipe-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(26,29,46,.25); transition: width .25s; }
.swipe-dots i.on { width: 20px; background: var(--brand); }
.deliv-line { display: flex; align-items: center; gap: 8px; color: #1F9D55; font-weight: 700; font-size: 13.5px; margin-top: 8px; }
.deliv-line svg { width: 18px; height: 18px; flex: 0 0 auto; }
.proof { border: 2px solid #CDEFD9; background: #F4FBF7; border-radius: 16px; padding: 12px 14px; margin: 0 0 16px; }
.proof b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.proof b svg { width: 18px; height: 18px; color: var(--green); }
.proof ul { margin: 6px 0 0; padding-inline-start: 22px; color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.8; }
.btn-wa { background: #25D366; color: #fff; margin-bottom: 12px; }
.share-mini { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 700; font-size: 14px; padding: 8px 2px; margin-bottom: 8px; }
.share-mini svg { width: 18px; height: 18px; }
.pd-info .trust { display: grid; grid-template-columns: 1fr 1fr; }

/* cart */
.checkout-btn { margin-top: 12px; font-size: 16.5px; padding: 16px; }
.checkout-trust { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--ink-2); font-size: 12.5px; font-weight: 600; margin: 10px 0 0; text-align: center; }
.checkout-trust svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; }

/* bottom tab bar + sticky buy bar (mobile) */
.tabbar, .buybar { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body.no-tabbar { padding-bottom: 0; }
  body.has-buybar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(26,29,46,.06); }
  body.no-tabbar .tabbar { display: none; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; color: #7A8092; font-size: 12px; font-weight: 700; border-radius: 12px; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar a.on svg { transform: translateY(-1px); }
  .tabbar a b { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); background: var(--red); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
  #btnCart, .header-actions .sep { display: none; }
  .buybar:not(.hidden) { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: #fff; border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(26,29,46,.08); }
  .bb-price { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
  .bb-price .price { font-size: 19px; }
  .bb-wa { width: 48px; height: 48px; border-radius: 14px; background: #E9FBEF; color: #1DA851; display: grid; place-items: center; flex: 0 0 auto; }
  .bb-wa svg { width: 24px; height: 24px; }
  .bb-add { flex: 0 0 auto; padding: 14px 18px; }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); padding: 12px; }
  .wa-float span { display: none; }
  body.has-buybar .wa-float { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cart-summary { position: static; }
}
.ra-row .ra-from { flex: 1; min-width: 0; }
@media (max-width: 899px) { .repair-ad.compact { padding-bottom: 16px; } }

/* ================= expert round 2: reviews, filters, bundle, compare ================= */
.ui-sheet { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars i { width: 15px; height: 15px; color: #D9DCE3; display: inline-flex; }
.stars i.on { color: #F5A524; }
.stars svg { width: 100%; height: 100%; }
.c-rate { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); margin: -4px 0 6px; }
.c-rate svg { width: 14px; height: 14px; color: #F5A524; }
.c-rate b { color: var(--ink); }

/* filters */
.sort-row { display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid #E3E6EC; margin-bottom: 18px; }
.sort-row .sort-tabs { flex: 1; min-width: 0; border: 0; margin: 0; }
.filter-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; position: relative; }
.filter-btn svg { width: 18px; height: 18px; }
.filter-btn b { background: var(--brand); border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; padding: 0 4px; }
.f-lbl { font-weight: 800; margin: 14px 0 8px; font-size: 15px; }
.f-lbl small { color: var(--muted); font-weight: 600; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips .chip { padding: 8px 14px; }
.f-chips .chip.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.f-chips .chip small { color: var(--muted); font-weight: 600; }
.f-range { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.f-range .input { flex: 1; min-width: 0; }
.f-body .check { margin-top: 16px; }
.f-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; position: sticky; bottom: -28px; background: #fff; padding: 14px 0 4px; margin-top: 16px; }
.more-btn { margin: 4px 0 24px; }

/* product page extras */
.pd-rate { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: 14px; color: var(--ink-2); }
.pd-rate b { color: var(--ink); }
.variant { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; }
.variant small { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }
.variant.active small { color: inherit; }
.pd-live { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: -6px 0 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pd-live span { display: inline-flex; align-items: center; gap: 6px; }
.pd-live svg { width: 15px; height: 15px; color: var(--brand); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 4px rgba(31,157,85,.18); }
.xchg-note { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #1F9D55; margin: -4px 0 12px; }
.xchg-note svg { width: 16px; height: 16px; }
.pd-minis { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pd-video { width: 100%; border-radius: 18px; margin-top: 10px; background: #000; max-height: 420px; }
.video-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 800; }
.video-btn svg { width: 18px; height: 18px; }

/* bundle box */
.bundle-box { padding: 18px; margin: 18px 0; border: 2px solid var(--brand-soft); }
.bundle-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; }
.bundle-box h3 svg { width: 22px; height: 22px; color: var(--brand); }
.bundle-box > p { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.bx-items { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bx-plus { align-self: center; font-weight: 900; color: var(--muted); font-size: 20px; }
.bx-item { position: relative; flex: 0 0 116px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bx-item img { width: 70px; height: 70px; object-fit: contain; }
.bx-item span { line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bx-item small s { color: var(--muted); }
.bx-item small b { color: var(--brand); }
.bx-item input { position: absolute; top: 8px; inset-inline-start: 8px; width: 18px; height: 18px; accent-color: var(--brand); }
.bx-item.main { background: #F7F8FA; cursor: default; }
.bx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.bx-save { color: #1F9D55; font-weight: 800; font-size: 13.5px; }

/* reviews */
.reviews-sec { padding: 20px; margin: 18px 0; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-head h2 { margin: 0; font-size: 20px; }
.rv-write { padding: 10px 14px; }
.rv-write svg { color: #F5A524; }
.rv-sum { display: flex; gap: 20px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rv-avg { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 0 0 auto; }
.rv-avg > b { font-size: 40px; line-height: 1; }
.rv-avg small { color: var(--ink-2); font-weight: 600; }
.rv-dist { flex: 1; display: grid; gap: 5px; }
.rv-dist > div { display: grid; grid-template-columns: 12px 14px 1fr 26px; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.rv-dist svg { width: 13px; height: 13px; color: #F5A524; }
.rv-dist i { height: 7px; border-radius: 4px; background: #EEF0F4; overflow: hidden; }
.rv-dist i b { display: block; height: 100%; background: #F5A524; border-radius: 4px; }
.rv-lbl { font-weight: 800; margin: 14px 0 8px; }
.rv-photos { display: flex; gap: 8px; overflow-x: auto; }
.rv-photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.rv-photos.sm img { width: 64px; height: 64px; }
.rv-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rv-item:last-child { border-bottom: 0; }
.rv-top { display: flex; gap: 10px; align-items: flex-start; }
.rv-av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }
.rv-who { flex: 1; min-width: 0; }
.rv-who small { color: var(--muted); }
.rv-ver { display: inline-flex; align-items: center; gap: 3px; color: #1F9D55; font-size: 12px; font-weight: 800; margin-inline-start: 8px; }
.rv-ver svg { width: 13px; height: 13px; }
.rv-date { color: var(--muted); font-size: 12px; }
.rv-item p { margin: 8px 0 0; line-height: 1.7; white-space: pre-wrap; }
.rv-item .rv-photos { margin-top: 8px; }
.rv-reply { margin-top: 10px; background: #F6F7F9; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.rv-reply p { margin: 4px 0 0; }
.rv-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 8px; color: var(--ink-2); }
.rv-empty svg { width: 34px; height: 34px; color: #F5A524; }
.rv-empty small { max-width: 320px; line-height: 1.6; }
.rv-note { color: var(--ink-2); font-size: 13px; }
.star-pick { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; direction: ltr; }
.star-pick button { width: 46px; height: 46px; color: #D9DCE3; }
.star-pick button.on { color: #F5A524; }
.star-pick svg { width: 100%; height: 100%; }
.rv-up { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.rv-up.busy { opacity: .5; pointer-events: none; }
.rv-th { position: relative; }
.rv-th img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.rv-th button { position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.rv-th button svg { width: 12px; height: 12px; }
.rv-add { width: 72px; height: 72px; border: 2px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.rv-add svg { width: 20px; height: 20px; }
.rate-box { padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; border: 2px solid #FCE9B8; background: #FFFBF0; }
.rate-box > b { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.rate-box > b svg { width: 20px; height: 20px; color: #F5A524; }
.rate-box > small { color: var(--ink-2); margin-top: -6px; }
.rate-row { display: flex; align-items: center; gap: 10px; }
.rate-row img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; }
.rate-row span { flex: 1; font-weight: 700; font-size: 14px; }
.rate-row .btn { padding: 9px 16px; }

/* compare */
.pick-list { display: grid; gap: 8px; }
.pick-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; text-align: start; }
.pick-item img { width: 48px; height: 48px; object-fit: contain; }
.pick-item span { flex: 1; font-weight: 700; }
.cmp { padding: 16px; margin: 16px 0 24px; }
.cmp-cols { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; }
.cmp-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cmp-col img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; background: #F4F5F8; border-radius: 16px; }
.cmp-nm { font-size: 14px; line-height: 1.4; }
.cmp-add { position: absolute; top: 6px; inset-inline-end: 6px; }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 16px; table-layout: fixed; }
.cmp-table th { text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px 0 4px; border-top: 1px solid var(--line); }
.cmp-table td { text-align: center; font-weight: 800; padding: 4px 4px 10px; direction: ltr; }
.cmp-table td.win { color: #1F9D55; }
.cmp-table td.win::after { content: ' ✓'; }

/* home: recently viewed + visit us */
.mini-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.mini-item { flex: 0 0 132px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.mini-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #F4F5F8; border-radius: 12px; }
.mini-item .nm { font-size: 13px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item .price { font-size: 14px; }
.visit { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 8px 0 24px; flex-wrap: wrap; }
.visit-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.visit-ic svg { width: 26px; height: 26px; }
.visit-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.visit-txt b { font-size: 17px; }
.visit-txt p { margin: 0; font-weight: 600; }
.visit-txt small { color: var(--ink-2); }
.link-btn { color: var(--brand); font-weight: 800; padding: 4px 0 14px; }

/* ================= repair pickup map + comments ================= */
.loc-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 14px; }
.loc-box .btn svg { width: 18px; height: 18px; }
.loc-map-wrap { position: relative; margin-top: 10px; border-radius: 14px; overflow: hidden; }
.loc-map { height: 280px; background: #E9ECF1; z-index: 0; }
.loc-pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -100%); color: var(--brand); pointer-events: none; z-index: 500; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.loc-pin svg { width: 100%; height: 100%; }
.loc-status { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.loc-status.ok { color: #1F9D55; }
.loc-status.bad { color: var(--red); }
.loc-link { color: var(--brand); font-weight: 800; }
.r-comments { padding: 16px; margin-bottom: 14px; }
.r-comments h3 { margin: 0 0 10px; font-size: 16px; }
.cm-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; margin-bottom: 10px; }
.cm { max-width: 85%; padding: 8px 12px; border-radius: 14px; }
.cm small { color: var(--muted); font-size: 11.5px; }
.cm p { margin: 2px 0 0; white-space: pre-wrap; line-height: 1.6; }
.cm.me { align-self: flex-start; background: var(--brand-soft); }
.cm.shop { align-self: flex-end; background: #F2F4F7; }
.cm-empty { color: var(--ink-2); font-size: 13.5px; margin: 0 0 10px; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; }
.cm-form .input { flex: 1; min-width: 0; }
.cm-form .btn { flex: 0 0 auto; }
.leaflet-container { font-family: inherit; }
