/* ==========================================================================
   Homecentar — glavni stilovi
   Tokeni su izvedeni iz logotipa (zelena #228C42) i prirodnih materijala doma.
   ========================================================================== */

:root {
  --brand: #1f8a40;          /* zelena iz logotipa */
  --brand-ink: #17703a;      /* tamnija zelena za tekst i hover (AA na bijelom) */
  --forest: #14402a;         /* duboka šumska — glavni tekst naslova, primarno dugme */
  --ink: #23302a;            /* tekst */
  --muted: #5d6b63;          /* sekundarni tekst */
  --paper: #ffffff;
  --linen: #f2f4ee;          /* pozadina fotografija i nijansirane sekcije */
  --linen-2: #e8ece3;
  --line: #dde3d8;
  --line-strong: #c5cec0;
  --oak: #a8773c;            /* topli akcent: brojač košarice, oznake */
  --danger: #b3261e;
  --viber: #7360f2;
  --viber-ink: #5a46d6;

  --font-ui: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  --r-s: 6px;
  --r-m: 10px;
  --r-l: 14px;
  --shadow-pop: 0 18px 50px -18px rgba(20, 64, 42, .35), 0 2px 8px rgba(20, 64, 42, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--forest); margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--forest); color: #fff; padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 20px; height: 20px; flex: none; }
.noscript { padding: 16px; background: #fff3cd; text-align: center; }

/* ----------------------------------------------------------------- dugmad */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-s);
  font-weight: 600; font-size: .95rem; line-height: 1.15; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: #0e2f1f; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-ink); }
