/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
 *
 * ── Semantic class hooks (sa-*) ────────────────────────────────────────────
 * Every section, snippet and key element carries a stable `sa-` class you can
 * target with plain CSS — no Tailwind rebuild needed. These classes ship with
 * NO styles of their own; they exist purely as selectors for you to hook onto.
 *
 * Page scope   body.sa-tpl-<template>      e.g. .sa-tpl-product, .sa-tpl-shop
 *              body.sa-no-product-images / .sa-no-category-images when the
 *              matching theme setting is off
 * Chrome       .sa-header .sa-navbar .sa-footer
 *              .sa-navbar-link .sa-navbar-logo .sa-navbar-cart .sa-footer-link
 * Sections     .sa-<component>             e.g. .sa-hero, .sa-features, .sa-faq
 *   variant    .sa-<component>--<variant>  e.g. .sa-hero--split-media
 *   inner      .sa-<component>-title / -subtitle / -eyebrow / -media /
 *              -items / -item / -actions / -link / -price / -badge / -icon
 * Primitives   .sa-btn (+ .sa-btn--<variant>), .sa-section-header
 *              (.sa-section-title / -eyebrow / -subtitle),
 *              .sa-product-card (+ .sa-product-card--<style>,
 *              .sa-product-card-title / -price / -stock / -status / -badges),
 *              .sa-product-form + .sa-add-to-cart, .sa-product-gallery,
 *              .sa-cart-panel + .sa-cart-item, .sa-searchbar, .sa-pagination,
 *              .sa-breadcrumbs, .sa-toasts + .sa-toast, .sa-feedback-card
 *
 * Example — bigger hero heading only on the product page:
 *   .sa-tpl-product .sa-hero-title { font-size: 3rem; }
 * ───────────────────────────────────────────────────────────────────────────
*/

/* =============================================================================
   LarpLoot
   ============================================================================= */

/* Category tiles: the artwork has no baked-in text; the label is live text on top
   of it (same size and position as the original artwork) so it can be translated. */
.ll-cat-media { position: relative; container-type: inline-size; }
.ll-cat-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 71.5%;
  transform: translateY(-50%);
  padding: 0 4%;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 7cqw;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F2EEE6;
}

/* Bulgarian, applied in the browser by ll-i18n-bg.js (SellAuth has no "bg" locale).
   The page stays hidden until it is translated; Saira has no Cyrillic, so Cyrillic
   headings fall back to the similar Exo 2. */
html.ll-i18n-pending body { visibility: hidden; }
html.ll-bg { --ff-heading: 'Saira', 'Exo 2', ui-sans-serif, system-ui, sans-serif; }
.ll-face { display: contents; }
.ll-face--bg { display: none; }
html.ll-bg .ll-face--bg { display: contents; }
html.ll-bg .ll-face--site { display: none; }

/* Light mode: the logo artwork is cream + gold for dark backgrounds. Inverting lightness
   (invert + hue-rotate keeps the hue) turns the cream "LARP" near-black and keeps "LOOT" gold. */
[data-scheme="light"] .sa-navbar-logo img,
[data-scheme="light"] img.ll-logo {
  filter: invert(1) hue-rotate(180deg);
}

/* Products page live search: results fade slightly while the new list loads. */
[data-ll-results] { transition: opacity 0.2s ease; }
[data-ll-results].ll-loading { opacity: 0.55; }

