/* ==========================================================================
   Katalog + single proizvod
   ========================================================================== */

/* ---------- Zaglavlje kategorije ---------- */
.cat-head {
  padding-bottom: 28px;
  border-bottom: 0;
}
.cat-head .h1 {
  font-size: clamp(38px, 4.6vw, 72px);
}
.cat-head__side {
  display: grid;
  gap: 20px;
}
.cat-head__side .lead {
  font-size: 17px;
}
.cat-head__meta {
  display: flex;
  gap: 32px;
  font-size: 12px;
}
.cat-head__meta dt {
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  margin-bottom: 4px;
}
.cat-head__meta dd {
  color: var(--ink);
  font-size: 14px;
}
.subcats {
  display: flex;
  gap: 8px;
  margin-top: clamp(28px, 3vw, 44px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.subcats::-webkit-scrollbar {
  display: none;
}
.subcat {
  flex: none;
  display: grid;
  grid-template-columns: 40px auto auto;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.subcat:hover {
  border-color: var(--ink);
}
.subcat.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.subcat.is-active .mono {
  color: rgba(246, 245, 242, 0.55);
}
.subcat__img {
  width: 40px;
  height: 40px;
  overflow: hidden;
}
.subcat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subcat .mono {
  font-size: 11px;
  color: var(--ink-4);
}

/* ---------- Layout kataloga ---------- */
.catalog {
  padding-bottom: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
.catalog__layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.catalog__main {
  min-width: 0;
  padding-top: 20px;
}

/* Filteri - sidebar na desktopu, drawer na mobilnom */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 1px);
  max-height: calc(100dvh - var(--header-h) - 1px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding: 20px 8px 40px 0;
}
.filters__head,
.filters__foot {
  display: none;
}
.filters__body {
  display: grid;
}
.fsearch {
  margin-bottom: 12px;
}
.fsearch .ic {
  width: 18px;
  height: 18px;
  left: 14px;
}
.fsearch .input {
  height: 44px;
  font-size: 14px;
  padding-left: 42px;
}
.input--sm {
  height: 38px !important;
  font-size: 13.5px !important;
}
.fgroup {
  border-top: 1px solid var(--line-2);
}
.fgroup--flat {
  padding: 16px 0;
}
.fgroup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0;
  font-size: 14.5px;
  font-weight: 600;
  font-stretch: 106%;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fgroup > summary::-webkit-details-marker {
  display: none;
}
.fgroup > summary .ic {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  transition: transform var(--t) var(--ease-out);
  margin-left: auto;
}
.fgroup[open] > summary .ic {
  transform: rotate(180deg);
}
.fgroup__hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-4);
}
.fgroup__body {
  padding-bottom: 18px;
}
.fgroup[open] .fgroup__body {
  animation: rise 0.35s var(--ease-out);
}
.fopts {
  display: grid;
  gap: 0;
}
.fopts .check {
  font-size: 14.5px;
  padding: 6px 0;
}
.fopts--scroll {
  max-height: 216px;
  overflow-y: auto;
  padding-right: 6px;
}
.fopts .check.is-zero,
.fsw__i.is-zero,
.check--chip.is-zero {
  opacity: 0.42;
}
.ftree {
  display: grid;
  gap: 2px;
  font-size: 14.5px;
}
.ftree a {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--ink-2);
  transition: color var(--t-fast);
}
.ftree a:hover {
  color: var(--ink);
}
.ftree .mono {
  font-size: 11.5px;
  color: var(--ink-4);
}
.ftree ul {
  padding-left: 14px;
  margin: 2px 0 6px;
  border-left: 1px solid var(--line-2);
}
.ftree .is-active > a {
  color: var(--ink);
  font-weight: 600;
}
.ftree .is-active > a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--wood);
  position: absolute;
  margin: 9px 0 0 -18px;
}
.ftree li {
  position: relative;
}
.fsw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.fsw__i {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
}
.fsw__i input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.fsw__c {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
  transition: box-shadow var(--t-fast);
}
.fsw__i input:checked + .fsw__c {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.14),
    0 0 0 2px var(--paper),
    0 0 0 3.5px var(--ink);
}
.fsw__i input:focus-visible + .fsw__c {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}
.fsw__i .check__count {
  font-size: 11px;
  color: var(--ink-4);
}
.filters .check--chip {
  height: 36px;
  padding: 0 12px 0 8px;
}
.filters .check--chip .check__box {
  width: 16px;
  height: 16px;
}

