/* Vaikų krautuvė: category (product listing) page */

.cat { --sidebar-w: 236px; /* narrower filter column (Armandas 2026-10-28; was 280px) */ --sticky-top: calc(var(--cat-header-h, 128px) + 20px); }
/* Override: shared reset only covers <ul>; breadcrumbs here are an <ol> */
.cat .crumbs { margin: 0; padding-left: 0; list-style: none; }
/* Override: shared hidden toast (translate 140%) still peeks above the viewport bottom when empty */
.toast { transform: translate(-50%, calc(100% + 40px)); }

/* ---------- Category header ---------- */
.cat-head { padding-block: 4px 24px; }
.cat-head__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.cat-head .h1 { font-size: clamp(34px, 3vw, 44px); }
.cat-head__count { font-size: 15px; font-weight: 650; color: var(--c-muted); }
.cat-intro p { max-width: 64ch; color: var(--c-navy-soft); }
.cat-intro__more { display: none; margin-top: 6px; padding: 4px 0; border: 0; background: none; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Subcategory quick links ---------- */

/* ---------- Popular searches ---------- */

/* ---------- Layout ---------- */
.cat-layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: var(--section-y); }

/* ---------- Filters (desktop sidebar) ---------- */
.filters { position: sticky; top: var(--sticky-top); max-height: calc(100vh - var(--sticky-top) - 16px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent; padding-right: 6px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--c-line-strong); }
.filters__head .icon-btn { display: none; }
.filters__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.filters__foot { display: none; }

.fgroup { border: 0; margin: 0; padding: 0; border-bottom: 1px solid var(--c-line); }
.fgroup summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 700; cursor: pointer; list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .icon { transition: transform .2s var(--ease); color: var(--c-muted); }
.fgroup[open] summary .icon { transform: rotate(180deg); }
.fgroup__content { padding-bottom: 18px; }
.fgroup--flat { display: grid; gap: 4px; padding-block: 14px; }

.checks { display: grid; gap: 2px; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input, .switch input, .swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check::before { content: ""; grid-column: 1; grid-row: 1; width: 20px; height: 20px; border-radius: 6px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.check > span:first-of-type { grid-column: 2; grid-row: 1; }
.check:hover::before { box-shadow: inset 0 0 0 1.5px var(--c-navy); }
.check:has(input:checked)::before { background: var(--c-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: none; }
.check:has(input:checked) > span:first-of-type { font-weight: 650; }
.check:has(input:focus-visible)::before, .switch:has(input:focus-visible) .switch__track, .swatch:has(input:focus-visible) .swatch__dot { outline: 2px solid var(--c-tomato); outline-offset: 3px; }
.fcount { font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.check .fcount { grid-column: 3; }

/* Price range */
.price-range { position: relative; height: 4px; margin: 10px 10px 22px; border-radius: 4px; background: var(--c-line); }
.price-range__fill { position: absolute; top: 0; bottom: 0; left: calc(var(--min) * 1%); right: calc(100% - var(--max) * 1%); border-radius: inherit; background: var(--c-navy); }
.price-range__fill::before, .price-range__fill::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--c-white); box-shadow: inset 0 0 0 2px var(--c-navy), var(--shadow); transform: translate(-50%, -50%); }
.price-range__fill::before { left: 0; }
.price-range__fill::after { left: 100%; }
.price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.price-inputs__dash { color: var(--c-muted); }
.price-input { position: relative; display: block; }
.price-input input { width: 100%; height: 44px; padding: 0 30px 0 14px; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-s); background: var(--c-white); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.price-input input::-webkit-outer-spin-button, .price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input input:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 4px rgba(31, 42, 68, .08); }
.price-input > span:last-child { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--c-muted); pointer-events: none; }

/* Switch toggles */
.switch { display: flex; align-items: center; gap: 12px; min-height: 42px; font-size: 15px; font-weight: 600; cursor: pointer; }
.switch .fcount { margin-left: auto; font-weight: 450; }
.switch__track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--c-line-strong); transition: background-color .2s var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-white); box-shadow: 0 1px 3px rgba(31, 42, 68, .2); transition: transform .2s var(--ease); }
.switch:has(input:checked) .switch__track { background: var(--c-sage); }
.switch:has(input:checked) .switch__track::after { transform: translateX(16px); }

