/* Shoppage — consumer site stylesheet (2026 revamp).
   Search-first like Google Search, shopping tiles like Google Shopping,
   navigation and density like X. Tokens on :root; true-black dark mode.
   Loaded after tailwind.min.css so older pages keep working inside the new
   shell while the core pages use these components. */

:root {
	color-scheme: light;
	--bg: #ffffff;
	--bg-2: #f8f9fa;
	--bg-3: #f1f3f4;
	--ink: #1f1f1f;
	--ink-2: #3c4043;
	--muted: #5f6368;
	--faint: #80868b;
	--line: #e3e3e3;
	--line-2: #dadce0;
	--brand: #0b8a5a;
	--brand-2: #086b46;
	--brand-soft: #e6f4ee;
	--brand-ink: #075c3c;
	--link: #1a0dab;
	--link-visited: #681da8;
	--sale: #c5221f;
	--sale-soft: #fce8e6;
	--warn: #b06000;
	--warn-soft: #fef7e0;
	--info: #0b57d0;
	--info-soft: #e8f0fe;
	--focus: #0b57d0;
	--tile-img: #f8f9fa;
	--shadow-1: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .08);
	--shadow-2: 0 1px 3px rgba(60, 64, 67, .16), 0 4px 8px 3px rgba(60, 64, 67, .10);
	--shadow-pop: 0 8px 28px rgba(0, 0, 0, .16);
	--font: "Plus Jakarta Sans", "Google Sans Text", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Outfit", "Google Sans", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
	--r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 24px; --pill: 999px;
	--nav-w: 260px;
	--rail-w: 340px;
	--header-h: 64px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #000000; --bg-2: #16181c; --bg-3: #1f2328;
		--ink: #e7e9ea; --ink-2: #d6d9db; --muted: #8b949e; --faint: #71767b;
		--line: #2f3336; --line-2: #3a3f44;
		--brand: #34c38f; --brand-2: #5fd6a8; --brand-soft: #0f2a20; --brand-ink: #7fe0b8;
		--link: #8ab4f8; --link-visited: #c58af9;
		--sale: #f28b82; --sale-soft: #3a1917; --warn: #fdd663; --warn-soft: #3a3111;
		--info: #8ab4f8; --info-soft: #172336; --focus: #8ab4f8; --tile-img: #e8eaed;
		--shadow-1: none; --shadow-2: 0 0 0 1px #2f3336; --shadow-pop: 0 0 0 1px #2f3336, 0 12px 32px rgba(0, 0, 0, .7);
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #000000; --bg-2: #16181c; --bg-3: #1f2328;
	--ink: #e7e9ea; --ink-2: #d6d9db; --muted: #8b949e; --faint: #71767b;
	--line: #2f3336; --line-2: #3a3f44;
	--brand: #34c38f; --brand-2: #5fd6a8; --brand-soft: #0f2a20; --brand-ink: #7fe0b8;
	--link: #8ab4f8; --link-visited: #c58af9;
	--sale: #f28b82; --sale-soft: #3a1917; --warn: #fdd663; --warn-soft: #3a3111;
	--info: #8ab4f8; --info-soft: #172336; --focus: #8ab4f8; --tile-img: #e8eaed;
	--shadow-1: none; --shadow-2: 0 0 0 1px #2f3336; --shadow-pop: 0 0 0 1px #2f3336, 0 12px 32px rgba(0, 0, 0, .7);
}