/* Animated light/dark switch (driven by custom.js). The new scheme is revealed as a circle
   growing from the navbar toggle; custom.js animates the clip-path, so the default
   cross-fade is turned off here. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
/* While the reveal runs, colour transitions are frozen so the new page is already final. */
html.ll-scheme-switching,
html.ll-scheme-switching *,
html.ll-scheme-switching *::before,
html.ll-scheme-switching *::after {
  transition: none !important;
}
/* Fallback for browsers without View Transitions: a short colour crossfade. */
html.ll-scheme-fade,
html.ll-scheme-fade *,
html.ll-scheme-fade *::before,
html.ll-scheme-fade *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease,
    fill 0.4s ease, stroke 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease !important;
}
/* The sun/moon icon spins and pops in as it flips. */
.sa-scheme-toggle svg { transform-origin: 50% 50%; }
.sa-scheme-toggle.ll-spin svg { animation: ll-icon-spin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ll-icon-spin {
  from { transform: rotate(-150deg) scale(0.3); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-scheme-toggle.ll-spin svg { animation: none; }
}

/* Wider page: the content column grows from the theme's 1200px to 1500px, so wide screens
   have much less empty space left and right. html:root outranks the theme's own :root value,
   which is printed after this file in the layout. */
html:root { --container-max: 1500px; }

/* Product grids (main page + products page).
   Tablets: as many ~255px cards as fit (2-4 per row). */
@media (min-width: 640px) {
  .sa-products-items.grid,
  .sa-page-products-items.grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
  }
}
/* Desktop: always 5 per row at the original card width (273px = a card in the theme's old
   4-column, 1200px layout). The row is centred, so the extra column pushes the outer columns
   out towards the sides instead of shrinking the cards; laptops narrower than ~1500px shrink
   the cards only as much as needed for 5 to fit. */
@media (min-width: 1280px) {
  .sa-products-items.grid,
  .sa-page-products-items.grid {
    grid-template-columns: repeat(5, minmax(0, 273px));
    justify-content: center;
  }
  /* The products page also has the 15rem filter column, so it may grow wider on big screens
     for 5 full-size cards to fit beside it. */
  .sa-page-products > .wrap { max-width: 1820px; }
}

/* "Sort by" dropdown (main page toolbar + products page results bar). */
.ll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  max-width: 44rem;
  margin: 0 auto 2rem;
}
.ll-toolbar--start { justify-content: flex-start; margin-left: 0; }
.ll-toolbar-count { margin: 0; white-space: nowrap; }
.ll-toolbar-search { flex: 1 1 18rem; max-width: 28rem; }
.ll-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  cursor: pointer;
}
.ll-sort-label { white-space: nowrap; }
.ll-sort-select {
  width: auto;
  min-width: 11rem;
  padding-right: 2rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 1rem;
}
/* Native option lists don't inherit the transparent select background; keep them readable. */
.ll-sort-select option {
  background-color: rgb(var(--cl-surface));
  color: rgb(var(--cl-t-primary));
}

/* Header search field (snippets/header-search.njk). Desktop: in the middle of the header row,
   taking the free space between the logo and the links/buttons (which sit on the right).
   Below 1024px: a full-width row under the logo row. */
.ll-hsearch { position: relative; width: 100%; }
.ll-hsearch-input {
  height: 2.5rem;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}
