/* Adapted from the SEZAM catalogue;
target palette, typography and navigation retained. */
.catalog-page {
  padding:8px 5.5% 55px;
  max-width:1500px;
  margin:auto
}
.catalog-layout {
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:28px;
  align-items:start
}
.catalog-sidebar {
  position:sticky;
  top:24px;
  padding:18px;
  background:#fffdf8;
  border:1px solid var(--line,#e3d9c9);
  border-radius:12px
}
.catalog-sidebar h2 {
  font:600 17px/1.4 Arial,sans-serif;
  letter-spacing:0;
  margin:0 0 15px
}
.catalog-filter-list {
  display:grid;
  gap:6px;
  font:13px/1.4 Arial,sans-serif
}
.catalog-filter-link {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  padding:10px;
  border:1px solid transparent;
  border-radius:8px;
  color:var(--ink,#292b33);
  text-decoration:none;
  font-weight:600
}
.catalog-filter-link:hover {
  background:#f4efe6;
  border-color:#e3d9c9
}
.catalog-filter-link[aria-current=page] {
  color:var(--burgundy,#742e46);
  background:#f5e9e7;
  border-color:#d8bbc3
}
.catalog-category-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:27px;
  height:27px;
  padding:0 7px;
  border-radius:7px;
  background:#eee9e0;
  color:#6d665c;
  font-size:11px
}
.catalog-filter-link[aria-current=page] .catalog-category-count {
  background:var(--burgundy,#742e46);
  color:#fff
}
.catalog-mobile-picker {
  display:none
}
.catalog-results {
  min-width:0
}
.catalog-results-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin:0 0 18px
}
.catalog-results-heading h2 {
  font:normal 28px/1.25 Georgia,serif;
  letter-spacing:-.6px;
  margin:0
}
.catalog-results-heading>p {
  margin:0;
  white-space:nowrap;
  font-size:12px;
  color:var(--muted,#746c64)
}
.catalog-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
  margin-bottom:26px
}
.catalog-card {
  min-width:0;
  padding:14px;
  border:1px solid #e3d9c9;
  border-radius:12px;
  background:#fffdf8
}
.catalog-card>a {
  display:block
}
.catalog-card img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:contain;
  border-radius:7px;
  background:#fff
}
.catalog-card h3 {
  font:normal 19px/1.35 Georgia,serif;
  letter-spacing:0;
  margin:16px 0 10px;
  overflow-wrap:anywhere
}
.catalog-card>a:hover h3 {
  color:var(--burgundy,#742e46)
}
.catalog-card strong {
  font-size:18px;
  color:var(--burgundy,#742e46)
}
.catalog-status {
  font-size:12px;
  color:#746c64;
  line-height:1.5;
  margin:10px 0
}
.catalog-read-date {
  font-size:12px;
  color:#746c64;
  line-height:1.7;
  margin:0 0 22px
}
.catalog-empty {
  padding:25px;
  margin-bottom:24px;
  border:1px dashed #cfc3b4;
  border-radius:12px;
  background:#f7f2e9
}
.catalog-empty h3 {
  font:normal 23px/1.3 Georgia,serif;
  margin:0 0 12px
}
.catalog-empty p {
  font-size:14px;
  line-height:1.8;
  color:#746c64;
  margin:0
}
.catalog-status-message {
  font-size:13px;
  line-height:1.6;
  color:var(--burgundy,#742e46);
  margin:0 0 16px
}
.catalog-status-message:empty {
  display:none
}
.catalog-actions {
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:24px
}
.catalog-actions .button {
  white-space:normal;
  line-height:1.5
}
.catalog-text-link {
  display:inline-flex;
  padding:8px 0;
  font-size:13px;
  font-weight:600;
  color:var(--burgundy,#742e46);
  text-decoration:underline;
  text-underline-offset:4px
}
.catalog-more {
  padding:13px 20px;
  margin:0 0 24px;
  border:1px solid #b7a692;
  border-radius:8px;
  background:#f3eadb;
  color:#563a34;
  font-weight:600
}
.catalog-breadcrumbs {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  font-size:12px;
  color:#746c64;
  margin-bottom:25px
}
.catalog-product {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:36px;
  align-items:start
}
.catalog-product-details {
  min-width:0
}
.catalog-price {
  display:block;
  font:normal 34px/1.2 Georgia,serif;
  color:var(--burgundy,#742e46);
  margin-bottom:10px
}
.catalog-product-details>p {
  font-size:14px;
  line-height:1.9;
  color:#625e57
}
.catalog-description {
  white-space:pre-line;
  overflow-wrap:anywhere
}
.catalog-gallery {
  min-width:0
}
.catalog-main-image {
  display:block;
  background:#fff;
  border:1px solid #e3d9c9;
  border-radius:13px;
  padding:8px
}
.catalog-main-image img {
  display:block;
  width:100%;
  height:auto;
  max-height:560px;
  aspect-ratio:4/3;
  object-fit:contain
}
.catalog-thumbnails {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px
}
.catalog-thumbnails a {
  border:2px solid transparent;
  border-radius:8px;
  background:#fff;
  padding:3px
}
.catalog-thumbnails a[aria-current=true] {
  border-color:var(--burgundy,#742e46)
}
.catalog-thumbnails img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  border-radius:5px
}
.catalog-unavailable {
  padding:15px;
  border:1px solid #d8b5af;
  border-radius:10px;
  background:#f4e7e2
}
.catalog-unavailable strong {
  display:block;
  font-size:16px;
  color:#742e46
}
.catalog-unavailable a {
  text-decoration:underline
}
.catalog-filter-link:focus-visible,.catalog-card a:focus-visible,.catalog-text-link:focus-visible,.catalog-thumbnails a:focus-visible {
  outline:3px solid #742e46;
  outline-offset:3px
}
@media(max-width:1150px) {
  .catalog-layout {
    grid-template-columns:205px minmax(0,1fr);
    gap:20px
  }
  .catalog-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:800px) {
  .catalog-layout {
    grid-template-columns:1fr;
    gap:22px
  }
  .catalog-sidebar {
    position:static;
    padding:14px
  }
  .catalog-sidebar h2 {
    margin-bottom:10px;
    font-size:15px
  }
  .catalog-filter-list {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    overflow:visible;
    padding:0
  }
  .catalog-filter-link {
    white-space:normal;
    min-width:0;
    min-height:46px;
    padding:9px 8px;
    gap:6px;
    font-size:12px;
    line-height:1.4;
    border-color:#e3d9c9
  }
  .catalog-filter-link:first-child {
    grid-column:1/-1
  }
  .catalog-filter-link>span:first-child {
    min-width:0;
    overflow-wrap:anywhere;
    hyphens:auto
  }
  .catalog-category-count {
    min-width:23px;
    height:23px;
    padding:0 5px;
    font-size:10px
  }
  .catalog-results-heading h2 {
    font-size:25px
  }
  .catalog-product {
    grid-template-columns:1fr;
    gap:26px
  }
  .catalog-price {
    font-size:31px
  }
  .catalog-page {
    padding-top:5px
  }
  .catalog-actions {
    align-items:stretch;
    flex-direction:column;
    gap:10px
  }
  .catalog-actions .button {
    justify-content:center;
    text-align:center
  }
  .catalog-thumbnails {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:560px) {
  .catalog-grid {
    grid-template-columns:1fr;
    gap:15px
  }
  .catalog-card h3 {
    font-size:21px
  }
  .catalog-results-heading {
    gap:10px
  }
  .catalog-results-heading>p {
    font-size:11px
  }
  .catalog-empty {
    padding:20px
  }
  .catalog-card img {
    max-height:300px
  }
}

#sales-catalog #oferty {
  scroll-margin-top: 6rem;
}

/* Product photos: inline navigation and an accessible enlarged gallery. */
.catalog-main-frame { position:relative; min-width:0; }
.catalog-main-image img,
.catalog-lightbox-stage img {
  touch-action:pan-y pinch-zoom;
  user-select:none;
  -webkit-user-drag:none;
}
.catalog-gallery-controls {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px;
  pointer-events:none;
}
.catalog-gallery-controls button,
.catalog-lightbox-stage button,
.catalog-lightbox-header button {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  padding:0;
  border:1px solid #d6c8b8;
  border-radius:50%;
  background:#fffaf3f5;
  color:#622139;
  font:normal 34px/1 Arial,Helvetica,sans-serif;
  cursor:pointer;
  pointer-events:auto;
  box-shadow:0 2px 12px #1821301a;
}
.catalog-gallery-controls button:hover,
.catalog-lightbox-stage button:hover,
.catalog-lightbox-header button:hover { background:#f5e9e7; border-color:#b98f9a; }
.catalog-gallery-controls button:focus-visible,
.catalog-lightbox button:focus-visible { outline:3px solid #742e46; outline-offset:3px; }
html.catalog-gallery-open { overflow:hidden; }
.catalog-lightbox {
  box-sizing:border-box;
  width:calc(100vw - 32px);
  max-width:1200px;
  height:min(860px,calc(100vh - 32px));
  height:min(860px,calc(100dvh - 32px));
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid #dfd3c5;
  border-radius:16px;
  background:#faf7f0;
  color:#263449;
  box-shadow:0 18px 70px #10172266;
}
.catalog-lightbox[open] {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto auto;
}
.catalog-lightbox::backdrop { background:#172130d9; }
.catalog-lightbox-header {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:14px;
  position:static;
  min-width:0;
  width:100%;
  margin:0;
  padding:12px 16px;
  border-bottom:1px solid #e3d9c9;
}
.catalog-lightbox-title {
  flex:1;
  min-width:0;
  margin:0;
  overflow:hidden;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  font:600 17px/1.4 Arial,Helvetica,sans-serif;
}
[data-lightbox-counter] {
  margin:0;
  white-space:nowrap;
  font:700 14px/1.4 Arial,Helvetica,sans-serif;
  font-variant-numeric:tabular-nums;
  color:#65574d;
}
.catalog-lightbox-header button { font-size:27px; }
.catalog-lightbox-stage {
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
  background:#fff;
}
.catalog-lightbox-stage img {
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  padding:8px;
  object-fit:contain;
}
.catalog-lightbox-stage button { position:absolute; top:50%; transform:translateY(-50%); }
[data-lightbox-prev] { left:12px; }
[data-lightbox-next] { right:12px; }
.catalog-lightbox-thumbnails {
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-start;
  order:0;
  gap:8px;
  width:100%;
  min-width:0;
  margin:0;
  padding:12px 16px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  border-top:1px solid #e3d9c9;
}
.catalog-lightbox-thumbnails button {
  display:block;
  flex:0 0 78px;
  width:78px;
  height:66px;
  padding:3px;
  border:2px solid transparent;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}
.catalog-lightbox-thumbnails button[aria-current=true] { border-color:#742e46; background:#f5e9e7; }
.catalog-lightbox-thumbnails img { display:block; width:100%; height:100%; object-fit:contain; border-radius:4px; }
.catalog-lightbox-status { margin:0; padding:10px 16px; font:600 13px/1.5 Arial,sans-serif; color:#742e46; }
.catalog-lightbox [hidden], .catalog-gallery-controls[hidden] { display:none; }
@media(max-width:600px) {
  .catalog-lightbox {
    width:100vw;
    max-width:100vw;
    height:100vh;
    height:100dvh;
    max-height:100dvh;
    border:0;
    border-radius:0;
  }
  .catalog-lightbox-header { gap:10px; padding:calc(10px + env(safe-area-inset-top)) 10px 10px; }
  .catalog-lightbox-title { font-size:14px; }
  [data-lightbox-counter] { font-size:12px; }
  .catalog-lightbox-stage img { padding:4px; }
  [data-lightbox-prev] { left:5px; }
  [data-lightbox-next] { right:5px; }
  .catalog-lightbox-thumbnails { padding:10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .catalog-lightbox-thumbnails button { flex-basis:64px; width:64px; height:58px; }
}
