/* Bodhisattva Books — shared styles (every page). Colours only via tokens.css.
   Phone layout at ≤720px. Home-only parts are in home.css. */

/* Anek Bangla, self-hosted (OFL, see ../fonts/OFL.txt). One variable file
   per script covers weights 400–700. */
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/anek-bangla-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1,
    U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/anek-bangla-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anek Bangla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/anek-bangla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
}

/* Shown while sample books (seeded for development) are in the shop */
.sample-notice {
  margin: 0;
  padding: 4px var(--gutter);
  background: var(--sale-bg);
  color: var(--sale);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Page container: 1240px, 32px gutter (16px on phones) */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Shown only on one side of the 720px switch */
@media (max-width: 720px) {
  .desktop-only {
    display: none !important;
  }
}
@media (min-width: 721px) {
  .mobile-only {
    display: none !important;
  }
}

/* Inline stroke icons */
.ic {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-secondary {
  background: var(--surface);
  color: var(--accent);
}
.btn[aria-disabled="true"] {
  border-color: var(--line);
  background: var(--soft);
  color: var(--muted);
  cursor: default;
  filter: none;
}

/* WooCommerce AJAX add-to-cart states */
.add_to_cart_button.loading {
  opacity: 0.6;
  pointer-events: none;
}
.added_to_cart {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

/* Icon button (44px touch target) */
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  position: relative;
  flex: none;
}
.iconbtn:hover {
  background: var(--soft);
  text-decoration: none;
}

/* Count badge on cart */
.badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  line-height: 19px;
  font-weight: 600;
  text-align: center;
}

/* The count changed after an add to cart (assets/js/theme.js) */
.badge.is-bumped {
  animation: bump 0.4s ease;
}
@keyframes bump {
  50% {
    transform: scale(1.35);
  }
}

/* Two-or-three option switch (language links, theme buttons) */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px;
  background: var(--surface);
  flex: none;
}
.seg > a,
.seg > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 0 10px;
  min-height: 36px;
  min-width: 40px;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
}
.seg > a:hover {
  text-decoration: none;
  color: var(--ink);
}
.seg > [aria-pressed="true"],
.seg > [aria-current="true"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.seg > [aria-current="true"]:hover {
  color: var(--on-accent);
}

/* Discount chip: "১৫% ছাড়" */
.off {
  font-size: 12px;
  font-weight: 600;
  color: var(--sale);
  background: var(--sale-bg);
  padding: 1px 8px;
  border-radius: 6px;
  line-height: 1.8;
  white-space: nowrap;
}

/* ---------- Header ---------- */

/* Utility bar (desktop) */
.utility {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.utility__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.utility__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  color: var(--muted);
}

.utility__links a {
  color: var(--muted);
}

.utility__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main header (desktop) */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 14px;
  padding-bottom: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  flex: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand__logo--sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 22px;
  font-weight: 700;
}

.brand__name--sm {
  font-size: 19px;
  font-weight: 700;
}

.brand__tagline {
  font-size: 12px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.header-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 2px 8px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.3;
  position: relative;
}

.header-action:hover {
  background: var(--soft);
  text-decoration: none;
}

/* Search: accent border + button */
.search-box {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  padding: 0 14px;
}

.search-box input::placeholder {
  color: var(--muted);
}

/* the browser's own clear button clashes with the accent button */
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-box:focus-within {
  box-shadow: 0 0 0 3px var(--tint);
}

.search-box button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0 18px;
  font-weight: 600;
}

/* Category chips (scroll sideways) */
.chips {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
}

.chip:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.chip[aria-current="page"] {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}

/* Mobile header (≤720px): sticky, brand + controls / search / chips */
.mhead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px var(--gutter) 2px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.admin-bar .mhead {
  top: var(--wp-admin--admin-bar--height, 0px);
}

@media (max-width: 600px) {
  /* WordPress un-fixes its admin bar here, so the header sticks to the top */
  .admin-bar .mhead {
    top: 0;
  }
}

