/* =====================================================================
   Public storefront (/<store>) - the web copy of a store's MiniApp that
   search engines can read. One stylesheet for every store; the store's
   MiniApp design picks the look: <html data-design="default|max1|max2|max3">.
   Buying happens in the store's Telegram bot, so every "buy" is a t.me link.
   ===================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-cyr.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-lat.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Design tokens ---------- */
/* Default ("Витрина"): Manrope, one blue accent, softly tinted background. */
:root {
  --brand: #2f6fd6;
  --brand-ink: #ffffff;
  --bg: color-mix(in srgb, var(--brand) 5%, #f5f6f8);
  --surface: #ffffff;
  --tile: color-mix(in srgb, var(--brand) 7%, #eef0f3);
  --ink: #161a17;
  --muted: #6b736d;
  --line: rgba(22, 26, 23, .09);
  --sale: #c0453b;
  --ok: #2f7d4f;
  --shadow: 0 1px 2px rgba(20, 30, 22, .06), 0 10px 24px -14px rgba(20, 30, 22, .28);
  --font: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: var(--font);
  --r-card: 18px;
  --r-img: 14px;
  --r-btn: 14px;
  --r-chip: 999px;
  --gutter: 16px;
  color-scheme: light;
}

/* Max1: monochrome, light grey page, white cards, black pill buttons. */
html[data-design="max1"] {
  --brand: #151515;
  --bg: #e7e7e7;
  --surface: #ffffff;
  --tile: #f8f7f7;
  --ink: #111111;
  --muted: #656565;
  --line: rgba(24, 24, 24, .08);
  --sale: #d94f4f;
  --shadow: 0 8px 18px rgba(28, 28, 28, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --r-card: 24px;
  --r-img: 18px;
  --r-btn: 999px;
}

/* Max2: deep violet ink, hot pink accent, handwritten headings. */
html[data-design="max2"] {
  --brand: #ff1748;
  --bg: #f5f3f7;
  --surface: #ffffff;
  --tile: #f8f8fb;
  --ink: #2b1e43;
  --muted: #7a6f8a;
  --line: rgba(45, 33, 66, .1);
  --sale: #ff1748;
  --shadow: 0 10px 26px -14px rgba(45, 33, 66, .3);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --display: "Brush Script MT", "Snell Roundhand", "Segoe Script", cursive;
  --r-card: 24px;
  --r-img: 20px;
  --r-btn: 999px;
}

/* Max3 "Tech Home": white sheet, ink buttons, hairlines, a photo cover on top. */
html[data-design="max3"] {
  --accent: #7f95aa;
  --brand: #15171a;
  --bg: #ffffff;
  --surface: #ffffff;
  --tile: #f4f4f1;
  --ink: #15171a;
  --muted: #7d8289;
  --line: #e8e8e4;
  --sale: #c0453b;
  --shadow: none;
  --r-card: 0;
  --r-img: 4px;
  --r-btn: 999px;
  --gutter: 20px;
}

/* Light by default; the dark theme is the visitor's choice (the moon in the top bar),
   kept in a cookie by the server: <html data-theme="dark">. */
html[data-theme="dark"] {
  --bg: #121513; --surface: #1b1f1c; --tile: #242925; --ink: #eef2ee; --muted: #98a19a;
  --line: rgba(255, 255, 255, .08); --shadow: 0 12px 26px -16px rgba(0, 0, 0, .8); color-scheme: dark;
}
html[data-theme="dark"][data-design="max1"] { --brand: #f2f2f2; --brand-ink: #111; --bg: #0f0f0f; --surface: #1a1a1a; --tile: #222; --ink: #f2f2f2; --muted: #a0a0a0; }
html[data-theme="dark"][data-design="max2"] { --bg: #1a1424; --surface: #241c32; --tile: #2d2340; --ink: #fbf8ff; --muted: #b3a7c6; }
html[data-theme="dark"][data-design="max3"] { --brand: #f1f2f3; --brand-ink: #111315; --bg: #111315; --surface: #171a1d; --tile: #1e2125; --ink: #f1f2f3; --muted: #979da5; --line: #2a2e33; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
.ps-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.ps-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.ps-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--r-btn); background: var(--brand); color: var(--brand-ink);
  font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.ps-btn:hover { filter: brightness(1.08); }
.ps-btn:active { transform: scale(.98); }
.ps-btn svg { width: 19px; height: 19px; }
.ps-btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.ps-btn.small { height: 38px; padding: 0 14px; font-size: 13.5px; }
.ps-btn.wide { width: 100%; height: 54px; font-size: 16px; }

/* ---------- Top bar ---------- */
.ps-top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.ps-top.line { border-bottom-color: var(--line); }
.ps-toprow { display: flex; align-items: center; gap: 12px; height: 64px; }
.ps-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ps-logo {
  width: 38px; height: 38px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 17px;
}
.ps-logo img { width: 100%; height: 100%; object-fit: cover; }
.ps-brandtext { min-width: 0; }
.ps-brandtext b { display: block; overflow: hidden; font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.ps-brandtext small { display: block; color: var(--muted); font-size: 12px; }
.ps-lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.ps-lang a { padding: 4px 9px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.ps-lang a.on { background: var(--ink); color: var(--bg); }
.ps-theme {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--muted); transition: color .15s;
}
.ps-theme:hover { color: var(--ink); }
.ps-theme svg { width: 17px; height: 17px; }
html[data-design="max3"] .ps-brandtext b { font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
html[data-design="max3"] .ps-logo { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- Store head (Default, Max1, Max2: as their MiniApp catalog) ---------- */
.ps-head { padding: 18px 0 4px; }
.ps-head h1 { margin: 0; font-size: clamp(24px, 5vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.ps-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
html[data-design="max2"] .ps-head h1 { font-weight: 900; }
html[data-design="max2"] .ps-head p { color: var(--ink); font-family: var(--display); font-size: 22px; }
.ps-search { display: flex; align-items: center; gap: 10px; height: 46px; margin-top: 14px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
html[data-design="max1"] .ps-search, html[data-design="max2"] .ps-search, html[data-design="max3"] .ps-search { border-radius: 999px; }
.ps-search svg { width: 18px; height: 18px; }
.ps-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.ps-search input::placeholder { color: var(--muted); }
.ps-search button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tile); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---------- Max3 hero: the cover and texts the owner set up (Storefront) ---------- */
.ps-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ps-hero h1 { margin: 0; max-width: 640px; font-size: clamp(28px, 6vw, 46px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.ps-hero p { margin: 10px 0 0; max-width: 560px; font-size: 15.5px; opacity: .9; }
.ps-heroacts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ps-promises { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; }
.ps-promises::-webkit-scrollbar { display: none; }
.ps-promise { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.ps-promise i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--tile); color: var(--ink); font-style: normal; }
.ps-promise i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ps-promise small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.ps-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 800px) { .ps-services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ps-service { padding: 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-service svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-service b { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }
.ps-service small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }

/* Max3: full-bleed photo cover, white text, the page slides over it as a sheet. */
.ps-cover { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; background: #1b1e22 center / cover no-repeat; }
.ps-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 14, .15) 0%, rgba(10, 12, 14, .65) 100%); }
.ps-cover .ps-wrap.ps-hero { position: relative; padding: 90px var(--gutter) 56px; }
.ps-cover .ps-eyebrow::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ps-cover h1 { font-weight: 600; letter-spacing: -.02em; }
.ps-cover .ps-btn { background: #fff; color: #111; height: 42px; font-size: 13px; font-weight: 600; }
.ps-cover .ps-btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ps-sheet { position: relative; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--bg); padding-top: 8px; }
html[data-design="max3"] .ps-top.over { position: absolute; left: 0; right: 0; color: #fff; background: rgba(12, 14, 16, .2); border-bottom-color: rgba(255, 255, 255, .08); }
html[data-design="max3"] .ps-top.over .ps-lang { background: transparent; border-color: rgba(255, 255, 255, .3); }
html[data-design="max3"] .ps-top.over .ps-lang a { color: rgba(255, 255, 255, .75); }
html[data-design="max3"] .ps-top.over .ps-lang a.on { background: #fff; color: #111; }
html[data-design="max3"] .ps-top.over .ps-btn { background: #fff; color: #111; }
html[data-design="max3"] .ps-top.over .ps-brandtext small { color: rgba(255, 255, 255, .7); }

/* ---------- Section head + categories ---------- */
.ps-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 26px 0 12px; }
.ps-sec h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ps-sec span, .ps-sec a { color: var(--muted); font-size: 13.5px; }
.ps-sec a:hover { color: var(--ink); }
html[data-design="max2"] .ps-sec h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: 0; }
html[data-design="max3"] .ps-sec h2 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.ps-cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.ps-cats::-webkit-scrollbar { display: none; }
.ps-cat {
  flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--r-chip); background: var(--surface);
  font-size: 14px; font-weight: 600;
}
.ps-cat i { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.ps-cat:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.ps-cat.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ps-cat.on i { color: color-mix(in srgb, var(--bg) 70%, transparent); }
html[data-design="max2"] .ps-cat.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Product grid ---------- */
.ps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .ps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.ps-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px 8px 12px;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ps-card:hover { transform: translateY(-2px); }
.ps-img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-img); background: var(--tile); }
.ps-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-img .ps-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 34px; font-weight: 800; opacity: .45; }
.ps-badge {
  position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 999px;
  background: var(--sale); color: #fff; font-size: 12px; font-weight: 800;
}
.ps-badge.out { background: rgba(20, 20, 20, .72); }
.ps-cardbody { display: flex; flex-direction: column; gap: 4px; padding: 10px 4px 0; flex: 1; }
.ps-cardbody h3 {
  margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-cardbody .ps-type { color: var(--muted); font-size: 12px; }
.ps-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: auto; padding-top: 4px; }
.ps-price b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.ps-price s { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ps-price.sale b { color: var(--sale); }
.ps-price em { color: var(--muted); font-size: 12px; font-style: normal; }

/* Max3: cards joined by hairlines, no shadows, no rounding. */
html[data-design="max3"] .ps-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
html[data-design="max3"] .ps-card { padding: 12px 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html[data-design="max3"] .ps-card:hover { transform: none; background: var(--tile); }
html[data-design="max3"] .ps-cardbody h3 { font-weight: 500; }
html[data-design="max3"] .ps-price b { font-weight: 600; }

/* ---------- Breadcrumbs ---------- */
.ps-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 4px; margin: 0; list-style: none; color: var(--muted); font-size: 13px; }
.ps-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.ps-crumbs a:hover { color: var(--ink); }

/* ---------- Product page ---------- */
.ps-pd { display: grid; gap: 20px; padding: 10px 0 10px; }
@media (min-width: 860px) { .ps-pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 18px; } }
.ps-gallery { display: grid; gap: 10px; }

.ps-shot { aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--r-img) + 4px); background: var(--tile); }
.ps-shot img { width: 100%; height: 100%; object-fit: cover; }
.ps-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ps-thumbs a { flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: var(--r-img); background: var(--tile); border: 2px solid transparent; }
.ps-thumbs a.on { border-color: var(--ink); }
.ps-thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* Swipeable on phones: every photo full width, snapping. */
@media (max-width: 859px) {
  .ps-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .ps-shots::-webkit-scrollbar { display: none; }
  .ps-shots .ps-shot { flex: 0 0 100%; scroll-snap-align: center; }
  .ps-thumbs { display: none; }
}
/* Desktop: the first photo large, the rest two to a row under it (no script needed). */
@media (min-width: 860px) { .ps-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .ps-shots .ps-shot:first-child { grid-column: 1 / -1; } }

.ps-info h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
html[data-design="max2"] .ps-info h1 { font-weight: 800; }
html[data-design="max3"] .ps-info h1 { font-weight: 600; }
.ps-info .ps-type { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ps-bigprice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 6px; }
.ps-bigprice b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ps-bigprice s { color: var(--muted); font-size: 16px; }
.ps-bigprice .ps-off { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sale) 14%, transparent); color: var(--sale); font-size: 13px; font-weight: 800; }
.ps-bigprice.sale b { color: var(--sale); }
.ps-pr-all, .ps-pr-v { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ps-pr-v { display: none; }
.ps-info:has(.ps-chips.priced .ps-r:checked) .ps-pr-all { display: none; }
.ps-until { color: var(--muted); font-size: 13px; }
.ps-stock { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.ps-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ps-stock.out { color: var(--muted); }
.ps-opts { margin-top: 18px; }
.ps-opts h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.ps-opts h2 span { color: var(--muted); font-weight: 500; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ps-chip {
  min-width: 46px; height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 14px; font-weight: 600;
}
html[data-design="max1"] .ps-chip, html[data-design="max2"] .ps-chip, html[data-design="max3"] .ps-chip { border-radius: 999px; }
.ps-chip small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ps-chip.out { color: var(--muted); text-decoration: line-through; opacity: .6; }
/* An option is a radio + its label: the radio itself is hidden, the label is the chip. */
.ps-r { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
label.ps-chip { cursor: pointer; user-select: none; transition: border-color .15s, box-shadow .15s; }
.ps-r:disabled + label.ps-chip { cursor: default; }
.ps-r:checked + .ps-chip { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ps-r:focus-visible + .ps-chip { outline: 2px solid var(--ink); outline-offset: 2px; }
.ps-buybox { margin-top: 20px; padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
html[data-design="max3"] .ps-buybox { border-radius: 12px; }
.ps-buybox p { display: flex; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ps-buybox p svg { width: 16px; height: 16px; margin-top: 1px; color: var(--brand); }
html[data-design="max1"] .ps-buybox p svg, html[data-design="max3"] .ps-buybox p svg { color: var(--ink); }
.ps-desc { margin-top: 24px; }
.ps-desc h2 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.ps-desc div { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); white-space: pre-line; overflow-wrap: anywhere; }

/* The sticky buy bar on phones: price + button always in reach. */
.ps-bar { display: none; }
@media (max-width: 859px) {
  .ps-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .ps-bar div { min-width: 0; flex: 1; }
  .ps-bar b { display: block; font-size: 18px; font-weight: 800; white-space: nowrap; }
  .ps-bar small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
  .ps-bar .ps-btn { height: 48px; }
  body.has-bar { padding-bottom: 84px; }
}

/* ---------- Empty / not found ---------- */
.ps-empty { padding: 70px 0; text-align: center; color: var(--muted); }
.ps-empty h1 { margin: 0 0 8px; color: var(--ink); font-size: 26px; }

/* ---------- Footer ---------- */
.ps-foot { margin-top: 48px; padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.ps-footrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ps-foot b { color: var(--ink); }
.ps-foot a { text-decoration: underline; text-underline-offset: 3px; }
.ps-foot a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .ps-toprow { height: 58px; }
  .ps-top .ps-btn .ps-long { display: none; }
  .ps-brandtext small { display: none; }
  .ps-cover { min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
