/* HomeShoppee — one stylesheet for the whole site. Colours come from the logo. */
:root {
  --ink: #0D2B45;          /* logo navy: text, headings */
  --paper: #F4F8FB;        /* page background */
  --white: #FFFFFF;
  --brand: #0373AD;        /* logo deep blue: buttons, links, main colour */
  --brand-dark: #035A88;
  --bright: #0089D0;       /* logo bright blue: highlights */
  --sky: #E4F1FA;          /* light blue tint: soft backgrounds */
  --sky-2: #CDE6F6;
  --line: #D6E4EE;
  --muted: #577086;
  --amber-soft: #FFF2D6;
  --amber: #7A5200;
  --danger: #B42318;
  --wa: #1A9E50;           /* WhatsApp green */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 43, 69, .06), 0 6px 18px rgba(13, 43, 69, .06);
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }
.mid { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: block; flex: none; }
.logo img { height: 38px; width: auto; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 240px; min-height: 38px;
  padding: 6px 12px; border-radius: 999px; background: var(--sky); color: var(--brand-dark);
  font-size: .9rem; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
}
.loc-pill:hover { background: var(--sky-2); color: var(--brand-dark); }
.loc-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-pill .ic { width: 17px; height: 17px; }
.mainnav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.mainnav a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.mainnav a:hover { background: var(--sky); color: var(--brand-dark); }
.mainnav a[aria-current="page"] { color: var(--brand); }
.mainnav .nav-account { background: var(--brand); color: var(--white); }
.mainnav .nav-account:hover { background: var(--brand-dark); color: var(--white); }
.lang-switch { font-weight: 700; }

/* Phones: logo + language + account on top, location underneath, main links in the bottom tab bar */
@media (max-width: 760px) {
  :root { --tabbar-h: 64px; }
  .topbar-in { gap: 8px; min-height: 56px; }
  .logo img { height: 30px; }
  .mainnav .nav-link { display: none; }
  .mainnav a { padding: 8px 9px; font-size: .92rem; }
  .loc-pill { order: 3; max-width: none; width: 100%; }
}

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    height: var(--tabbar-h); background: var(--white); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  .tabbar a[aria-current="page"] .ic { stroke-width: 2.4; }
}

