/*
 * Konteinerid24 — own layout/UI styles.
 * Loaded on top of theme.css (Oxygen baseline). Kept small on purpose:
 * Oxygen-baseline gives the visual look; this file adds layout + new
 * components that didn't exist before (modal, mobile menu, etc.).
 */

:root {
  --c-text: #1a1a1a;
  --c-muted: #6b7280;
  --c-bg: #ffffff;
  --c-line: #e5e7eb;
  --c-accent: #4281a4;
  --c-accent-d: #2c5d7a;
  --c-ok: #16a34a;
  --c-warn: #f59e0b;
  --c-err: #dc2626;
  --r-sm: 6px;
  --r-md: 10px;
  --w-wide: 1320px;
  --gap: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

/* ── Resets and base ─────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-size: 16px; line-height: 1.55; color: var(--c-text); background: var(--c-bg); }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; }
.container { max-width: var(--w-wide); margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────── */
.site-header { border-bottom: 1px solid var(--c-line); background: #fff; }
.site-header__inner {
  max-width: var(--w-wide); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 24px;
}
.site-logo__text { font-weight: 700; font-size: 20px; color: var(--c-text); }
.site-nav { flex: 1; }
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.site-nav__list a { color: var(--c-text); font-weight: 500; }
.site-nav__list .menu-item.current-menu-item a { color: var(--c-accent); }

/* Language switcher */
.lang-switch { display: flex; gap: 4px; }
.lang-switch a, .lang-switch .lang-current {
  display: inline-block; padding: 4px 8px; font-size: 13px; text-transform: uppercase;
  border-radius: var(--r-sm); border: 1px solid transparent; color: var(--c-muted);
}
.lang-switch .lang-current { background: var(--c-accent); color: #fff; }
.lang-switch a:hover { background: var(--c-line); text-decoration: none; }

/* Burger (hidden on desktop) */
.site-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.site-burger span {
  display: block; width: 24px; height: 2px; background: var(--c-text);
  margin: 5px 0; transition: transform .2s;
}

@media (max-width: 900px) {
  .site-burger { display: block; }
  .site-nav { display: none; }
  body.menu-open .site-nav { display: block; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.06); z-index: 100; }
  body.menu-open .site-nav__list { flex-direction: column; gap: 10px; }
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--r-md);
  border: 1px solid var(--c-line); background: #fff; color: var(--c-text);
  font-weight: 600; cursor: pointer; transition: transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-primary:hover { background: var(--c-accent-d); border-color: var(--c-accent-d); }
.btn-lg { padding: 14px 28px; font-size: 17px; }

/* ── Catalog layout ──────────────────────────────── */
.catalog-layout {
  display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px;
  grid-template-columns: 260px 1fr;
  grid-template-areas:
    "header  header"
    "filters results"
    "pager   pager";
}
.catalog-header        { grid-area: header; }
.catalog-filters-area  { grid-area: filters; }
.catalog-results       { grid-area: results; }
.catalog-pagination    { grid-area: pager; }
.catalog-title { font-size: 28px; margin: 0 0 18px; }

.catalog-filters {
  background: #fafafa; border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: 18px; align-self: start;
}
.catalog-filters .facet { margin-bottom: 18px; }
.catalog-filters .facet:last-child { margin-bottom: 0; }
.catalog-filters .facet__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #1a1a1a;
  padding-bottom: 4px;
  border-bottom: 1px solid #e6e9ec;
}

@media (max-width: 800px) {
  /* Layout with side padding for breathing room */
  .catalog-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "header" "filters" "results" "pager";
    padding-left: 22px !important;
    padding-right: 22px !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  /* Results / grid: zero internal padding, full width inside layout */
  .catalog-results,
  .oxy-dynamic-list.repeater-grid.catalog-grid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .oxy-dynamic-list.repeater-grid.catalog-grid {
    gap: 14px !important;
    grid-column-gap: 0 !important;
    grid-row-gap: 14px !important;
  }
  /* Card full width inside the padded layout (so it has ~12px margin from screen edges) */
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
}

/* ── Container grid + cards ─────────────────────── */
.catalog-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.container-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.container-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.07); transform: translateY(-2px); }
.container-card__link { display: block; color: inherit; padding: 0; }
.container-card__link:hover { text-decoration: none; }
.container-card__photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5; }
.container-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.container-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--c-ok); color: #fff; padding: 3px 8px;
  font-size: 12px; font-weight: 600; border-radius: var(--r-sm);
}
.container-card.avail-out-of-stock .container-card__badge { background: var(--c-err); }
.container-card.avail-booked .container-card__badge { background: var(--c-warn); }
.container-card.avail-on-order .container-card__badge { background: var(--c-accent); }
.container-card__title { font-size: 16px; margin: 12px 14px 6px; min-height: 2.6em; }
.container-card__meta {
  list-style: none; margin: 0; padding: 8px 14px 14px;
  display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted);
}
.container-card__meta .price { color: var(--c-text); font-weight: 700; font-size: 15px; }
.container-card__meta .rent { color: var(--c-accent); font-weight: 600; }

