/* PandaBooks Marketplace: sellers on the left, a seller's items on the right, a cart that sends the order on WhatsApp.
   Colours come from the logo: ink black, white and the warm cream of the badge. */
.mp {
	--ink: #090a0c; --ink-2: #111217; --ink-3: #1b1d24; --ink-line: #2a2c34;
	--cream: #fef3e2; --cream-2: #f7e4c4; --cream-3: #fbf4e6;
	--canvas: #f6f3ec; --paper: #fff; --line: #e8e2d6; --line-2: #d6cebd;
	--text: #090a0c; --soft: #5b5b63; --on-dark: #fef3e2; --on-dark-soft: #bdb5a6;
	--ok: #1b6b3a; --ok-bg: #e5f4ea; --wa: #128c4a;
	--r: 12px; --r-lg: 18px; --hd: 62px; --sbw: 300px;
	--font: "InterVariable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--font); background: var(--canvas); color: var(--text); min-height: 100vh; font-size: 14.5px; line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
.mp a { color: inherit; text-decoration: none; }
.mp h1, .mp h3 { margin: 0; color: inherit; letter-spacing: -.02em; }
.mp :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mp [hidden] { display: none !important; }

/* top bar */
.mp-top { position: sticky; top: 0; z-index: 40; height: var(--hd); background: var(--ink); color: var(--on-dark); display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 3px solid var(--cream); }
.mp-brand { display: flex; align-items: center; gap: 10px; } .mp-brand img { width: 40px; height: 40px; border-radius: 50%; }
.mp-brand span { display: flex; flex-direction: column; line-height: 1.05; } .mp-brand b { font-size: 18px; font-weight: 800; letter-spacing: -.02em; } .mp-brand em { font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 600; margin-top: 3px; }
.mp-sp { flex: 1; }
.mp-link { font-size: 13px; font-weight: 600; padding: 8px 12px; white-space: nowrap; border-radius: 999px; color: var(--on-dark); } .mp-link:hover { background: var(--ink-3); }
.mp-menu { display: none; background: var(--ink-3); color: var(--on-dark); border: 1px solid var(--ink-line); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.mp-cartbtn { background: var(--cream); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.mp-cartbtn b { background: var(--ink); color: var(--cream); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }

/* layout */
.mp-shell { display: grid; grid-template-columns: var(--sbw) minmax(0, 1fr); min-height: calc(100vh - var(--hd)); align-items: start; }
.mp-side { position: sticky; top: var(--hd); height: calc(100vh - var(--hd)); overflow: auto; background: var(--ink-2); color: var(--on-dark); padding: 16px 12px 28px; border-right: 1px solid var(--ink-line); scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; }
.mp-main { padding: 22px; min-width: 0; max-width: 1280px; }

/* sellers list */
.mp-side-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 700; padding: 0 6px 10px; }
.mp-side-h b { color: var(--cream); letter-spacing: .06em; font-weight: 700; }
.mp-side-tools { display: grid; gap: 8px; padding: 0 2px 12px; }
.mp-side input, .mp-side select { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--ink-line); background: var(--ink); color: var(--on-dark); padding: 0 12px; font: inherit; font-size: 13.5px; }
.mp-side input::placeholder { color: #7f7a6f; } .mp-side input:focus, .mp-side select:focus { outline: none; border-color: var(--cream); }
.mp-sellers { display: grid; gap: 2px; }
.mp-seller { display: block; padding: 9px 10px 9px 12px; border-radius: 10px; border-left: 3px solid transparent; }
.mp-seller:hover { background: var(--ink-3); } .mp-seller.on { background: var(--ink-3); border-left-color: var(--cream); }
.mp-seller b { display: block; font-size: 13.5px; font-weight: 700; color: #fff; } .mp-seller small { display: block; font-size: 12px; color: var(--on-dark-soft); margin-top: 1px; }
.mp-none { color: var(--on-dark-soft); font-size: 13px; padding: 8px 10px; margin: 0; }
.mp-cats { margin-top: 18px; border-top: 1px solid var(--ink-line); padding-top: 16px; }
.mp-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; color: var(--on-dark); }
.mp-cat b { font-size: 11.5px; color: var(--on-dark-soft); font-weight: 700; }
.mp-cat:hover { background: var(--ink-3); } .mp-cat.on { background: var(--cream); color: var(--ink); font-weight: 800; } .mp-cat.on b { color: var(--ink); }

/* buttons */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; transition: transform .08s, filter .12s; }
.mp-btn:active { transform: translateY(1px); } .mp-btn:hover { filter: brightness(1.08); }
.mp-btn.dark { background: var(--ink); color: var(--cream) !important; } .mp-btn.cream { background: var(--cream); color: var(--ink) !important; } .mp-btn.block { width: 100%; }
.mp-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* home hero */
.mp-hero { background: radial-gradient(900px 300px at 85% 20%, rgba(254, 243, 226, .14), transparent 60%), linear-gradient(135deg, #0b0c10, #15171d); color: var(--on-dark); border-radius: var(--r-lg); padding: 38px 44px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: center; overflow: hidden; position: relative; }
.mp-hero .eyebrow, .mp-sellerhead .eyebrow { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--cream); display: flex; align-items: center; gap: 10px; }
.mp-hero .eyebrow::before, .mp-sellerhead .eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cream); }
.mp-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; color: #fff; }
.mp-hero .lead { color: var(--on-dark-soft); font-size: 16px; max-width: 520px; margin: 14px 0 0; }
.mp-hero .stats { display: flex; gap: 28px; margin: 24px 0 24px; } .mp-hero .stats b { display: block; font-size: 30px; font-weight: 800; color: var(--cream); line-height: 1; } .mp-hero .stats span { font-size: 12px; color: var(--on-dark-soft); letter-spacing: .02em; }
.mp-hero .art { display: grid; place-items: center; } .mp-hero .disc { width: min(100%, 280px); aspect-ratio: 1; border-radius: 50%; background: var(--cream); display: grid; place-items: end center; overflow: hidden; box-shadow: 0 0 0 10px rgba(254, 243, 226, .08); }
.mp-hero .disc img { width: 88%; height: auto; display: block; }
.mp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 26px; }
.mp-steps > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.mp-steps i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--cream); font-style: normal; font-weight: 800; display: grid; place-items: center; }
.mp-steps b { font-size: 14.5px; } .mp-steps span { color: var(--soft); font-size: 13px; }