.btn--ghost { background: var(--paper); color: var(--forest); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--forest); }
.btn--viber { background: var(--viber); color: #fff; }
.btn--viber:hover { background: var(--viber-ink); }
.btn--viber-line { background: var(--paper); color: var(--viber-ink); border-color: #cfc8fb; }
.btn--viber-line:hover { border-color: var(--viber); background: #f6f4ff; }
.btn .i { width: 18px; height: 18px; }

.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--r-s); background: transparent; color: var(--forest);
}
.iconbtn:hover { background: var(--linen); }
.iconbtn--line { border: 1px solid var(--line-strong); background: var(--paper); }
.link { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- top bar */
.topbar { background: var(--forest); color: #dfe9e2; font-size: .82rem; }
.topbar__in { display: flex; align-items: center; gap: 22px; min-height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a.topbar__item:hover { color: #fff; }
.topbar .i { width: 15px; height: 15px; opacity: .8; }
.topbar__social { margin-left: auto; display: flex; gap: 10px; }
.topbar__social a { color: inherit; display: inline-flex; }
.topbar__social a:hover { color: #fff; }

/* ----------------------------------------------------------------- header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.header__menu { display: none; margin-left: -10px; }
.logo { flex: none; display: block; }
.logo img { width: 190px; height: auto; }
.search { position: relative; flex: 1; max-width: 640px; margin: 0 auto; }
.search input {
  width: 100%; height: 46px; padding: 0 44px 0 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--linen);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #7b877f; }
.search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,138,64,.15); }
.search input::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.search__clear { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: var(--r-s); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-s);
  box-shadow: var(--shadow-pop); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0 0; text-align: left;
}
.suggest__label { padding: 8px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest ul { list-style: none; margin: 0; padding: 0; }
.suggest li button, .suggest li a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; border: 0; background: none; text-align: left; color: var(--ink); line-height: 1.3; }
.suggest li button:hover, .suggest li button.is-active, .suggest li a:hover, .suggest li a.is-active { background: var(--linen); }
.suggest mark { background: none; color: var(--brand-ink); font-weight: 700; }
.suggest__cats button, .suggest__cats a { min-height: 40px; font-weight: 600; color: var(--forest); }
.suggest__cats .i { width: 18px; height: 18px; color: var(--muted); }
.suggest__cats small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: .8rem; white-space: nowrap; }
.suggest__img { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.suggest__img img { width: 42px; height: 42px; object-fit: contain; }
.suggest__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.suggest__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .93rem; }
.suggest__txt small { font-size: .76rem; color: #87928b; }
.suggest__price { flex: none; font-weight: 700; color: var(--forest); font-size: .95rem; white-space: nowrap; }
.suggest__price small { font-size: .72rem; margin-left: 2px; font-weight: 600; }
.suggest__price .price--ask { font-size: .8rem; font-weight: 600; color: var(--muted); }
.suggest__all { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 6px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: var(--linen); color: var(--forest); font-weight: 600; }
.suggest__all:hover, .suggest__all.is-active { background: var(--linen-2); }
.suggest__all .i { width: 18px; height: 18px; }
.suggest__empty { padding: 14px 16px 18px; color: var(--muted); font-size: .92rem; }
.field--suggest { position: relative; }
.suggest--city { top: 100%; margin-top: 4px; max-height: 250px; z-index: 20; }
.suggest--city li button { padding: 8px 12px; }
.suggest--city .suggest__name { font-size: .92rem; }
.suggest--city .suggest__name small { color: var(--muted); font-weight: 400; }
.suggest--city .suggest__txt > small { color: var(--brand-ink); font-weight: 600; font-size: .78rem; }
.header__viber { display: inline-flex; align-items: center; gap: 6px; color: var(--viber-ink); font-weight: 600; text-decoration: none; padding: 10px 8px; border-radius: var(--r-s); }
.header__viber:hover { background: #f4f2ff; }
.cartbtn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px; border: 0; border-radius: var(--r-s);
  background: var(--forest); color: #fff; font-weight: 600;
}
.cartbtn:hover { background: #0e2f1f; }
.cartbtn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--oak); color: #fff; font-size: .78rem; display: inline-grid; place-items: center;
}
.cartbtn.is-bump .cartbtn__count { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* kategorije u headeru */
.catnav { border-top: 1px solid var(--line); position: relative; }
.catnav__in { display: flex; align-items: center; gap: 4px; height: 48px; }
.catnav__all {
  white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; margin-left: -10px;
  border: 0; border-radius: var(--r-s); background: var(--linen); color: var(--forest); font-weight: 600; font-size: .92rem;
}
.catnav__all[aria-expanded="true"] { background: var(--forest); color: #fff; }
.catnav__list { display: flex; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 0; overflow: hidden; flex-wrap: wrap; height: 36px; }
.catnav__list button, .catnav__list a {
  height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-s); background: none;
  font-size: .92rem; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.catnav__list button:hover, .catnav__list button.is-active, .catnav__list a:hover, .catnav__list a.is-active { background: var(--linen); color: var(--forest); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.mega__in { display: grid; grid-template-columns: 280px 1fr; gap: 0; }
.mega__depts, .mega__panel { max-height: min(70vh, 620px); }
.mega__depts { list-style: none; margin: 0; padding: 14px 0; border-right: 1px solid var(--line); overflow: auto; }
.mega__depts button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 16px 9px 0; border: 0; background: none; text-align: left; font-weight: 500; color: var(--ink); border-radius: 0;
}
.mega__depts button small { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.mega__depts button.is-active { color: var(--brand-ink); font-weight: 600; }
.mega__depts button.is-active::after { content: ""; position: absolute; }
.mega__panel { padding: 20px 0 24px 28px; overflow: auto; }
.mega__panel h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 4px; }
.mega__all { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.mega__cols { columns: 3 220px; column-gap: 28px; }
.mega__group { break-inside: avoid; margin: 0 0 18px; }
.mega__group > button, .mega__group > a { display: block; padding: 0; border: 0; background: none; text-align: left; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
.mega__group ul { list-style: none; margin: 0; padding: 0; }
.mega__group li button, .mega__group li a { padding: 3px 0; border: 0; background: none; text-align: left; color: var(--muted); font-size: .92rem; }
.mega button:hover, .mega a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 2vw, 24px); background: linear-gradient(var(--paper), var(--paper)); }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; max-width: 13ch; }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 46ch; margin: 18px 0 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.hero__facts div { min-width: 0; }
.hero__facts dt { font-size: .85rem; color: var(--muted); }
.hero__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--forest); }

/* "sobe" — mozaik stvarnih proizvoda po odjelima */
.hero__rooms { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 12px; min-height: 440px; }
.room {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-m); background: var(--linen);
  text-decoration: none; color: var(--forest); border: 0; padding: 0; text-align: left; isolation: isolate;
}
.room:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
.room:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.room:nth-child(3) { grid-column: 4 / 5; grid-row: 2 / 3; }
.room:nth-child(4) { grid-column: 5 / 6; grid-row: 2 / 3; }
.room:nth-child(5) { grid-column: 6 / 7; grid-row: 2 / 3; }
.room img { position: absolute; inset: 10% 8% 26%; width: 84%; height: 64%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.room:nth-child(1) img { inset: 8% 8% 18%; height: 74%; }
.room:hover img { transform: scale(1.04); }
.room__label { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; }
.room__label strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.15; }
.room:nth-child(1) .room__label strong { font-size: 1.55rem; }
.room__label span { font-size: .82rem; color: var(--muted); }
.room:nth-child(n+3) .room__label strong { font-size: .98rem; font-family: var(--font-ui); font-weight: 600; }
.room:nth-child(n+3) .room__label span { display: none; }

/* ----------------------------------------------------------------- sekcije */
.section { padding: clamp(40px, 5vw, 72px) 0; }
.section--tint { background: var(--linen); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }

.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.cat {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; text-align: left; color: inherit;
  transition: border-color .15s, box-shadow .2s;
}
.cat:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px -16px rgba(20,64,42,.4); }
.cat__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-s); background: var(--linen); display: grid; place-items: center; overflow: hidden; }
.cat__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.cat__name { font-weight: 600; color: var(--forest); line-height: 1.25; }
.cat__count { font-size: .84rem; color: var(--muted); margin-top: -6px; }

