/* ===========================================================
   AnySell.com — stylesheet
   Palette: coral CTA · deep ink · teal accent · warm off-white
   =========================================================== */

:root {
  /* Action / energy */
  --coral:      #F57C00;   /* Accent Orange — CTAs, prices, boost, highlights */
  --coral-dark: #E06D00;
  /* Interface / trust */
  --teal:       #1E88E5;   /* Primary Blue — hero, links, selected states */
  --teal-soft:  #E3F0FC;
  --blue:       #1E88E5;
  --blue-dark:  #1565C0;
  /* Success */
  --green:      #43A047;
  --green-soft: #E6F4E7;
  --gold:       #F5A623;
  --ink:        #212121;   /* Text Dark Gray */
  --ink-soft:   #3D3D3D;
  --bg:         #F5F5F5;   /* Neutral Gray background */
  --surface:    #FFFFFF;
  --line:       #E4E4E4;
  --muted:      #6E6E6E;
  --muted-2:    #9E9E9E;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(17,21,31,.04), 0 8px 24px rgba(17,21,31,.06);
  --shadow-lg:  0 12px 40px rgba(17,21,31,.16);
  --maxw:       1200px;

  --font-disp:  "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:  "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; }
.ic { width: 20px; height: 20px; flex: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 700; font-size: .95rem; padding: 11px 18px;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(245,124,0,.32); }
.btn--primary:hover { background: var(--coral-dark); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--search { background: var(--blue); color: #fff; border-radius: var(--radius-sm); }
.btn--search:hover { background: var(--blue-dark); }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }

.link { color: var(--teal); font-weight: 700; font-size: .92rem; }
.link:hover { text-decoration: underline; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 38px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.topbar__inner::-webkit-scrollbar { display: none; }
.topbar__msg { white-space: nowrap; }
.topbar__msg strong { color: #FFC9BB; }
.topbar__links { display: flex; align-items: center; gap: 12px; flex: none; }
.topbar__links a:hover { color: #FFC9BB; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: #4a5163; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue), #5EA9F0);
  color: #fff; font-family: var(--font-disp); font-weight: 800; font-size: 1.4rem;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(30,136,229,.35);
}
.logo__text { font-family: var(--font-disp); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.logo__text span { color: var(--coral); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text span { color: var(--coral); }

/* ---------- Header ---------- */
.header { background: var(--surface); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.search { flex: 1; display: flex; align-items: stretch; gap: 8px; max-width: 720px; }
.search__field {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 14px; color: var(--muted); transition: border-color .15s;
}
.search__field:focus-within { border-color: var(--coral); }
.search__field input { flex: 1; border: none; background: none; outline: none; color: var(--ink); padding: 11px 0; }
.search__select { display: flex; }
.search__select select {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--radius-sm);
  padding: 0 30px 0 12px; cursor: pointer; color: var(--ink-soft); font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717683' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}
.search__select select:focus { outline: none; border-color: var(--coral); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.iconbtn {
  position: relative; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft);
  display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s;
}
.iconbtn:hover { border-color: var(--ink); color: var(--ink); }
.iconbtn__badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800;
  border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--surface);
}
.iconbtn--menu { display: none; }

.search--mobile { display: none; padding: 10px 20px 14px; max-width: none; }

/* ---------- Category nav strip ---------- */
.catnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.catnav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 8px 20px; scrollbar-width: none; }
.catnav__inner::-webkit-scrollbar { display: none; }
.catnav__item {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft); white-space: nowrap; cursor: pointer;
  transition: background .15s, color .15s;
}
.catnav__item:hover { background: var(--bg); }
.catnav__item.is-active { background: var(--blue); color: #fff; }
.catnav__ic { display: inline-flex; }
.catnav__ic .catsvg { width: 17px; height: 17px; }
.chip--cat { display: inline-flex; align-items: center; gap: 6px; }
.chip--cat .catsvg { width: 16px; height: 16px; }

/* media fallback icon (no photo) */
.media__ic { color: rgba(255,255,255,.95); display: grid; place-items: center; }
.media__ic .catsvg { width: 44px; height: 44px; stroke-width: 1.5; }
.media__ic--lg .catsvg { width: 72px; height: 72px; }
.detail__avatar .media__ic .catsvg { width: 22px; height: 22px; }
.detail__avatar .media__ic { color: rgba(255,255,255,.95); width: 100%; height: 100%; }
.catnav__item span { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1565C0 0%, #1E88E5 55%, #42A5F5 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 82% -20%, rgba(255,255,255,.28), transparent 46%), radial-gradient(circle at 5% 120%, rgba(0,0,0,.12), transparent 42%); pointer-events: none; }
.hero__inner { position: relative; padding: 50px 20px 52px; max-width: 820px; margin: 0 auto; text-align: left; }
.hero__eyebrow { display: inline-block; font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.2); padding: 5px 13px; border-radius: 999px; margin-bottom: 16px; backdrop-filter: blur(4px); }
.hero__copy h1 { font-family: var(--font-disp); font-size: clamp(2.2rem, 4.8vw, 3.3rem); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.12); }
.hero__copy h1 span { color: #FFE7B8; }
.hero__copy p { color: rgba(255,255,255,.95); font-size: 1.08rem; max-width: 540px; margin: 14px 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn--primary { background: #fff; color: var(--coral-dark); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hero .btn--primary:hover { background: #FFF1EC; }
.hero .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 32px; }
.hero__stats .stat b { font-family: var(--font-disp); font-size: 1.55rem; font-weight: 800; display: block; line-height: 1; color: #fff; }
.hero__stats .stat small { color: rgba(255,255,255,.82); font-size: .85rem; }

/* ---------- Section ---------- */
.section { padding: 44px 20px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.section__head h2 { font-family: var(--font-disp); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Shop layout: category rail + listings ---------- */
.catsvg { width: 24px; height: 24px; display: block; }
.shop { display: grid; grid-template-columns: 244px 1fr; gap: 28px; align-items: start; padding: 30px 20px 50px; }
.shop__side { position: sticky; top: 86px; }
.shop__sidetitle { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.catlist { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.catrow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: none; background: none; cursor: pointer; border-radius: 11px; text-align: left; transition: background .12s; }
.catrow:hover { background: var(--bg); }
.catrow.is-active { background: var(--teal-soft); }
.catrow.is-active .catrow__name { color: var(--blue-dark); font-weight: 700; }
.catrow__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); flex: none; }
.catrow__ic .catsvg { width: 19px; height: 19px; stroke-width: 1.7; }
.catrow__ic--all { background: var(--ink); color: #fff; }
.catrow__ic--all .catsvg { stroke: #fff; }
.catrow__name { flex: 1; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.catrow__count { font-size: .76rem; color: var(--muted-2); font-weight: 600; }
.shop__main { min-width: 0; }
.shop__main .section__head { margin-bottom: 16px; }

/* ---------- Sort + chips ---------- */
.sortwrap { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sortwrap select {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm);
  padding: 8px 30px 8px 12px; cursor: pointer; font-weight: 600; color: var(--ink-soft);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23717683' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip {
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Listings grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  animation: rise .4s ease both;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card__media { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; font-size: 3.4rem; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .68rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: .02em;
  text-transform: uppercase; backdrop-filter: blur(4px);
}
.badge--premium { background: var(--gold); color: #4a2e00; }
.badge--verified { background: rgba(255,255,255,.95); color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.badge--boosted { background: var(--coral); color: #fff; }
.card__fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-soft); transition: transform .12s, color .15s; backdrop-filter: blur(4px);
}
.card__fav:hover { transform: scale(1.12); }
.card__fav.is-fav { color: var(--coral); }
.card__fav svg { width: 18px; height: 18px; }

.card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__price { font-family: var(--font-disp); font-weight: 800; font-size: 1.18rem; color: var(--coral-dark); }
.card__title { font-weight: 600; font-size: .92rem; line-height: 1.3; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); padding-top: 6px; }
.card__loc { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__cond { background: var(--bg); padding: 2px 7px; border-radius: 5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Empty / loadmore ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty span { font-size: 3rem; display: block; margin-bottom: 10px; }
.empty p { margin-bottom: 16px; font-size: 1.05rem; }
.loadmore-wrap { text-align: center; margin-top: 32px; }

/* ---------- Trust band ---------- */
.trust { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 26px 20px; }
.trust__item { display: flex; gap: 11px; align-items: center; }
.trust__item span { font-size: 1.3rem; }
.trust__item b { font-size: .92rem; }
.trust__item p { color: var(--muted); font-size: .8rem; margin-top: 1px; }

/* ---------- Footer ---------- */
.footer { background: #0B0E16; color: #cfd3dc; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 40px 20px 32px; }
.footer__brand p { color: #8b919f; font-size: .9rem; margin: 14px 0 18px; max-width: 280px; }
.footer__apps { display: flex; gap: 10px; flex-wrap: wrap; }
.store { border: 1px solid #2a2f3c; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: .85rem; transition: border-color .15s; }
.store:hover { border-color: var(--coral); }
.footer__col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 14px; }
.footer__col a { display: block; color: #8b919f; font-size: .9rem; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #1c212d; padding: 18px 0; font-size: .85rem; color: #6f7686; text-align: center; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,14,22,.55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal__panel {
  position: relative; background: var(--surface); border-radius: 20px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg); cursor: pointer; font-size: 1rem; color: var(--muted); z-index: 2;
}
.modal__close:hover { background: var(--line); }
.modal__body { padding: 28px; }
.modal__body h3 { font-family: var(--font-disp); font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.modal__body .sub { color: var(--muted); margin-bottom: 22px; }

/* form */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; background: var(--bg); outline: none; transition: border-color .15s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .btn--primary { width: 100%; margin-top: 6px; padding: 13px; }

/* detail modal */
.detail__media { aspect-ratio: 16/10; border-radius: 14px; display: grid; place-items: center; font-size: 5rem; margin-bottom: 18px; }

/* Wide ad view on desktop: large panel + two columns. Phones keep the bottom-sheet. */
@media (min-width: 781px) {
  .modal--wide .modal__panel { max-width: 1040px; width: calc(100vw - 80px); max-height: calc(100vh - 60px); }
  .modal--wide .detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: start; }
  .modal--wide .detail__left { position: sticky; top: 0; }
  .modal--wide .detail__media { aspect-ratio: 4/3; margin-bottom: 12px; }
  .modal--wide .detail__price { font-size: 2.3rem; }
  .modal--wide .detail__title { font-size: 1.35rem; }
}
.detail__price { font-family: var(--font-disp); font-size: 2rem; font-weight: 800; color: var(--coral-dark); }
.detail__title { font-size: 1.15rem; font-weight: 700; margin: 2px 0 12px; }
.detail__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.detail__desc { color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; }
.detail__seller { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border-radius: 14px; margin-bottom: 18px; }
.detail__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-disp); }
.detail__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Auth + account ---------- */
.authtabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.authtab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .15s; }
.authtab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.authmsg { display: none; color: var(--coral-dark); background: #FFEDE8; border-radius: 9px; padding: 9px 12px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.btn--account { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.btn--account:hover { background: #D2EFEA; border-color: transparent; }
.btn--google { width: 100%; background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); font-weight: 600; }
.btn--google:hover { border-color: var(--ink); background: var(--surface); }
.authdiv { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted-2); font-size: .82rem; }
.authdiv::before, .authdiv::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct__item { display: flex; align-items: center; gap: 9px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; transition: border-color .15s, transform .12s; }
.acct__item:hover { border-color: var(--ink); transform: translateY(-2px); }
.acct__item span { font-size: 1.25rem; }

/* footer info pages */
.page { color: var(--ink-soft); }
.page .page-lead { font-size: 1.02rem; color: var(--ink); margin-bottom: 14px; }
.page p { font-size: .92rem; line-height: 1.65; margin-bottom: 12px; }
.page .page-h { font-family: var(--font-disp); font-size: 1.02rem; font-weight: 800; color: var(--ink); margin: 18px 0 6px; }
.page .page-link { color: var(--coral); font-weight: 700; }
.page .page-link:hover { text-decoration: underline; }
.page .page-note { font-size: .8rem; color: var(--muted-2); background: var(--bg); border-radius: 8px; padding: 9px 12px; margin-top: 14px; }
.btn--danger { color: var(--coral-dark); border-color: #F6D2C8; }
.btn--danger:hover { background: #FFEDE8; border-color: var(--coral); }

/* ---------- Uploaded images ---------- */
.card__media .media__img,
.detail__media .media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__media { position: relative; overflow: hidden; }
.detail__avatar { overflow: hidden; }
.detail__avatar .media__img { width: 100%; height: 100%; object-fit: cover; }

.upload {
  position: relative; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); min-height: 120px; display: grid; place-items: center;
  cursor: pointer; overflow: hidden; transition: border-color .15s;
}
.upload:hover { border-color: var(--coral); }

/* multi-image thumbnails */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__cover { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(11,14,22,.72); color: #fff; font-size: .68rem; font-weight: 700; text-align: center; padding: 3px; }
.thumb__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(11,14,22,.7); color: #fff; cursor: pointer; font-size: .7rem; display: grid; place-items: center; }
.thumb__x:hover { background: var(--coral); }
.thumb--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--bg); border: 1.5px dashed var(--line); cursor: pointer; color: var(--muted); }
.thumb--add span { font-size: 1.5rem; line-height: 1; }
.thumb--add small { font-size: .68rem; }
.thumb--add:hover { border-color: var(--coral); color: var(--coral); }

/* detail gallery strip */
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: -8px 0 16px; padding-bottom: 4px; }
.gallery__thumb { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; flex: none; opacity: .65; transition: opacity .15s, border-color .15s; }
.gallery__thumb.is-active, .gallery__thumb:hover { opacity: 1; border-color: var(--coral); }

/* boosted card highlight + image count */
.card--boosted { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset, var(--shadow); }
.card__count { position: absolute; bottom: 10px; left: 10px; background: rgba(11,14,22,.66); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 7px; backdrop-filter: blur(4px); }

/* boost plans + payment */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan { position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; align-items: center; transition: all .15s; }
.plan:hover { border-color: var(--ink); }
.plan.is-active { border-color: var(--coral); background: #FFF0E8; }
.plan b { font-size: .95rem; }
.plan__price { font-family: var(--font-disp); font-weight: 800; color: var(--coral); }
.plan__tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: .62rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.pay:hover { border-color: var(--ink); }
.pay.is-active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }

.paystack-note { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-soft); border-radius: 12px; padding: 12px 14px; margin: 16px 0; font-size: .85rem; color: var(--ink-soft); }
.paystack-note span { font-size: 1.1rem; }
.confirm-box { background: var(--bg); border-radius: 12px; padding: 6px 16px; }
.confirm-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row b { color: var(--muted); font-weight: 600; }

/* ---------- Views · Share · Reviews · Report ---------- */
.card__views { background: var(--bg); padding: 2px 7px; border-radius: 5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.share__label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.share__btn { border: 1.5px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 12px; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--ink-soft); text-decoration: none; transition: all .15s; }
.share__btn:hover { border-color: var(--ink); }
.share__btn--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.share__btn--fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share__btn--x:hover { background: #111; border-color: #111; color: #fff; }
.share__btn--copy:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.reviewlink { margin-top: 6px; background: none; border: none; padding: 0; cursor: pointer; color: var(--blue); font-weight: 700; font-size: .85rem; display: inline-flex; align-items: center; gap: 5px; }
.reviewlink:hover { text-decoration: underline; }
.stars { display: inline-flex; gap: 1px; }
.stars .star { color: #D8D8D8; font-size: 1rem; line-height: 1; }
.stars .star.on { color: var(--gold); }
.reviews__summary { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 18px; }
.reviewform { background: var(--bg); border-radius: 14px; padding: 16px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.reviewform .stars { gap: 4px; }
.reviewform .star { background: none; border: none; cursor: pointer; font-size: 1.7rem; color: #D8D8D8; padding: 0; line-height: 1; }
.reviewform .star.on { color: var(--gold); }
.reviewform textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--surface); outline: none; min-height: 70px; resize: vertical; }
.reviewform textarea:focus { border-color: var(--blue); }
.reviews__list { display: flex; flex-direction: column; gap: 14px; }
.review { border-top: 1px solid var(--line); padding-top: 14px; }
.review__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.report-link { display: block; width: 100%; text-align: center; margin-top: 14px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: .85rem; font-weight: 600; }
.report-link:hover { color: var(--coral-dark); }

.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1EBE5A; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.spec { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.spec__k { color: var(--muted); }
.spec__v { font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: .92rem; z-index: 200; box-shadow: var(--shadow-lg);
  animation: toastin .3s ease;
}
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ===========================================================
   Responsive
   =========================================================== */
@media (min-width: 901px) {
  .catnav { display: none; }            /* rail replaces the top strip on desktop */
}
@media (max-width: 1024px) {
  .shop { grid-template-columns: 210px 1fr; gap: 20px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop__side { display: none; }        /* top category strip is used on mobile */
}

@media (max-width: 860px) {
  .header__inner .search { display: none; }
  .search--mobile { display: flex; }
  .header__actions .btn--ghost { display: none; }
  .iconbtn--menu { display: grid; }
  .trust__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop { padding: 24px 16px 40px; }
  .container { padding: 0 16px; }
  .section__head h2 { font-size: 1.35rem; }
  .hero__inner { padding: 38px 16px 42px; }
  .hero__stats { gap: 22px; }
  .hero__stats .stat b { font-size: 1.4rem; }
  .topbar { font-size: .74rem; }
  /* minimal trust strip: 2-up, icon + title only */
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px; }
  .trust__item span { font-size: 1.1rem; }
  .trust__item b { font-size: .82rem; }
  .trust__item p { display: none; }
  /* compact footer */
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 30px 16px 24px; }
  .footer__brand p { font-size: .84rem; margin: 10px 0 12px; }
  .footer__col h4 { font-size: .78rem; margin-bottom: 10px; }
  .footer__col a { font-size: .85rem; padding: 4px 0; }
  .store { padding: 8px 11px; font-size: .8rem; }
  .footer__bottom { padding: 14px 0; font-size: .78rem; }
  .field-row { grid-template-columns: 1fr; }
  .detail__actions { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end center; }
  .modal__panel { width: 100%; max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .modal__body { padding: 22px 20px 26px; }
  .modal__body h3 { font-size: 1.32rem; }
  .plans { gap: 8px; }
  .plan { padding: 13px 6px; }
  .plan b { font-size: .85rem; }
  .acct__grid { grid-template-columns: 1fr; }
  .card__title { font-size: .88rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 7px; }
  .logo__text { font-size: 1.22rem; }
  .logo__mark { width: 34px; height: 34px; font-size: 1.2rem; }
  .iconbtn { width: 40px; height: 40px; }
  .grid { gap: 10px; }
}

@media (max-width: 380px) {
  .header__actions .btn--primary span { display: none; }
}