/* ── Single product (compact) ─────────────────────── */
.container-single { padding: 18px 16px 48px; max-width: var(--w-wide); margin: 0 auto; }
.breadcrumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 16px; }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }
.breadcrumbs .current { color: var(--c-text); }

/* 2-column layout: main (gallery + all sections) + sticky summary on right */
.single-layout {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 760px) minmax(280px, 340px);
  justify-content: center;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 1150px) {
  .single-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    justify-content: start;
  }
}
@media (max-width: 800px) {
  .single-layout { grid-template-columns: 1fr; }
}
.single-main { min-width: 0; }
.single-summary-col {
  min-width: 0;
  align-self: start;
  position: sticky;
  top: 16px;
}

/* Gallery — main is 4:3, thumbs are small squares */
.single-gallery {
  display: grid; gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  max-width: 760px;
}
.single-gallery__item.is-main {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.single-gallery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  cursor: zoom-in;
  border: 1px solid #e6e9ec;
  transition: transform .15s, box-shadow .15s;
}
.single-gallery__item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.single-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 540px) {
  .single-gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Lightbox modal */
.k24-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.88);
  padding: 20px;
  cursor: zoom-out;
}
.k24-lightbox[hidden] { display: none; }
.k24-lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0,0,0,.4);
}
.k24-lightbox__close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.18);
  border: 0; color: #fff; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s;
}
.k24-lightbox__close:hover { background: rgba(255,255,255,.32); }
body.k24-lightbox-open { overflow: hidden; }

/* Lightbox prev/next nav */
.k24-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  border: 0;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s;
  user-select: none;
}
.k24-lightbox__nav:hover { background: rgba(255,255,255,.32); }
.k24-lightbox__nav--prev { left: 20px; }
.k24-lightbox__nav--next { right: 20px; }
.k24-lightbox--single .k24-lightbox__nav { display: none; }

.k24-lightbox__counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  letter-spacing: .04em;
  background: rgba(0,0,0,.35);
  padding: 4px 12px;
  border-radius: 12px;
}
.k24-lightbox--single .k24-lightbox__counter { display: none; }
@media (max-width: 560px) {
  .k24-lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .k24-lightbox__nav--prev { left: 8px; }
  .k24-lightbox__nav--next { right: 8px; }
}