/* seller header */
.mp-sellerhead { background: linear-gradient(135deg, #0b0c10, #15171d); color: var(--on-dark); border-radius: var(--r-lg); padding: 26px 30px; margin-bottom: 18px; }
.mp-sellerhead h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: #fff; line-height: 1.1; }
.mp-sellerhead .meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; color: var(--on-dark-soft); font-size: 13.5px; } .mp-sellerhead .meta a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.mp-sellerhead .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .mp-sellerhead .badges span { background: rgba(254, 243, 226, .1); border: 1px solid rgba(254, 243, 226, .28); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--cream); }

/* search bar, chips */
.mp-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.mp-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; height: 44px; color: var(--soft); } .mp-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(9, 10, 12, .08); }
.mp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--text); height: 100%; }
.mp-bar .count { font-size: 13.5px; color: var(--soft); white-space: nowrap; } .mp-bar .count b { color: var(--text); }
.mp-sort { height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 16px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; } .mp-chips a { border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; } .mp-chips a:hover { background: var(--cream); }

/* item cards */
.mp-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.mp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .16s, transform .16s; }
.mp-card:hover { box-shadow: 0 10px 28px rgba(9, 10, 12, .1); transform: translateY(-2px); }
.mp-img { position: relative; aspect-ratio: 4 / 3; background: var(--cream-3); display: grid; place-items: center; overflow: hidden; font-size: 54px; font-weight: 800; color: var(--line-2); } .mp-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-img .oos { position: absolute; left: 10px; top: 10px; background: var(--ink); color: var(--cream); font-style: normal; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.mp-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.mp-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mp-body small { color: var(--soft); font-size: 12.5px; margin-top: 2px; }
.mp-price { font-size: 18px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; } .mp-price .ask { font-size: 13px; font-weight: 600; color: var(--soft); }
.mp-tiers { list-style: none; margin: 8px 0 0; padding: 7px 10px; background: var(--cream-3); border-radius: 10px; font-size: 12.5px; } .mp-tiers li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.mp-by { margin: 8px 0 0; font-size: 12.5px; color: var(--soft); } .mp-by a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mp-act { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; } .mp-act .mp-btn { flex: 1; min-height: 38px; font-size: 13.5px; }
.mp-wa { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--wa); color: var(--wa); display: grid; place-items: center; } .mp-wa:hover { background: var(--ok-bg); }
.mp-pager { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 26px 0 4px; color: var(--soft); font-size: 13.5px; } .mp-pager a { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 20px; background: var(--paper); color: var(--text); font-weight: 600; } .mp-pager a:hover { border-color: var(--ink); }
.mp-empty { background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; padding: 56px 20px; } .mp-empty b { display: block; font-size: 18px; margin-bottom: 6px; } .mp-empty span { color: var(--soft); } .mp-empty a { text-decoration: underline; color: var(--text); font-weight: 600; }
.mp-band { margin-top: 30px; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 26px 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .mp-band h3 { font-size: 22px; font-weight: 800; color: #fff; } .mp-band p { margin: 4px 0 0; color: var(--on-dark-soft); max-width: 560px; }
.mp-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--soft); line-height: 1.7; } .mp-foot a { text-decoration: underline; }