/* Brand search + show more */
.fsearch { position: relative; display: block; margin-bottom: 8px; }
.fsearch .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.fsearch input { width: 100%; height: 42px; padding: 0 12px 0 38px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-white); font-size: 15px; }
.fsearch input:focus { outline: none; border-color: var(--c-navy); }
[data-brand-list]:not(.is-expanded) .is-extra { display: none; }
.fempty { padding: 8px 0; font-size: 15px; color: var(--c-muted); }
.fmore { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 6px 0; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
.fmore[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* Colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: block; cursor: pointer; }
.swatch__dot { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .12); transition: box-shadow .15s var(--ease); }
.swatch__dot--light { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.swatch__dot--multi { background: conic-gradient(#D9483B, #F4C443, #5E9C6E, #4A78C2, #EFA3B4, #D9483B); }
.swatch:hover .swatch__dot { box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .12), 0 0 0 2px var(--c-cream), 0 0 0 3.5px var(--c-line-strong); }
.swatch:has(input:checked) .swatch__dot { box-shadow: inset 0 0 0 1px rgba(31, 42, 68, .12), 0 0 0 2px var(--c-cream), 0 0 0 4px var(--c-navy); }

/* ---------- Results ---------- */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.active-filters[hidden] { display: none; }
.active-filters__list { display: flex; flex-wrap: wrap; gap: 8px; }
.achip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: var(--c-navy); color: var(--c-white); font-size: 14px; font-weight: 650; transition: background-color .2s var(--ease); }
.achip:hover { background: var(--c-tomato); }
.achip .icon { width: 16px; height: 16px; }
.active-filters__clear { padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.active-filters__clear:hover { color: var(--c-tomato-dark); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.toolbar__count { font-size: 15px; color: var(--c-muted); }
.toolbar__count strong { color: var(--c-navy); font-weight: 750; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--c-muted); }
.select { position: relative; display: inline-flex; }
.select select { appearance: none; height: 44px; padding: 0 40px 0 16px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: var(--c-white); font-size: 15px; font-weight: 650; color: var(--c-navy); cursor: pointer; }
.select select:focus-visible { outline: 2px solid var(--c-tomato); outline-offset: 2px; }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--c-navy); }
/* Styled dropdown built by category.js over the native select (the select stays hidden as the source of truth) */
.select.is-enhanced > select, .select.is-enhanced > .icon { display: none; }
.select__btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 18px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: var(--c-white); font-size: 15px; font-weight: 650; color: var(--c-navy); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.select__btn:hover, .select__btn[aria-expanded="true"] { border-color: var(--c-navy); }
.select__btn[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(31, 42, 68, .08); }
.select__btn:focus-visible { outline: 2px solid var(--c-tomato); outline-offset: 2px; }
.select .select__btn .icon { position: static; transform: none; transition: transform .2s var(--ease); }
.select .select__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.select__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 100%; width: max-content; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow-lift); transform-origin: top right; animation: select-in .16s var(--ease); }
.select__menu:focus { outline: none; }
.select__menu[hidden] { display: none; }
.select__opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px 0 12px; border-radius: var(--radius-s); font-size: 15px; font-weight: 600; color: var(--c-navy-soft); white-space: nowrap; cursor: pointer; transition: background-color .12s var(--ease), color .12s var(--ease); }
.select .select__opt .icon { position: static; transform: none; flex: none; width: 16px; height: 16px; color: var(--c-tomato); visibility: hidden; }
.select__opt.is-active { background: var(--c-cream); color: var(--c-navy); }
.select__opt[aria-selected="true"] { font-weight: 750; color: var(--c-navy); }
.select .select__opt[aria-selected="true"] .icon { visibility: visible; }
@keyframes select-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .select__menu { animation: none; } }

/* Grid: 3 columns beside the sidebar (overrides shared .products 4-col) */
.products--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.products--cat .card__media { background: var(--c-sand); }
.products--cat .stock { margin-top: -2px; }

/* In-grid promo row */
.promo-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius); background: var(--c-sage-tint); }
.promo-row__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-white); color: var(--c-sage); }
.promo-row__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.4; }
.promo-row__text strong { font-size: 17px; }
.promo-row__text > span { font-size: 15px; color: var(--c-navy-soft); }
.promo-row__link { font-size: 15px; color: var(--c-sage); }

/* Load more + pagination */
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 56px; }
.more__text { font-size: 15px; color: var(--c-muted); }
.more__bar { width: 220px; height: 4px; border-radius: 4px; background: var(--c-line); overflow: hidden; }
.more__bar > span { display: block; height: 100%; background: var(--c-navy); }
.more .btn { margin-top: 8px; min-width: 260px; }