/* Right summary (sticky behavior is on .single-right wrapper now) */
.single-summary {
  background: #fafafa; border: 1px solid #e6e9ec; border-radius: 10px;
  padding: 18px;
}
.single-title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
.single-pid { color: var(--c-muted); margin: 0 0 14px; font-size: 13px; }
.single-pid code { background: #fff; border: 1px solid #e6e9ec; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.single-availability { margin: 0 0 14px; }
.single-facts { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; }
.single-facts li { padding: 5px 0; border-bottom: 1px dashed #e6e9ec; }
.single-facts li:last-child { border-bottom: 0; }
.single-facts strong { color: var(--c-muted); font-weight: 500; }
.single-installment { font-size: 13px; color: var(--c-muted); margin: 12px 0 4px; }
.single-installment strong { color: #1a1a1a; font-weight: 700; }
.single-rent { font-size: 14px; color: var(--c-accent); margin: 4px 0 12px; }
.single-rent .lbl { color: var(--c-muted); }
.single-rent strong { font-weight: 700; }
.single-price {
  margin: 12px 0 18px;
  padding-top: 14px;
  border-top: 1px solid #e6e9ec;
  font-size: 26px;
}
.single-price strong { font-weight: 800; color: #1a1a1a; }
.single-price .vat { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }
.single-cta { width: 100%; padding: 12px 18px; font-size: 15px; }

/* Below-gallery sections */
.single-section { margin-top: 28px; }
.single-section h2 { font-size: 18px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e6e9ec; }
.single-section .rich-text :first-child { margin-top: 0; }
.single-section .rich-text :last-child { margin-bottom: 0; }
.single-section .rich-text p { margin: 0 0 10px; }

.equipment-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 14px; }
.equipment-list li { padding: 4px 0; break-inside: avoid; }
.equipment-list li::before { content: '✓'; color: var(--c-accent); margin-right: 8px; font-weight: 700; }
@media (max-width: 540px) { .equipment-list { columns: 1; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #e6e9ec; }
.spec-table th { color: var(--c-muted); width: 45%; font-weight: 500; }

.dim-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dim-block h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.dim-block ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.dim-block li { padding: 3px 0; }
.dim-block .dim-key { color: var(--c-muted); margin-right: 6px; }
.dim-block .dim-val { font-weight: 600; }

/* ── Modal ─────────────────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative; background: #fff; padding: 32px;
  border-radius: var(--r-md); max-width: 520px; width: 92vw;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.modal__close {
  position: absolute; top: 8px; right: 8px; background: none; border: 0;
  font-size: 26px; cursor: pointer; line-height: 1; padding: 6px 10px;
  color: var(--c-muted);
}
.modal__close:hover { color: var(--c-text); }
.modal__subject { color: var(--c-muted); font-size: 14px; margin: -10px 0 20px; }
.modal h2 { margin: 0 0 16px; font-size: 20px; }
body.modal-open { overflow: hidden; }

/* ── Footer ────────────────────────────────────── */
.site-footer { background: #1a1a1a; color: #d4d4d4; margin-top: 60px; }
.site-footer__inner {
  max-width: var(--w-wide); margin: 0 auto; padding: 48px 16px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding: 4px 0; }
.footer-menu a { color: #d4d4d4; }
.footer-menu a:hover { color: #fff; }
.site-footer__bottom {
  border-top: 1px solid #333; padding: 16px;
  text-align: center; font-size: 13px; color: #8c8c8c;
}

/* ── Misc ───────────────────────────────────────── */
.section-title { font-size: 26px; margin: 0 0 18px; }
.error-page { padding: 80px 16px; text-align: center; }
.error-page h1 { font-size: 96px; margin: 0; color: var(--c-accent); }
.catalog-empty { color: var(--c-muted); padding: 40px 0; text-align: center; }

/* ── Catalog grid — fixed 3 columns desktop, 2 tablet, 1 phone ────── */
.oxy-dynamic-list.repeater-grid.catalog-grid {
  display: grid !important;
  gap: 24px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-column-gap: 24px !important;
  grid-row-gap: 24px !important;
  /* When the result set has fewer rows, do NOT stretch tracks to fill
     the container — keep rows their natural height. */
  grid-auto-rows: max-content !important;
  align-content: start !important;
  align-items: start !important;
}
.oxy-dynamic-list.repeater-grid.catalog-grid .product-card {
  align-self: start;   /* card height = content; no vertical stretching */
}
@media (max-width: 991px) {
  .oxy-dynamic-list.repeater-grid.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 800px) {
  /* Single-column catalog grid */
  .oxy-dynamic-list.repeater-grid.catalog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* Force card and ALL descendants to full width with no shrink */
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card,
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card *:not(img):not(span):not(a) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex-basis: auto !important;
  }
  /* Card itself fully fills row */
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Photo block: explicit dimensions */
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card .product-cart__img-link-wrapper {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    min-height: 240px !important;
    display: block !important;
    position: relative;
  }
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card .product-cart__img-link-wrapper .ct-image {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
  }
  /* Info wrapper: full width with padding */
  .oxy-dynamic-list.repeater-grid.catalog-grid .product-card .product-cart__info-wrapper {
    width: 100% !important;
    padding: 14px !important;
  }
}

/* Oxygen utility classes (display-to-767 / display-from-768 etc.) lost
   their display rules during migration. Re-add them. */
.display-from-768       { display: inline-block; }
.display-to-767         { display: none; }
.display-from-768-to-992 { display: inline-block; }
@media (max-width: 767px) {
  .display-from-768       { display: none !important; }
  .display-to-767         { display: inline-block !important; }
  .display-from-768-to-992 { display: none !important; }
}
@media (max-width: 991px) and (min-width: 768px) {
  .display-from-768-to-992 { display: inline-block !important; }
  .display-from-768        { display: inline-block !important; }
}
@media (min-width: 992px) {
  .display-from-768-to-992 { display: none !important; }
  .display-from-768        { display: inline-block !important; }
  .display-to-767          { display: none !important; }
}
/* Floating mobile hamburger (positioned to sit on header vertically) */
.k24-mobile-burger {
  display: none;
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 50;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.k24-mobile-burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1a1a1a;
  margin: 4px auto;
  border-radius: 2px;
}
@media (max-width: 800px) {
  /* Make header relative so the absolute burger anchors to it */
  header#s-top-header { position: sticky; }
  .k24-mobile-burger {
    display: block !important;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 28px);
    right: 12px;
    z-index: 1200;
    background: #fff;
    border: 1px solid #dde4e7;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
  }
  /* Admin bar (logged-in users) pushes everything 32/46px down */
  body.admin-bar .k24-mobile-burger { top: calc(env(safe-area-inset-top, 0px) + 50px); }
  @media (max-width: 600px) {
    body.admin-bar .k24-mobile-burger { top: calc(env(safe-area-inset-top, 0px) + 60px); }
  }
  /* Hide ONLY the original Oxygen hamburger; keep the phone link visible
     and pull it closer to the logo so the hamburger has room on the right. */
  header#s-top-header .display-to-767 .showhide,
  header#s-top-header .display-to-767 .showhide-fix { display: none !important; }
  /* Phone link in left header column: hug the logo, keep its native style */
  header#s-top-header .header-phone-link.display-to-767 {
    display: inline-block !important;
    margin-left: 2px !important;
    white-space: nowrap;
  }
  /* Reduce gap inside the header-left flex container */
  header#s-top-header #_header_left-4-336 {
    gap: 6px !important;
    column-gap: 6px !important;
  }
  /* Hide right-side hamburger wrapper to free space for floating burger */
  header#s-top-header #_header_right-6-336 { display: none !important; }
}

/* Force ALL children inside mobile-flyout to render as block,
   static-position and full width. Oxygen had them hidden/floated
   off-screen — we need them visible inside the flyout. */
#mobile-flyout-wrapper *,
#mobile-flyout-wrapper .mobilenav--wrap,
#mobile-flyout-wrapper .mobilenav,
#mobile-flyout-wrapper .mobile-menu,
#mobile-flyout-wrapper .mobile-menu *,
#mobile-flyout-wrapper .mobile-language-switcher-wrapper {
  position: static !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  max-width: 100% !important;
  width: auto !important;
}
#mobile-flyout-wrapper .mobilenav--wrap,
#mobile-flyout-wrapper .mobilenav,
#mobile-flyout-wrapper .mobile-language-switcher-wrapper {
  display: block !important;
}
#mobile-flyout-wrapper .mobile-menu,
#mobile-flyout-wrapper .mobile-menu .sub-menu {
  display: block !important;
}
#mobile-flyout-wrapper .mobile-menu li { display: block !important; }
#mobile-flyout-wrapper .mobile-menu li a { display: block !important; }
#mobile-flyout-wrapper .mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
#mobile-flyout-wrapper .mobile-menu li {
  border-bottom: 1px solid #eee;
  padding: 0;
}
#mobile-flyout-wrapper .mobile-menu li a {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
}
#mobile-flyout-wrapper .mobile-menu li a:hover { background: #f5f5f5; }
#mobile-flyout-wrapper .mobile-menu .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fafafa;
}
#mobile-flyout-wrapper .mobile-menu .sub-menu li a {
  padding-left: 22px;
  font-size: 14px;
  color: #555;
}
#mobile-flyout-wrapper .mobile-language-switcher-wrapper {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