.range {
  position: relative;
  padding: 14px 0 0;
}
.range__track {
  position: relative;
  height: 2px;
  background: var(--line-2);
  margin: 0 9px;
}
.range__track i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--ink);
  left: var(--lo, 0%);
  right: calc(100% - var(--hi, 100%));
}
.range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--ink);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid var(--ink);
  cursor: grab;
}
.range input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}
.range__vals {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12.5px;
}
.range__vals span {
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  background: var(--card);
  min-width: 84px;
  text-align: center;
}

/* Toolbar */
.ctool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.ctool__count {
  font-size: 15px;
  color: var(--ink-3);
}
.ctool__count b {
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.ctool__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctool__sort select {
  min-width: 200px;
  background: transparent;
}
.ctool__filters {
  display: none;
}
.ctool__n:not(:empty) {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--wood);
  color: #fff;
  font-size: 11px;
  padding: 0 5px;
}
.ctool__view button {
  padding: 0 9px;
}
.ctags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 16px;
}
.ctags .btn--text {
  font-size: 13px;
  margin-left: 8px;
}

.pgrid--cat {
  --cols: 3;
}
.pgrid--c4 {
  --cols: 4;
}
.pgrid--c2 {
  --cols: 2;
}
@media (max-width: 1280px) {
  .pgrid--c4 {
    --cols: 3;
  }
}
@media (max-width: 1100px) {
  .pgrid--cat {
    --cols: 2;
  }
}
.pgrid--cat .pcard.is-hidden,
.pgrid--cat .pcard.is-paged {
  display: none;
}
.pgrid--cat .pcard.is-enter {
  animation: rise 0.5s var(--ease-out) both;
  animation-delay: calc(var(--k, 0) * 40ms);
}
[data-skeleton] {
  margin-top: 0;
}

/* Lista prikaz */
.pgrid--list {
  --cols: 1 !important;
}
.pgrid--list .pcard {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
}
.pgrid--list .pcard__media {
  margin: 12px 0 12px 12px;
}
.pgrid--list .pcard__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  padding: 16px 20px;
  align-content: center;
}
.pgrid--list .pcard__meta {
  grid-column: 1;
  justify-content: flex-start;
  gap: 16px;
}
.pgrid--list .pcard__title {
  grid-column: 1;
  font-size: 18px;
}
.pgrid--list .pcard__spec {
  grid-column: 1;
}
.pgrid--list .pcard__foot {
  grid-column: 2;
  grid-row: 1 / span 3;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.pgrid--list .pcard__fav {
  top: 18px;
  left: 112px;
  right: auto;
}
.pgrid--list .ptile {
  display: none;
}

/* Promo pločica u gridu */
.ptile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.ptile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: -1;
  transition: transform 1.4s var(--ease-out);
}
.ptile:hover img {
  transform: scale(1.05);
}
.ptile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(23, 26, 28, 0.1),
    rgba(23, 26, 28, 0.85) 70%
  );
}
.ptile__body {
  padding: 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.ptile__k {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-200);
}
.ptile__t {
  font-size: 24px;
  font-weight: 450;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ptile__x {
  font-size: 14px;
  color: rgba(246, 245, 242, 0.72);
}
.cempty {
  border: 1px solid var(--line);
  background: var(--card);
}
.cmore {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 40px;
}
.cmore__txt {
  font-size: 12.5px;
  color: var(--ink-3);
}
.cmore__txt b {
  color: var(--ink);
  font-weight: 500;
}
.cmore__bar {
  width: 220px;
}
.cmore__bar i {
  transition: width 0.6s var(--ease-out);
}
.cmore .btn .ic {
  width: 16px;
  height: 16px;
}

/* SEO blok ispod listinga */
.seo {
  border-top: 1px solid var(--line);
}
.seo__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
}
.seo__text .h3 {
  margin-bottom: 24px;
}
.seo__cols {
  columns: 2;
  column-gap: 40px;
  max-width: none;
  font-size: 15.5px;
}
.seo__cols p {
  break-inside: avoid;
  margin: 0 0 1em;
}
.seo__faq .label {
  margin-bottom: 12px;
}
@media (max-width: 1000px) {
  .seo__grid {
    grid-template-columns: 1fr;
  }
  .seo__cols {
    columns: 1;
  }
}

