/*
 * Shonza stylesheet.
 *
 * One file for the whole site. Built as a classifieds marketplace: dense
 * two-column card grid, horizontal rails, a search-led header, and a fixed tab
 * bar on small screens.
 *
 * Breakpoints:
 *   1024px and up   — four card columns
 *   640px  to 1023px — three card columns
 *   below 640px     — two card columns, tab bar, tighter type
 */

:root {
    /* Brand */
    --blue: #1a5fd0;
    --blue-dark: #14509a;
    --blue-soft: #e8f0fd;
    --green: #0f9d58;
    --green-soft: #e7f6ee;
    --red: #d92d20;
    --amber: #f79009;

    /* Neutrals */
    --ink: #101828;
    --ink-2: #344054;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e4e7ec;
    --line-2: #f2f4f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --bg: #ffffff;

    /* Shape */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-md: 0 4px 10px -2px rgba(16, 24, 40, .1);
    --shadow-lg: 0 12px 28px -6px rgba(16, 24, 40, .16);

    --shell: 1240px;
    --topbar-h: 64px;
    --strip-h: 44px;
    --tabbar-h: 60px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Room for the fixed tab bar on phones. */
    padding-bottom: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.02em; }
button { font-family: inherit; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: .7rem 1.1rem;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ================================================== Top bar =============== */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.topbar {
    max-width: var(--shell);
    margin: 0 auto;
    height: var(--topbar-h);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Search sits in the middle and takes the slack. */
.topbar-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 40px;
    padding: 0 .9rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.topbar-search:focus-within { border-color: var(--blue); background: #fff; }

.topbar-search .icon-search {
    width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto;
}

.topbar-search input {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink);
}
.topbar-search input:focus { outline: none; }
.topbar-search input::placeholder { color: var(--muted-2); }

.topbar-actions { display: flex; align-items: center; gap: .25rem; margin-left: auto; flex: 0 0 auto; }

.icon-btn {
    position: relative;
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border: 0; border-radius: 50%;
    background: none; color: var(--ink-2);
    cursor: pointer; text-decoration: none;
    font-size: 20px;
}
.icon-btn:hover { background: var(--surface-2); }

/* The red dot on the bell. */
.icon-dot {
    position: absolute; top: 8px; right: 9px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red);
    border: 1.5px solid #fff;
}

.account-menu { position: relative; }

.account-toggle {
    display: grid; place-items: center;
    width: 38px; height: 38px; padding: 0;
    background: none; border: 0; border-radius: 50%; cursor: pointer;
}

.account-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; background: var(--blue-soft);
}

.account-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + .5rem);
    min-width: 210px; padding: .4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 50;
}
.account-menu.is-open .account-dropdown { display: block; }
.account-dropdown a {
    display: block; padding: .55rem .7rem; font-size: .9rem;
    text-decoration: none; color: var(--ink-2); border-radius: var(--radius-sm);
}
.account-dropdown a:hover { background: var(--surface-2); color: var(--ink); }
.account-name {
    display: block; padding: .5rem .7rem; margin-bottom: .3rem;
    font-size: .78rem; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--line-2);
}

/* ============================================ Category strip ============== */
/* Plain text labels on white, one scrollable row. No pills. */

.category-strip { border-top: 1px solid var(--line-2); background: var(--surface); }

.category-strip-inner {
    max-width: var(--shell);
    margin: 0 auto;
    height: var(--strip-h);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 20px), transparent 100%);
}
.category-strip-inner::-webkit-scrollbar { display: none; }

.category-link {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .875rem;
    color: var(--muted);
    text-decoration: none;
    padding: .35rem 0;
    border-bottom: 2px solid transparent;
}
.category-link:hover { color: var(--ink); }
.category-link.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

/* ================================================== Layout ================ */

.site-main {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
}