/* Hamburger button: force visibility with explicit colors */
.showhide,
.showhide-fix {
  display: inline-block !important;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  vertical-align: middle;
}
.showhide--inner {
  display: block !important;
  width: 24px;
  margin: 0 auto;
}
.showhide .ham1,
.showhide .ham2,
.showhide .ham3,
.showhide-fix .ham1,
.showhide-fix .ham2,
.showhide-fix .ham3 {
  display: block !important;
  width: 24px;
  height: 3px;
  background: #1a1a1a !important;
  margin: 5px 0;
  border-radius: 2px;
}
/* On the dark header background, use white hamburger */
.oxy-header .showhide .ham1, .oxy-header .showhide .ham2, .oxy-header .showhide .ham3,
.oxy-overlay-header .showhide .ham1, .oxy-overlay-header .showhide .ham2, .oxy-overlay-header .showhide .ham3 {
  background: #1a1a1a !important;
}

/* ── Mobile: sticky header + working hamburger + collapsible filters ─── */
@media (max-width: 800px) {
  /* Sticky header */
  header#s-top-header,
  .oxy-header-wrapper {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
  }

  /* Mobile flyout menu (hidden by default, shown when body has .k24-mm-open) */
  #mobile-flyout-wrapper {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    width: min(320px, 88vw) !important;
    background: #fff !important;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1100;
    padding: 60px 22px 22px;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
  }
  body.k24-mm-open #mobile-flyout-wrapper {
    transform: translateX(0);
  }
  body.k24-mm-open::before {
    content: '';
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1099;
  }
  body.k24-mm-open { overflow: hidden; }
  .k24-mm-close {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.06); border: 0; cursor: pointer;
    font-size: 22px; line-height: 1;
    z-index: 1101;
  }
  body:not(.k24-mm-open) .k24-mm-close { display: none; }

  /* Collapsible catalog filters */
  .catalog-filters-toggle {
    display: block !important;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fafafa;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    position: relative;
  }
  .catalog-filters-toggle::after {
    content: '▾';
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    transition: transform .15s;
  }
  body.k24-filters-open .catalog-filters-toggle::after { transform: translateY(-50%) rotate(180deg); }
  .catalog-filters {
    display: none !important;
  }
  body.k24-filters-open .catalog-filters {
    display: block !important;
  }
}
/* Show toggle button only on mobile */
.catalog-filters-toggle { display: none; }

