/* ── Force light mode always ── */
:root { color-scheme: light; }

/* ── Remove blue tap highlight and focus outlines ── */
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }

/* ── Tokens ── */
:root {
  --ink:        #0C1510;
  --ink2:       #253B2C;
  --muted:      #5E7566;
  --forest:     #0A3D22;
  --mid:        #145C35;
  --leaf:       #1A7A42;
  --leaf-lt:    #D6F0E0;
  --ochre:      #C8820A;
  --ochre-lt:   #FDF3DC;
  --ochre-brt:  #E09A12;
  --red:        #C0392B;
  --hdr:        #071A0F;
  --topbar:     #040F08;
  --surf:       #FFFFFF;
  --surf2:      #F4F4F4;
  --surf3:      #EBEBEB;
  --white:      #FFFFFF;
  --border:     #CDD8D0;
  --border-lt:  #E2EAE4;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.09);
  --shadow-md:  0 6px 20px rgba(0,0,0,.12);
  --r:          4px;
  --r-lg:       8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: -apple-system, 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--surf);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
svg { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Topbar ── */
.topbar { background: var(--topbar); border-bottom: 1px solid rgba(255,255,255,.04); }
.tb { display: flex; align-items: center; justify-content: space-between; height: 28px; font-size: 11px; }
.tb-l { color: rgba(255,255,255,.35); display: flex; gap: 18px; align-items: center; }
.tb-l a { color: rgba(255,255,255,.32); transition: color .12s; }
.tb-l a:hover { color: rgba(255,255,255,.65); }
.tb-r { display: flex; }
.tb-r a {
  color: rgba(255,255,255,.45); padding: 0 11px; line-height: 28px;
  border-left: 1px solid rgba(255,255,255,.06); font-size: 11px; transition: .12s;
}
.tb-r a:hover { color: #fff; background: rgba(255,255,255,.04); }
.tb-post { background: var(--ochre) !important; color: #fff !important; font-weight: 700; letter-spacing: .01em; }
.tb-post:hover { background: #A46A08 !important; }

/* ── Header ── */
.hdr {
  background: var(--hdr); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 2px 16px rgba(0,0,0,.5);
}
.hdr-in { display: flex; align-items: center; gap: 14px; height: 54px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-name { line-height: 1.2; }
.logo-name strong { font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -.05em; display: block; }
.logo-name strong span { color: var(--ochre-brt); }
.logo-name small { font-size: 8.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }

.srch-wrap { flex: 1; max-width: 580px; position: relative; }
.srch { display: flex; height: 38px; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.25); width: 100%; }
.srch input { flex: 1; border: none; outline: none; padding: 0 13px; font-size: 13px; color: #111; background: #fff; }
.srch input::placeholder { color: #9CAFA2; }
.srch-loc { border: none; border-left: 1px solid #DDE6DF; padding: 0 10px; font-size: 12px; color: #3D5040; background: #F2F5F2; cursor: pointer; min-width: 128px; outline: none; }
.srch-btn { background: var(--ochre); border: none; padding: 0 18px; color: #fff; font-size: 13px; font-weight: 700; transition: .13s; }
.srch-btn:hover { background: #A46A08; }

.hdr-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.btn-signin { color: rgba(255,255,255,.78); font-size: 12.5px; font-weight: 600; padding: 6px 4px; transition: .13s; white-space: nowrap; border-bottom: 1.5px solid transparent; }
.btn-signin:hover { color: #fff; border-bottom-color: rgba(255,255,255,.4); }
.btn-register { border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--r); color: rgba(255,255,255,.85); padding: 6px 13px; font-size: 12.5px; font-weight: 600; transition: .13s; white-space: nowrap; }
.btn-register:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-post { background: var(--ochre); border: none; border-radius: var(--r); color: #fff; padding: 7px 15px; font-size: 12.5px; font-weight: 700; letter-spacing: .01em; transition: .13s; white-space: nowrap; }
.btn-post:hover { background: #A46A08; box-shadow: 0 3px 12px rgba(200,130,10,.35); }
.btn-mob-auth { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; flex-shrink: 0; }
.btn-mob-auth svg { width: 18px; height: 18px; }
.btn-mob-search { display: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; flex-shrink: 0; }
.btn-mob-search svg { width: 18px; height: 18px; }
.srch-mob { display: none; position: absolute; left: 0; right: 0; top: 0; height: 50px; background: var(--hdr); padding: 0 12px; align-items: center; gap: 8px; z-index: 10; }
.srch-mob.open { display: flex; }
.srch-mob input { flex: 1; border: none; border-radius: 6px; padding: 8px 12px; font-size: 14px; outline: none; background: rgba(255,255,255,.12); color: #fff; }
.srch-mob input::placeholder { color: rgba(255,255,255,.4); }
.srch-mob-btn { color: rgba(255,255,255,.6); font-size: 16px; background: none; border: none; padding: 4px 6px; }

/* ── Sponsored Strip ── */
.sponsored-strip { background: var(--white); border-bottom: 1.5px solid var(--border-lt); padding: 18px 0 20px; }
.spons-label { font-size: 10px; font-weight: 700; color: #333; background: #FFD700; border-radius: 3px; padding: 1px 6px; letter-spacing: .04em; margin-left: 6px; }
.spons-scroll-wrap { overflow: hidden; margin-top: 12px; cursor: grab; user-select: none; }
.spons-scroll-wrap.dragging { cursor: grabbing; }
.spons-grid { display: flex; gap: 14px; width: max-content; will-change: transform; }
.spons-card { flex: 0 0 220px; border: 1.5px solid var(--border-lt); border-radius: 10px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-xs); transition: box-shadow .13s, transform .13s; cursor: pointer; }
.spons-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.spons-img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--surf2); }
.spons-body { padding: 10px 12px 12px; }
.spons-tag { font-size: 10px; font-weight: 700; color: var(--ochre); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.spons-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spons-price { font-size: 14px; font-weight: 800; color: var(--forest); margin-bottom: 4px; }
.spons-loc { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; }
.spons-ad-badge { position: absolute; top: 8px; left: 8px; background: #FFD700; color: #333; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 3px; letter-spacing: .04em; }
@media (max-width: 600px) { .spons-card { flex: 0 0 170px; } .spons-img { height: 105px; } }

/* ── Shop by Category ── */
.shopcat { background: var(--white); border-bottom: 1.5px solid var(--border-lt); }
.shopcat-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; background: none; border: none; cursor: pointer; color: var(--ink); }
.shopcat-toggle-left { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.shopcat-toggle-left svg { color: var(--ink); flex-shrink: 0; }
.shopcat-arrow { transition: transform .28s cubic-bezier(.22,1,.36,1); flex-shrink: 0; color: var(--muted); }
.shopcat-arrow.open { transform: rotate(180deg); }
.shopcat-panel { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1); }
.shopcat-panel.open { max-height: 1400px; }
.shopcat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 4px 0 20px; }
@media (max-width: 600px) { .shopcat-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; } }
.scat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; background: none; border: none; box-shadow: none; cursor: pointer; text-decoration: none; min-width: 0; }
.scat-card:hover .scat-img-wrap { box-shadow: 0 4px 16px rgba(0,0,0,.18); transform: translateY(-3px); }
.scat-img-wrap { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; background: #f0f0f0; transition: transform .18s, box-shadow .18s; box-shadow: 0 3px 10px rgba(0,0,0,.13); flex-shrink: 0; }
@media (min-width: 601px) { .scat-img-wrap { width: 90px; height: 90px; } }
.scat-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scat-name { font-size: 10px; font-weight: 700; color: var(--ink); line-height: 1.3; text-align: center; word-break: break-word; }
@media (min-width: 601px) { .scat-name { font-size: 12px; } }

/* ── Shops Section ── */
.shops-bar { background: var(--surf); border-bottom: 1px solid var(--border-lt); padding: 0 0 4px; }
.shops-grid, .shops-grid.shopcat-grid { display: grid; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 12px 0 16px; }
.shop-card { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; background: var(--surf); border: 1.5px solid var(--border-lt); border-radius: 14px; cursor: pointer; text-align: center; transition: box-shadow .15s, transform .15s; min-width: 0; }
.shop-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.shop-card-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shop-card-logo { width: 100%; height: 48px; border-radius: 8px; object-fit: contain; border: none; flex-shrink: 0; background: transparent; }
.shop-card-name { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; word-break: break-word; }
.shop-card-count { font-size: 10.5px; color: var(--muted); }
.shop-card-loc { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.shop-card-add { border: 2px dashed var(--border); background: transparent; }
.shop-card-add:hover { border-color: var(--leaf); background: var(--leaf-lt); }
.shop-card-add-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--leaf-lt); color: var(--forest); font-size: 26px; font-weight: 300; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shop-card-add:hover .shop-card-add-icon { background: var(--leaf); color: #fff; }
.shop-vfy-dot { color: var(--forest); font-size: 10px; font-weight: 700; }

/* ── Shop Page ── */
#shop-page { position: fixed; inset: 0; z-index: 200; background: var(--surf); display: flex; flex-direction: column; }
.shop-page-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.shop-hdr-banner { background: linear-gradient(135deg, var(--forest) 0%, #1a5c38 100%); padding: 24px 20px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shop-hdr-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 3px solid rgba(255,255,255,.4); }
.shop-hdr-info { flex: 1; min-width: 0; }
.shop-hdr-name { font-size: 20px; font-weight: 700; color: #fff; line-height: 1.2; }
.shop-hdr-stats { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.shop-empty { text-align: center; padding: 48px 20px; color: var(--muted); font-size: 14px; }

/* Shop category tabs */
.shop-cat-tabs { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-bottom: 2px solid var(--border-lt); background: var(--surf); padding: 0 16px; scrollbar-width: none; }
.shop-cat-tabs::-webkit-scrollbar { display: none; }
.shop-tab { flex-shrink: 0; padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: none; border-bottom: 2.5px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color .15s; margin-bottom: -2px; }
.shop-tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.shop-tab:hover:not(.active) { color: var(--ink); }
.shop-tab-count { background: var(--surf3); color: var(--muted); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; }
.shop-tab.active .shop-tab-count { background: #D4EDDA; color: var(--forest); }

/* Shop main body */
.shop-main { padding: 20px 0 48px; }

/* E-commerce product grid */
.shop-ec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* E-commerce product card */
.shop-ec-card { position: relative; background: var(--surf); border: 1.5px solid var(--border-lt); border-radius: 14px; overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.shop-ec-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.11); transform: translateY(-2px); }
.shop-ec-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surf2); flex-shrink: 0; }
.shop-ec-body { padding: 10px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.shop-ec-cat { font-size: 10px; font-weight: 700; color: var(--forest); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.shop-ec-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-ec-cond { display: inline-block; align-self: flex-start; font-size: 10px; font-weight: 600; color: var(--muted); background: var(--surf3); border-radius: 4px; padding: 1px 6px; margin-bottom: 6px; }
.shop-ec-price { font-size: 16px; font-weight: 800; color: var(--forest); margin-bottom: 4px; }
.shop-ec-loc { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 3px; margin-bottom: 10px; }
.shop-ec-loc svg { flex-shrink: 0; width: 12px; height: 12px; }
.shop-ec-actions { display: flex; gap: 6px; margin-top: 8px; }
.shop-ec-btn-primary { flex: 1; padding: 8px 4px; background: var(--forest); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.shop-ec-btn-primary:hover { opacity: .88; }
.shop-ec-btn-secondary { padding: 8px 10px; background: none; color: var(--forest); border: 1.5px solid var(--forest); border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s; }
.shop-ec-btn-secondary:hover { background: rgba(10,61,34,.07); }

/* ── Autocomplete ── */
.ac-drop, .mob-ac-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border-lt);
  border-radius: var(--r-lg); box-shadow: 0 8px 28px rgba(0,0,0,.14);
  z-index: 300; overflow: hidden; display: none;
}
.ac-drop.open, .mob-ac-drop.open { display: block; }
.mob-ac-drop { top: calc(100% + 2px); left: 0; right: 0; position: absolute; }
.ac-section-label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; padding: 10px 14px 4px; }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 13px; color: var(--ink); transition: background .1s; min-width: 0; }
.ac-item:hover, .ac-item.focused { background: var(--surf2); }
.ac-item-ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.ac-item-ico--recent { color: var(--ochre); }
.ac-item-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1.5px solid var(--border-lt); }
.ac-item-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ac-item-text strong { font-weight: 700; color: var(--forest); }
.ac-item-cat { font-size: 10.5px; color: var(--muted); background: var(--surf2); border-radius: 4px; padding: 2px 7px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.ac-item-recent-tag { font-size: 10px; color: var(--ochre); font-weight: 700; margin-left: auto; white-space: nowrap; }
.ac-see-all { padding: 10px 14px; font-size: 12.5px; color: var(--leaf); font-weight: 600; cursor: pointer; border-top: 1px solid var(--border-lt); transition: background .1s; }
.ac-see-all:hover { background: var(--surf2); }
.ac-see-all strong { color: var(--ink); }

/* ── Layout ── */
.main { padding: 20px 0 56px; }
.main-grid { display: grid; grid-template-columns: 1fr 255px; gap: 20px; align-items: start; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); gap: 8px; }
.sec-head h2 { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; min-width: 0; flex: 1; }
.sec-head a { font-size: 11.5px; color: var(--leaf); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; }
.sec-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: var(--ochre); color: #fff; padding: 2px 7px; border-radius: 2px; margin-left: 8px; vertical-align: middle; }

/* ── BB grid ── */
.bb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.bb-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .18s, transform .18s; cursor: pointer; }
.bb-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bb-img { aspect-ratio: 4/3; overflow: hidden; background: #0A140C; position: relative; flex-shrink: 0; }
.bb-img canvas { width: 100%; height: 100%; display: block; }
.bb-ribbon { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.r-feat { background: rgba(200,130,10,0.72); }
.r-hot  { background: rgba(192,57,43,0.72); }
.r-new  { background: rgba(26,92,200,0.72); }
.bb-save { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .13s; }
.bb-save:hover, .bb-save.on { background: #FEF0EE; }
.bb-save svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 1.5; transition: .13s; }
.bb-save.on svg { stroke: var(--red); fill: var(--red); }
.bb-body { padding: 11px 11px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bb-eyebrow { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.bb-price-tag { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 5px 8px; background: var(--ochre-lt); border-left: 3px solid var(--ochre); border-radius: 0 var(--r) var(--r) 0; margin: 1px 0 2px; }
.bb-price-val { font-size: 16px; font-weight: 900; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
.bb-price-free { font-size: 12px; font-weight: 700; color: var(--leaf); }
.bb-neg { font-size: 9px; font-weight: 700; color: var(--muted); background: var(--surf2); padding: 1px 5px; border-radius: 3px; }
.bb-title { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-seller-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.bb-seller-name { font-size: 10px; color: var(--muted); font-weight: 500; }
.bb-delivery { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 600; color: var(--leaf); margin-top: 2px; }
.bb-delivery-dot { width: 5px; height: 5px; background: var(--leaf); border-radius: 50%; flex-shrink: 0; }
.bb-cond { display: inline-block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 2px; background: var(--leaf-lt); color: var(--mid); }
.bb-meta { display: flex; gap: 10px; font-size: 9.5px; color: var(--muted); align-items: center; flex-wrap: wrap; margin-top: 4px; font-weight: 400; }
.bb-meta span { display: flex; align-items: center; gap: 3px; }
.bb-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.bb-actions { display: flex; gap: 5px; margin-top: auto; padding-top: 9px; flex-wrap: wrap; }
.btn-view { flex: 1; background: var(--forest); color: #fff; border-radius: var(--r); padding: 6.5px 8px; font-size: 11px; font-weight: 700; transition: .13s; text-align: center; white-space: nowrap; }
.btn-view:hover { background: var(--mid); }
.btn-offer { flex: 1; background: var(--white); color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--r); padding: 6px 8px; font-size: 11px; font-weight: 700; transition: .13s; text-align: center; white-space: nowrap; cursor: pointer; }
.btn-offer:hover { background: var(--leaf-lt); }
.btn-wa { background: #25D366; color: #fff; border-radius: var(--r); padding: 6.5px 9px; font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 4px; transition: .13s; white-space: nowrap; }
.btn-wa:hover { background: #1BB256; }
.btn-wa svg { width: 12px; height: 12px; fill: #fff; flex-shrink: 0; }

/* Seller type + verified badges */
.stype-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 5px; border-radius: 3px; }
.stype-private { background: var(--leaf-lt); color: var(--mid); }
.stype-dealer  { background: var(--ochre-lt); color: #7A4E00; }
.vfy-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; display: inline-flex; align-items: center; white-space: nowrap; width: fit-content; }
.vfy-yes { background: #E3F0FF; color: #1565C0; }
.vfy-no  { background: #FFEBEE; color: #E53935; }

/* ── GT list ── */
.gt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.gt-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .17s; cursor: pointer; position: relative; }
.gt-card:hover { box-shadow: var(--shadow-sm); }
.gt-card:hover .gt-title { color: var(--leaf); }
.gt-img { width: 100%; height: 160px; flex-shrink: 0; background: var(--surf2); position: relative; overflow: hidden; }
.gt-img canvas { width: 100%; height: 100%; display: block; }
.gt-bdgs { position: absolute; top: 7px; left: 7px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.gt-bdg { font-size: 8.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; display: inline-block; color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gb-feat { background: rgba(200,130,10,0.72); }
.gb-hot  { background: rgba(192,57,43,0.72); }
.gb-veri { background: var(--mid); }
.gt-body { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-price-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gt-price-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-left: 3px solid var(--ochre); background: var(--ochre-lt); border-radius: 0 var(--r) var(--r) 0; }
.gt-price-val { font-size: 15px; font-weight: 900; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.gt-price-free { font-size: 12.5px; font-weight: 700; color: var(--leaf); }
.gt-neg { font-size: 9px; font-weight: 600; color: var(--muted); background: var(--surf2); padding: 1px 5px; border-radius: 3px; }
.gt-save-btn { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; transition: .13s; background: none; color: var(--muted); }
.gt-save-btn:hover, .gt-save-btn.on { border-color: var(--red); color: var(--red); background: #FEF0EE; }
.gt-save-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.gt-save-btn.on svg { fill: var(--red); }
.gt-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; transition: color .13s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gt-meta { display: flex; align-items: center; gap: 12px; font-size: 9.5px; color: var(--muted); flex-wrap: wrap; font-weight: 400; margin-top: 4px; }
.gt-meta span { display: flex; align-items: center; gap: 3px; }
.gt-meta svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.gt-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.gt-chip { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 2px; border: 1px solid var(--border); color: var(--ink2); background: var(--surf2); letter-spacing: .01em; }
.gt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 5px; }
.gt-seller { font-size: 10.5px; color: var(--muted); }
.gt-seller strong { color: var(--ink2); font-weight: 600; }
.gt-wa-sm { background: #25D366; color: #fff; border-radius: var(--r); padding: 4px 9px; font-size: 10.5px; font-weight: 700; border: none; display: flex; align-items: center; gap: 3px; transition: .12s; }
.gt-wa-sm:hover { background: #1BB256; }
.gt-wa-sm svg { width: 11px; height: 11px; fill: #fff; flex-shrink: 0; }

/* ── Load more ── */
.load-more { padding: 12px 0; }
.btn-lm { width: 100%; border: 1.5px solid var(--border); background: var(--white); color: var(--ink2); border-radius: var(--r); padding: 9px 24px; font-size: 12.5px; font-weight: 600; transition: .14s; }
.btn-lm:hover { border-color: var(--forest); color: var(--forest); background: var(--leaf-lt); }

/* ── Province browse ── */
.prov-sec { margin-top: 26px; }
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prov-btn { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: var(--ink2); transition: .13s; cursor: pointer; }
.prov-btn:hover { border-color: var(--leaf); color: var(--forest); background: var(--leaf-lt); }
.prov-arr { font-size: 11px; color: var(--muted); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.sb-sec { border-bottom: 1px solid var(--border); }
.sb-sec:last-child { border-bottom: none; }
.sb-hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 9px; border-bottom: 1px solid var(--border-lt); background: var(--surf2); }
.sb-hd span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--ink2); }
.sb-hd button { font-size: 10px; color: var(--muted); cursor: pointer; }
.sb-hd button:hover { color: var(--leaf); }
.sb-body { padding: 13px 14px; }
.fg { margin-bottom: 13px; }
.fg:last-child { margin-bottom: 0; }
.fl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin-bottom: 7px; }
.fo { display: flex; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 12px; color: var(--muted); cursor: pointer; transition: color .12s; }
.fo:hover { color: var(--forest); }
.fo input { accent-color: var(--forest); cursor: pointer; }
.pi { display: flex; gap: 6px; }
.pi input { flex: 1; width: 0; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; background: var(--surf2); color: var(--ink); outline: none; }
.pi input:focus { border-color: var(--leaf); }
.btn-fltr { width: 100%; background: var(--forest); color: #fff; border: none; border-radius: var(--r); padding: 7.5px; font-size: 12px; font-weight: 700; margin-top: 7px; transition: .13s; }
.btn-fltr:hover { background: var(--mid); }
.sb-province-sel { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--r); font-size: 12px; color: var(--ink); background: var(--white); font-family: inherit; cursor: pointer; }
.sb-province-sel:focus { border-color: var(--leaf); outline: none; }
.safety-list { display: flex; flex-direction: column; gap: 7px; }
.si { display: flex; gap: 7px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.si-dot { color: var(--ochre); font-weight: 900; flex-shrink: 0; font-size: 14px; line-height: 1.2; }
.sb-auth { padding: 14px; background: var(--surf2); border-bottom: 1px solid var(--border); }
.sb-auth p { font-size: 11.5px; color: var(--muted); line-height: 1.55; margin-bottom: 11px; }
.sb-auth-btns { display: flex; gap: 7px; }
.btn-sb-signin { flex: 1; background: var(--forest); color: #fff; border: none; border-radius: var(--r); padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .13s; text-align: center; }
.btn-sb-signin:hover { background: var(--mid); }
.btn-sb-register { flex: 1; background: none; color: var(--forest); border: 1.5px solid var(--forest); border-radius: var(--r); padding: 7px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .13s; text-align: center; }
.btn-sb-register:hover { background: var(--leaf-lt); }
.sb-cta { padding: 16px 14px; background: var(--forest); text-align: center; }
.sb-cta h4 { color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 5px; letter-spacing: -.01em; }
.sb-cta p { color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.55; margin-bottom: 12px; }
.btn-cta-sb { width: 100%; background: var(--ochre); color: #fff; border: none; border-radius: var(--r); padding: 9px; font-size: 12.5px; font-weight: 800; transition: .13s; }
.btn-cta-sb:hover { background: #A46A08; }

/* ── CTA band ── */
.cta-band { background: var(--forest); padding: 42px 0; text-align: center; margin-top: 32px; }
.cta-band h2 { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.68); font-size: 13.5px; margin-bottom: 22px; }
.btn-cta-main { background: var(--ochre); color: #fff; border: none; border-radius: var(--r); padding: 13px 36px; font-size: 14px; font-weight: 800; letter-spacing: .01em; cursor: pointer; transition: .14s; }
.btn-cta-main:hover { background: #A46A08; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

/* ── Footer ── */
.ftr { background: var(--topbar); color: rgba(255,255,255,.45); }
.ftr-top { padding: 48px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
.ftr-brand-name { font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.ftr-brand-name span { color: var(--ochre-brt); }
.ftr-brand p { font-size: 11.5px; line-height: 1.7; color: rgba(255,255,255,.38); max-width: 210px; margin-bottom: 4px; }
.ftr-social { display: flex; gap: 8px; margin-top: 16px; }
.fsb { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); transition: .13s; }
.fsb svg { width: 16px; height: 16px; }
.fsb:hover { background: var(--leaf); color: #fff; }
.ftr-col h5 { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.ftr-col a { display: block; font-size: 12px; color: rgba(255,255,255,.38); padding: 3px 0; transition: .12s; }
.ftr-col a:hover { color: var(--ochre-brt); }
.ftr-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin-bottom: 24px; }
.ftr-payments { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.ftr-pay-label { font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.ftr-pay-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.ftr-pay-badge { font-size: 9.5px; font-weight: 700; color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 4px; padding: 3px 8px; letter-spacing: .02em; }
.ftr-bottom { background: rgba(0,0,0,.3); padding: 14px 0; }
.ftr-bottom-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 10.5px; color: rgba(255,255,255,.22); }
.ftr-bottom-links { display: flex; flex-wrap: wrap; gap: 4px; }
.ftr-bottom-links a { color: rgba(255,255,255,.22); padding: 0 8px; border-left: 1px solid rgba(255,255,255,.1); transition: .12s; }
.ftr-bottom-links a:first-child { border-left: none; }
.ftr-bottom-links a:hover { color: var(--ochre-brt); }

/* ── Modal ── */
.em-modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.52); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.em-modal-backdrop.open { opacity: 1; pointer-events: all; }
.em-modal-backdrop.open .em-modal-box { transform: translateY(0); }
.em-modal-box { background: var(--white); border-radius: 16px 16px 0 0; width: 100%; max-width: 540px; padding: 0 0 32px; transform: translateY(40px); transition: transform .24s cubic-bezier(.22,1,.36,1); max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; }
.em-modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 0; flex-shrink: 0; }
.em-modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--border-lt); }
.em-modal-bar h3 { font-size: 15px; font-weight: 800; color: var(--ink); }
.em-modal-close { width: 28px; height: 28px; border-radius: 50%; background: var(--surf); border: none; cursor: pointer; font-size: 16px; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: .13s; }
.em-modal-close:hover { background: var(--surf2); color: var(--ink); }
.em-modal-listing { display: flex; gap: 12px; padding: 16px 20px; background: var(--surf); margin: 16px 20px; border-radius: 10px; align-items: center; }
.em-modal-listing-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.em-modal-listing-img canvas { width: 64px !important; height: 64px !important; }
.em-modal-listing-info { flex: 1; min-width: 0; }
.em-modal-listing-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-modal-listing-price { font-size: 15px; font-weight: 900; color: var(--forest); margin-top: 2px; }
.em-modal-listing-cond { font-size: 11px; color: var(--muted); margin-top: 2px; }
/* Ad detail full view */
.em-ad-photo { width: 100%; height: 220px; background: var(--surf2); overflow: hidden; border-radius: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.em-ad-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo gallery slider */
.em-gallery { position: relative; width: 100%; height: 240px; overflow: hidden; background: #111; flex-shrink: 0; }
.em-gallery-track { display: flex; height: 100%; transition: transform .3s ease; will-change: transform; }
.em-gallery-slide { flex: 0 0 100%; height: 100%; }
.em-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: none; font-size: 26px; line-height: 1; padding: 6px 12px; cursor: pointer; z-index: 2; border-radius: 6px; }
.em-gallery-prev { left: 8px; }
.em-gallery-next { right: 8px; }
.em-gallery-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.em-gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.em-gallery-dot.active { background: #fff; }

/* ── Photo lightbox ── */
#em-lightbox { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,.93); align-items: center; justify-content: center; cursor: zoom-out; }
#em-lightbox.open { display: flex; }
#em-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; pointer-events: none; }
#em-lightbox-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 22px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; }
#em-lightbox-prev, #em-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); border: none; color: #fff; font-size: 36px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; z-index: 1; display: flex; align-items: center; justify-content: center; }
#em-lightbox-prev { left: 12px; }
#em-lightbox-next { right: 12px; }
#em-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.5); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.em-gallery-slide img { cursor: zoom-in; }
.em-ad-photo img { cursor: zoom-in; }
.em-ad-detail-body { padding: 16px 20px 12px; }
.em-ad-detail-price { font-size: 22px; font-weight: 900; color: var(--forest); letter-spacing: -.02em; margin-bottom: 4px; }
.em-ad-detail-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 10px; }
.em-ad-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.em-ad-detail-desc { font-size: 13px; color: var(--ink2); line-height: 1.6; margin-bottom: 16px; }
.em-vehicle-details { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; margin: 4px 0 16px; background: var(--white); }
.em-vehicle-details-title { font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 12px; }
.em-vehicle-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: baseline; padding: 7px 0; font-size: 14px; line-height: 1.35; }
.em-vehicle-row span { color: var(--muted); }
.em-vehicle-row strong { color: var(--ink); font-size: 16px; }
.em-vehicle-row strong.accent { color: var(--leaf); }
.em-modal-seller { display: flex; align-items: center; gap: 10px; padding: 0 20px 14px; }
.em-modal-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.em-modal-seller-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.em-modal-seller-meta { font-size: 11px; color: var(--muted); }
.em-modal-verified { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; background: #E3F0FF; color: #1565C0; padding: 2px 8px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }
.em-modal-unverified { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; background: #FFEBEE; color: #E53935; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; }
.em-modal-divider { height: 1px; background: var(--border-lt); margin: 0 20px 16px; }
.em-modal-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 0 20px; margin-bottom: 10px; }
.em-contact-btns { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.em-contact-btn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white); transition: .13s; text-align: left; width: 100%; }
.em-contact-btn:hover { border-color: var(--forest); background: var(--surf); }
.em-contact-btn.chat { border-color: var(--forest); color: #fff; background: var(--forest); }
.em-contact-btn.chat:hover { background: var(--leaf); }
.em-contact-btn.call { border-color: #1565C0; color: #1565C0; }
.em-contact-btn.call:hover { background: #E3F0FF; }
.em-contact-btn-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.em-contact-btn.chat .em-contact-btn-icon { background: rgba(255,255,255,.2); }
.em-contact-btn-sub { font-size: 11px; font-weight: 400; opacity: .7; display: block; margin-top: 1px; }
.em-offer-body { padding: 0 20px; }
.em-offer-ref { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.em-offer-ref strong { color: var(--forest); font-size: 14px; }
.em-offer-label { font-size: 11.5px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; display: block; }
.em-offer-input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--white); outline: none; margin-bottom: 14px; font-family: inherit; }
.em-offer-input:focus { border-color: var(--forest); }
.em-offer-textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; resize: none; height: 80px; font-family: inherit; margin-bottom: 16px; }
.em-offer-textarea:focus { border-color: var(--forest); }
.em-offer-submit { width: 100%; padding: 13px; background: var(--forest); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; transition: .13s; }
.em-offer-submit:hover { background: var(--mid); }
.em-confirm { text-align: center; padding: 32px 20px 8px; }
.em-confirm-icon { margin-bottom: 12px; display: flex; justify-content: center; }
.em-confirm-title { font-size: 17px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.em-confirm-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.em-confirm-close { margin-top: 20px; width: 100%; padding: 12px; background: var(--surf); border: none; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }

/* Toast notification */
#em-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(120px); background: #c62828; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; max-width: 90vw; text-align: center; z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.3); transition: transform .3s ease, opacity .3s ease; opacity: 0; pointer-events: none; }
#em-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }

/* OTP code input */
.em-otp-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-weight: 800 !important; }

/* Loading state */
.em-loading-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; color: var(--muted); font-size: 13px; }
.em-spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--leaf); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Related ads in modal */
.em-related { padding: 20px 20px 12px; border-top: 1px solid var(--border-lt); margin-top: 8px; }
.em-related-hdr { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
.em-related-list { display: flex; flex-direction: column; gap: 10px; }
.em-related-card { display: flex; gap: 12px; align-items: center; cursor: pointer; padding: 10px; background: var(--surf2); border-radius: 10px; transition: background .13s; -webkit-tap-highlight-color: transparent; }
.em-related-card:active { background: var(--border-lt); }
.em-related-img { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surf3); }
.em-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-related-body { flex: 1; min-width: 0; }
.em-related-title { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.em-related-price { font-size: 13.5px; font-weight: 900; color: var(--forest); margin-bottom: 2px; }
.em-related-loc { font-size: 11px; color: var(--muted); }

/* Toast + theme toggle */
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-md); z-index: 999; transform: translateY(60px); opacity: 0; transition: .24s ease; pointer-events: none; border-left: 3px solid var(--ochre); }
.toast.show { transform: translateY(0); opacity: 1; }
.tt { position: fixed; top: 66px; right: 12px; z-index: 200; background: var(--white); border: 1.5px solid var(--border); border-radius: 20px; padding: 4px 11px; font-size: 11px; color: var(--muted); cursor: pointer; box-shadow: var(--shadow-xs); transition: .13s; }
.tt:hover { border-color: var(--leaf); color: var(--forest); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr !important; width: 100%; }
  .sidebar { display: none !important; }
  .bb-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
  .topbar { display: none; }
}
@media (max-width: 700px) { .bb-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .gt-img { height: 120px; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-bottom-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .srch-loc { display: none; }
  .btn-signin { display: none; }
  .btn-register { display: none; }
  .hdr-in { gap: 6px; padding: 0 10px; height: 50px; position: relative; }
  .wrap { padding: 0 10px; }
  .btn-mob-auth { display: flex; }
  .btn-mob-search { display: flex; }
  .srch-desktop { display: none; }
  .btn-post { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
  .logo-name strong { font-size: 1.25rem; }
  .logo-name small { display: none; }
  .bb-grid { grid-template-columns: 1fr 1fr !important; }
  .gt-card { overflow: hidden; }
}

/* ── Post Ad form ── */
.em-post-form { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.em-post-field { display: flex; flex-direction: column; gap: 5px; }
.em-post-label { font-size: 11.5px; font-weight: 700; color: var(--ink2); }
.em-post-label span { font-weight: 400; color: var(--muted); }
.em-post-row { display: flex; gap: 10px; }
.em-post-row > * { flex: 1; min-width: 0; }
.em-post-input { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; font-family: inherit; width: 100%; transition: border-color .13s; }
.em-post-input:focus { border-color: var(--forest); }
.em-post-select { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: 13px; color: var(--ink); background: var(--white); outline: none; font-family: inherit; width: 100%; cursor: pointer; appearance: auto; }
.em-post-select:focus { border-color: var(--forest); }
.em-post-toggle { display: flex; gap: 6px; }
.em-post-toggle-btn { flex: 1; padding: 9px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .13s; font-family: inherit; }
.em-post-toggle-btn.active { border-color: var(--forest); background: var(--leaf-lt); color: var(--forest); }
.em-post-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2); cursor: pointer; user-select: none; }
.em-post-check input { accent-color: var(--forest); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.em-photo-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 22px 16px; text-align: center; cursor: pointer; transition: .13s; background: var(--surf); position: relative; overflow: hidden; }
.em-photo-zone:hover, .em-photo-zone.drag { border-color: var(--leaf); background: var(--leaf-lt); }
.em-photo-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.em-photo-zone-txt { pointer-events: none; }
.em-photo-zone-txt strong { display: block; font-size: 13px; color: var(--ink2); margin-bottom: 2px; }
.em-photo-zone-txt { font-size: 12px; color: var(--muted); }
.em-photo-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.em-photo-thumb-wrap { position: relative; display: inline-flex; }
.em-photo-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--border); display: block; }
.em-photo-rm { position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; border: none; cursor: pointer; font-size: 10px; font-weight: 900; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; font-family: inherit; }
.em-photo-main-lbl { position: absolute; bottom: 3px; left: 3px; font-size: 9px; font-weight: 800; background: var(--forest); color: #fff; border-radius: 3px; padding: 1px 4px; pointer-events: none; }
.em-add-more-photos-btn { width: 100%; margin-top: 8px; padding: 10px; border: 1.5px dashed var(--leaf); border-radius: 8px; background: var(--leaf-lt); color: var(--forest); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: .13s; }
.em-add-more-photos-btn:hover { background: var(--surf2); }
.em-post-error { font-size: 12px; color: var(--red); background: #FEF0EE; border: 1px solid #FBBBB3; border-radius: 6px; padding: 9px 12px; }
.em-post-submit { width: 100%; padding: 14px; background: var(--forest); color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; transition: .13s; font-family: inherit; margin-top: 2px; }
.em-post-submit:hover { background: var(--mid); }
.em-post-cancel-btn { width: 100%; padding: 12px; background: none; color: var(--muted); border: none; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 4px; text-decoration: underline; }
.em-post-cancel-btn:hover { color: #c62828; }
.pa-draft-banner { background: #FFF8E1; border: 1px solid #FFE082; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #5D4037; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pa-draft-banner button { background: none; border: none; color: var(--forest); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; font-family: inherit; }

/* ── Empty state ── */
.em-empty-state { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }

/* ── Auth switch link ── */
.em-auth-switch { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.em-auth-switch button { background: none; border: none; color: var(--forest); font-weight: 700; font-size: 12px; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; }
.em-auth-switch button:hover { color: var(--mid); }
.em-signin-hint { font-size: 13px; color: var(--forest); background: var(--leaf-lt); border-radius: 8px; padding: 10px 14px; margin-bottom: 4px; font-weight: 600; }

/* ── Header user menu ── */
.hdr-user { position: relative; display: flex; align-items: center; }
.hdr-user-btn {
  display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px;
  border-radius: 20px; border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08); color: #fff; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: .13s; font-family: inherit;
}
.hdr-user-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.hdr-user-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--ochre);
  color: #fff; font-size: 9px; font-weight: 900; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; line-height: 1;
}
.hdr-user-drop {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); z-index: 300; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-6px); transition: .15s;
}
.hdr-user-drop.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.hdr-user-drop button {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: none;
  border: none; cursor: pointer; transition: .1s; border-bottom: 1px solid var(--border-lt);
  font-family: inherit;
}
.hdr-user-drop button:last-child { border-bottom: none; }
.hdr-user-drop button:hover { background: var(--surf); }
.hdr-user-drop button.sign-out { color: var(--red); }
@media (max-width: 700px) { #hdr-user-name { display: none; } .hdr-user-btn { padding: 4px; border-radius: 50%; border: none; background: none; } }

/* ── Topbar user link ── */
.tb-user-link { color: var(--ochre-brt) !important; font-weight: 700 !important; }

/* ── Info modals (footer links) ── */
.info-modal-body { padding: 4px 20px 24px; }
.info-section { padding: 14px 0; border-bottom: 1px solid var(--border-lt); }
.info-section:last-child { border-bottom: none; padding-bottom: 4px; }
.info-section h4 { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.info-section p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.info-list { padding-left: 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 2; }
.info-step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 11px; font-weight: 800; margin-bottom: 6px; }

/* Info pricing table */
.info-price-table { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.info-price-row { display: flex; align-items: center; justify-content: space-between; }
.info-cond-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.info-price-pct { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Info stats */
.info-stats { display: flex; gap: 0; border: 1px solid var(--border-lt); border-radius: 10px; overflow: hidden; }
.info-stat { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid var(--border-lt); }
.info-stat:last-child { border-right: none; }
.info-stat strong { display: block; font-size: 18px; font-weight: 900; color: var(--forest); }
.info-stat span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* Advertise options */
.info-adv-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.info-adv-card { background: var(--surf); border-radius: 10px; padding: 14px; }
.info-adv-icon { font-size: 20px; margin-bottom: 6px; }
.info-adv-card strong { display: block; font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.info-adv-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Careers */
.info-job-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.info-job-card { border: 1.5px solid var(--border-lt); border-radius: 10px; padding: 14px; }
.info-job-title { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.info-job-meta { font-size: 11px; color: var(--forest); font-weight: 600; margin-bottom: 8px; }
.info-job-card p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.info-job-apply { background: var(--forest); color: #fff; border: none; border-radius: 7px; padding: 8px 16px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; }
.info-job-apply:hover { background: var(--leaf); }

/* Blog */
.info-blog-post { padding: 16px 0; border-bottom: 1px solid var(--border-lt); }
.info-blog-post:last-of-type { border-bottom: none; }
.info-blog-tag { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--forest); background: #E8F5E9; padding: 2px 7px; border-radius: 4px; margin-bottom: 6px; }
.info-blog-post h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 6px; line-height: 1.4; }
.info-blog-post p { font-size: 12.5px; color: var(--muted); line-height: 1.75; margin: 0; }

/* ── My Ads modal ── */
.em-myads-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.em-myads-empty { text-align: center; padding: 36px 0 8px; color: var(--muted); font-size: 13px; }
.em-myad-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border-lt);
}
.em-myad-row:last-child { border-bottom: none; }
.em-myad-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--surf2); }
.em-myad-img canvas { width: 56px !important; height: 56px !important; }
.em-myad-img img { width: 56px; height: 56px; object-fit: cover; display: block; }
.em-myad-info { flex: 1; min-width: 0; }
.em-myad-title { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-myad-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.em-myad-del {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--border);
  background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .13s;
}
.em-myad-del:hover { border-color: var(--red); color: var(--red); background: #FEF0EE; }
.em-myad-edit {
  padding: 3px 10px; border-radius: 6px; border: 1.5px solid var(--border);
  background: none; color: var(--muted); font-size: 11px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: .13s;
}
.em-myad-edit:hover { border-color: #1A7A42; color: #1A7A42; background: #E8F5E9; }

/* ── Boost button in My Ads ── */
.em-boost-btn {
  margin-top: 4px; padding: 3px 10px; font-size: 11px; font-weight: 700;
  color: #F59E0B; background: #FFFBEB; border: 1.5px solid #FCD34D;
  border-radius: 20px; cursor: pointer; font-family: inherit; transition: .13s;
}
.em-boost-btn:hover { background: #FEF3C7; }

/* ── Sponsor plans ── */
.em-sponsor-plans { display: flex; gap: 10px; margin-top: 4px; }
.em-sponsor-plan {
  flex: 1; border: 2px solid var(--border); border-radius: 12px;
  padding: 14px 10px; text-align: center; position: relative;
}
.em-sponsor-plan-pop { border-color: var(--forest); background: #F0FFF4; }
.em-sponsor-popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--forest); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.em-sponsor-plan-dur { font-size: 13px; font-weight: 700; color: var(--ink); }
.em-sponsor-plan-price { font-size: 22px; font-weight: 900; color: var(--forest); margin: 4px 0; }
.em-sponsor-plan-note { font-size: 10px; color: var(--muted); }

/* ── Ad view count chip ── */
.em-view-count:empty { display: none; }
.em-view-count { color: var(--muted); }

/* ── Seller profile button (inside ad detail) ── */
.em-seller-profile-btn {
  width: 100%; margin: 8px 0 0; padding: 10px 0;
  background: var(--surf2); border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--forest); cursor: pointer; font-family: inherit;
  transition: background .13s; -webkit-tap-highlight-color: transparent;
}
.em-seller-profile-btn:active { background: var(--border-lt); }

/* ── Seller profile modal ── */
.em-seller-profile-hdr {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0 16px; border-bottom: 1px solid var(--border-lt); margin-bottom: 14px;
}
.em-seller-profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; flex-shrink: 0;
}
.em-seller-profile-name { font-size: 18px; font-weight: 900; color: var(--ink); }
.em-seller-verify-box {
  background: #E8F5E9; border: 1.5px solid #A5D6A7;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.em-seller-verify-warn { background: #FFF8E1; border-color: #F9A825; }
.em-seller-verify-title { font-weight: 800; font-size: 13px; color: var(--forest); margin-bottom: 4px; }
.em-seller-verify-text { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.em-seller-stats-row {
  display: flex; gap: 0; margin-bottom: 4px;
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
}
.em-seller-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 12px 8px; gap: 2px; border-right: 1.5px solid var(--border);
}
.em-seller-stat:last-child { border-right: none; }
.em-seller-stat strong { font-size: 16px; font-weight: 900; color: var(--ink); }
.em-seller-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ── Mobile user menu items ── */
.em-menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 0; background: none; border: none;
  border-bottom: 1px solid var(--border-lt);
  font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: color .15s; -webkit-tap-highlight-color: transparent;
}
.em-menu-item:last-child { border-bottom: none; }
.em-menu-item:active { opacity: .7; }
.em-menu-item svg { flex-shrink: 0; opacity: .7; }

/* ── Category Page ── */
#cat-page {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--surf);
  display: flex;
  flex-direction: column;
}

.cat-page-hdr {
  flex-shrink: 0;
  background: var(--hdr);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 12px 0;
  z-index: 10;
}

.cat-page-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.cat-page-hdr-in {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0A3D22;
  background: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: .13s;
  flex-shrink: 0;
  font-family: inherit;
}
.cat-back-btn svg { width: 14px; height: 14px; }
.cat-back-btn:hover { background: #F6FFF9; color: var(--forest); }
#cat-page-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-page-body {
  padding: 8px 0 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .cat-page-body { grid-template-columns: 1fr; }
}

.cat-filters {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 8px;
  z-index: 2;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: thin;
}
/* Filter toggle button — only shown on mobile */
.cat-filter-toggle-btn { display: none; }
@media (max-width: 900px) {
  .cat-page-hdr-in { justify-content: space-between; }
  .cat-page-hdr { padding: 10px 0; }
  .cat-back-btn { padding: 8px 11px; font-size: 12px; }
  #cat-page-title { flex: 1; font-size: 13.5px; }
  .cat-filter-toggle-btn {
    display: flex; align-items: center; gap: 5px; margin-left: auto;
    color: rgba(255,255,255,.85); background: rgba(255,255,255,.12);
    border: none; border-radius: 6px; padding: 6px 11px;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: .13s;
  }
  .cat-filter-toggle-btn.active { background: var(--leaf); color: #fff; }
  .cat-filters { display: none; }
  .cat-filters.mob-open { display: block; position: static; max-height: none; overflow: visible; border-radius: 12px; margin-bottom: 12px; }
}

.cat-floating-back {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 70;
  display: none;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(10,61,34,.12);
  background: var(--forest);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 11px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.cat-floating-back svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .cat-floating-back { display: inline-flex; }
}

.cat-refine {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}
.cat-refine-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cat-refine-kicker {
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cat-refine-title {
  margin-top: 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.cat-refine-filter-btn {
  border: 1px solid var(--border);
  background: var(--surf2);
  color: var(--forest);
  border-radius: 8px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.cat-refine-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-refine-chips::-webkit-scrollbar { display: none; }
.cat-refine-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surf);
  color: var(--ink2);
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.cat-refine-chip span {
  color: var(--muted);
  font-weight: 900;
  margin-left: 4px;
}
.cat-refine-chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.cat-refine-chip.active span { color: rgba(255,255,255,.82); }

.cf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 12px;
  background: var(--surf2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
}
.cf-clear-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--leaf);
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
  font-family: inherit;
}
.cf-clear-link:hover { color: var(--forest); text-decoration: underline; }

.cf-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cf-section-last { border-bottom: none; }
.cf-section-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 9px;
}

.cat-price-row { display: flex; align-items: center; gap: 6px; }
.cf-dash { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.cat-filter-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surf);
  outline: none;
  font-family: inherit;
  width: 100%;
  transition: border-color .13s;
}
.cat-filter-input:focus { border-color: var(--leaf); background: var(--white); }
.cat-filter-input::placeholder { color: #aab5ae; }

.cat-check-row { display: flex; flex-direction: column; gap: 2px; }
.cat-check-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 7px;
  transition: background .12s;
}
.cat-check-row label:hover { background: var(--surf2); }
.cat-check-row input[type=checkbox] {
  accent-color: var(--forest);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.cat-filter-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--surf);
  outline: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  appearance: auto;
  transition: border-color .13s;
}
.cat-filter-select:focus { border-color: var(--leaf); }

.cat-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .cat-results { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.cat-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ── SEO H1 tagline (between header and category bar) ── */
/* Visually hidden but readable by Google and screen readers */
.seo-hero-tagline {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SEO Hero Banner ── */
.seo-hero {
  background: linear-gradient(135deg, #0A3D22 0%, #145C35 100%);
  color: #fff;
  padding: 18px 0 16px;
  text-align: center;
}
.seo-hero h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.25;
  color: #fff;
}
.seo-hero p {
  font-size: 13px;
  color: rgba(255,255,255,.80);
  margin: 0;
}
@media (max-width: 600px) {
  .seo-hero h1 { font-size: 17px; }
  .seo-hero p  { font-size: 12px; }
}

/* ── SEO Browse Section ── */
.seo-browse {
  background: var(--surf2);
  padding: 36px 0 40px;
  border-top: 1px solid var(--border-lt);
}
.seo-browse h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 8px;
}
.seo-browse-intro {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 680px;
}
.seo-browse-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .seo-browse-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .seo-browse-cols { grid-template-columns: 1fr; }
}
.seo-browse-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.seo-browse-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.seo-browse-col ul li {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.4;
}
.seo-browse-col ul li a {
  color: var(--leaf);
  text-decoration: none;
  transition: color .12s;
}
.seo-browse-col ul li a:hover { color: var(--mid); text-decoration: underline; }
.seo-why-list li {
  color: var(--ink2) !important;
  font-size: 13px !important;
}

/* ── SEO Alternative Section ── */
.seo-alt-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-lt);
}
.seo-alt-section > h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 10px;
  line-height: 1.35;
}
.seo-alt-section > p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 740px;
}
.seo-alt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .seo-alt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .seo-alt-grid { grid-template-columns: 1fr; } }
.seo-alt-card {
  background: var(--surf);
  border: 1px solid var(--border-lt);
  border-radius: 10px;
  padding: 16px 14px;
}
.seo-alt-icon { font-size: 20px; margin-bottom: 8px; }
.seo-alt-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 6px;
}
.seo-alt-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── SEO Popular Search Tags ── */
.seo-terms {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-lt);
}
.seo-terms h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-tags a {
  display: inline-block;
  padding: 5px 12px;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--leaf);
  text-decoration: none;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}
.seo-tags a:hover {
  background: var(--leaf-lt);
  border-color: var(--leaf);
  color: var(--mid);
}

/* ── Store Dashboard ── */
#store-dashboard {
  position: fixed; inset: 0; z-index: 200;
  flex-direction: column;
  background: var(--surf);
}
.store-dash-hdr {
  background: var(--forest); color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px; height: 52px; flex-shrink: 0;
}
.store-dash-back {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600; padding: 6px 0;
}
.store-dash-back svg { flex-shrink: 0; }
#store-dash-title {
  font-size: 16px; font-weight: 800; flex: 1; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store-dash-preview-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 12px; cursor: pointer; white-space: nowrap;
}
.store-dash-tabs-bar {
  display: flex; border-bottom: 2px solid var(--border-lt);
  background: var(--surf); flex-shrink: 0; overflow-x: auto;
}
.store-dash-tab {
  padding: 12px 16px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; white-space: nowrap; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.store-dash-tab.active {
  color: var(--forest); border-bottom-color: var(--forest);
}
.store-dash-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.store-dash-content {
  padding: 20px 0 60px;
  max-width: 760px;
}

/* Dashboard inner pieces */
.dash-loading { padding: 48px 0; text-align: center; color: var(--muted); font-size: 14px; }
.dash-empty   { padding: 32px 0; text-align: center; color: var(--muted); font-size: 13px; }
.dash-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dash-section-title {
  font-size: 16px; font-weight: 800; color: var(--forest); margin: 0;
}
.dash-count {
  font-size: 12px; font-weight: 700; background: var(--leaf-lt);
  color: var(--leaf); border-radius: 20px; padding: 1px 8px; margin-left: 6px;
}
.dash-add-btn {
  background: var(--forest); color: #fff; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 700; padding: 8px 16px; cursor: pointer;
}
.dash-add-btn:hover { background: var(--mid); }

/* Product list */
.dash-product-list { display: flex; flex-direction: column; gap: 8px; }
.dash-product-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surf); border: 1px solid var(--border-lt);
  border-radius: 8px; padding: 10px 12px;
}
.dash-product-thumb {
  width: 52px; height: 52px; border-radius: 6px;
  background: var(--surf3); flex-shrink: 0;
  background-size: cover; background-position: center;
}
.dash-product-info { flex: 1; min-width: 0; }
.dash-product-title {
  font-size: 13px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-product-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dash-product-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dash-btn-edit {
  font-size: 12px; font-weight: 600; padding: 5px 10px;
  border: 1px solid var(--border); border-radius: 5px; color: var(--ink2);
  background: var(--surf2); cursor: pointer;
}
.dash-btn-del {
  font-size: 12px; font-weight: 600; padding: 5px 10px;
  border: 1px solid #fca5a5; border-radius: 5px; color: #c62828;
  background: #fff5f5; cursor: pointer;
}

/* Categories */
.dash-add-cat-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 16px;
}
.dash-cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border-lt);
  border-radius: 8px; margin-bottom: 6px; background: var(--surf);
}
.dash-cat-order {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surf3); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0;
  text-align: center; line-height: 24px;
}
.dash-cat-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--ink); }

/* Settings */
.dash-settings-card {
  border: 1px solid var(--border-lt); border-radius: 10px;
  overflow: hidden;
}
.dash-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border-lt);
}
.dash-field:last-child { border-bottom: none; }
.dash-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash-value { font-size: 13px; color: var(--ink); font-weight: 600; }

/* Subscription */
.dash-sub-card {
  border: 2px solid var(--leaf); border-radius: 12px;
  padding: 24px; max-width: 380px;
}
.dash-sub-plan { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.dash-sub-price { font-size: 32px; font-weight: 900; color: var(--forest); margin-bottom: 16px; }
.dash-sub-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.dash-sub-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dash-sub-features li { font-size: 13px; color: var(--ink2); }
.dash-sub-until { font-size: 12px; color: var(--muted); }
.dash-sub-note { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* Verified badge on store cards */
.shop-vfy-text {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--leaf);
  letter-spacing: .02em;
  vertical-align: middle;
}

/* Store cart button in header */
.shop-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.shop-cart-btn:active { background: rgba(255,255,255,.28); }
.shop-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--ochre-brt);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--forest);
}