.mhead__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mhead__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mhead .search-box {
  min-height: 44px;
}

.mhead .search-box button {
  padding: 0 14px;
}

.mhead .chips {
  padding: 2px 0 6px;
}

/* Mobile theme menu (popover) */
.theme-menu {
  position: fixed;
  inset: auto;
  top: 56px;
  right: 12px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.theme-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
}

.theme-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: start;
  font-size: 15px;
}

.theme-menu__item:hover {
  background: var(--soft);
}

.theme-menu__item[aria-pressed="true"] {
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}

/* The menu button shows the icon of the mode in use */
[data-theme-icon] {
  display: none;
}
:root:not([data-theme]) [data-theme-icon="system"],
:root[data-theme="light"] [data-theme-icon="light"],
:root[data-theme="dark"] [data-theme-icon="dark"] {
  display: inline;
}

/* ---------- Books ---------- */

/* Generated cover for books without a cover image (WS-02: flat, light top
   band, short rule mid-cover). Decorative — the real title is in the text. */
.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  padding: 18% 12% 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  /* 1px outline so dark covers don't vanish on a dark page */
  outline: 1px solid var(--cover-outline);
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10%;
  background: rgba(255, 255, 255, 0.16);
}

.book-cover::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 52%;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
}

.book-cover__title {
  position: relative;
  font-weight: 700;
  line-height: 1.25;
  font-size: 19px;
}

.book-cover__author {
  position: relative;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}

.book-cover--lg .book-cover__title {
  font-size: 30px;
  line-height: 1.2;
}

.book-cover--lg .book-cover__author {
  font-size: 13px;
}

/* Small cover beside a cart or order line: title only */
.book-cover--sm {
  padding: 16% 10% 8%;
  border-radius: 3px;
  box-shadow: none;
}

.book-cover--sm .book-cover__title {
  font-size: 10px;
  line-height: 1.2;
}

.book-cover--sm .book-cover__author {
  display: none;
}

/* Real cover photo: never inverted, same outline */
.book-cover--img {
  padding: 0;
  background: var(--soft);
}

.book-cover--img::before,
.book-cover--img::after {
  content: none;
}

.book-cover--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Book card: whole card is one link; the add button sits outside it */
.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.book-card:hover {
  border-color: var(--accent);
}

.book-card__off {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--sale);
  background: var(--sale-bg);
  padding: 0 8px;
  border-radius: 6px;
  line-height: 1.9;
}

.book-card__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  color: var(--ink);
}

.book-card__link:hover {
  text-decoration: none;
}

.book-card__link:hover .book-card__title {
  color: var(--accent);
}

.book-card__title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card__author {
  font-size: 13px;
  color: var(--muted);
}

.book-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.book-card__now {
  font-size: 18px;
  font-weight: 700;
}

.book-card__mrp {
  font-size: 13px;
  color: var(--muted);
}

.book-card__add {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

/* "+" icon: only where the card is compact (phone home grid, home.css) */
.book-card__add .ic {
  display: none;
}

.book-card .added_to_cart {
  justify-content: center;
  min-height: 32px;
  margin-top: -4px;
}

/* ---------- Book rail: grid; sideways scroller on phones ---------- */

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rail-head__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.rail-head__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  white-space: nowrap;
}

.rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail > li {
  display: flex;
  min-width: 0;
}

.rail > li > * {
  flex: 1;
}

@media (max-width: 720px) {
  .rail-head {
    margin-bottom: 8px;
  }

  .rail-head__title {
    font-size: 22px;
  }

  .rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* bleed to the screen edge, keep the first card on the gutter */
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .rail > li {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }
}