.section { margin-bottom: 2rem; }
.section:last-child { margin-bottom: 0; }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin-bottom: .9rem;
}
.section-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.section-more { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
.section-count { font-size: .85rem; color: var(--muted); }

.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 700; margin: 0; }
.page-sub { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.link-button { font-size: .9rem; color: var(--blue); text-decoration: none; font-weight: 600; }

.empty-state {
    color: var(--muted); padding: 2.5rem 1rem; text-align: center;
    background: var(--surface-2); border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state a { color: var(--blue); }

.flash-list { margin-bottom: 1rem; }
.flash {
    background: #fffaeb; border: 1px solid #fedf89; color: #b54708;
    padding: .7rem 1rem; border-radius: var(--radius);
    margin: 0 0 .5rem; font-size: .9rem;
}
.notice {
    background: #f0f9ff; border: 1px solid #b9e6fe; color: #026aa2;
    padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem;
}

/* ==================================================== Hero ================ */

.hero {
    position: relative;
    overflow: hidden;
    margin: 0 -1rem 1.75rem;
    padding: 2.5rem 1rem 1.5rem;
    /* A photograph under a dark wash, so the type stays readable whatever
       image is configured. Override --hero-image to use a real photo. */
    background-color: #24303f;
    background-image: var(--hero-image, linear-gradient(135deg, #2b3a4d 0%, #1e293b 45%, #16202e 100%));
    background-size: cover;
    background-position: center;
    /* A dark wash over any photo, so the type stays readable whatever image
       is configured. */
    position: relative;
}

.hero-inner { max-width: 560px; margin: 0 auto; text-align: center; color: #fff; }

.hero-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin: 0 0 .35rem; }
.hero-sub { font-size: clamp(.9rem, 1.6vw, 1.05rem); margin: 0 0 1.5rem; color: rgba(255, 255, 255, .88); }

/* The white search card. */
.hero-search {
    display: grid; gap: .6rem;
    background: #fff; padding: .7rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.hero-field {
    display: flex; align-items: center; gap: .7rem;
    height: 52px; padding: 0 .9rem;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--muted-2);
}
.hero-field:focus-within { border-color: var(--blue); background: #fff; }

.hero-field input {
    flex: 1 1 auto; min-width: 0;
    border: 0; background: none; font: inherit; font-size: .98rem; color: var(--ink);
}
.hero-field input:focus { outline: none; }
.hero-field input::placeholder { color: var(--muted-2); }

.hero-filter {
    display: grid; place-items: center;
    width: 38px; height: 38px; margin-left: -4px;
    border: 0; border-right: 1px solid var(--line);
    background: none; color: var(--ink-2); cursor: pointer; font-size: 19px;
}

.hero-field--button { width: 100%; cursor: pointer; text-align: left; font: inherit; }
.hero-loc { width: 20px; height: 20px; color: var(--blue); flex: 0 0 auto; }
.hero-loc-text { flex: 1 1 auto; font-size: .98rem; }
.hero-chev { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }

.hero-submit {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    height: 52px; width: 100%;
    background: var(--blue); color: #fff;
    border: 0; border-radius: var(--radius-lg);
    font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: background .15s;
}
.hero-submit:hover { background: var(--blue-dark); }
.hero-submit svg { width: 20px; height: 20px; }

.hero-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.25rem; }
.hero-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .45); }
.hero-dot.is-active { width: 26px; background: #fff; }

/* ==================================================== Cards =============== */

.grid {
    display: grid; gap: .85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #d0d5dd; }

.card-media {
    position: relative; display: block;
    aspect-ratio: 1 / 1;
    background: var(--surface-2);
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
img.is-placeholder { object-fit: contain; padding: 14%; }

.card-badges { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; }

.badge {
    display: inline-block; padding: .22rem .5rem;
    border-radius: var(--radius-sm);
    font-size: .72rem; font-weight: 600; color: #fff;
    background: rgba(16, 24, 40, .72);
    backdrop-filter: blur(4px);
}
.badge-featured { background: rgba(16, 24, 40, .72); }
.badge-offer    { background: var(--red); }
.badge-sold     { background: var(--ink); }
.badge-lg       { font-size: .8rem; padding: .3rem .7rem; margin-bottom: .6rem; display: inline-block; }

/* Heart, top right, white circle. */
.card-fav {
    position: absolute; top: .5rem; right: .5rem;
    display: grid; place-items: center;
    width: 32px; height: 32px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--muted);
    cursor: pointer; font-size: 18px;
    box-shadow: var(--shadow-xs);
    transition: color .15s, transform .12s;
}
.card-fav:hover { transform: scale(1.08); }
.card-fav.is-saved { color: var(--red); }
.card-fav.is-saved svg { fill: currentColor; }

.card-fav--static {
    position: static; width: auto; height: auto;
    display: inline-flex; gap: .45rem; align-items: center;
    padding: .7rem 1rem; border-radius: var(--radius-pill);
    border: 1px solid var(--line); background: var(--surface);
    font-size: .9rem; font-weight: 600; box-shadow: none;
}
.card-fav--static.is-saved { border-color: #fecdca; background: #fef3f2; }
.card-fav--static svg { width: 18px; height: 18px; }

.card-body { padding: .65rem .75rem .8rem; display: flex; flex-direction: column; gap: .2rem; flex: 1 1 auto; }

.card-price { margin: 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-now { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: .82rem; color: var(--muted); text-decoration: line-through; font-weight: 400; }

.card-title {
    font-size: .88rem; font-weight: 400; color: var(--muted); margin: 0;
}
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--ink); }

.card-meta {
    margin: .35rem 0 0; padding-top: .45rem;
    border-top: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; font-size: .76rem; color: var(--muted-2);
}
.card-loc { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.card-loc svg { width: 13px; height: 13px; flex: 0 0 auto; }
.card-age { flex: 0 0 auto; }

.card--sold { opacity: .7; }
.card--sold .card-media img { filter: grayscale(.6); }

/* ======================================================= Rail ============= */
/* A single horizontal row of cards that scrolls sideways. */

.rail {
    display: flex; gap: .85rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Let the cards bleed to the screen edge so the row reads as scrollable. */
    margin: 0 -1rem;
    padding: 0 1rem .35rem;
}
.rail::-webkit-scrollbar { display: none; }

.rail .card {
    flex: 0 0 auto;
    width: 168px;
    scroll-snap-align: start;
}
@media (min-width: 640px)  { .rail .card { width: 210px; } }
@media (min-width: 1024px) { .rail .card { width: 240px; } }

/* ================================================= Load more ============= */

.load-more {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; max-width: 480px;
    margin: 1.5rem auto 0;
    padding: .85rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.load-more:hover { border-color: var(--ink); background: var(--surface-2); }
.load-more[disabled] { opacity: .55; cursor: default; }
.load-more svg { width: 18px; height: 18px; }
.load-more.is-busy svg { animation: spin .8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================== Product page ============= */

.crumbs { display: flex; gap: .45rem; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.product-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; } }

.product-media {
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; background: var(--surface-2);
}
.product-media img {
    width: 100%;
    /* Needed so the width/height attributes do not fix the box at its
       intrinsic size; aspect-ratio then gives the square. */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-title { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; margin: 0 0 .4rem; }
.product-price { margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .5rem; }
.product-price .price-now { font-size: 1.8rem; }

.product-meta {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin: 0 0 1rem; font-size: .85rem; color: var(--muted);
}
.product-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.product-meta svg { width: 15px; height: 15px; }

.product-desc { color: var(--ink-2); line-height: 1.65; margin: 0 0 1.25rem; }

.seller {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1rem; margin-bottom: 1.25rem;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius);
}
.seller-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); }
.seller-name { margin: 0; font-weight: 600; font-size: .92rem; }
.seller-since { margin: 0; font-size: .78rem; color: var(--muted); }

.product-actions { display: grid; gap: .6rem; }
.product-actions form { margin: 0; }
.action-note {
    margin: 0; padding: .8rem 1rem; font-size: .9rem; color: var(--muted);
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}

/* =================================================== Buttons ============== */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem 1.1rem;
    border: 1px solid transparent; border-radius: var(--radius-pill);
    font: inherit; font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none; text-align: center;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface-2); }
.btn-soft { background: var(--blue-soft); color: var(--blue-dark); }
.btn-soft:hover { background: #d8e6fb; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b42318; }
.btn-danger-ghost { background: var(--surface); border-color: #fecdca; color: var(--red); }
.btn-danger-ghost:hover { background: #fef3f2; }
.btn-sm { padding: .4rem .8rem; font-size: .84rem; }
.btn-block { width: 100%; }

/* ==================================================== Tables ============== */

.table-scroll {
    overflow-x: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: .7rem .85rem; border-bottom: 1px solid var(--line-2);
    text-align: left; font-size: .88rem; white-space: nowrap;
}
.data-table thead th {
    background: var(--surface-2); font-weight: 600; color: var(--ink-2);
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-2); }
.badge-active { background: var(--green-soft); color: var(--green); }
.data-table tr.is-s td { color: var(--muted); }
.listing-sold-at { font-size: .78rem; color: var(--muted); }
.row-actions { display: flex; gap: .35rem; }
.row-actions form { display: flex; gap: .35rem; margin: 0; }

.cart-summary {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin-top: 1rem; padding: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.cart-total { font-size: 1.05rem; margin: 0 auto 0 0; }

/* ==================================================== Forms =============== */

.auth-card, .form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-xl); padding: 1.5rem;
    max-width: 520px; margin: 1.5rem auto; box-shadow: var(--shadow-sm);
}
.form-card--wide { max-width: 680px; }

.stacked-form { display: flex; flex-direction: column; gap: .3rem; }
.stacked-form label { font-weight: 600; font-size: .86rem; margin-top: .6rem; color: var(--ink-2); }
.stacked-form input, .stacked-form select, .stacked-form textarea {
    padding: .6rem .8rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; font-size: .93rem;
    width: 100%; background: var(--surface); color: var(--ink);
}
.stacked-form input:focus, .stacked-form select:focus, .stacked-form textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.stacked-form small { color: var(--muted); font-size: .8rem; }
.stacked-form button { margin-top: 1.1rem; }
.stacked-form h2 { margin: 1.4rem 0 0; font-size: 1rem; }
.stacked-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1.1rem; padding: 1rem; }
.stacked-form legend { font-weight: 600; font-size: .86rem; padding: 0 .4rem; }
.field-row { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.auth-alt { text-align: center; margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.auth-alt a { color: var(--blue); font-weight: 600; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; background: var(--blue-soft); }

.checkout-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-form, .order-summary, .confirmation {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.order-summary ul, .summary-items { list-style: none; padding: 0; margin: 0 0 1rem; }
.order-summary li, .summary-items li {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .45rem 0; border-bottom: 1px solid var(--line-2); font-size: .88rem;
}
.summary-list { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; font-size: .9rem; }
.summary-list dt { font-weight: 600; color: var(--muted); }
.summary-list dd { margin: 0; }

.stat-row { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 1.75rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-value { display: block; font-size: 1.7rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: .82rem; }

.faq-list details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: .6rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; }

.thread-list { list-style: none; padding: 0; display: grid; gap: .7rem; }
.thread-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.thread-meta { margin: 0 0 .3rem; font-size: .85rem; color: var(--muted); }
.thread-body { margin: 0; font-size: .92rem; }
.thread-date { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; }

.dialog {
    border: 0; border-radius: var(--radius-xl); padding: 1.5rem;
    width: min(520px, 92vw); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(16, 24, 40, .5); }
.dialog-close-form { display: flex; justify-content: flex-end; }
.dialog-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; color: var(--muted); }
.message-thread { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.message { padding: .55rem .8rem; border-radius: var(--radius); max-width: 80%; font-size: .9rem; word-break: break-word; }
.message-mine { background: var(--blue-soft); align-self: flex-end; }
.message-theirs { background: var(--surface-2); align-self: flex-start; border: 1px solid var(--line); }
.message-form { display: flex; flex-direction: column; gap: .6rem; }
.message-form textarea {
    padding: .6rem .75rem; border: 1px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; min-height: 84px; resize: vertical;
}

/* =================================================== Footer =============== */
/* Deliberately minimal: two columns of links, a rule, then the mark. */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 2rem 1rem 1.5rem;
    background: var(--surface);
}

.footer-links {
    max-width: var(--shell); margin: 0 auto 1.5rem;
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr 1fr;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.footer-links a:hover { color: var(--blue); }

.footer-base {
    max-width: var(--shell); margin: 0 auto;
    padding-top: 1.25rem; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }
.footer-copy { color: var(--muted); font-size: .875rem; }

/* =================================================== Tab bar ============== */
/* Fixed to the bottom of a phone. Hidden on desktop, where the top bar serves. */

.tabbar {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}

.tab {
    flex: 1 1 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .15rem;
    text-decoration: none; color: var(--muted);
    font-size: .68rem; font-weight: 500;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-active { color: var(--blue); }
.tab.is-active svg { stroke-width: 2.1; }

.tab--sell { color: var(--ink-2); }
.tab-sell-icon {
    display: grid; place-items: center;
    width: 26px; height: 26px; border-radius: 7px;
    border: 1.6px solid var(--muted); color: var(--muted);
}
.tab--sell .tab-sell-icon svg { width: 16px; height: 16px; }

/* ================================================ Responsive ============== */

@media (max-width: 1023px) {
    .order-summary { position: static; }
}

@media (max-width: 639px) {
    :root { --topbar-h: 56px; --strip-h: 40px; }

    /* Room for the fixed tab bar. */
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }

    .tabbar { display: flex; }

    .topbar { padding: 0 .75rem; gap: .5rem; }
    .logo { font-size: 1.25rem; }
    .topbar-search { height: 38px; max-width: none; }
    .topbar-actions { gap: 0; }
    .icon-btn { width: 34px; height: 34px; font-size: 19px; }
    .account-toggle { width: 34px; height: 34px; }

    .site-main { padding: 1rem .75rem 1.5rem; }
    .category-strip-inner { padding: 0 .75rem; gap: 1.15rem; }

    .hero { margin: 0 -.75rem 1.5rem; padding: 1.75rem .75rem 1.1rem; }
    .hero-search { padding: .6rem; border-radius: var(--radius-lg); }
    .hero-field { height: 46px; }
    .hero-submit { height: 46px; font-size: .95rem; }

    .section-title { font-size: 1.15rem; }
    .grid { gap: .7rem; }
    .card-body { padding: .5rem .6rem .65rem; }
    .price-now { font-size: 1.05rem; }
    .card-title { font-size: .8rem; }
    .card-meta { font-size: .7rem; }
    .card-fav { width: 30px; height: 30px; font-size: 17px; }
    .badge { font-size: .68rem; }

    .rail { gap: .7rem; margin: 0 -.75rem; padding: 0 .75rem .35rem; }
    .rail .card { width: 152px; }

    .product-price .price-now { font-size: 1.5rem; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
    .footer-links a { font-size: .88rem; }
    .footer-base { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================================================== Toasts ============== */

.toast-host {
    position: fixed; left: 50%; top: calc(var(--topbar-h, 56px) + 10px);
    transform: translateX(-50%);
    z-index: 200; pointer-events: none; display: grid; gap: .4rem; width: min(360px, calc(100vw - 2rem));
}

.toast {
    background: var(--ink); color: #fff;
    padding: .7rem 1rem; border-radius: var(--radius);
    font-size: .875rem; box-shadow: var(--shadow-lg);
    animation: toast-in .2s ease; pointer-events: auto; text-align: center;
}
.toast--warn { background: #b54708; }
.toast--error { background: var(--red); }
.toast.is-out { opacity: 0; transition: opacity .25s; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}


/* =============================================== Hero slides ============== */

.hero-slides {
    position: relative;
    display: grid;
    min-height: 2.6em;
    margin-bottom: 1.1rem;
}
.hero-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.hero-slide.is-active { opacity: 1; transform: none; }

.hero-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.1rem; }
.hero-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .45); cursor: pointer;
    transition: width .3s, background .3s;
}
.hero-dot.is-active { width: 26px; background: #fff; }

/* ================================================== Filters ============== */

.filters { margin-bottom: 1.25rem; }
.filters-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

.filters-search {
    display: flex; align-items: center; gap: .5rem;
    flex: 1 1 220px; min-width: 0;
    height: 38px; padding: 0 .8rem;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}
.filters-search:focus-within { border-color: var(--blue); background: #fff; }
.filters-search svg { width: 17px; height: 17px; color: var(--muted); flex: 0 0 auto; }
.filters-search input { flex: 1 1 auto; min-width: 0; border: 0; background: none; font: inherit; font-size: .88rem; }
.filters-search input:focus { outline: none; }

.filters-row > select {
    height: 38px; padding: 0 .7rem;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--surface); font: inherit; font-size: .85rem; color: var(--ink-2);
    max-width: 160px;
}

.filters-price { position: relative; }
.filters-price summary {
    list-style: none; cursor: pointer;
    height: 38px; display: flex; align-items: center; padding: 0 .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    font-size: .85rem; font-weight: 600; color: var(--ink-2); background: var(--surface);
    white-space: nowrap;
}
.filters-price summary::-webkit-details-marker { display: none; }
.filters-price[open] summary { border-color: var(--blue); color: var(--blue); }
.filters-price-fields {
    position: absolute; top: calc(100% + .4rem); left: 0; z-index: 30;
    display: flex; align-items: center; gap: .4rem;
    padding: .6rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); white-space: nowrap;
}
.filters-price-fields input {
    width: 100px; padding: .45rem .6rem; font: inherit; font-size: .85rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.filters-clear { font-size: .85rem; color: var(--muted); text-decoration: none; }
.filters-clear:hover { color: var(--red); }

.badge-condition { background: rgba(255, 255, 255, .9); color: var(--ink-2); backdrop-filter: blur(4px); }
.product-page .badge-condition { background: var(--surface-2); }

/* ================================================ Dashboard ============== */

.dash-head {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.dash-avatar {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
    background: var(--blue-soft); border: 1px solid var(--line);
}
.dash-head > div:nth-child(2) { flex: 1 1 200px; }
.dash-actions { display: flex; gap: .5rem; }

.dash-tabs {
    display: flex; gap: 1.2rem; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
    flex: 0 0 auto; white-space: nowrap;
    padding: .6rem 0; font-size: .9rem; color: var(--muted); text-decoration: none;
    border-bottom: 2px solid transparent;
}
.dash-tab:hover { color: var(--ink); }
.dash-tab.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

.dash-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: 1.4fr 1fr; } }

.dash-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.dash-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.dash-thumb { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.dash-row-main { flex: 1 1 auto; min-width: 0; }
.dash-row-title {
    font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink);
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-row-title:hover { color: var(--blue); }
.dash-row-meta { margin: .1rem 0 0; font-size: .74rem; color: var(--muted); }
.dash-row-end { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: 0 0 auto; }
.dash-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* =============================================== Header actions ========== */

.topbar-sell { flex: 0 0 auto; }
.topbar-actions .icon-btn svg { width: 20px; height: 20px; }

/* ================================================== Gallery ============== */

.gallery-thumbs {
    display: flex; gap: .5rem; margin-top: .6rem;
    overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex: 0 0 auto; width: 68px; height: 68px; padding: 0;
    border: 2px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface-2); cursor: pointer; overflow: hidden;
}
.gallery-thumb.is-active { border-color: var(--blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================ Image picker preview ======= */

.image-preview {
    display: flex; gap: .5rem; flex-wrap: wrap;
    margin-top: .6rem;
}
.image-preview-item { position: relative; margin: 0; width: 64px; }
.image-preview-item img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.image-preview-item figcaption {
    position: absolute; bottom: -6px; left: 0; right: 0;
    text-align: center; font-size: .6rem; color: var(--muted);
    background: var(--surface); border-radius: 3px;
}

/* ================================================== Comments ============= */

.comments { margin-top: 2rem; }

.comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }

.comment { display: flex; gap: .75rem; }
.comment--reply { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line-2); }
.comment.is-replying { background: var(--blue-soft); border-radius: var(--radius); padding: .6rem; }

.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    background: var(--blue-soft); flex: 0 0 auto;
}
.comment-main { flex: 1 1 auto; min-width: 0; }
.comment-head { margin: 0 0 .2rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: .88rem; }
.comment-time { color: var(--muted); font-size: .74rem; }
.comment-body { margin: 0; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

.tag {
    padding: .1rem .4rem; border-radius: var(--radius-sm);
    font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.tag-seller { background: var(--green-soft); color: var(--green); }
.tag-admin  { background: #fef0c7; color: #b54708; }

.comment-reply-toggle {
    margin-top: .35rem; padding: 0; border: 0; background: none;
    font: inherit; font-size: .8rem; font-weight: 600; color: var(--blue); cursor: pointer;
}
.comment-reply-toggle:hover { text-decoration: underline; }

.comment-replies { list-style: none; padding: 0; margin: 0; }

/* Sticky composer, in the space the tab bar would otherwise take. */
.composer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: .5rem .75rem;
    padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
}
.composer-form {
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: flex-end; gap: .5rem;
}
.composer-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--blue-soft); flex: 0 0 auto; }
.composer-form textarea {
    flex: 1 1 auto; min-width: 0;
    padding: .55rem .8rem; font: inherit; font-size: .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    resize: none; overflow-y: auto; max-height: 160px;
}
.composer-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.composer-guest { max-width: 760px; margin: 0 auto; text-align: center; font-size: .9rem; color: var(--muted); }
.composer-guest a { color: var(--blue); font-weight: 600; }

/* On a product page the composer replaces the tab bar. */
body.has-composer { padding-bottom: 0 !important; }
body.has-composer .tabbar { display: none !important; }

@media (min-width: 640px) {
    .composer { padding: .65rem 1rem; }
}

/* ============================================ Admin + settings =========== */

.admin-nav {
    display: flex; gap: 1.2rem; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav-link {
    flex: 0 0 auto; white-space: nowrap; padding: .55rem 0;
    font-size: .9rem; color: var(--muted); text-decoration: none;
    border-bottom: 2px solid transparent;
}
.admin-nav-link:hover { color: var(--ink); }
.admin-nav-link.is-active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

.settings-form { display: grid; gap: 1.25rem; max-width: 760px; }
.settings-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.settings-card h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.settings-note { margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.settings-card label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin: .9rem 0 .3rem; }
.settings-card input[type="text"], .settings-card input[type="email"], .settings-card textarea {
    width: 100%; padding: .55rem .75rem; font: inherit; font-size: .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.settings-card input[type="color"] {
    width: 56px; height: 34px; padding: 2px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--surface);
}
.hero-fieldset {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: .9rem 1rem; margin: 0 0 .9rem;
}
.hero-fieldset legend { font-weight: 600; font-size: .85rem; padding: 0 .35rem; }

/* A switch row: label on the left, track on the right. */
.switch-row {
    display: flex !important; align-items: center; justify-content: space-between; gap: 1rem;
    margin: 0 !important; padding: .6rem 0; cursor: pointer;
    border-top: 1px solid var(--line-2);
}
.switch-row:first-of-type { border-top: 0; }
.switch-text { display: flex; flex-direction: column; }
.switch-label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.switch-help { font-size: .78rem; color: var(--muted); }
.switch-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
    position: relative; flex: 0 0 auto;
    width: 42px; height: 24px; border-radius: var(--radius-pill);
    background: var(--line); transition: background .18s;
}
.switch-track::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-xs); transition: transform .18s;
}
.switch-row input:checked + .switch-track { background: var(--green); }
.switch-row input:checked + .switch-track::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The hero takes its background from the per-slide colour in settings. */
/* The colour comes from --hero-1..3 (theme.css.php); app.js sets data-active
   to pick the current slide's colour, and the background cross-fades. */
.hero {
    --slide-color: var(--hero-1, #1a5fd0);
    background-color: var(--slide-color);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(0, 0, 0, .38) 100%);
    transition: background-color .6s ease;
}
.hero[data-active="1"] { --slide-color: var(--hero-2, #0f9d58); }
.hero[data-active="2"] { --slide-color: var(--hero-3, #7c3aed); }
.hero[data-active="3"] { --slide-color: var(--hero-4, #e11d48); }
@media (prefers-reduced-motion: reduce) { .hero { transition: none; } }
.hero-slide { grid-area: 1 / 1; }
.no-tabbar .tabbar { display: none !important; }
body.no-tabbar { padding-bottom: 0 !important; }

/* ====================================== Desktop vs mobile visibility ==== */
/* The header carries two action sets: Sell/Saved/shield on desktop, chat on
   mobile. Both are in the markup so neither needs a second template. */

.only-mobile { display: none !important; }

@media (max-width: 639px) {
    .only-desktop { display: none !important; }
    .only-mobile  { display: inline-flex !important; }

    /* Bottom bar: one icon size for every item, including the Sell tile. */
    .tab svg { width: 22px; height: 22px; }
    .tab-sell-icon { width: 24px; height: 24px; }
    .tab-sell-icon svg { width: 15px; height: 15px; }
    .tab { font-size: .66rem; }
}

/* ================================================== Logo ================= */

.logo-img { height: 32px; width: auto; display: block; }
@media (max-width: 639px) { .logo-img { height: 26px; } }

.logo-current {
    display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
    margin-top: .5rem; padding: .6rem .75rem;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.logo-current img { max-width: 140px; height: 32px; width: auto; object-fit: contain; }
.inline-check { display: inline-flex !important; align-items: center; gap: .4rem; margin: 0 !important; font-weight: 400 !important; font-size: .8rem !important; color: var(--muted) !important; }

.dash-actions .icon-btn { width: 38px; height: 38px; }

/* ================================================ Comment replies ======= */
/* A reply is indented and joined to its parent by a rule, so the link is
   visible without relying on indentation alone. */

.comment-replies {
    list-style: none; padding: 0 0 0 1.1rem;
    margin: .85rem 0 0 .55rem;
    border-left: 2px solid var(--line);
    position: relative;
}
.comment-replies > .comment { position: relative; padding-left: .5rem; }

/* A small elbow joining each reply back to the rule. */
.comment-replies > .comment::before {
    content: "";
    position: absolute; left: -1.1rem; top: 1.05rem;
    width: .75rem; height: 2px;
    background: var(--line);
}
.comment--reply .comment-avatar { width: 30px; height: 30px; }
.comment--reply .comment-author { font-size: .84rem; }
.comment--reply .comment-body { font-size: .87rem; }

/* ============================================== Bottom bar icons ======== */
/* One optical size across the five items: the outline icons and the filled
   Sell tile are all set to the same bounding box. */

.tabbar .tab { justify-content: center; gap: 3px; }
.tabbar .tab > svg {
    width: 22px; height: 22px;
    flex: 0 0 22px;
    stroke-width: 1.7;
}
.tabbar .tab.is-active > svg { stroke-width: 2.1; }
.tabbar .tab-sell-icon {
    width: 24px; height: 24px; flex: 0 0 24px;
    display: grid; place-items: center;
}
.tabbar .tab-sell-icon > svg { width: 15px; height: 15px; stroke-width: 1.9; }
.tabbar .tab span { line-height: 1.2; }

/* Header icons share one optical size too. */
.topbar-actions .icon-btn > svg { width: 20px; height: 20px; stroke-width: 1.7; }
.topbar-actions .js-admin > svg { stroke-width: 1.7; }

/* ============================================ Default archive =========== */

.archive-hero {
    margin: -.25rem -1rem 1.25rem;
    padding: 1.5rem 1rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.archive-hero-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.archive-hero-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin: 0 0 .15rem; }
.archive-hero-sub { margin: 0 0 1rem; color: var(--muted); font-size: .875rem; }
.archive-hero .search-form { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto; }
.archive-hero .hero-field { flex: 1 1 auto; min-width: 0; background: var(--surface); }
.archive-hero .search-form .btn { flex: 0 0 auto; height: 52px; padding-inline: 1.5rem; border-radius: var(--radius-lg); }

@media (max-width: 639px) {
    .archive-hero { margin: -.5rem -.75rem 1rem; padding: 1.15rem .75rem; }
    .archive-hero .search-form { flex-direction: column; }
    .archive-hero .search-form .btn { width: 100%; }
}

/* Six columns on a wide screen, as asked for. */
@media (min-width: 1440px) {
    .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .rail .card { width: 210px; }
}

/* A shorter home hero: the statement stays, the height does not. */
.hero { padding: 1.75rem 1rem 1.25rem; margin-bottom: 1.75rem; }
.hero-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.hero-sub { margin-bottom: 1.1rem; }
.hero-field, .hero-submit { height: 46px; }
.hero-dots { margin-top: .85rem; }

@media (max-width: 639px) {
    .hero { padding: 1.25rem .75rem 1rem; margin-bottom: 1.25rem; }
    .hero-field, .hero-submit { height: 44px; }
}

/* Composer starts as one line and only grows with content. */
.composer-form textarea { min-height: 22px; height: 22px; }

/* ====================================== Product page two columns ======== */
/* Mobile stacks: breadcrumbs, gallery, details, CTAs, seller, comments,
   related. From 860px the gallery and the detail column sit side by side, and
   the comments and related sections run full width beneath. */

.product-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
    .product-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
    .product-gallery { position: sticky; top: calc(var(--topbar-h) + var(--strip-h) + 1rem); }
}

/* Composer stays compact until it is used. */
.composer { padding: .4rem .75rem; padding-bottom: calc(.4rem + env(safe-area-inset-bottom, 0px)); }
.composer-form { align-items: flex-end; }
.composer-form textarea { padding: .2rem .8rem; line-height: 1.5; }
.composer-avatar { margin-bottom: 1px; }

/* ============================================ Price never breaks ========== */
/* A large amount was wrapping mid-number ("Ksh 18,50" / "0.00") in a
   two-column card. The struck-through original may wrap onto its own line, but
   the number itself must stay whole. */

.card-price { row-gap: 0; }
.price-now { white-space: nowrap; }
.price-was { white-space: nowrap; }

/* Long amounts get a slightly smaller face rather than wrapping. */
@supports (font-size: clamp(1px, 1vw, 1px)) {
    .price-now { font-size: clamp(.92rem, 1.05vw, 1.15rem); }
}
@media (max-width: 639px) {
    .price-now { font-size: clamp(.86rem, 3.1vw, 1.05rem); }
}

/* Utility classes that replace inline style="" attributes (blocked by CSP). */
.section-title--sm { font-size: 1.05rem; }
.section-sub--tight { margin: -.75rem 0 1.25rem; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin: .25rem 0 .5rem; }
.check-row { display: inline-flex !important; align-items: center; gap: .5rem; margin: 0 !important; font-weight: 500; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.auth-hint { font-size: .78rem; color: var(--muted); }


/* =====================================================================
   social-commerce refresh
   ===================================================================== */

/* ---- Hero: the exact colour chosen in the admin, no overlay ---- */
.hero { background-image: none !important; background-color: var(--slide-color); }
.hero-title { color: var(--hero-title, #fff); }
.hero-sub { color: var(--hero-text, #fff); }
.hero-slides:not(:has(*)), .hero-slide:empty { min-height: 0; }
.hero-slides { min-height: 0; }

/* ---- Unread bubbles (count up to 99, a dot above that) ---- */
.badge-count, .badge-dot { position: absolute; background: var(--red); color: #fff; pointer-events: none; }
.badge-count {
    top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    font-size: .66rem; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.badge-dot { top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.tab { position: relative; }
.tab .badge-count { top: 4px; right: calc(50% - 20px); }
.tab .badge-dot { top: 8px; right: calc(50% - 14px); }
.note .badge-dot, .convo .badge-count, .convo .badge-dot { position: static; flex: 0 0 auto; box-shadow: none; }
.note .badge-dot { width: 9px; height: 9px; }
.convo .badge-count { line-height: 18px; height: 18px; }

/* ---- Heart / save icons: tidy outline, balanced size ---- */
.tab svg, .icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab svg { width: 22px; height: 22px; }
.tab[href*="saved"] svg { width: 21px; height: 21px; }
.card-fav, .pp-save {
    display: grid; place-items: center; padding: 0; cursor: pointer;
    border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.card-fav svg, .pp-save svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-fav { position: absolute; top: .5rem; right: .5rem; width: 32px; height: 32px; }
.pp-save { width: 44px; height: 44px; flex: 0 0 auto; }
.pp-save svg { width: 21px; height: 21px; }
.card-fav.is-saved, .pp-save.is-saved { color: var(--red); border-color: #fecdca; background: #fef3f2; }
.card-fav.is-saved svg, .pp-save.is-saved svg { fill: currentColor; }

/* ---- Product cards: every row keeps its place ---- */
.card-body { gap: 0; padding: .6rem .7rem .7rem; }
.card-price { flex-wrap: nowrap; min-height: 1.6rem; align-items: baseline; overflow: hidden; }
.card-price .price-was { white-space: nowrap; }
.card-title { font-size: .86rem; line-height: 1.3; color: var(--ink-2); margin: .1rem 0 .3rem; height: 2.6em; overflow: hidden; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-word; }
.card-loc { display: flex; align-items: center; gap: .25rem; margin: 0; font-size: .74rem; color: var(--muted); min-width: 0; height: 1.2rem; }
.card-loc svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.card-loc-text {
    flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.card-meta { margin: .4rem 0 0; padding-top: .4rem; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted-2); }
.card-views { display: inline-flex; align-items: center; gap: .25rem; }
.card-views svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---- Archive hero: one small bar ---- */
.archive-hero { padding: 1rem; background: var(--surface-2); }
.archive-hero-inner { max-width: 920px; }
.archive-hero-title { margin: 0; font-size: 1.25rem; }
.archive-hero-sub { margin: 0 0 .75rem; }
.filters { margin: 0; }
.filters-search {
    display: flex; align-items: center; gap: .5rem; max-width: 560px; margin: 0 auto .7rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .25rem .3rem .25rem .9rem;
}
.filters-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.filters-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: 0 0 auto; }
.filters-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: .4rem 0; }
.filters-search input:focus { outline: none; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; align-items: center; }
.pills .loc-picker { display: contents; }
.pills .loc-field { display: contents; }
.pill, .pills select {
    height: 36px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: #fff; color: var(--ink-2); font: inherit; font-size: .84rem; max-width: 100%; cursor: pointer;
}
.pills select:disabled { opacity: .5; cursor: default; }
.pill-price { position: relative; display: inline-flex; align-items: center; padding: 0; }
.pill-price summary { list-style: none; padding: 0 .85rem; line-height: 34px; }
.pill-price summary::-webkit-details-marker { display: none; }
.price-pop { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: .4rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow-lg); }
.price-pop input { width: 90px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 .5rem; font: inherit; }
.pill-apply { border-radius: var(--radius-pill); height: 36px; }
.filters-clear { font-size: .84rem; color: var(--blue); font-weight: 600; }

/* ---- Location picker in forms ---- */
.stacked-form .loc-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.stacked-form .loc-area { margin-top: .75rem; }
@media (max-width: 639px) { .stacked-form .loc-picker { grid-template-columns: 1fr; } }

/* ---- Product page: sections, not boxes ---- */
.pp { max-width: 1040px; margin-inline: auto; }
.pp-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.pp-gallery { min-width: 0; max-width: 100%; }
.pp-media { position: relative; }
.pp-media img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: transparent; border: 0; border-radius: 0; }
.pp-ribbon { position: absolute; top: 10px; left: 0; background: var(--ink); color: #fff; font-weight: 700; padding: .25rem .8rem; border-radius: 0 var(--radius-pill) var(--radius-pill) 0; font-size: .8rem; }
.pp .gallery-thumbs { max-width: 100%; width: 100%; box-sizing: border-box; overflow-x: auto; overscroll-behavior-x: contain; flex-wrap: nowrap; }
.pp .gallery-thumb { flex: 0 0 64px; width: 64px; height: 64px; }
.pp-info { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.pp-tags { margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.pp .product-title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; }
.pp .product-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.pp .price-now { font-size: 1.8rem; font-weight: 800; }
.pp .price-was { text-decoration: line-through; color: var(--muted-2); }
.pp-meta { margin: 0; padding: .8rem 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .86rem; color: var(--muted); }
.pp-meta span, .pp-meta a { display: inline-flex; align-items: center; gap: .35rem; color: inherit; text-decoration: none; }
.pp-meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-actions { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.pp-actions .pp-cart { flex: 1 1 140px; display: flex; }
.pp-actions .pp-cart .btn { flex: 1; }
.pp-actions .pp-msg { flex: 1 1 120px; display: inline-flex; align-items: center; justify-content: center; }
.pp-actions .action-note { margin: 0; color: var(--muted); flex: 1; }
.pp-seller { display: flex; align-items: center; gap: .75rem; padding-top: .9rem; border-top: 1px solid var(--line-2); }
.pp-seller .seller-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pp-seller .seller-name { margin: 0; font-weight: 700; }
.pp-seller .seller-since { margin: 0; font-size: .8rem; color: var(--muted); }
.pp-sec { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.pp-h { margin: 0 0 .6rem; font-size: 1.05rem; }
.product-desc { margin: 0; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.pp-report { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line-2); font-size: .88rem; }
.pp-report summary { cursor: pointer; color: var(--muted); }
.pp-report-form { display: grid; gap: .5rem; margin-top: .75rem; max-width: 460px; }
.comments { max-width: 1040px; margin: 1.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.comments .comment-list { gap: 0; }
.comments .comment { padding: .9rem 0; border-top: 1px solid var(--line-2); background: none; border-radius: 0; }
.comments .comment:first-child { border-top: 0; }
.comments .comment--reply { border-top: 0; padding: .6rem 0 0; margin: 0; }
.tag { font-size: .66rem; font-weight: 700; padding: .05rem .4rem; border-radius: var(--radius-pill); background: var(--line-2); color: var(--ink-2); }
.tag-seller { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 767px) {
    .pp-top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .pp .price-now { font-size: 1.55rem; }
}

/* ---- Inbox ---- */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; min-height: 520px; height: calc(100vh - var(--topbar-h) - var(--strip-h) - 3rem); max-height: 760px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; min-width: 0; }
.inbox-title { margin: 0; padding: 1rem; font-size: 1.15rem; border-bottom: 1px solid var(--line-2); }
.inbox-empty, .inbox-placeholder { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.inbox-placeholder { display: grid; place-content: center; height: 100%; }
.convos { list-style: none; margin: 0; padding: 0; }
.convo { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line-2); position: relative; }
.convo:hover { background: var(--surface-2); }
.convo.is-active { background: var(--blue-soft); }
.convo-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--line-2); }
.convo-main { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.convo-top { display: flex; justify-content: space-between; gap: .5rem; }
.convo-name { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { font-size: .72rem; color: var(--muted-2); flex: 0 0 auto; }
.convo-product { font-size: .76rem; color: var(--blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-preview { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.is-unread .convo-preview { color: var(--ink); font-weight: 600; }
.inbox-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line-2); }
.thread-head .convo-avatar { width: 40px; height: 40px; }
.thread-who { flex: 1; min-width: 0; display: grid; font-size: .85rem; }
.thread-who a { color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-product { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.thread-back { display: none; font-size: 1.3rem; text-decoration: none; color: var(--ink); }
.bubbles { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; background: var(--surface-2); }
.bubbles-empty { margin: auto; }
.bubble { max-width: 78%; padding: .55rem .8rem .35rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.bubble-mine { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble-theirs { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-time { display: block; font-size: .66rem; opacity: .7; text-align: right; margin-top: .15rem; }
.reply-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line-2); align-items: flex-end; }
.reply-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 18px; padding: .55rem .9rem; font: inherit; max-height: 120px; }
.reply-form textarea:focus { outline: none; border-color: var(--blue); }
@media (max-width: 767px) {
    .inbox { grid-template-columns: 1fr; height: auto; max-height: none; min-height: calc(100vh - 170px); border-left: 0; border-right: 0; border-radius: 0; margin: 0 -.75rem; }
    .inbox.has-thread .inbox-list { display: none; }
    .inbox:not(.has-thread) .inbox-thread { display: none; }
    .inbox.has-thread { height: calc(100vh - var(--topbar-h) - 20px); }
    .thread-back { display: block; }
    .inbox-list { border-right: 0; }
}

/* ---- Notifications ---- */
.notes { max-width: 720px; margin: 0 auto; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note { display: flex; align-items: center; gap: .8rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.note.is-unread { background: var(--blue-soft); padding-inline: .75rem; border-radius: var(--radius-sm); }
.note-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; flex: 0 0 auto; }
.note-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note-text { flex: 1; min-width: 0; font-size: .92rem; }
.note-text small { display: block; color: var(--muted); font-size: .74rem; }
.note .badge-dot { background: var(--blue); }
.hero-slides { max-width: 560px; margin-inline: auto; text-align: center; }
.hero-slides:not(:has(h1, p)) { display: none; }
@media (max-width: 520px) { .card-price .price-now { font-size: 1rem; } .card-price .price-was { font-size: .7rem; } }

/* =====================================================================
   product page v3, archive tools, chat chrome, plain hero
   ===================================================================== */

/* ---- Gallery: one swipeable image area with dots ---- */
.pp-gallery { position: relative; min-width: 0; max-width: 100%; }
.pp-slider {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%;
}
.pp-slider::-webkit-scrollbar { display: none; }
.pp-slider:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pp-slide { flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: 1; object-fit: contain; scroll-snap-align: start; scroll-snap-stop: always; display: block; background: transparent; }
.pp-dots {
    position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%);
    display: flex; gap: .4rem; padding: .3rem .55rem; border-radius: var(--radius-pill); background: rgba(16, 24, 40, .38);
}
.pp-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .2s, background .2s; }
.pp-dot.is-active { width: 18px; border-radius: var(--radius-pill); background: #fff; }
.pp-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
    .pp-arrow {
        display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
        width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92);
        box-shadow: var(--shadow-md); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
    }
    .pp-prev { left: .5rem; } .pp-next { right: .5rem; }
}
.pp-ribbon { z-index: 2; }

/* ---- Details column ---- */
.pp-info { gap: 1rem; }
.pp-desc .pp-h { margin-bottom: .4rem; }
.pp-desc-box { position: relative; }
.pp-desc .product-desc { line-height: 1.65; }
.pp-desc.is-clamp:not(.is-open) .product-desc { max-height: 4.95em; overflow: hidden; }
.pp-desc.is-long:not(.is-open) .product-desc {
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.desc-more {
    position: absolute; right: 0; bottom: 0; padding: 0 0 0 2.2rem; border: 0; cursor: pointer;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 40%);
    color: var(--blue); font: inherit; font-weight: 600; line-height: 1.65;
}
.pp-desc.is-open .desc-more { position: static; display: block; margin: .25rem 0 0 auto; padding: 0; background: none; }
.pp-seller {
    display: flex; align-items: center; gap: .85rem; padding: .85rem 0; margin: 0;
    border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit;
}
.pp-seller:hover .seller-name { color: var(--blue); }
.pp-seller .seller-avatar { width: 48px; height: 48px; flex: 0 0 auto; }
.pp-seller-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.pp-seller .seller-name { font-weight: 700; }
.pp-seller .seller-handle { color: var(--blue); font-size: .86rem; }
.pp-seller .seller-since { color: var(--muted); font-size: .78rem; }
.seller-chev { width: 18px; height: 18px; fill: none; stroke: var(--muted-2); stroke-width: 2; flex: 0 0 auto; }
.pp-report { margin-top: 1rem; }

/* ---- Separators between the page's big sections ---- */
.comments { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.comments + .section, .pp + .section { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; max-width: 1040px; margin-inline: auto; }
.comments .section-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.csort { display: flex; gap: .2rem; font-size: .8rem; }
.csort a { padding: .25rem .6rem; border-radius: var(--radius-pill); color: var(--muted); text-decoration: none; }
.csort a.is-active { background: var(--line-2); color: var(--ink); font-weight: 600; }
.comments { padding-bottom: 5rem; }
.comments + .section { margin-top: 0; }

/* ---- Comment composer: one line, grows to a ceiling ---- */
.composer-form { align-items: flex-end; }
.composer-form textarea, .reply-form textarea {
    height: 40px; min-height: 40px; max-height: 140px; padding: .5rem .9rem; line-height: 1.35;
    overflow-y: hidden; border-radius: 20px; scrollbar-width: thin; box-sizing: border-box;
}
.composer-form .btn, .reply-form .btn { height: 40px; }

/* ---- Home: plain white hero when title and text are hidden ---- */
.hero--plain { background: #fff !important; padding: 1rem 1rem .25rem; margin-bottom: .75rem; }
.hero--plain .hero-inner { max-width: 560px; }
.hero--plain .hero-search { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---- Archive: small hero, then a tools row ---- */
.archive-hero { margin: 0 -1rem; padding: 1rem 1rem .9rem; border-bottom: 0; background: var(--surface-2); }
.archive-hero-inner { max-width: 620px; }
.archive-hero-title { font-size: 1.3rem; margin: 0; }
.archive-hero-sub { margin: .1rem 0 .7rem; }
.archive-hero .filters-search { margin: 0 auto; }
.tools { border-bottom: 1px solid var(--line-2); padding: .65rem 0; margin-bottom: 1rem; }
.tools-row { display: flex; align-items: center; gap: .5rem; }
.tool-btn, .tool-select {
    height: 38px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff;
    color: var(--ink-2); font: inherit; font-size: .86rem; padding: 0 .9rem; cursor: pointer;
}
.tool-btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.tool-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tool-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.tool-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .7rem; padding: 0 5px; }
.tool-select { max-width: 48vw; }
.view-toggle { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.view-toggle button { width: 38px; height: 36px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--ink); color: #fff; }
.view-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: var(--radius-pill); background: var(--blue-soft); color: var(--blue); font-size: .78rem; font-weight: 600; text-decoration: none; }
.chip:hover { background: #d7e5fb; }
.chips-clear { font-size: .78rem; color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; align-content: start; }
.filter-grid .field label:not(.sr-only) { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
.filter-grid select, .filter-grid input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 .6rem; font: inherit; font-size: .88rem; background: #fff; box-sizing: border-box; }
.filter-grid .loc-picker, .filter-grid .loc-field { display: contents; }
.price-pair { display: flex; align-items: center; gap: .4rem; }
.filter-actions { display: flex; gap: .5rem; }

/* List view: one card per row, image on the left. */
.grid[data-view="list"] { grid-template-columns: 1fr; gap: .75rem; }
.grid[data-view="list"] .card { flex-direction: row; }
.grid[data-view="list"] .card-media { flex: 0 0 132px; aspect-ratio: 1; }
.grid[data-view="list"] .card-body { justify-content: center; min-width: 0; }
.grid[data-view="list"] .card-title { height: auto; max-height: 2.6em; }
@media (min-width: 640px) { .grid[data-view="list"] .card-media { flex-basis: 180px; } .grid[data-view="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .archive-hero { margin: 0 -.75rem; } }

/* ---- Member page ---- */
.member { max-width: 1040px; margin: 0 auto; }
.member-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 0 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.member-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.member-head > div { flex: 1; min-width: 0; }
.member-name { margin: 0; font-size: 1.3rem; }
.member-handle { margin: 0; color: var(--blue); font-weight: 600; }
.member-since { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; }

/* ---- Chat: no strip/footer/tab bar; composer stuck to the bottom ---- */
body.no-strip .inbox { height: calc(100vh - var(--topbar-h) - 3rem); }
@media (max-width: 767px) {
    .inbox.has-thread { height: auto; min-height: 0; max-height: none; border: 0; margin: 0 -.75rem; overflow: visible; }
    .inbox.has-thread .inbox-thread { display: block; }
    .inbox.has-thread .bubbles { overflow: visible; padding: .9rem .75rem 5.5rem; background: transparent; }
    .inbox.has-thread .thread-head { position: sticky; top: var(--topbar-h); z-index: 20; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); }
    .inbox.has-thread .reply-form {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
        padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-composer .site-main { padding-bottom: 0; }
}
.pp-slide { height: auto; }
.desc-more { background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 28%); }

/* ===== 1.0.1: slide-in side panels (account from the right, filters from the left) ===== */
.panel-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; }
.panel-overlay[hidden] { display: none; }
.side-panel {
    position: fixed; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface);
    z-index: 100; display: flex; flex-direction: column; overflow-y: auto;
    visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; box-shadow: var(--shadow-lg);
}
.side-panel--right { right: 0; transform: translateX(100%); }
.side-panel--left { left: 0; transform: translateX(-100%); }
.side-panel.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
body.panel-open { overflow: hidden; }
.sp-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.sp-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.user-card { display: grid; grid-template-columns: 52px 1fr; gap: .2rem .8rem; align-items: center; padding: 1rem; margin: .8rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.user-card-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; grid-row: span 2; background: var(--blue-soft); }
.user-card-text { display: flex; flex-direction: column; min-width: 0; }
.user-card-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-handle { color: var(--muted); font-size: .85rem; }
.user-card-go { font-size: .8rem; color: var(--blue); font-weight: 600; }
.sp-links { display: flex; flex-direction: column; padding: 0 .5rem 1rem; }
.sp-links a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.sp-links a:hover { background: var(--surface-2); color: var(--ink); }
.sp-links .sp-out { margin-top: .5rem; border-top: 1px solid var(--line); border-radius: 0; color: var(--red); }
.sp-links .badge { position: static; }
.sp-body { padding: .9rem 1rem; flex: 1; overflow-y: auto; }
.sp-foot { padding: .8rem 1rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; position: sticky; bottom: 0; background: var(--surface); }
.sp-foot .btn { flex: 1; }

/* 1.0.1: product actions, comment paging */
.pp-actions .pp-cart { flex: 1 1 120px; }
.pp-actions .pp-msg { flex: 2 1 140px; }
.pp-info > .pp-meta { border-top: 0; padding-top: 0; }
.pp-info > .pp-tags { margin-top: .2rem; }
.comment-more { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: .85rem; cursor: pointer; padding: .3rem 0; margin-left: 2.6rem; }
.comment--reply[hidden] { display: none; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.pager a { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); }
.pager a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.name-row > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; }
.label-row label { margin-top: 0 !important; }
.forgot-link { font-size: .82rem; color: var(--blue); font-weight: 600; text-decoration: none; }
.auth-note { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.auth-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; padding: .8rem 1rem; border-radius: var(--radius); font-size: .9rem; }

/* 1.0.1: simpler chat and notifications */
.inbox { border-radius: 14px; }
.inbox-title { border-bottom: 0; padding-bottom: .4rem; }
.convo { border-bottom: 0; border-radius: 12px; margin: 0 .5rem; padding: .7rem .6rem; }
.convo-product { color: var(--muted); font-size: .74rem; }
.thread-head { border-bottom: 1px solid var(--line-2); }
.thread-name { font-size: 1rem; }
.thread-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.thread-item img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.thread-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .85rem; }
.thread-item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item-price { color: var(--muted); }
.thread-item-go { font-size: .8rem; color: var(--blue); font-weight: 600; }
.bubbles { background: #fff; gap: .35rem; }
.bubble { border-radius: 18px; }
.bubble-theirs { background: #eceff3; color: var(--ink); border: 0; }
.day-sep { text-align: center; margin: .8rem 0 .4rem; }
.day-sep span { font-size: .72rem; color: var(--muted); background: var(--surface-2); padding: .15rem .7rem; border-radius: 999px; }
.note-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.2rem 0 .3rem; }
.note { border-bottom: 0; border-radius: 12px; padding: .7rem .75rem; }
.note:hover { background: var(--surface-2); }
.note.is-unread { background: var(--blue-soft); }

/* ===== 1.0.2: product page stats bar, compact composer, nested replies ===== */
.pp-stats { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.pp-stats li { display: flex; }
.pp-stats li + li { border-left: 1px solid var(--line); }
.pp-stats li > div, .pp-stats li > a, .pp-stats li > button { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem .4rem; font-size: .95rem; font-weight: 700; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: default; font-family: inherit; }
.pp-stats li > div > span, .pp-stats li > a > span, .pp-stats li > button > span { display: inline; }
.pp-stats li > a, .pp-stats li > button { cursor: pointer; }
.pp-stats li > a:hover, .pp-stats li > button:hover { background: var(--blue-soft); color: var(--blue); }
.pp-stats svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--blue); flex: 0 0 auto; }
.pp-where { margin: .1rem 0 0; display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.pp-where svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.pp-info > .pp-tags { margin-top: 0; }

.composer { padding: .4rem .75rem; padding-bottom: calc(.4rem + env(safe-area-inset-bottom, 0px)); }

.composer-form textarea, .reply-form textarea { height: 36px; min-height: 36px; padding: .4rem .9rem; border-radius: 18px; }
.composer-form .btn, .reply-form .btn { height: 36px; padding-top: 0; padding-bottom: 0; }
.reply-form { padding: .5rem .7rem; }

.comment-thread { margin-top: .7rem; padding: .35rem .8rem .5rem; background: var(--surface-2); border-radius: var(--radius); }
.comment-thread .comment-replies { margin: 0; padding: 0; border-left: 0; }
.comment-thread .comment-replies > .comment { padding-left: 0; }
.comment-thread .comment-replies > .comment::before { display: none; }
.comment-thread .comment--reply:first-child { border-top: 0; margin-top: .4rem; padding-top: 0; }
.comment-thread .comment-more { margin-left: 0; }

/* ===== 1.0.2: add listing, sections divided by a light grey rule ===== */
.sell-card h1 { margin-bottom: .25rem; }
.sell-lead { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.sell-section { padding: 1.25rem 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .3rem; }
.sell-section:first-of-type { border-top: 0; padding-top: .25rem; }
.sell-section h2 { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sell-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sell-row > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
@media (max-width: 520px) { .sell-row { grid-template-columns: 1fr; } }
.sell-section .opt { font-weight: 400; color: var(--muted); }
.sell-section .loc-picker { display: grid; gap: .6rem; }
.sell-actions { padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.sell-actions .btn { width: 100%; padding: .8rem 1rem; font-size: 1rem; }
.pp-stats li > div, .pp-stats li > a, .pp-stats li > button { white-space: nowrap; }
@media (max-width: 480px) { .pp-stats li > div, .pp-stats li > a, .pp-stats li > button { font-size: .86rem; gap: .35rem; padding-inline: .2rem; } .pp-stats svg { width: 17px; height: 17px; } }

/* ===== 1.0.3 ===== */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 2.6rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; border-radius: 50%; margin: 0 !important; }
.pw-eye:hover { color: var(--ink); }
.pw-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .pw-slash { display: none; }
.pw-eye.is-on .pw-slash { display: block; }
.auth-alt--tight { margin-top: .4rem; }
.auth-alt--tight a { font-weight: 500; }
.composer-avatar { display: block; width: 36px; height: 36px; }

.mark-read { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; font-weight: 600; }
.mark-read svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.note-list { border-top: 1px solid var(--line-2); }
.note { border-bottom: 1px solid var(--line-2) !important; border-radius: 0 !important; padding: .85rem .25rem !important; }
.note:hover { background: none !important; }
.note.is-unread { background: var(--blue-soft) !important; padding-inline: .75rem !important; }
.note.is-unread .note-text { font-weight: 400; }

.hero-slide[data-hero-slide="0"] .hero-title { color: var(--hero-title-1, #fff); } .hero-slide[data-hero-slide="0"] .hero-sub { color: var(--hero-text-1, #fff); }
.hero-slide[data-hero-slide="1"] .hero-title { color: var(--hero-title-2, #fff); } .hero-slide[data-hero-slide="1"] .hero-sub { color: var(--hero-text-2, #fff); }
.hero-slide[data-hero-slide="2"] .hero-title { color: var(--hero-title-3, #fff); } .hero-slide[data-hero-slide="2"] .hero-sub { color: var(--hero-text-3, #fff); }
.hero-slide[data-hero-slide="3"] .hero-title { color: var(--hero-title-4, #fff); } .hero-slide[data-hero-slide="3"] .hero-sub { color: var(--hero-text-4, #fff); }
.hero-slide:not(:has(.hero-sub)) .hero-title { margin-bottom: 1.1rem; }
.hero-slide:not(:has(.hero-title)):not(:has(.hero-sub)) { min-height: 0; }

/* ===== 1.0.3: account menu (drawer on phones, drop-down on desktop) ===== */
.account-panel { width: min(280px, 86vw); }
.account-panel .sp-head { border-bottom: 0; padding-bottom: .2rem; }
.account-panel .user-card {
    grid-template-columns: 48px 1fr; margin: 0; padding: .9rem 1rem 1rem; border: 0; border-radius: 0;
    border-bottom: 4px solid var(--line-2);
}
.account-panel .user-card-avatar { width: 48px; height: 48px; grid-row: auto; }
.account-panel .sp-links { padding: .5rem .4rem; flex: 1 1 auto; }
.account-panel .sp-links a, .account-panel .sp-out {
    display: flex; align-items: center; gap: .8rem; padding: .62rem .7rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--ink-2); font-size: .94rem;
}
.account-panel .sp-links svg, .account-panel .sp-out svg, .theme-row svg {
    width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted);
}
.account-panel .sp-links .badge { margin-left: auto; }
.account-panel .sp-links a:hover, .account-panel .sp-out:hover, .theme-row:hover { background: var(--surface-2); color: var(--ink); }
.sp-bottom { border-top: 1px solid var(--line); padding: .4rem; display: flex; flex-direction: column; }
.account-panel .sp-out { color: var(--red); }
.account-panel .sp-out svg { color: var(--red); }
.theme-row {
    display: flex; align-items: center; gap: .8rem; width: 100%; padding: .62rem .7rem; border: 0; border-radius: var(--radius-sm);
    background: none; font: inherit; font-size: .94rem; color: var(--ink-2); cursor: pointer; text-align: left;
}
.theme-track { margin-left: auto; position: relative; width: 36px; height: 20px; border-radius: 999px; background: #cfd4dc; flex: none; transition: background .15s; }
.theme-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.theme-row[aria-checked="true"] .theme-track { background: var(--blue); }
.theme-row[aria-checked="true"] .theme-track::after { transform: translateX(16px); }

@media (min-width: 900px) {
    .account-panel {
        top: calc(var(--topbar-h) - 6px); bottom: auto; right: max(1rem, calc((100vw - var(--shell)) / 2 + 1rem)); width: 270px;
        max-height: calc(100vh - var(--topbar-h)); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-lg); transform: translateY(-6px); opacity: 0; transition: transform .15s ease, opacity .15s ease, visibility 0s linear .15s;
    }
    .account-panel.is-open { transform: none; opacity: 1; transition: transform .15s ease, opacity .15s ease; }
    .account-panel .sp-head { display: none; }
    .panel-overlay.is-account { background: transparent; }
}

/* ===== 1.0.3: flat layout — content sits on the page with light separators ===== */
.auth-card, .form-card {
    background: none; border: 0; border-radius: 0; box-shadow: none; padding: .5rem 0; margin: 1rem auto;
}
.pp-stats { border: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; }
.pp-seller { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: .9rem 0; margin-top: .6rem; }
.pp-seller .seller-handle { color: var(--muted); }
.pp-seller .seller-since { color: var(--muted); }
.pp-posted { margin-top: .05rem; }
.comment-thread { background: none; border-radius: 0; border-left: 2px solid var(--line); padding: .1rem 0 .1rem .8rem; margin-left: .2rem; }
.inbox { border: 0; border-radius: 0; background: none; }
.inbox-list { border-right: 1px solid var(--line-2); }
.dash-row { border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: .7rem 0; }
.dash-list { gap: 0; }
.action-note { background: none; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }
.member-head { align-items: flex-start; }
.member-head > div { display: grid; gap: .1rem; }
.member-head .member-since { margin: 0; }
.member-handle { color: var(--muted); }

/* ===== 1.0.3: filter drawer ===== */
#filter-panel { width: min(300px, 88vw); }
#filter-panel .sp-head { border-bottom: 1px solid var(--line-2); }
#filter-panel .sp-body { padding: 1rem; }
#filter-panel .filter-grid { gap: 1rem; }
#filter-panel .filter-grid .field { padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
#filter-panel .filter-grid .field:last-child { border-bottom: 0; }
#filter-panel .filter-grid .field > label:not(.sr-only) { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; }
#filter-panel .sp-foot { border-top: 1px solid var(--line-2); }

/* ===== 1.0.3: add listing (mirrors the product page) ===== */
.sell-page { max-width: 640px; margin: 0 auto; padding: .5rem 0 2rem; }
.sell-title { font-size: 1.25rem; margin: .4rem 0 .8rem; }
.sell-form { display: flex; flex-direction: column; }
.sell-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.sell-main {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer;
    background: var(--surface-2); border-radius: var(--radius-sm);
}
.sell-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sell-main-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--muted); text-align: center; }
.sell-main-empty[hidden], .sell-main-img[hidden] { display: none; }
.sell-main-empty svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sell-main-empty strong { color: var(--ink-2); }
.sell-main-empty small { font-size: .8rem; }
.sell-more { display: flex; align-items: center; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.sell-thumbs { margin: 0; }
.sell-thumbs[hidden] { display: none; }
.sell-more-btn { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px dashed var(--muted-2); border-radius: var(--radius-pill); color: var(--ink-2); font-size: .88rem; font-weight: 600; cursor: pointer; }
.sell-more-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sell-more-btn small { font-weight: 400; color: var(--muted); }
.sell-field { padding: .8rem 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .3rem; }
.sell-field > label, .sell-row label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.sell-field .opt { font-weight: 400; color: var(--muted); }
.sell-field input:not([type=checkbox]), .sell-field select, .sell-field textarea { width: 100%; }
.sell-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; flex-direction: unset; }
.sell-row > div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.sell-field .loc-picker { display: grid; gap: .6rem; }
.sell-actions { padding-top: 1rem; }
.sell-actions .btn { width: 100%; padding: .8rem 1rem; font-size: 1rem; }

/* ===== 1.0.3: dark mode ===== */
:root[data-theme="dark"] {
    color-scheme: dark;
    --blue: #4c8df6; --blue-dark: #3b7be0; --blue-soft: #172a4d;
    --green-soft: #10301f;
    --ink: #eef1f6; --ink-2: #c9d0dc; --muted: #97a1b3; --muted-2: #6d788c;
    --line: #2b3446; --line-2: #222a3a;
    --surface: #131a28; --surface-2: #19212f; --bg: #0d121c;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.4); --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
    --shadow-md: 0 4px 10px -2px rgba(0,0,0,.5); --shadow-lg: 0 12px 28px -6px rgba(0,0,0,.6);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .topbar-search:focus-within,
:root[data-theme="dark"] .hero-field:focus-within,
:root[data-theme="dark"] .filters-search:focus-within,
:root[data-theme="dark"] .bubbles,
:root[data-theme="dark"] .bubble-theirs,
:root[data-theme="dark"] .hero--plain,
:root[data-theme="dark"] .tool-btn, :root[data-theme="dark"] .tool-select, :root[data-theme="dark"] .view-toggle,
:root[data-theme="dark"] .card-fav, :root[data-theme="dark"] .pp-save,
:root[data-theme="dark"] .price-pop { background: var(--surface) !important; color: var(--ink); }
:root[data-theme="dark"] .bubble-theirs { background: #232c3d !important; border-color: #2f3a50; }
:root[data-theme="dark"] .bubble-mine { color: #fff; }
:root[data-theme="dark"] .site-header, :root[data-theme="dark"] .tabbar,
:root[data-theme="dark"] .inbox.has-thread .thread-head { background: rgba(13, 18, 28, .96); }
:root[data-theme="dark"] .badge-condition { background: rgba(19, 26, 40, .9); }
:root[data-theme="dark"] .desc-more { background: linear-gradient(90deg, rgba(13,18,28,0), var(--bg) 28%); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea,
:root[data-theme="dark"] .filter-grid select, :root[data-theme="dark"] .filter-grid input { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .chip:hover { background: #20375f; }
:root[data-theme="dark"] .panel-overlay { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .theme-track { background: #3a4458; }
:root[data-theme="dark"] .theme-row[aria-checked="true"] .theme-track { background: var(--blue); }
:root[data-theme="dark"] .account-avatar, :root[data-theme="dark"] .user-card-avatar { background: var(--blue-soft); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .card-body { background: var(--surface); }
.account-panel .sp-links a { justify-content: flex-start; }
.sell-field input:not([type=checkbox]), .sell-field select, .sell-field textarea {
    padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .93rem;
    background: var(--surface); color: var(--ink);
}
.sell-field input:focus, .sell-field select:focus, .sell-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.sell-field label { margin-top: 0; }

/* ===== 1.0.4 ===== */
.badge-inactive { background: var(--line-2); color: var(--muted); }
.comments-more { display: block; margin: 1rem auto 0; }
/* room for the fixed comment bar, also when related listings come after the comments */
.composer-spacer { height: 5rem; }
.comment-list + .load-more { margin-bottom: .5rem; }
@media (max-width: 639px) {
    .sell-page { padding-left: .5rem; padding-right: .5rem; }
}

/* dark mode: composers, chat bars, archive and hero bits that were still light */
:root[data-theme="dark"] .composer,
:root[data-theme="dark"] .inbox.has-thread .reply-form,
:root[data-theme="dark"] .reply-form,
:root[data-theme="dark"] .inbox.has-thread .thread-head,
:root[data-theme="dark"] .thread-head { background: rgba(13, 18, 28, .97); border-color: var(--line); }
:root[data-theme="dark"] .composer-form textarea,
:root[data-theme="dark"] .reply-form textarea { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .archive-hero,
:root[data-theme="dark"] .archive-hero .hero-field,
:root[data-theme="dark"] .filters-search { background: var(--surface-2); border-color: var(--line); }
:root[data-theme="dark"] .archive-hero-title { color: var(--ink); }
:root[data-theme="dark"] .thread-item, :root[data-theme="dark"] .convo:hover { background: var(--surface-2); }
:root[data-theme="dark"] .convo.is-active { background: var(--blue-soft); }
:root[data-theme="dark"] .hero-field, :root[data-theme="dark"] .topbar-search { background: var(--surface-2); border-color: var(--line); }
:root[data-theme="dark"] .pager a, :root[data-theme="dark"] .load-more { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .btn-outline, :root[data-theme="dark"] .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .category-strip { background: var(--bg); }
:root[data-theme="dark"] .site-footer { background: var(--bg); border-color: var(--line); }

/* ===== 1.0.4: contact page and 404 ===== */
.contact-page { max-width: 980px; margin: 0 auto; padding: 1rem 0 2rem; }
.contact-head { padding: 1rem 0 1.25rem; border-bottom: 1px solid var(--line-2); }
.contact-head h1 { margin: 0 0 .35rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-head p { margin: 0; color: var(--muted); max-width: 56ch; line-height: 1.55; }
.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-top: 1.25rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 3rem; } }
.contact-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--line-2); }
.contact-item:first-child { padding-top: 0; }
.contact-item svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.contact-item strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-item a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-item a:hover { color: var(--blue); }
.contact-help { margin: 1rem 0 0; font-size: .88rem; color: var(--muted); }
.contact-help a { color: var(--blue); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-field { display: flex; flex-direction: column; gap: .3rem; }
.contact-field label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.contact-field .opt { font-weight: 400; color: var(--muted); }
.contact-field input, .contact-field textarea {
    width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink);
}
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.contact-form .btn { align-self: flex-start; padding-inline: 1.6rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { margin: 0 0 1rem; padding: .7rem 1rem .7rem 1.8rem; border-left: 3px solid var(--red); background: #fef3f2; color: #b42318; font-size: .9rem; }
:root[data-theme="dark"] .form-errors { background: #3a1714; color: #fda29b; }
.contact-note { padding: 1rem 0; color: var(--muted); }
.contact-done { text-align: center; padding: 2rem 0; }
.contact-done svg { width: 56px; height: 56px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-done h2 { margin: .6rem 0 .3rem; }
.contact-done p { margin: 0 0 1.2rem; color: var(--muted); }

.nf { max-width: 560px; margin: 0 auto; padding: 2.5rem 0 3rem; text-align: center; }
.nf-code { margin: 0; font-size: clamp(4.5rem, 20vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--blue); opacity: .9; }
.nf-title { margin: .4rem 0 .5rem; font-size: 1.5rem; }
.nf-text { margin: 0 auto 1.5rem; color: var(--muted); max-width: 44ch; line-height: 1.55; }
.nf-search { display: flex; align-items: center; gap: .5rem; max-width: 420px; margin: 0 auto 1.25rem; padding: .3rem .3rem .3rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.nf-search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.nf-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); }
.nf-search input:focus { outline: none; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.nf-label { margin: 2rem 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nf-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .5rem; margin: 0; }
.nf-cats a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.nf-cats a:hover { border-color: var(--blue); color: var(--blue); }

/* ===== 1.0.5: product page, commerce first ===== */
.pp-info { gap: 0; }
.pp-block { padding: 1.15rem 0; border-top: 1px solid var(--line-2); }
.pp-block.pp-head { border-top: 0; padding: .9rem 0 1rem; }
.pp .pp-head .pp-tags { margin: 0 0 .5rem; }
.pp .product-price { margin: 0 0 .35rem; }
.pp .price-now { font-size: 1.9rem; letter-spacing: -.01em; }
.pp .price-was { font-size: 1rem; }
.pp .product-title { margin: 0 0 .7rem; font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.pp-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: var(--muted); }
.pp-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.pp-meta svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-actions { display: flex; flex-wrap: nowrap; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--line-2); }
.pp-actions .pp-cart, .pp-actions .pp-msg { flex: 1 1 0; min-width: 0; }
.pp-actions .btn { padding-inline: .6rem; white-space: nowrap; min-height: 44px; }
.pp-actions .action-note { padding: .5rem 0; }
.pp-share { cursor: pointer; background: var(--surface); }
.pp-seller { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line-2); border-bottom: 0; }
.pp-seller + .pp-block { border-top: 1px solid var(--line-2); }
.pp-details { margin: 0; display: grid; }
.pp-details div { display: flex; justify-content: space-between; gap: 1.2rem; padding: .65rem 0; border-bottom: 1px solid var(--line-2); font-size: .94rem; }
.pp-details div:last-child { border-bottom: 0; }
.pp-details dt { color: var(--muted); }
.pp-details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pp-details a { color: inherit; text-decoration: none; }
.pp-details a:hover { color: var(--blue); }
.pp-block .pp-h { margin: 0 0 .6rem; font-size: 1.05rem; }
.pp-desc { border-bottom: 1px solid var(--line-2); }
.comments { margin-top: 1.75rem; }
.comments .section-head { margin-bottom: 1rem; }
.comment-list { gap: 1.1rem; }
.pp-report { margin: 0; padding: .9rem 0; border-top: 0; }
@media (min-width: 900px) {
    .pp-top { gap: 3rem; }
    .pp .product-title { font-size: 1.35rem; }
}
:root[data-theme="dark"] .pp-share { background: var(--surface); }

/* ===== 1.0.7: stats on top, report menus, comment menu ===== */
.pp-info > .pp-stats { margin: 0 0 .25rem; }
.pp-gallery { position: relative; }
.pp-feat { position: absolute; top: 10px; left: 10px; z-index: 2; padding: .22rem .65rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: .76rem; font-weight: 600; line-height: 1.2; backdrop-filter: blur(4px); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.pp-more { position: absolute; top: 8px; right: 8px; z-index: 3; }
.pp-more-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink-2); cursor: pointer; backdrop-filter: blur(4px); box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.pp-more-btn svg { width: 18px; height: 18px; fill: currentColor; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 150px; padding: .3rem; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); }
.menu-list[hidden] { display: none; }
.menu-list form { margin: 0; display: contents; }
.menu-list button, .menu-list a { display: block; width: 100%; text-align: left; padding: .5rem .7rem; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: .9rem; text-decoration: none; cursor: pointer; }
.menu-list button:hover, .menu-list a:hover { background: var(--surface-2); }
.menu-list .is-danger { color: var(--red); }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem; }
.cmenu { position: relative; margin-left: auto; }
.cmenu-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.cmenu-btn:hover { background: var(--surface-2); color: var(--ink); }
.cmenu-btn svg { width: 18px; height: 18px; fill: currentColor; }
.cmenu .menu-list { top: 100%; }
.report-dialog { width: min(92vw, 420px); padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.report-dialog::backdrop { background: rgba(16, 24, 40, .45); }
.report-form { display: grid; gap: .75rem; }
.report-title { margin: 0; font-size: 1.1rem; }
.report-form select, .report-form textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.report-actions { display: flex; justify-content: flex-end; gap: .5rem; }
:root[data-theme="dark"] .pp-feat, :root[data-theme="dark"] .pp-more-btn { background: rgba(19, 26, 40, .85); color: var(--ink); }
.pp-info .pp-meta, .pp-info .pp-meta li { border: 0; padding: 0; }

/* ===== 1.0.8: refinements ===== */
/* Bell / icon bubbles stay small */
.icon-btn .badge-count { top: -1px; right: -2px; min-width: 15px; height: 15px; padding: 0 3px; font-size: .6rem; line-height: 15px; border-radius: 8px; box-shadow: 0 0 0 2px var(--surface, #fff); }
.icon-btn .badge-dot { top: 2px; right: 2px; width: 8px; height: 8px; }
/* "show more" is a quiet link */
.desc-more { color: var(--muted); font-weight: 500; font-size: .85rem; }
.desc-more:hover { color: var(--ink-2); }
/* Tool strip pills: gentler corners */
.tool-btn, .tool-select { border-radius: 10px; }
.view-toggle { border-radius: 10px; }
/* Home search card */
:root[data-theme="dark"] .hero-search { background: var(--surface); }
:root[data-theme="dark"] .hero-field:focus-within { background: var(--surface-2); }
.hero-filter.has-value { color: var(--blue); }
.hero-pop { display: grid; max-height: 210px; overflow-y: auto; padding: .3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.hero-pop[hidden] { display: none; }
.hero-pop button { text-align: left; padding: .6rem .75rem; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; }
.hero-pop button:hover { background: var(--surface-2); }
.hero-pop button.is-selected { color: var(--blue); font-weight: 600; }
/* Scrolling strips get breathing room at the left */
.rail { padding-left: 1rem; scroll-padding-left: 1rem; }
.section:has(> .rail) > .section-head, .section:has(> .rail) .section-head { padding-inline: .25rem; }
@media (max-width: 640px) { .rail { margin: 0 -.75rem; padding-inline: 1rem; } }
.field-label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
/* Product page */
.pp-stats svg { color: inherit; }
.pp-cond { margin: .1rem 0 .4rem; display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.pp-cond svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-cond strong { padding: .1rem .55rem; border-radius: 6px; background: var(--surface-2); font-weight: 600; color: var(--ink); }
.pp-where { margin: 0 0 .8rem; display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--muted); }
.pp-where svg { width: 15px; height: 15px; flex: none; }
.pp-facts { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .88rem; color: var(--muted); }
.pp-facts span, .pp-facts a { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.pp-facts a:hover { color: var(--ink); }
.pp-facts svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.comment-reply-toggle, .comment-more { color: var(--ink-2); }
.comment-reply-toggle, .comment-more { font-weight: 600; }
/* Comment composer: textarea, avatar and Post button share one height */
.composer-form textarea { box-sizing: border-box; height: 36px; min-height: 36px; padding: .4rem .9rem; line-height: 1.35; }
.tab .badge-count { top: 2px; right: calc(50% - 19px); min-width: 15px; height: 15px; padding: 0 3px; font-size: .6rem; line-height: 15px; border-radius: 8px; }
:root[data-theme="dark"] .hero-field input, :root[data-theme="dark"] .topbar-search input { background: transparent; }

/* ===== 1.0.9: product page hierarchy ===== */
.pp-info > .pp-stats li > div, .pp-info > .pp-stats li > a, .pp-info > .pp-stats li > button { font-size: .95rem; font-weight: 700; color: var(--ink); padding: .75rem .3rem; gap: .5rem; }
.pp-info > .pp-stats svg { width: 18px; height: 18px; color: inherit; }
.pp-info > .pp-stats li > a:hover, .pp-info > .pp-stats li > button:hover { background: none; color: var(--blue); }
.pp .price-now { font-size: 1.85rem; font-weight: 800; }
.pp .product-title { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin: 0 0 .65rem; }
.pp .pp-head { padding-top: 1rem; }
.pp-info .pp-where { margin-bottom: .4rem; }

/* ===== 1.0.11: spotlight, pinned ===== */
.spot-item { flex: 0 0 auto; display: grid; gap: .5rem; align-content: start; }
.spotlight .rail { margin-bottom: .25rem; }
.badge-pinned { background: var(--surface-2); color: var(--ink-2); }
.footer-head { margin: 0 0 .7rem; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-about { display: none; }
.footer-about p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; max-width: 28ch; }
.footer-about .footer-head { text-transform: none; letter-spacing: -.02em; font-size: 1.15rem; font-weight: 800; color: var(--blue); }
.topbar-search { padding-right: .25rem; }
.topbar-search-btn { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.topbar-search-btn:hover { background: var(--blue-soft); color: var(--blue); }
.topbar-search-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (min-width: 900px) {
    .topbar { gap: 1.5rem; }
    .topbar-search { max-width: 560px; height: 42px; margin-inline: auto; padding-left: 1.1rem; }
    .topbar-actions { gap: .4rem; }
    .topbar-actions .btn-sm { padding-inline: 1.1rem; height: 36px; }
    .site-footer { padding-top: 2.5rem; }
    .footer-links { grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 2rem; }
    .footer-about { display: block; }
}
.pp-facts { display: grid; gap: .4rem; padding: 0; border: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.pp-facts p { margin: 0; display: flex; align-items: center; gap: .4rem; }
.pp-facts a { color: inherit; text-decoration: none; }
.pp-facts a:hover { color: var(--ink); }
.pp ~ .section { max-width: 1040px; margin-inline: auto; }
.pp ~ .section + .section { border-top: 0; margin-top: 0; padding-top: 0; }


/* ======================================================================
   1.0.14: the reference design, copied value for value from the supplied
   index.html (sizes, colours, spacing, weights). Appended last on purpose.
   ====================================================================== */

:root {
    --blue: #1877f2; --blue-dark: #1263d0; --blue-dd: #0d4a9c; --blue-b: #cfe0f8; --blue-soft: #eef4fd; --blue-xl: #f5f8fd;
    --ink: #101419; --ink-2: #3a4250; --muted: #5f6b7a; --muted-2: #8b95a3;
    --line: #e6eaf0; --line-2: #eff2f7; --surface-2: #f4f7fb;
    --pill: #f4f7fb; --band: #f5f8fd;
    --blue-tint: #f5f8fd;
}
:root[data-theme="dark"] {
    --blue-dd: #8bb8ff; --blue-b: #2b3a55; --blue-xl: #121b2c; --pill: #19212f; --band: #121b2c; --blue-tint: #15213a;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.site-main { padding-left: 14px; padding-right: 14px; }

/* ---------- Header ---------- */
.site-header { box-shadow: none; border-bottom: 0; }
.topbar { height: auto; padding: 11px 14px; gap: 10px; border-bottom: 1px solid var(--line); }
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.6px; }
.topbar-search {
    height: 38px; padding: 0 6px 0 14px; gap: 8px; border-radius: 10px; background: var(--pill);
    border: 1px solid transparent; font-size: 14px; max-width: none;
}
.topbar-search:focus-within { border-color: var(--blue-b); background: var(--blue-xl); box-shadow: none; }
.topbar-search input { font-size: 14px; }
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search-btn { order: 2; margin-left: auto; width: 28px; height: 28px; color: var(--muted); }
.topbar-search-btn svg { width: 15px; height: 15px; stroke-width: 2.4; }
.icon-btn { width: 36px; height: 36px; color: var(--ink-2); }
.topbar-actions { gap: 0; }
.topbar-actions .icon-btn > svg { width: 21px; height: 21px; stroke-width: 1.9; }
.badge-count {
    top: 0; right: 0; min-width: 18px; height: 18px; line-height: 14px; padding: 0 5px; border-radius: 9px;
    background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; border: 2px solid var(--surface); box-shadow: none;
}
.badge-dot { background: var(--blue); box-shadow: 0 0 0 2px var(--surface); }

.category-strip { border: 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.category-strip-inner { height: auto; padding: 0 14px; gap: 20px; -webkit-mask-image: none; mask-image: none; }
.category-link { position: relative; padding: 13px 0 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); border: 0; }
.category-link:hover { color: var(--muted); }
.category-link.is-active { color: var(--blue); font-weight: 700; border: 0; }
.category-link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--blue); }

/* ---------- Section heads, rails, grid ---------- */
.section { margin-bottom: 0; }
.section-head { padding: 18px 0 12px; margin: 0; }
.section-title { font-size: 17.5px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); }
.section-more { font-size: 13.5px; font-weight: 600; color: var(--blue); }
.section-n { font-size: 13.5px; font-weight: 400; color: var(--muted); margin-left: .35rem; }
.rail { gap: 12px; margin: 0 -14px; padding: 0 14px 2px 16px; }
.grid { gap: 12px; }

/* ---------- Hero ---------- */
.hero--compact, .hero--compact.hero--plain {
    background: var(--blue-xl) !important; margin: -1.25rem -14px 0; padding: 20px 14px 22px;
    box-shadow: 0 0 0 100vmax var(--blue-xl); clip-path: inset(0 -100vmax);
}
.hero--compact .hero-heading { max-width: none; margin: 0 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.hero--compact .hero-heading span { color: var(--blue); }
.hero--compact .hero-inner { max-width: none; margin: 0; text-align: left; }
.hero--compact .hero-search {
    display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px;
    box-shadow: 0 1px 3px rgba(16, 20, 26, .07); gap: 0;
}
.hero--compact .hero-field {
    height: auto; padding: 11px 10px; gap: 10px; background: none; border: 0; border-radius: 0; color: var(--muted);
}
.hero--compact .hero-field--button { border-top: 1px solid var(--line-2); margin: 0; width: 100%; }
.hero--compact .hero-field:focus-within { background: none; border-color: transparent; }
.hero--compact .hero-field input { font-size: 15px; }
.hero--compact .hero-field input::placeholder { color: var(--muted-2); }
.hero--compact .hero-filter { width: 28px; height: 28px; margin: 0; border: 0; color: var(--muted); }
.hero--compact .hero-loc { color: var(--muted); width: 18px; height: 18px; }
.hero--compact .hero-loc-text { color: var(--muted-2); font-size: 15px; }
.hero--compact .hero-chev { color: var(--blue); width: 18px; height: 18px; }
.hero--compact .hero-pop { margin: 4px 0; }
.hero--compact .hero-submit { height: 48px; margin-top: 6px; border-radius: 12px; font-size: 15.5px; font-weight: 600; background: var(--blue); }
.hero--compact .hero-submit svg { width: 17px; height: 17px; }
.hero:not(.hero--compact) .hero-lead { display: none; }

/* ---------- Product card ---------- */
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; background: var(--surface); }
.card:hover { box-shadow: none; border-color: var(--line); }
.card-media { aspect-ratio: 1 / 1; background: var(--surface-2); }
.card .badge { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--blue); color: #fff; opacity: .82; backdrop-filter: none; }
.card .badge-featured, .card .badge-sold { background: rgba(16, 20, 26, .62); opacity: 1; }
.card-badges { top: 8px; left: 8px; }
.card-seller {
    position: absolute; z-index: 2; display: inline-flex; align-items: center; color: #fff; border-radius: 999px; text-decoration: none;
    left: 8px; bottom: 8px; gap: 7px; padding: 4px 10px 4px 4px; background: rgba(16, 20, 26, .42);
    max-width: calc(100% - 16px); font-size: 12px; font-weight: 600; backdrop-filter: none;
}
.card-seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.card-seller img { border-radius: 50%; object-fit: cover; flex: 0 0 auto; width: 22px; height: 22px; border: 1.5px solid rgba(255, 255, 255, .85); }
.card-body { padding: 10px 10px 12px; gap: 5px; }
.card-price { gap: 7px; }
.card .price-now { font-size: 18px; font-weight: 700; letter-spacing: -.2px; color: #222; }
:root[data-theme="dark"] .card .price-now { color: var(--ink); }
.card .price-was { font-size: 13px; color: var(--muted-2); }
.card-title { font-size: 14px; font-weight: 400; line-height: 1.32; min-height: 37px; color: var(--ink-2); }
.card-loc { margin: auto 0 0; padding-top: 3px; gap: 4px; font-size: 12.5px; color: var(--muted); }
.card-loc svg { width: 11px; height: 11px; }
.card-fav { color: var(--ink-2); }
.card-fav.is-saved { color: var(--red); }
@media (max-width: 639px) { .rail .card { width: calc((100vw - 70px) / 2); } }

/* list view (archives, profiles, pages) */
.grid[data-view="list"] { grid-template-columns: 1fr; gap: 12px; }
.grid[data-view="list"] .card { flex-direction: row; }
.grid[data-view="list"] .card-photo { flex: 0 0 132px; align-self: stretch; }
.grid[data-view="list"] .card-media { aspect-ratio: auto; height: 100%; min-height: 132px; }
.grid[data-view="list"] .card-body { justify-content: center; min-width: 0; flex: 1 1 auto; }
.grid[data-view="list"] .card-title { min-height: 0; }
.grid[data-view="list"] .card-seller { display: none; }
@media (min-width: 640px) {
    .grid[data-view="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid[data-view="list"] .card-photo { flex-basis: 180px; }
}

/* ---------- Load more ---------- */
.load-more {
    width: 100%; max-width: none; height: 48px; padding: 0; margin: 18px 0 8px; border-radius: 12px;
    font-size: 14.5px; font-weight: 600; color: var(--blue-dark); background: var(--blue-soft); border: 1px solid #bbb;
}
:root[data-theme="dark"] .load-more { border-color: var(--line); color: var(--blue); }
.load-more:hover { background: var(--blue-soft); border-color: #bbb; }
.load-more[disabled] { color: var(--muted-2); background: var(--surface-2); }

/* ---------- Bottom bar (previous icons; Sell blue only when current) ---------- */
.tabbar { padding-top: 8px; }
.tabbar .tab { gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.tabbar .tab.is-active { color: var(--blue); font-weight: 600; }
.tabbar .tab--sell.is-active { color: var(--blue); }
.tabbar .tab--sell.is-active .tab-sell-icon { border-color: var(--blue); color: var(--blue); }


/* ---------- Notifications ---------- */
.notes { max-width: 720px; margin: 0 auto; }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.note-title { margin: 0; font-size: 1.3rem; font-weight: 800; }
.mark-read { background: none; border: 0; padding: .25rem 0; color: var(--blue); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.note-chips { display: flex; gap: .5rem; margin-bottom: .9rem; }
.note-chip {
    padding: .35rem .95rem; border-radius: var(--radius-pill); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer;
}
.note-chip.is-active { background: var(--blue-soft); border-color: transparent; color: var(--blue); font-weight: 600; }
.note-list { border-top: 0 !important; display: grid; gap: .3rem; }
.note-list li[hidden] { display: none; }
.note { border: 0 !important; border-radius: 14px !important; padding: .75rem .8rem !important; gap: .85rem; background: none; }
.note:hover { background: var(--surface-2) !important; }
.note.is-unread { background: var(--blue-tint) !important; padding-inline: .8rem !important; }
.note-icon { width: 40px; height: 40px; }
.note-icon svg { stroke: currentColor; }
.note-icon--message { background: var(--blue-soft); color: var(--blue); }
.note-icon--comment { background: var(--green-soft); color: var(--green); }
.note-icon--reply { background: color-mix(in srgb, #7a5af8 14%, var(--surface)); color: #7a5af8; }
.note-text { font-size: .9rem; line-height: 1.4; }
.note-text strong { font-weight: 700; }
.note.is-unread .note-text { font-weight: 400; }
.note-text small { margin-top: .1rem; font-size: .76rem; }


/* ---------- Single product page ---------- */
.pp-top { gap: 0 2rem; }
.pp-media { min-width: 0; }
.pp-gallery { position: relative; background: var(--surface-2); border-radius: 0; overflow: visible; }
.pp-slide { aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.pp-overlay { position: absolute; top: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; }
.pp-overlay--left { left: 12px; }
.pp-overlay--right { right: 12px; }
.pp-circle {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(230, 230, 230, .2); color: var(--ink-2); box-shadow: 0 1px 4px rgba(16, 20, 26, .18); cursor: pointer; text-decoration: none;
}
.pp-circle svg { width: 18px; height: 18px; stroke-width: 1.9; }
.pp-pill { padding: 3px 8px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; opacity: .82; }
.pp-pill--dark { background: rgba(16, 20, 26, .62); opacity: 1; }
.pp-dots { bottom: 10px; background: none; padding: 0; gap: 6px; }
.pp-dot { width: 7px; height: 7px; background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(16, 20, 26, .12); }
.pp-dot.is-active { width: 7px; border-radius: 50%; background: #fff; }
.pp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--surface); scrollbar-width: none; }
.pp-thumbs::-webkit-scrollbar { display: none; }
.pp-thumb { flex: 0 0 56px; width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.pp-thumb.is-active { border-color: var(--blue); }

.pp-info { gap: 0; }
.pp-head { display: block; padding: 0; border: 0; }
.pp .product-price { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.pp .price-now { font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; color: var(--blue); }
.pp .price-was { font-size: 15px; color: var(--muted-2); }
.pp-off { padding: 3px 9px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-dark); font-size: 13px; font-weight: 700; }
.pp .product-title { margin: 0 0 10px; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: 0; color: var(--ink); }
.pp-where { display: flex; align-items: center; gap: .4rem; margin: 0 0 .1rem; padding: 0; background: none; border-radius: 0; font-size: .88rem; font-weight: 400; color: var(--muted); }
.pp-where svg { width: 16px; height: 16px; }
.pp .pp-meta { display: flex; gap: 16px; margin: 12px 0 0; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.pp .pp-meta strong, .pp .pp-meta a { color: var(--ink-2); font-weight: 600; }
.pp .pp-meta a { text-decoration: none; }

.pp-actions { display: block; padding: 14px 0 4px; }
.pp-cta { display: flex; gap: 8px; }
.pp-cta-btn, .pp-actions .pp-msg {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: 42px; padding: 0 8px;
    border: 1px solid var(--blue-b); border-radius: 9px; background: var(--surface); color: var(--blue-dark);
    font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
}
.pp-cta-btn svg, .pp-msg svg { width: 19px; height: 19px; flex: none; }
.pp-actions .pp-msg { flex: 1.5 1 0; background: var(--blue); border-color: var(--blue); color: #fff; }
.pp-actions .pp-msg:hover { background: var(--blue-dark); }
.pp-cta-btn.is-saved { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.pp-cta-btn.is-saved svg { fill: var(--blue); color: var(--blue); }
.pp-actions .pp-cart { margin-top: 8px; }
.pp-actions .pp-cart .btn { height: 42px; border-radius: 9px; font-size: 14px; font-weight: 600; }

.pp-seller { display: flex; align-items: center; gap: 11px; margin: 0; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); }
.pp-seller-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.pp-seller .seller-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.pp-seller-text { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.pp-seller .seller-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.pp-seller .seller-handle { font-size: 13.5px; font-weight: 400; color: var(--muted); }
.pp-seller .seller-since { font-size: 13.5px; color: var(--muted); }
.follow-btn { flex: none; margin-left: auto; padding: 8px 16px; border: 1px solid var(--blue-b); border-radius: 8px; background: none; color: var(--blue); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.follow-btn.is-following { color: var(--ink-2); border-color: var(--line); background: var(--surface-2); }
.seller-chev-link { flex: none; display: grid; place-items: center; width: 22px; height: 36px; color: var(--muted-2); }
.seller-chev { width: 18px; height: 18px; }

.pp-block.pp-desc, .pp-details { padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); }
.pp-h { margin: 0 0 10px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.pp-desc .product-desc { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.desc-more { background: linear-gradient(90deg, transparent, var(--bg) 40%); font-weight: 500; color: var(--muted); font-size: .9em; }
.pp-dl > div, .pp-dl > div:first-child { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pp-dl > div:last-child { border-bottom: 0; }
.pp-dl dt { color: var(--muted-2); }
.pp-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--muted); }
.pp-dl dd a { color: inherit; text-decoration: none; }

/* comments, as in the reference */
.comments { max-width: none; margin: 0; padding: 17px 0 4px; border: 0; }
.comments .section-head { padding: 0; margin-bottom: 12px; align-items: baseline; }
.comments .section-title { font-size: 16.5px; font-weight: 700; letter-spacing: 0; }
.comments .section-n { font-size: 13.5px; color: var(--muted); }
.comments .comment { gap: 11px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.comments .comment:first-child { border-top: 1px solid var(--line-2); }
.comment-avatar { width: 36px; height: 36px; }
.comment-author { font-size: 14.5px; font-weight: 700; }
.tag-seller, .tag-admin { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; background: var(--blue-soft); color: var(--blue-dark); }
.comment-body { font-size: 15px; line-height: 1.52; color: var(--ink-2); margin-top: 4px; }
.comment-meta { display: flex; align-items: center; gap: 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted-2); }
.comment-meta .comment-reply-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.comment-meta .comment-reply-toggle svg { width: 14px; height: 14px; }

/* composer */
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); }
.composer-avatar { width: 34px; height: 34px; margin: 0; }
.composer-form { align-items: center; gap: 9px; }
.composer-form textarea { height: 40px; min-height: 40px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); font-size: 14.5px; line-height: 1.3; }
.composer-form textarea:focus { border-color: var(--blue); background: var(--surface); box-shadow: none; }
.composer-form .btn-primary { height: 40px; padding: 0 17px; border-radius: 20px; background: #dbe3ee; color: #98a3b3; border: 0; font-size: 14.5px; font-weight: 600; }
.composer-form:has(textarea:not(:placeholder-shown)) .btn-primary { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .composer-form .btn-primary { background: var(--line); color: var(--muted-2); }

@media (max-width: 767px) {
    .pp-media { margin: -1.25rem -14px 0; }
    .pp-thumbs { padding: 10px 14px; }
    .pp .crumbs { display: none; }
}
@media (min-width: 768px) {
    .pp-gallery { border-radius: 14px; overflow: hidden; }
}

/* ---------- Seller / member profile ---------- */
.member { max-width: 760px; margin: 0 auto; }
.member-head {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
    padding: 20px 0 16px;
}
.member-head > div { display: contents; }
.member-avatar { grid-row: span 2; width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--surface-2); }
.member-name { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.3px; align-self: end; }
.member-handle { margin: 0; font-size: 14.5px; color: var(--muted); font-weight: 500; align-self: start; }
.member-since { grid-column: 2 / -1; margin: 0; font-size: 13px; color: var(--muted-2); }
.member-head .follow-btn, .member-head .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
.member-head .follow-btn { background: var(--blue); color: #fff; border-color: var(--blue); padding: 9px 20px; border-radius: 10px; }
.member-head .follow-btn.is-following { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.member-stats {
    list-style: none; margin: 0 0 8px; padding: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none;
}
.member-stats li { display: grid; gap: 2px; }
.member-stats li + li { border-left: 1px solid var(--line-2); }
.member-stats strong { font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.member-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 479px) {
    .member-head { grid-template-columns: auto 1fr; }
    .member-head .follow-btn, .member-head .btn { grid-column: 1 / -1; grid-row: auto; width: 100%; margin-top: 10px; text-align: center; }
    .member-since { grid-column: 2; }
}

/* ---------- Footer: four link columns ---------- */
.footer-about { display: none !important; }

/* ---------- Messages ---------- */
.inbox { border-radius: 14px; background: var(--surface); }
.inbox-title { padding: 1rem 1rem .8rem; font-size: 1.3rem; font-weight: 800; border-bottom: 1px solid var(--line); }
.convo { padding: .85rem 1rem; gap: .8rem; }
.convo-avatar { width: 48px; height: 48px; }
.convo-name { font-size: .95rem; font-weight: 700; }
.convo-time { font-size: .74rem; }
.convo-product { font-size: .78rem; color: var(--muted); }
.convo-preview { font-size: .85rem; }
.convo.is-unread { background: var(--blue-tint); }
.convo.is-unread .convo-preview { color: var(--ink); font-weight: 500; }
.convo.is-active { background: var(--blue-soft); }
.convo .badge-count { position: static; background: var(--blue); box-shadow: none; flex: 0 0 auto; }
.inbox-empty { padding: 3rem 1rem; line-height: 1.7; }
.thread-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.bubble-mine { background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.bubble-theirs { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: 16px 16px 16px 4px; }

.card-photo { position: relative; }

/* ======================================================================
   1.0.15
   ====================================================================== */

/* Archive hero runs straight up to the category strip (no white gap) */
.archive-hero { margin: -1.25rem -14px 1rem; }

/* Slides with a button */
.hero--cta { padding: 1.6rem 1.25rem 1.5rem; margin: -1.25rem -14px 1.25rem; text-align: left; }
.hero--cta::before, .hero--cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.hero--cta::before { width: 200px; height: 200px; top: -70px; right: -60px; }
.hero--cta::after { width: 120px; height: 120px; bottom: -60px; left: -40px; background: rgba(255, 255, 255, .08); }
.hero--cta .hero-inner { max-width: none; margin: 0; text-align: left; }
.hero--cta .hero-slides { margin-bottom: .9rem; position: relative; z-index: 1; }
.hero--cta .hero-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5rem; }
.hero--cta .hero-sub { font-size: 1.05rem; line-height: 1.45; margin: 0 0 1.1rem; opacity: .9; max-width: 28ch; }
.hero--cta .hero-dots { justify-content: flex-start; margin-top: .25rem; }
.hero-btn {
    display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1.1rem; border-radius: 999px;
    background: #fff; color: var(--blue); font-size: .98rem; font-weight: 600; text-decoration: none;
}
.hero-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hero-btn:hover { background: #f1f5fb; }

/* Profile: sections sit on the surface, divided by a light grey band */
.member .section { margin-left: -14px; margin-right: -14px; padding: 0 14px 4px; border-top: 6px solid #eceff3; margin-top: 8px; }
:root[data-theme="dark"] .member .section { border-top-color: #0b0f16; }
.member .section-head { padding-top: 14px; }
.member .tools { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--line); }
.member .rail { margin: 0 -14px; padding-left: 14px; }
.member-stats { margin-bottom: 0; }

/* Add listing: small hero, one-row price pair, Cancel + Publish row */
.sell-hero { margin: -1.25rem -14px 1rem; padding: .9rem 14px 1rem; background: var(--band); text-align: center; }
.sell-hero .sell-title { margin: 0 0 .15rem; font-size: 1.25rem; font-weight: 700; }
.sell-hero p { margin: 0; font-size: .85rem; color: var(--muted); }
.sell-page .sell-row { grid-template-columns: 1fr 1fr !important; }
.sell-page .sell-actions { display: flex; gap: .6rem; align-items: stretch; }
.sell-page .sell-actions .btn { width: auto; border-radius: 10px; }
.sell-page .sell-cancel { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; }
.sell-page .sell-publish { flex: 1.8 1 0; font-weight: 700; }
.hero--cta .hero-slide, .hero--cta .hero-title, .hero--cta .hero-sub { text-align: left; }
.hero--cta .hero-slides { display: grid; }
.sell-hero { margin-left: -22px; margin-right: -22px; }

/* ======================================================================
   1.0.16
   ====================================================================== */
/* Home: tighter, like the reference */
.card-price { min-height: 0; line-height: normal; overflow: visible; }
.card .price-now { line-height: normal; }
.card-loc { line-height: normal; }
.card-loc-text { line-height: normal; }
.card-body { gap: 5px; }
.hero--compact .hero-filter { width: 18px; height: 18px; padding: 0; }
.hero--compact .hero-filter svg { width: 18px; height: 18px; }
.hero--compact .hero-field { padding: 11px 10px; min-height: 0; height: auto; }
.hero--compact .hero-field input { height: 19px; line-height: normal; padding: 0; }
.card-title { margin: 0; }
.card-price { margin: 0; }
.card-loc { margin: auto 0 0; }

/* Notifications panel (bell) */
.notif-panel { width: min(380px, 92vw); }
.notif-body { flex: 1 1 auto; overflow-y: auto; padding: .35rem .4rem; }
.notif-body .note-list { list-style: none; margin: 0; padding: 0; }
.notif-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.notif-all { display: block; padding: .9rem 1rem; text-align: center; font-weight: 600; color: var(--blue); border-top: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.notif-all:hover { background: var(--surface-2); }
@media (min-width: 900px) {
    .notif-panel {
        top: calc(var(--topbar-h) - 6px); bottom: auto; right: max(1rem, calc((100vw - var(--shell)) / 2 + 1rem)); width: 380px;
        max-height: min(560px, calc(100vh - var(--topbar-h))); border: 1px solid var(--line); border-radius: var(--radius);
        box-shadow: var(--shadow-lg); transform: translateY(-6px); opacity: 0; transition: transform .15s ease, opacity .15s ease, visibility 0s linear .15s;
    }
    .notif-panel.is-open { transform: none; opacity: 1; transition: transform .15s ease, opacity .15s ease; }
    .notif-panel .sp-head { padding: .75rem 1rem; }
}

/* Messages (1.0.16): header row, search, rows with a dot, soft thread background */
.inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem .8rem; border-bottom: 1px solid var(--line); }
.inbox-head form { margin: 0; }
.inbox-head .inbox-title { padding: 0; border: 0; font-size: 1.3rem; }
.inbox-head .mark-read { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: .92rem; cursor: pointer; }
.inbox-search { display: flex; align-items: center; gap: .6rem; margin: .8rem 1rem; padding: 0 1rem; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--muted-2); }
.inbox-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: 0 0 auto; }
.inbox-search input { flex: 1 1 auto; border: 0; background: none; outline: 0; font: inherit; font-size: .95rem; color: var(--ink); min-width: 0; }
.convos li[hidden] { display: none; }
.convo { padding: .8rem 1rem; gap: .85rem; border-bottom: 1px solid var(--line-2); }
.convo-pic { position: relative; flex: 0 0 auto; display: block; }
.convo-pic .convo-avatar { width: 56px; height: 56px; }
.convo-dot { position: absolute; right: 0; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--surface); }
.convo-count { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); align-self: flex-start; margin-top: .5rem; }
.convo-name { font-size: 1rem; }
.convo-product { font-size: .9rem; color: var(--ink-2); }
.convo.is-unread .convo-product { font-weight: 700; color: var(--ink); }
.convo-preview { font-size: .88rem; color: var(--muted); }
.bubbles { background: #f4f6f9; }
:root[data-theme="dark"] .bubbles { background: #0f141d; }
.bubble-theirs { background: #fff; border: 1px solid var(--line-2); }
:root[data-theme="dark"] .bubble-theirs { background: var(--surface); }

/* Filters panel (1.0.16) */
#filter-panel { width: min(360px, 92vw); }
#filter-panel .sp-head { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
#filter-panel .sp-head strong { font-size: 1.15rem; font-weight: 800; }
#filter-panel .sp-head-actions { display: flex; align-items: center; gap: .9rem; }
#filter-panel .sp-reset { font-size: .9rem; font-weight: 600; color: var(--blue); text-decoration: none; }
#filter-panel .sp-body { padding: .4rem 1.1rem 1rem; flex: 1 1 auto; overflow-y: auto; background: var(--surface); }
#filter-panel .filter-grid { gap: 0; }
#filter-panel .filter-grid .field { padding: 1rem 0; border-bottom: 1px solid var(--line-2); }
#filter-panel .filter-grid .field:last-child { border-bottom: 0; }
#filter-panel .filter-grid .field > label:not(.sr-only), #filter-panel .field-label {
    display: block; margin: 0 0 .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
#filter-panel select, #filter-panel input[type="number"] {
    width: 100%; height: 46px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font: inherit; font-size: .95rem; color: var(--ink);
}
#filter-panel select:focus, #filter-panel input[type="number"]:focus { outline: 0; border-color: var(--blue); background: var(--surface); }
#filter-panel .price-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; color: var(--muted); }
#filter-panel .field-loc select + select, #filter-panel .field-loc .loc-row + .loc-row { margin-top: .55rem; }
#filter-panel .sp-foot { display: flex; gap: .6rem; padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
#filter-panel .sp-foot .btn { height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
#filter-panel .sp-foot .btn-primary { flex: 1.8 1 0; font-weight: 700; }
#filter-panel .sp-foot .btn-ghost { flex: 1 1 0; border: 1px solid var(--line); }

/* Add listing (1.0.16): labelled rows with hints, dashed photo frame, removable thumbs, sticky action bar */
.sell-hero { text-align: left; padding: 1rem 22px 1.1rem; }
.sell-hero .sell-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.sell-hero p { font-size: .95rem; line-height: 1.45; }
.sell-page .sell-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: .45rem; }
.sell-page .sell-field > * { grid-column: 1 / -1; }
.sell-page .sell-field > label:first-child, .sell-page .sell-field > .sell-hint { grid-column: auto; }
.sell-page .sell-field > .sell-hint { grid-column: 2; grid-row: 1; }
.sell-page .sell-field > label:first-child { grid-column: 1; grid-row: 1; }
.sell-page .sell-field.sell-row { display: grid; grid-template-columns: 1fr 1fr; }
.sell-page .sell-field.sell-row > div { grid-column: auto; }
.sell-labelrow { display: flex; align-items: baseline; justify-content: space-between; margin: .9rem 0 .45rem; }
.sell-field .sell-labelrow { margin: 0; }
.sell-lbl, .sell-page .sell-field > label:first-child { font-size: .95rem; font-weight: 700; color: var(--ink); }
.sell-hint { font-size: .85rem; color: var(--muted-2); font-weight: 400; }
.sell-page .sell-main { border: 1.5px dashed var(--blue-b); background: var(--blue-xl); border-radius: 14px; }
.sell-main-empty strong { color: var(--blue); font-size: 1.05rem; }
.sell-main-empty svg { stroke: var(--blue); }
.sell-page .sell-more { display: block; border-bottom: 0; padding: 0; }
.sell-page .sell-thumbs { display: flex; gap: .6rem; margin: 0 0 .7rem; }
.sell-page .sell-thumbs .image-preview-item { width: 72px; height: 72px; }
.sell-page .sell-thumbs .image-preview-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.image-preview-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(16, 20, 26, .7); color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.sell-page .sell-more-btn { display: flex; width: 100%; justify-content: center; border: 1px solid var(--blue-b); border-radius: 12px; background: var(--surface); color: var(--blue); height: 46px; padding: 0; font-size: 1rem; }
.sell-page .sell-more-btn:hover { background: var(--blue-xl); }
.sell-page .sell-actions { position: sticky; bottom: var(--tabbar-h, 0px); z-index: 20; background: var(--surface); margin: 1rem -22px 0; padding: .75rem 22px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sell-page .sell-actions { bottom: 0; margin-inline: 0; padding-inline: 0; } }
.sell-page .sell-publish { box-shadow: 0 6px 16px rgba(24, 119, 242, .22); }

/* ======================================================================
   1.0.16b: calmer home sizes
   ====================================================================== */
.section-head { padding: 16px 0 10px; }
.section-title { font-size: 16px; }
.section-more { font-size: 13px; }
.hero--compact .hero-heading { font-size: 21px; margin-bottom: 12px; }
.hero--compact .hero-field input, .hero--compact .hero-loc-text { font-size: 14px; }
.hero--compact .hero-submit { height: 44px; font-size: 14.5px; }
.card .price-now { font-size: 16px; }
.card .price-was { font-size: 12px; }
.card-title { font-size: 13px; min-height: 34px; }
.card-loc { font-size: 12px; }
.card-body { padding: 9px 9px 11px; }
.card .badge { font-size: 11px; padding: 2px 7px; }
.card-seller { font-size: 11px; }
.card-seller img { width: 20px; height: 20px; }
.load-more { height: 44px; font-size: 14px; }

/* ======================================================================
   Add listing, redesigned: white sections, thin separators, compact CTA row
   ====================================================================== */
.sell-page { max-width: 640px; padding: 0 0 1rem; }
.sell-hero { margin: -1.25rem -14px 0; padding: .9rem 16px 1rem; }
.sell-hero .sell-title { font-size: 1.35rem; }
.sell-hero p { font-size: .85rem; }
.sell-form { background: var(--surface); margin: 0 -14px; }
.sell-sec { padding: 1rem 16px 1.1rem; border-bottom: 8px solid #eceff3; }
:root[data-theme="dark"] .sell-sec { border-bottom-color: #0b0f16; }
.sell-sec .sell-field { padding: 0; border: 0; margin: 0 0 .9rem; }
.sell-sec .sell-field:last-child, .sell-sec > *:last-child { margin-bottom: 0; }
.sell-sec .sell-labelrow { margin: 0 0 .45rem; }
.sell-sec .sell-labelrow + .sell-main, .sell-sec .sell-main { margin-bottom: 1rem; }
.sell-sec input[type="text"], .sell-sec input[type="number"], .sell-sec select, .sell-sec textarea {
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .95rem;
}
.sell-sec input[type="text"], .sell-sec input[type="number"], .sell-sec select { height: 44px; }
.sell-page .sell-more-btn { height: 42px; font-size: .95rem; }
.sell-page .sell-actions {
    position: sticky; bottom: 0; z-index: 20; display: flex; gap: .6rem; margin: 0; padding: .55rem 16px calc(.55rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(16, 20, 26, .05);
}
.sell-page .sell-actions .btn { height: 42px; padding: 0 1rem; font-size: .95rem; border-radius: 10px; }
.sell-page .sell-cancel { flex: 0 0 96px; }
.sell-page .sell-publish { flex: 1 1 auto; box-shadow: none; }
@media (min-width: 900px) {
    .sell-form { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
    .sell-hero { margin: 0 0 1rem; border-radius: 14px; }
}

/* Maintenance page */
.maint { background: var(--band, #f5f8fd); display: grid; place-items: center; min-height: 100vh; margin: 0; }
.maint-box { max-width: 460px; padding: 2rem; text-align: center; }
.maint-box h1 { color: var(--blue); }

/* v1.0.18: top banner, pages and blog */
.site-banner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .45rem 2.4rem .45rem 1rem; font-size: .88rem; text-align: center; position: relative; background: var(--blue); color: #fff; }
.site-banner-text { margin: 0; }
.site-banner a { text-decoration: underline; font-weight: 600; margin-left: .35rem; }
.site-banner-close { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .2rem .5rem; opacity: .85; }
.site-banner-close:hover { opacity: 1; }
.site-banner { overflow: hidden; max-height: 120px; animation: banner-in .45s ease both; transition: max-height .4s ease, opacity .3s ease, padding .4s ease; }
.site-banner.is-closing { opacity: 0; padding-top: 0; padding-bottom: 0; }
.site-banner[hidden] { display: none; }
@keyframes banner-in { from { max-height: 0; opacity: 0; } to { max-height: 120px; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site-banner { animation: none; transition: none; } }

.cms { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 1.6rem; }
.cms-body { line-height: 1.7; color: var(--ink-2); }
.cms-body h2 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; color: var(--ink); }
.cms-body p, .cms-body ul { margin: 0 0 1rem; }
.cms-body ul { padding-left: 1.2rem; }
.cms-body a { color: var(--blue); text-decoration: underline; }
.cms-note { padding: .6rem .8rem; background: var(--line-2); border-radius: 8px; font-size: .9rem; color: var(--ink-2); }
.cms-note.is-error { color: #b42318; }
.blog { max-width: 960px; }
.blog-intro { margin: -.4rem 0 1rem; color: var(--muted); }
.blog-meta { font-size: .8rem; color: var(--muted); margin: 0 0 .4rem; }
.blog-meta a { color: inherit; text-decoration: underline; }
.blog-tools { display: flex; gap: .5rem; margin-bottom: .8rem; }
.blog-tools input { flex: 1; min-width: 0; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); color: var(--ink); font: inherit; }
.blog-cats { display: flex; gap: 1.1rem; overflow-x: auto; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.blog-cats a { padding: .5rem 0; color: var(--muted); font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.blog-cats a.is-active { color: var(--ink); border-bottom-color: var(--blue); }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; background: var(--surface, #fff); }
.blog-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; gap: .25rem; padding: .8rem .9rem 1rem; }
.blog-card-title { font-weight: 700; color: var(--ink); line-height: 1.3; }
.blog-card-text { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.blog-empty { color: var(--muted); padding: 1rem 0; }
.blog-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.2rem; font-size: .9rem; }
.blog-pager a { color: var(--blue); }
.post-cover { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin: .6rem 0 1rem; }
.post-comments h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.post-comment { padding: .7rem 0; border-top: 1px solid var(--line); }
.post-comment p { margin: .25rem 0 0; color: var(--ink-2); }
.post-form { display: flex; flex-direction: column; gap: .4rem; margin-top: 1rem; }
.post-form label { font-size: .85rem; font-weight: 600; }
.post-form input[type=text], .post-form textarea { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); color: var(--ink); font: inherit; }
.post-form .btn { align-self: flex-start; margin-top: .3rem; }

/* ======================================================================
   1.0.19: banner slides are rounded cards with room around them
   ====================================================================== */
.hero.hero--card { margin: 0 0 14px; padding: 18px 18px 16px; border-radius: 16px; }
.hero--card .hero-slides { margin-bottom: 12px; }
.hero--card .hero-title { font-size: 1.2rem; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
.hero--card .hero-sub { font-size: .86rem; line-height: 1.4; margin: 0 0 10px; max-width: 34ch; }
.hero--card .hero-dots { margin-top: 6px; }
.hero--card .hero-inner { max-width: none; }
.hero--card:not(.hero--cta) .hero-slides:last-child { margin-bottom: 0; }
.hero.hero--cta { margin: 0 0 14px; padding: 16px 18px 14px; }
.hero--cta::before { width: 130px; height: 130px; top: -50px; right: -40px; }
.hero--cta::after { width: 80px; height: 80px; bottom: -40px; left: -24px; }
.hero--cta .hero-slides { margin-bottom: 4px; }
.hero--cta .hero-title { font-size: 1.15rem; margin: 0 0 4px; }
.hero--cta .hero-sub { font-size: .84rem; margin: 0 0 10px; max-width: 32ch; }
.hero-btn { height: 34px; padding: 0 .9rem; font-size: .86rem; gap: .4rem; }
.hero-btn svg { width: 15px; height: 15px; }

/* 1.0.19: comment boxes. The Post button is always usable, in a calm shade. */
.composer-form .btn-primary,
.composer-form:has(textarea:placeholder-shown) .btn-primary { background: color-mix(in srgb, var(--blue) 78%, #fff); color: #fff; }
.composer-form .btn-primary:hover,
.composer-form:has(textarea:not(:placeholder-shown)) .btn-primary { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .composer-form .btn-primary { background: color-mix(in srgb, var(--blue) 70%, #000); color: #fff; }
.composer-inline-wrap { margin: 0 0 12px; }
.composer-inline-wrap .composer-form { padding: 0; }
.composer-inline-wrap .composer-guest { text-align: left; }
.comment-empty .empty-state { margin: 4px 0 12px; }

/* 1.0.20: on phones the bell panel sits under the header, full width and full height */
@media (max-width: 899px) {
    .notif-panel {
        top: var(--topbar-h); bottom: 0; left: 0; right: 0; width: auto; max-height: none;
        border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none;
        transform: translateY(-8px); opacity: 0; transition: transform .15s ease, opacity .15s ease, visibility 0s linear .15s;
    }
    .notif-panel.is-open { transform: none; opacity: 1; transition: transform .15s ease, opacity .15s ease; }
    .notif-panel .sp-head { padding: .7rem 1rem; }
    .notif-panel .notif-all { position: sticky; bottom: 0; }
}
.panel-overlay.is-clear { background: transparent; }

/* 1.0.20: filters panel — spaced selects, smaller buttons, Reset left / Apply right */
#filter-panel .filter-grid .loc-picker { display: grid; gap: .6rem; }
#filter-panel .filter-grid .loc-field { display: block; }
#filter-panel select, #filter-panel input[type="number"] { height: 40px; border-radius: 10px; font-size: .9rem; }
#filter-panel .sp-foot { justify-content: space-between; align-items: center; padding: .65rem 1.1rem calc(.65rem + env(safe-area-inset-bottom)); }
#filter-panel .sp-foot .btn { flex: 0 0 auto; height: 38px; border-radius: 10px; padding: 0 1.1rem; font-size: .9rem; }
#filter-panel .sp-foot .btn-primary { flex: 0 0 auto; }
#filter-panel .sp-foot .btn-ghost { flex: 0 0 auto; }

/* 1.0.20: slider hero with search runs edge to edge — no outer space, padding only on the items inside */
.hero.hero--edge { margin: -1.25rem -14px 16px; padding: 22px 0 18px; border-radius: 0; }
.hero--edge .hero-inner { max-width: none; padding: 0 16px; }
.hero--edge .hero-slides { margin-bottom: 14px; }
@media (max-width: 639px) { .hero.hero--edge { margin-top: -1rem; } }

/* 1.0.20: blog and pages — flat surfaces split by 6px light separators */
.sep6 { height: 6px; background: var(--line-2); margin: 0 -14px; }
.sep6--end { margin-top: 1rem; margin-bottom: -1.5rem; }
.cms.flat { padding-left: 0; padding-right: 0; }
.cms.flat .page-heading { margin-top: .4rem; }
.post-excerpt { margin: .2rem 0 .6rem; font-size: 1.08rem; line-height: 1.5; color: var(--ink-2); }
.cms.flat .post-cover { border-radius: 8px; }
.post-comments .post-comment { border-top: 1px solid var(--line-2); }
.post-related h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.related-row { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
.related-card { flex: 0 0 210px; display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; scroll-snap-align: start; }
.related-card img, .related-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--line-2); display: block; }
.related-title { font-weight: 700; line-height: 1.3; color: var(--ink); font-size: .95rem; }

.blog-hero { margin: -1.25rem -14px 0; padding: 1.5rem 1rem 1.3rem; text-align: center; }
.blog-hero-inner { max-width: 560px; margin: 0 auto; }
.blog-hero-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.blog-hero-text { margin: .35rem 0 0; font-size: .95rem; line-height: 1.45; }
.blog-search { display: flex; gap: .5rem; margin: .9rem auto 0; max-width: 440px; }
.blog-search input { flex: 1; min-width: 0; height: 40px; padding: 0 .9rem; border: 0; border-radius: 999px; background: #fff; color: #101828; font: inherit; }
.blog-search .btn { height: 40px; border-radius: 999px; }
.blog-page { max-width: 960px; margin: 0 auto; }
.blog-page .blog-cats { margin: 0; border-bottom: 0; padding: .7rem 0; gap: 1.1rem; }
.blog-block { padding: 1rem 0 1.2rem; }
.blog-block .section-head { margin-bottom: .7rem; }
.blog-page .sep6 { margin: 0 -14px; }
.blog-tools { display: flex; align-items: center; gap: .6rem; margin: 0 0 .9rem; }
.blog-count { margin-right: auto; font-size: .88rem; color: var(--muted); }
.blog-list { display: grid; gap: 0; grid-template-columns: 1fr; }
.blog-list .blog-card { border: 0; border-radius: 0; background: none; }
.blog-list[data-view="list"] .blog-card { flex-direction: row; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--line-2); }
.blog-list[data-view="list"] .blog-card:first-child { border-top: 0; padding-top: 0; }
.blog-list[data-view="list"] .blog-card-img { width: 112px; height: 84px; aspect-ratio: auto; border-radius: 8px; flex: 0 0 auto; }
.blog-list[data-view="list"] .blog-card-body { padding: 0; min-width: 0; }
.blog-list[data-view="list"] .blog-card-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list[data-view="grid"] { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem 1rem; }
.blog-list[data-view="grid"] .blog-card-img { border-radius: 8px; }
.blog-list[data-view="grid"] .blog-card-body { padding: .5rem 0 0; }
.blog-more { display: flex; justify-content: center; margin-top: 1rem; }
.blog-more .load-more { display: inline-flex; }
@media (min-width: 900px) { .blog-hero { margin-left: 0; margin-right: 0; border-radius: 0 0 14px 14px; } }

.contact-help--end { margin: 1.6rem 0 0; padding-top: 1rem; border-top: 6px solid var(--line-2); text-align: center; }

/* 1.0.20: Recently sold row */
.recently-sold { margin-top: 1.5rem; }
.recently-sold .sep6 { margin-bottom: 1rem; }
.section-note { font-size: .8rem; color: var(--muted); }
.recently-sold .card { opacity: .92; }

/* 1.0.20: preferences on Edit profile */
.prefs .pref { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; cursor: pointer; }
.prefs .pref input { margin-top: .25rem; flex: 0 0 auto; }
.prefs .pref strong { display: block; font-weight: 600; }
.prefs .pref small { display: block; color: var(--muted); }

/* 1.0.20: Menu footer at the bottom of the mobile menu panel */
.account-panel { overflow-y: auto; }
.sp-menu-foot { margin-top: auto; padding: .9rem 1rem calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sp-menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sp-menu-col h2 { margin: 0 0 .5rem; font-size: .95rem; font-weight: 700; color: var(--ink); }
.sp-menu-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.sp-menu-col a { font-size: .86rem; color: var(--muted); text-decoration: none; }
.sp-menu-col a:hover { color: var(--blue); }
.sp-copy { margin: .9rem 0 0; font-size: .75rem; color: var(--muted); text-align: center; }
.blog-card, .blog-card:hover { text-decoration: none; } .blog-card:hover .blog-card-title { color: var(--blue); }

/* 1.0.20: FAQ sections */
.faq-page { max-width: 760px; margin: 0 auto; }
.faq-section { padding: 1.1rem 0 1.3rem; }
.faq-title { margin: 0; font-size: 1.15rem; }
.faq-text { margin: .25rem 0 .8rem; color: var(--muted); }
.faq-page .sep6 { margin: 0 -14px; }

/* 1.0.20: member dashboard */
.dash { max-width: 980px; margin: 0 auto; }
.dash-hello { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.dash-title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.dash-sub { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.dstat { display: flex; flex-direction: column; gap: .15rem; padding: .95rem 1rem; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.dstat:hover { background: var(--line-2); }
.dstat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.dstat-label { font-size: .85rem; font-weight: 600; }
.dstat-note { font-size: .76rem; color: var(--muted); }
.dstat.is-alert .dstat-value { color: var(--blue); }
.dash-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.dtable-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.dtable-head h2 { margin: 0; font-size: 1rem; }
.dtable-head a { font-size: .85rem; color: var(--blue); }
.drows { list-style: none; margin: 0; padding: 0; }
.drow { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.drow:last-child { border-bottom: 0; }
.drow-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.drow-title { font-weight: 600; font-size: .92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.drow-title:hover { color: var(--blue); }
.drow-meta { font-size: .76rem; color: var(--muted); }
.drow-price { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.dempty { padding: 1.6rem .5rem; text-align: center; color: var(--muted); font-size: .9rem; }
.dempty p { margin: 0 0 .35rem; }
.dempty strong { color: var(--ink); }
.dempty .btn { margin-top: .6rem; }
.dash-h { font-size: 1rem; margin: 0 0 .7rem; }
.dash-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.dash-nav a { display: grid; grid-template-columns: 38px 1fr; column-gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: 12px; background: var(--surface-2); color: inherit; text-decoration: none; }
.dash-nav a:hover { background: var(--line-2); }
.dash-nav svg { grid-row: span 2; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); box-sizing: border-box; }
.dash-nav strong { font-size: .95rem; }
.dash-nav span { font-size: .78rem; color: var(--muted); }
@media (max-width: 800px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-tables { grid-template-columns: 1fr; }
    .dash-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .dash-nav { grid-template-columns: 1fr; } }

/* 1.0.20: My listings */
.ml-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.ml-head .page-heading { margin: 0; }
.ml-count { color: var(--muted); font-size: .9rem; }
.ml-table { width: 100%; border-collapse: collapse; }
.ml-table th { text-align: left; padding: .55rem .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ml-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ml-table tr.is-dim td { opacity: .75; }
.ml-table .ml-end { width: 44px; text-align: right; }
.ml-item { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.ml-item .thumb { width: 56px; height: 56px; flex: 0 0 auto; }
.ml-title { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
.ml-title:hover { color: var(--blue); }
.ml-sub { display: block; font-size: .78rem; color: var(--muted); }
.ml-price { font-weight: 700; white-space: nowrap; }
.ml-menu { position: relative; display: inline-block; }
.ml-menu .cmenu-btn { width: 34px; height: 34px; }
.ml-menu .menu-list { right: 0; left: auto; top: 100%; min-width: 170px; }
.ml-menu .menu-list button { display: block; width: 100%; text-align: left; }
@media (max-width: 720px) {
    .ml-table thead { display: none; }
    .ml-table, .ml-table tbody { display: block; }
    .ml-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem .8rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line-2); }
    .ml-table td { display: block; padding: 0; border: 0; }
    .ml-table td.ml-c-item { grid-column: 1 / 3; grid-row: 1; }
    .ml-table td.ml-end { grid-column: 3; grid-row: 1; width: auto; }
    .ml-table td.ml-c-cat { display: none; }
    .ml-table td.ml-c-price { grid-column: 1; grid-row: 2; }
    .ml-table td.ml-c-status { grid-column: 2 / 4; grid-row: 2; }
}

/* v1.0.21: hidden staff sign-in corner on the maintenance page, maths question */
.maint-hot { position: fixed; width: 48px; height: 48px; display: block; z-index: 5; }
.maint-hot--top-right { top: 0; right: 0; } .maint-hot--top-left { top: 0; left: 0; }
.maint-hot--bottom-right { bottom: 0; right: 0; } .maint-hot--bottom-left { bottom: 0; left: 0; }
.maint-hot--dot::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .25; top: 14px; right: 14px; }
.maint-hot--shade { background: radial-gradient(circle at top right, rgba(128,128,128,.18), transparent 70%); }
.maint-hot--shade.maint-hot--top-left { background: radial-gradient(circle at top left, rgba(128,128,128,.18), transparent 70%); }
.maint-hot--shade.maint-hot--bottom-right { background: radial-gradient(circle at bottom right, rgba(128,128,128,.18), transparent 70%); }
.maint-hot--shade.maint-hot--bottom-left { background: radial-gradient(circle at bottom left, rgba(128,128,128,.18), transparent 70%); }
.captcha-row { display: flex; align-items: center; gap: .6rem; font-size: .95rem; margin: .5rem 0; }
.captcha-input { width: 5rem; }
.crumbs--page { padding: .6rem 0 0; margin-bottom: .2rem; }

/* v1.0.21: member header spacing, edit profile sections, preferences */
.member-head { display: flex; align-items: center; gap: 16px; }
.member-head > div { display: grid; gap: 2px; flex: 1; min-width: 0; align-content: center; }
.member-avatar { grid-row: auto; flex: 0 0 auto; }
.member-name, .member-handle { align-self: auto; line-height: 1.25; }
.member-since { grid-column: auto; line-height: 1.25; }
.member-head .follow-btn, .member-head .btn { grid-column: auto; grid-row: auto; flex: 0 0 auto; }
.member-bio { margin: .4rem 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.pf { display: block; }
.pf-sec { border-top: 1px solid var(--line-2); padding: 0; margin: 0; }
.pf-sec:last-of-type { border-bottom: 1px solid var(--line-2); margin-bottom: 1.1rem; }
.pf-sec summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; cursor: pointer; list-style: none; }
.pf-sec summary::-webkit-details-marker { display: none; }
.pf-sec summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 3px 0; flex: 0 0 auto; transition: transform .2s; }
.pf-sec[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.pf-title { font-weight: 600; }
.pf-sum { margin-left: auto; color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.pf-body { padding: 0 0 1.1rem; display: grid; gap: .35rem; }
.pf-body label { margin-top: .5rem; }
.pf-body small { color: var(--muted); }
.pf .prefs { gap: .2rem; }
.pf .prefs .pref { display: flex; align-items: flex-start; gap: .75rem; margin: 0; padding: .6rem 0; cursor: pointer; }
.pf .prefs .pref input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: .15rem 0 0; padding: 0; flex: 0 0 auto; }
.pf .prefs .pref span { display: grid; gap: .1rem; min-width: 0; }

/* v1.0.21: My listings filter chips, mobile cards, scrollable table */
.ml-chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: none; }
.ml-chips::-webkit-scrollbar { display: none; }
.ml-chip { flex: 0 0 auto; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.ml-chip span { color: var(--muted); margin-left: .25rem; }
.ml-chip.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ml-chip.is-active span { color: inherit; opacity: .75; }
.ml-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ml-cards { display: none; }
.ml-card { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
.ml-card.is-dim { opacity: .8; }
.ml-card .thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.ml-card-body { display: grid; gap: .1rem; min-width: 0; }
.ml-card-body .ml-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-st--active { color: #15803d; } .ml-st--sold { color: var(--muted); } .ml-st--inactive, .ml-st--pending { color: #b45309; }
@media (max-width: 720px) {
    .ml-scroll { display: none; }
    .ml-cards { display: block; }
}

/* 1.0.24: menu panel bottom row, category featured rail */
.sp-base { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.sp-logo { font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue); }
.sp-logo .logo-img { height: 22px; }
.sp-copy { margin: 0; text-align: right; }
.cat-featured { margin-bottom: 1.25rem; }

/* 1.0.24: member area redesign — flat surface, 6px grey separators (dashboard, My listings, Edit profile) */
:root { --sep: #eceff3; }
:root[data-theme="dark"] { --sep: #1b2231; }
.dsec, .msec { padding: 1.1rem 0; }
.dsec + .dsec, .msec + .msec { border-top: 6px solid var(--sep); }
@media (max-width: 720px) {
    .dash, .ml, .pf-page { margin-left: -14px; margin-right: -14px; }
    .dsec, .msec, .pf-top, .pf-save { padding-left: 14px; padding-right: 14px; }
    .pf-page .pf-sec summary, .pf-page .pf-body { padding-left: 14px; padding-right: 14px; }
}
.dash { max-width: 980px; }
.dash-hello { display: flex; align-items: center; gap: .85rem; margin: 0; }
.dash-hello-text { flex: 1 1 auto; min-width: 0; }
.dash-title { font-size: 1.25rem; }
.dash-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: block; }
.dash-avatar--init { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 1.2rem; }
@media (max-width: 560px) { .dash-hello { flex-wrap: wrap; } .dash-cta { width: 100%; text-align: center; } }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.dstat { background: none; border-radius: 0; padding: .3rem 1rem; border-left: 1px solid var(--line-2); }
.dstat:first-child { border-left: 0; padding-left: 0; }
.dstat:hover { background: none; }
.dstat:hover .dstat-value { color: var(--blue); }
.dstat-value { font-size: 1.6rem; }
@media (max-width: 720px) {
    .dash-stats { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
    .dstat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .dstat:nth-child(3), .dstat:nth-child(4) { padding-top: 1rem; border-top: 1px solid var(--line-2); }
}
.dash-tables { display: block; margin: 0; }
.dtable-head { border: 0; padding: 0 0 .4rem; }
.dtable-head h2 { font-size: 1.02rem; }
.dt { display: block; }
.dt-head, .dt-row { display: grid; grid-template-columns: minmax(0, 2.6fr) 1fr 1fr 1fr; gap: .8rem; align-items: center; }
.dt-head { padding: .5rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.dt-row { padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.dt-row:last-child { border-bottom: 0; }
.dt-r { text-align: right; justify-self: end; }
.dt-item { display: flex; align-items: center; gap: .75rem; min-width: 0; color: inherit; text-decoration: none; }
.dash-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--surface-2); }
.dt-text { display: grid; min-width: 0; }
.dt-text strong { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-item:hover strong { color: var(--blue); }
.dt-text small { color: var(--muted); font-size: .76rem; }
.dt-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.dt-muted { color: var(--muted); font-size: .84rem; }
@media (max-width: 720px) {
    .dt-head { display: none; }
    .dt-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: .15rem; padding: .75rem 0; }
    .dt-item { grid-column: 1 / -1; }
    .dt-row .dt-c { display: none; }
    .dt-row .dt-price, .dt-row .dt-r { display: block; }
    .dt-item { grid-column: 1; grid-row: 1 / span 2; }
    .dt-row .dt-price { grid-column: 2; grid-row: 1; justify-self: end; }
    .dt-row .dt-r { grid-column: 2; grid-row: 2; }
    .dt-row .dt-r .dt-price { display: inline; }
    .dt-row .dt-muted { display: none; }
}
.dash-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; }
.dash-nav a { display: grid; grid-template-columns: 38px 1fr 16px; column-gap: .8rem; align-items: center; padding: .75rem 0; border-radius: 0; background: none; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; }
.dash-nav a:hover { background: none; }
.dash-nav a:hover strong { color: var(--blue); }
.dash-nav svg:not(.dn-go) { grid-row: auto; }
.dn-text { display: grid; min-width: 0; }
.dn-text strong { font-size: .95rem; }
.dn-text small { font-size: .78rem; color: var(--muted); }
.dn-go { width: 16px; height: 16px; color: var(--muted-2); grid-row: auto; }
.dash-nav .dn-go { background: none; padding: 0; }
@media (max-width: 800px) { .dash-nav { grid-template-columns: 1fr; } }

/* My listings */
.ml-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; flex-wrap: nowrap; }
.ml-head .page-heading { margin: 0; font-size: 1.4rem; }
.ml-count { display: block; margin-top: .15rem; font-size: .85rem; }
.ml-head .btn { flex: 0 0 auto; }
.ml-bar { padding: .6rem 0; }
.ml-chips { padding: 0; }
.ml-chip { border: 0; background: var(--surface-2); padding: .45rem .95rem; }
.ml-chip.is-active { background: var(--ink); color: var(--surface); }
.ml-list { padding-top: .4rem; }
.ml-card { grid-template-columns: 76px 1fr auto; gap: .9rem; padding: .85rem 0; align-items: start; }
.ml-card .thumb { width: 76px; height: 76px; border-radius: 10px; }
.ml-card-body { gap: .2rem; }
.ml-card-body .ml-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ml-card-body .ml-price { font-size: 1rem; }
.ml-card:last-child { border-bottom: 0; }

/* Edit profile */
.pf-page { max-width: 640px; margin: 0 auto; padding: 0; }
.pf-top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 6px solid var(--sep); }
.pf-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; display: block; }
.pf-avatar--init { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 1.6rem; font-weight: 800; }
.pf-top-text { min-width: 0; }
.pf-top-text h1 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.pf-top-text p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-page .pf { display: block; }
.pf-page .pf-sec { border: 0; border-bottom: 6px solid var(--sep); margin: 0; padding: 0; }
.pf-page .pf-sec:last-of-type { border-bottom: 6px solid var(--sep); margin: 0; }
.pf-page .pf-sec summary { padding: 1rem 0; gap: .8rem; }
.pf-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.pf-ic svg { width: 18px; height: 18px; }
.pf-page .pf-title { font-weight: 600; }
.pf-page .pf-sum { max-width: 50%; }
.pf-page .pf-body { padding: 0 0 1.2rem; }
.pf-save { padding: 1rem 0 .5rem; }
.pf-save .btn { width: 100%; }
@media (min-width: 721px) { .pf-save .btn { width: auto; min-width: 180px; } }

.dash-nav .dn-go { color: var(--muted-2); width: 16px; height: 16px; }
.dn-text strong { color: var(--ink); }
.dn-text small { color: var(--muted); }

/* 1.0.25: pinned / featured tags on My listings */
.ml-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .15rem; }
.ml-tag { font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.ml-tag--feat { background: var(--blue-soft); color: var(--blue); }
.ml-c-status .ml-tag { margin-left: .25rem; }

/* 1.0.25: compact banner lines, admin banner inputs */
.hero--compact .hero-heading span { color: inherit; }
.hero--compact .hero-heading .hero-l2 { color: var(--blue); }
.hero-heading--split span { display: block; }
.hl-row { display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.hl-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.hl-row input[type="color"] { flex: 0 0 auto; width: 44px; height: 38px; padding: 2px; }

/* 1.0.25: profile identity, location line, bio on its own, verified badge */
.member-loc { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.25; }
.member > .member-bio { margin: .8rem 0 0; text-align: left; max-width: 60ch; }
.pf-body input.is-locked { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.pf-body .opt { font-weight: 400; color: var(--muted); }
.vbadge { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.vbadge svg { width: 12px; height: 12px; }
.vbadge--yes { background: #e7f6ec; color: #15803d; }
.pf-verify { justify-self: start; margin-top: .4rem; }
.pf .pf-body > .pref { display: flex; align-items: flex-start; gap: .75rem; margin: .4rem 0 0; padding: .4rem 0; cursor: pointer; }
.pf .pf-body > .pref input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: .15rem 0 0; padding: 0; flex: 0 0 auto; }
.pf .pf-body > .pref span { display: grid; gap: .1rem; min-width: 0; }

/* 1.0.27: friendly empty comments, icon-only bottom tabs, recently sold heading */
.ce-prompt { display: flex; align-items: center; gap: .85rem; padding: .9rem 0 1rem; }
.ce-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.ce-ic svg { width: 20px; height: 20px; }
.ce-prompt div { display: grid; gap: .1rem; }
.ce-prompt strong { font-size: .98rem; }
.ce-prompt small { color: var(--muted); font-size: .84rem; }
.tabbar .tab.tab--icon { gap: 0; }
.recently-sold[hidden] { display: none; }

/* ---- v1.0.28: archive hero, left aligned ---- */
.archive-hero-inner { max-width: 920px; margin: 0; text-align: left; }
.archive-hero-title { text-align: left; margin: 0; }
.archive-hero-desc {
    margin: .35rem 0 .8rem; color: var(--muted); font-size: .92rem; line-height: 1.5; max-width: 62ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.archive-hero-desc.is-clamped { cursor: pointer; }
.archive-hero-desc.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.archive-hero .filters-search { margin: 0; }
.archive-hero-title + .filters-search { margin-top: .75rem; }
.archive-hero-sub { margin: .6rem 0 0; color: var(--muted); font-size: .85rem; text-align: left; }

/* ---- v1.0.28: friendly empty lists ---- */
.empty-block { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.5rem 1rem; text-align: center; color: var(--muted); }
.empty-block svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.empty-block p { margin: 0; font-size: .95rem; }
.empty-block a { color: var(--blue); font-weight: 600; text-decoration: none; }
.empty-block a:hover { text-decoration: underline; }

/* ---- v1.0.28: no native clear button in the header search on phones ---- */
@media (max-width: 767px), (pointer: coarse) {
    .topbar-search input[type="search"]::-webkit-search-cancel-button,
    .topbar-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
    .topbar-search input[type="search"] { -moz-appearance: textfield; }
}

/* ---- v1.0.28: member bio sits on the page, no rule above it ---- */
.member-head { border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; }
.member > .member-bio { margin: 4px 0 14px; padding: 0; border: 0; background: none; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 767px) {
    .member > .member-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .member > .member-bio.is-clamped { cursor: pointer; }
    .member > .member-bio.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
}

/* ---- v1.0.28: log out is a form button ---- */
.logout-form { margin: 0; }
button.sp-out { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; display: flex; align-items: center; gap: .7rem; }
.note-icon--system { background: var(--blue-soft); color: var(--blue); }

/* ---- v1.0.28: verify-your-email toast ---- */
.verify-toast {
    position: fixed; z-index: 90; top: 70px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px));
    display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 6px 24px rgba(16, 20, 26, .14); font-size: 13.5px; line-height: 1.4;
}
.verify-toast[hidden] { display: none; }
.verify-toast .vt-text { flex: 1 1 auto; min-width: 0; }
.verify-toast .vt-form { margin: 0; flex: 0 0 auto; }
.vt-resend { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.vt-close { flex: 0 0 auto; background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }

/* ---- v1.0.28: formatted text on blog posts and pages ---- */
.cms-body blockquote { margin: 0 0 1rem; padding: .15rem 0 .15rem 1rem; border-left: 3px solid var(--line); color: var(--muted); font-style: normal; }
.cms-body blockquote p { margin: 0 0 .5rem; }
.cms-body blockquote p:last-child { margin-bottom: 0; }
.cms-body mark { background: color-mix(in srgb, #fde047 55%, transparent); color: inherit; padding: 0 .15em; border-radius: 3px; }
.cms-body ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.cms-body h3 { margin: 1.3rem 0 .4rem; font-size: 1.05rem; color: var(--ink); }

/* ---- v1.0.29: product page action buttons ----
   A round heart, a quiet Comment button and a solid Message button on one line. */
.pp-cta { display: flex; align-items: center; gap: 10px; }
.pp-cta .pp-cta-btn, .pp-actions .pp-msg { height: 46px; border-radius: 12px; font-size: 14.5px; font-weight: 600; gap: 8px; padding: 0 14px; transition: background .15s, border-color .15s, color .15s; }
.pp-cta .pp-comment { flex: 1 1 0; border: 0; background: var(--surface-2); color: var(--ink-2); }
.pp-cta .pp-comment:hover { background: var(--line); }
.pp-actions .pp-msg { flex: 1.6 1 0; border: 0; background: var(--blue); color: #fff; box-shadow: none; }
.pp-actions .pp-msg:hover { background: var(--blue-dark); }
.pp-cta .pp-save, .pp-cta .pp-save.pp-cta-btn { flex: 0 0 46px; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.pp-cta .pp-save:hover { border-color: var(--red); color: var(--red); }
.pp-cta .pp-save.is-saved { background: #fef3f2; border-color: #fecdca; color: var(--red); }
.pp-cta .pp-save.is-saved svg { fill: currentColor; color: var(--red); }
:root[data-theme="dark"] .pp-cta .pp-save.is-saved { background: color-mix(in srgb, var(--red) 14%, var(--surface)); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.pp-actions .pp-cart { margin-top: 10px; }
.pp-actions .pp-cart .btn { height: 46px; border-radius: 12px; }

/* ---- v1.0.29: public profile header ---- */
.mh { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 18px 0 8px; }
.mh-avatar { grid-row: span 2; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.mh-id { min-width: 0; align-self: end; }
.mh-name { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; overflow-wrap: anywhere; }
.mh-name .vbadge { margin: 0; }
.mh-handle { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.mh-meta { margin: 0; grid-column: 2; align-self: start; display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted-2, var(--muted)); font-size: 13px; }
.mh-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 8px 2px -7px; border-radius: 50%; background: currentColor; opacity: .6; }
.mh-act { grid-column: 1 / -1; margin-top: 10px; }
.mh-act .follow-btn, .mh-act .btn { width: 100%; justify-content: center; text-align: center; padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.mh-act .follow-btn:not(.is-following) { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.mh-act .follow-btn.is-following { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.mh-act:empty { display: none; }
.member > .member-bio { margin: 12px 0 0; }
.mh-stats { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.mh-stats li { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 11px 6px; background: var(--surface-2); border-radius: 12px; min-width: 0; }
.mh-stats strong { font-size: 18px; font-weight: 700; letter-spacing: -.2px; line-height: 1.2; }
.mh-stats span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 640px) {
    .mh { grid-template-columns: auto 1fr auto; padding-top: 24px; gap: 4px 20px; }
    .mh-avatar { width: 104px; height: 104px; grid-row: span 2; }
    .mh-meta { grid-column: 2; }
    .mh-act { grid-column: 3; grid-row: 1 / span 2; margin: 0; align-self: center; }
    .mh-act .follow-btn, .mh-act .btn { width: auto; min-width: 130px; }
    .mh-name { font-size: 24px; }
}

/* ---- v1.0.29: the featured row follows the grid/list switch ----
   In list view the featured listings lead the list, six at most. */
.rail[data-featured][data-view="list"] { display: grid; grid-template-columns: 1fr; gap: 12px; overflow: visible; margin: 0; padding: 0; }
.rail[data-featured][data-view="list"] .card { width: auto; flex-direction: row; }
.rail[data-featured][data-view="list"] .card:nth-child(n+7) { display: none; }
.rail[data-featured][data-view="list"] .card-photo { flex: 0 0 132px; align-self: stretch; }
.rail[data-featured][data-view="list"] .card-media { aspect-ratio: auto; height: 100%; min-height: 132px; }
.rail[data-featured][data-view="list"] .card-body { justify-content: center; min-width: 0; flex: 1 1 auto; }
.rail[data-featured][data-view="list"] .card-title { min-height: 0; }
.rail[data-featured][data-view="list"] .card-seller { display: none; }
@media (min-width: 640px) {
    .rail[data-featured][data-view="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rail[data-featured][data-view="list"] .card-photo { flex-basis: 180px; }
}

/* ---- v1.0.29: filter, sort and layout controls ---- */
.tools-row { gap: 8px; }
.tools .tool-btn, .tools .tool-sort { height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s; }
.tools .tool-btn { padding: 0 14px; font-weight: 600; font-size: 14px; gap: 8px; }
.tools .tool-btn:hover, .tools .tool-sort:hover { border-color: var(--muted-2, var(--muted)); }
.tools .tool-btn svg { width: 17px; height: 17px; }
.tool-sort { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; max-width: 220px; }
.tool-sort .ts-lead { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tool-sort .ts-chev { position: absolute; right: 11px; width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.tool-sort .tool-select { width: 100%; max-width: none; height: 100%; border: 0; background: transparent; border-radius: 12px; padding: 0 32px 0 36px; font-size: 14px; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
.tool-sort:focus-within, .tools .tool-btn:focus-visible { border-color: var(--blue); outline: 0; }
.tools .view-toggle { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; height: 40px; border: 0; border-radius: 12px; background: var(--surface-2); overflow: visible; }
.tools .view-toggle button { width: 36px; height: 34px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--muted); transition: background .15s, color .15s; }
.tools .view-toggle button:hover { color: var(--ink); }
.tools .view-toggle button.is-active { background: var(--surface); color: var(--blue); border-color: var(--line); }
.tools .view-toggle svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .tools .tool-btn, :root[data-theme="dark"] .tools .tool-sort { background: var(--surface); }
:root[data-theme="dark"] .tools .view-toggle { background: var(--surface-2); }
:root[data-theme="dark"] .tool-sort .tool-select option { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .tools .view-toggle { background: var(--surface-2) !important; }

/* ---- v1.0.30: simpler profile stats: one plain line, no tiles ---- */
.mh-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 4px; padding: 0; }
.mh-stats li { display: inline-flex; flex-direction: row; align-items: baseline; gap: 5px; padding: 0; background: none; border-radius: 0; }
.mh-stats strong { font-size: 16px; font-weight: 700; }
.mh-stats span { font-size: 14px; color: var(--muted); }
.mh-act .follow-btn, .mh-act .btn { padding: 9px 20px; }
@media (min-width: 640px) { .mh-act .follow-btn, .mh-act .btn { min-width: 120px; } }

/* ===== v1.0.31 / v1.0.32 ===== */
/* Archive + home heroes */
.archive-hero-loc { color: var(--muted); font-weight: 600; }
.hero.hero--simple {
    background: var(--blue-xl) !important; border-radius: 0; text-align: left;
    margin: -1.25rem -14px 1rem; padding: 20px 14px 22px;
    box-shadow: 0 0 0 100vmax var(--blue-xl); clip-path: inset(0 -100vmax);
}
.hero--simple .hero-heading { margin: 0 0 8px; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); max-width: none; }
.hero--simple .hero-l1 { color: var(--ink); }
.hero--simple .hero-l2 { color: var(--blue); }
.hero--simple .hero-desc { margin: 0 0 14px; color: var(--muted); max-width: 52ch; line-height: 1.5; font-size: 15px; }
.hero-simple-search { display: flex; align-items: center; gap: 8px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; max-width: 560px; }
.hero-simple-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-simple-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; box-shadow: none; font-size: 16px; padding: 8px 2px; }
.hero-simple-search .btn { border-radius: 999px; padding: 9px 20px; }

/* Single listing: stats row, buttons, seller, comments */
.pp-meta svg { width: 16px; height: 16px; }
.pp-seller { border-top: 1px solid var(--line-2); margin-top: .25rem; }
.pp-actions { gap: .6rem; flex-direction: column; flex-wrap: nowrap; }
.pp-cta { display: flex; align-items: center; gap: 10px; }
.pp-cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; min-width: 0;
    padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-2);
    font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.pp-cta-btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pp-cta-btn:hover { background: var(--surface-2); color: var(--ink); }
.pp-cta-btn.has-label { flex: 1 1 0; }
.pp-cta-btn.is-icon { flex: 0 0 46px; width: 46px; padding: 0; border-radius: 50%; }
.pp-cta .pp-comment, .pp-cta .pp-comment.pp-cta-btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pp-cta .pp-comment:hover { background: var(--surface-2); }
.pp-cta-btn.is-primary, .pp-cta .pp-msg.is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pp-cta-btn.is-primary:hover { background: var(--blue-dark, var(--blue)); color: #fff; }
.pp-cta-btn.is-big { width: 100%; flex: 1 1 auto; height: 48px; }
.pp-cta--big { display: block; }
.pp-cta--big .pp-cart { display: block; }
.pp-cta--big .pp-cta-btn.is-icon { width: 48px; flex: none; }
/* Saved and reshared are blue, never red or green */
.pp-cta .pp-save:hover, .pp-bar .pp-save:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.pp-cta .pp-save.is-saved, .pp-bar .pp-save.is-saved, .pp-cta .pp-reshare.is-reshared { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.pp-cta .pp-save.is-saved svg, .pp-bar .pp-save.is-saved svg { fill: currentColor; color: var(--blue); }
.pp-cta .pp-reshare:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
:root[data-theme="dark"] .pp-cta .pp-save.is-saved, :root[data-theme="dark"] .pp-bar .pp-save.is-saved, :root[data-theme="dark"] .pp-cta .pp-reshare.is-reshared { background: color-mix(in srgb, var(--blue) 18%, var(--surface)); border-color: var(--blue); }

/* Fixed action bar (phones) */
.pp-bar-spacer { height: 0; }
.pp-bar { display: none; }
@media (max-width: 719px) {
    .pp-bar-spacer { height: 5rem; }
    .pp-bar {
        display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line);
    }
}

/* Comments: heading, quiet note, grey box */
.comments { border-top: 1px solid var(--line-2); }
.ce-note { margin: -.35rem 0 .85rem; font-size: .88rem; color: var(--muted-2, var(--muted)); font-weight: 400; }
.comment-empty { padding: 0; }
.composer-form.composer-inline { display: block; position: relative; background: var(--surface-2); border: 0; border-radius: 16px; padding: 12px 14px; }
.composer-inline .composer-avatar { display: none; }
.composer-inline textarea { display: block; width: 100%; min-height: 44px; height: auto; border: 0; background: transparent; box-shadow: none; padding: 2px 0; border-radius: 0; font-size: 16px; resize: none; }
.composer-inline textarea:focus { box-shadow: none; border: 0; }
.composer-inline .btn { display: block; margin: 8px 0 0 auto; height: 38px; padding: 0 20px; border-radius: 10px; }

/* Profile */
.mh-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.mh-meta span + span::before { content: none; }
.mh-bio { margin: 16px 0 0; }
.mh-stats { margin: 18px 0 0; display: flex; gap: 22px; }
.mh-act { display: flex; gap: 10px; margin: 18px 0 4px; }
.mh-act > * { flex: 1 1 0; min-width: 0; width: auto; }
.mh-act form { display: contents; }
.mtabs { display: flex; width: 100%; margin: 22px 0 18px; border-bottom: 1px solid var(--line-2); }
.mtabs a { flex: 1 1 0; text-align: center; padding: 12px 0; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mtabs a.is-active, .mtabs a[aria-current] { color: var(--ink); border-bottom-color: var(--blue); }
.about-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.about-list dt { color: var(--muted); }
.about-list dd { margin: 0; }

/* Messages by person */
.ctx-card { display: flex; align-items: center; gap: 10px; align-self: center; margin: 10px 0; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .85rem; text-decoration: none; }
.about-chip { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; }
.thread-who { color: inherit; text-decoration: none; }

/* Similar listings: clearly apart from the archive itself */
.similar-listings { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.similar-listings .rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
.similar-listings .rail > * { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 720px) { .similar-listings .rail > * { flex-basis: calc((100% - 60px) / 6); } }

/* Product card meta: clean, no rule, no icon */
.card-meta { border-top: 0; padding-top: 0; margin-top: .3rem; font-size: .75rem; color: var(--muted); }

/* Categories strip slides away on scroll when switched on */
.strip-auto .site-header { background: transparent; pointer-events: none; }
.strip-auto .topbar { background: var(--surface); position: relative; z-index: 2; pointer-events: auto; }
.strip-auto .category-strip { background: var(--surface); transition: transform .3s ease, opacity .25s ease; pointer-events: auto; }
.strip-auto.strip-away .category-strip { transform: translateY(-101%); opacity: 0; pointer-events: none; }
:root[data-theme="dark"] .strip-auto .topbar, :root[data-theme="dark"] .strip-auto .category-strip { background: var(--bg); }

/* Contact */
.contact-form-wrap { padding: 4px 0; }
.contact-field input, .contact-field textarea { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.contact-form .btn { align-self: flex-start; padding: 12px 28px; }
.contact-item a, .contact-item span { color: var(--ink-2); font-weight: 400; }
.contact-item a:hover { color: var(--blue); }
.crumbs--page { margin: 10px 0; font-size: .85rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs--page a { color: var(--muted); text-decoration: none; }

/* Admin-free: settings table lives in admin.css */
.pp-bar .pp-cart { flex: 1 1 0; display: flex; min-width: 0; }
.pp-bar .pp-cart .pp-cta-btn { width: 100%; }
.pp-bar .pp-cta-btn.is-icon { flex: 0 0 46px; }
.cta-table + p { margin-top: .5rem; }

/* v1.0.34: Seller pages, "@" search, cart quantities */
.sp-cover { height: 140px; margin: 0 0 -36px; background: var(--surface-2, #eef1f5); overflow: hidden; }
.sp-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-cover--none { height: 72px; }
.sp-head { position: relative; }
.sp-logo { border: 3px solid var(--bg, #fff); background: var(--bg, #fff); }
.sp-note { margin: 0 0 8px; font-size: .9rem; color: var(--muted, #667085); }
.pf-tabs { margin-bottom: 16px; }
.sp-cover-prev { display: block; max-width: 100%; height: auto; margin-bottom: 8px; }
.ss-list { list-style: none; margin: 12px 0 0; padding: 0; }
.ss-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #e4e7ec); text-decoration: none; color: inherit; }
.ss-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.ss-text { display: flex; flex-direction: column; gap: 2px; }
.qty-step { display: inline-flex; align-items: center; gap: 10px; }
.qty-step button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line, #d0d5dd); background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.qty-step button:disabled { opacity: .35; cursor: default; }
.qty-step output { min-width: 1.5em; text-align: center; }