.ll-hsearch-input::-webkit-search-cancel-button { cursor: pointer; }
.ll-hsearch-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  max-height: 60vh;
  overflow-y: auto;
}
.ll-hsearch-slot { display: none; }
.ll-hsearch-row { padding-bottom: 0.75rem; }
@media (min-width: 1024px) {
  .ll-hsearch-slot {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
  .ll-hsearch--desktop { max-width: 34rem; }
  .ll-hsearch-row { display: none; }
}

/* Cart count bubble on the header cart icon (round, ringed in the page colour). */
.ll-cart-bubble {
  top: -0.2rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  box-shadow: 0 0 0 2px rgb(var(--cl-background));
}
.ll-cart-bubble.ll-bump { animation: ll-bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes ll-bump {
  0% { transform: scale(0.4); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ll-cart-bubble.ll-bump { animation: none; }
}

/* Main page category row (components/categories.njk, variant "row"): one full-width row with a
   panel per category, separated by diagonal gaps. Each panel's inner shape is cut with clip-path
   into a slanted "/" shape (the first keeps a straight left edge, the last a straight right edge)
   and every panel after the first overlaps the previous one by the slant, so only a thin diagonal
   gap shows. The hovered (or keyboard-focused) panel widens, lifts and glows gold (drop-shadow
   follows the cut shape) while the others dim and shrink back. Phones and tablets (no hover, too
   narrow for five panels) get a swipeable strip instead that also slides through the categories
   on its own (one at a time on phones), with the shown panel highlighted and dots that follow it
   (assets/custom.js).
   Panel images are the category images set in SellAuth (wide 3:2 transparent cutout banners).
   They are fitted whole inside each panel (clear of the diagonal edges and above the label),
   so as the hovered panel widens its banner grows with it. */
.ll-cat-row {
  --ll-slant: clamp(28px, 4vw, 64px);
  position: relative;
  display: flex;
  gap: 0.75rem;
  height: clamp(320px, 34vw, 480px);
  padding: 0 clamp(1rem, 2vw, 2rem);
}
.ll-cat-panel {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  filter: drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.16));
  transition: flex-grow 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s ease, filter 0.45s ease;
}
.ll-cat-panel + .ll-cat-panel { margin-left: calc(-1 * var(--ll-slant)); }
.ll-cat-panel-shape {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgb(var(--cl-surface));
  clip-path: polygon(var(--ll-slant) 0, 100% 0, calc(100% - var(--ll-slant)) 100%, 0 100%);
}
.ll-cat-panel:first-child .ll-cat-panel-shape {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--ll-slant)) 100%, 0 100%);
  border-radius: var(--radius-card, 1rem) 0 0 var(--radius-card, 1rem);
}
.ll-cat-panel:last-child .ll-cat-panel-shape {
  clip-path: polygon(var(--ll-slant) 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 var(--radius-card, 1rem) var(--radius-card, 1rem) 0;
}
.ll-cat-panel-img {
  --ll-img-side: calc(var(--ll-slant) / 2 + 0.5rem);
  position: absolute;
  top: 0.75rem;
  left: var(--ll-img-side);
  width: calc(100% - 2 * var(--ll-img-side));
  height: calc(100% - 4.5rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Panel-coloured fade under the label, so it stays readable where a grown banner reaches it. */
.ll-cat-panel-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(var(--cl-surface)) 0%, rgba(var(--cl-surface), 0.85) 14%, rgba(var(--cl-surface), 0) 32%);
  pointer-events: none;
}
.ll-cat-panel-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem calc(var(--ll-slant) + 0.75rem) 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: rgb(var(--cl-t-primary));
}
.ll-cat-panel-name {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ll-cat-panel-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgb(var(--cl-accent));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
@media (hover: hover) and (min-width: 1024px) {
  .ll-cat-panel:hover,
  .ll-cat-panel:focus-visible {
    flex-grow: 2.4;
    transform: translateY(-6px);
    filter: drop-shadow(0 0 1px rgba(var(--cl-accent), 0.95)) drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(var(--cl-accent), 0.35));
    z-index: 1;
    outline: none;
  }
  .ll-cat-panel:hover .ll-cat-panel-img,
  .ll-cat-panel:focus-visible .ll-cat-panel-img { transform: scale(1.05); }
  .ll-cat-panel:hover .ll-cat-panel-cta,
  .ll-cat-panel:focus-visible .ll-cat-panel-cta { opacity: 1; transform: none; }
  /* The others step back while one is highlighted. */
  .ll-cat-row:has(.ll-cat-panel:hover, .ll-cat-panel:focus-visible) .ll-cat-panel:not(:hover):not(:focus-visible) {
    filter: brightness(0.45) saturate(0.7);
    transform: scale(0.97);
  }
  /* Names on the narrowed panels shrink a little so they still fit in full. */
  .ll-cat-row:has(.ll-cat-panel:hover, .ll-cat-panel:focus-visible) .ll-cat-panel:not(:hover):not(:focus-visible) .ll-cat-panel-name {
    font-size: clamp(0.8rem, 1.05vw, 1.15rem);
    letter-spacing: 0.08em;
  }
  .ll-cat-panel-name { transition: font-size 0.4s ease, letter-spacing 0.4s ease; }
}
.ll-cat-dots { display: none; }
@media (max-width: 1023.98px) {
  .ll-cat-row {
    --ll-slant: 22px;
    height: auto;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 1rem; /* room for the highlight glow inside the scroller */
  }
  .ll-cat-row::-webkit-scrollbar { display: none; }
  .ll-cat-panel {
    flex: 0 0 80%;
    aspect-ratio: 5 / 4;
    scroll-snap-align: center;
    transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease;
  }
  .ll-cat-panel-img { height: calc(100% - 4rem); }
  .ll-cat-panel-text {
    padding: 0.9rem calc(var(--ll-slant) + 0.75rem) 1rem 1.1rem;
    gap: 0.2rem;
  }
  .ll-cat-panel-name { font-size: 1.15rem; }
  .ll-cat-panel-cta { opacity: 1; transform: none; }
  /* The panel in the middle of the strip stands out, the touch version of the desktop hover. */
  .ll-cat-row.ll-has-active .ll-cat-panel:not(.ll-active) { opacity: 0.5; transform: scale(0.93); }
  .ll-cat-panel.ll-active {
    filter: drop-shadow(0 0 1px rgba(var(--cl-accent), 0.95)) drop-shadow(0 0 12px rgba(var(--cl-accent), 0.3));
  }
  /* Position dots, shown once custom.js runs; each is a 22x24 tap target around a small dot. */
  .ll-cat-row.ll-has-active + .ll-cat-dots { display: flex; justify-content: center; margin-top: 0.25rem; }
  .ll-cat-dot {
    position: relative;
    width: 22px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .ll-cat-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: rgba(var(--cl-t-primary), 0.25);
    transition: width 0.3s ease, background-color 0.3s ease;
  }
  .ll-cat-dot.ll-active::before { width: 20px; background: rgb(var(--cl-accent)); }
}
/* Tablets: two panels side by side. */
@media (min-width: 640px) and (max-width: 1023.98px) {
  .ll-cat-panel { flex-basis: 46%; }
}
/* Phones: one category at a time, full width (the gap keeps the next one out of view); custom.js
   slides through them on its own. */