/* ── Card info-footer layout (left meta + right price side-by-side) ── */
.product-card {
  width: 100% !important;
  background: #fff;
  border: 1px solid #e6e9ec;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .product-cart__img-link-wrapper {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card .product-cart__img-link-wrapper .ct-image {
  width: 100%; height: 100%; object-fit: cover;
}

/* Footer is one stacked column — installment / rent / selling-price */
.product-cart__info-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  width: 100%;
  margin-top: 10px;
}
.pc-availability-and-intalment-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
/* Selling-price visually separated as the bottom "headline" line */
.product-cart__selling-price {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #eef0f2;
}

/* Whole-card clickability ─ "stretched-link" pattern.
   The overlay <a>::after positions against .product-card (the only
   positioned ancestor), so it has to stay static itself. */
.product-card { position: relative; }
.product-card .product-card__stretched-link {
  position: static !important;     /* beats any .product-cart__title a override */
  text-decoration: none;
  color: inherit;
}
.product-card .product-card__stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
  background: transparent;
}
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: box-shadow .15s; cursor: pointer; }

/* Text content shouldn't intercept clicks — let them pass to the overlay. */
.product-card .product-cart__info-wrapper,
.product-card .product-cart__info-wrapper * { pointer-events: none; }
/* But the title text needs to render — pointer-events:none is OK for text;
   the overlay <a> still catches the click. */