/* ---------- base ---------- */
html, body { background: var(--bg) !important; color: var(--ink); }
body.site { font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; margin: 0; min-height: 100vh; }
.site h1, .site h2, .site h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.site a { color: inherit; }
.site :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.site img { max-width: 100%; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--bg); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-pop); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell (X-style three columns) ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); max-width: 1600px; margin: 0 auto; min-height: 100vh; }
.shell.with-rail { grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w); }
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 16px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.logo { display: flex; align-items: center; gap: 10px; padding: 8px 10px 14px; text-decoration: none; }
.logo svg { flex: none; }
.logo b { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.navlink { display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: var(--pill); font-size: 17px; color: var(--ink); text-decoration: none; transition: background .15s var(--ease); width: fit-content; max-width: 100%; }
.navlink svg { flex: none; width: 24px; height: 24px; }
.navlink:hover { background: var(--bg-3); }
.navlink[aria-current="page"] { font-weight: 700; }
.navlink .pill-count { font-size: 12px; font-weight: 700; background: var(--brand); color: #fff; border-radius: var(--pill); padding: 0 7px; line-height: 20px; }
.nav .cta { margin: 14px 0 0; width: 100%; }
.nav .foot { margin-top: auto; display: grid; gap: 4px; padding-top: 12px; }
.nav .foot small { font-size: 12px; color: var(--faint); padding: 0 14px; }

.main { min-width: 0; border-right: 1px solid var(--line); }
.shell:not(.with-rail) .main { border-right: 0; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 12px 20px 24px; display: grid; align-content: start; gap: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- top bar with Google-style search ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.topbar .logo-sm { display: none; }
.topbar .loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 6px 10px; border-radius: var(--pill); cursor: pointer; white-space: nowrap; }
.topbar .loc:hover { background: var(--bg-3); }
.searchbox { position: relative; flex: 1; max-width: 720px; }
.searchbox form { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 16px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--pill); transition: box-shadow .15s var(--ease), border-color .15s; }
.searchbox form:hover, .searchbox form:focus-within { box-shadow: var(--shadow-2); border-color: transparent; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.searchbox input::placeholder { color: var(--faint); }
.searchbox .go { width: 36px; height: 36px; border-radius: var(--pill); border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.searchbox .go:hover { background: var(--brand-2); }
.searchbox .clear { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: var(--pill); display: none; }
.searchbox input:not(:placeholder-shown) ~ .clear { display: grid; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 8px 0; display: none; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; text-decoration: none; color: var(--ink); font-size: 15px; }
.suggest a:hover, .suggest a.sel { background: var(--bg-3); }
.suggest a small { margin-left: auto; color: var(--faint); font-size: 12px; }
.suggest a img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; background: var(--tile-img); }
.suggest .hint { padding: 6px 18px; font-size: 12px; color: var(--faint); }
.topbar .actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* ---------- tabs (X-style) ---------- */
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 1 0 auto; text-align: center; padding: 15px 18px; font-size: 15px; color: var(--muted); text-decoration: none; font-weight: 500; position: relative; white-space: nowrap; }
.tabs a:hover { background: var(--bg-2); color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--brand); }

/* ---------- chips (Google Shopping filters) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s; }
.chip:hover { background: var(--bg-2); }
.chip[aria-pressed="true"], .chip.on { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); font-weight: 600; }
.chip svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: var(--pill); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), box-shadow .15s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { opacity: .88; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-2); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { background: var(--bg-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--pill); border: 0; background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--bg-3); }

/* ---------- sections ---------- */
.section { padding: 20px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 20px; font-weight: 700; margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.sec-head .more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.info { background: var(--info-soft); color: var(--info); }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px; font-size: 12.5px; background: var(--bg-2); color: var(--muted); border-bottom: 1px solid var(--line); }
.demo-bar b { color: var(--warn); font-weight: 700; }

/* ---------- hero (Google Search home) ---------- */
.hero { padding: 56px 20px 28px; text-align: center; display: grid; justify-items: center; gap: 18px; }
.hero .mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 7vw, 72px); letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.hero .mark span { color: var(--brand); }
.hero .searchbox { width: 100%; max-width: 640px; }
.hero .searchbox form { height: 52px; box-shadow: var(--shadow-1); }
.hero .tag { color: var(--muted); font-size: 15px; margin: 0; }
.hero .popular { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 680px; }

