/* bonsai.css: the look of the bonsai shop (/bonsai and every /bonsai/<id> tree page).

   Colours, fonts and spacing are set once as variables in :root (the dark gallery, on the
   site's brand: near-black #181A17, off-white #EFEFEF, orange #FF6B35 as the only accent).
   The one exception is the "How buying works" strip, a light stone band (Gerry's choice).
   Fonts: Montserrat for headings, numbers and small-caps labels, Inter for reading text,
   both already loaded by the page. */

:root {
  --bg: #181a17;
  --bg-2: #1f211d;
  --bg-3: #262823;
  --ink: #efefef;
  --ink-2: #a0a49a;
  --ink-3: #8a8e84;
  --line: rgba(239, 239, 239, 0.12);
  --line-2: rgba(239, 239, 239, 0.24);
  --accent: #ff6b35;
  --on-accent: #181a17;
  --photo-bg: #11120f;
  --mat: transparent;
  --mat-pad: 0px;
  --shade: linear-gradient(180deg, rgba(24, 26, 23, 0) 30%, rgba(24, 26, 23, 0.55) 62%, #181a17 100%);
  --f-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --bar-h: 56px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html.bs-noscroll { overflow: hidden; }
body.bs {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
.bs img { max-width: 100%; height: auto; display: block; }
.bs a { color: inherit; }
.bs h1, .bs h2, .bs h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.bs :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bs button { font: inherit; color: inherit; }
.bs [hidden] { display: none !important; }
html:not(.js) [data-js] { display: none !important; }
.bs-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bs-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.bs-label, .bs-card-num, .bs-num, .bs-facts dt, .bs-care dt, .bs-bar { font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.bs .bs-skip { color: var(--on-accent); }
.bs-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.bs-skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.bs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--bar-h); padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: var(--bg); }
.bs-bar a, .bs-bar span { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.bs-bar a:hover { color: var(--ink); }
.bs-bar .bs-bar-title { color: var(--ink); }
.bs-bar-contact { border: 1px solid var(--line-2); padding: 7px 12px; }

/* ---------- hero: the tree as a cut-out on the dark ground, centred like a piece on a plinth ---------- */
.bs-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.bs-hero-grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; align-items: center; }
.bs-hero-media { margin: 0; width: min(820px, 100%); }
.bs-hero-media img { width: 100%; height: auto; max-height: 46vh; object-fit: contain; }
.bs-hero-inner { max-width: 72rem; padding-top: clamp(16px, 3vw, 32px); }
/* The introduction to bonsai, under the hero tree: three short columns on wide screens */
.bs-intro { margin: clamp(20px, 3vw, 36px) auto 0; columns: 3 17rem; column-gap: 40px; text-align: left; color: var(--ink-2); font-size: 16px; }
.bs-intro p { margin: 0 0 1em; break-inside: avoid; }
.bs-intro p:first-child { color: var(--ink); }
.bs-hero h1 { font-size: clamp(38px, 6vw, 80px); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }

/* ---------- how buying works ---------- */
.bs-how { --ink: #232323; --ink-2: #4f4e49; --line-2: rgba(35, 35, 35, 0.55); background: #eceae4; color: var(--ink); }
.bs-how ol { list-style: none; margin: 0 auto; padding: 28px var(--pad); max-width: var(--max); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: how; }
.bs-how li { counter-increment: how; display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.bs-how li::before { content: counter(how); font-family: var(--f-head); font-weight: 600; font-size: 13px; color: var(--ink); border: 1px solid var(--line-2); width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; }
.bs-how strong { color: var(--ink); font-weight: 500; }

/* ---------- shop: toolbar and filters ---------- */
.bs-shop { padding: clamp(48px, 6vw, 80px) 0 72px; }
.bs-shop { border-top: 1px solid var(--line); }
.bs-shop-head { margin-bottom: 32px; }
.bs-shop-head h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.025em; }
.bs-shop-line { margin: 14px 0 0; max-width: 38rem; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); }
.bs-shop-count { margin: 20px 0 0; font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.bs-shop-count::before { content: ''; display: block; width: 32px; height: 2px; background: var(--accent); margin: 0 0 14px; }
.bs-toolbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bs-toolbar-inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bs-search { position: relative; flex: 1 1 200px; max-width: 280px; margin: 0; }
.bs-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); border-radius: 0; font: 400 15px var(--f-body); }
.bs-search input::placeholder { color: var(--ink-3); }
.bs-search svg { position: absolute; left: 11px; top: 11px; color: var(--ink-3); }
.bs-ctl { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; background: transparent; border: 1px solid var(--line); border-radius: 0; color: var(--ink); cursor: pointer; font: 500 14px var(--f-body); white-space: nowrap; }
.bs-ctl:hover { border-color: var(--line-2); }
.bs-select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23a0a49a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 10px center; }
.bs-select option { background: var(--bg-2); color: var(--ink); }
.bs-fnum:not(:empty) { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; background: var(--accent); color: var(--on-accent); font: 600 11px var(--f-head); }
.bs-views { display: inline-flex; border: 1px solid var(--line); }
.bs-views button { height: 38px; padding: 0 12px; background: transparent; border: 0; cursor: pointer; color: var(--ink-2); font: 500 14px var(--f-body); }
.bs-views button[aria-pressed="true"] { color: var(--ink); background: var(--bg-3); }
.bs-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.bs-switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; margin: 0; border: 1px solid var(--line-2); background: var(--bg-2); position: relative; cursor: pointer; }
.bs-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--ink-3); transition: transform 0.15s; }
.bs-switch input:checked { border-color: var(--ink-2); }
.bs-switch input:checked::after { transform: translateX(14px); background: var(--ink); }