@media (max-width: 1000px) {
  .catalog__layout {
    grid-template-columns: 1fr;
  }
  .ctool {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    background: var(--paper);
    padding-top: 12px;
    margin-top: -12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }
  .ctool__count b {
    font-size: 16px;
  }
  .ctool__filters {
    display: inline-flex;
  }
  .ctool__sort select {
    min-width: 0;
    width: 150px;
  }
  .ctool__view {
    display: none;
  }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 82;
    max-height: none;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.5s;
  }
  .filters::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(23, 26, 28, 0.42);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
  }
  .filters.is-open {
    pointer-events: auto;
    visibility: visible;
    transition: none;
  }
  .filters.is-open::before {
    opacity: 1;
  }
  .filters__panel {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(440px, 100%);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
  }
  .filters.is-open .filters__panel {
    transform: none;
  }
  .filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 8px 0 20px;
    border-bottom: 1px solid var(--line);
    flex: none;
  }
  .filters__head .mono {
    color: var(--wood-700);
    font-size: 13px;
  }
  .filters__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    overscroll-behavior: contain;
  }
  .filters__foot {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 8px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--card);
    flex: none;
  }
}
@media (max-width: 560px) {
  .ctool__count span {
    display: none;
  }
  .ctool__count::after {
    content: " proizvoda";
    font-size: 14px;
  }
  .cat-head__meta {
    gap: 20px;
  }
}

/* ==========================================================================
   Single proizvod
   ========================================================================== */
.pdp-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.pdp-back {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.pdp-back .ic {
  width: 16px;
  height: 16px;
}
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.pdp__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.pdp__thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 10px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.pdp__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
  outline: 1px solid transparent;
  outline-offset: 3px;
  transition:
    outline-color var(--t-fast),
    opacity var(--t-fast);
  opacity: 0.7;
}
.pdp__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__thumb:hover {
  opacity: 1;
}
.pdp__thumb.is-on {
  opacity: 1;
  outline-color: var(--ink);
}
.pdp__thumb-dwg {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  height: 100%;
  color: var(--ink-2);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pdp__thumb-dwg .mono {
  font-size: 9px;
}
.pdp__stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  color: var(--ink-3);
}
.pdp__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  cursor: zoom-in;
}
.pdp__slide.is-on {
  opacity: 1;
  z-index: 1;
}
.pdp__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
  transform-origin: var(--zx, 50%) var(--zy, 50%);
  will-change: transform;
}
.pdp__slide.is-zoom img {
  transform: scale(2.2);
  transition: transform 0.25s var(--ease-out);
}
.pdp__slide--dwg {
  background: var(--card);
  display: grid;
  place-items: center;
  padding: 6%;
  cursor: default;
}
.pdp__slide--dwg .board-dwg {
  width: 100%;
}
.pdp__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}
.pdp__tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pdp__hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(251, 250, 248, 0.9);
  font-size: 11px;
  color: var(--ink-2);
  transition: opacity var(--t);
}
.pdp__hint .ic {
  width: 14px;
  height: 14px;
}
.pdp__stage:hover .pdp__hint {
  opacity: 0;
}
.pdp__full {
  background: rgba(251, 250, 248, 0.92);
}
.pdp__full:hover {
  background: #fff;
}
.pdp__cap {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  font-size: 11.5px;
  color: var(--ink-3);
}