.pager { margin-top: 32px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pager__link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease); }
a.pager__link:hover { background: var(--c-sand); }
.pager__link.is-current { background: var(--c-navy); color: var(--c-white); }
.pager__gap { padding: 0 4px; color: var(--c-muted); }
.pager__next { margin-left: 6px; padding: 0 18px; box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.pager__next:hover { box-shadow: inset 0 0 0 1.5px var(--c-navy); }

/* ---------- Buying guide + FAQ ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.guide__text { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.guide__text h2 { margin-bottom: 4px; }
.guide__lead { font-size: 17px; color: var(--c-navy-soft); }
.guide__body { display: flex; flex-direction: column; gap: 14px; }
.guide-band { background: var(--c-sand); border-top: 1px solid var(--c-line); }
.guide-bar { margin: 0; }
.guide-bar button { display: inline-flex; align-items: center; gap: 12px; padding: 22px 0; border: 0; background: none; font-family: var(--font-sans); font-size: 18px; font-weight: 700; color: var(--c-navy); }
.guide-bar button:hover span:first-child { text-decoration: underline; text-decoration-color: var(--c-tomato); text-underline-offset: 4px; }
.guide-bar__i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--c-navy); color: var(--c-white); font-size: 15px; font-weight: 800; line-height: 1; transition: background-color .2s var(--ease); }
.guide-bar button[aria-expanded="true"] .guide-bar__i { background: var(--c-tomato); }
.guide-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.guide-panel > .guide { overflow: hidden; min-height: 0; }
.guide-panel.is-open { grid-template-rows: 1fr; }
.guide-panel.is-open > .guide { padding-bottom: 56px; }
.guide__text h3 { margin-top: 14px; font-size: 19px; font-weight: 700; }
.guide__text p { color: var(--c-navy-soft); }
.guide__text a { color: var(--c-navy); font-weight: 650; text-decoration: underline; text-decoration-color: var(--c-tomato); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.guide__text a:hover { color: var(--c-tomato-dark); }

/* FAQ (same look as homepage; home.css is not loaded here) */
.faq { padding: 28px 32px 12px; border-radius: var(--radius-l); background: var(--c-white); }
.faq .h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding-bottom: 18px; color: var(--c-navy-soft); }

/* ---------- Mobile sticky bar ---------- */
.mbar { display: none; }
.filters-scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cat { --sidebar-w: 220px; }
  .cat-layout { gap: 32px; }
  .subcats__list { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 20px; }
}
/* Tablets + phones (≤1100, same breakpoint as the compact header): filters become a slide-in drawer
   opened from a sticky „Filtrai / Rikiuoti“ bar that sits right under the sticky header */
@media (max-width: 1100px) {
  .cat-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 40px; }

  /* Sticky filter/sort bar under the header */
  .mbar { display: block; position: sticky; top: var(--cat-header-h, 124px); z-index: 40; background: var(--c-cream); border-block: 1px solid var(--c-line); }
  .mbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding-block: 10px; }
  .mbar__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); font-size: 16px; font-weight: 700; color: var(--c-navy); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  @media (min-width: 761px) { .mbar__inner { grid-template-columns: repeat(2, minmax(0, 260px)); } }
  .mbar__btn:first-child { background: var(--c-navy); color: var(--c-white); box-shadow: none; }
  .mbar__count { font-weight: 600; opacity: .85; }
  .mbar__count:empty { display: none; }
  .mbar__sort select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
  .mbar__sort:has(select:focus-visible) { outline: 2px solid var(--c-tomato); outline-offset: 2px; }

  .cat-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .products--cat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; }
  /* sort lives in the sticky bar when it exists; pages without it (search results) keep the toolbar select */
  .cat:has(.mbar) .toolbar__sort { display: none; }
  .toolbar { min-height: 0; margin-bottom: 20px; }

  /* Active filter chips: one swipeable row + „Išvalyti viską“ */
  .active-filters { flex-wrap: nowrap; gap: 12px; }
  .active-filters__list { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); padding: 2px 20px 2px var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .active-filters__list::-webkit-scrollbar { display: none; }
  .active-filters__list li { flex: none; }
  .achip { min-height: 44px; padding: 0 12px 0 16px; white-space: nowrap; }
  .active-filters__clear { flex: none; min-height: 44px; }

  /* Filter drawer */
  .filters-scrim { display: block; position: fixed; inset: 0; z-index: 155; background: rgba(31, 42, 68, .45); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
  .filters-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .filters { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(100%, 420px); max-height: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--c-cream); box-shadow: var(--shadow-lift); transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters__head { flex: none; height: 64px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--c-line); }
  .filters__head .icon-btn { display: inline-flex; min-width: 48px; min-height: 48px; justify-content: center; }
  .filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 24px; }
  .filters__foot { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--c-white); border-top: 1px solid var(--c-line); }
  .filters__foot .btn { min-height: 52px; padding: 0 20px; }
  /* bigger touch rows inside the drawer */
  .filters .check { min-height: 46px; font-size: 16px; }
  .filters .switch { min-height: 48px; font-size: 16px; }
  .filters .swatches { gap: 12px; }
  .filters .swatch__dot { width: 40px; height: 40px; }
  .filters .fsearch input { height: 46px; font-size: 16px; }
  .filters .fmore { min-height: 44px; }
}

