li {
  
  margin-left: 2rem;
}

.catalogue-main {
  /* Ugyanaz az alap betűtípus, mint amit a hero szekcióban használunk (Fontshare – "Supreme") */
  font-family: var(--regular-text, "Supreme", sans-serif);
}

.product-detail {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* gyermekek töltsék ki a teljes szélességet */
  gap: 20px;
}

.product-gallery {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
}

.product-gallery .main-image {
  flex: 1 1 auto;
  min-width: 0; /* engedje a zsugorodást */
  border-radius: 10px;
  overflow: hidden;
  height: clamp(
    320px,
    56vh,
    720px
  ); /* dinamikus, viewport-hoz igazodó magasság */
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery .main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* ne vágjon le a képből, inkább letterbox-oljon */
}

/* Lightbox overlay */
.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0b;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

.thumbs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 280px; /* szélesebb sáv a jobb oldalon */
  --thumb-size: 100px;
  --thumb-gap: 8px;
}

/* Ha nincs navigáció (≤4 kép), a viewport blokkot középre igazítjuk */
.thumbs.no-nav {
  justify-content: center;
}

/* Görgethető sáv a miniatűröknek (4 látszódik egyszerre) */
.thumbs-viewport {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertikális középre igazítás a listának */
  align-items: center;
  max-height: calc(
    (var(--thumb-size) * 4) + (var(--thumb-gap) * 3)
  ); /* max 4 thumb */
}
.thumbs-viewport::-webkit-scrollbar {
  display: none;
} /* WebKit */

.thumbs-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--thumb-gap);
}

/* Egy miniatűr elem: mindig középre igazított kép, vágás nélkül */
.thumbs .thumb-item {
  width: 100%;
  height: var(--thumb-size); /* nagyobb előnézetek */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbs .thumb-item.active {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(235, 170, 5, 0.15);
}

.thumbs .thumb-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* Navigációs gombok csak akkor jelennek meg, ha 4+ kép van (JS állítja) */
.thumbs-nav {
  flex: 0 0 32px; /* felső/alsó gomb magassága */
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px; /* modern "pill" */
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}
.thumbs-nav:hover:not(:disabled) {
  border-color: rgba(235, 170, 5, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #fff7e6 100%);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.1),
    0 14px 34px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}
.thumbs-nav:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 10px 26px rgba(15, 23, 42, 0.08);
}
.thumbs-nav:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(235, 170, 5, 0.28),
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 8px 24px rgba(15, 23, 42, 0.06);
}
.thumbs-icon {
  display: inline-block;
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: none;
  transform-origin: center;
}
.thumbs-nav:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

.product-info {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}

/* Product catalogues block (appears under product-info on the right column) */
.product-catalogues {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 1.5rem;
  padding: 16px;
  width: 100%;
  max-width: 360px;
}

.catalogues-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.catalogues-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  color: #0f172a;
}

.catalogues-select:focus {
  outline: none;
  border-color: var(--primary-light);
}

.product-info .title {
  margin: 0 0 10px 0;
  font-size: 22px;
  color: #0f172a;
}

.spec-list {
  margin: 0;
  padding-left: 20px;
  color: #334155;
  line-height: 1.6;
}

.product-specs {
  margin: 0;
  padding: 0;
  color: #334155;
  line-height: 1.6;
}

.product-specs p {
  margin: 0 0 8px 0;
}