/* Keep each meta line on a single line; numbers and labels stay together */
.product-cart__installment,
.product-cart__rental-price {
  white-space: nowrap;
}
.product-cart__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.product-cart__title a { color: #1a1a1a; text-decoration: none; }
.product-cart__title a:hover { text-decoration: underline; }
.product-cart__installment { font-size: 12px; color: #64748B; }
.product-cart__installment .product-prices-number { font-weight: 700; color: #1a1a1a; }
.product-cart__rental-price { font-size: 13px; }
.product-cart__rental-price .product-prices-text { color: #64748B; }
.product-cart__rental-price .product-prices-number { font-weight: 700; color: #4281A4; }
.product-cart__selling-price .product-prices-number {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a1a;
}
.product-cart__selling-price .product-prices-text {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
}
.product-cart__info-wrapper { width: 100%; padding: 12px 14px 14px; }
.product-cart__selling-price .product-prices-text--mobile { display: none; }
@media (max-width: 480px) {
  .product-cart__selling-price .product-prices-text--mobile { display: inline; }
}

/* ── Availability above title in card ─────────────────
   Keeps original Oxygen .product-availability::before
   indicator (8×8 colored dot + 18px left padding).
   Just controls spacing below it.                   */
.product-cart__availability--top { margin: 0 0 6px; }

/* Make sure the original dot has visible breathing room
   from the text — the dot is positioned at left:0 and
   the text starts at padding-left:18px, so the gap is
   18 - 8 = 10px. Tiny adjustment if needed:           */
.product-cart__availability--top .product-availability {
  display: inline-block;
}

/* ── Catalog pagination ──────────────────────────────── */
.catalog-pagination { margin-top: 32px; display: flex; justify-content: center; }
.catalog-pagination .page-numbers,
.catalog-pagination ul.page-numbers {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px; align-items: center;
}
.catalog-pagination .page-numbers li { display: inline-block; }
.catalog-pagination .page-numbers a,
.catalog-pagination .page-numbers span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid #dde4e7; border-radius: 6px;
  color: #333; text-decoration: none; font-weight: 600;
  transition: background-color .12s, color .12s;
}
.catalog-pagination .page-numbers a:hover { background: #f1f5f7; }
.catalog-pagination .page-numbers .current {
  background: #4281A4; color: #fff; border-color: #4281A4;
}
.catalog-pagination .facetwp-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid #dde4e7; border-radius: 6px;
  color: #333; cursor: pointer; font-weight: 600;
  margin-right: 6px;
}
.catalog-pagination .facetwp-page.active { background: #4281A4; color: #fff; border-color: #4281A4; }
.catalog-pagination .facetwp-page:hover  { background: #f1f5f7; }

/* ── Language switcher (k24-lang) ──────────────────── */
.k24-lang { display: inline-flex; gap: 4px; align-items: center; padding-left: 12px; }
@media (max-width: 800px) {
  .k24-lang { padding-left: 4px; }
  /* Inside mobile flyout — push it in further */
  #mobile-flyout-wrapper .k24-lang { padding-left: 12px; }
}
.k24-lang__item {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 4px;
  color: #4a4a4a;
  text-decoration: none;
  transition: background-color .12s, color .12s;
}
.k24-lang__item:hover { background: #f1f1f1; color: #1a1a1a; text-decoration: none; }
.k24-lang__item--current {
  background: #4281A4;   /* same accent as elsewhere */
  color: #fff;
}

/* FacetWP integration */
.facetwp-facet { margin-bottom: 0; }
.facetwp-checkbox { display: block; padding: 4px 0; cursor: pointer; }
.facetwp-counter { color: var(--c-muted); font-size: 12px; }