@media (max-width: 900px) {
  .cat-head { padding-bottom: 24px; gap: 12px; }
  .cat-intro p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-intro.is-open p { display: block; }
  .cat-intro__more { display: inline-block; }

  /* Horizontal-scroll rows */
  .subcats { padding-bottom: 20px; }
  .subcats__list, .popular__chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .subcats__list { gap: 14px; padding-top: 20px; scroll-snap-type: x proximity; }
  .subcats__list::-webkit-scrollbar, .popular__chips::-webkit-scrollbar { display: none; }
  .subcats__list li { flex: 0 0 84px; scroll-snap-align: start; }
  .subcat { font-size: 14px; gap: 8px; }
  .subcat__img { width: 72px; height: 72px; }
  .popular { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 20px; }
  .popular__chips li { flex: none; }
}

@media (max-width: 760px) {
  .products--cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .promo-row { flex-wrap: wrap; gap: 12px 14px; padding: 16px; }
  .promo-row__icon { width: 42px; height: 42px; }
  .promo-row__text { flex: 1 1 0; }
  .promo-row__text strong { font-size: 16px; }
  .promo-row__link { flex-basis: 100%; padding-left: 56px; }
  .more { margin-top: 40px; }
  .more .btn { width: 100%; min-width: 0; min-height: 52px; }
  .pager ul { gap: 4px; }
  .pager__link { min-width: 44px; height: 44px; padding: 0 8px; }
  .pager__next { padding: 0 16px; margin-left: 4px; }
  .toolbar { gap: 12px; margin-bottom: 16px; padding-bottom: 10px; }
  .toolbar__count { min-width: 0; line-height: 1.35; }
  .toolbar__sort > span:first-child { display: none; } /* "Rikiuoti:": the select itself says it */
  .guide-bar button { width: 100%; justify-content: space-between; min-height: 64px; padding-block: 16px; font-size: 17px; text-align: left; }
  .guide-bar__i { flex: none; width: 30px; height: 30px; }
  .guide__lead { font-size: 16px; }
  .guide-panel.is-open > .guide { padding-bottom: 40px; }
  .faq { padding: 20px 20px 4px; }
  .faq summary { min-height: 52px; padding: 14px 0; }
}