.product-specs p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .product-gallery {
    flex-direction: column; /* mobilon a thumbs a kép alatt legyen vízszintesen */
  }
  .product-gallery .main-image {
    height: clamp(220px, 42vh, 360px);
  }
  .thumbs {
    flex-direction: row;
    width: 100%;
    margin-top: 10px;
    align-items: center;
  }
  .thumbs-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    display: block; /* mobilon ne flexeljük, vízszintes sáv lesz */
  }
  .thumbs-list {
    flex-direction: row;
  }
  .thumbs .thumb-item {
    flex: 0 0 calc((100% - (8px * 3)) / 4);
    width: auto;
  }
  .thumbs-nav {
    width: 32px;
    height: 72px;
    flex: 0 0 32px;
  }
  /* Mobilon vízszintes thumbs: nyilak balra/jobbra mutassanak */
  .thumbs-prev .thumbs-icon {
    transform: rotate(-90deg); /* ▲ -> ◀ */
  }
  .thumbs-next .thumbs-icon {
    transform: rotate(-90deg); /* ▼ -> ▶ */
  }
}
@media (max-width: 600px) {
  .thumbs .thumb-item,
  .thumbs-nav {
    height: 60px;
  }
}
/* Biztosítsuk, hogy a tartalom a fix navbar alatt kezdődjön */
.catalogue-main {
  min-height: 100vh;
  padding-top: calc(
    var(--navbar-height) + var(--catalogue-search-height, 56px)
  ); /* a navbar + keresősáv magassága */
}
/* Catalogue page styles */
.catalogue-search {
  position: fixed;
  top: calc(var(--navbar-height) + var(--announcement-offset, 0px));
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent; /* dock-szerű megjelenés: ne legyen teljes szélességű háttér */
  padding: 12px 16px;
  border-bottom: none;
  text-align: center;
  box-shadow: none;
}

.catalogue-search .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar alatti keresősáv elrendezés (mobilon: kereső balra, hamburger jobbra) */
.catalogue-search-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Cím eltávolítva a kérés szerint */

.search-container {
  position: relative;
  width: 55dvw;
  max-width: 540px; /* szélesebb dock érzet */
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9999px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease;
}

.search-container input[type="search"] {
  width: 100%;
  padding: 10px 48px 10px 8px; /* kisebb belső padding a dockon belül */
  border: 2px solid transparent;
  border-radius: 9999px;
  font-size: 16px;
  outline: none;
  background: transparent;
  box-shadow: none;
  transition: border-color 0.2s ease;
  color: #0f172a;
}

/* Search input "X" (törlés) ikon – vékonyabb vonalak, fekete, pointer */
.search-container input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 24px;
  width: 24px;
  cursor: pointer;
  background: no-repeat center / 14px 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23000' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.9;
}
.search-container input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
}

/* Régi Edge/IE clear gomb */
.search-container input[type="search"]::-ms-clear {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(
    120deg,
    var(--primary-light),
    var(--primary-dark)
  );
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: linear-gradient(
    140deg,
    var(--primary-light),
    var(--primary-dark)
  );
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.catalogue-layout {
  max-width: 1920px;
  margin: 20px auto;
  padding: 0 8px 24px 0;
  display: grid;
  /*grid-template-columns: 320px minmax(800px, 1fr);*/
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.catalogue-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  height: fit-content;
}

/* Alapértelmezetten a mobil nyitó gomb rejtve (csak mobil/tableten jelenik meg) */
.sidebar-open-btn {
  display: none;
}

/* Mobil/tablet: off-canvas sidebar */
@media (max-width: 1024px) {
  .sidebar-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: var(--primary-cta-text-color);
    cursor: pointer;
  }

  .sidebar-open-btn:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
  }

  /* Mobilon a kereső töltse ki a sávot, a hamburger a jobb szélre kerüljön */
  .catalogue-search-row {
    justify-content: space-between;
  }

  .catalogue-search-row .search-container {
    flex: 1 1 auto;
    max-width: none;
    margin: 0;
  }

  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .catalogue-sidebar {
    position: fixed;
    top: calc(var(--navbar-height) + var(--catalogue-search-height, 56px) + var(--announcement-offset, 0px));
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    max-width: 90vw;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 1000;
    height: 80dvh;
    display: flex;
    flex-direction: column;
  }

  .catalogue-sidebar .sidebar-toggle {
    display: none;
  }

  .catalogue-sidebar.open {
    transform: translateX(0);
  }

  /* A lista a panelen belül gördül: 8 teljes elem + 9. félig látszik */
  .catalogue-sidebar .sidebar-nav {
    overflow: hidden;
  }
  .catalogue-sidebar .category-list {
    overflow-y: auto;
    padding-right: 8px;
  }

  /* 8 elem látszódjon: gombmagasság + gap alapján számolunk */
  .catalogue-sidebar .category-list button {
    /* Minden elemet fix gombmagassággal kezelünk mobilon */
    padding: 12px 12px;
    min-height: 63px;
  }

  /* 8.5 elem magasság: 8 teljes + 9. félig (li gap 6px a listán) */
  .catalogue-sidebar .category-list {
    /* kb 8 teljes + 9. félig, figyelembe véve a gap-eket és a paddinget is */
    max-height: 69dvh;
  }
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* Mobil/tablet elemek: alapból rejtve (csak ≤1024px-en jelennek meg) */
.category-fab,
.sidebar-backdrop {
  display: none;
}