/* Phones: M-02 grid — two columns, compact cards, round "+" add (home, lists) */
@media (max-width: 720px) {
  .rail--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .rail--grid .book-card {
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .rail--grid .book-card__off {
    top: 16px;
    left: 16px;
    font-size: 11px;
    padding: 0 7px;
    line-height: 1.8;
  }

  /* Generated cover title starts below the discount tag */
  .rail--grid .book-cover {
    padding-top: 30%;
  }

  .rail--grid .book-card__title {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.3;
  }

  .rail--grid .book-card__author {
    font-size: 12px;
    line-height: 1.3;
  }

  .rail--grid .book-card__price {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-height: 44px;
    padding-right: 52px;
    line-height: 1.2;
  }

  .rail--grid .book-card__now {
    font-size: 16px;
  }

  .rail--grid .book-card__mrp {
    font-size: 11px;
  }

  /* Round "+" add, or "→" for a book in two bindings (opens its page) */
  .rail--grid a.book-card__add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 44px;
    padding: 0;
    background: var(--accent);
    color: var(--on-accent);
  }

  .rail--grid a.book-card__add:active {
    transform: scale(0.92);
  }

  .rail--grid a.book-card__add .ic {
    display: block;
  }

  /* aria-label names the button; the tab-bar cart badge shows the add */
  .rail--grid a.book-card__add .btn__label,
  .rail--grid .added_to_cart {
    display: none;
  }
}

/* ---------- Page body ---------- */

.page-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-title {
  margin: 0 0 16px;
  font-size: 32px;
}

/* WooCommerce notices ("added to your cart", "removed. Undo?", errors) on
   every page; "body" outranks WooCommerce's CSS where it still loads. */
.woocommerce-notices-wrapper:empty {
  display: none;
}

body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: auto;
  margin: 0 0 16px;
  padding: 12px 16px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--tint);
  color: var(--ink);
  font-size: 15px;
}

body :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
  content: none;
}

/* One line per problem; on checkout each links to its field */
body .woocommerce-error {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border-color: var(--sale-bg);
  background: var(--sale-bg);
  color: var(--sale);
}

body .woocommerce-error a {
  color: inherit;
  text-decoration: underline;
}

body :is(.woocommerce-message, .woocommerce-info) :is(.button, .restore-item) {
  order: 2;
  font-weight: 600;
}

/* WooCommerce's "working" cover while the cart or checkout updates */
.blockUI.blockOverlay {
  background-color: var(--bg) !important;
}

/* COD · returns · secure payment (book page, cart) */
.assure {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.assure li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assure .ic {
  width: 18px;
  height: 18px;
}

/* A plain page's text (about, contact, policies): reading width */
.prose {
  max-width: 760px;
}

.prose :is(h2, h3) {
  margin: 28px 0 8px;
  font-size: 22px;
}

.prose h3 {
  font-size: 18px;
}

.prose :is(p, ul, ol) {
  margin: 0 0 12px;
}

.prose :is(ul, ol) {
  padding-left: 24px;
}

.prose li + li {
  margin-top: 4px;
}

.prose__date {
  margin-top: 32px !important;
  font-size: 14px;
  color: var(--muted);
}

/* Only editors see it, while a page still has [placeholders] */
.draft-note {
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--sale-bg);
  color: var(--sale);
  font-size: 14px;
  font-weight: 600;
}

/* Breadcrumb: হোম › বিষয় › বই */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›" / "";
  margin-right: 8px;
}

.crumbs [aria-current] {
  color: var(--ink);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.not-found p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.site-footer__about,
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__about {
  gap: 6px;
}

.site-footer__brand {
  font-size: 22px;
  font-weight: 700;
}

.site-footer__muted {
  font-size: 14px;
  color: var(--muted);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer__contact a {
  color: inherit;
}

.site-footer__heading {
  margin: 0 0 6px;
  font-size: 15px;
}

.site-footer__link {
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
}

.payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
}

.payments li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.site-footer__bottom {
  padding-top: 12px;
  padding-bottom: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Phone tab bar (home and lists) ---------- */

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  padding: 0 6px env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tabbar__tab {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  font-size: 11px;
  color: var(--muted);
}

.tabbar__tab:hover {
  text-decoration: none;
}

.tabbar__tab[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
}

/* accent bar over the active tab */
.tabbar__tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

.tabbar__tab .badge {
  right: 22%;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