/* Related categories (interlinking, ≤ 8 links) */
.related-cats { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.related-cats__title { margin-bottom: 10px; font-weight: 800; }
.related-cats .chip { min-height: 38px; font-size: 14px; }

/* ---------- Desktop: filter column open / closed („Filtrai“ button in the toolbar) ----------
   Closed (default, no filters applied): no sidebar, 4 products per row. Open: sidebar + 3 per row. */
.toolbar__start { display: flex; align-items: center; gap: 16px; min-width: 0; }
.toolbar__filters { display: none; }
@media (min-width: 1101px) {
  .cat-layout .toolbar__filters { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--c-line-strong); border-radius: 999px; background: var(--c-white); font-size: 15px; font-weight: 700; color: var(--c-navy); white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
  .cat-layout .toolbar__filters:hover { border-color: var(--c-navy); }
  .cat-layout .toolbar__filters[aria-expanded="true"] { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-white); }
  .cat-layout .toolbar__filters:focus-visible { outline: 2px solid var(--c-tomato); outline-offset: 2px; }
  .toolbar__filters-count { font-weight: 600; opacity: .85; }
  .toolbar__filters-count:empty { display: none; }
  .cat-layout.is-filters-closed { grid-template-columns: minmax(0, 1fr); }
  .cat-layout.is-filters-closed > .filters { display: none; }
  .cat-layout.is-filters-closed .products--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Full-width desktop: 5 per row with filters closed, 4 with filters open (60 per page = full rows), tighter cards */
@media (min-width: 1280px) {
  .cat-layout .products--cat { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
  .cat-layout.is-filters-closed .products--cat { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-layout .products--cat .card__body { padding-inline: 14px; }
  .cat-layout .products--cat .card__title { font-size: 15px; }
}

/* Phones / tablets: the sticky „Filtrai / Rikiuoti“ bar hides while scrolling down, returns on scroll up (category.js) */
@media (max-width: 1100px) {
  .mbar { transition: transform .25s var(--ease); }
  .mbar.is-tucked { transform: translateY(-100%); pointer-events: none; }
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  .mbar { transition: none; }
}

/* Toolbar quick picks (budgets, recipients): one row between the count and the sort, scrolls sideways when narrow */
.toolbar__quick { flex: 1 1 auto; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
.toolbar__quick::-webkit-scrollbar { display: none; }
.toolbar__quick ul { display: flex; align-items: center; gap: 8px; width: max-content; margin: 0; padding: 2px 32px 2px 2px; list-style: none; }
.chip--quick { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; white-space: nowrap; font-size: 14px; }
.chip--quick.is-active { background: var(--c-navy); color: var(--c-white); box-shadow: none; }
.toolbar__quick-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--c-line-strong); }
@media (max-width: 1100px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar__quick { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); }
}

/* Desktop: the toolbar stays under the header like the phone bar; slides away on scroll down, back on scroll up (category.js) */
@media (min-width: 1101px) {
  .cat-layout .toolbar { position: sticky; top: var(--cat-header-h, 124px); z-index: 30; margin-top: -12px; padding-top: 12px; background: var(--c-cream); transition: transform .25s var(--ease); }
  .cat-layout .toolbar.is-tucked { transform: translateY(-100%); pointer-events: none; }
  .cat-layout .toolbar.is-tucked .select__menu { display: none; }
}
@media (min-width: 1101px) and (prefers-reduced-motion: reduce) {
  .cat-layout .toolbar { transition: none; }
}

/* Toolbar: "Filtrai", the count and the sort keep their size; only the quick picks shrink and scroll */
.toolbar__start, .toolbar__sort { flex: none; }
.toolbar__count { white-space: nowrap; }
/* In-place update (category.js goTo): the list dims while the filtered page loads */
.results.is-loading .products, .results.is-loading .fempty { opacity: .45; pointer-events: none; transition: opacity .15s var(--ease); }

/* Colour filter: one named swatch per colour family, two columns */
.swatches--named { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.swatch--named { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 4px; border-radius: var(--radius-s); font-size: 15px; color: var(--c-navy-soft); }
.swatch--named:hover { color: var(--c-navy); }
.swatch--named .swatch__dot { flex: none; width: 24px; height: 24px; }
.swatch--named:has(input:checked) { color: var(--c-navy); font-weight: 700; }
.swatch__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* Logged-in admin bar: the filter drawer starts below it (≤1100 px, where filters slide in). */
@media (max-width: 1100px) {
  .admin-bar .filters, .admin-bar .filters-scrim { top: var(--wp-admin--admin-bar--height, 0px); }
}

/* Mobile "Rikiuoti": button shows the current order, opens a bottom sheet (2026-10-28, replaced the native select). */
.mbar__sort-text { display: grid; line-height: 1.1; text-align: left; }
.mbar__sort-text small { font-size: 12px; font-weight: 600; color: var(--c-muted); }
.mbar__sort-text small:empty { display: none; }
.ssheet { position: fixed; inset: 0; z-index: 210; }
.ssheet[hidden] { display: none; }
.ssheet__scrim { position: absolute; inset: 0; background: rgba(31, 42, 68, .45); animation: ssheet-fade .2s var(--ease); }
.ssheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--c-cream); box-shadow: var(--shadow-lift); animation: ssheet-up .25s var(--ease); }
.ssheet__panel::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: var(--c-line-strong); }
.ssheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--c-line); }
.ssheet__title { font-size: 18px; font-weight: 750; }
.ssheet__list { display: grid; gap: 6px; padding-top: 10px; }
.ssheet__opt { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--c-white); box-shadow: 0 0 0 1px var(--c-line); font: inherit; font-size: 16px; font-weight: 600; color: var(--c-navy); cursor: pointer; text-align: left; }
.ssheet__opt .icon { visibility: hidden; color: var(--c-tomato); }
.ssheet__opt.is-on { box-shadow: 0 0 0 2px var(--c-tomato); font-weight: 750; }
.ssheet__opt.is-on .icon { visibility: visible; }
@keyframes ssheet-up { from { transform: translateY(100%); } }
@keyframes ssheet-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ssheet__panel, .ssheet__scrim { animation: none; } }
@media (min-width: 761px) { .ssheet__panel { left: 50%; right: auto; width: 480px; transform: translateX(-50%); animation: none; } }