/* ---------- product tiles (Google Shopping) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 14px; }
.tiles.rowscroll { grid-auto-flow: column; grid-auto-columns: minmax(180px, 200px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.tiles.rowscroll > * { scroll-snap-align: start; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; border-radius: var(--r); padding: 8px; margin: -8px; transition: background .15s; min-width: 0; }
.tile:hover { background: var(--bg-2); }
.tile:hover .t-title { text-decoration: underline; }
.t-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); background: var(--tile-img); display: grid; place-items: center; overflow: hidden; }
.t-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.t-img .ph { color: var(--faint); }
.t-badge { position: absolute; top: 8px; left: 8px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-1); }
.t-badge.sale { background: var(--sale); color: #fff; box-shadow: none; }
.t-title { font-size: 14px; line-height: 1.35; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; }
.t-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-weight: 700; font-size: 16px; }
.t-price s { font-weight: 400; font-size: 13px; color: var(--muted); }
.t-price .off { font-size: 12px; font-weight: 700; color: var(--sale); }
.t-meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.t-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-meta .ok { color: var(--brand-ink); }
.t-meta .store { color: var(--ink-2); }

/* ---------- search results (Google Search / Shopping) ---------- */
.results { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 16px 20px 40px; }
.filters { display: grid; align-content: start; gap: 20px; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: none; }
.filters h3 { font-family: var(--font); font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.filters input[type=radio], .filters input[type=checkbox] { accent-color: var(--brand); width: 17px; height: 17px; }
.filters .count { margin-left: auto; font-size: 12px; color: var(--faint); }
.res-meta { font-size: 14px; color: var(--muted); margin: 0 0 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.res-meta select { font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); padding: 5px 10px; margin-left: auto; }
.overview { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 20px; background: linear-gradient(180deg, var(--brand-soft), transparent 70%); }
.overview h2 { font-family: var(--font); font-size: 14px; font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.overview p { margin: 0; font-size: 15px; color: var(--ink-2); }
.overview ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 4px; }
.webres { display: grid; gap: 22px; margin: 8px 0 24px; max-width: 680px; }
.webres .site-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.webres .fav { width: 28px; height: 28px; border-radius: var(--pill); background: var(--bg-3); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink); flex: none; }
.webres .site-line small { display: block; font-size: 12px; color: var(--muted); }
.webres h3 { font-family: var(--font); font-size: 20px; font-weight: 400; margin: 4px 0 2px; }
.webres h3 a { color: var(--link); text-decoration: none; }
.webres h3 a:hover { text-decoration: underline; }
.webres p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; padding: 20px 20px 8px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); padding: 14px 20px 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.gallery { display: grid; gap: 10px; align-content: start; position: sticky; top: calc(var(--header-h) + 12px); }
.gallery .main-img { aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--tile-img); display: grid; place-items: center; overflow: hidden; }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { width: 64px; height: 64px; flex: none; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--tile-img); padding: 4px; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 4px 0 8px; font-weight: 600; }
.pdp .brand-line { font-size: 14px; color: var(--muted); }
.pdp .price-big { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.pdp .price-sub { font-size: 14px; color: var(--muted); }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: var(--pill); background: var(--bg-2); color: var(--ink-2); }
.fact.ok { background: var(--brand-soft); color: var(--brand-ink); }
.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 16px; }
.compare h2 { font-family: var(--font); font-size: 16px; font-weight: 700; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.compare h2 small { font-weight: 500; color: var(--muted); font-size: 13px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.offer:last-child { border-bottom: 0; }
.offer .who { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer .who .best { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink); background: var(--brand-soft); padding: 1px 7px; border-radius: var(--pill); }
.offer .det { font-size: 13px; color: var(--muted); grid-column: 1; }
.offer .p { font-weight: 700; font-size: 17px; text-align: right; grid-row: 1; grid-column: 2; }
.offer .go { grid-column: 2; justify-self: end; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.tiers { display: grid; gap: 6px; }
.tiers div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-2); }

/* ---------- lists & cards for the right rail (X "What's happening") ---------- */
.box { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.box h2 { font-size: 20px; font-weight: 700; margin: 0; padding: 12px 16px; }
.box .row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; text-decoration: none; color: var(--ink); transition: background .15s; }
.box .row:hover { background: var(--bg-2); }
.box .row img { width: 48px; height: 48px; border-radius: var(--r-sm); object-fit: contain; background: var(--tile-img); flex: none; }
.box .row .txt { min-width: 0; flex: 1; }
.box .row .txt small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box .row .txt b { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box .row .txt span { display: block; font-size: 13px; color: var(--muted); }
.box .foot { display: block; padding: 14px 16px; color: var(--brand); text-decoration: none; font-size: 15px; }
.box .foot:hover { background: var(--bg-2); }
.rail .legal { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px; }
.rail .legal a { color: var(--faint); text-decoration: none; }
.rail .legal a:hover { text-decoration: underline; }

/* ---------- posts (X-style Trade Wire) ---------- */
.post { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.post:hover { background: var(--bg-2); }
.avatar { width: 40px; height: 40px; border-radius: var(--pill); background: var(--bg-3); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.post .head { display: flex; gap: 6px; align-items: baseline; font-size: 15px; flex-wrap: wrap; }
.post .head b { font-weight: 700; }
.post .head span { color: var(--muted); }
.post .body { font-size: 15px; margin: 2px 0 8px; white-space: pre-line; }
.post .media { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 8px; }
.post .media img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.post .prod { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; text-decoration: none; color: var(--ink); margin-bottom: 8px; }
.post .prod:hover { background: var(--bg-3); }
.post .acts { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
.post .acts a, .post .acts span { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.post .acts a:hover { color: var(--brand); }
.composer { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.composer textarea { width: 100%; border: 0; outline: 0; resize: none; font: inherit; font-size: 19px; background: transparent; color: var(--ink); min-height: 56px; }
.composer .bar { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- shorts ---------- */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.short { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #111; color: #fff; text-decoration: none; scroll-snap-align: start; display: flex; align-items: flex-end; }
.short img, .short video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.short .cap { position: relative; width: 100%; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 14px; font-weight: 600; }
.short .cap small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.shorts-feed { height: calc(100vh - var(--header-h)); overflow-y: auto; scroll-snap-type: y mandatory; background: #000; }
.shorts-feed .reel { height: calc(100vh - var(--header-h)); scroll-snap-align: start; position: relative; display: grid; place-items: center; }
.shorts-feed .reel .frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; background: #111; overflow: hidden; }
.shorts-feed .reel .frame img, .shorts-feed .reel .frame video { width: 100%; height: 100%; object-fit: cover; }
.shorts-feed .reel .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; }
.shorts-feed .reel .over h2 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.shorts-feed .reel .side { position: absolute; right: 12px; bottom: 90px; display: grid; gap: 14px; justify-items: center; color: #fff; font-size: 12px; }
.shorts-feed .reel .side a { width: 48px; height: 48px; border-radius: var(--pill); background: rgba(255, 255, 255, .16); display: grid; place-items: center; color: #fff; }

/* ---------- stores (storefront) ---------- */
.store-hero { position: relative; }
.store-cover { height: 180px; background: linear-gradient(135deg, var(--brand), #0f5132); }
.store-id { padding: 0 20px 16px; display: grid; gap: 10px; }
.store-id .avatar { width: 112px; height: 112px; margin-top: -56px; border: 4px solid var(--bg); font-size: 36px; font-family: var(--font-display); background: var(--bg-3); }
.store-id h1 { font-size: 24px; margin: 0; display: flex; align-items: center; gap: 8px; }
.store-id .line { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.store-id .line a { color: var(--link); text-decoration: none; }
.store-id .about { font-size: 15px; margin: 0; }
.verified-mark { color: var(--brand); display: inline-flex; }

/* ---------- drawer & dialogs ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 200; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--bg); z-index: 201; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slidein .22s var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-family: var(--font); font-size: 17px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer .body { flex: 1; overflow-y: auto; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty h2 { font-size: 22px; margin: 0; color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.site-foot .in { max-width: 1600px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--ink); }
.site-foot .sep { flex: 1; }

/* ---------- assistant (floating) ---------- */
.ask { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; box-shadow: var(--shadow-pop); cursor: pointer; }
.ask-btn .spark { color: var(--brand); }
.ask-panel { width: min(400px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px)); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); display: none; flex-direction: column; overflow: hidden; }
.ask-panel.open { display: flex; }
.ask-panel header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.ask-panel header b { display: block; font-size: 15px; }
.ask-panel header small { display: block; font-size: 12px; color: var(--muted); }
.ask-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: grid; align-content: start; gap: 10px; font-size: 14px; }
.bubble { padding: 10px 14px; border-radius: 18px; max-width: 88%; line-height: 1.45; }
.bubble.me { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 6px; }
.bubble.it { background: var(--bg-3); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble a.p { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; border-radius: var(--r); background: var(--bg); color: var(--ink); text-decoration: none; }
.bubble a.p img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--tile-img); }
.ask-panel form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-panel input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 0 16px; font: inherit; background: var(--bg); color: var(--ink); }
.ask-sugs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 0; scrollbar-width: none; }

/* ---------- mobile bottom bar ---------- */
.bottombar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
	.shell.with-rail { grid-template-columns: 88px minmax(0, 1fr) var(--rail-w); }
	.shell { grid-template-columns: 88px minmax(0, 1fr); }
	.nav { align-items: center; padding: 10px 8px; }
	.nav .label, .logo b, .nav .foot small, .navlink .pill-count { display: none; }
	.navlink { padding: 12px; }
	.nav .cta { width: 52px; height: 52px; padding: 0; }
	.nav .cta .label { display: none; }
}
@media (max-width: 1100px) {
	.shell.with-rail { grid-template-columns: 88px minmax(0, 1fr); }
	.rail { display: none; }
	.results { grid-template-columns: minmax(0, 1fr); }
	.filters { position: static; max-height: none; display: flex; overflow-x: auto; gap: 8px; }
	.filters .fgroup { display: none; }
	.pdp { grid-template-columns: minmax(0, 1fr); }
	.gallery { position: static; }
}
@media (max-width: 720px) {
	body.site { font-size: 16px; padding-bottom: 64px; }
	.shell, .shell.with-rail { grid-template-columns: minmax(0, 1fr); }
	.nav { display: none; }
	.main { border-right: 0; }
	.topbar { padding: 0 12px; gap: 8px; }
	.topbar .logo-sm { display: inline-flex; }
	.topbar .loc .label, .topbar .actions .hide-sm { display: none; }
	.searchbox form { height: 42px; }
	.section, .chips, .post, .composer { padding-left: 14px; padding-right: 14px; }
	.results, .pdp { padding-left: 14px; padding-right: 14px; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.hero { padding-top: 32px; }
	.bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
	.bottombar a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; }
	.bottombar a[aria-current="page"] { color: var(--ink); }
	.bottombar svg { width: 24px; height: 24px; }
	.ask { bottom: 72px; right: 12px; }
	.ask-btn .label { display: none; }
	.ask-btn { width: 52px; padding: 0; justify-content: center; }
	.store-cover { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* narrow-only filter chips (the full filter column replaces them on wide screens) */
.filters .chip.narrow { display: none; }
@media (max-width: 1100px) { .filters .chip.narrow { display: inline-flex; } }
.tiles { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

.shorts-feed, .shorts-feed .reel { height: calc(100vh - var(--header-h) - 51px); }
.shorts-feed .reel .frame video { cursor: pointer; }
@media (max-width: 720px) { .shorts-feed, .shorts-feed .reel { height: calc(100vh - var(--header-h) - 51px - 58px); } }

/* ---------- Tailwind compatibility for pages not yet rebuilt ----------
   Maps the common light-only utility colours to theme tokens so older pages
   (malls, track, sell, chat, offer) follow the theme, including dark mode. */
.site .bg-white { background-color: var(--bg); }
.site .bg-slate-50, .site .bg-slate-100, .site .bg-gray-50 { background-color: var(--bg-2); }
.site .bg-slate-200 { background-color: var(--bg-3); }
.site .text-slate-900, .site .text-slate-800, .site .text-gray-900 { color: var(--ink); }
.site .text-slate-700, .site .text-slate-600 { color: var(--ink-2); }
.site .text-slate-500, .site .text-slate-400 { color: var(--muted); }
.site .border-slate-100, .site .border-slate-200, .site .border-slate-200\/80, .site .border-slate-300 { border-color: var(--line); }
.site .bg-emerald-600 { background-color: var(--brand); }
.site .text-emerald-600, .site .text-emerald-700 { color: var(--brand-ink); }
.site .bg-emerald-50 { background-color: var(--brand-soft); }
.site .rounded-3xl { border-radius: var(--r-lg); }
.site .shadow-sm, .site .shadow-md, .site .shadow-xs, .site .shadow-2xs { box-shadow: none; }

.searchbox { min-width: 0; }
@media (max-width: 720px) { .topbar .loc { padding: 6px; } .topbar .actions { display: none; } }

.post .chip { white-space: normal; height: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.post .head { min-width: 0; }
.post .head b, .post .head span { overflow-wrap: anywhere; }