@media (max-width: 639.98px) {
  .ll-cat-row { gap: 2rem; }
  .ll-cat-panel { flex-basis: 100%; }
  .ll-cat-panel + .ll-cat-panel { margin-left: 0; }
}

/* Legal pages (Terms of Service etc., components/page-legal.njk): readable spacing between
   sections and paragraphs, and visible bullets. */
.sa-page-terms-body h2 { margin: 2rem 0 0.6rem; font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.sa-page-terms-body h2:first-child { margin-top: 0; }
.sa-page-terms-body p { margin: 0 0 0.85rem; }
.sa-page-terms-body ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 0.85rem; }
.sa-page-terms-body li { margin: 0.35rem 0; padding-left: 0.2rem; }
.sa-page-terms-body li::marker { color: rgb(var(--cl-accent)); }

/* Product photos are shown whole ("Contain" in the theme settings) on white, the background of
   the packshots, so nothing is cropped and every card image is the same size. */
.sa-product-card-media img.object-product-image { background-color: #fff; }

/* Products page / category pages: filters button, product count and "Sort by" on one line above
   the products (components/page-products.njk). */
.ll-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.ll-results-search { flex: 1 1 16rem; max-width: 26rem; }
.ll-results-count { margin: 0 0 0 auto; white-space: nowrap; }

/* Product cards in a grid line up whatever their content: every card in a row has the same
   height, and the image / title / price-row sections line up across the row, so a longer price
   (or a range, or a struck-through old price) never makes one card stick out.
   Fallback: equal-height cards with the price row pushed to the bottom. */
:is(.sa-products-items, .sa-page-products-items).grid > * {
  display: flex;
  flex-direction: column;
}
:is(.sa-products-items, .sa-page-products-items).grid > * > .sa-product-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
:is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
:is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > :first-child { margin-bottom: 0.75rem; }
:is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > .border-t { margin-top: auto; }
/* Modern browsers: each card is a 3-row subgrid of its grid row (image, title, price row), so the
   tallest section in a row sets that section's height for every card in the row.
   The grid's row gap is moved to a bottom margin on each card: a subgrid would otherwise pull its
   image/title/price sections into the gaps between its own rows, adding empty space inside cards. */
@supports (grid-template-rows: subgrid) and selector(:has(*)) {
  :is(.sa-products-items, .sa-page-products-items).grid:has(> * > .sa-product-card--flat-divider) { row-gap: 0; }
  :is(.sa-products-items, .sa-page-products-items).grid > :has(> .sa-product-card--flat-divider) { margin-bottom: var(--grid-gap); }
  :is(.sa-products-items, .sa-page-products-items).grid > :has(> .sa-product-card--flat-divider),
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    /* One column exactly as wide as the card; without minmax(0, ...) the image's natural size
       (1500-2000px) would widen it, giving oversized, cropped images of different heights. */
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    row-gap: 0;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > * { min-width: 0; }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 { display: contents; }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > :first-child {
    margin-bottom: 0;
    padding: 1rem 1rem 0;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > .border-t {
    margin: 0.75rem 1rem 0;
    padding-bottom: 1rem;
    align-content: flex-start;
  }
  @media (max-width: 639.98px) {
    :is(.sa-products-items, .sa-page-products-items).grid > :has(> .sa-product-card--flat-divider) { margin-bottom: 0.75rem; }
    :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > :first-child { padding: 0.75rem 0.75rem 0; }
    :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > .border-t {
      margin: 0.5rem 0.75rem 0;
      padding-bottom: 0.75rem;
    }
  }
}

/* Phones: two compact cards per row. */
@media (max-width: 639.98px) {
  .sa-products-items.grid,
  .sa-page-products-items.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 {
    padding: 0.75rem;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card-title {
    font-size: 0.85rem;
    line-height: 1.2rem;
  }
  /* Stock + price stacked instead of side by side, tighter divider. */
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > .border-t {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card--flat-divider > .p-4 > .border-t > .text-right {
    margin-left: 0;
    text-align: left;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card-stock { font-size: 0.72rem; }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card-stock + span { font-size: 0.68rem; }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card-price {
    font-size: 0.9rem;
    white-space: normal;
  }
  :is(.sa-products-items, .sa-page-products-items).grid .sa-product-card-price-slash { font-size: 0.68rem; }
  /* Sort dropdown fits next to the search / count on small screens. */
  .ll-toolbar { gap: 0.6rem; }
  .ll-toolbar-search { flex-basis: 100%; max-width: none; }
  .ll-sort-select { min-width: 0; }
  /* Products page bar: search on its own full-width line, then filters / count / sort. */
  .ll-results-search { order: -1; flex-basis: 100%; max-width: none; }
  .ll-results-bar .ll-sort-label { display: none; }
}


/* LarpLoot: random page backgrounds, one set per colour scheme. layouts/master.njk sets
   html[data-ll-dark="N"] / html[data-ll-light="N"] before first paint and loads the picked full-quality
   image for the scheme on screen into .ll-pagebg--dark / .ll-pagebg--light (originals in
   catalog\images\backgrounds). Positions keep each image's detail in view.
   Not ".ll-bg": that class is set on <html> for the Bulgarian version. */
.ll-pagebg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .6s ease;
}
html[data-scheme="dark"] .ll-pagebg--dark,
html[data-scheme="light"] .ll-pagebg--light { display: block; }
.ll-pagebg.ll-pagebg-on { opacity: 1; }
.ll-pagebg.ll-pagebg-instant { transition: none; }
@media (prefers-reduced-motion: reduce) { .ll-pagebg { transition: none; } }
html[data-ll-dark] body { background-color: transparent; }
html[data-ll-dark="1"] .ll-pagebg--dark { background-position: center bottom; }
html[data-ll-dark="2"] .ll-pagebg--dark { background-position: 25% center; }
html[data-ll-dark="3"] .ll-pagebg--dark { background-position: right center; }
html[data-ll-dark="4"] .ll-pagebg--dark { background-position: center; }
html[data-ll-dark="5"] .ll-pagebg--dark { background-position: right bottom; }
html[data-ll-dark="6"] .ll-pagebg--dark { background-position: center; }
html[data-ll-dark="7"] .ll-pagebg--dark { background-position: center; }
html[data-ll-light="1"] .ll-pagebg--light { background-position: right bottom; }
html[data-ll-light="2"] .ll-pagebg--light { background-position: center; }
html[data-ll-light="3"] .ll-pagebg--light { background-position: left bottom; }
html[data-ll-light="4"] .ll-pagebg--light { background-position: center; }
html[data-ll-light="5"] .ll-pagebg--light { background-position: right bottom; }
html[data-ll-light="6"] .ll-pagebg--light { background-position: right center; }
html[data-ll-light="7"] .ll-pagebg--light { background-position: right top; }
html[data-ll-light="8"] .ll-pagebg--light { background-position: left bottom; }
html[data-ll-light="9"] .ll-pagebg--light { background-position: center bottom; }
html[data-ll-light="10"] .ll-pagebg--light { background-position: center; }
@media (max-width: 767px) {
  html[data-ll-dark="1"] .ll-pagebg--dark { background-position: 12% bottom; }
  html[data-ll-dark="2"] .ll-pagebg--dark { background-position: 70% center; }
  html[data-ll-dark="3"] .ll-pagebg--dark { background-position: 92% center; }
  html[data-ll-dark="4"] .ll-pagebg--dark { background-position: 4% center; }
  html[data-ll-dark="6"] .ll-pagebg--dark { background-position: left center; }
  html[data-ll-dark="7"] .ll-pagebg--dark { background-position: left center; }
  html[data-ll-light="2"] .ll-pagebg--light { background-position: left bottom; }
  html[data-ll-light="4"] .ll-pagebg--light { background-position: left center; }
  html[data-ll-light="9"] .ll-pagebg--light { background-position: 85% bottom; }
  html[data-ll-light="10"] .ll-pagebg--light { background-position: left center; }
}

/* LarpLoot: free-delivery progress (snippets/ll-delivery.njk, snippets/ll-freeship-popup.njk). */
.ll-fs-bar { height: .5rem; border-radius: 9999px; background-color: rgba(var(--cl-accent), .18); overflow: hidden; }
.ll-fs-fill { height: 100%; border-radius: inherit; background-color: rgb(var(--cl-accent)); transition: width .7s cubic-bezier(.22, 1, .36, 1), background-color .3s ease; }
.ll-fs.is-free .ll-fs-fill, .ll-fs-popup.is-free .ll-fs-fill { background-color: rgb(var(--cl-success)); }
.ll-fs-popup.is-free { border-color: rgba(var(--cl-success), .55); }
.ll-fs-popup { right: 1rem; bottom: 1rem; width: 24rem; max-width: calc(100vw - 2rem); }
.ll-fs-popup button.flex-1 { white-space: nowrap; }
@media (max-width: 639px) { .ll-fs-popup { left: 1rem; right: 1rem; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .ll-fs-fill { transition: none; } }