/* Store cart modal */
.store-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
}
.store-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.store-cart-sheet {
  position: relative;
  width: 100%;
  max-height: 80vh;
  background: var(--surf);
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.store-cart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-lt);
  flex-shrink: 0;
}
.store-cart-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.store-cart-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surf2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  border: none;
}
.store-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.store-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.store-cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surf3);
}
.store-cart-item-info { flex: 1; min-width: 0; }
.store-cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-cart-item-price {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.store-cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.store-cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surf2);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.store-cart-qty-num {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.store-cart-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 32px 0;
}
.store-cart-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border-lt);
  flex-shrink: 0;
}
.store-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.store-cart-total-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.store-cart-total-val {
  font-size: 17px;
  font-weight: 900;
  color: var(--forest);
}
.store-cart-checkout {
  width: 100%;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.store-cart-checkout:active { background: #1ebe5a; }
.store-cart-clear {
  width: 100%;
  margin-top: 8px;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

/* Manage Store button on own store card */
.shop-card-manage-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 7px 0;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
}
.shop-card-manage-btn:active { background: var(--mid); }

/* Store logo in shop page header */
.shop-hdr-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  padding: 6px;
}

/* Add Your Store card — restyle */
.shop-card-add {
  border: 2px dashed var(--leaf) !important;
  background: var(--leaf-lt) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
}
.shop-card-add .shop-card-add-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shop-card-add:active { opacity: .85; }
