/* ============================================================
   Cariku Marketplace — Design System v2 (mobile-first)
   ============================================================ */
:root {
    --primary: #2e7d32;
    --primary-dark: #256428;
    --primary-deep: #1b4d20;
    --primary-light: #e7f4e8;
    --violet: #56b45e;
    --accent: #ffb020;
    --ink: #14162b;
    --ink-soft: #4b4f6b;
    --muted: #9094b0;
    --bg: #f5f6fb;
    --card: #ffffff;
    --border: #e6e8f2;
    --green: #12b76a;
    --logo-green: #2f4226; /* Cariku brand green (sampled from logo wordmark) */
    --red: #f04438;
    --price: #217a2b;      /* prices & deals — brand green */
    --price-dark: #1b5e22;
    --sale: #2e7d32;
    --radius: 10px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(20, 22, 43, .05), 0 10px 30px rgba(20, 22, 43, .07);
    --shadow-lg: 0 24px 60px rgba(27, 77, 32, .18);
    --grad: linear-gradient(135deg, #37a24a, #2e7d32);
    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Base size matches Shopee (14px). Everything is in rem, so this scales all
   text down proportionally while px-based spacing/layout stays put. */
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 87.5%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    padding-bottom: 68px; /* room for mobile bottom nav */
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
}
.pane-search input { min-width: 0; }
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
main { min-height: 60vh; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Top bar ---------------- */
.topbar {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(230,232,242,.8);
    position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; white-space: nowrap; letter-spacing: -.02em; }
.logo span { color: var(--logo-green); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.logo-img { height: 42px; width: auto; display: block; }
.site-footer .logo span { color: #a3c76d; } /* lighter green for dark footer */
.site-footer .logo-img { height: 46px; }
@media (max-width: 720px) { .logo-img { height: 36px; } .logo { font-size: 1.32rem; } }

.nav-search { flex: 1; display: flex; max-width: 440px; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; transition: .2s; }
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(46,125,50,.12); }
.nav-search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; font-size: .92rem; outline: none; min-width: 0; font-family: inherit; }
.nav-search button { border: 0; background: transparent; padding: 0 15px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; transition: color .18s; }
.nav-search button:hover { color: var(--primary-dark); }
.nav-search button svg { width: 19px; height: 19px; }

.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links > a { color: var(--ink-soft); font-weight: 700; font-size: .9rem; transition: .15s; }
.nav-links > a:hover { color: var(--primary-dark); }
.lang-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-toggle a { padding: 4px 10px; font-size: .76rem; font-weight: 700; color: var(--muted); }
.lang-toggle a.active { background: var(--primary); color: #fff; }

/* dropdown */
.dropdown { position: relative; }
.avatar-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
    background: var(--grad); color: #fff; font-weight: 700; font-size: 1rem;
    box-shadow: 0 4px 14px rgba(46,125,50,.4); transition: .2s;
}
.avatar-btn:hover { transform: scale(1.06); }
.dropdown-menu {
    display: none; position: absolute; right: 0; top: 52px; background: var(--card);
    border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
    min-width: 220px; overflow: hidden; z-index: 60;
    animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dropdown-menu.open { display: block; }
.dropdown-header { padding: 13px 18px; font-weight: 700; border-bottom: 1px solid var(--border); background: var(--bg); font-size: .92rem; }
.dropdown-menu a { display: flex; align-items: center; gap: 11px; padding: 11px 18px; color: var(--ink-soft); font-size: .9rem; font-weight: 600; transition: .12s; }
.dropdown-menu a svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; transition: color .12s; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary-dark); padding-left: 22px; }
.dropdown-menu a:hover svg { color: var(--primary); }
.dropdown-menu .admin-link { color: #b45309; }

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: .93rem;
    border: 0; cursor: pointer; transition: .2s cubic-bezier(.2,.7,.3,1.2); text-align: center;
    font-family: inherit; letter-spacing: .01em;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(46,125,50,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(46,125,50,.45); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: #fff; border: 2px solid var(--primary); color: var(--primary-dark); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--ink-soft); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn-danger { background: #fee4e2; color: var(--red); }
.btn-danger:hover { background: #fecdca; }
.btn-success { background: #d1fadf; color: #027a48; }
.btn-success:hover { background: #a6f4c5; }
.btn-sm { padding: 8px 15px; font-size: .84rem; border-radius: 10px; }
.btn-lg { padding: 16px 34px; font-size: 1.04rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn:focus-visible, .bell-btn:focus-visible, .avatar-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------------- Alerts / badges ---------------- */
.flash-wrap { margin-top: 16px; }
.alert { padding: 14px 20px; border-radius: 14px; margin-bottom: 10px; font-weight: 700; font-size: .92rem; border: 1px solid transparent; animation: pop .25s ease; }
.alert-success { background: #ecfdf3; color: #027a48; border-color: #a6f4c5; }
.alert-error { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.alert-warning { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.alert-info { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-gray { background: #f2f4f7; color: #475467; }
.badge-blue { background: #eff8ff; color: #175cd3; }
.badge-amber { background: #fffaeb; color: #b54708; }
.badge-purple { background: #f4ebff; color: #6941c6; }
.badge-green { background: #ecfdf3; color: #027a48; }
.badge-red { background: #fef3f2; color: #b42318; }

/* ---------------- Hero (landing) ---------------- */
.hero {
    position: relative; overflow: hidden;
    background: radial-gradient(1100px 550px at 15% -10%, rgba(46,125,50,.5), transparent 60%),
                radial-gradient(900px 480px at 95% 5%, rgba(168,85,247,.4), transparent 60%),
                radial-gradient(700px 400px at 50% 110%, rgba(255,176,32,.15), transparent 60%),
                linear-gradient(180deg, #12102b, #1c1745 70%, #241a5e);
    color: #fff; padding: 76px 0 96px; text-align: center; overflow-x: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 90%);
}
.hero > .container { position: relative; }
.hero-eyebrow {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #d6d1ff; padding: 8px 18px; border-radius: 999px; font-size: .82rem; font-weight: 700;
    margin-bottom: 22px; backdrop-filter: blur(6px); max-width: 100%;
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.12; font-weight: 700; max-width: 820px; margin: 0 auto 18px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #b3a6ff, #f2a7ff, #ffd08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: #b7b3e6; max-width: 580px; margin: 0 auto 34px; font-size: 1.1rem; }
.hero-search { display: flex; max-width: 600px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 7px; box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.07); }
.hero-search input { flex: 1; border: 0; outline: none; padding: 13px 22px; font-size: 1rem; border-radius: 999px; min-width: 0; font-family: inherit; color: var(--ink); }
.hero-search button { border-radius: 999px; }
.hero-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.hero-chips a { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); color: #e4e1ff; padding: 8px 17px; border-radius: 999px; font-size: .85rem; font-weight: 700; transition: .2s; backdrop-filter: blur(4px); }
.hero-chips a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
/* split hero (products | services) */
.hero-toggle { display: none; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; text-align: left; }
.hero-pane {
    display: flex; flex-direction: column; gap: 14px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 30px;
    backdrop-filter: blur(8px); transition: .25s; position: relative; overflow: hidden;
}
.hero-pane.products { background: linear-gradient(160deg, rgba(99,102,241,.34), rgba(255,255,255,.03)); }
.hero-pane.services { background: linear-gradient(160deg, rgba(192,38,211,.32), rgba(255,255,255,.03)); }
.hero-pane:hover { border-color: rgba(255,255,255,.32); transform: translateY(-3px); }
.pane-icon { width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.hero-pane h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.hero-pane p { color: #c9c5ec; font-size: .95rem; margin: 0; }
.pane-search { display: flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pane-search input { flex: 1; border: 0; outline: none; padding: 11px 18px; border-radius: 999px; min-width: 0; color: var(--ink); font-family: inherit; font-size: .95rem; }
.pane-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pane-chips a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #e6e3ff; padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; transition: .18s; }
.pane-chips a:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.pane-cta { margin-top: auto; align-self: flex-start; background: #fff; color: var(--primary-deep); }
.pane-cta:hover { transform: translateY(-2px) scale(1.02); }

.hero-stats { display: flex; justify-content: center; gap: clamp(24px, 7vw, 80px); margin-top: 52px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.hero-stats span { color: #9d97d8; font-size: .84rem; font-weight: 600; }

/* trust strip */
.trust-strip { background: #12102b; color: #8f89c9; padding: 15px 0; font-size: .84rem; font-weight: 700; }
.trust-strip .container { display: flex; gap: clamp(16px, 5vw, 60px); justify-content: center; flex-wrap: wrap; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.section-head .kicker { display: inline-block; color: var(--primary-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.section-head .see-all { font-weight: 700; font-size: .9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.section-head .see-all:hover { gap: 10px; }

/* category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
    background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 22px 14px 18px; text-align: center; transition: .22s; color: var(--ink); position: relative; overflow: hidden;
}
.cat-card::after { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: .22s; }
.cat-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-card:hover::after { opacity: .06; }
.cat-card .icon {
    width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
    background: var(--primary-light);
    transition: .22s;
}
.cat-card:hover .icon { transform: scale(1.12) rotate(-4deg); }
.cat-card .name { font-weight: 600; font-size: .9rem; display: block; }
.cat-card .count { color: var(--muted); font-size: .76rem; font-weight: 600; }

/* listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.listing-card {
    background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: .25s; color: var(--ink); display: flex; flex-direction: column; position: relative;
}
.listing-card:hover { box-shadow: 0 6px 18px rgba(20,22,43,.09); transform: translateY(-2px); border-color: rgba(46,125,50,.5); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.card-media .thumb, .card-media .img-placeholder { height: 100%; width: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.listing-card:hover .card-media .thumb { transform: scale(1.07); }
.img-placeholder { display: flex; align-items: center; justify-content: center; }
.img-placeholder span { font-size: 3rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.media-chip {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 5px 12px; border-radius: 999px; font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: #fff;
    backdrop-filter: blur(6px);
}
.media-chip.product { background: rgba(86,70,232,.85); }
.media-chip.service { background: rgba(192,38,211,.85); }
.media-rating {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    background: rgba(20,22,43,.75); color: #ffd08a; backdrop-filter: blur(6px);
    padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700;
}
.listing-card .body { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-card h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-card .seller { color: var(--muted); font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.listing-card .seller .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .64rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.listing-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--border); }
.listing-card .price { font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; color: var(--price); }
.listing-card .price small { font-size: .72rem; font-weight: 700; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .8rem; font-weight: 600; margin-left: 4px; }
.disc-badge {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    background: linear-gradient(135deg, #f04438, #e0330f); color: #fff;
    font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    box-shadow: 0 3px 8px rgba(240,68,56,.4);
}
.listing-card .buy-hint { font-size: .76rem; font-weight: 700; color: var(--muted); transition: .2s; }
.listing-card:hover .buy-hint { color: var(--primary-dark); }
.type-tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.type-product { color: var(--primary-dark); }
.type-service { color: #c026d3; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.step {
    background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; position: relative; transition: .22s; overflow: hidden;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(46,125,50,.3); }
.step .num {
    width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff;
    font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
    margin-bottom: 16px; box-shadow: 0 8px 18px rgba(46,125,50,.35);
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; font-weight: 700; }
.step p { color: var(--ink-soft); font-size: .9rem; }
.step .ghost-num { position: absolute; right: 10px; top: -14px; font-size: 5.5rem; font-weight: 700; color: var(--primary-light); z-index: 0; user-select: none; }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quote-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .22s; }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote-card .stars { color: var(--accent); font-size: .95rem; letter-spacing: 2px; margin-bottom: 10px; }
.quote-card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 16px; }
.quote-card .who { display: flex; align-items: center; gap: 11px; }
.quote-card .who .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.quote-card .who strong { display: block; font-size: .9rem; }
.quote-card .who span { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* CTA band */
.cta-band {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #237a2e, #2e9d3f 55%, #56b45e);
    border-radius: 26px; color: #fff; padding: clamp(36px, 6vw, 64px); text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 26px 26px;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5rem, 3.8vw, 2.3rem); margin-bottom: 10px; font-weight: 700; letter-spacing: -.02em; }
.cta-band p { color: #e4dcff; margin-bottom: 26px; max-width: 520px; margin-inline: auto; }
.cta-band .btn { background: #fff; color: var(--primary-deep); }
.cta-band .btn:hover { transform: translateY(-2px) scale(1.02); }

/* ---------------- Forms ---------------- */
.form-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow); max-width: 490px; margin: 44px auto; }
.form-card.wide { max-width: 730px; }
.form-card h1 { font-size: 1.5rem; margin-bottom: 4px; font-weight: 700; letter-spacing: -.02em; }
.form-card .sub { color: var(--muted); font-size: .93rem; margin-bottom: 24px; }
.form-group { margin-bottom: 17px; }
.form-group label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-size: .95rem; font-family: inherit; background: var(--bg); transition: .18s; outline: none; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(46,125,50,.13); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--ink-soft); }

/* ---------------- Page & dashboard layout ---------------- */
.page-head { padding: 34px 0 10px; }
.page-head h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--muted); font-weight: 500; }

.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 30px 0 56px; align-items: start; }
.dash-side { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; position: sticky; top: 86px; padding: 8px; }
.dash-side a { display: flex; gap: 10px; padding: 12px 15px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; border-radius: 11px; transition: .15s; }
.dash-side a:hover { background: var(--bg); color: var(--ink); }
.dash-side a.active { background: var(--primary-light); color: var(--primary-dark); }
.dash-main { min-width: 0; }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 15px; margin-bottom: 26px; }
.stat-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .label { color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-card .value { font-size: 1.6rem; font-weight: 700; margin-top: 3px; letter-spacing: -.02em; }
.stat-card .trend { font-size: .78rem; color: var(--green); font-weight: 700; }
.stat-card.accent { background: var(--grad); border: 0; color: #fff; box-shadow: 0 14px 34px rgba(46,125,50,.35); }
.stat-card.accent .label { color: #ded9ff; }

/* panels & tables */
.panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.panel-head { padding: 17px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.panel-body { padding: 22px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th { text-align: left; padding: 12px 18px; background: #fafbff; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #fafaff; }
.t-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* filter bar */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 15px; margin-bottom: 22px; }
.filter-bar select, .filter-bar input { padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 10px; font-size: .88rem; background: var(--bg); outline: none; font-family: inherit; transition: .15s; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); background: #fff; }
.filter-bar .grow { flex: 1; min-width: 150px; }
.filter-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--border); }
.filter-row2 .fr-label { font-weight: 700; font-size: .82rem; color: var(--ink-soft); }
.filter-row2 .price-in { width: 90px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 9px; font-size: .85rem; background: var(--bg); outline: none; }
.filter-row2 .price-in:focus { border-color: var(--primary); background: #fff; }
.sale-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: .84rem; font-weight: 700; cursor: pointer; color: var(--ink-soft); background: var(--bg); transition: .15s; }
.sale-toggle.on { background: var(--price); color: #fff; border-color: var(--price); }
.fr-clear { margin-left: auto; color: var(--red); font-weight: 700; font-size: .84rem; }

/* ---------------- Listing detail ---------------- */
.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; padding: 34px 0 56px; align-items: start; }
.detail-media { border-radius: 22px; overflow: hidden; border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.detail-media img, .detail-media .img-placeholder { width: 100%; height: 400px; object-fit: cover; }
.detail-media .img-placeholder span { font-size: 5rem; }
.detail-info { position: sticky; top: 90px; }
.detail-info h1 { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.28; margin: 10px 0 10px; font-weight: 700; letter-spacing: -.02em; }
.detail-price { font-size: 2.1rem; font-weight: 700; color: var(--primary-deep); margin: 16px 0; letter-spacing: -.03em; }
.seller-box { display: flex; gap: 13px; align-items: center; background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 16px; margin: 18px 0; }
.seller-box .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: 1.1rem; box-shadow: 0 6px 14px rgba(46,125,50,.3); }
.desc-panel { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.desc-panel h2 { font-size: 1.12rem; margin-bottom: 12px; font-weight: 700; }
.desc-panel p { color: var(--ink-soft); white-space: pre-line; }

/* reviews */
.review-item { border-top: 1px solid var(--border); padding: 16px 0; }
.review-item .who { font-weight: 700; font-size: .92rem; }
.review-item .stars { color: var(--accent); }
.review-item p { color: var(--ink-soft); font-size: .92rem; }

/* ---------------- Order tracking timeline ---------------- */
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--muted); border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--border); }
.timeline li.done::before { background: var(--green); box-shadow: 0 0 0 2.5px var(--green); }
.timeline li strong { display: block; font-size: .96rem; font-weight: 700; }
.timeline li .tl-note { color: var(--ink-soft); font-size: .87rem; }
.timeline li .tl-date { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* order summary box */
.order-box { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; }
.order-box .row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .93rem; }
.order-box .row.total { border-top: 2px solid var(--border); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.08rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: #12102b; color: #8f89c9; margin-top: 48px; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; padding-bottom: 34px; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.site-footer h4 { color: #d6d1ff; font-size: .82rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { display: block; color: #8f89c9; font-size: .89rem; padding: 4px 0; font-weight: 600; transition: .15s; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer p { font-size: .88rem; }
.footer-bottom { border-top: 1px solid #221e49; padding: 18px; text-align: center; font-size: .8rem; font-weight: 600; }

/* ---------------- Mobile bottom nav ---------------- */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    grid-template-columns: repeat(5, 1fr); height: 64px;
    box-shadow: 0 -6px 24px rgba(20,22,43,.06);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .66rem; font-weight: 700; color: var(--ink-soft); }
.bottom-nav a span { font-size: 1.3rem; line-height: 1; display: inline-flex; }
.bottom-nav a span svg { width: 23px; height: 23px; }
.bottom-nav .sell-fab span svg { width: 24px; height: 24px; }
.bottom-nav .sell-fab span {
    background: var(--grad); color: #fff;
    width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-top: -20px; box-shadow: 0 10px 22px rgba(46,125,50,.5); font-size: 1.55rem;
    border: 3px solid #fff;
}

/* ---------------- Payout preview / commission ---------------- */
.payout-preview { background: linear-gradient(135deg, #f0fdf4, #eff6ff); border: 1.5px solid #bbf7d0; border-radius: 14px; padding: 14px 18px; margin: 4px 0 18px; }
.payout-preview .pp-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: .9rem; color: var(--ink-soft); }
.payout-preview .pp-net { border-top: 1.5px dashed #bbf7d0; margin-top: 6px; padding-top: 10px; font-size: 1.05rem; color: var(--ink); }
.payout-preview .pp-net strong { color: #027a48; font-size: 1.2rem; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .payout-preview { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.3); } }

.payout-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.payout-card .pc-head { padding: 18px 22px; background: linear-gradient(135deg, var(--primary-deep), #2e9d3f); color: #fff; }
.payout-card .pc-head .big { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; }
.payout-card .pc-head .lbl { color: #ded9ff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rate-chip { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }

/* ---------------- Favourites & notifications ---------------- */
.fav-btn {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.9); backdrop-filter: blur(6px);
    color: #b0b4cc; font-size: 1.15rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(20,22,43,.18); transition: .2s cubic-bezier(.2,.7,.3,1.4);
}
.fav-btn:hover { transform: scale(1.15); color: var(--red); }
.fav-btn.active { color: var(--red); background: #fff; }
.fav-btn.pop { animation: favpop .35s ease; }
@keyframes favpop { 40% { transform: scale(1.45); } }
.fav-btn-lg { position: static; width: 56px; height: auto; min-height: 52px; border-radius: 14px; font-size: 1.5rem; border: 2px solid var(--border); background: #fff; box-shadow: none; }
.fav-btn-lg.active { border-color: var(--red); }

.loc-line { color: var(--muted); font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 3px; }
.dist-badge {
    position: absolute; bottom: 12px; left: 12px; z-index: 2;
    background: rgba(18,183,106,.92); color: #fff; backdrop-filter: blur(6px);
    padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(18,183,106,.4);
}

.bell-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; color: var(--ink-soft);
    text-decoration: none; line-height: 1; transition: background .18s, color .18s, transform .18s;
}
.bell-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.bell-btn:active { transform: scale(.92); }
.bell-btn svg { width: 21px; height: 21px; }
.bell-badge {
    position: absolute; top: 3px; right: 3px;
    background: var(--red); color: #fff; font-size: .62rem; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 999px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; line-height: 1;
}

.notif-item { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--border); color: var(--ink); transition: .15s; }
.notif-item:last-child { border-bottom: 0; }
a.notif-item:hover { background: #fafaff; }
.notif-item.unread { background: var(--primary-light); }
.notif-item .n-icon { font-size: 1.35rem; flex-shrink: 0; }
.notif-item .n-body { min-width: 0; }
.notif-item .n-msg { font-weight: 600; font-size: .92rem; }
.notif-item.unread .n-msg { font-weight: 700; }
.notif-item .n-time { color: var(--muted); font-size: .78rem; font-weight: 600; }
.notif-item .n-go { margin-left: auto; color: var(--muted); font-weight: 700; }

/* ---------------- Saved addresses ---------------- */
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.addr-card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.addr-card.is-default { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,125,50,.12); }
.addr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.addr-card .t-actions { margin-top: 10px; }

/* ---------------- Chat / messages ---------------- */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: 68vh; min-height: 460px; }
.chat-list { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); overflow-y: auto; }
.chat-list-item { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-bottom: 1px solid var(--border); color: var(--ink); }
.chat-list-item:hover { background: var(--bg); }
.chat-list-item.active { background: var(--primary-light); }
.cl-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cl-body { min-width: 0; flex: 1; }
.cl-name { font-weight: 600; font-size: .92rem; display: block; }
.cl-last { color: var(--muted); font-size: .82rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-unread { background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.chat-thread { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.chat-thread-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.ct-back { display: none; font-size: 1.4rem; color: var(--ink-soft); }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat-context { align-self: center; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.msg-bubble { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.4; position: relative; word-wrap: break-word; }
.msg-bubble.theirs { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-bubble.mine { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.mb-time { display: block; font-size: .66rem; opacity: .7; margin-top: 3px; text-align: right; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-compose input { flex: 1; padding: 11px 15px; border: 1.5px solid var(--border); border-radius: 999px; font-size: .95rem; outline: none; font-family: inherit; }
.chat-compose input:focus { border-color: var(--primary); }
@media (max-width: 760px) {
    .chat-layout { grid-template-columns: 1fr; height: 74vh; }
    .chat-layout.has-active .chat-list { display: none; }
    .chat-layout:not(.has-active) .chat-thread { display: none; }
    .ct-back { display: inline; }
}

/* ---------------- Product gallery + reviews ---------------- */
.gallery-main { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.gallery-main img, .gallery-main .img-placeholder { width: 100%; height: 400px; object-fit: cover; display: block; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gthumb { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); background: none; padding: 0; cursor: pointer; transition: .15s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.active, .gthumb:hover { border-color: var(--primary); }

.rating-summary { display: flex; gap: 24px; align-items: center; padding: 8px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.rs-score { text-align: center; flex-shrink: 0; }
.rs-avg { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.rs-stars { color: var(--accent); font-size: 1rem; margin: 4px 0 2px; }
.rs-bars { flex: 1; min-width: 220px; }
.rs-bar { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
.rs-lbl { width: 26px; }
.rs-track { flex: 1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rs-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.rs-n { width: 26px; text-align: right; }
.verified-buy { display: inline-block; background: #ecfdf3; color: #027a48; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; margin-left: 4px; }
.review-photo { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; margin: 8px 0; border: 1px solid var(--border); }

.gallery-edit { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gedit-item { position: relative; width: 84px; }
.gedit-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; }
.gedit-rm { display: flex; align-items: center; gap: 3px; font-size: .72rem; color: var(--red); font-weight: 700; margin-top: 4px; cursor: pointer; }
@media (max-width: 720px) { .gallery-main img, .gallery-main .img-placeholder { height: 260px; } }
/* gallery provides its own framing — flatten the old wrapper */
.detail-media { border: 0; box-shadow: none; overflow: visible; border-radius: 0; }

/* ---------------- Shopping cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; padding-bottom: 20px; }
.cart-summary { position: sticky; top: 86px; }
.cart-group { padding: 18px !important; margin-bottom: 14px; }
.cart-seller { font-weight: 700; font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.cart-seller a { color: var(--ink); }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.ci-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; display: block; }
.ci-thumb img, .ci-thumb .img-placeholder { width: 76px; height: 76px; object-fit: cover; }
.ci-thumb .img-placeholder span { font-size: 1.6rem; }
.ci-info { min-width: 0; }
.ci-title { font-weight: 700; font-size: .95rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ci-type { font-size: .76rem; color: var(--muted); margin: 2px 0; }
.ci-price { font-weight: 700; color: var(--price); }
.ci-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 9px; overflow: hidden; }
.qty-stepper button { width: 32px; height: 32px; border: 0; background: var(--bg); font-size: 1.1rem; cursor: pointer; color: var(--ink-soft); }
.qty-stepper button:hover { background: var(--primary-light); color: var(--primary-dark); }
.qty-stepper .qs-val { width: 40px; height: 32px; border: 0; border-inline: 1.5px solid var(--border); text-align: center; font-weight: 700; background: #fff; outline: none; }
.ci-line { font-weight: 700; font-size: .95rem; }
.ci-remove { border: 0; background: none; cursor: pointer; font-size: 1rem; opacity: .6; }
.ci-remove:hover { opacity: 1; }
.add-cart-btn.added { background: #ecfdf3; border-color: #a6f4c5; color: #027a48; }
@media (max-width: 820px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .cart-item { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; }
    .ci-thumb, .ci-thumb img, .ci-thumb .img-placeholder { width: 64px; height: 64px; }
    .ci-controls { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------------- Seller shop / storefront ---------------- */
.shop-hero { border-radius: 18px; padding: clamp(20px, 3.5vw, 32px); color: #fff; box-shadow: var(--shadow-lg); margin-top: 16px; }
.shop-hero-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.shop-avatar { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.22); border: 3px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; flex-shrink: 0; }
.shop-id { flex: 1; min-width: 200px; }
.shop-id h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-verified { background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.4); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.shop-sub { color: rgba(255,255,255,.85); font-size: .9rem; margin: 4px 0 12px; }
.shop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.shop-ghost:hover { background: rgba(255,255,255,.28); }
.follow-btn { background: #fff; color: var(--primary-dark); font-weight: 700; }
.follow-btn.is-following { background: rgba(255,255,255,.2); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.shop-stats { display: flex; gap: clamp(16px, 3vw, 36px); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; padding: 14px 22px; }
.shop-stats > div { text-align: center; }
.shop-stats strong { display: block; font-size: 1.3rem; font-weight: 700; }
.shop-stats span { font-size: .74rem; color: rgba(255,255,255,.8); }
.shop-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shop-reviews .review-item { background: var(--bg); border-radius: 12px; padding: 14px !important; }
@media (max-width: 720px) {
    .shop-hero-inner { flex-direction: column; align-items: stretch; text-align: center; }
    .shop-id h1 { justify-content: center; }
    .shop-actions { justify-content: center; }
    .shop-stats { justify-content: space-around; width: 100%; padding: 12px; gap: 6px; }
    .shop-stats strong { font-size: 1.05rem; }
}

/* ---------------- Shopee/Lazada-style home ---------------- */
.shop-wrap { background: #f5f5f5; padding-bottom: 20px; }

/* promo banner */
.promo { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 12px 0; }
.promo-main {
    position: relative; overflow: hidden; border-radius: 18px;
    background: linear-gradient(135deg, #f3f8ec, #ffffff 55%, #eef6e4);
    border: 1px solid #e6efdc;
    padding: clamp(10px, 1.5vw, 16px);
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.promo-main::after { content: ''; position: absolute; right: -50px; top: -50px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(120,170,90,.16), transparent 70%); }
.promo-main .promo-logo { position: relative; width: auto; height: 215px; max-width: 92%; object-fit: contain; margin-bottom: 2px; }
.promo-main .promo-tag { position: relative; color: var(--muted); font-size: .85rem; font-weight: 500; max-width: 420px; margin-bottom: 10px; }
.promo-cta { position: relative; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.promo-cta .btn { padding: 7px 14px; font-size: .82rem; border-radius: 9px; }
.promo-trust { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; margin-top: 10px; }
.promo-trust .pt-item { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .76rem; font-weight: 600; }
.promo-trust .pt-item b { color: var(--primary-dark); font-weight: 800; }
.promo-trust .pt-item svg { width: 16px; height: 16px; color: var(--primary); }
.promo-trust .pt-item + .pt-item { padding-left: 18px; border-left: 1px solid #dbe7cf; }
.promo-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.promo-mini { background: var(--card); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); transition: .2s; }
.promo-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo-mini .emoji { font-size: 1.7rem; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); flex-shrink: 0; }
.promo-mini h3 { font-size: 1rem; font-weight: 700; }
.promo-mini p { font-size: .82rem; color: var(--muted); }

/* service promises strip */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 20px; }
.promise { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: left; }
.promise .pi { font-size: 1.5rem; }
.promise strong { display: block; font-size: .86rem; }
.promise span { font-size: .74rem; color: var(--muted); }

/* white content card wrapper (Shopee panels) */
.shop-panel { background: var(--card); border-radius: 14px; padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.shp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shp-head h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.shp-head .see { color: var(--price); font-weight: 700; font-size: .86rem; display: inline-flex; align-items: center; gap: 4px; }
.shp-head .see:hover { gap: 8px; }
.shp-head.flash h2 { color: var(--price); }

/* shop voucher chips */
.voucher-chip { display: flex; flex-direction: column; border: 1.5px dashed var(--primary); border-radius: 12px; overflow: hidden; min-width: 200px; background: var(--primary-light); }
.voucher-chip .vc-off { padding: 10px 14px 6px; font-weight: 700; color: var(--primary-dark); font-size: .92rem; }
.voucher-chip .vc-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: #fff; border-top: 1.5px dashed var(--primary); }
.voucher-chip .vc-code span { font-family: monospace; font-weight: 700; letter-spacing: .04em; }
.vc-copy { border: 0; background: var(--primary); color: #fff; font-weight: 700; font-size: .74rem; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.vc-copy.copied { background: var(--green); }

/* flash sale */
.flash-sale { border: 2px solid #ffd7cf; }
.flash-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, #f04438, #e0330f); margin: -18px -18px 16px; padding: 14px 18px; border-radius: 12px 12px 0 0; }
.flash-head .fh-title { color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.flash-timer { display: flex; align-items: center; gap: 5px; color: #fff; }
.flash-timer .ft-lbl { font-size: .8rem; font-weight: 700; opacity: .9; margin-right: 4px; }
.flash-timer .ft-box { background: rgba(0,0,0,.28); border-radius: 6px; padding: 3px 7px; font-weight: 700; font-size: .95rem; min-width: 30px; text-align: center; }
.flash-timer .ft-sep { font-weight: 700; opacity: .8; }
.flash-head .fh-see { margin-left: auto; color: #fff; font-weight: 700; font-size: .86rem; }
.flash-head .fh-see:hover { text-decoration: underline; }
@media (max-width: 560px) { .flash-head .fh-see { margin-left: 0; } .flash-head { gap: 10px; } }

/* category circles */
.cat-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cat-circle { text-align: center; padding: 12px 6px; border-radius: 12px; transition: .18s; color: var(--ink); }
.cat-circle:hover { background: var(--primary-light); transform: translateY(-2px); }
.cat-circle .ic { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 8px; }
.cat-circle .nm { font-size: .78rem; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* product card extra meta (rating · sold · location) */
.card-meta { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.card-meta .rt { color: var(--accent); font-weight: 700; }
.card-meta .sold { margin-left: auto; }
.card-loc { display: flex; align-items: center; gap: 3px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.tag-row { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.mini-tag { font-size: .64rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; }
.mini-tag.ship { background: #eaf7ef; color: #027a48; }
.mini-tag.hot { background: var(--primary-light); color: var(--primary-dark); }
.mini-tag.new { background: #eef2ff; color: var(--primary-dark); }

@media (max-width: 720px) {
    .promo { grid-template-columns: 1fr; }
    .promo-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .promises { grid-template-columns: 1fr 1fr; }
    .promise { justify-content: flex-start; }
    .cat-circles { grid-template-columns: repeat(4, 1fr); }
    .promo-main .promo-logo { width: min(240px, 70%); }
}

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { font-size: 3.2rem; display: block; margin-bottom: 12px; }
.empty-state h3 { color: var(--ink); font-weight: 700; }
.qty-input { width: 90px !important; }
.chart-box { position: relative; height: 300px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-info { position: static; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-side { position: static; display: flex; overflow-x: auto; padding: 6px; }
    .dash-side a { white-space: nowrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-search { display: none; }
    .nav-links > a:not(.btn) { display: none; }
    .nav-links .bell-btn { display: inline-flex; }      /* keep cart + notifications on mobile */
    .nav-links .lang-toggle { display: inline-flex; }   /* keep language switch on mobile */
    .nav-links .btn-outline { display: none; }           /* +Sell lives in the bottom nav on mobile */
    .bottom-nav { display: grid; }
    .site-footer { padding-bottom: 24px; }
    .hero { padding: 52px 0 64px; }
    .hero-search { flex-direction: row; }
    .hero-split { grid-template-columns: 1fr; margin-top: 6px; }
    .hero-toggle {
        display: flex; gap: 5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
        padding: 5px; border-radius: 999px; margin: 22px auto 0; max-width: 340px;
    }
    .ht-btn { flex: 1; border: 0; background: transparent; color: #c9c5ec; font-weight: 700; font-size: .92rem; padding: 11px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: .18s; }
    .ht-btn.active { background: #fff; color: var(--primary-deep); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
    .hero-pane { display: none; }
    .hero-pane.active { display: flex; }
    .hero-pane { padding: 22px; }
    .hero-stats { margin-top: 34px; }
    .hero-eyebrow { font-size: .74rem; padding: 7px 14px; }
    .form-row { grid-template-columns: 1fr; }
    .detail-media img, .detail-media .img-placeholder { height: 250px; }
    .listing-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .card-media { height: auto; }
    .listing-card .body { padding: 10px 11px 12px; }
    .listing-card h3 { font-size: .86rem; }
    .listing-card .price { font-size: .98rem; }
    .listing-card .buy-hint { display: none; }
    .section { padding: 44px 0; }
}
@media (min-width: 721px) {
    body { padding-bottom: 0; }
}