.pdp__info {
  position: relative;
}
.pdp__info-in {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.pdp__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.pdp__brand-name {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  font-size: 15px;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  transition: border-color var(--t-fast);
}
.pdp__brand-name:hover {
  border-color: var(--ink);
}
.pdp__brand .mono {
  font-size: 12px;
  color: var(--ink-3);
}
.pdp__title {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 450;
  letter-spacing: -0.034em;
  line-height: 1.02;
  margin-bottom: 16px;
}
.pdp__codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.pdp__sku {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  background: var(--card);
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink-3);
  transition: border-color var(--t-fast);
}
.pdp__sku b {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.pdp__sku .ic {
  width: 15px;
  height: 15px;
}
.pdp__sku:hover {
  border-color: var(--ink);
}
.pdp__desc {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 54ch;
}
.pdp__buy {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 22px;
}
.pdp__price {
  display: grid;
  gap: 6px;
}
.pdp__vat {
  font-size: 12px;
  color: var(--ink-3);
}
.pdp__stock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.pdp__stock .mono {
  font-size: 11.5px;
  color: var(--ink-3);
}
.pdp__opt {
  display: grid;
  gap: 10px;
}
.vopts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.vopts--2 {
  grid-template-columns: 1fr 1fr;
}
.vopt {
  position: relative;
  cursor: pointer;
}
.vopt input {
  position: absolute;
  opacity: 0;
}
.vopt > span {
  display: grid;
  gap: 2px;
  padding: 10px 10px;
  border: 1px solid var(--line-2);
  background: var(--card);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  height: 100%;
}
.vopt b {
  font-size: 14px;
  font-weight: 600;
}
.vopt small {
  font-size: 10.5px;
  color: var(--ink-3);
}
.vopt:hover > span {
  border-color: var(--ink-3);
}
.vopt input:checked + span {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.vopt input:focus-visible + span {
  outline: 2px solid var(--wood);
  outline-offset: 2px;
}
.vopt.is-dis {
  cursor: not-allowed;
}
.vopt.is-dis > span {
  background: repeating-linear-gradient(
    135deg,
    transparent 0 6px,
    rgba(23, 26, 28, 0.05) 6px 7px
  );
  color: var(--ink-4);
}
.vopt.is-dis b {
  font-weight: 400;
}
.pdp__cta {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  gap: 8px;
}
.pdp__cta .qty {
  height: 56px;
}
.pdp__cta .ibtn {
  width: 56px;
  height: 56px;
}
.pdp__fav[aria-pressed="true"] {
  color: var(--wood);
  border-color: var(--wood);
}
.pdp__fav[aria-pressed="true"] .ic path {
  fill: currentColor;
}
.pdp__add.is-added {
  background: var(--ok);
}
.pdp__cta2 {
  display: flex;
  gap: 8px;
  margin-top: -12px;
}
.pdp__cta2 .btn {
  flex: 1;
}
.pdp__svc {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--wood-50);
  border: 1px solid var(--wood-100);
}
.pdp__svc-t {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.pdp__svc-t .ic {
  color: var(--wood-700);
  margin-top: 2px;
}
.pdp__svc-t b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.pdp__svc-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 34px;
}
.pdp__svc-opts .check--chip {
  background: var(--card);
}
.pdp__svc-opts .check__count {
  font-size: 11px;
  color: var(--ink-3);
}
.pdp__svc-link {
  margin-left: 34px;
  font-size: 14px;
}
.pdp__ship {
  display: grid;
  border-top: 1px solid var(--line);
}
.pdp__ship li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}
.pdp__ship .ic {
  color: var(--ink-2);
}
.pdp__ship b {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}
.pdp__b2b {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--ink);
  color: rgba(246, 245, 242, 0.8);
  font-size: 14px;
  transition: background-color var(--t-fast);
}
.pdp__b2b > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--wood);
}
.pdp__b2b b {
  color: #fff;
  font-weight: 600;
  display: block;
}
.pdp__b2b > .ic {
  width: 18px;
  height: 18px;
  transition: transform var(--t) var(--ease-out);
}
.pdp__b2b:hover {
  background: var(--ink-2);
}
.pdp__b2b:hover > .ic {
  transform: translateX(4px);
}

