/* Lebanese Bookstore — system fonts only (no third-party requests, faster and more private) */
:root {
  --cedar: #12372a;
  --cedar-2: #1c5140;
  --cedar-3: #2b6b55;
  --red: #b3202a;
  --paper: #fbfaf6;
  --white: #ffffff;
  --sand: #e4ddcc;
  --sand-2: #f1ece0;
  --ink: #15201a;
  --muted: #5b675f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cedar-2); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }

/* Flag stripe: red / white / red in the flag's 1:2:1 proportion */
.flagbar { height: 8px; background: linear-gradient(var(--red) 0 25%, var(--white) 25% 75%, var(--red) 75%); }

/* ---------- header ---------- */
.site-header { background: var(--cedar); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand svg { width: 40px; height: 40px; color: #8fd0b0; flex: none; }
.brand-name { font: 700 1.35rem/1 var(--serif); display: block; }
.brand-sub { font-size: .8rem; color: #b9d8c8; display: block; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--cedar-2); color: var(--white); }
.nav .cart-link { background: var(--white); color: var(--cedar); font-weight: 600; }
.nav .cart-link:hover { background: var(--sand); color: var(--cedar); }
.cart-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: 6px; background: var(--red); color: #fff; border-radius: 99px; font-size: .85em; text-align: center; }
.cart-count[data-n="0"] { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--cedar); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-block: 44px 34px; }
.hero-tree { position: absolute; right: -40px; bottom: -30px; width: 420px; height: 420px; color: var(--cedar-2); z-index: 0; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); max-width: 16em; margin-bottom: .35em; }
.hero p { font-size: 1.1rem; max-width: 34em; color: #d5e8dd; margin: 0 0 24px; }
.search { display: flex; max-width: 640px; background: var(--white); border-radius: 6px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 16px 18px; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; }
.search input:focus-visible { outline-offset: -3px; }
.search button { border: 0; background: var(--red); color: #fff; font: inherit; font-weight: 600; padding: 0 24px; cursor: pointer; }
.search button:hover { background: #8f1922; }
.spines { display: flex; align-items: flex-end; gap: 2px; height: 46px; overflow: hidden; margin-top: 0; padding-inline: 16px; position: relative; z-index: 1; }
.spines i { flex: 1 1 0; min-width: 8px; max-width: 26px; border-radius: 2px 2px 0 0; }
.shelf { height: 8px; background: #0b2419; position: relative; z-index: 1; }

/* ---------- shop ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 22px 8px; align-items: center; }
.chip { border: 1px solid var(--sand); background: var(--white); color: var(--ink); padding: 7px 14px; border-radius: 99px; font: inherit; font-size: .92rem; cursor: pointer; }
.chip:hover { border-color: var(--cedar-3); }
.chip[aria-pressed="true"] { background: var(--cedar); border-color: var(--cedar); color: #fff; }
.chip.pre[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.results-note { color: var(--muted); padding-block: 4px 12px; min-height: 2em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 32px 22px; padding-bottom: 24px; }
.book { display: flex; flex-direction: column; min-width: 0; }
.cover { position: relative; aspect-ratio: 2 / 3; border-radius: 2px 5px 5px 2px; overflow: hidden; background: var(--cedar-2); box-shadow: inset 5px 0 0 rgba(0,0,0,.14), inset 6px 0 0 rgba(255,255,255,.08); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { position: absolute; inset: 0; padding: 18px 14px 14px 20px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.cover .ph b { font: 700 1.05rem/1.2 var(--serif); overflow-wrap: anywhere; }
.cover .ph span { font-size: .78rem; opacity: .85; }
.badge { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; }
.badge.out { background: var(--ink); }
.book h3 { font-size: 1rem; margin: 12px 0 2px; line-height: 1.25; }
.book .by { color: var(--muted); font-size: .9rem; margin: 0; }
.book .meta { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.price { font-weight: 700; color: var(--red); margin: 8px 0 8px; font-size: 1.05rem; }
.book .btn { margin-top: auto; }
.empty { padding: 48px 0; color: var(--muted); text-align: center; }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--sand); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--cedar); background: var(--cedar); color: #fff; padding: 10px 18px; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--cedar-2); border-color: var(--cedar-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--cedar); }
.btn.ghost:hover { background: var(--cedar); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #8f1922; border-color: #8f1922; }
.btn.small { padding: 4px 10px; min-height: 32px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.more { text-align: center; padding: 8px 0 40px; }

label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b9b19c; border-radius: 4px; background: var(--white); color: var(--ink); min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
.form-msg { padding: 10px 14px; border-radius: 4px; margin: 0 0 14px; }
.form-msg.err { background: #fbe9ea; border: 1px solid #e2a3a8; color: #6f141b; }
.form-msg.ok { background: #e6f2ea; border: 1px solid #a5cdb4; color: #12372a; }
.hp { position: absolute; left: -9999px; }

/* ---------- pages ---------- */
.page { padding-block: 40px 56px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.prose { max-width: 42em; font-family: var(--serif); font-size: 1.06rem; line-height: 1.7; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.two { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 860px) { .two { grid-template-columns: 1.15fr .85fr; align-items: start; } }

/* family strip on home */
.family { background: var(--sand-2); border-block: 1px solid var(--sand); }
.family .wrap { display: flex; gap: 22px; align-items: center; padding-block: 28px; }
.family svg { width: 64px; height: 64px; color: var(--cedar-3); flex: none; }
.family h2 { font-size: 1.35rem; margin-bottom: .2em; }
.family p { margin: 0; max-width: 46em; color: #38443d; }

/* FAQ */
details { border-bottom: 1px solid var(--sand); padding: 14px 0; max-width: 46em; }
summary { cursor: pointer; font: 600 1.1rem/1.35 var(--serif); }
details p { margin: 10px 0 0; color: #33403a; }

/* cart */
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--sand); align-items: center; }
.line .cover { width: 64px; box-shadow: inset 3px 0 0 rgba(0,0,0,.14); }
.line .cover .ph { padding: 6px 6px 6px 9px; }
.line .cover .ph b { font-size: .6rem; }
.line .cover .ph span { display: none; }
.line h3 { font-size: 1rem; margin: 0 0 2px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #b9b19c; border-radius: 4px; background: #fff; margin-top: 6px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--sand-2); }
.qty span { min-width: 2em; text-align: center; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; margin-left: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.totals { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; padding: 16px 0; }
.panel { background: var(--white); border: 1px solid var(--sand); border-radius: 6px; padding: 22px; }
.notice { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.done { text-align: center; max-width: 34em; margin-inline: auto; padding: 24px 0; }
.done svg { width: 72px; height: 72px; margin: 0 auto 12px; color: var(--cedar-3); }
.orderno { font: 700 1.6rem var(--serif); letter-spacing: .04em; background: var(--sand-2); display: inline-block; padding: 6px 16px; border-radius: 4px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--sand); }
.contact-list b { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 6px; z-index: 50; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--cedar); color: #cfe3d8; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 56px; padding-block: 34px 22px; align-items: start; }
.site-footer svg { width: 44px; height: 44px; color: #8fd0b0; flex: none; }
.site-footer a { color: #fff; }
.site-footer .fb { display: flex; gap: 14px; align-items: flex-start; }
.site-footer .fb strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; display: block; }
.site-footer .ftag { margin: 2px 0 8px; color: #b9d8c8; }
.site-footer .fstory { margin: 0; max-width: 34em; font-size: .95rem; }
.site-footer .fcol { display: flex; flex-direction: column; gap: 6px; }
.site-footer .fcol h2 { font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8fd0b0; margin: 0 0 4px; }
.copy { grid-column: 1 / -1; font-size: .82rem; opacity: .8; border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .fb { grid-column: 1 / -1; } }

@media (max-width: 560px) {
  .hero-tree { width: 260px; height: 260px; right: -60px; opacity: .8; }
  .family .wrap { flex-direction: column; align-items: flex-start; }
  .line { grid-template-columns: 56px 1fr; }
  .line .cover { width: 56px; }
  .line .right { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- admin ---------- */
.admin body, body.admin { background: #f5f4ef; }
.admin-bar { background: var(--cedar); color: #fff; }
.admin-bar .wrap { display: flex; gap: 8px; align-items: center; padding-block: 12px; flex-wrap: wrap; }
.admin-bar strong { font: 700 1.1rem var(--serif); margin-right: auto; }
.tab { background: transparent; color: #fff; border: 0; padding: 8px 14px; border-radius: 4px; font: inherit; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--cedar-2); font-weight: 700; }
.tab:hover { background: var(--cedar-2); }
.login { max-width: 380px; margin: 12vh auto; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 14px; align-items: center; }
.tools input, .tools select { width: auto; min-width: 200px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--sand); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand-2); vertical-align: middle; }
th { background: var(--sand-2); font-size: .82rem; color: var(--muted); }
tr.click { cursor: pointer; }
tr.click:hover td { background: #faf8f1; }
.thumb { width: 36px; height: 54px; object-fit: cover; border-radius: 2px; background: var(--sand); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--sand-2); }
.pill.pending { background: #fdf0c9; }
.pill.confirmed { background: #dbe9fb; }
.pill.shipped { background: #e4dbfb; }
.pill.delivered { background: #d7eedd; }
.pill.cancelled { background: #f3d6d8; }
.pill.warn { background: #fdf0c9; }
.stock { display: inline-flex; align-items: center; gap: 4px; }
.stock input { width: 64px; text-align: center; min-height: 32px; padding: 4px; }
.stock.low input { border-color: var(--red); }
dialog { border: 0; border-radius: 8px; padding: 0; width: min(680px, 100% - 24px); max-height: 92vh; }
dialog::backdrop { background: rgba(10, 30, 22, .55); }
.dlg { padding: 22px; }
.dlg-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dlg h2 { margin: 0 0 12px; font-size: 1.4rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cols .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.kv { margin: 0 0 14px; }
.kv b { display: block; font-size: .8rem; color: var(--muted); }
.msg { background: #fff; border: 1px solid var(--sand); border-radius: 6px; padding: 14px 16px; margin-bottom: 12px; }
.msg.unread { border-left: 4px solid var(--red); }
.msg p { white-space: pre-wrap; margin: 8px 0; }
.cover-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cover-edit .thumb { width: 60px; height: 90px; }

.block { width: 100%; }
.after { margin-top: 28px; }
.book .desc { font-size: .85rem; color: var(--muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grid .empty { grid-column: 1 / -1; }

/* fixes */
[hidden] { display: none !important; }
.cover .ph { padding-top: 38px; }
.site-footer { margin-top: 0; }
.page { padding-bottom: 72px; }
@media (max-width: 560px) {
  .nav { gap: 0; margin-left: -9px; }
  .nav a { padding: 8px 9px; }
  .brand { flex: 1 0 100%; }
}
.actions select { width: auto; min-width: 180px; }

/* filters: labelled rows of chips */
.filters { padding-block: 22px 6px; display: grid; gap: 10px; }
.frow { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.flabel { flex: 0 0 8.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .flabel { flex-basis: 100%; } }
details.help { max-width: none; border: 0; padding: 4px 0 0; }
details.help summary { font: 600 .9rem var(--sans); color: var(--cedar-2); cursor: pointer; }
details.help dl, details.help > div { margin: 8px 0 4px; padding: 12px 16px; background: var(--white); border: 1px solid var(--sand); border-radius: 6px; max-width: 46em; font-size: .92rem; }
details.help dt { font-weight: 700; margin-top: 8px; }
details.help dt:first-child { margin-top: 0; }
details.help dd { margin: 2px 0 0; color: #33403a; }
details.help p { margin: 0 0 6px; }
.regionnote { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--sand); font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.tag { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--sand); background: var(--white); cursor: help; }
.tag.cond-new { background: #e6f2ea; border-color: #a5cdb4; color: #12372a; }
.tag.cond-used { background: #fdf0c9; border-color: #e8d48a; color: #5a4300; }
.tag.cond-remainder { background: #e6f2ea; border-color: #a5cdb4; color: #12372a; }
.tag.cond-fair { background: #e6f2ea; border-color: #a5cdb4; color: #12372a; }
.tag.region { background: #dbe9fb; border-color: #b3cdf0; color: #12335f; }
.gift { margin: 4px 0 16px; padding: 12px 14px; background: var(--sand-2); border: 1px solid var(--sand); border-radius: 6px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 0; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--cedar); }
.gift #gift-box { margin-top: 12px; }
.cancel-box { background: #fbf1f1; border: 1px solid #e2a3a8; border-radius: 6px; padding: 14px; margin-top: 16px; }
.cancel-box label.inline { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 8px 0 12px; }
.cancel-box input[type=checkbox] { width: auto; min-height: 0; }

/* checkout: email code panel */
.verify { background: var(--sand-2); border: 1px solid var(--sand); border-radius: 6px; padding: 14px; margin: 0 0 14px; }
.verify p { margin: 0 0 10px; }
.codebox { font-size: 1.6rem; letter-spacing: .35em; text-align: center; max-width: 11em; font-variant-numeric: tabular-nums; }
.verify .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* announcement banner */
.banner { background: var(--sand-2); color: var(--ink); border-bottom: 1px solid var(--sand); font-size: .95rem; line-height: 1.4; }
.banner .wrap { display: flex; gap: 4px 14px; justify-content: center; align-items: baseline; flex-wrap: wrap; padding-block: 9px; text-align: center; }
.banner a, .banner a:hover { color: inherit; font-weight: 600; }
.banner a:hover { text-decoration-thickness: 2px; }
.banner.sale { background: var(--red); color: #fff; border-color: var(--red); }
.banner.closed { background: var(--ink); color: #fff; border-color: var(--ink); }
.b-preview { margin-bottom: 16px; border-radius: 6px; overflow: hidden; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }

/* ---------- shop filters: three tidy levels ---------- */
.stabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--sand); margin-top: 24px; }
.stabs button { border: 0; background: none; font: 600 1.02rem var(--sans); color: var(--muted); padding: 10px 20px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.stabs button:hover { color: var(--cedar); }
.stabs button[aria-pressed="true"] { color: var(--cedar); border-bottom-color: var(--cedar); }
.chips.cats { padding-top: 14px; }
.subfilters { display: flex; flex-wrap: wrap; gap: 10px 34px; padding-top: 14px; align-items: center; }
.fgroup { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.fgroup .flabel { flex: none; font-size: .74rem; }
.chips.sm { gap: 6px; }
.chips.sm .chip { padding: 4px 12px; font-size: .85rem; }
details.help { padding-top: 10px; }

/* ---------- product grid: every card uses the same rows, so covers, titles, tags,
   prices and buttons line up across each row ---------- */
.grid { row-gap: 0; column-gap: 22px; padding-top: 12px; }
.book { display: grid; grid-template-rows: subgrid; grid-row: span 7; min-width: 0; }
.book > * { margin: 0; min-width: 0; }
.book > :empty { padding: 0 !important; }
.book h3 { padding-top: 12px; font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book .by { padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book .tags { padding-top: 8px; align-content: flex-start; }
.book .meta { padding-top: 6px; }
.book .desc { padding-top: 6px; -webkit-line-clamp: 2; }
.book .price { padding-top: 10px; padding-bottom: 10px; }
.book .btn { margin: 0 0 34px; }
@supports not (grid-template-rows: subgrid) {
  .grid { row-gap: 34px; }
  .book { display: flex; flex-direction: column; grid-row: auto; }
  .book .btn { margin: auto 0 0; }
}

/* small tidy-ups */
.results-note:empty { display: none; }
.book .tags { gap: 4px; }
.book .tag { font-size: .72rem; padding: 2px 6px; }

/* ---------- calmer filters: more air between the rows, fewer buttons ---------- */
.chips.cats { padding-top: 20px; }
.subfilters { padding-top: 30px; gap: 14px 38px; }
.grid { padding-top: 26px; }
.qmark { flex: none; width: 22px; height: 22px; padding: 0; border: 1px solid var(--cedar-3); border-radius: 50%; background: var(--white); color: var(--cedar); font: 700 .78rem/1 var(--sans); cursor: pointer; }
.qmark:hover { background: var(--sand-2); }
.qmark[aria-expanded="true"] { background: var(--cedar); color: #fff; }
.helpbox { margin-top: 16px; padding: 14px 18px; background: var(--white); border: 1px solid var(--sand); border-radius: 6px; max-width: 46em; font-size: .92rem; }
.helpbox h3 { font: 700 .95rem var(--sans); margin: 0 0 8px; }
.helpbox dl { margin: 0; }
.helpbox dt { font-weight: 700; margin-top: 8px; }
.helpbox dt:first-child { margin-top: 0; }
.helpbox dd { margin: 2px 0 0; color: #33403a; }
.helpbox p { margin: 0 0 6px; }
.clearf { margin-left: 0; font-size: .85rem; }

/* ---------- admin: sales, shipping fee, sale badges ---------- */
.sale-row { display: grid; grid-template-columns: 1fr 110px 160px auto; gap: 10px; align-items: end; margin-bottom: 12px; padding: 12px; background: #fff; border: 1px solid var(--sand); border-radius: 6px; }
.sale-row label { font-size: .78rem; margin-bottom: 2px; }
@media (max-width: 700px) { .sale-row { grid-template-columns: 1fr 1fr; } }
.ship-field { max-width: 220px; }
.invoice-link { margin-left: auto; }
/* Bottom-left of the cover, so it never covers "Sold out" or "Pre-order" (top-right) on narrow phone cards */
.badge.sale { top: auto; bottom: 8px; left: 8px; right: auto; background: #8a1319; letter-spacing: .02em; white-space: nowrap; }
.was { text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 6px; font-size: .92em; }
.now-price { color: var(--red); }

/* soft-launch pill next to the logo */
.softpill { align-self: center; margin-left: 14px; padding: 4px 12px; border: 1px solid #8fd0b0; border-radius: 99px; font: 700 .74rem/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: #d5e8dd; white-space: nowrap; }
@media (max-width: 700px) { .softpill { margin-left: 0; margin-top: 4px; } }

/* ---------- admin: statistics ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0 28px; }
.stat-card { background: #fff; border: 1px solid var(--sand); border-radius: 6px; padding: 14px 16px; }
.stat-num { font: 700 1.6rem var(--serif); color: var(--cedar); line-height: 1.1; }
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat-hint { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.stat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 800px) { .stat-cols { grid-template-columns: 1fr; } }
.stat-cols h2 { font-size: 1.05rem; margin: 22px 0 8px; }
.admin-page h2 { font-size: 1.05rem; margin: 22px 0 8px; }
#tab-stats h2 { font-size: 1.05rem; margin: 26px 0 8px; }

.chart { background: #fff; border: 1px solid var(--sand); border-radius: 6px; padding: 16px 12px 8px; margin-bottom: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bar-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; min-width: 4px; }
.bar { flex: 1; max-width: 12px; border-radius: 2px 2px 0 0; min-height: 2px; }
.bar-rev { background: var(--cedar-3); }
.bar-ord { background: var(--red); opacity: .55; }
.bar-vis { background: #2f4e7a; }
.bar-view { background: #d9a23a; opacity: .75; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* Admin: import products from a CSV file */
dialog.wide-dlg { width: min(980px, 100% - 24px); }
.import-summary p { margin: 12px 0 6px; }
#import-dlg details.help { margin: 4px 0 14px; }
.imp-scroll { max-height: 46vh; overflow: auto; margin: 8px 0 12px; }
.imp-scroll th { position: sticky; top: 0; background: var(--white, #fff); z-index: 1; }
.imp-row-bad td { background: #fbeaea; }
.imp-bad { color: #9b1c23; font-size: .88rem; font-weight: 600; }

/* Shop: cover opens a preview; the description lives in the pop-up, not on the card */
.cover-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: inherit; border-radius: 2px 5px 5px 2px; }
.cover-btn:focus-visible { outline: 3px solid var(--cedar-3); outline-offset: 3px; }
.cover-btn:hover .cover { filter: brightness(1.05); }
dialog.book-dlg { width: min(820px, 100% - 24px); }
.book-dlg .dlg { position: relative; }
.dlg-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.dlg-close:hover { background: var(--sand-2); color: inherit; }
.book-view { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: start; }
.bv-cover .cover { width: 100%; }
.bv-text h2 { margin: 0 44px 4px 0; font-size: 1.35rem; line-height: 1.25; }
.bv-text .by { color: var(--muted); margin: 0 0 10px; }
.bv-text .tags { gap: 6px; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: .92rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: #33403a; }
.bv-desc h3 { font: 700 .95rem var(--sans); margin: 0 0 6px; }
.bv-desc p { margin: 0 0 14px; white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.55; }
.bv-text .price { margin: 4px 0 12px; font-size: 1.15rem; }
@media (max-width: 600px) {
  .book-view { grid-template-columns: 1fr; gap: 14px; }
  .bv-cover { width: 60%; max-width: 220px; margin: 0 auto; }
}

/* ---------- 18+ (adults only) items: tag, and the age question before adding to the cart ---------- */
.tag.adult { background: #fbe9ea; border-color: #e2a3a8; color: #6f141b; }
.pill.adult { background: #fbe9ea; color: #6f141b; }
dialog.age-dlg { width: min(440px, 100% - 24px); }
.age-dlg .dlg { position: relative; }
.age-dlg h2 { display: flex; align-items: center; gap: 8px; margin-right: 44px; }
.age-dlg h2 .tag { font-size: .85rem; cursor: default; }
.age-dlg input[type=number] { max-width: 140px; }

/* ======================================================================
   Phones and tablets (October 2026 mobile pass).
   Laptop and desktop layouts are unchanged: everything below only applies
   on narrow screens (max-width) or on touch screens (pointer: coarse).
   ====================================================================== */

/* Bigger tap targets on touch screens (fingers, not a mouse pointer) */
@media (pointer: coarse) {
  .chip { min-height: 40px; }
  .chips.sm .chip { min-height: 38px; padding: 6px 14px; }
  .qmark { width: 34px; height: 34px; font-size: .9rem; }
  .qty button { width: 44px; height: 44px; }
  .linkbtn { min-height: 40px; }
  .dlg-close { width: 44px; height: 44px; }
  .btn.small { min-height: 40px; padding: 6px 12px; }
  .stock .btn.small { min-width: 40px; }
  .stock input { min-height: 40px; font-size: 16px; }
  .check input, .cancel-box input[type=checkbox], input[type=checkbox] { width: 22px; height: 22px; }
  summary { padding-block: 8px; }
  .site-footer .fcol a { padding-block: 7px; }
  .banner a { display: inline-block; padding-block: 6px; }
  .invoice-link { display: inline-block; padding-block: 10px; }
}

/* Admin product search box had no styling (and tiny text that makes iPhones zoom in) */
.tools input[type=search], #new-order-dlg input[type=search], #review-dlg input[type=search] { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #b9b19c; border-radius: 4px; background: var(--white); color: var(--ink); min-height: 44px; }

/* Rows of tabs or category buttons: one line that scrolls sideways, instead of piling up */
.stabs, .chips.cats { scrollbar-width: none; }
.stabs::-webkit-scrollbar, .chips.cats::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  .stabs, .chips.cats {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
  }
  .stabs button, .chips.cats .chip { flex: none; white-space: nowrap; }
  .stabs button { padding: 12px 14px; }
  .chips.cats { padding-bottom: 2px; }
}

@media (max-width: 600px) {
  /* Shop: two products per row on every phone (360 px phones were showing only one, with giant covers) */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; padding-top: 20px; }
  .book h3 { font-size: .95rem; }
  .book .meta { font-size: .78rem; }
  .book .btn { padding-inline: 8px; margin-bottom: 28px; }
  .price { font-size: 1rem; }

  /* Shop: shorter hero, so the first products appear sooner */
  .hero .wrap { padding-block: 26px 22px; }
  .hero p { font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
  .search input { padding: 14px 14px; font-size: 16px; }
  .search button { padding: 0 16px; }

  /* Filters: a little less air between rows on a small screen */
  .chips.cats { padding-top: 14px; }
  .subfilters { padding-top: 18px; gap: 12px 24px; }

  /* Product pop-up: nearly full screen, and the × stays in view while scrolling a long description */
  dialog { width: calc(100% - 16px); max-height: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .dlg { padding: 18px 16px 22px; }
  .book-dlg .dlg-close { position: sticky; top: 0; float: right; z-index: 2; margin: -10px -8px 0 0; background: rgba(255, 255, 255, .94); }
  .bv-text h2 { margin-right: 0; }

  /* Cart: the sale badge was covering the tiny cover picture */
  .line .badge { display: none; }

  /* Admin: tabs on one sideways-scrolling row under the title */
  .admin-bar .wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .admin-bar .wrap::-webkit-scrollbar { display: none; }
  .admin-bar strong { flex: none; margin-right: 10px; }
  .tab { flex: none; white-space: nowrap; padding: 10px 12px; }
  .tools input, .tools select { min-width: 0; flex: 1 1 100%; }

  /* Admin, Orders: each order becomes a small card (order + status / customer / date + total) */
  #tab-orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #tab-orders tbody tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "no status" "cust cust" "date total"; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--sand-2); }
  #tab-orders tbody td { border: 0; padding: 0; }
  #tab-orders tbody td:nth-child(1) { grid-area: no; }
  #tab-orders tbody td:nth-child(2) { grid-area: date; color: var(--muted); font-size: .85rem; }
  #tab-orders tbody td:nth-child(3) { grid-area: cust; }
  #tab-orders tbody td:nth-child(4) { grid-area: total; font-weight: 700; text-align: right; }
  #tab-orders tbody td:nth-child(5) { grid-area: status; text-align: right; }
  #tab-orders tbody td:only-child { grid-column: 1 / -1; grid-row: auto; }

  /* Admin, Products: each product becomes a card, with stock buttons and Edit always in reach */
  #tab-products thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #tab-products tbody tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "thumb title title" "thumb cat price" "thumb status status" "stock stock edit"; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--sand-2); align-items: start; }
  #tab-products tbody td { border: 0; padding: 0; }
  #tab-products tbody td:nth-child(1) { grid-area: thumb; }
  #tab-products tbody td:nth-child(2) { grid-area: title; }
  #tab-products tbody td:nth-child(3) { grid-area: cat; font-size: .88rem; }
  #tab-products tbody td:nth-child(4) { grid-area: price; text-align: right; font-weight: 700; }
  #tab-products tbody td:nth-child(5) { grid-area: stock; padding-top: 6px; }
  #tab-products tbody td:nth-child(6) { grid-area: status; }
  #tab-products tbody td:nth-child(6):empty { display: none; }
  #tab-products tbody td:nth-child(7) { grid-area: edit; padding-top: 6px; align-self: end; }
  #tab-products tbody td:only-child { grid-column: 1 / -1; grid-row: auto; }
  #tab-products .thumb { width: 40px; height: 60px; }

  /* Admin, Statistics: two cards per row, and nothing pushes the page sideways */
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-num { font-size: 1.35rem; }
  .stat-cols > * { min-width: 0; }
  .invoice-link { display: block; margin: 6px 0 0; }
  #tab-orders td .pill { margin-left: 6px; }
  #tab-stats table td:first-child { min-width: 10em; }
}

/* Statistics columns: a wide table scrolls inside its own box, never the whole page */
.stat-cols > * { min-width: 0; }

/* Admin order: Shipped (tracking number) and Delivered (photo) options */
.status-box { margin-top: 14px; padding: 14px; background: var(--sand-2); border: 1px solid var(--sand); border-radius: 6px; }
.status-box .check { margin-top: 12px; font-weight: 600; }
.status-box input[type=file] { display: block; max-width: 100%; font: inherit; padding: 6px 0; }
.deliv-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.deliv-preview { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; border: 1px solid var(--sand); }

/* ---------- welcome pop-up (Admin, Pop-up): once a day per visitor ----------
   "Paper" look: off-white card, red line on top, italic Georgia title in flag red, cedar-green button. */
dialog.promo-dlg { width: min(460px, 100% - 24px); border-radius: 14px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(8, 25, 18, .38); }
dialog.promo-dlg.has-img { width: min(540px, 100% - 24px); }
dialog.promo-dlg::backdrop { background: rgba(10, 30, 22, .62); }
dialog.promo-dlg[open] { animation: promo-in .3s ease-out; }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.promo { position: relative; display: flex; flex-direction: column; max-height: 92vh; max-height: calc(100dvh - 24px); border-top: 6px solid var(--red); }
.promo:focus { outline: none; }
.promo-x { z-index: 2; top: 12px; right: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.promo-x:hover { background: #fff; }
.promo-img { flex: 0 1 auto; min-height: 0; background: var(--sand-2); display: flex; justify-content: center; }
.promo-imglink { display: block; }
.promo-img img { width: auto; max-width: 100%; max-height: 64vh; max-height: 64dvh; height: auto; object-fit: contain; }
.promo-body { padding: 20px 26px 24px; overflow-y: auto; min-height: 0; }
.promo-kicker { margin: 0 44px 12px 0; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cedar-2); }
.promo-title { font: italic 700 1.75rem/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.005em; margin: 0 0 10px; color: var(--red); }
.promo-msg { margin: 0 0 20px; white-space: pre-line; overflow-wrap: anywhere; color: #3d4a42; }
.promo-actions { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.promo-actions .btn, .promo-actions .btn.red { border-radius: 999px; padding-inline: 24px; background: var(--cedar); border-color: var(--cedar); }
.promo-actions .btn:hover { background: var(--cedar-2); border-color: var(--cedar-2); }
.promo-later { color: var(--muted); margin-left: 0; }
/* Text only: the same card, a little roomier, with a larger title */
.text-only .promo-top, .text-only .promo-flag, .text-only .promo-cedar { display: none; }
.text-only .promo-x { top: 16px; right: 16px; background: transparent; box-shadow: none; color: var(--muted); }
.text-only .promo-x:hover { background: var(--sand-2); color: var(--ink); }
.text-only .promo-body { padding: 30px 30px 26px; }
.text-only .promo-title { font-size: 2.1rem; margin-bottom: 14px; margin-right: 24px; }
.text-only .promo-msg { font-size: 1.02rem; line-height: 1.6; margin-bottom: 24px; }
@media (max-width: 600px) {
  dialog.promo-dlg, dialog.promo-dlg.has-img { width: calc(100% - 24px); }
  .promo-title { font-size: 1.5rem; }
  .text-only .promo-title { font-size: 1.8rem; }
  .text-only .promo-body { padding: 26px 22px 22px; }
}

/* Admin, Pop-up tab */
.pop-image { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pop-image img { max-height: 140px; width: auto; border-radius: 6px; border: 1px solid var(--sand); background: var(--sand-2); }

/* Checkout: delivery area and the totals with the delivery fee */
.sumrow { display: flex; justify-content: space-between; padding: 6px 0; color: var(--muted); }
.sumrow.first { border-top: 1px solid var(--sand); margin-top: 8px; padding-top: 14px; }
.sumrow span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.totals { font-variant-numeric: tabular-nums; }

/* ---------- Vote page ---------- */
.vote-points { padding-left: 1.2em; }
.vote-points li { margin-bottom: 6px; }
/* Hidden trap field: people never see or fill it, bots usually do */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Admin: Vote tab ---------- */
.vote-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.vote-count { background: var(--cedar); color: #fff; border-radius: 99px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.vote-emails { margin-top: 8px; font-size: .9rem; overflow-wrap: anywhere; }
.vote-card .actions { margin-top: 8px; }

/* ---------- Admin: new order for a customer ---------- */
#new-order-dlg h3 { margin: 18px 0 8px; font-size: 1.05rem; }
#new-order-dlg input[type=search], #review-dlg input[type=search] { width: 100%; margin-top: 6px; }
.pick-results { display: grid; gap: 6px; margin-bottom: 10px; }
.pick-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--sand-2); border: 1px solid var(--sand); border-radius: 6px; }
.order-lines td input[type=number] { width: 80px; }
.order-total { font-weight: 700; margin: 8px 0 12px; }
.block-link { color: var(--red); margin-top: 4px; }
@media (max-width: 560px) { .pick-row { grid-template-columns: 1fr auto; } .pick-row .btn { grid-column: 1 / -1; } }

/* ---------- Admin: delivery options ---------- */
.deliv-opt { display: grid; grid-template-columns: 1.2fr .8fr 2fr auto; gap: 10px; align-items: end; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--sand); border-radius: 6px; }
.deliv-opt label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 760px) { .deliv-opt { grid-template-columns: 1fr 1fr; } .deliv-opt .deliv-note { grid-column: 1 / -1; } }
/* More admin tabs: tighter spacing so they stay on one line on a laptop screen */
@media (min-width: 601px) { .admin-bar .wrap { gap: 2px; } .admin-bar .tab { padding: 8px 10px; } }

/* Admin: red number badge on a tab (new orders, unread messages, new Vote requests) */
.tab .tab-count { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--red); color: #fff; font: 700 .75rem/20px var(--sans, inherit); text-align: center; vertical-align: 1px; box-shadow: 0 0 0 2px var(--cedar); }

/* ---------- Shop: Genre row (Books) ---------- */
.chips.cats.genres { padding-top: 10px; align-items: center; }
.chips.genres .flabel { flex: none; margin-right: 4px; }
.chips.genres .chip { font-size: .86rem; padding: 6px 12px; }

/* ---------- Shop: photo banner (slideshow between the green top and the tabs) ---------- */
.slides { position: relative; margin-top: 22px; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 10px; align-items: center; background: var(--sand-2); }
.slides-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: block; line-height: 0; }
.slide img { width: 100%; height: auto; display: block; max-height: 520px; object-fit: cover; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-60%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--cedar); font: 700 1.6rem/1 var(--sans); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.slide-arrow.prev { left: 12px; } .slide-arrow.next { right: 12px; }
.slide-arrow:hover { background: #fff; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.slide-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--sand); cursor: pointer; }
.slide-dot[aria-current="true"] { background: var(--cedar); width: 22px; border-radius: 99px; }
@media (max-width: 600px) { .slide-arrow { display: none; } .slides { margin-top: 16px; } .slides-track { border-radius: 8px; } }

/* ---------- Admin: genres picker and photo banner slides ---------- */
.genre-picks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.genre-pick { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: .92rem; margin: 0; }
.genre-pick input { width: 18px; height: 18px; min-height: 0; }
.slide-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 14px; margin-bottom: 12px; background: #fff; border: 1px solid var(--sand); border-radius: 6px; }
.slide-pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; align-items: start; }
.slide-pics label, .slide-fields label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.slide-thumb { display: block; width: 100%; max-height: 160px; object-fit: contain; background: var(--sand-2); border-radius: 4px; margin-bottom: 6px; }
.slide-pics input[type=file] { font-size: .85rem; max-width: 100%; }
.slide-fields input[type=text], .slide-fields select { margin-top: 4px; }
.slide-fields .check { margin: 4px 0 8px; }
@media (max-width: 760px) { .slide-row { grid-template-columns: 1fr; } }

/* ---------- Reviews (/reviews) ---------- */
.reviews-page { padding-top: 0; }
.stabs-links a { font: 600 1.02rem var(--sans); color: var(--muted); padding: 10px 20px; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.stabs-links a:hover { color: var(--cedar); }
.stabs-links a[aria-current="page"] { color: var(--cedar); border-bottom-color: var(--cedar); }
.reviews-page h1 { margin-top: 26px; }
.rv-intro { color: var(--muted); max-width: 40em; margin: 0 0 18px; }
.rv-sort { margin: 0 0 18px; }
.rv-back { margin: 20px 0 12px; }
.rv-more-h { margin: 30px 0 14px; font-size: 1.3rem; }
.rv { background: #fff; border: 1px solid var(--sand); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.rv-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 14px 16px; align-items: center; cursor: pointer; }
.rv-head:focus-visible { outline: 3px solid var(--cedar-2); outline-offset: -3px; }
.rv-head img, .rv-noimg { width: 64px; height: 96px; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.rv-noimg { background: var(--cedar); color: #8cc7a6; display: flex; align-items: center; justify-content: center; }
.rv-noimg svg { width: 36px; height: 36px; }
.rv-kick { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cedar-2); font-weight: 700; }
.rv-kick .tag { margin-left: 8px; letter-spacing: 0; vertical-align: 1px; }
.rv-title { font: 700 1.25rem/1.25 var(--serif); margin: 3px 0 4px; }
.rv-sum { color: var(--muted); margin: 0; font-size: .95rem; }
.rv-meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.helpful { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--sand); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 40px; }
.helpful b { color: var(--cedar); }
.helpful:hover { border-color: var(--cedar-2); }
.helpful.on { background: var(--cedar); border-color: var(--cedar); color: #fff; }
.helpful.on b { color: #fff; }
.rv-body { padding: 0 16px 18px 96px; border-top: 1px solid var(--sand-2); }
.rv-body p { margin: 14px 0 0; max-width: 42em; white-space: pre-line; }
.rv-verdict { margin-top: 16px; padding: 12px 14px; background: var(--sand-2); border-radius: 6px; max-width: 42em; }
.rv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.rv.open .rv-head { background: #fbfaf6; }
@media (max-width: 600px) {
  .rv-head { grid-template-columns: 52px 1fr; gap: 12px; }
  .rv-head img, .rv-noimg { width: 52px; height: 78px; }
  .rv-score { grid-column: 1 / -1; }
  .rv-body { padding-left: 16px; }
  .stabs-links a { padding: 12px 14px; }
}

/* ---------- Admin: Profit & loss ---------- */
.stat-card.gain .stat-num { color: #1f7a4d; }
.stat-card.loss .stat-num { color: var(--red); }
.pl-amt { font-weight: 700; }
.pl-amt.gain { color: #1f7a4d; }
.pl-amt.loss { color: var(--red); }
.pl-period input[type=date] { width: auto; }
.exp-form { display: grid; grid-template-columns: 160px 200px 140px 1fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.exp-form .field { margin: 0; }
.exp-form .form-msg { grid-column: 1 / -1; margin: 0; }
.pu-form { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; align-items: end; }
.pu-form .pu-note, .pu-form .pu-stock { grid-column: 1 / -1; }
.pu-form .field { margin: 0; }
.pl-avg { font-weight: 600; margin: 4px 0 10px; }
.pl-cards .stat-label { color: var(--ink); font-weight: 700; font-size: .86rem; }
.pl-cards .stat-hint { font-size: .78rem; line-height: 1.4; margin-top: 4px; }
.pl-formula { background: var(--sand-2); border-left: 4px solid var(--cedar-3); border-radius: 4px; padding: 10px 14px; margin: -12px 0 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-formula:empty { display: none; }
.pl-sub { font-size: .98rem; margin: 22px 0 4px; }
#pl-spend-cards { margin-top: 10px; }
.pl-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--sand); margin: 6px 0 10px; }
.pl-tab { appearance: none; background: none; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 9px 16px; margin-bottom: -2px; font: 600 .92rem var(--sans); color: var(--muted); cursor: pointer; }
.pl-tab:hover { color: var(--cedar); }
.pl-tab[aria-selected=true] { background: #fff; border-color: var(--sand); border-bottom: 2px solid #fff; color: var(--cedar); }
.pl-tab:focus-visible { outline: 2px solid var(--cedar-3); outline-offset: 2px; }
@media (max-width: 760px) { .exp-form, .pu-form { grid-template-columns: 1fr 1fr; } .exp-form .exp-note { grid-column: 1 / -1; } }

/* ---------- Polls (admin results and the Vote page) ---------- */
.polls-h { margin-top: 36px; }
.po-opts { display: grid; gap: 8px; margin-bottom: 8px; }
.po-bars { display: grid; gap: 10px; margin: 14px 0; }
.po-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 10px; align-items: center; }
.po-track { background: var(--sand-2); border-radius: 99px; height: 14px; overflow: hidden; }
.po-bar { background: var(--cedar); height: 100%; border-radius: 99px; min-width: 2px; }
.po-n { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.po-label { font-weight: 600; }
.po-winner { margin: 8px 0; font-weight: 600; }
.po-emails { font-size: .9rem; overflow-wrap: anywhere; }
.polls-public { margin: 36px 0 10px; display: grid; gap: 16px; }
.poll { background: #fff; border: 1px solid var(--sand); border-radius: 8px; padding: 18px 20px; }
.poll h2 { margin: 0 0 4px; font-size: 1.3rem; }
.poll .prize { display: inline-block; background: #fdf0c9; color: #5a4300; border-radius: 99px; padding: 3px 12px; font-weight: 700; font-size: .85rem; margin: 6px 0; }
.poll .choices { display: grid; gap: 8px; margin: 12px 0; }
.poll .choice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--sand); border-radius: 6px; cursor: pointer; font-weight: 400; margin: 0; }
.poll .choice:hover { border-color: var(--cedar-3); }
.poll .choice input { width: 20px; height: 20px; min-height: 0; accent-color: var(--cedar); }
.poll .done { color: var(--cedar); font-weight: 600; }
@media (max-width: 600px) { .po-row { grid-template-columns: 1fr auto; } .po-track { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- One book in several conditions: "Choose your copy" in the book pop-up ---------- */
.copies { margin: 4px 0 14px; }
.copies h3 { font-size: 1rem; margin: 0 0 8px; }
.cp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cpick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border: 2px solid var(--sand); border-radius: 8px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); position: relative; }
.cpick:hover { border-color: var(--cedar-3); }
.cpick.on { border-color: var(--cedar); box-shadow: 0 0 0 2px rgba(18, 55, 42, .15); }
.cpick.out { opacity: .55; }
.cp-img { width: 100%; aspect-ratio: 2 / 3; border-radius: 3px; overflow: hidden; background: var(--sand-2); display: flex; align-items: center; justify-content: center; color: var(--cedar-3); }
.cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-img svg { width: 40%; }
.cp-price { font-weight: 700; color: var(--red); font-size: .95rem; }
.cp-price .was { font-weight: 400; margin-right: 4px; }
.cp-out { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.cp-help { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }
.book .price .from { font-weight: 400; color: var(--muted); font-size: .85em; }

/* ---------- Admin: a book in several conditions ---------- */
#products-body tr.grp-member td { background: #fbfaf6; }
#products-body tr.grp-member td:nth-child(2) { padding-left: 26px; }
.grp-arrow { color: var(--muted); }
#products-body .pill { margin-left: 6px; }
.conds-box { background: var(--sand-2); border: 1px solid var(--sand); border-radius: 6px; padding: 12px 14px; margin: 0 0 16px; }
.conds-box:empty { display: none; }
.conds-box .hint { margin: 4px 0 8px; }
.conds-list { margin: 0 0 10px; padding-left: 18px; }
.conds-list li { margin: 3px 0; }
@media (max-width: 600px) {
  .cp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cpick { padding: 6px 6px 8px; gap: 4px; }
  .cp-price { font-size: .85rem; }
  .cpick .tag { font-size: .7rem; padding: 1px 6px; }
  .cp-out { top: 8px; left: 8px; }
}
/* Card buttons always stay on one line, so every card's button is the same size */
.book > .btn { white-space: nowrap; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px; border: 0; border-radius: 999px; background: #1a7f45; color: #fff; font: 700 .92rem/1 var(--sans); box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; }
.wa-float svg { width: 22px; height: 22px; }
.wa-float:hover { background: #156a39; }
.wa-float:focus-visible { outline: 3px solid #8fd0b0; outline-offset: 2px; }
@media (max-width: 600px) { .wa-float { padding: 12px; right: 12px; bottom: 12px; } .wa-float span { display: none; } .wa-float svg { width: 26px; height: 26px; } }
@media print { .wa-float { display: none; } }
.bv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.wa-ask { display: inline-flex; align-items: center; gap: 6px; color: #1a7f45; font-weight: 600; }
.wa-ask svg, .wa-mini svg { width: 18px; height: 18px; }
.wa-mini { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: #e3f3ea; color: #145f35; font-size: .82rem; font-weight: 700; text-decoration: none; vertical-align: middle; }
.wa-mini:hover { background: #cfeadb; }

/* ---------- Tell me when it's back ---------- */
.notify-btn { border-style: dashed; }
.alert-dlg .hint { margin-top: -4px; }

/* ---------- Free delivery note in the cart ---------- */
.free-note { margin: 6px 0 0; padding: 8px 12px; border-radius: 6px; background: var(--sand-2); font-size: .9rem; font-weight: 600; color: var(--cedar); }
.free-note.got { background: #e3f3ea; color: #145f35; }

/* ---------- Admin: small forms, edit buttons ---------- */
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 18px; }
.inline-form .field { margin: 0; min-width: 240px; }
.inline-form .hint { flex-basis: 100%; margin: 0; }
.exp-actions { display: flex; gap: 8px; align-items: center; }
.row-actions { white-space: nowrap; }
.row-actions .linkbtn + .linkbtn { margin-left: 12px; }
.pu-actions { grid-column: 1 / -1; margin: 0; }
tr.editing td { background: #fff7dc; }
input[readonly] { background: var(--sand-2); color: var(--muted); }

/* ---------- A product's own page (/p/...), category pages (/c/...) ---------- */
/* The book sits in a white card the same size and layout as the shop's pop-up. */
.pp-page { padding-top: 18px; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--cedar); }
.pp-card-main { max-width: 820px; margin: 0 auto 36px; background: #fff; border: 1px solid var(--sand); border-radius: 8px; box-shadow: 0 10px 30px rgba(10, 30, 22, .10); }
.pp-card-main .dlg { position: relative; }
.bv-text h1 { margin: 0 0 4px; font-size: 1.35rem; line-height: 1.25; }
.pp-card-main .bv-cover img { width: 100%; height: auto; border-radius: 4px; }
.pp-copies { margin: 0 0 12px; padding-left: 18px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--cedar); font-weight: 600; }
.share-btn svg { width: 18px; height: 18px; }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { text-decoration: underline; }
.pp-more h2 { font-size: 1.15rem; margin: 0 0 12px; }
.pp-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pp-card a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.pp-card img, .pp-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--sand-2); box-shadow: 0 4px 12px rgba(10, 30, 22, .14); }
.pp-t { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-p { color: var(--red); font-weight: 700; font-size: .92rem; }
.pp-card a:hover .pp-t { text-decoration: underline; }
.pp-intro { max-width: 760px; color: var(--muted); }
.pp-missing { text-align: center; padding: 60px 0; }
.pp-missing .btn { margin: 6px; }
@media (max-width: 600px) { .pp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pp-card-main { border-radius: 6px; } }
.page-link { margin: -4px 0 14px; font-size: .9rem; overflow-wrap: anywhere; }
.pp-noimg { display: flex; align-items: flex-start; padding: 14px 12px; background: var(--cedar-2); color: #fff; font: 700 1rem/1.25 var(--serif); overflow: hidden; }
.dlg-flash { position: sticky; top: 0; z-index: 3; margin: 0; border-radius: 0; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* Admin, Profit & loss: "Upload costs from CSV" */
.cost-mode { border: 1px solid var(--sand); border-radius: 10px; padding: 10px 14px 12px; margin: 0 0 14px; display: grid; gap: 8px; }
.cost-mode legend { font-weight: 700; padding: 0 6px; }
.cost-mode .check { font-weight: 400; align-items: flex-start; }
.cost-mode .check input { margin-top: 2px; flex: none; }
.cost-mode .cost-stock { margin-left: 30px; font-weight: 600; }
.cost-mode ~ .import-preview .nowrap, .import-preview td.nowrap { white-space: nowrap; }

/* Admin, Profit & loss: payback bar under the four cards (pack S) */
.pl-meter { background: #fff; border: 1px solid var(--sand); border-radius: 6px; padding: 14px 16px 12px; margin: -12px 0 24px; }
.pl-meter-empty { margin: 0; color: var(--muted); font-size: .9rem; }
.pl-meter-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pl-meter-label { font-weight: 700; font-size: .86rem; }
.pl-meter-pct { font: 700 2rem/1.1 var(--serif); color: var(--cedar); font-variant-numeric: tabular-nums; }
.pl-meter-pct.gain { color: #1f7a4d; }
.pl-meter-state { font-size: .88rem; font-weight: 600; text-align: right; }
.pl-meter-state.loss { color: var(--red); }
.pl-meter-state.gain { color: #1f7a4d; }
.pl-meter-tags { position: relative; height: 18px; margin-top: 8px; }
.pl-meter-tag { position: absolute; top: 0; transform: translateX(-50%); font-size: .74rem; color: var(--muted); white-space: nowrap; transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.pl-meter-bar { position: relative; margin: 10px 0 8px; }
.pl-meter-tags:not([hidden]) + .pl-meter-bar { margin-top: 2px; }
.pl-meter-track { position: relative; height: 22px; border-radius: 11px; border: 1px solid #d6cdb8; overflow: hidden;
  background: repeating-linear-gradient(135deg, #fbf3f3 0 6px, #f1cdd0 6px 8px); }
.pl-meter-cov, .pl-meter-pro { position: absolute; top: 0; bottom: 0; transition: left 1.2s cubic-bezier(.2,.8,.2,1), width 1.2s cubic-bezier(.2,.8,.2,1); }
.pl-meter-cov { left: 0; width: 0; background: var(--mint, #8fd0b0); }
.pl-meter-pro { left: 100%; width: 0; background: var(--cedar-3); }
/* The break-even line sits just inside the bar, so it never sticks out past the rounded end. */
.pl-meter-line { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 2px dashed var(--cedar); transform: translateX(-2px); transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.pl-meter-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-meter-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.pl-meter-key span { display: inline-flex; align-items: center; gap: 6px; }
.pl-meter-key .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pl-meter-key .sw.cov { background: var(--mint, #8fd0b0); }
.pl-meter-key .sw.pro { background: var(--cedar-3); }
.pl-meter-key .sw.left { border: 1px solid #d6cdb8; background: repeating-linear-gradient(135deg, #fbf3f3 0 3px, #f1cdd0 3px 5px); }
@media (prefers-reduced-motion: reduce) { .pl-meter-cov, .pl-meter-pro, .pl-meter-line, .pl-meter-tag { transition: none; } }
@media (max-width: 520px) { .pl-meter-state { text-align: left; flex-basis: 100%; } }

/* ---------- Pack U: shipping label link, new-order email switch, database card ---------- */
@media (min-width: 601px) { .invoice-link { margin-left: 14px; } .invoice-link + .invoice-link { margin-left: 18px; } }
.order-alert { margin: -6px 0 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.order-alert label { font-weight: 600; }
.stat-card.warn { border-color: var(--red, #b3202a); }
.stat-card.warn .stat-hint { color: var(--red, #b3202a); }
/* Products list: the row you just saved is highlighted for a moment, so you can see where you were. */
#products-body tr.just-saved td { background: #e3f2ea; transition: background .6s; }

/* ---------- Books shelves (the Books tab's first view) ----------
   Each shelf is one row of books on a sand-coloured ledge, like a real bookcase. The cards are the shop's
   usual cards on the same row grid (subgrid), so covers, titles, prices and buttons line up along the
   shelf. The row scrolls sideways: swipe on phones, the round arrows on computers. */
.racks { --cw: 160px; padding: 6px 0 28px; }
.rack { margin-top: 30px; }
.rack:first-child { margin-top: 10px; }
.rack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rack-title { font: 700 1.5rem/1.15 var(--serif); color: var(--cedar); margin: 0; letter-spacing: -.005em; }
.rack-title::before { content: ""; display: inline-block; width: 6px; height: .78em; margin-right: 10px; border-radius: 1px;
  background: linear-gradient(var(--red) 0 33%, #fff 33% 67%, var(--red) 67%); box-shadow: 0 0 0 1px rgba(0,0,0,.06); vertical-align: -.02em; }
.rack-sub { color: var(--muted); font-size: .9rem; margin: 4px 0 0 16px; }
.rack-all { flex: none; background: none; border: 0; padding: 6px 2px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--cedar-2); cursor: pointer; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--sand); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.rack-all:hover { color: var(--red); text-decoration-color: currentColor; }
.rack-all .n { color: var(--muted); font-weight: 400; }
.rack-wrap { position: relative; }
/* the ledge the covers stand on */
.rack-wrap::before { content: ""; position: absolute; left: -6px; right: -6px; top: calc(var(--cw) * 1.5 - 2px); height: 9px; border-radius: 2px;
  background: linear-gradient(#e9e2d1, #d9cfb8); box-shadow: 0 3px 6px rgba(60, 45, 20, .10); }
.rack-row { position: relative; display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-auto-columns: var(--cw); column-gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 0 4px;
  scrollbar-width: none; }
.rack-row::-webkit-scrollbar { display: none; }
.rack-row .book { scroll-snap-align: start; }
.rack-row .book .btn { margin-bottom: 4px; }
.rack-row .book h3 { padding-top: 16px; }
/* the last tile when a shelf has more books than it shows */
.rack-more { grid-row: 1 / -1; align-self: start; aspect-ratio: 2 / 3; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  border: 2px dashed #cfc5ad; border-radius: 3px 6px 6px 3px; background: var(--sand-2); color: var(--cedar); font: inherit; cursor: pointer; }
.rack-more .n { font: 700 2.2rem/1 var(--serif); }
.rack-more .go { margin-top: 10px; font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.rack-more:hover { border-color: var(--cedar-3); color: var(--red); }
.rack-arrow { position: absolute; z-index: 2; top: calc(var(--cw) * .75 - 21px); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sand);
  background: #fff; color: var(--cedar); font: 400 1.7rem/1 var(--serif); padding: 0 0 4px; cursor: pointer; box-shadow: 0 2px 10px rgba(18, 55, 42, .16); transition: opacity .15s; }
.rack-arrow.prev { left: -18px; }
.rack-arrow.next { right: -18px; }
.rack-arrow:hover { background: var(--cedar); color: #fff; border-color: var(--cedar); }
.rack-arrow:disabled, .fits .rack-arrow { opacity: 0; pointer-events: none; }
@media (hover: none) { .rack-arrow { display: none; } }
@media (max-width: 1180px) { .rack-arrow.prev { left: -6px; } .rack-arrow.next { right: -6px; } }
@media (max-width: 600px) {
  .racks { --cw: 136px; }
  .rack { margin-top: 24px; }
  .rack-title { font-size: 1.28rem; }
  .rack-sub { font-size: .84rem; }
  .rack-row { column-gap: 14px; }
}
/* Browsers without subgrid: one book per column, all on the first row. */
@supports not (grid-template-rows: subgrid) {
  .rack-row { grid-template-rows: auto; }
  .rack-row .book, .rack-more { grid-row: 1; }
}
/* Phones: the category chips (13 for Books) are one row that scrolls sideways, so the shelves start
   right under them instead of after six lines of chips. */
@media (max-width: 600px) {
  #filters { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-padding-inline: 16px; }
  #filters::-webkit-scrollbar { display: none; }
  #filters .chip { flex: none; }
}