.bs-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bs-fgroups { display: contents; }
.bs-fgroup { position: relative; }
.bs-fgroup summary { list-style: none; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); cursor: pointer; font: 500 14px var(--f-body); user-select: none; }
.bs-fgroup summary::-webkit-details-marker { display: none; }
.bs-fgroup summary::after { content: ''; width: 7px; height: 7px; border-right: 1.4px solid var(--ink-2); border-bottom: 1.4px solid var(--ink-2); transform: translateY(-2px) rotate(45deg); }
.bs-fgroup[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.bs-fgroup.is-active summary { border-color: var(--accent); }
.bs-fgroup fieldset { border: 0; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 240px; max-height: 60vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-2); }
.bs-opt { display: flex; align-items: center; gap: 10px; padding: 8px; cursor: pointer; font-size: 15px; }
.bs-opt:hover { background: var(--bg-3); }
.bs-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.bs-opt span:first-of-type { flex: 1; }
.bs-optcount { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.bs-sheet-head, .bs-sheet-foot, .bs-scrim, #bsFilterBtn { display: none; }

.bs-result { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 22px; color: var(--ink-2); font-size: 14px; }
.bs-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.bs-linkbtn:hover { color: var(--accent); }

/* ---------- cards ---------- */
.bs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.bs-card { display: flex; flex-direction: column; }
.bs-card-link { display: flex; flex-direction: column; text-decoration: none; flex: 1; }
.bs-card-media { display: block; aspect-ratio: 4 / 5; background: var(--photo-bg); overflow: hidden; position: relative; padding: var(--mat-pad); }
.bs-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; }
.bs-card-link:hover .bs-card-media img { transform: scale(1.02); }
.bs-card[data-status="sold"] .bs-card-media img { filter: grayscale(0.85); opacity: 0.7; }
.bs-card-text { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; }
.bs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bs-card-num { color: var(--ink-2); }
.bs-card-name { font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: 4px; }
.bs-card-species { font-style: italic; color: var(--ink-2); font-size: 14px; }
.bs-card-facts { color: var(--ink-2); font-size: 14px; }
.bs-card-price { margin-top: 6px; font-family: var(--f-head); font-weight: 500; font-size: 15px; }
.bs-card[data-status="sold"] .bs-card-price { color: var(--ink-3); }
.bs-card-buy { margin-top: 12px; display: block; text-align: center; padding: 9px 10px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.bs-card-buy:hover { border-color: var(--accent); color: var(--accent); }

.bs-badge { display: inline-block; font: 600 11px/1 var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 7px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.bs-badge[data-status="reserved"] { border-color: var(--accent); color: var(--accent); }
.bs-badge[data-status="sold"] { border-color: transparent; background: var(--bg-3); color: var(--ink-3); }

.is-missing { background: var(--photo-bg); position: relative; }
.is-missing img { display: none !important; }
.is-missing::after { content: 'Photo not available'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; text-align: center; padding: 8px; }
.bs-nophoto { display: block; width: 100%; height: 100%; background: var(--photo-bg); }

/* ---------- table ---------- */
.bs-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.bs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bs-table th, .bs-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bs-table thead th { font: 600 11px var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.bs-table thead button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; gap: 6px; }
.bs-table thead th[aria-sort] button { color: var(--ink); }
.bs-table tbody th { font-weight: 500; }
.bs-table tbody th a { text-decoration: none; }
.bs-table tbody th a:hover { text-decoration: underline; }
.bs-cell-photo { width: 64px; }
.bs-cell-photo a { display: block; width: 48px; height: 60px; background: var(--photo-bg); overflow: hidden; position: relative; }
.bs-cell-photo img { width: 100%; height: 100%; object-fit: cover; }
.bs-cell-num { font-family: var(--f-head); color: var(--ink-2); }
.bs-table tr[data-status="sold"] img { filter: grayscale(0.85); opacity: 0.7; }

/* ---------- empty and error ---------- */
.bs-empty, .bs-error { border: 1px solid var(--line); padding: 40px var(--pad); text-align: center; }
.bs-empty p, .bs-error p { margin: 0 0 16px; color: var(--ink-2); }
.bs-btn-ghost { display: inline-block; border: 1px solid var(--line-2); padding: 10px 16px; background: none; cursor: pointer; text-decoration: none; font-weight: 500; }

/* ---------- nursery, why, end ---------- */
.bs-section-block { padding: 72px 0; border-top: 1px solid var(--line); }
.bs-section-block h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.bs-section-lede { color: var(--ink-2); max-width: 40rem; margin: 0 0 32px; }
.bs-nursery-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 24px; }
.bs-nursery-item .bs-card-media { aspect-ratio: 4 / 5; }
.bs-nursery-blurb { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.bs-end-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.bs-noscript-list { columns: 2 22rem; column-gap: 56px; color: var(--ink-2); padding-left: 1.6em; }
.bs-noscript-list li { break-inside: avoid; margin-bottom: 4px; }

.bs-footer { border-top: 1px solid var(--line); padding: 28px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: 13px; }
.bs-footer p { margin: 0; }
.bs-footer a { margin-right: 16px; }

.bs-notfound { padding-top: 18vh; padding-bottom: 18vh; }
.bs-notfound h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 14px; }
.bs-notfound p { color: var(--ink-2); margin: 0 0 24px; }

/* ---------- tree page ---------- */
.bs-crumbs { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad); font-size: 14px; color: var(--ink-3); }
.bs-crumbs a { color: var(--ink-2); }
.bs-tree-top { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.bs-gallery { min-width: 0; }
.bs-gallery-main { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 82vh; width: 100%; background: var(--photo-bg); padding: var(--mat-pad); display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.bs-gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.bs-gallery-main figcaption { position: absolute; left: 0; bottom: 0; right: 0; display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font: 600 12px var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: #efefef; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); pointer-events: none; }
.bs-gal-btn, .bs-gal-zoom { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: rgba(17, 18, 15, 0.6); color: #efefef; cursor: pointer; }
.bs-gal-btn:disabled { opacity: 0.25; cursor: default; }
.bs-gal-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.bs-gal-next { right: 10px; top: 50%; transform: translateY(-50%); }
.bs-gal-zoom { right: 10px; top: 10px; }
.bs-history { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.bs-history-play { flex: none; height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; font: 600 12px var(--f-head); letter-spacing: 0.1em; text-transform: uppercase; }
.bs-history-play[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.bs-history input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 0; }
.bs-history-date { flex: none; min-width: 96px; text-align: right; font: 500 13px var(--f-head); color: var(--ink-2); }
.bs-thumbs { list-style: none; margin: 14px 0 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; }
.bs-thumbs li { flex: none; position: relative; }
.bs-thumbs a { display: block; width: 76px; text-decoration: none; }
.bs-thumbs img { width: 76px; height: 95px; object-fit: cover; opacity: 0.6; border: 1px solid transparent; }
.bs-thumbs a[aria-current="true"] img, .bs-thumbs a:hover img { opacity: 1; border-color: var(--ink-2); }
.bs-thumbs span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.bs-thumbs .is-missing { width: 76px; height: 95px; }

.bs-details { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; }
.bs-num { color: var(--ink-2); }
.bs-details h1 { font-size: clamp(28px, 3vw, 40px); }
.bs-species { margin: 0; color: var(--ink-2); }
.bs-details .bs-badge { align-self: flex-start; margin-top: 6px; }
.bs-price { margin: 10px 0 0; font: 600 24px var(--f-head); }
.bs-price-note, .bs-reserved-note, .bs-sold-note { margin: 0; color: var(--ink-2); font-size: 15px; }
.bs-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 18px 0 6px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.bs-facts div { margin: 0; }
.bs-facts dt, .bs-care dt { color: var(--ink-3); font-size: 11px; }
.bs-facts dd, .bs-care dd { margin: 4px 0 0; }
.bs-buy { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.bs-buy-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; text-decoration: none; font: 600 15px var(--f-head); letter-spacing: 0.02em; }
.bs .bs-btn-primary, .bs a.bs-btn-primary { background: var(--accent); color: var(--on-accent); border: 0; }
.bs-btn-primary:hover { filter: brightness(1.06); }
.bs-email-link { align-self: center; font-size: 14px; color: var(--ink-2); text-underline-offset: 3px; }
.bs-buy-notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }
.bs-buy-notes li { padding-left: 16px; position: relative; }
.bs-buy-notes li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--ink-3); }
.bs-share { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.bs-share-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.bs-share-note { font-size: 13px; color: var(--ink-3); }

.bs-tree .bs-section { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px; }
.bs-tree .bs-section h2 { font-size: 20px; }
.bs-tree .bs-section > :not(h2) { grid-column: 2; max-width: 44rem; }
.bs-story p { margin: 0 0 1em; color: var(--ink); }
.bs-note time { display: block; font: 600 12px var(--f-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.bs-timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.bs-timeline li { position: relative; padding: 0 0 18px 22px; display: grid; gap: 2px; }
.bs-timeline li::before { content: ''; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--ink-2); }
.bs-timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.bs-timeline time { font: 600 12px var(--f-head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.bs-more-btn { justify-self: start; background: none; border: 1px solid var(--line-2); padding: 8px 14px; cursor: pointer; font-size: 14px; }
.bs-care dl { display: grid; gap: 14px; margin: 0; }
.bs-more { max-width: var(--max); margin: 72px auto 0; padding: 40px var(--pad) 72px; border-top: 1px solid var(--line); }
.bs-more h2 { font-size: 20px; margin: 40px 0 20px; }
.bs-prevnext { display: flex; justify-content: space-between; gap: 16px; }
.bs-prevnext a { text-decoration: none; font-weight: 500; max-width: 48%; }
.bs-prevnext a span { display: block; font: 600 11px var(--f-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bs-next { text-align: right; }
.bs-back { display: inline-block; margin-top: 32px; }
.bs-buybar { display: none; }

.bs-zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0c0a; color: #efefef; }
.bs-zoom::backdrop { background: #0b0c0a; }
.bs-zoom img { width: 100%; height: calc(100% - 48px); object-fit: contain; }
.bs-zoom-cap { margin: 0; height: 48px; display: grid; place-items: center; font: 600 12px var(--f-head); letter-spacing: 0.12em; text-transform: uppercase; color: #a0a49a; }
.bs-zoom-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(17, 18, 15, 0.6); border: 0; color: #efefef; cursor: pointer; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) { .bs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .bs-tree-top { grid-template-columns: 1fr; padding: 0; }
  .bs-gallery { padding: 0; }
  .bs-history, .bs-thumbs { padding: 0 var(--pad); }
  .bs-history-date { display: none; }
  .bs-details { position: static; padding: 0 var(--pad); }
  .bs-tree .bs-section { grid-template-columns: 1fr; padding-top: 44px; }
  .bs-tree .bs-section > :not(h2) { grid-column: 1; }
  .bs-buybar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-2); }
  .bs-buybar .bs-email-link { display: none; }
  .bs-buybar .bs-btn { width: 100%; }
  .bs-page-tree { padding-bottom: 76px; }
  .bs-page-tree .bs-details .bs-btn-primary { display: none; }
  .bs-page-tree .bs-details .bs-buy-actions { align-items: flex-start; }
}
@media (max-width: 899px) {
  .bs-toolbar-inner { gap: 8px; }
  .bs-search { flex: 1 1 100%; max-width: none; order: -1; }
  #bsFilterBtn { display: inline-flex; }
  .bs-sort-wrap { flex: 1; }
  .bs-sort-wrap .bs-select { width: 100%; }
  .bs-filters { display: none; }
  .bs-filters.is-open { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; background: var(--bg-2); border-top: 1px solid var(--line-2); }
  .bs-filters.is-open ~ .bs-scrim, .bs-toolbar:has(.bs-filters.is-open) .bs-scrim { display: block; }
  .bs-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.55); border: 0; }
  .bs-filters.is-open .bs-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
  .bs-sheet-head h2 { font-size: 18px; }
  .bs-sheet-close { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
  .bs-filters.is-open .bs-fgroups { display: block; overflow-y: auto; padding: 6px var(--pad) 12px; flex: 1; }
  .bs-filters.is-open .bs-fgroup { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .bs-filters.is-open .bs-fgroup summary { border: 0; padding: 0; height: 40px; font-family: var(--f-head); font-weight: 600; }
  .bs-filters.is-open .bs-fgroup fieldset { position: static; min-width: 0; max-height: none; border: 0; padding: 0 0 6px; background: transparent; }
  .bs-filters.is-open .bs-sold-wrap { padding: 14px var(--pad); border-top: 1px solid var(--line); }
  .bs-filters.is-open .bs-sheet-foot { display: flex; gap: 12px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
  .bs-sheet-foot .bs-btn { flex: 1; min-height: 48px; border: 0; cursor: pointer; }
  .bs-sheet-foot .bs-linkbtn { flex: none; }
  .bs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .bs-how ol { grid-template-columns: 1fr; gap: 12px; padding-top: 22px; padding-bottom: 22px; }
  .bs-card-name { font-size: 15px; }
  .bs-card-species, .bs-card-facts { font-size: 13px; }
  .bs-card-buy { font-size: 13px; padding: 8px 6px; }
  .bs-intro { columns: 1; }
  .bs-bar-home { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) {
  .bs-bar { font-size: 10.5px; letter-spacing: 0.04em; gap: 10px; }
  .bs-bar-home { max-width: none; }
  .bs-bar-contact { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .bs *, .bs *::before, .bs *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .bs-card-link:hover .bs-card-media img { transform: none; }
}