/* Sticky navigacija sekcija */
.pdp-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-block: 1px solid var(--line);
}
.pdp-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pdp-nav ul {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-nav ul::-webkit-scrollbar {
  display: none;
}
.pdp-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--t-fast);
}
.pdp-nav a .mono {
  font-size: 11px;
  padding: 1px 6px;
  background: var(--wood-100);
  color: var(--wood-700);
}
.pdp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease-out);
}
.pdp-nav a:hover,
.pdp-nav a.is-on {
  color: var(--ink);
}
.pdp-nav a.is-on::after {
  transform: scaleX(1);
}
.pdp-nav__buy {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity var(--t),
    transform var(--t) var(--ease-out);
}
.pdp-nav__buy .price strong {
  font-size: 17px;
}
.pdp-nav__buy .price__tag,
.pdp-nav__buy .price__b2b s {
  display: none;
}
.pdp-nav.show-buy .pdp-nav__buy {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.pdp-sec {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px clamp(24px, 4vw, 72px);
  padding-block: clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 72px);
}
.pdp-sec__head {
  display: grid;
  align-content: start;
  gap: 10px;
  justify-items: start;
}
.pdp-sec__no {
  font-size: 12px;
  color: var(--wood-700);
}
.pdp-sec > .carousel,
.pdp-sec > .pdp-similar {
  grid-column: 2;
  min-width: 0;
}
.pdp-about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.pdp-about__side {
  display: grid;
  gap: 14px;
  align-content: start;
}
.pdp-proj {
  display: grid;
  grid-template-columns: 96px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-top: 16px;
  transition: border-color var(--t-fast);
}
.pdp-proj img {
  width: 96px;
  height: 72px;
  object-fit: cover;
}
.pdp-proj > span {
  display: grid;
  gap: 2px;
}
.pdp-proj .mono {
  font-size: 10.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pdp-proj b {
  font-weight: 500;
}
.pdp-proj > .ic {
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}
.pdp-proj:hover {
  border-color: var(--ink);
}
.pdp-tech {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.pdp-tech__dwg {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px 20px 16px;
}
.pdp-tech__dwg figcaption {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 8px;
  text-align: center;
}
.board-dwg {
  width: 100%;
  height: auto;
  font-family: var(--f-mono);
}
.board-dwg text {
  font-size: 11px;
  fill: var(--ink-2);
}
.bd__face {
  stroke: var(--ink);
  stroke-width: 1;
}
.bd__edge {
  fill: #d8c3a8;
  stroke: var(--ink);
  stroke-width: 0.8;
}
.bd__edge--top {
  fill: #e6d6c2;
}
.bd__dim line,
.bd__grain line,
.bd__grain path {
  stroke: var(--ink-2);
  stroke-width: 0.9;
  fill: none;
}
.bd__grain line,
.bd__grain path {
  stroke: #fff;
  stroke-width: 1.4;
}
.bd__grain text {
  fill: #fff;
  font-size: 11px;
}
.bd__bg {
  fill: var(--card);
}
.bd__lbl {
  font-size: 11px;
  fill: var(--ink-3) !important;
  letter-spacing: 0.04em;
}
.docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.doc {
  display: grid;
  grid-template-columns: 44px 1fr auto 20px;
  gap: 16px;
  align-items: center;
  padding: 10px 16px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color var(--t-fast);
}
.doc:hover {
  border-color: var(--ink);
}
.doc__n {
  font-size: 15px;
  font-weight: 500;
}
.doc__s {
  font-size: 11.5px;
  color: var(--ink-3);
}
.doc .ic {
  width: 18px;
  height: 18px;
  transition: transform var(--t) var(--ease-out);
}
.doc:hover .ic {
  transform: translateY(2px);
}
.bands {
  display: grid;
  border-top: 1px solid var(--line-2);
}
.band {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 150px 150px 150px auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.band__sw {
  position: relative;
  display: block;
  width: 64px;
  height: 44px;
  overflow: hidden;
}
.band__sw img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__sw i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(0, 0, 0, 0.18);
}
.band__info {
  display: grid;
  gap: 2px;
}
.band__sku {
  font-size: 11.5px;
  color: var(--ink-3);
}
.band__info b {
  font-weight: 500;
  font-size: 15px;
}
.band__meta {
  font-size: 13px;
  color: var(--ink-3);
}
.band__price .price strong {
  font-size: 17px;
}
.bands__note {
  margin-top: 20px;
}
.pdp-rel {
  --w: minmax(260px, calc(100% / 3.3));
}
.pdp-similar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.pdp-work {
  background: var(--paper-2);
}
.pdp-work__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.pdp-work__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pdp-work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp-work__copy .lead {
  margin: 20px 0 32px;
}
.pdp-work__copy .row {
  gap: 24px;
}

/* Mobilna traka za kupovinu */
.buybar {
  display: none;
}
@media (max-width: 900px) {
  .buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 30px -18px rgba(23, 26, 28, 0.35);
    transform: translateY(110%);
    transition: transform 0.45s var(--ease-out);
  }
  .buybar.is-on {
    transform: none;
  }
  .buybar__p {
    display: grid;
    gap: 2px;
  }
  .buybar__p .mono {
    font-size: 10.5px;
    color: var(--ink-3);
  }
  .buybar__p .price__tag,
  .buybar__p .price__b2b s {
    display: none;
  }
  .buybar .btn {
    height: 52px;
    flex: none;
  }
  .has-buybar .dock {
    bottom: 90px;
  }
  .has-buybar .toasts {
    bottom: 86px;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(15, 17, 18, 0.96);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox__in {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 64px 88px;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox .ibtn {
  color: var(--paper);
  position: absolute;
}
.lightbox .ibtn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lightbox__x {
  top: 16px;
  right: 16px;
}
.lightbox__nav--p {
  left: 16px;
  top: 50%;
}
.lightbox__nav--n {
  right: 16px;
  top: 50%;
}
.lightbox__cap {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(246, 245, 242, 0.6);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .pdp__info-in {
    position: static;
  }
  .band {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .band .stock {
    grid-column: 2;
  }
  .band__price {
    grid-column: 3;
    grid-row: 1;
  }
  .band .qty {
    grid-column: 2;
  }
  .band .btn {
    grid-column: 3;
  }
  .pdp-similar {
    grid-template-columns: repeat(3, 1fr);
  }
  .pdp-nav__buy {
    display: none;
  }
}
@media (max-width: 900px) {
  .pdp-crumbs .crumbs {
    display: none;
  }
  .pdp-back {
    display: inline-flex;
  }
  .pdp-crumbs {
    padding-block: 12px;
  }
  .pdp__gallery {
    grid-template-columns: 1fr;
    margin-inline: calc(var(--gutter) * -1);
    gap: 10px;
  }
  .pdp__stage {
    grid-column: 1;
    aspect-ratio: 1 / 1;
  }
  .pdp__stage .crop {
    display: none;
  }
  .pdp__thumbs {
    grid-column: 1;
    grid-row: 2;
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: 64px;
    overflow-x: auto;
    padding: 4px var(--gutter);
    scrollbar-width: none;
  }
  .pdp__cap,
  .pdp__hint {
    display: none;
  }
  .vopts {
    grid-template-columns: repeat(3, 1fr);
  }
  .vopts--2 {
    grid-template-columns: 1fr 1fr;
  }
  .pdp__cta {
    grid-template-columns: 128px 1fr 56px;
  }
  .pdp-sec {
    grid-template-columns: 1fr;
  }
  .pdp-sec > .carousel,
  .pdp-sec > .pdp-similar {
    grid-column: 1;
  }
  .pdp-about,
  .pdp-tech,
  .docs,
  .pdp-work__grid {
    grid-template-columns: 1fr;
  }
  .pdp-similar {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdp-rel {
    --w: 72%;
  }
}
@media (max-width: 480px) {
  .pdp__cta {
    grid-template-columns: 1fr 56px;
  }
  .pdp__cta .qty {
    grid-column: 1 / -1;
  }
  .pdp__cta2 {
    flex-direction: column;
  }
  .pdp__cta2 .btn {
    flex: none;
    width: 100%;
  }
  .band {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .band__price,
  .band .btn,
  .band .qty,
  .band .stock {
    grid-column: 2;
    grid-row: auto;
  }
}

/* ---------- Paginacija kataloga ---------- */
.cpager { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(28px, 3vw, 44px); padding-top: 20px; border-top: 1px solid var(--line); }
.cpager__info { font-size: 12.5px; color: var(--ink-3); }
.cpager__info b { color: var(--ink); font-weight: 500; }
.cpager__pages { display: flex; align-items: center; gap: 4px; }
.cpager__nums { display: flex; align-items: center; gap: 2px; margin: 0 8px; }
.cpager__nums button { min-width: 42px; height: 42px; padding: 0 8px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); border: 1px solid transparent; border-radius: var(--r); transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast); }
.cpager__nums button:hover { border-color: var(--line-3); color: var(--ink); }
.cpager__nums button[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cpager__gap { padding: 0 4px; color: var(--ink-4); font-family: var(--f-mono); font-size: 13px; }
.cpager__arrow { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; font-size: 14px; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color var(--t-fast), background-color var(--t-fast), opacity var(--t-fast); }
.cpager__arrow .ic { width: 16px; height: 16px; }
.cpager__arrow:hover:not(:disabled) { border-color: var(--ink); background: var(--card); }
.cpager__arrow:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 720px) {
  .cpager { justify-content: center; }
  .cpager__info { width: 100%; text-align: center; order: 2; }
  .cpager__arrow span { display: none; }
  .cpager__arrow { padding: 0 12px; }
  .cpager__nums { margin: 0 4px; }
  .cpager__nums button { min-width: 38px; height: 38px; }
}
