/* ============================================================
   app.css — consolidated page styles (moved out of view <style>
   blocks). Loaded in main_layout AFTER pb-theme.css so page rules
   still override theme tokens. Views are now HTML-only.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&display=swap');

/* ═══════════════════════ main_layout ═══════════════════════ */
		body, html { background: #ffffff !important; color: var(--pb-ink) !important; font-family: var(--pb-font); }

		/* Shared horizontal shell — ~80px gutters at 1440, responsive */
		.pb-shell { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5.5vw, 80px); }

		#content { min-height: calc(100vh - 400px); }
		/* ── Navbar ───────────────────────────────────────────────── */
		#header.pb-nav {
			position: sticky; top: 0; z-index: 1000;
			background: rgba(255,255,255,0.94);
			backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
			border-bottom: 1px solid var(--pb-border);
		}
		.pb-nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
		.pb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
		.pb-brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--pb-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
		.pb-brand-name { font-weight: 700; font-size: 16px; color: var(--pb-ink); white-space: nowrap; }

		.pb-navsearch { flex: 1 1 auto; max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; background: #F3F4F6; border: 1px solid transparent; border-radius: 100px; padding: 9px 18px; transition: background .16s, border-color .16s, box-shadow .16s; }
		.pb-navsearch:focus-within { background: #fff; border-color: var(--pb-primary); box-shadow: var(--pb-ring); }
		.pb-navsearch i { color: #9aa0a6; font-size: 15px; }
		.pb-navsearch input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; color: var(--pb-ink); }

		/* Nav icons: messages + bell — always visible on every screen size */
		.pb-nav-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; }
		.pb-nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 10px; flex-shrink: 0; }
		.pb-nav-login { font-size: 14px; font-weight: 600; color: var(--pb-ink); text-decoration: none; transition: color .15s; }
		.pb-nav-login:hover { color: var(--pb-primary); }
		.pb-btn-outline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--pb-ink); text-decoration: none; border: 1px solid var(--pb-border); border-radius: 100px; padding: 9px 20px; transition: border-color .16s, color .16s; }
		.pb-btn-outline:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
		.pb-btn-sell { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #fff !important; text-decoration: none; background: var(--pb-primary); border-radius: 100px; padding: 9px 18px; transition: background .16s, transform .1s; }
		.pb-btn-sell:hover { background: var(--pb-primary-h); color: #fff !important; transform: translateY(-1px); }

		/* Notification bell + account dropdown (signed in) */
		.pb-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: transparent; color: var(--pb-ink); font-size: 19px; border-radius: 50%; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
			.pb-bell-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }
		.pb-bell:hover { background: #F3F4F6; color: var(--pb-primary); }
			/* Shared header icon (messages + notifications) */
			.pb-navicon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: transparent; color: var(--pb-ink); font-size: 19px; border-radius: 50%; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
			.pb-navicon:hover { background: #F3F4F6; color: var(--pb-primary); }
			.pb-navicon-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; }
			.pb-navicon-badge { position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; }
			/* Notifications dropdown */
			.pb-menu.pb-notif-menu { min-width: 384px; max-width: 420px; padding: 0; overflow: hidden; }
			.pb-notif-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; color: var(--pb-ink); padding: 14px 20px; border-bottom: 1px solid var(--pb-border); }
			.pb-notif-clear-btn { background: none; border: none; color: var(--pb-primary); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; transition: color .15s; }
			.pb-notif-clear-btn:hover { color: var(--pb-primary-h); text-decoration: underline; }
			.pb-notif-list { max-height: 60vh; overflow-y: auto; }
			.pb-notif-item-wrap { position: relative; display: flex; border-bottom: 1px solid #f2f2f2; transition: background .12s; }
			.pb-notif-item-wrap:hover { background: #fafafa; }
			.pb-notif-item { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 14px 20px; text-decoration: none; min-width: 0; }
			.pb-notif-item.is-unread { background: #f0fdf4; }
			.pb-notif-ic { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--pb-primary-soft); color: var(--pb-primary); font-size: 16px; overflow: hidden; }
			.pb-notif-ic img { width: 100%; height: 100%; object-fit: cover; }
			.pb-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
			.pb-notif-text { font-size: 13px; color: var(--pb-ink); font-weight: 600; line-height: 1.4; }
			.pb-notif-body > * + * { margin-top: 2px; }
			.pb-notif-sub { font-size: 12px; color: var(--pb-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
			.pb-notif-time { font-size: 11px; color: #9aa0a6; margin-top: 3px; }
			.pb-notif-del { opacity: 0; position: absolute; top: 12px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: #9aa0a6; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
			.pb-notif-item-wrap:hover .pb-notif-del { opacity: 1; }
			.pb-notif-del:hover { background: #fee2e2; color: #ef4444; }
			.pb-notif-empty { padding: 26px 16px; text-align: center; color: var(--pb-muted); font-size: 13px; }
			.pb-notif-foot { padding: 12px 20px; text-align: center; border-top: 1px solid var(--pb-border); }
			.pb-notif-foot a { font-size: 13px; font-weight: 600; color: var(--pb-primary); text-decoration: none; }
		.pb-account-btn { display: inline-flex; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; border-radius: 100px; padding: 4px 8px 4px 4px; font-size: 14px; font-weight: 600; color: var(--pb-ink); cursor: pointer; transition: background .15s; }
		.pb-account-btn:hover { background: #F3F4F6; }
		.pb-account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
		.pb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--pb-primary-soft); color: var(--pb-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-transform: uppercase; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(0,0,0,.06); overflow: hidden; }
		.pb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
		.pb-menu { border: 1px solid var(--pb-border); border-radius: 12px; box-shadow: 0 16px 40px rgba(22,25,28,0.13); padding: 10px; margin-top: 10px; min-width: 210px; }
		.pb-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-weight: 500; color: var(--pb-ink); }
		.pb-menu .dropdown-item i { color: var(--pb-muted); width: 16px; }
		.pb-menu .dropdown-item:hover, .pb-menu .dropdown-item:focus { background: var(--pb-primary-soft); color: var(--pb-primary); }
		.pb-menu .dropdown-item:hover i { color: var(--pb-primary); }
		.pb-menu .dropdown-divider { margin: 6px 4px; border-color: var(--pb-border); }
		.pb-menu .pb-item-danger, .pb-menu .pb-item-danger i { color: #C0362C; }
		.pb-menu .pb-item-danger:hover { background: #FBEEEC; color: #C0362C; }

		/* ── Mobile navigation (hamburger + drawer) ───────────────── */
		.pb-hamburger { display: none; background: none; border: none; color: var(--pb-ink); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px; margin-left: 6px; }
		.pb-mobile-menu { border-top: 1px solid var(--pb-border); background: #fff; }
		.pb-mobile-menu .pb-shell { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; padding-bottom: 18px; }
		.pb-mm-search { display: flex; align-items: center; gap: 8px; background: #F3F4F6; border-radius: 100px; padding: 11px 16px; margin-bottom: 8px; }
		.pb-mm-search i { color: #9aa0a6; }
		.pb-mm-search input { border: none; outline: none; background: transparent; flex: 1; font-size: 14px; color: var(--pb-ink); }
		.pb-mm-link { padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--pb-ink); text-decoration: none; border-bottom: 1px solid #f0f0f0; }
		.pb-mm-link:hover { color: var(--pb-primary); }
		.pb-mm-danger { color: #C0362C; border-bottom: none; }
		.pb-mm-cta { align-self: stretch; justify-content: center; margin-top: 14px; }
		@media (min-width: 861px) { .pb-mobile-menu { display: none !important; } }
		@media (max-width: 860px) {
			.pb-navsearch { display: none; }
			.pb-nav-actions { display: none; }   /* account + sell hidden on mobile */
			.pb-hamburger { display: inline-flex; }
			.pb-brand-rest { display: none; }
			/* pb-nav-icons (msg + bell) stays visible — no hide rule */
		}

		/* ── Footer ───────────────────────────────────────────────── */
		.pb-foot { background: var(--pb-dark); color: #cfd3cf; }
		.pb-foot-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding: 72px 0 40px; }
		.pb-foot-title { font-weight: 700; font-size: 18px; color: #f4f5f2; margin-bottom: 14px; }
		.pb-foot-tag { color: #8b918b; font-size: 14px; line-height: 1.7; max-width: 300px; margin: 0; }
		.pb-foot-cols { display: flex; flex-wrap: wrap; gap: 64px; }
		.pb-foot-cols h6 { font-size: 14px; font-weight: 700; color: #f4f5f2; margin: 0 0 16px; }
		.pb-foot-cols a, .pb-foot-cols span { display: block; color: #8b918b; font-size: 14px; text-decoration: none; margin-bottom: 12px; }
		.pb-foot-cols a { transition: color .15s; }
		.pb-foot-cols a:hover { color: var(--pb-primary); }
		.pb-foot-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 26px 0; text-align: center; color: #6d746d; font-size: 13px; }
		@media (max-width: 640px) {
			.pb-foot-top { gap: 32px; padding: 48px 0 28px; }
			.pb-foot-cols { gap: 40px; }
		}

/* ═══════════════════════ index ═══════════════════════ */
/* ── Homepage (Figma) — tokens from pb-theme.css ─────────────────── */
.pb-home { color: var(--pb-ink); }
.pb-home section { scroll-margin-top: 80px; }
.pb-posted { display: flex; align-items: center; gap: 10px; background: var(--pb-primary-soft); border: 1px solid rgba(22,163,74,0.3); color: #15803d; border-radius: 12px; padding: 14px 18px; margin-top: 20px; font-weight: 600; font-size: 14px; }

/* Hero */
.pb-hero { display: flex; gap: 64px; align-items: center; padding: 72px 0; }
.pb-hero-left { flex: 1 1 0; min-width: 0; }
.pb-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pb-primary); }
.pb-hero-title { font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.08; color: #111; margin: 12px 0 0; }
.pb-hero-title .g { color: var(--pb-primary); }
.pb-hero-sub { color: #666; font-size: 16px; line-height: 1.6; max-width: 500px; margin: 16px 0 0; }
.pb-hero-cta { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.pb-btn-fill { display: inline-flex; align-items: center; gap: 8px; background: var(--pb-primary); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 100px; border: 1px solid var(--pb-primary); transition: background .16s, transform .1s; }
.pb-btn-fill:hover { background: var(--pb-primary-h); border-color: var(--pb-primary-h); color: #fff !important; transform: translateY(-1px); }
.pb-btn-line { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #111 !important; text-decoration: none; font-weight: 600; font-size: 14px; padding: 12px 24px; border-radius: 100px; border: 1px solid #111; transition: background .16s, color .16s; }
.pb-btn-line:hover { background: #2e8143; color: #fff !important; }

/* Hero collage */
.pb-collage { flex: 0 0 560px; height: 450px; position: relative; }
.pb-collage-ring { position: absolute; left: 80px; top: 25px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(22,163,74,0.10), rgba(22,163,74,0.03)); }
.pb-collage-card { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(17,17,17,0.14); display: flex; align-items: center; justify-content: center; font-size: 76px; background: linear-gradient(150deg, #EAF7EF, #F2F4F3); }
.pb-collage-card .pb-price-badge { position: absolute; top: 12px; left: 12px; background: var(--pb-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.pb-c1 { left: 60px; top: 20px; width: 270px; height: 340px; }
.pb-c2 { left: 240px; top: 120px; width: 220px; height: 280px; }
.pb-c3 { left: 380px; top: 40px; width: 130px; height: 160px; font-size: 48px; }

/* Stats */
.pb-stats { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 48px; padding: 33px 0; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.pb-stat { text-align: center; padding: 0 24px; }
.pb-stat + .pb-stat { border-left: 1px solid var(--pb-border); }
.pb-stat b { display: block; font-size: 28px; font-weight: 800; color: var(--pb-primary); line-height: 1.1; }
.pb-stat span { font-size: 14px; color: #666; }

/* Section header */
.pb-sec { padding: 64px 0; }
.pb-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.pb-sec-title { font-size: 22px; font-weight: 800; color: #111; margin: 0; display: flex; align-items: center; gap: 12px; }
.pb-sec-title .bar { width: 3px; height: 24px; background: var(--pb-primary); border-radius: 2px; }
.pb-badge-spon { font-size: 11px; font-weight: 600; color: #92721a; background: #FBF3D6; padding: 4px 8px; border-radius: 100px; }
.pb-sec-link { color: var(--pb-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.pb-sec-link:hover { text-decoration: underline; }

/* Category tiles */
.pb-cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px; }
.pb-cat { display: flex; flex-direction: column; align-items: center; gap: 14px; border: 1px solid var(--pb-border); border-radius: 16px; padding: 20px 10px; text-decoration: none; transition: border-color .16s, transform .16s, box-shadow .16s; }
.pb-cat:hover { border-color: var(--pb-primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,0.10); }
.pb-cat.is-active { border-color: var(--pb-primary); background: #F4FBF6; }
.pb-cat-img { width: 32px; height: 32px; object-fit: contain; display: block; }
.pb-cat-name { font-size: 14px; font-weight: 600; color: #111; }

/* Thumbnail — real photo, or emoji on soft tint as fallback */
.pb-thumb { background: linear-gradient(150deg, #EAF7EF, #F2F4F3); display: flex; align-items: center; justify-content: center; font-size: 72px; overflow: hidden; }
.pb-thumb img, .pb-collage-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Featured cards */
.pb-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pb-fcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pb-fcard:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(17,17,17,0.10); }
.pb-fcard .pb-thumb { height: 200px; }
.pb-fcard-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pb-tag-feat { align-self: flex-start; background: rgba(22,163,74,0.08); color: var(--pb-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.pb-lc-title { font-size: 15px; font-weight: 700; color: #000; line-height: 1.3; }
.pb-lc-price { font-size: 20px; font-weight: 700; color: var(--pb-primary); margin-top: 4px; }
.pb-lc-desc { font-size: 13px; color: #666; line-height: 1.45; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pb-lcard-body .pb-seller { margin-bottom: 10px; }
.pb-seller { display: flex; align-items: center; gap: 8px; }
.pb-seller-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pb-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-seller-name { font-size: 13px; font-weight: 600; color: #000; }
.pb-seller-time { font-size: 12px; color: #666; }
.pb-seller-verified { color: var(--pb-primary); font-size: 12px; }
.pb-btn-contact { display: flex; align-items: center; justify-content: center; background: var(--pb-primary); color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: 100px; transition: background .16s; }
.pb-btn-contact:hover { background: var(--pb-primary-h); color: #fff !important; }

/* Featured — empty "Sponsored only" placeholder slots */
.pb-fcard-empty { align-items: center; justify-content: center; text-align: center; min-height: 400px; padding: 24px; border-style: dashed; border-color: #1b8835; background: #fafbfa; }
.pb-fcard-empty:hover { transform: none; box-shadow: none; }
.pb-fcard-empty-txt { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: #9aa39a; font-size: 14px; font-weight: 600; }
.pb-fcard-empty-txt i { font-size: 30px; color: #c2ccc2; }
.pb-fcard-empty-link { color: var(--pb-primary); font-weight: 700; text-decoration: none; }
.pb-fcard-empty-link:hover { text-decoration: underline; }

/* New Today filters */
.pb-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-filter { font-size: 14px; font-weight: 600; color: #666; background: #fff; border: 1px solid var(--pb-border); border-radius: 100px; padding: 6px 16px; text-decoration: none; }
.pb-filter.is-active { background: var(--pb-primary); color: #fff; border-color: var(--pb-primary); }

/* New Today — uniform aligned grid (equal-size cards) */
.pb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: stretch; }
.pb-lcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pb-lcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,17,17,0.09); }
.pb-lcard-media { display: block; }
.pb-lcard .pb-thumb { height: 160px; }
.pb-lcard-body { padding: 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.pb-lcard-titlelink { text-decoration: none; }
.pb-grid .pb-lc-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pb-lcard-msg { align-self: flex-start; margin-top: auto; padding-top: 12px; color: var(--pb-primary); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .15s; }
.pb-lcard-msg:hover { color: var(--pb-primary-h); text-decoration: underline; }
@media (max-width: 1200px) { .pb-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px)  { .pb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .pb-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.pb-cta-band { padding: 96px 0; text-align: center; background: #FAFAFA; }
.pb-cta-title { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(32px, 4vw, 44px); color: #111; margin: 0; }
.pb-cta-sub { color: #666; font-size: 16px; line-height: 1.6; max-width: 500px; margin: 16px auto 0; }
.pb-cta-actions { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.pb-cta-link { color: #111; font-size: 14px; font-weight: 600; text-decoration: none; }
.pb-cta-link:hover { color: var(--pb-primary); }

/* Responsive */
/* Mobile category grid — hidden on desktop */
.pb-cat-scroll { display: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pb-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .pb-feat-grid { grid-template-columns: repeat(2, 1fr); }
    .pb-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Collage hidden + hero centered once the right column would be empty */
@media (max-width: 900px) {
    .pb-collage { display: none; }
    .pb-hero { padding: 52px 0; text-align: center; }
    .pb-hero-sub { margin-left: auto; margin-right: auto; }
    .pb-hero-cta { justify-content: center; }
}

/* ── Mobile (Figma mobile layout) ───────────────────────────────── */
@media (max-width: 768px) {
    .pb-sec { padding: 40px 0; }
    .pb-sec-title { font-size: 20px; padding-left: 5px; }
    #categories .pb-sec-head { padding-inline: 12px; }
    .pb-hero { padding: 40px 0; }
    .pb-hero-title { font-size: clamp(34px, 11vw, 46px); }

    /* Categories → compact 4×2 grid with every option visible */
    .pb-cat-grid { display: none; }
    .pb-cat-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 2px 0; }
    .pb-cat-pill { min-width: 0; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 9px 3px; background: #fff; border: 1px solid var(--pb-border); border-radius: 12px; text-align: center; text-decoration: none; color: #111; font-size: 11px; line-height: 1.2; font-weight: 600; }
    .pb-cat-pill.is-active { border-color: var(--pb-primary); background: #F4FBF6; }
    .pb-cat-pill img { width: 20px; height: 20px; object-fit: contain; }

    /* Featured → horizontal scroll */
    .pb-feat-grid { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .pb-feat-grid::-webkit-scrollbar { display: none; }
    .pb-fcard { flex: 0 0 80%; max-width: 300px; scroll-snap-align: start; }
    .pb-fcard-empty { min-height: 200px; }

    /* New Today → 2 columns, smaller thumbs */
    .pb-grid { gap: 14px; }
    .pb-lcard .pb-thumb { height: 150px; }
    .pb-lcard-body { padding: 12px; }
    .pb-lc-title { font-size: 14px; }
    .pb-lc-price { font-size: 18px; }

    /* Hide the New-Today filter chips on mobile (Figma omits them) */
    .pb-filters { display: none; }
}

/* ── Small phones: 2×2 stats box ────────────────────────────────── */
@media (max-width: 640px) {
    .pb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; border: 1px solid var(--pb-border); border-radius: 16px; }
    .pb-stat { padding: 22px 12px; border-left: none; }
    .pb-stat:nth-child(odd) { border-right: 1px solid var(--pb-border); }
    .pb-stat:nth-child(1), .pb-stat:nth-child(2) { border-bottom: 1px solid var(--pb-border); }
    .pb-cta-band { padding: 64px 0; }
}

/* ═══════════════════════ listing ═══════════════════════ */
/* ── Listing detail — pb-theme.css tokens ─────────────────────────── */
.pb-pd { padding-top: 26px; padding-bottom: 72px; }
.pb-bc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--pb-muted); margin-bottom: 22px; }
.pb-bc a { color: var(--pb-muted); text-decoration: none; }
.pb-bc a:hover { color: var(--pb-primary); }
.pb-bc .pb-bc-cur { color: var(--pb-primary); font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pb-pd-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* Gallery */
.pb-pd-main { border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; background: var(--pb-primary-soft); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.pb-pd-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-pd-main .pb-noimg { font-size: 56px; }
.pb-pd-thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pb-pd-thumb { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 2px solid var(--pb-border); background: #fff; padding: 0; cursor: pointer; flex-shrink: 0; }
.pb-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-pd-thumb.is-active { border-color: var(--pb-primary); }

/* Info panel */
.pb-pd-panel { position: sticky; top: 84px; background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 24px; }
.pb-pd-cat { display: inline-block; background: var(--pb-primary-soft); color: var(--pb-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 6px; }
.pb-pd-title { font-family: var(--pb-font); font-size: 24px; font-weight: 700; color: #111; margin: 10px 0 0; line-height: 1.3; overflow-wrap: break-word; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pb-pd-price { font-size: 24px; font-weight: 700; color: var(--pb-primary); margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.pb-pd-sold { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #b91c1c; background: #fee2e2; padding: 4px 10px; border-radius: 6px; }
.pb-pd-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; color: #4b5563; font-size: 13px; }
.pb-pd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pb-pd-meta i { color: var(--pb-primary); font-size: 15px; }
.pb-pd-hr { height: 1px; background: var(--pb-border); margin: 20px 0; }

.pb-pd-seller { display: flex; align-items: center; gap: 12px; }
.pb-pd-sava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pb-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-pd-sinfo { flex: 1; min-width: 0; }
.pb-pd-sname { font-size: 15px; font-weight: 700; color: #111; display: flex; align-items: center; gap: 5px; min-width: 0; }
.pb-pd-sname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pd-sname i { color: var(--pb-primary); font-size: 13px; }
.pb-pd-smeta { font-size: 13px; color: var(--pb-muted); margin-top: 2px; }
.pb-pd-smeta i { color: #f59e0b; }
.pb-pd-smeta a { color: var(--pb-primary); text-decoration: none; font-weight: 600; }
.pb-pd-smeta a:hover { text-decoration: underline; }
.pb-pd-fb { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #1877f2; text-decoration: none; }
.pb-pd-fb:hover { text-decoration: underline; }
.pb-pd-follow { flex-shrink: 0; background: #fff; border: 1px solid var(--pb-border); color: #111; font-family: var(--pb-font); font-size: 13px; font-weight: 600; border-radius: 100px; padding: 8px 16px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.pb-pd-follow:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-pd-follow.is-following { background: var(--pb-primary-soft); border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-pd-follow[disabled] { opacity: .6; cursor: default; }

.pb-pd-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pb-pd-buy, .pb-pd-msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.pb-pd-buy { background: var(--pb-primary); color: #fff !important; }
.pb-pd-buy:hover { background: var(--pb-primary-h); }
.pb-pd-msg { background: #fff; color: #111 !important; border: 1px solid var(--pb-border); }
.pb-pd-msg:hover { border-color: var(--pb-primary); color: var(--pb-primary) !important; }
.pb-pd-safe { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 12px; color: var(--pb-muted); line-height: 1.5; }
.pb-pd-safe i { color: var(--pb-primary); margin-top: 1px; }
.pb-pd-own { display: flex; gap: 8px; align-items: flex-start; background: var(--pb-primary-soft); border: 1px solid rgba(22,163,74,0.25); border-radius: 12px; padding: 14px; font-size: 13px; color: #15803d; line-height: 1.5; }
.pb-pd-own a { color: var(--pb-primary); font-weight: 700; }

/* Description + details */
.pb-pd-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.pb-pd-detail h2 { font-size: 18px; font-weight: 700; color: #111; margin: 0 0 14px; }
.pb-pd-desc p { font-size: 15px; line-height: 1.7; color: #374151; margin: 0; overflow-wrap: break-word; word-break: break-word; }
.pb-pd-specs { background: #fff; border: 1px solid var(--pb-border); border-radius: 14px; padding: 20px 22px; }
.pb-pd-specs dl { margin: 0; }
.pb-pd-specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.pb-pd-specs dl > div:last-child { border-bottom: none; }
.pb-pd-specs dt { color: var(--pb-muted); font-size: 14px; }
.pb-pd-specs dd { margin: 0; color: #111; font-size: 14px; font-weight: 600; text-align: right; }

/* More from seller */
.pb-pd-more { margin-top: 48px; }
.pb-pd-more h2 { font-size: 20px; font-weight: 800; color: #111; margin: 0 0 18px; letter-spacing: -0.01em; }
.pb-pd-moregrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pb-pd-moregrid > * { min-width: 0; }
.pb-mcard { display: block; background: #fff; border: 1px solid var(--pb-border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .1s, border-color .15s; }
.pb-mcard:hover { box-shadow: 0 8px 20px rgba(22,25,28,.10); transform: translateY(-2px); border-color: transparent; }
.pb-mcard-media { height: 150px; background: var(--pb-primary-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pb-mcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-mcard-media span { font-size: 44px; }
.pb-mcard-body { padding: 12px 14px; }
.pb-mcard-title { font-size: 14px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-mcard-price { font-size: 15px; font-weight: 800; color: var(--pb-primary); margin-top: 3px; }

/* Mobile sticky action bar (outside .pb-shell) */
.pb-pd-bar { display: none; position: sticky; bottom: 0; z-index: 50; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--pb-border); padding: 12px 16px; gap: 10px; align-items: center; }
.pb-pd-bar-price { font-size: 18px; font-weight: 800; color: var(--pb-primary); white-space: nowrap; }
.pb-pd-bar-msg { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--pb-border); color: #111; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; }
.pb-pd-bar-buy { flex: 1; text-align: center; background: var(--pb-primary); color: #fff !important; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 13px; text-decoration: none; }

@media (max-width: 900px) {
    .pb-pd-top { grid-template-columns: 1fr; gap: 24px; }
    .pb-pd-panel { position: static; }
    .pb-pd-detail { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
    .pb-pd-moregrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    /* Sticky bar removed, show actions in panel */
    .pb-pd-actions { display: flex; }
    .pb-pd-bar { display: none; }
    .pb-pd { padding-bottom: 20px; }
}
@media (max-width: 560px) {
    .pb-pd-title { font-size: 19px; }
    .pb-pd-price { font-size: 21px; }
    .pb-pd-main { aspect-ratio: 1 / 1; }
}

/* ═══════════════════════ marketplace ═══════════════════════ */
/* ── Browse page — site green theme (pb-theme.css tokens) ─────────── */
/* .pb-shell supplies horizontal gutters; use padding-top/bottom longhand. */
.pb-browse { padding-top: 28px; padding-bottom: 72px; }
.pb-bc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--pb-muted); margin-bottom: 20px; }
.pb-bc a { color: var(--pb-muted); text-decoration: none; }
.pb-bc a:hover { color: var(--pb-primary); }
.pb-bc .pb-bc-cur { color: var(--pb-primary); font-weight: 600; }

.pb-browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.pb-browse-head h1 { font-size: 34px; font-weight: 800; color: #111; margin: 0; letter-spacing: -0.02em; }
.pb-browse-h1 { display: flex; align-items: center; gap: 12px; }
.pb-browse-h1-ic { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.pb-browse-head p { color: #4b5563; font-size: 15px; margin: 6px 0 0; }
.pb-sortbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--pb-border); border-radius: 10px; padding: 8px 14px; }
.pb-sortbox > span { font-size: 14px; color: #4b5563; white-space: nowrap; }
.pb-sortbox select { border: none; outline: none; background: transparent; font-family: var(--pb-font); font-size: 14px; font-weight: 600; color: #111; cursor: pointer; color-scheme: light; }
.pb-sortbox select option { color: #111; background: #fff; }

.pb-browse-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.pb-browse-body > * { min-width: 0; }

.pb-browse-side { background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }
.pb-fgroup { display: flex; flex-direction: column; gap: 14px; }
.pb-fgroup h3 { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
.pb-fdiv { height: 1px; background: var(--pb-border); }
.pb-fcats { display: flex; flex-direction: column; gap: 4px; }
.pb-fcat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: #4b5563; text-decoration: none; transition: background .12s, color .12s; }
.pb-fcat-img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; margin-right: 6px; }
.pb-fcat-ic { font-size: 18px; color: var(--pb-muted); flex-shrink: 0; width: 22px; text-align: center; margin-right: 6px; }
.pb-fcat:hover { background: #f6f7f6; color: #111; }
.pb-fcat.is-active { background: var(--pb-primary-soft); color: var(--pb-primary); font-weight: 700; }
.pb-fcat.is-active .pb-fcat-ic { color: var(--pb-primary); }

.pb-price { display: flex; gap: 12px; }
.pb-price > label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.pb-priceinput { display: flex; align-items: center; gap: 4px; border: 1px solid var(--pb-border); border-radius: 10px; padding: 0 12px; height: 44px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pb-priceinput:focus-within { border-color: var(--pb-primary); box-shadow: var(--pb-ring); }
.pb-priceinput > span { color: #9ca3af; font-size: 14px; }
.pb-priceinput input { border: none; outline: none; width: 100%; min-width: 0; font-family: var(--pb-font); font-size: 14px; color: #111; background: transparent; -moz-appearance: textfield; }
.pb-priceinput input::-webkit-outer-spin-button, .pb-priceinput input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pb-applybtn { border: none; background: var(--pb-primary); color: #fff; font-family: var(--pb-font); font-weight: 700; font-size: 14px; border-radius: 10px; padding: 13px; cursor: pointer; transition: background .15s; }
.pb-applybtn:hover { background: var(--pb-primary-h); }

.pb-browse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pb-browse-grid > * { min-width: 0; }
.pb-bcard { background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .16s, transform .1s, border-color .16s; }
.pb-bcard:hover { box-shadow: 0 10px 26px rgba(22,25,28,.10); transform: translateY(-2px); border-color: transparent; }
.pb-bcard-media { display: block; height: 200px; background: var(--pb-primary-soft); overflow: hidden; }
.pb-bcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-bcard-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.pb-bcard-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pb-bcard-cat { align-self: flex-start; background: var(--pb-primary-soft); color: var(--pb-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 8px; border-radius: 5px; }
.pb-bcard-title { font-size: 17px; font-weight: 700; color: #111; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-bcard-title a { color: inherit; text-decoration: none; }
.pb-bcard-price { font-size: 20px; font-weight: 800; color: var(--pb-primary); }
.pb-bcard-desc { font-size: 14px; color: #4b5563; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pb-bcard-div { height: 1px; background: #f0f0f0; margin: 6px 0; }
.pb-bcard-seller { display: flex; align-items: center; gap: 10px; }
.pb-bcard-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--pb-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-bcard-sinfo { display: flex; flex-direction: column; min-width: 0; }
.pb-bcard-sname { font-size: 13px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-bcard-time { font-size: 12px; color: #9ca3af; }
.pb-bcard-msg { margin-top: 4px; text-align: center; background: var(--pb-primary); color: #fff !important; font-weight: 600; font-size: 14px; border-radius: 10px; padding: 11px; text-decoration: none; transition: background .15s; }
.pb-bcard-msg:hover { background: var(--pb-primary-h); }

.pb-pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding-top: 40px; flex-wrap: wrap; }
.pb-pg { min-width: 40px; height: 40px; padding: 0 6px; border: 1px solid var(--pb-border); border-radius: 8px; background: #fff; color: #111; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .12s, background .12s, color .12s; }
.pb-pg:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-pg.is-active { background: var(--pb-primary); border-color: var(--pb-primary); color: #fff; }
.pb-pg.is-disabled { opacity: .4; pointer-events: none; }
.pb-pg.is-ellipsis { border: none; pointer-events: none; }

.pb-browse-empty { background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 64px 24px; text-align: center; color: #4b5563; }
.pb-browse-empty i { font-size: 40px; color: var(--pb-primary); opacity: .5; }
.pb-browse-empty p { margin: 14px 0 4px; font-size: 16px; font-weight: 600; color: #111; }
.pb-browse-empty span { font-size: 14px; }

@media (max-width: 900px) {
    .pb-browse-body { grid-template-columns: 1fr; gap: 24px; }
    .pb-browse-side { position: static; padding: 20px; gap: 24px; border-radius: 0; border-left: none; border-right: none; margin: 0 -20px; }
    .pb-browse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pb-browse-head { margin-bottom: 20px; gap: 12px; }
    .pb-browse-head h1 { font-size: 28px; }
    .pb-browse-head p { font-size: 14px; }

    /* Redesign filters for mobile */
    .pb-fgroup h3 { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pb-muted); margin-bottom: 12px; }

    .pb-fcats {
        flex-direction: row;
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px 4px;
        gap: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .pb-fcats::-webkit-scrollbar { display: none; }
    .pb-fcat {
        padding: 8px 16px;
        border: 1px solid var(--pb-border);
        white-space: nowrap;
        font-size: 13px;
        font-weight: 600;
        flex-shrink: 0;
        background: #fff;
    }
    .pb-fcat.is-active {
        background: var(--pb-primary-soft);
        border-color: var(--pb-primary);
        color: var(--pb-primary);
    }

    .pb-fdiv { display: none; }
    
    .pb-applybtn { padding: 15px; font-size: 15px; border-radius: 12px; }
}
@media (max-width: 560px) {
    .pb-browse-grid { grid-template-columns: 1fr; }
    .pb-browse-head { align-items: flex-start; }
    .pb-browse-head h1 { font-size: 24px; }
    .pb-browse-h1-ic { width: 28px; height: 28px; }
    .pb-bcard-title { font-size: 16px; }
}

/* ═══════════════════════ seller ═══════════════════════ */
/* ── Seller profile — tokens from pb-theme.css ───────────────────── */
.pb-seller-page { padding-bottom: 64px; }  /* longhand: keep .pb-shell gutters */

/* Hero */
.pb-seller-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 28px; flex-wrap: wrap; }
.pb-seller-id { display: flex; align-items: center; gap: 20px; min-width: 0; }
.pb-seller-id > div { min-width: 0; }
.pb-seller-hero-ava { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--pb-primary-soft); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-seller-hero-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-seller-hero-name { font-size: 26px; font-weight: 800; color: #111; margin: 0; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-seller-handle { color: var(--pb-primary); font-size: 14px; font-weight: 600; margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-seller-meta { color: #6b7280; font-size: 13.5px; }
.pb-seller-fb { display: inline-flex; align-items: center; gap: 6px; color: var(--pb-primary); font-size: 13.5px; font-weight: 600; text-decoration: none; margin-top: 10px; }
.pb-seller-fb:hover { text-decoration: underline; }
.pb-seller-cta { display: flex; gap: 10px; flex-shrink: 0; }
.pb-btn-msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pb-primary); color: #fff !important; border: none; border-radius: 100px; padding: 11px 26px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .16s; }
.pb-btn-msg:hover { background: var(--pb-primary-h); }
.pb-btn-follow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #111; border: 1px solid var(--pb-border); border-radius: 100px; padding: 11px 26px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .16s, color .16s; }
.pb-btn-follow:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-btn-follow.is-following { background: var(--pb-primary-soft); border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-btn-follow[disabled] { opacity: .6; cursor: default; }

/* Stats */
.pb-seller-stats { display: flex; align-items: center; padding: 20px 0; border-top: 1px solid var(--pb-border); border-bottom: 1px solid var(--pb-border); }
.pb-sstat { flex: 1; text-align: center; padding: 4px 12px; }
.pb-sstat + .pb-sstat { border-left: 1px solid var(--pb-border); }
.pb-sstat b { display: block; font-size: 22px; font-weight: 800; color: #111; line-height: 1.2; }
.pb-sstat span { font-size: 13px; color: #6b7280; }

/* Tabs */
.pb-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--pb-border); padding-top: 22px; }
.pb-tab { padding-bottom: 14px; font-size: 15px; font-weight: 600; color: #6b7280; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pb-tab.is-active { color: var(--pb-primary); border-bottom-color: var(--pb-primary); }
.pb-tab:hover { color: #111; }

.pb-seller-sec { padding-top: 32px; }

/* Listing grid + cards */
.pb-sgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pb-scard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.pb-scard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,17,17,0.09); }
.pb-scard-media { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #EAF7EF, #F2F4F3); display: flex; align-items: center; justify-content: center; font-size: 50px; overflow: hidden; }
.pb-scard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-scard-body { padding: 16px; }
.pb-scard-title { font-size: 15px; font-weight: 700; color: #111; }
.pb-scard-price { font-size: 16px; font-weight: 800; color: var(--pb-primary); margin: 3px 0 8px; }
.pb-scard-desc { font-size: 13px; color: #6b7280; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.pb-scard-msg { color: var(--pb-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.pb-scard-msg:hover { color: var(--pb-primary-h); text-decoration: underline; }

/* Reviews */
.pb-reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pb-reviews-title { font-size: 22px; font-weight: 800; color: #111; margin: 0; }
.pb-reviews-rating { display: flex; align-items: center; gap: 8px; }
.pb-reviews-rating b { font-size: 18px; font-weight: 800; color: #111; }
.pb-stars { color: #F5B700; font-size: 14px; letter-spacing: 1px; }
.pb-reviews-count { color: #6b7280; font-size: 13px; }
.pb-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pb-review { border: 1px solid var(--pb-border); border-radius: 14px; padding: 20px; }
.pb-review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pb-review-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--pb-primary-soft); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-review-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-review-name { font-size: 14px; font-weight: 700; color: #111; }
.pb-review-time { font-size: 12px; color: #6b7280; }
.pb-review-stars { color: #F5B700; font-size: 12px; margin-bottom: 8px; }
.pb-review-text { font-size: 13.5px; color: #4b5563; line-height: 1.6; margin: 0; }
.pb-reviews-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border: 1px dashed var(--pb-border); border-radius: 14px; color: #6b7280; }
.pb-reviews-empty i { font-size: 34px; color: #c2ccc2; display: block; margin-bottom: 10px; }
.pb-reviews-empty p { margin: 0; font-size: 14px; }

.pb-loadmore { display: none; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .pb-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .pb-seller-hero { flex-direction: column; align-items: center; text-align: center; }
    .pb-seller-id { flex-direction: column; text-align: center; gap: 12px; }
    .pb-seller-cta { flex-direction: column; width: 100%; }
    .pb-btn-msg, .pb-btn-follow { width: 100%; }
    .pb-seller-stats { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border: 1px solid var(--pb-border); border-radius: 14px; }
    .pb-sstat { padding: 18px 12px; border-left: none !important; }
    .pb-sstat:nth-child(odd) { border-right: 1px solid var(--pb-border); }
    .pb-sstat:nth-child(-n+2) { border-bottom: 1px solid var(--pb-border); }
    .pb-tabs { gap: 20px; }
    .pb-loadmore { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 20px; padding: 13px; border: 1px solid var(--pb-border); border-radius: 100px; color: #111; font-weight: 600; font-size: 14px; text-decoration: none; background: #fff; }
    .pb-loadmore:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
}
@media (max-width: 420px) {
    .pb-sgrid { gap: 14px; }
    .pb-seller-hero-name { font-size: 22px; }
}

/* ═══════════════════════ messages ═══════════════════════ */

/* ── Messages shell — app-like region under the sticky navbar ──────── */
.pb-messages { height: calc(100vh - 65px); overflow: hidden; background: #fff;
    font-family: 'DM Sans', var(--pb-font); color: #111; }
.pb-msg-inner { display: flex; height: 100%; }

/* ── Sidebar / conversation list ──────────────────────────────────── */
.pb-msg-list { width: 380px; flex-shrink: 0; border-right: 1px solid #e8e8e8;
    display: flex; flex-direction: column; height: 100%; }
.pb-msg-list-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.pb-msg-list-head h1 { font-size: 20px; font-weight: 700; color: #000; margin: 0; }
.pb-msg-compose { background: none; border: none; color: #111; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; }
.pb-msg-compose:hover { color: var(--pb-primary); }
.pb-msg-search-wrap { padding: 0 16px 16px; }
.pb-msg-search { display: flex; align-items: center; gap: 12px; height: 44px; background: #f5f5f5; border-radius: 22px; padding: 0 16px; }
.pb-msg-search i { color: #71717a; font-size: 16px; }
.pb-msg-search input { border: none; outline: none; background: transparent; flex: 1; min-width: 0; font-family: inherit; font-size: 14px; color: #111; }
.pb-msg-search input::placeholder { color: #71717a; }

.pb-msg-convos { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.pb-convo { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px; text-decoration: none; transition: background .12s; }
.pb-convo:hover { background: #fafafa; }
.pb-convo.is-active { background: #f0fdf4; }
.pb-convo-ava { width: 50px; height: 50px; border-radius: 25px; overflow: hidden; flex-shrink: 0; background: var(--pb-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; }
.pb-convo-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-convo-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.pb-convo-name { font-size: 14px; font-weight: 700; color: #111; overflow: hidden; text-overflow: ellipsis; }
.pb-convo-item { font-size: 13px; color: #71717a; overflow: hidden; text-overflow: ellipsis; }
.pb-convo-prev { font-size: 12px; color: #71717a; opacity: .7; overflow: hidden; text-overflow: ellipsis; }
.pb-convo.is-unread .pb-convo-prev { color: #111; opacity: 1; font-weight: 500; }
.pb-convo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pb-convo-time { font-size: 11px; color: #71717a; }
.pb-convo-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pb-primary); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ── Chat panel ───────────────────────────────────────────────────── */
.pb-msg-chat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; height: 100%; background: #fff; }
.pb-chat-head { display: flex; align-items: center; justify-content: space-between; height: 72px; flex-shrink: 0; padding: 0 16px; border-bottom: 1px solid #e8e8e8; }
.pb-chat-head-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pb-chat-back { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #111; font-size: 22px; text-decoration: none; flex-shrink: 0; }
.pb-chat-back:hover { color: var(--pb-primary); }
.pb-chat-ava { width: 50px; height: 50px; border-radius: 25px; overflow: hidden; flex-shrink: 0; background: var(--pb-primary-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; }
.pb-chat-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-chat-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pb-chat-name { font-size: 15px; font-weight: 700; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chat-sub { font-size: 13px; font-weight: 500; color: var(--pb-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chat-more { background: none; border: none; color: #111; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; flex-shrink: 0; }
.pb-chat-more:hover { color: var(--pb-primary); }

.pb-chat-itemwrap { padding: 12px 16px; flex-shrink: 0; }
.pb-chat-item { display: flex; align-items: center; gap: 12px; border: 1px solid #e8e8e8; border-radius: 12px; padding: 12px; text-decoration: none; transition: border-color .15s, background .15s; max-width: 100%; }
.pb-chat-item:hover { border-color: var(--pb-primary); background: #f7fef9; }
.pb-chat-item-img { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.pb-chat-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-chat-item-body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pb-chat-item-title { font-size: 14px; font-weight: 700; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chat-item-price { font-size: 13px; font-weight: 500; color: var(--pb-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-chat-item-posted { font-size: 12px; color: #71717a; }
.pb-chat-item-link { font-size: 12px; font-weight: 700; color: var(--pb-primary); white-space: nowrap; flex-shrink: 0; }

.pb-chat-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.pb-chat-time { align-self: center; font-size: 12px; color: #71717a; padding: 4px 0; }
.pb-bubble-row { display: flex; width: 100%; }
.pb-bubble-row.is-in { justify-content: flex-start; }
.pb-bubble-row.is-out { justify-content: flex-end; }
.pb-bubble { max-width: 66%; padding: 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; color: #111; word-wrap: break-word; overflow-wrap: anywhere; }
.pb-bubble-row.is-in .pb-bubble { background: #fff; border: 1px solid #e8e8e8; }
.pb-bubble-row.is-out .pb-bubble { background: #f0fdf4; border: 1px solid var(--pb-primary); }

.pb-chat-input { display: flex; align-items: center; gap: 12px; height: 64px; flex-shrink: 0; padding: 0 16px; border-top: 1px solid #e8e8e8; }
.pb-chat-clip { background: none; border: none; color: #71717a; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; flex-shrink: 0; }
.pb-chat-clip:hover { color: var(--pb-primary); }
.pb-chat-field { flex: 1 1 0; min-width: 0; height: 40px; border: 1px solid #e8e8e8; border-radius: 20px; padding: 0 16px; font-family: inherit; font-size: 14px; color: #111; outline: none; transition: border-color .15s, box-shadow .15s; }
.pb-chat-field::placeholder { color: #71717a; }
.pb-chat-field:focus { border-color: var(--pb-primary); box-shadow: var(--pb-ring); }
.pb-chat-send { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 20px; background: var(--pb-primary); color: #fff; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.pb-chat-send:hover { background: var(--pb-primary-h); }
.pb-chat-empty { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #71717a; text-align: center; padding: 40px; }
.pb-chat-empty i { font-size: 42px; color: #d4d4d8; }
.pb-chat-empty p { margin: 0; font-size: 14px; }
.pb-msg-empty { padding: 22px 20px; color: #71717a; font-size: 14px; }

/* ── Deal flow: system event pill + seller "mark sold" / buyer review widget ── */
.pb-chat-event { align-self: center; max-width: 90%; text-align: center; }
.pb-chat-event span { display: inline-block; background: #f0fdf4; border: 1px solid var(--pb-primary); color: #15803d; font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 100px; }
.pb-deal { flex-shrink: 0; margin: 0 16px 12px; padding: 14px 16px; border: 1px solid var(--pb-border); border-radius: 14px; background: #fbfdfb; }
.pb-deal-title { font-size: 13px; font-weight: 700; color: #111; margin-bottom: 10px; }
.pb-deal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 320px; border: none; border-radius: 10px; background: var(--pb-primary); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; padding: 11px 20px; cursor: pointer; transition: background .15s; }
.pb-deal-btn:hover { background: var(--pb-primary-h); }
.pb-deal-btn[disabled] { opacity: .55; cursor: default; }
.pb-deal.pb-deal-done { display: flex; align-items: center; gap: 8px; background: #f0fdf4; border-color: var(--pb-primary); color: #15803d; font-size: 13px; font-weight: 600; }
.pb-rate { display: flex; gap: 6px; margin-bottom: 10px; }
.pb-rate-star { background: none; border: none; padding: 2px; cursor: pointer; font-size: 24px; line-height: 1; color: #F5B700; }
.pb-rate-star i { pointer-events: none; }
.pb-rate-text { width: 100%; box-sizing: border-box; border: 1px solid var(--pb-border); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 13px; color: #111; resize: vertical; margin-bottom: 10px; outline: none; }
.pb-rate-text:focus { border-color: var(--pb-primary); box-shadow: var(--pb-ring); }

/* ── Mobile (master–detail) ───────────────────────────────────────── */
@media (max-width: 860px) {
    .pb-messages { height: calc(100vh - 65px); }
    .pb-msg-list { width: 100%; border-right: none; }
    .pb-msg-chat { display: none; }
    .pb-messages.is-chat .pb-msg-list { display: none; }
    .pb-messages.is-chat .pb-msg-chat { display: flex; }
    .pb-bubble { max-width: 78%; }
    .pb-chat-field, .pb-msg-search input, .pb-rate-text { font-size: 16px; }
    /* Full-screen chat: hide the site chrome (matches Figma 28:238). */
    .pb-messages.is-chat { height: 100vh; }
    body:has(.pb-messages.is-chat) #header { display: none; }
    body:has(.pb-messages) .pb-foot { display: none; }
}

/* ═══════════════════════ notifications ═══════════════════════ */
.pb-notifpage { padding: 32px 0 72px; }
.pb-notifpage-inner { max-width: 720px; margin: 0 auto; }
.pb-notifpage h1 { font-size: 26px; font-weight: 800; color: #111; margin: 0 0 4px; letter-spacing: -0.02em; }
.pb-notifpage-sub { color: #6b7280; font-size: 14px; margin: 0 0 22px; }
.pb-nlist-header { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pb-notif-clear-btn-page { background: none; border: none; color: #6b7280; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; transition: background .15s, color .15s; }
.pb-notif-clear-btn-page:hover { background: #f3f4f6; color: #111; }
.pb-nlist { border: 1px solid var(--pb-border); border-radius: 14px; overflow: hidden; background: #fff; }
.pb-nrow-wrap { position: relative; display: flex; border-bottom: 1px solid #f2f2f2; }
.pb-nrow-wrap:last-child { border-bottom: none; }
.pb-nrow { flex: 1; display: flex; gap: 14px; align-items: flex-start; padding: 16px 54px 16px 18px; text-decoration: none; transition: background .12s; min-width: 0; }
.pb-nrow:hover { background: #fafafa; }
.pb-nrow.is-unread { background: #f0fdf4; }
.pb-nrow-ic { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--pb-primary-soft); color: var(--pb-primary); font-size: 18px; overflow: hidden; }
.pb-nrow-ic img { width: 100%; height: 100%; object-fit: cover; }
.pb-nrow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pb-nrow-text { font-size: 14px; color: #111; font-weight: 600; line-height: 1.4; }
.pb-nrow-sub { font-size: 13px; color: #6b7280; margin-top: 3px; }
.pb-nrow-time { font-size: 12px; color: #9aa0a6; margin-top: 4px; }
.pb-nrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pb-primary); flex-shrink: 0; margin-top: 6px; }
.pb-nrow-del { opacity: 0; position: absolute; top: 16px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: transparent; color: #9aa0a6; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: opacity .2s, background .2s, color .2s; }
.pb-nrow-wrap:hover .pb-nrow-del { opacity: 1; }
.pb-nrow-del:hover { background: #fee2e2; color: #ef4444; }
.pb-nempty { border: 1px solid var(--pb-border); border-radius: 14px; background: #fff; padding: 56px 24px; text-align: center; }
.pb-nempty i { font-size: 34px; color: var(--pb-primary); opacity: .5; }
.pb-nempty p { margin: 12px 0 0; color: #6b7280; font-size: 14px; }

@media (max-width: 860px) {
    .pb-notifpage.pb-shell { padding-left: 0; padding-right: 0; }
    .pb-notifpage-inner { padding: 0 20px; }
    .pb-nlist { border-left: none; border-right: none; border-radius: 0; }
    .pb-nrow-del, .pb-notif-del { opacity: 1; color: #9aa0a6; }
}
@media (max-width: 560px) { .pb-notifpage { padding: 20px 0 56px; } }

/* ═══════════════════════ profile ═══════════════════════ */
/* ── Profile page — tokens from pb-theme.css ─────────────────────── */
/* Only set bottom padding — .pb-shell supplies the horizontal gutters;
   a `padding` shorthand here would reset them to 0. */
.pb-profile { padding-bottom: 72px; }
.pb-prof-head { padding: 34px 0 8px; }
.pb-breadcrumb { font-size: 13px; color: var(--pb-primary); font-weight: 600; margin-bottom: 12px; }
.pb-breadcrumb a { color: var(--pb-primary); text-decoration: none; }
.pb-breadcrumb span { color: var(--pb-muted); }
.pb-prof-h1 { font-size: 32px; font-weight: 800; color: #111; margin: 0; letter-spacing: -0.02em; }
.pb-prof-sub { color: #6b7280; font-size: 15px; margin: 6px 0 0; }

.pb-saved { display: flex; align-items: center; gap: 10px; background: var(--pb-primary-soft); border: 1px solid rgba(22,163,74,0.3); color: #15803d; border-radius: 12px; padding: 13px 16px; margin-top: 20px; font-weight: 600; font-size: 14px; }
.pb-saved-error { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }

.pb-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; padding-top: 24px; }
.pb-profile-grid > * { min-width: 0; }

.pb-form-section { margin-bottom: 34px; }
.pb-form-section > h3 { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 16px; }
.pb-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pb-field:last-child { margin-bottom: 0; }
.pb-field > label { font-size: 14px; font-weight: 600; color: #111; }
.pb-field .pb-lblrow { display: flex; align-items: center; justify-content: space-between; }
.pb-field .pb-lblrow .pb-counter { font-size: 12px; color: var(--pb-primary); font-weight: 600; }

.pb-input, .pb-select select, .pb-textarea, .pb-inline {
    width: 100%; background: #fff; border: 1px solid var(--pb-border); border-radius: 10px;
    font-family: var(--pb-font); font-size: 15px; color: #111; transition: border-color .15s, box-shadow .15s;
}
.pb-input, .pb-select select, .pb-inline { height: 52px; }
.pb-input { padding: 0 16px; }
.pb-input::placeholder, .pb-textarea::placeholder { color: #9aa0a6; }
.pb-input:focus, .pb-select select:focus, .pb-textarea:focus, .pb-inline:focus-within { outline: none; border-color: var(--pb-primary); box-shadow: var(--pb-ring); }
.pb-input:read-only, .pb-readonly { background: #f3f4f1; color: #6b7280; }
.pb-textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.55; }
.pb-select { position: relative; }
.pb-select select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding: 0 42px 0 16px; cursor: pointer; color-scheme: light; }
.pb-select select option { color: #111827; background-color: #fff; }
.pb-select select option:disabled { color: #9aa0a6; }
.pb-select .pb-chev { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; font-size: 15px; }
.pb-inline { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.pb-inline .pb-at { color: #9aa0a6; }
.pb-inline input { border: none; outline: none; flex: 1; min-width: 0; font-size: 15px; font-family: var(--pb-font); background: transparent; color: #111; }

/* Profile photo */
.pb-photo-row { display: flex; align-items: center; gap: 18px; }
.pb-avatar-ring { width: 92px; height: 92px; border-radius: 50%; border: 2px dashed var(--pb-primary); padding: 5px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.pb-avatar-ring img, .pb-avatar-ring .pb-ava-initial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pb-avatar-ring .pb-ava-initial { display: flex; align-items: center; justify-content: center; background: var(--pb-primary-soft); color: var(--pb-primary); font-size: 40px; font-weight: 700; text-transform: uppercase; }
.pb-photo-actions .pb-photo-links { display: flex; align-items: center; gap: 16px; }
.pb-photo-links .pb-upload { color: var(--pb-primary); font-weight: 600; font-size: 14px; text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.pb-photo-links .pb-fb { color: #111; font-weight: 600; font-size: 14px; background: none; border: none; cursor: pointer; padding: 0; }
.pb-photo-help { color: #6b7280; font-size: 13px; margin: 8px 0 0; }

/* Connected account */
.pb-connected { display: flex; align-items: center; gap: 14px; background: var(--pb-primary-soft); border: 1px solid rgba(22,163,74,0.3); border-radius: 10px; padding: 16px; }
.pb-connected .pb-fb-ico { width: 32px; height: 32px; border-radius: 50%; background: #1877F2; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-connected .pb-conn-body { flex: 1; min-width: 0; }
.pb-connected .pb-conn-name { font-weight: 700; font-size: 14px; color: #111; }
.pb-connected .pb-conn-url { font-size: 13px; color: var(--pb-primary); word-break: break-all; }
.pb-connected .pb-disconnect { color: #6b7280; font-size: 13px; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.pb-connected .pb-disconnect:hover { color: #C0362C; }
.pb-connected .pb-g-ico { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--pb-border); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-connected .pb-g-ico svg { width: 18px; height: 18px; }
.pb-connected .pb-conn-ok { color: var(--pb-primary); font-size: 20px; flex-shrink: 0; }
.pb-opt { color: var(--pb-muted); font-weight: 500; font-size: 12px; }
.pb-conn-note { color: #6b7280; font-size: 13px; margin: 10px 0 0; }

/* Toggles */
.pb-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.pb-toggle-row + .pb-toggle-row { border-top: 1px solid #f0f0f0; }
.pb-toggle-row span { font-size: 14px; color: #111; }
.pb-toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.pb-toggle input { opacity: 0; width: 0; height: 0; }
.pb-toggle .slider { position: absolute; inset: 0; background: #d1d5db; border-radius: 100px; cursor: pointer; transition: background .2s; }
.pb-toggle .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.pb-toggle input:checked + .slider { background: var(--pb-primary); }
.pb-toggle input:checked + .slider::before { transform: translateX(20px); }
.pb-toggle input:focus-visible + .slider { box-shadow: var(--pb-ring); }

/* Actions */
.pb-prof-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 16px; }
.pb-cancel { background: none; border: none; color: #6b7280; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; padding: 8px 4px; }
.pb-cancel:hover { color: #111; }
.pb-save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pb-primary); color: #fff; border: none; border-radius: 100px; padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .16s, transform .1s; }
.pb-save-btn:hover { background: var(--pb-primary-h); transform: translateY(-1px); }

/* Preview sidebar */
.pb-profile-side { position: sticky; top: 88px; }
.pb-pv-card { background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 24px; }
.pb-pv-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pb-muted); font-weight: 700; }
.pb-pv-user { text-align: center; padding: 18px 0 8px; }
.pb-pv-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; background: var(--pb-primary-soft); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--pb-primary); text-transform: uppercase; overflow: hidden; }
.pb-pv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-pv-name { font-weight: 700; font-size: 16px; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pv-handle { color: var(--pb-primary); font-size: 13px; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pv-city { color: #6b7280; font-size: 13px; margin-top: 2px; }
.pb-pv-sub { font-size: 13px; font-weight: 700; color: #111; margin: 18px 0 12px; }
.pb-pv-listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pb-pv-item { text-decoration: none; min-width: 0; }
.pb-pv-thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: linear-gradient(150deg, #EAF7EF, #F2F4F3); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pb-pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-pv-item .pb-pv-t { font-size: 11px; color: #111; margin-top: 5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-pv-item .pb-pv-p { font-size: 11px; font-weight: 700; color: var(--pb-primary); }
.pb-pv-viewlink { display: inline-block; margin-top: 16px; color: var(--pb-primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.pb-pv-viewlink:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pb-profile-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pb-profile-side { display: none; }        /* preview omitted on mobile (Figma) */
    .pb-photo-row { flex-direction: column; text-align: center; gap: 14px; }
    .pb-photo-links { justify-content: center; }
}
@media (max-width: 560px) {
    .pb-prof-h1 { font-size: 26px; }
    .pb-prof-actions { flex-direction: column-reverse; align-items: stretch; }
    .pb-save-btn { width: 100%; }
    .pb-cancel { text-align: center; }
}

/* ═══════════════════════ sell ═══════════════════════ */
/* ── Post a Listing — tokens from pb-theme.css ───────────────────── */
/* Only set bottom padding — the shared .pb-shell class provides the
   horizontal gutters; a `padding` shorthand here would reset them to 0. */
.pb-sell { padding-bottom: 72px; }
.pb-sell-head { padding: 34px 0 8px; }
.pb-breadcrumb { font-size: 13px; color: var(--pb-primary); font-weight: 600; margin-bottom: 12px; }
.pb-breadcrumb a { color: var(--pb-primary); text-decoration: none; }
.pb-breadcrumb span { color: var(--pb-muted); }
.pb-sell-h1 { font-size: 32px; font-weight: 800; color: #111; margin: 0; letter-spacing: -0.02em; }
.pb-sell-sub { color: #6b7280; font-size: 15px; margin: 6px 0 0; }

.pb-sell-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; padding-top: 24px; }
.pb-sell-grid > * { min-width: 0; }  /* let tracks shrink so the photo row scrolls internally (no page overflow) */

/* Form */
.pb-form-section { margin-bottom: 34px; }
.pb-form-section > h3 { font-size: 16px; font-weight: 700; color: #111; margin: 0 0 16px; }
.pb-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pb-field:last-child { margin-bottom: 0; }
.pb-field > label { font-size: 14px; font-weight: 600; color: #111; }
.pb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pb-form-row .pb-field { margin-bottom: 0; }

.pb-input, .pb-select select, .pb-textarea, .pb-inline {
    width: 100%; background: #fff; border: 1px solid var(--pb-border); border-radius: 10px;
    font-family: var(--pb-font); font-size: 15px; color: #111; transition: border-color .15s, box-shadow .15s;
}
.pb-input, .pb-select select, .pb-inline { height: 52px; }
.pb-input { padding: 0 16px; }
.pb-input::placeholder, .pb-textarea::placeholder { color: #9aa0a6; }
.pb-input:focus, .pb-select select:focus, .pb-textarea:focus, .pb-inline:focus-within { outline: none; border-color: var(--pb-primary); box-shadow: var(--pb-ring); }
.pb-textarea { padding: 14px 16px; min-height: 140px; resize: vertical; line-height: 1.55; }

.pb-select { position: relative; }
.pb-select select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding: 0 42px 0 16px; cursor: pointer; color-scheme: light; }
.pb-select select option { color: #111827; background-color: #ffffff; }
.pb-select select option:disabled { color: #9aa0a6; }
.pb-select .pb-chev { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #6b7280; pointer-events: none; font-size: 15px; }

.pb-inline { display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.pb-inline .pb-peso { color: #111; }
.pb-inline input { border: none; outline: none; flex: 1; min-width: 0; font-size: 15px; font-family: var(--pb-font); background: transparent; color: #111; }

.pb-counter { font-size: 12px; color: #9aa0a6; text-align: right; margin-top: 6px; }

/* Photo upload */
.pb-drop { border: 2px dashed rgba(22,163,74,0.4); border-radius: 12px; background: #f6fcf8; padding: 44px 20px; text-align: center; cursor: pointer; transition: border-color .16s, background .16s; }
.pb-drop:hover { border-color: var(--pb-primary); background: #eff9f2; }
.pb-drop-ico { font-size: 30px; color: var(--pb-primary); }
.pb-drop-title { color: var(--pb-primary); font-weight: 600; font-size: 15px; margin-top: 10px; }
.pb-drop-sub { color: #6b7280; font-size: 13px; margin-top: 4px; }
.pb-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pb-thumbs::-webkit-scrollbar { display: none; }
.pb-thumb-slot { flex: 0 0 80px; width: 80px; height: 80px; border-radius: 10px; border: 1px solid var(--pb-border); background: #f3f4f1 center/cover no-repeat; display: flex; align-items: center; justify-content: center; padding: 0; }
.pb-thumb-add { cursor: pointer; color: #9aa0a6; }
.pb-thumb-add:hover { border-color: var(--pb-primary); color: var(--pb-primary); }
.pb-thumb-filled { border-color: var(--pb-border); position: relative; }
.pb-thumb-remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(17,17,17,0.6); color: #fff; font-size: 11px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pb-thumb-remove:hover { background: #C0362C; }

/* Radios + info note */
.pb-radios { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 4px; }
.pb-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #111; cursor: pointer; }
.pb-radio input { accent-color: var(--pb-primary); width: 18px; height: 18px; }
.pb-info-note { display: flex; align-items: flex-start; gap: 12px; background: var(--pb-primary-soft); border: 1px solid rgba(22,163,74,0.25); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: #3f5a49; margin-top: 20px; }
.pb-info-note i { color: var(--pb-primary); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Actions */
.pb-sell-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; gap: 16px; }
.pb-draft { background: none; border: none; color: #6b7280; font-weight: 600; font-size: 15px; cursor: pointer; padding: 8px 4px; }
.pb-draft:hover { color: #111; }
.pb-post-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pb-primary); color: #fff; border: none; border-radius: 100px; padding: 14px 32px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .16s, transform .1s; }
.pb-post-btn:hover { background: var(--pb-primary-h); transform: translateY(-1px); }

/* Sidebar */
.pb-sidebar { position: sticky; top: 88px; }
.pb-preview-card { background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 24px; }
.pb-preview-title { font-weight: 700; font-size: 16px; color: #111; margin: 0 0 16px; }
.pb-preview-item .pb-preview-thumb { height: 170px; border-radius: 12px; background: #eef0ee center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #c2c8c2; font-size: 30px; }
.pb-preview-body { padding-top: 14px; }
.pb-preview-name { font-size: 14px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-preview-price { font-size: 18px; font-weight: 800; color: var(--pb-primary); margin: 4px 0; }
.pb-preview-meta { font-size: 13px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-tips { border-top: 1px solid var(--pb-border); margin-top: 20px; padding-top: 20px; }
.pb-tips-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--pb-primary); text-transform: uppercase; margin-bottom: 14px; }
.pb-tip { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4b5563; margin-bottom: 12px; }
.pb-tip:last-child { margin-bottom: 0; }
.pb-tip i { color: var(--pb-primary); font-size: 16px; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pb-sell-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pb-sidebar { display: none; }           /* Figma mobile omits the preview/tips */
}
@media (max-width: 560px) {
    .pb-sell-h1 { font-size: 26px; }
    .pb-form-row { gap: 12px; }
    .pb-radios { flex-direction: column; gap: 12px; }
    .pb-sell-actions { flex-direction: column-reverse; align-items: stretch; }
    .pb-post-btn { width: 100%; }
    .pb-draft { text-align: center; }
}

/* ═══════════════════════ My Listings (manage) ═══════════════════════ */
.pb-mylist { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(64px, 9vw, 112px); min-height: calc(100vh - 65px); }

/* Header */
.pb-mylist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #e4e9e6; flex-wrap: wrap; }
.pb-mylist-kicker { margin: 0 0 10px; color: var(--pb-primary); font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.pb-mylist-h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.04em; line-height: 1.15; }
.pb-mylist-sub { color: #64748b; font-size: 13px; margin: 0; line-height: 1.65; }

/* Filter tabs */
.pb-mylist-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid #e4e9e6; overflow-x: auto; scrollbar-width: none; }
.pb-mylist-tabs::-webkit-scrollbar { display: none; }
.pb-mltab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; font-size: 13px; font-weight: 600; color: #94a3b8; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1.5px; cursor: pointer; transition: color .15s, border-color .15s; font-family: var(--pb-font); white-space: nowrap; }
.pb-mltab:hover { color: #334155; }
.pb-mltab.is-active { color: #0f172a; border-bottom-color: var(--pb-primary); }
.pb-mltab-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #f1f5f9; color: #94a3b8; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.pb-mltab.is-active .pb-mltab-count { background: rgba(22,163,74,0.12); color: var(--pb-primary); }

/* Cards grid */
.pb-mylist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-content: start; }
.pb-mylist-grid > * { min-width: 0; }

/* Card */
.pb-mylist-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8ecf0; border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pb-mylist-card:hover { box-shadow: 0 12px 36px rgba(15,23,42,.08); transform: translateY(-3px); border-color: #d0d8e2; }
.pb-mylist-card.is-sold { opacity: .65; }

/* Image */
.pb-mylist-media { position: relative; display: block; overflow: hidden; background: #f8fafc; }
.pb-mylist-media img { height: 200px; width: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pb-mylist-card:hover .pb-mylist-media img { transform: scale(1.05); }
.pb-mylist-media .pb-noimg { display: flex; align-items: center; justify-content: center; height: 200px; background: linear-gradient(145deg, #f0fdf4 0%, #f1f5f9 100%); color: #cbd5e1; font-size: 44px; }

/* Hover overlay */
.pb-mylist-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; z-index: 1; }
.pb-mylist-media:hover .pb-mylist-overlay { opacity: 1; }
.pb-mylist-overlay span { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); border-radius: 100px; padding: 7px 16px; }

/* Card body */
.pb-mylist-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.pb-mylist-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pb-mylist-cat { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--pb-primary); background: rgba(22,163,74,0.08); padding: 3px 8px; border-radius: 4px; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-mylist-age { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
.pb-mylist-titlelink { text-decoration: none; display: block; }
.pb-mylist-title { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; transition: color .15s; }
.pb-mylist-titlelink:hover .pb-mylist-title { color: var(--pb-primary); }
.pb-mylist-price { font-size: 18px; font-weight: 700; color: var(--pb-primary); letter-spacing: -0.01em; margin-bottom: 14px; }

/* Action row */
.pb-mylist-footer { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.pb-mylist-act { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 8px 12px; text-decoration: none; cursor: pointer; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; transition: border-color .15s, color .15s, background .15s; font-family: var(--pb-font); white-space: nowrap; }
.pb-mylist-act:hover { border-color: var(--pb-primary); color: var(--pb-primary); background: rgba(22,163,74,0.05); }
.pb-mylist-edit { flex: 1; }
.pb-mylist-sold { flex: 1; }
.pb-mylist-del { flex: 0 0 auto; width: 34px; padding: 8px; }
.pb-mylist-del:hover { border-color: #e11d48; color: #e11d48; background: #fff1f2; }

/* Empty state */
.pb-mylist-empty { display: grid; justify-items: start; gap: 24px; padding: clamp(32px, 6vw, 72px); border: 1px solid #dce3df; border-left: 3px solid var(--pb-primary); border-radius: 2px; background: #fff; text-align: left; }
.pb-mylist-empty-kicker { color: var(--pb-primary); font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.pb-mylist-empty-copy { max-width: 580px; }
.pb-mylist-empty h2 { margin: 0 0 10px; color: #0f172a; font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.2; }
.pb-mylist-empty p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.75; }
.pb-mylist-empty .pb-btn-fill { border-radius: 2px; padding: 12px 18px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.pb-mylist-filter-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; min-height: 280px; }
.pb-mylist-filter-empty i { font-size: 38px; color: #cbd5e1; display: block; margin-bottom: 12px; }
.pb-mylist-filter-empty p { margin: 0; font-size: 13px; font-weight: 500; color: #64748b; }

/* Edit form: current photos preview */
.pb-existing { margin-top: 14px; }
.pb-existing-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.pb-existing-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-existing-thumb { width: 84px; height: 84px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid var(--pb-border); }
.pb-existing-note { font-size: 12px; color: #9aa0a6; margin: 8px 0 0; }

/* Edit form: recently removed photos */
.pb-deleted { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--pb-border); }
.pb-deleted-label { font-size: 13px; font-weight: 600; color: #6b7280; margin-bottom: 8px; }
.pb-deleted-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-deleted-thumb { width: 64px; height: 64px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--pb-border); filter: grayscale(1) opacity(0.6); transition: all .2s; cursor: help; }
.pb-deleted-thumb:hover { filter: none; opacity: 1; transform: scale(1.05); }
.pb-deleted-note { font-size: 11.5px; color: #9ca3af; margin: 6px 0 0; }

/* Listing detail: owner action row */
.pb-pd-owneractions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pb-pd-owneractions .pb-pd-buy, .pb-pd-owneractions .pb-pd-msg { padding: 10px 20px; font-size: 13.5px; border-radius: 10px; cursor: pointer; }
@media (max-width: 600px) {
    .pb-pd-owneractions .pb-pd-buy, .pb-pd-owneractions .pb-pd-msg { flex: 1; text-align: center; min-width: 120px; }
}

@media (min-width: 681px) {
    .pb-mylist-empty { grid-template-columns: minmax(0, 580px) max-content; align-items: end; justify-content: space-between; column-gap: clamp(24px, 5vw, 64px); }
    .pb-mylist-empty-kicker { grid-column: 1 / -1; }
}
@media (max-width: 1100px) { .pb-mylist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 680px) {
    .pb-mylist { padding-top: 24px; padding-bottom: 64px; }
    .pb-mylist-grid { grid-template-columns: 1fr; gap: 14px; min-height: 0; }
    .pb-mylist-head { flex-direction: column; gap: 8px; margin-bottom: 20px; padding-bottom: 20px; }
    .pb-mylist-tabs { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
    .pb-mltab { padding: 9px 14px; }
    .pb-mylist-media img, .pb-mylist-media .pb-noimg { height: 200px; }
    .pb-mylist-empty { gap: 20px; padding: 32px 20px; }
    .pb-mylist-empty .pb-btn-fill { width: 100%; justify-content: center; }
}

/* ═══════════════════════ Shared confirmation modal ═══════════════════════ */
.pb-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.50); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.pb-modal-overlay.is-open { opacity: 1; pointer-events: all; }
.pb-modal { background: #fff; border-radius: 20px; padding: 32px 28px 24px; max-width: 400px; width: 100%; box-shadow: 0 32px 80px rgba(15,23,42,.18); transform: translateY(10px) scale(.97); transition: transform .24s ease; text-align: center; }
.pb-modal-overlay.is-open .pb-modal { transform: translateY(0) scale(1); }
.pb-modal-icon { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 16px; background: rgba(22,163,74,0.10); color: var(--pb-primary); }
.pb-modal-icon.is-danger { background: #fff1f2; color: #e11d48; }
.pb-modal-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 8px; line-height: 1.3; }
.pb-modal-body { font-size: 13px; color: #64748b; margin: 0 0 24px; line-height: 1.65; }
.pb-modal-actions { display: flex; gap: 10px; }
.pb-modal-cancel { flex: 1; padding: 11px; font-size: 13px; font-weight: 600; border-radius: 10px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: #64748b; cursor: pointer; font-family: var(--pb-font); transition: border-color .15s, color .15s; }
.pb-modal-cancel:hover { border-color: #94a3b8; color: #334155; }
.pb-modal-confirm-btn { flex: 1; padding: 11px; font-size: 13px; font-weight: 600; border-radius: 10px; border: none; background: var(--pb-primary); color: #fff; cursor: pointer; font-family: var(--pb-font); transition: background .15s; }
.pb-modal-confirm-btn:hover { background: var(--pb-primary-h); }
.pb-modal-confirm-btn.is-danger { background: #e11d48; }
.pb-modal-confirm-btn.is-danger:hover { background: #be123c; }
@media (max-width: 480px) { .pb-modal { padding: 28px 20px 20px; border-radius: 16px; } }