/* ---------- Messages ---------- */
.flashes { margin-top: 14px; }
.flash { padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 8px; border-inline-start: 4px solid var(--brand); background: var(--sky); }
.flash-error { border-color: var(--danger); background: #FCEBEA; }
.flash-info { border-color: var(--bright); background: var(--sky); }
.errors { background: #FCEBEA; border-inline-start: 4px solid var(--danger); padding: 12px 14px 4px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.errors p { margin: 0 0 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: var(--radius-sm); border: 2px solid var(--brand);
  background: var(--brand); color: var(--white); font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn .ic { width: 19px; height: 19px; }
.btn-ghost { background: var(--white); color: var(--brand); border-color: var(--sky-2); }
.btn-ghost:hover { background: var(--sky); color: var(--brand-dark); border-color: var(--sky-2); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #12803F; border-color: #12803F; }
.btn-call { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-call:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-mail { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn-mail:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-ig { background: #C13584; border-color: #C13584; }
.btn-ig:hover { background: #A02C6E; border-color: #A02C6E; }
.btn-danger { background: var(--white); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--sky); color: var(--ink); border-color: var(--sky); }
.btn-sm { min-height: 36px; padding: 5px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 16px; }
[hidden] { display: none !important; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=search], input[type=url], input[type=time], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: 400 1rem var(--font-body);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid var(--sky); }
.phone-input { display: flex; gap: 8px; }
.phone-input select { width: 116px; flex: none; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sub-checks { margin: 6px 0 0; margin-inline-start: 28px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.two { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font: 600 1.1rem var(--font-display); margin-bottom: 10px; padding: 0; }
.ar-field { background: var(--sky); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; }
.ar-field .field:last-child { margin-bottom: 0; }

/* Searchable area box (replaces the long area list in forms) */
.combo { position: relative; }
.combo-input { padding-inline-start: 40px !important; }
.combo .ic-search { position: absolute; inset-inline-start: 12px; top: 14px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.combo-list {
  position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 20; max-height: 280px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  margin: 0; padding: 4px; list-style: none;
}
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo-list li small { color: var(--muted); margin-inline-start: 6px; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--sky); }
.combo-list .empty { color: var(--muted); cursor: default; }
.combo-list .empty:hover { background: none; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); padding: 26px 0 8px; }
.hero h1 { max-width: 20ch; margin-bottom: 14px; }
.hero-search { display: flex; gap: 8px; background: var(--white); border: 2px solid var(--brand); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); max-width: 640px; }
.hero-search input { border: 0; min-height: 48px; font-size: 1.05rem; }
.hero-search input:focus { outline: none; }
.hero-search .ic-lead { margin: 14px 6px 0 8px; color: var(--muted); }
.hero-loc { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 14px 0 6px; }
.hero-loc .linklike { font-weight: 600; text-decoration: none; }

.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; text-align: center;
  padding: 14px 8px 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.25; min-height: 104px;
}
.tile:hover { border-color: var(--bright); color: var(--brand-dark); box-shadow: var(--shadow); }
.tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--brand); }
.tile-ic .ic { width: 24px; height: 24px; }
.tiles-shop .tile-ic { background: #E8F6FD; color: var(--bright); }
.tile-more .tile-ic { background: var(--brand); color: var(--white); }
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tile { min-height: 92px; padding: 10px 4px; font-size: .78rem; border: 0; background: transparent; }
  .tile-ic { width: 50px; height: 50px; background: var(--white); box-shadow: var(--shadow); }
  .tiles-shop .tile-ic { background: var(--white); }
}

.joinband { background: var(--ink); color: var(--white); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: center; }
.joinband h2 { color: var(--white); }
.joinband p { color: #C5D6E4; margin: 0; }
.joinband .row { justify-content: flex-end; }
@media (max-width: 700px) { .joinband { grid-template-columns: 1fr; } .joinband .row { justify-content: flex-start; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.chip .ic { width: 16px; height: 16px; color: var(--brand); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip[aria-current="true"] .ic { color: var(--white); }
.chip-sm { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sky); color: var(--brand-dark); margin-inline-start: 6px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; } }
.pcard { min-width: 0; }
.pcard-link { text-decoration: none; color: inherit; display: block; }
.pcard-img { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pcard-link:hover img { transform: scale(1.03); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; font: 700 3rem var(--font-display); color: var(--brand); opacity: .35; }
.tag { position: absolute; inset-inline-start: 8px; bottom: 8px; background: var(--white); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pcard-title { font: 600 .98rem/1.3 var(--font-body); margin: 8px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { margin: 0 0 2px; }
.pcard-price s { color: var(--muted); font-size: .88rem; margin-inline-start: 4px; }
.pcard-shop { font-size: .88rem; font-weight: 600; text-decoration: none; }

/* ---------- Provider list ---------- */
.plist { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.prow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.prow:last-child { border-bottom: 0; }
.prow-main { display: flex; gap: 12px; align-items: center; flex: 1 1 260px; text-decoration: none; color: inherit; min-width: 0; }
.prow-main h3 { margin: 0 0 2px; }
.prow-main p { margin: 0; }
.prow-actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .prow-actions { width: 100%; } .prow-actions .btn { flex: 1; } }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--sky); color: var(--brand); display: grid; place-items: center; font: 700 1.3rem var(--font-display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.verified { display: inline-flex; align-items: center; gap: 3px; font: 700 .72rem var(--font-body); color: var(--brand-dark); background: var(--sky); border: 1px solid var(--sky-2); padding: 1px 7px; border-radius: 999px; vertical-align: middle; margin-inline-start: 4px; }
.stars { color: #D89B00; letter-spacing: 1px; }
.stars-off { color: #CBD6DE; }

.shoplist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.shopcard { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.shopcard:hover { border-color: var(--bright); }
.shopcard h3 { margin: 0; }
.shopcard p { margin: 0; }

/* ---------- Seller outlet (the shop signboard) ---------- */
.outlet-sign { background: linear-gradient(160deg, #0A86C9 0%, var(--brand) 55%, var(--brand-dark) 100%); padding: 26px 0 0; color: var(--white); }
.outlet-sign::after { content: ""; display: block; height: 12px; background: repeating-linear-gradient(90deg, var(--white) 0 22px, var(--sky-2) 22px 44px); }
.outlet-sign .flash { color: var(--ink); }
.sign-board {
  border: 2px solid rgba(255, 255, 255, .9); border-radius: 16px; padding: 22px; margin-bottom: 22px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .12);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.sign-logo { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--white); background: var(--white); overflow: hidden; display: grid; place-items: center; font: 700 2.4rem var(--font-display); color: var(--brand); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.sign-logo img { width: 100%; height: 100%; object-fit: cover; }
.sign-name { font: 700 clamp(2rem, 6vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; color: var(--white); overflow-wrap: anywhere; }
.sign-meta { margin: 0; font-weight: 500; color: #DCEFFA; }
.sign-meta a { color: var(--white); }
.sign-board .verified { background: var(--white); border-color: var(--white); }
@media (max-width: 520px) {
  .sign-board { grid-template-columns: 1fr; text-align: start; padding: 18px; }
  .sign-logo { width: 72px; height: 72px; font-size: 1.8rem; }
}
.outlet-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.outlet-bar .grow { flex: 1; }
.outlet-bar .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .outlet-bar .btn { flex: 1; }
  .outlet-bar .btn:first-child { flex: 1 1 100%; }
  .outlet-bar .grow { display: none; }
}
.outlet-about { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 22px 0 6px; }
@media (max-width: 760px) { .outlet-about { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bright); margin-top: 8px; flex: none; }

.share-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.share-link { display: flex; gap: 8px; }
.share-link input { font-weight: 600; color: var(--brand-dark); background: var(--sky); border-color: var(--sky); }
.qr { width: 132px; height: 132px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
@media (max-width: 560px) { .share-box { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 24px 0; }
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--sky); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-lg { font: 700 1.9rem var(--font-display); margin: 6px 0 12px; }
.price-lg s { font: 400 1rem var(--font-body); color: var(--muted); margin-inline-start: 8px; }
.seller-mini { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 18px 0; text-decoration: none; color: inherit; }
.seller-mini:hover { border-color: var(--bright); }
/* Order / contact buttons stay in reach while scrolling */
.sticky-cta { position: sticky; bottom: calc(var(--tabbar-h) + 8px); z-index: 20; display: flex; gap: 8px; padding: 8px; margin: 12px -8px; background: rgba(244, 248, 251, .94); backdrop-filter: blur(6px); border-radius: var(--radius); }
.sticky-cta { flex-wrap: wrap; }
.sticky-cta .btn { flex: 1 1 140px; }

/* ---------- Location picker ---------- */
.locdlg { border: 0; padding: 0; border-radius: 18px; width: min(560px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 40px)); color: var(--ink); box-shadow: 0 20px 60px rgba(13, 43, 69, .3); }
.locdlg::backdrop { background: rgba(13, 43, 69, .45); }
@media (max-width: 560px) {
  .locdlg { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
.locdlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.locdlg-head h2 { margin: 0; font-size: 1.3rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sky); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--sky-2); }
.lp { padding: 6px 18px 18px; }
.lp-gps { width: 100%; }
.lp-tabs { display: flex; gap: 6px; margin: 14px 0 10px; }
.lp-tabs button { flex: 1; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font: 600 .92rem var(--font-body); color: var(--ink); cursor: pointer; }
.lp-tabs button[aria-pressed="true"] { background: var(--brand); color: var(--white); border-color: var(--brand); }
.lp-search { position: relative; margin-bottom: 8px; }
.lp-search input { padding-inline-start: 40px; }
.lp-search .ic { position: absolute; inset-inline-start: 12px; top: 14px; color: var(--muted); }
.lp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; font-size: .9rem; }
.lp-crumbs button { background: none; border: 0; padding: 4px 2px; color: var(--brand); font: 600 .9rem var(--font-body); cursor: pointer; }
.lp-crumbs .sep { color: var(--muted); }
.lp-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lp-list li { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.lp-list li:last-child { border-bottom: 0; }
.lp-pick { flex: 1; text-align: start; background: none; border: 0; padding: 12px 14px; font: 500 1rem var(--font-body); color: var(--ink); cursor: pointer; }
.lp-pick small { display: block; color: var(--muted); font-size: .82rem; }
.lp-pick:hover { background: var(--sky); }
.lp-all .lp-pick { font-weight: 700; color: var(--brand); }
.lp-in { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; background: none; border: 0; border-inline-start: 1px solid var(--line); color: var(--brand); font: 600 .85rem var(--font-body); cursor: pointer; }
.lp-in:hover { background: var(--sky); }
[dir=rtl] .lp-in .ic, [dir=rtl] .lp-crumbs .ic { transform: scaleX(-1); }
.lp-empty { padding: 14px; color: var(--muted); }

/* ---------- Generic panels / tables ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.2rem; }
.empty-state { padding: 48px 16px; }
.empty-box { background: var(--white); border: 1.5px dashed var(--sky-2); border-radius: var(--radius); padding: 28px; text-align: center; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--brand-dark); white-space: nowrap; }
.badge-pending, .badge-created, .badge-open { background: var(--amber-soft); color: var(--amber); }
.badge-rejected, .badge-suspended, .badge-failed { background: #FCEBEA; color: var(--danger); }
.badge-hidden, .badge-dismissed { background: #ECF0F3; color: var(--muted); }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: #EFF5FA; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.inline { display: inline; }
.meter { height: 10px; background: var(--sky); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); }
.meter.full span { background: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 700 1.7rem var(--font-display); color: var(--brand-dark); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pager { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 22px 0; }
.review { padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.layout-side { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0 40px; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav a { padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.sidenav a[aria-current="page"] { background: var(--brand); color: var(--white); }
.sidenav a:hover { background: var(--sky); }
.sidenav a[aria-current="page"]:hover { background: var(--brand-dark); }
@media (max-width: 760px) {
  .layout-side { grid-template-columns: 1fr; gap: 14px; }
  .sidenav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .sidenav a { white-space: nowrap; background: var(--white); border: 1px solid var(--line); }
  .sidenav form { flex: none; }
}
.img-edit { display: flex; flex-wrap: wrap; gap: 10px; }
.img-edit figure { margin: 0; width: 110px; }
.img-edit img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--radius-sm); }
.img-edit figcaption { text-align: center; margin-top: 4px; }
.preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.footer { margin-top: 48px; background: var(--ink); color: #C5D6E4; }
.footer-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding: 36px 16px 18px; }
.footer-in a { display: block; padding: 4px 0; color: var(--white); text-decoration: none; }
.footer-in a:hover { text-decoration: underline; color: var(--white); }
.footer-logo img { height: 36px; width: auto; margin-bottom: 10px; }
.footer-h { font-weight: 700; margin-bottom: 6px; color: #8FB8D8; font-size: .9rem; }
.footer-base { padding: 12px 16px 24px; font-size: .88rem; color: #8FA9BF; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer .muted { color: #A9C1D4; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr 1fr; } }

/* ---------- Arabic (right to left) ---------- */
:lang(ar) body, :lang(ar) input, :lang(ar) select, :lang(ar) textarea, :lang(ar) .btn, :lang(ar) button {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .sign-name, :lang(ar) .price-lg, :lang(ar) .stat b, :lang(ar) legend {
  font-family: "Alexandria", var(--font-display);
  letter-spacing: 0;
}
:lang(ar) h1 { line-height: 1.35; }
:lang(ar) h2, :lang(ar) h3 { line-height: 1.45; }
:lang(ar) .sign-name { line-height: 1.25; }
:lang(ar) body { line-height: 1.75; }
:lang(ar) .pcard-title { line-height: 1.5; }
:lang(ar) .tile { font-size: .85rem; }
/* text typed by sellers and customers keeps its own direction */
.review p, .outlet-about p, .pdp p[style*="pre-line"], .panel p[style*="pre-line"] { unicode-bidi: plaintext; }
/* always left-to-right: links, phone numbers */
.ltr, input[type=tel], input[type=url], input[type=email], .share-link input, input[name=slug] { direction: ltr; }
[dir=rtl] .share-link input, [dir=rtl] input[type=tel] { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* phone header: icon-only account button */
@media (max-width: 760px) {
  .nav-account-label { display: none; }
  .mainnav .lang-switch .ic { display: none; }
}
.lang-switch .ic { width: 18px; height: 18px; }
.hero-loc .ic { width: 18px; height: 18px; color: var(--brand); }