/* cart drawer */
.mp-scrim { position: fixed; inset: 0; z-index: 44; background: rgba(9, 10, 12, .5); }
.mp-cart { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(400px, 100%); background: var(--paper); box-shadow: -12px 0 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column; }
.mp-cart-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); } .mp-cart-h b { display: block; font-size: 17px; } .mp-cart-h small { color: var(--soft); }
.mp-cart-h button { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--soft); padding: 6px 10px; }
.mp-cart-body { flex: 1; overflow: auto; padding: 8px 18px; }
.mp-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); } .mp-line b { font-size: 14px; } .mp-line .p { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mp-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; } .mp-qty button { width: 30px; height: 30px; background: none; border: 0; font-size: 16px; cursor: pointer; } .mp-qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 13.5px; }
.mp-line .rm { background: none; border: 0; color: var(--soft); cursor: pointer; font-size: 12.5px; text-decoration: underline; justify-self: end; padding: 0; }
.mp-cart-empty { padding: 40px 0; text-align: center; color: var(--soft); }
.mp-cart-f { padding: 14px 18px 18px; border-top: 1px solid var(--line); background: var(--cream-3); } .mp-cart-f .tot { display: flex; justify-content: space-between; font-size: 16px; } .mp-cart-f .tot b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mp-cart-f .hint { margin: 6px 0 12px; font-size: 12.5px; color: var(--soft); } .mp-clear { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--soft); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }

/* phones and tablets: the sellers list becomes a drawer */
@media (max-width: 900px) {
	.mp-menu { display: inline-block; } .hide-sm { display: none; } .mp-top { gap: 8px; padding: 0 12px; }
	.mp-shell { display: block; } .mp-main { padding: 14px; }
	.mp-side { position: fixed; z-index: 46; left: 0; top: var(--hd); bottom: 0; width: min(330px, 88vw); height: auto; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 12px 0 40px rgba(0, 0, 0, .35); }
	.mp-side.open { transform: none; }
	.mp-hero { grid-template-columns: 1fr; padding: 26px 22px; } .mp-hero .art { display: none; }
	.mp-steps { grid-template-columns: 1fr; }
	.mp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mp-band { padding: 22px; }
}
@media (max-width: 560px) { .mp-brand span { display: none; } .mp-top { gap: 6px; } }
@media (max-width: 420px) { .mp-brand em { display: none; } .mp-body { padding: 10px 11px 12px; } .mp-price { font-size: 16px; } .mp-act .mp-btn { font-size: 12.5px; padding: 0 8px; } }