/* ===== Mobil + tablet nézet: lebegő "Kategóriák" gomb + alulról felcsúszó panel ===== */
@media (max-width: 1024px) {
  /* A kereső melletti ikon gomb helyett az alsó lebegő gomb nyitja a panelt */
  .sidebar-open-btn {
    display: none;
  }

  .catalogue-search-row {
    justify-content: center;
  }

  .catalogue-search-row .search-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  /* Nyitott kategória panel alatt a scroll progress indikátor ne takarjon */
  .progress-circle-container {
    transition:
      bottom 0.6s linear,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  body.catalogue-sheet-open .progress-circle-container {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Lebegő gomb – alul középen, hüvelykujjal könnyen elérhető */
  .category-fab {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100vw - 32px);
    min-height: 64px;
    padding: 10px 24px 10px 10px;
    border: 1px solid rgba(255, 206, 83, 0.55);
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
      0 10px 28px rgba(2, 6, 23, 0.35),
      0 2px 6px rgba(2, 6, 23, 0.2);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .category-fab:active {
    transform: translateX(-50%) scale(0.97);
  }

  .category-fab:focus-visible {
    outline: 3px solid var(--primary-light, #ffce53);
    outline-offset: 3px;
  }

  .category-fab__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(
      120deg,
      var(--primary-light, #ffce53),
      var(--primary-dark, #ebaa05)
    );
    color: #0f172a;
  }

  .category-fab__icon svg {
    width: 22px;
    height: 22px;
  }

  .category-fab__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    line-height: 1.15;
    text-align: left;
  }

  .category-fab__label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .category-fab__current {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    margin-top: 2px;
    color: var(--primary-light, #ffce53);
  }

  .category-fab__chevron {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--primary-light, #ffce53);
  }

  /* Nyitott panel alatt a lebegő gomb eltűnik */
  body.catalogue-sheet-open .category-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
  }

  /* Sötétített háttér a panel mögött */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(2, 6, 23, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.catalogue-sheet-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Az oldal ne görögjön a nyitott panel mögött */
  body.catalogue-sheet-open {
    overflow: hidden;
  }

  /* Kategória panel: alulról felcsúszó lap (bottom sheet) */
  .catalogue-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 82dvh;
    padding: 6px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(2, 6, 23, 0.3);
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1002;
  }

  .catalogue-sidebar.open {
    transform: translateY(0);
  }

  /* A panel teteje (fogantyú + cím) a megfogható terület: lehúzással zár */
  .catalogue-sidebar .sidebar-header {
    position: relative;
    flex: 0 0 auto;
    justify-content: center;
    margin: -6px -14px 4px; /* a teljes panelszélességben megfogható */
    padding: 26px 16px 14px;
    border-bottom: 1px solid #eef2f7;
    cursor: grab;
    touch-action: none; /* a húzás ne görgesse az oldalt */
    user-select: none;
    -webkit-user-select: none;
  }

  .catalogue-sidebar.is-dragging .sidebar-header {
    cursor: grabbing;
  }

  /* Fogantyú jelzés a panel tetején */
  .catalogue-sidebar .sidebar-header::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color 0.15s ease, width 0.15s ease;
  }

  .catalogue-sidebar.is-dragging .sidebar-header::before {
    width: 56px;
    background: var(--primary-dark, #ebaa05);
  }

  .catalogue-sidebar .sidebar-header h2 {
    font-size: 19px;
    font-weight: 700;
  }

  .catalogue-sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-top: 6px;
  }

  .catalogue-sidebar .category-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px 8px;
  }

  .catalogue-sidebar .category-list button {
    min-height: 52px;
    padding: 12px 14px;
    font-size: 15px;
  }

  /* A tartalom alja ne bújjon a lebegő gomb mögé */
  .catalogue-layout {
    padding-bottom: 110px;
  }
}

/* Telefon: a kereső sáv oldalsó margója kisebb */
@media (max-width: 600px) {
  .catalogue-search .container {
    padding: 0 4px;
  }
}

/* Tablet: a felcsúszó panel középre igazítva, korlátozott szélességgel */
@media (min-width: 601px) and (max-width: 1024px) {
  .catalogue-sidebar {
    left: 0;
    right: 0;
    width: min(640px, 100%);
    margin: 0 auto;
    max-height: 75dvh;
  }

  .category-fab {
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    min-height: 72px;
    gap: 14px;
    padding: 12px 30px 12px 12px;
  }

  .category-fab__icon {
    width: 50px;
    height: 50px;
  }

  .category-fab__icon svg {
    width: 24px;
    height: 24px;
  }

  .category-fab__label {
    font-size: 20px;
  }

  .category-fab__current {
    font-size: 14px;
  }

  .category-fab__chevron {
    width: 22px;
    height: 22px;
  }
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.sidebar-toggle {
  display: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  cursor: pointer;
}

.sidebar-nav {
  margin-top: 8px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 60vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* Sidebar-specifikus scrollbar track (nem írja felül a globálisat) */
.catalogue-sidebar .category-list::-webkit-scrollbar-track {
  background: rgb(0, 0, 0);
  border-radius: 10px;
}
.catalogue-sidebar .category-list::-webkit-scrollbar-track-piece {
  background: rgb(0, 0, 0);
  border-radius: 10px;
}

.category-list li {
  margin: 0;
}

.category-list button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.category-list button:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.category-list button.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

/* Első helyre rögzített, kiemelt kategória (pl. "Készletes gépeink") */
.category-list button.category-pinned {
  position: relative;
  padding-left: 16px;
  font-weight: 600;
  border-color: var(--primary-light, #ffce53);
  background: linear-gradient(
    120deg,
    rgba(255, 206, 83, 0.22),
    rgba(235, 170, 5, 0.12)
  );
  color: #0f172a;
  box-shadow: inset 4px 0 0 var(--primary-dark, #ebaa05);
}

.category-list button.category-pinned:hover {
  border-color: var(--primary-dark, #ebaa05);
  background: linear-gradient(
    120deg,
    rgba(255, 206, 83, 0.34),
    rgba(235, 170, 5, 0.2)
  );
}

.category-list button.category-pinned.active {
  border-color: #0f172a;
  background: #0f172a;
  color: var(--primary-light, #ffce53);
  box-shadow: inset 4px 0 0 var(--primary-dark, #ebaa05);
}

.category-list li.is-pinned {
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(235, 170, 5, 0.45);
}

.category-error {
  margin-top: 8px;
  font-size: 14px;
  color: #b91c1c;
}

.catalogue-content {
  max-width: 100vw;
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  min-height: 420px;
  padding: 16px;
}

/* Termék oldal H1 cím */
.product-page-title {
  margin: 6px 0 14px 0;
  font-family: var(--regular-text);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 38px);
}

/* Collage default state */
.catalogue-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.collage-banner,
.collage-tile {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  cursor: pointer;
}

.collage-banner:hover,
.collage-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  border-color: #e2e8f0;
}

.collage-media {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.collage-banner .collage-media {
  height: 260px;
}

.collage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 90%
  );
  color: #fff;
}

.collage-title {
  margin: 0 0 4px 0;
  font-family: var(--regular-text);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
}

.collage-subtitle {
  margin: 0;
  font-family: var(--regular-text);
  font-size: 26px;
  color: #fff;
}
.collage-tile-title {
  margin: 0;
  font-family: var(--regular-text);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.collage-row {
  display: grid;
  /* --collage-cols: a látható (nem rejtett) csempék száma, JS állítja */
  grid-template-columns: repeat(var(--collage-cols, 3), 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .collage-banner .collage-media {
    height: 220px;
  }
  .collage-row {
    grid-template-columns: 1fr;
  }

  /* Tablet: a kártyák szövege a szélességhez igazodik */
  .collage-title {
    font-size: clamp(28px, 4.6vw, 38px);
    line-height: 1.1;
  }
  .collage-subtitle {
    font-size: clamp(17px, 2.8vw, 22px);
    line-height: 1.25;
  }
  .collage-tile-title {
    font-size: clamp(19px, 3vw, 22px);
    line-height: 1.2;
  }
}

/* Telefon: kisebb, jól olvasható cím/alcím, hogy ne lógjon ki a képből */
@media (max-width: 600px) {
  .collage-overlay {
    padding: 12px 14px 14px;
  }
  .collage-title {
    margin-bottom: 4px;
    font-size: clamp(22px, 6.8vw, 28px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .collage-subtitle {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.3;
  }
  .collage-tile-title {
    font-size: clamp(17px, 5vw, 20px);
  }
}

/* Header utilities above grid */
.content-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.breadcrumbs {
  font-size: 14px;
  color: #64748b;
}

.breadcrumbs a {
  color: #0f172a;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
}

.breadcrumbs a:hover {
  border-color: #94a3b8;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
}

.chip-remove {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.chip-remove:hover {
  background: #e2e8f0;
}

/* Product toolbar */
.product-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* Brand info panel (toolbar és grid között) */
.brand-info-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-info-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  margin-top: 20px;
  padding: 12px;
  margin-bottom: 20px;
}

/* Középre igazított tartalomszélesség a részletező blokkoknak */
.catalogue-content .brand-info-panel {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.brand-info-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.more-products-group-title {
  margin: -2px 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.more-products-group-block + .more-products-group-block {
  margin-top: 14px;
}

.more-products-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.more-products-thumbs::-webkit-scrollbar {
  display: none;
}

.more-products-thumb {
  flex: 0 0 auto;
  width: 124px;
  height: 96px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.more-products-thumb.is-active {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(235, 170, 5, 0.15);
}
.more-products-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.brand-info-table-wrap {
  width: 100%;
  overflow: auto;
  position: relative; /* a sticky első oszlophoz szükséges kontextus */
}

.header-row {
  border-radius: 20px;
}

.brand-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #0f172a;
  font-family: "Montserrat", sans-serif;
}

/* 580px-es képernyőszélességtől kezdve rögzített első oszlop a könnyebb vízszintes görgetéshez
   és kisebb betűméret a jobb olvashatóságért szűk kijelzőn */
@media (max-width: 580px) {
  .brand-info-table {
    font-size: 0.78rem;
  }

  .brand-info-table th:first-child,
  .brand-info-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    /* finom elválasztó sáv, hogy a többi oszlop „becsússzon” mögé */
    box-shadow: 4px 0 6px rgba(15, 23, 42, 0.12);
  }

  /* Header első cella legyen a legfelül lévő réteg */
  .brand-info-table thead th:first-child {
    z-index: 3;
  }

  /* Zebra-sorok háttérszínének megőrzése a rögzített első oszlopon is */
  .brand-info-table tbody tr:nth-child(odd) td:first-child {
    background: #fafafa;
  }

  .brand-info-table tbody tr:nth-child(even) td:first-child {
    background: #ffffff;
  }
}

.brand-info-table thead th {
  text-align: center;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
}

.brand-info-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

/* A táblázat első oszlopa maradjon balra igazítva */
.brand-info-table tbody td:first-child {
  text-align: left;
}

/* Összevont cellák jobbra igazítása a közös vizuális konzisztencia érdekében */
.brand-info-table tbody td.merged-cell {
  text-align: center;
}

.brand-info-table tbody tr:nth-child(odd) td {
  background: #fafafa;
}

@media (max-width: 720px) {
  .brand-info-table {
    font-size: 13px;
  }
  .brand-info-table thead th,
  .brand-info-table tbody td {
    padding: 4px;
  }
}

.product-toolbar .left,
.product-toolbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-count {
  font-size: 14px;
  color: #475569;
}

.sort-select {
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.7rem;
  color: #0f172a;
}

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.view-toggle button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.view-toggle button.active {
  background: var(--primary-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #fff;
}

/* Product grid/list */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* Subcategory tiles */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.subcategory-card .image-wrap {
  width: 100%;
  /* egységes képarány */
  aspect-ratio: 4 / 3;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subcategory-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-card .content {
  padding: 14px;
  text-align: center;
}

.subcategory-card .title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: #0f172a;
}

.subcategory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
  border-color: #e2e8f0;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
  border-color: #e2e8f0;
  cursor: pointer;
}

.product-card .image-wrap {
  width: 100%;
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-card .content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card .title {
  font-family: var(--regular-text);
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.product-card .description {
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
  max-height: 3.75em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* List view adjustments */
.product-list .product-card {
  flex-direction: row;
}

.product-list .product-card .image-wrap {
  flex: 0 0 220px;
  height: 160px;
}

.product-list .product-card .content {
  flex: 1;
}

/* Load more */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.load-more-btn {
  background: linear-gradient(
    0deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition:
    transform 0.1s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(235, 170, 5, 0.25);
}

.load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(235, 170, 5, 0.35);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

/* Skeletons */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.product-card.skeleton .image-wrap {
  height: 180px;
}
.product-card.skeleton .title {
  height: 18px;
  width: 70%;
  border-radius: 6px;
}
.product-card.skeleton .description {
  height: 44px;
  border-radius: 6px;
}

/* Sticky sidebar (desktop) */
@media (min-width: 1025px) {
  .catalogue-sidebar {
    position: sticky;
    top: calc(
      var(--navbar-height) + var(--catalogue-search-height, 56px) + 12px
    );
  }
}

/* Product Videos Section */
.product-videos-section {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.videos-title {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 16px 0;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.video-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f8fafc;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #272626c2;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.play-button svg {
  width: 24px;
  height: 24px;
}

.video-card:hover .play-button {
  background: rgba(15, 23, 42, 0.9);
}

.video-content {
  padding: 12px;
}

.video-title {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}

.video-description {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  /* 1024px alatt off-canvas sidebar van: a layout maradjon egy oszlopos,
     különben a későbbi szabály felülírja és összenyomja a tartalmat. */
  .catalogue-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .catalogue-title {
    font-size: 2.4rem;
  }

  .catalogue-layout {
    grid-template-columns: 1fr; /* felül felülírjuk az off-canvas-hez is */
  }

  .sidebar-toggle {
    display: inline-block;
  }

  /* az off-canvas szabályok lépnek életbe 1024px alatt */

  .category-list {
    max-height: none;
  }

  /* Collapsible behavior on mobile */
  .catalogue-sidebar:not(.open) .category-list,
  .catalogue-sidebar:not(.open) .category-error {
    display: block; /* off-canvas-ben nem rejtjük el, a panel maga mozog */
  }
}

/* Igazítsuk a sticky eltolást a mobilos navbar magasságához is */
@media (max-width: 480px) {
  :root {
    --navbar-height: 60px;
  }
}

/* ===== Márka nézet (catalogue.php?brand=...) – kategóriánkénti csoportosítás ===== */
.brand-view-intro {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 4px 0 10px;
}

.brand-view-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.brand-view-subtitle {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.brand-view-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.brand-view-jump-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.brand-view-jump-chip:hover {
  background: #fff7ea;
  border-color: rgba(235, 170, 5, 0.6);
}

.brand-group {
  margin-top: 28px;
  scroll-margin-top: 90px;
}

.brand-group:first-of-type {
  margin-top: 18px;
}

.brand-group-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-group-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.brand-group-count {
  flex-shrink: 0;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(235, 170, 5, 0.12);
  color: #8a6300;
  font-size: 12px;
  font-weight: 600;
}

.brand-group-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(to right, #cbd5e1, rgba(203, 213, 225, 0));
}

.brand-group-link {
  flex-shrink: 0;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
}

.brand-group-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .brand-group-divider {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .brand-group-title {
    white-space: normal;
    font-size: 17px;
  }
  .brand-group-line {
    order: 3;
    flex-basis: 100%;
  }
  .brand-group-link {
    order: 4;
  }
}