.rail__nav { display: flex; gap: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 2px 0 4px; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.rail .card__name { min-height: calc(2 * 1.3em); }
.rail__nav .iconbtn[disabled] { opacity: .35; cursor: default; }
[data-drag-scroll] img { -webkit-user-drag: none; user-select: none; }
.is-dragging { cursor: grabbing !important; user-select: none; scroll-snap-type: none !important; }
.is-dragging * { pointer-events: none; }

/* ----------------------------------------------------------------- katalog */
.catalog__head { margin-bottom: 20px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumbs button, .crumbs a { border: 0; background: none; padding: 0; color: var(--brand-ink); }
.crumbs button:hover, .crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--line-strong); }
.catalog__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }

.filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.filters__head { display: none; }
.filters__body { overflow: auto; padding: 18px 18px 8px; overscroll-behavior: contain; }
.filters__foot { display: none; }
.fgroup { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; margin-bottom: 0; }
.fgroup__title { font-size: .9rem; margin-bottom: 10px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input, .field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff;
}
.price-range input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,138,64,.15); }

.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 10px; }
.tree__row { display: flex; align-items: center; gap: 2px; }
.tree__toggle { width: 24px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); padding: 0; flex: none; }
.tree__toggle .i { width: 16px; height: 16px; transition: transform .15s; transform: rotate(-90deg); }
.tree__toggle[aria-expanded="true"] .i { transform: none; }
.tree__toggle.is-leaf { visibility: hidden; }
.tree__btn { flex: 1; min-width: 0; display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; border: 0; border-radius: 4px; background: none; text-align: left; font-size: .92rem; color: var(--ink); line-height: 1.3; }
.tree__btn small { color: var(--muted); font-variant-numeric: tabular-nums; }
.tree__btn:hover { background: var(--linen); }
.tree__btn.is-active { background: var(--forest); color: #fff; }
.tree__btn.is-active small { color: #cfe0d5; }
.tree__btn.is-trail { color: var(--forest); font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.toolbar__filters { display: none; }
.toolbar__count { margin: 0; color: var(--muted); font-size: .95rem; }
.toolbar__count strong { color: var(--forest); }
.sortsel { margin-left: auto; position: relative; }
.sortsel select { height: 42px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2314402a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; font-weight: 500; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; font-size: .88rem; }
.chip button, .chip a { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; padding: 0; color: var(--muted); }
.chip button:hover, .chip a:hover { background: var(--linen); color: var(--forest); }
.chip .i { width: 14px; height: 14px; }
.chips .link { font-size: .88rem; margin-left: 4px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 16px; }

/* ----------------------------------------------------------------- kartica proizvoda */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: transparent; }
.card__media {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; overflow: hidden;
}
.card__media img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; object-position: center; transition: transform .35s var(--ease), opacity .3s; opacity: 0; background: #fff; }
.card:hover .card__media { border-color: var(--line-strong); }
.card__media img.is-loaded { opacity: 1; }
.card:hover .card__media img { transform: scale(1.035); }
.noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #8c978f; font-size: .8rem; text-align: center; padding: 12px; }
.noimg .i { width: 34px; height: 34px; }
.badge-new { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 3px 8px; background: var(--oak); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; border-radius: 3px; }
.badge-new--count { background: var(--brand); text-transform: none; letter-spacing: 0; font-size: .74rem; }
.pm__meta .badge-new { position: static; display: inline-block; }
.dot-new { display: none; }
.card__flag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 4px; background: #fff; color: var(--muted); font-size: .75rem; font-weight: 600; border: 1px solid var(--line); }
.card__gallery { position: absolute; right: 10px; top: 10px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.9); color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 2px 0; flex: 1; }
.card__name { margin: 0; font-size: .97rem; font-weight: 600; line-height: 1.3; }
.card__name button, .card__name a { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--forest); overflow-wrap: anywhere; }
.card__name button:hover, .card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__name button:focus-visible, .card__name a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.card__desc { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card__sku { font-size: .75rem; color: #87928b; margin: 0; }
.card__price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 1.22rem; font-weight: 700; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: .78em; font-weight: 600; margin-left: 2px; }
.price--old { font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.price--ask { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stock { font-size: .8rem; font-weight: 600; }
.stock--out { color: var(--oak); }
.card__actions { display: grid; grid-template-columns: 1fr 44px 44px; gap: 6px; margin-top: 10px; }
.card__actions .btn { min-height: 42px; padding: 0 10px; font-size: .9rem; }
.card__actions .iconbtn { width: 44px; height: 42px; border: 1px solid var(--line-strong); }
.card__actions .iconbtn:hover { border-color: var(--forest); background: #fff; }
.card__actions .iconbtn--viber { color: var(--viber-ink); border-color: #d6d0fb; }
.card__actions .iconbtn--viber:hover { border-color: var(--viber); background: #f6f4ff; }
.card__actions--ask { grid-template-columns: 1fr; }
.card.is-skeleton .card__media { background: linear-gradient(90deg, var(--linen) 0, var(--linen-2) 50%, var(--linen) 100%) 0 0/200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ----------------------------------------------------------------- pager */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager button, .pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager button:hover, .pager a:hover { border-color: var(--forest); }
.pager button[aria-current="page"], .pager a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.pager span { border-color: transparent; color: var(--muted); }
.pager .pager__step { padding: 0 14px; }

.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-m); background: var(--linen); }
.empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 48ch; margin: 0 auto 20px; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ----------------------------------------------------------------- koraci, o nama, footer */
.section__head--stack { flex-wrap: wrap; align-items: start; }
.section__sub { color: var(--muted); margin: 6px 0 0; flex-basis: 100%; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 24px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.steps__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--linen); color: var(--brand-ink); margin-bottom: 16px; border-radius: var(--r-s); }
.steps__icon .i { width: 26px; height: 26px; }
.steps__num { position: absolute; right: 18px; top: 18px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps h3 { margin-bottom: 6px; font-size: 1.05rem; }
.steps p { color: var(--muted); margin: 0; font-size: .93rem; }
.delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.delivery__item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--forest); color: #d6e2da; border-radius: var(--r-m); }
.delivery__item .i { width: 26px; height: 26px; color: #8fd4a3; flex: none; margin-top: 2px; }
.delivery__item strong { display: block; color: #fff; margin-bottom: 3px; }
.delivery__item span { font-size: .88rem; line-height: 1.45; }

.about__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }
.about__text h2 { margin-bottom: 18px; }
.about__text p { max-width: 64ch; color: #3b4a42; }
.feats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-s); }
.feats .i { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 1px; }
.feats strong { display: block; color: var(--forest); font-size: .95rem; }
.feats strong span { display: inline; }
.feats span { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.contact { font-style: normal; padding: 26px; border-radius: var(--r-l); background: var(--linen); }
.contact h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 18px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: #fff; border: 1px solid var(--line); color: var(--brand-ink); border-radius: var(--r-s); }
.contact__ico .i { width: 20px; height: 20px; }
.contact__list small { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 2px 0 2px; }
.contact__list a { color: var(--forest); font-weight: 600; text-decoration: none; font-size: 1.02rem; }
.contact__list a:hover { text-decoration: underline; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact__social { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.contact__social a { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); text-decoration: none; font-weight: 600; font-size: .9rem; }
.contact__social a:hover { text-decoration: underline; }
.contact__social .i { width: 18px; height: 18px; color: var(--brand-ink); }

/* ----------------------------------------------------------------- podnožje */
.footer { font-size: .93rem; }
.footer__usp { background: #fff; border-top: 1px solid var(--line); }
.usp { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.usp li { display: flex; align-items: center; gap: 14px; padding: 22px 20px 22px 0; border-right: 1px solid var(--line); margin-right: 20px; }
.usp li:last-child { border-right: 0; margin-right: 0; }
.usp .i { width: 30px; height: 30px; color: var(--brand); flex: none; }
.usp strong { display: block; color: var(--forest); font-size: .95rem; }
.usp span { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }

.footer__main { background: var(--forest); color: #d6e2da; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1.25fr .8fr 1.15fr; gap: 48px; padding-top: 56px; padding-bottom: 52px; }
.footer__logo { width: 200px; height: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__brand > p { color: #b9cbc0; max-width: 42ch; margin-bottom: 22px; }
.footer__stats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border: 1px solid rgba(255,255,255,.16); }
.footer__stats li { padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.16); }
.footer__stats li:last-child { border-right: 0; }
.footer__stats strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.footer__stats span { display: block; font-size: .78rem; color: #a7bcaf; margin-top: 2px; }
.footer__follow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__follow > span { color: #a7bcaf; font-size: .84rem; margin-right: 6px; }
.footer__follow a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; border-radius: var(--r-s); }
.footer__follow a:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.footer__follow .i { width: 17px; height: 17px; }
.footer h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; color: #fff; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col--cats ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer__col--cats .footer__more { grid-column: 1 / -1; margin-top: 6px; font-weight: 600; color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.footer__col ul a, .footer__col ul .link { color: #d6e2da; text-decoration: none; font-weight: 400; }
.footer__col ul a:hover, .footer__col ul .link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__col ul button { background: none; border: 0; padding: 0; text-align: left; }
.footer__contact { border: 1px solid rgba(255,255,255,.18); padding: 22px 22px 18px; background: rgba(255,255,255,.04); }
.footer__contact h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.footer__contact-lead { color: #b9cbc0; font-size: .88rem; margin-bottom: 14px; }
.footer__phone { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.footer__phone .i { width: 24px; height: 24px; color: var(--brand); }
.footer__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__contact .btn--viber { margin-bottom: 12px; }
.footer__hours { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; color: #d6e2da; }
.footer__hours .i { width: 17px; height: 17px; color: var(--brand); }
.footer__hours strong { color: #fff; }
.footer__mail { display: inline-flex; align-items: center; gap: 8px; color: #d6e2da; text-decoration: none; font-size: .92rem; margin-bottom: 16px; }
.footer__mail:hover { color: #fff; text-decoration: underline; }
.footer__mail .i { width: 17px; height: 17px; }
.footer__map { border: 1px solid rgba(255,255,255,.18); background: #0e2f1f; line-height: 0; }
.footer__mapbtn { display: grid; place-items: center; gap: 4px; width: 100%; height: 140px; border: 0; background: rgba(255,255,255,.04); color: #fff; line-height: 1.3; cursor: pointer; }
.footer__mapbtn:hover { background: rgba(255,255,255,.1); }
.footer__mapbtn .i { width: 26px; height: 26px; color: var(--brand); }
.footer__mapbtn span { font-weight: 600; }
.footer__mapbtn small { color: #a7bcaf; font-size: .76rem; }
.footer__h3-gap { margin-top: 22px; }
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; background: #fff; border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 30px rgba(20,64,42,.12); }
.cookiebar__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.cookiebar p { margin: 0; font-size: .88rem; color: var(--ink); }
.cookiebar a { color: var(--brand-ink); }
.cookiebar .btn { flex: none; }
@media (max-width: 640px) { .cookiebar__in { flex-direction: column; align-items: stretch; } .cookiebar .btn { width: 100%; } }
.footer__map iframe { border: 0; width: 100%; height: 140px; display: block; filter: saturate(.85); }
.footer__addr { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .86rem; color: #b9cbc0; }
.footer__addr .i { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 1px; }
.footer__addr span { flex: 1; }
.footer__addr a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer__bottombar { background: #0e2f1f; color: #a7bcaf; border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; font-size: .82rem; }
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; flex: none; }
.footer__legal a { color: #d6e2da; text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); }
.footer__top .i { width: 16px; height: 16px; }

/* ----------------------------------------------------------------- overlay osnova */
.modal, .drawer, .sheet { position: fixed; inset: 0; z-index: 100; }
.modal::before, .drawer::before, .sheet::before {
  content: ""; position: absolute; inset: 0; background: rgba(16, 32, 24, .45); opacity: 0; transition: opacity .25s;
}
.is-open.modal::before, .is-open.drawer::before, .is-open.sheet::before { opacity: 1; }

/* drawer */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px -20px rgba(0,0,0,.3);
  transform: translateX(100%); transition: transform .32s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 22px; }
.drawer__head h2 { font-size: 1.5rem; }
.drawer__body { flex: 1; overflow: auto; padding: 4px 22px 20px; overscroll-behavior: contain; }
.drawer__body:focus { outline: none; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px 22px calc(16px + env(safe-area-inset-bottom)); background: #fff; display: grid; gap: 10px; }
.drawer__foot:empty { display: none; }

.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0 22px 14px; border-bottom: 1px solid var(--line); }
.progress:empty { display: none; }
.progress li { font-size: .74rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.progress li.is-done::before, .progress li.is-current::before { background: var(--brand); }
.progress li.is-current { color: var(--forest); font-weight: 700; }

.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line.is-new { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: #eaf5ec; } 100% { background: transparent; } }
.line__img { width: 72px; height: 72px; border-radius: var(--r-s); background: var(--linen); position: relative; overflow: hidden; border: 0; padding: 0; }
.line__img img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.line__img .noimg .i { width: 22px; height: 22px; }
.line__img .noimg span { display: none; }
.line__name { font-weight: 600; color: var(--forest); font-size: .93rem; line-height: 1.3; margin: 0 0 2px; overflow-wrap: anywhere; }
.line__meta { font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.line__total { font-weight: 700; color: var(--forest); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line__remove { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: .8rem; }
.line__remove:hover { color: var(--danger); }
.line__remove .i { width: 15px; height: 15px; }
.line--compact { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 10px 0; }
.line--compact .line__img { width: 52px; height: 52px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-s); height: 36px; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: none; display: grid; place-items: center; color: var(--forest); }
.qty button:hover { background: var(--linen); }
.qty button[disabled] { opacity: .35; pointer-events: none; }
.qty .i { width: 16px; height: 16px; }
.qty input { width: 40px; height: 34px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--lg { height: 48px; }
.qty--lg button { width: 44px; height: 46px; }
.qty--lg input { width: 48px; height: 46px; font-size: 1.05rem; }

.sum { display: grid; gap: 6px; font-size: .95rem; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; }
.sum__row span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.sum__row--total { font-size: 1.1rem; font-weight: 700; color: var(--forest); padding-top: 6px; border-top: 1px solid var(--line); }
.sum__note { font-size: .82rem; color: var(--muted); margin: 0; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.cart-empty { text-align: center; padding: 48px 8px; }
.cart-empty .i { width: 46px; height: 46px; color: var(--line-strong); margin: 0 auto 12px; }
.cart-empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 6px; }
.cart-empty p { color: var(--muted); }

.notice { padding: 12px 14px; border-radius: var(--r-s); background: var(--linen); font-size: .88rem; color: var(--ink); margin: 14px 0; }
.notice--warn { background: #fbf3e6; color: #6b4a1c; }
.notice strong { color: var(--forest); }
.choice { display: grid; gap: 10px; margin: 16px 0; }

/* forma */
.form { display: grid; gap: 14px; padding-top: 14px; }
.form h3 { font-size: 1rem; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.form [data-courier] { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--forest); }
.field label .optional { font-weight: 400; color: var(--muted); }
.check--note { margin: 2px 0 -4px; }
.shipinfo { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); display: grid; gap: 8px; }
.shipinfo p { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.shipinfo .i { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 1px; }
.shipinfo strong { color: var(--ink); font-weight: 600; }
.field textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.field__err { font-size: .8rem; color: var(--danger); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .field__err { display: block; }
.row2 { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: end; }
.opts { display: grid; gap: 10px; }
.opt {
  display: grid; grid-template-columns: 22px 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff;
}
.opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: #f6faf6; }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.opt .i { width: 24px; height: 24px; color: var(--forest); }
.opt strong { display: block; color: var(--forest); }
.opt span { display: block; font-size: .85rem; color: var(--muted); }
.form-errors { padding: 12px 14px; border-radius: var(--r-s); background: #fdecea; color: var(--danger); font-size: .88rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }

.review { display: grid; gap: 16px; }
.review h3 { font-size: .95rem; display: flex; justify-content: space-between; align-items: baseline; }
.review h3 button { font-size: .82rem; font-weight: 600; }
.review dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 6px 0 0; font-size: .92rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }

.done { text-align: center; padding: 22px 0 6px; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; background: #eaf5ec; color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.done__icon .i { width: 28px; height: 28px; }
.done h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; margin-bottom: 8px; }
.done p { color: var(--muted); }
.msgbox { width: 100%; min-height: 160px; max-height: 260px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--linen); font: .82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; color: var(--ink); }

/* ----------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 130; display: grid; grid-template-rows: auto 1fr auto; background: rgba(12, 22, 16, .97); color: #fff; opacity: 0; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; }
.lb__top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; min-height: 56px; }
.lb__title { font-size: .92rem; color: #cfdcd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__counter { font-size: .9rem; color: #fff; font-variant-numeric: tabular-nums; }
.lb__close { color: #fff; background: rgba(255,255,255,.1); }
.lb__close:hover { background: rgba(255,255,255,.22); }
.lb__stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 8px 72px; cursor: zoom-out; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #fff; transition: opacity .15s; cursor: default; }
.lb__img.is-switching { opacity: .35; }
.lb__zone { position: absolute; top: 0; bottom: 0; width: 45%; border: 0; background: none; color: #fff; padding: 0; cursor: pointer; display: flex; align-items: center; }
.lb__zone--prev { left: 0; justify-content: flex-start; padding-left: 14px; }
.lb__zone--next { right: 0; justify-content: flex-end; padding-right: 14px; }
.lb__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); background: rgba(12,22,16,.55); border-radius: var(--r-s); transition: background .15s, border-color .15s; }
.lb__arrow .i { width: 24px; height: 24px; }
.lb__zone:hover .lb__arrow { background: rgba(255,255,255,.18); border-color: #fff; }
.lb__zone:focus-visible { outline: none; }
.lb__zone:focus-visible .lb__arrow { outline: 2px solid #fff; outline-offset: 2px; }
.lb__thumbs { display: flex; gap: 8px; justify-content: center; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); overflow-x: auto; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { flex: 0 0 60px; height: 60px; padding: 0; border: 2px solid transparent; background: #fff; opacity: .55; overflow: hidden; border-radius: var(--r-s); }
.lb__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--brand); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 960px) {
  .lb__stage { padding: 4px 0; }
  .lb__zone { width: 38%; align-items: flex-end; padding-bottom: 12px; }
  .lb__arrow { width: 40px; height: 40px; }
  .lb__thumbs button { flex-basis: 48px; height: 48px; }
}
@media (hover: none) and (pointer: coarse) {
  .lb__arrow { opacity: .75; }
}
.pm__slide img { cursor: zoom-in; }

/* ----------------------------------------------------------------- modal proizvoda */
.modal { display: grid; place-items: center; padding: 24px; }
.modal__panel {
  position: relative; width: min(1120px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .22s, transform .28s var(--ease);
  overscroll-behavior: contain;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal--small .modal__panel { width: min(520px, 100%); padding: 24px; }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 3; background: #fff; }
.pm { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pm__gallery { padding: 24px; background: #fff; position: sticky; top: 0; align-self: start; }
.pm__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-m); background: var(--linen); overflow: hidden; }
.pm__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; cursor: grab; }
.pm__track::-webkit-scrollbar { display: none; }
.pm__slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.pm__slide img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; mix-blend-mode: multiply; }
.pm__stage > .noimg { position: absolute; }
.pm__nav, .pm__counter { z-index: 2; }
.pm__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.92); border: 1px solid var(--line); }
.pm__nav--prev { left: 10px; }
.pm__nav--next { right: 10px; }
.pm__counter { position: absolute; right: 12px; bottom: 10px; font-size: .78rem; color: var(--muted); background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.pm__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 960px) {
  .pm__thumbs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .pm__thumbs::-webkit-scrollbar { display: none; }
  .pm__thumbs button { flex: 0 0 60px; }
  .pm__nav { display: none; }
}
.pm__thumbs button { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--linen); overflow: hidden; }
.pm__thumbs button[aria-current="true"] { border-color: var(--forest); box-shadow: 0 0 0 1px var(--forest) inset; }
.pm__thumbs img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pm__info { padding: 32px 32px 32px 8px; display: flex; flex-direction: column; gap: 14px; }
.pm__crumbs { font-size: .84rem; color: var(--muted); padding-right: 48px; }
.pm__crumbs button, .pm__crumbs a { border: 0; background: none; padding: 0; color: var(--brand-ink); font-size: inherit; }
.pm__crumbs button:hover { text-decoration: underline; }
.pm__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.pm__short { color: var(--muted); margin: -4px 0 0; }
.pm__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted); margin: 0; }
.pm__meta b { color: var(--forest); font-weight: 600; }
.pm__price .price { font-size: 1.9rem; }
.pm__buy { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-m); background: var(--linen); }
.pm__one { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9rem; color: var(--ink); }
.pm__one .i { width: 20px; height: 20px; color: var(--brand); flex: none; }
.pm__buyrow { display: flex; gap: 10px; }
.pm__buyrow .btn { flex: 1; }
.pm__desc { border-top: 1px solid var(--line); padding-top: 16px; }
.pm__desc h3 { margin-bottom: 10px; }
.rich { font-size: .95rem; color: #34423b; overflow-wrap: anywhere; }
.rich h3, .rich h4 { font-family: var(--font-ui); font-size: 1rem; margin: 16px 0 6px; }
.rich ul, .rich ol { padding-left: 20px; margin: 0 0 1em; }
.rich li { margin-bottom: 4px; }
.rich table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: .9rem; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.rich.is-loading { color: var(--muted); }

.vm h2 { font-size: 1.45rem; margin-bottom: 6px; padding-right: 40px; }
.vm p { color: var(--muted); font-size: .92rem; }
.vm__actions { display: grid; gap: 10px; margin-top: 14px; }
.vm__hint { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.vm__qty { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }

/* mobilni meni */
.sheet__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 92vw); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--ease); }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--line); }
.sheet__head img { width: 140px; height: auto; }
.sheet__body { overflow: auto; flex: 1; padding: 8px 0 20px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__row { display: flex; align-items: center; }
.mnav__row > button:first-child, .mnav__row > a:first-child { flex: 1; text-align: left; padding: 14px 18px; border: 0; background: none; font-weight: 600; color: var(--forest); }
.mnav__row small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.mnav__sub { list-style: none; margin: 0; padding: 0 0 10px 18px; }
.mnav__sub button, .mnav__sub a { width: 100%; text-align: left; padding: 9px 18px 9px 12px; border: 0; background: none; color: var(--ink); border-left: 1px solid var(--line); }
.mnav__links { display: grid; padding: 16px 18px; gap: 4px; }
.mnav__links a { padding: 10px 0; color: var(--forest); font-weight: 600; text-decoration: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 150; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-s); background: var(--forest); color: #fff; font-size: .92rem; box-shadow: var(--shadow-pop); }

/* ----------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .header__viber span { display: none; }
  .cartbtn__label { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__rooms { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__col--cats { grid-row: 2; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .usp li:nth-child(2) { border-right: 0; }
  .usp li { padding: 16px 16px 16px 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  html { scroll-padding-top: 120px; }
  .topbar { display: none; }
  .header__menu { display: grid; }
  .header__in { gap: 6px; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 10px; }
  .logo img { width: 140px; }
  .header__viber { margin-left: auto; padding: 8px; }
  .header__viber span { display: none; }
  .cartbtn { height: 44px; padding: 0 12px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 4px 0 0; }
  .search input { height: 44px; font-size: 16px; }
  .catnav { display: none; }
  .catalog__layout { grid-template-columns: 1fr; }
  .toolbar__filters { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 110; max-height: none; border: 0; border-radius: 0;
    transform: translateY(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 10px 18px; border-bottom: 1px solid var(--line); }
  .filters__head h3 { font-size: 1.15rem; }
  .filters__body { flex: 1; }
  .filters__foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .pm { grid-template-columns: 1fr; }
  .pm__gallery { position: static; padding: 16px 16px 0; }
  .pm__info { padding: 18px 18px 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .delivery { grid-template-columns: 1fr; }
  .about__in { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: minmax(200px, 42%); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero { padding-top: 22px; }
  .hero__rooms { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 130px 130px; min-height: 0; gap: 8px; }
  .room:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .room:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .room:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .room:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
  .room:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
  .room img, .room:nth-child(1) img { inset: 8% 10% 30%; width: 80%; height: 62%; }
  .room:nth-child(1) .room__label strong { font-size: 1.25rem; }
  .room:nth-child(2) .room__label strong { font-size: .98rem; font-family: var(--font-ui); font-weight: 600; }
  .room:nth-child(2) .room__label span { display: none; }
  .hero h1 { font-size: 2rem; max-width: none; }
  .hero__lead { font-size: 1rem; margin: 12px 0 18px; }
  .hero__facts { gap: 6px 18px; margin-top: 20px; padding-top: 14px; }
  .hero__facts div:last-child { flex-basis: 100%; }
  .hero__facts dd { font-size: .95rem; }
  .hero__cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
  .hero__cta .btn { min-height: 48px; padding: 0 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .cat { padding: 8px 8px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .card__actions { grid-template-columns: 1fr 1fr; }
  .card__actions .btn { grid-column: 1 / -1; }
  .card__actions .iconbtn { width: 100%; }
  .card__name { font-size: .9rem; }
  .card__desc, .card__sku { display: none; }
  .price { font-size: 1.08rem; }
  .card__gallery { display: none; }
  .rail { grid-auto-columns: 62%; }
  .toolbar { flex-wrap: wrap; }
  .toolbar__count { order: 3; flex-basis: 100%; }
  .sortsel select { max-width: 190px; }
  .drawer__panel { width: 100%; }
  .drawer__body { padding: 4px 16px 20px; }
  .drawer__foot { padding-left: 16px; padding-right: 16px; }
  .progress { padding: 0 16px 12px; }
  .drawer__head { padding-left: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { max-height: 94vh; border-radius: var(--r-l) var(--r-l) 0 0; transform: translateY(40px); }
  .modal--small .modal__panel { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .pm__buyrow { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; padding-bottom: 32px; }
  .footer__col--cats { grid-row: auto; }
  .footer__stats { grid-template-columns: repeat(3, 1fr); }
  .footer__stats li { padding: 10px 12px; }
  .footer__stats strong { font-size: 1.3rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { gap: 16px; }
  .usp { grid-template-columns: 1fr; }
  .usp li { border-right: 0; margin-right: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .usp li:last-child { border-bottom: 0; }
  .suggest { max-height: min(60vh, 480px); }
  .suggest__price { display: none; }
}
@media (max-width: 360px) {
  .logo img { width: 118px; }
  .grid { gap: 14px 8px; }
  .card__actions .btn { font-size: .84rem; padding: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .topbar, .header, .footer, .drawer, .modal, .sheet { display: none !important; }
}


/* ================= v2: stranice koje renderuje server ================= */
.catnav__list a, .mega a, .mnav__row > a, .mnav__sub a, .crumbs a, .chip a, .card__name a, .pager a, .suggest li a, .suggest__all, .room, .cat, .card__media, .tree__btn, .line__img { text-decoration: none; }
.cat { color: inherit; }
.suggest__all { text-decoration: none; }
.tree__row > ul, .tree li > ul { list-style: none; }
.tree li > ul[hidden] { display: none; }
.price-range__go { padding: 0 10px; height: 38px; }
/* stranica artikla (isti raspored kao modal) */
.product .crumbs { margin-bottom: 14px; }
.pm--page { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.pm--page .pm__gallery { top: 12px; }
.pm--page .pm__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.pm__ship { display: grid; gap: 8px; margin: 18px 0 0; padding: 14px 16px; background: var(--linen); border-radius: var(--r-m); font-size: .92rem; }
.pm__ship p { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.pm__ship .i { flex: 0 0 20px; width: 20px; height: 20px; color: var(--forest); margin-top: 1px; }
.pm__desc h2 { font-size: 1.05rem; margin: 0 0 10px; }
.pm__specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: .92rem; }
.pm__specs dt { color: var(--muted); } .pm__specs dd { margin: 0; }
.pm__meta a { color: var(--brand-ink); }
.grid--related { margin-top: 0; }
/* info stranice */
.info__wrap { max-width: 820px; }
.info h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); margin: 10px 0 20px; }
.info__body { font-size: 1rem; line-height: 1.65; }
.info__body h2 { font-size: 1.2rem; margin: 26px 0 8px; } .info__body h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.info__body .missing { background: #fff3cd; color: #6b4a1c; padding: 0 4px; }
.info__updated { color: var(--muted); font-size: .85rem; margin-top: 28px; }
.cookiebar__in .btn + .btn { margin-left: 8px; }
