/* Realističan ambijent (ambijent.html): fotografija prostora preko celog ekrana, plutajući "glass" panel desno (desktop) ili donji "sheet" (telefon).
   Tokeni boja, font i osnovni elementi (.eyebrow, .sr, .skip) su iz podovi.css; svetla i tamna tema prate sistem. */
.pg-amb { height: 100%; overflow: hidden; background: #0c1116; overscroll-behavior: none; }
.ab { position: fixed; inset: 0; --panel-w: 372px; --top: max(14px, env(safe-area-inset-top)); --bar-h: 46px; }

/* ───────── slika ───────── */
.ab-stage { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1a2129, #0c1116); touch-action: none; -webkit-user-select: none; user-select: none; }
.ab-pic { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; max-width: none; }
.ab-stage.can-pan { cursor: grab; }
.ab-stage.can-pan.dragging { cursor: grabbing; }
.ab-stage.comparing { cursor: ew-resize; }

/* ───────── gornja traka ───────── */
.ab-bar { position: absolute; z-index: 6; top: var(--top); left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.ab-bar > * { pointer-events: auto; }
.ab-chip { display: inline-flex; align-items: center; gap: 9px; height: var(--bar-h); min-width: 0; padding: 0 16px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-1); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
a.ab-chip:hover, button.ab-chip:hover { background: var(--surface); }
.ab-title { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 18px; }
.ab-title p { margin: 0; font-size: 9.5px; font-weight: 800; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.ab-title h1 { max-width: 40vw; overflow: hidden; font-size: 15.5px; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.ab-tools { display: flex; gap: 8px; margin-left: auto; }
.ab-tool { border-color: var(--glass-line); padding: 0 15px; }
.ab-tool__i { display: grid; place-items: center; }
.ab-tool .ico { width: 19px; height: 19px; }
.ab-tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
button.ab-tool[aria-pressed="true"]:hover { background: var(--ink); }

/* izbor svetla (varijante rendera): staklena traka sa dugmadima (ikonica + natpis) i „palcem“ koji klizi ispod izabranog; između naslova i alata */
.ab-chip.ab-light { position: relative; isolation: isolate; gap: 2px; margin-left: auto; padding: 3px; border-radius: 16px; }
.ab-light__thumb { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 0; width: var(--tw, 0); border-radius: 12px; background: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); opacity: 0; transform: translateX(var(--tx, 0)); }
.ab-light.has-thumb .ab-light__thumb { opacity: 1; }
.ab-light.is-ready .ab-light__thumb { transition: transform .38s cubic-bezier(.2, .8, .2, 1), width .38s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.ab-light__b { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 100%; min-width: 40px; padding: 0 13px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .25s; -webkit-tap-highlight-color: transparent; }
.ab-light__b:hover { color: var(--ink); }
.ab-light__b[aria-pressed="true"], .ab-light__b[aria-pressed="true"]:hover { color: var(--bg); }
.ab-light__b:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ab-light__i { position: relative; display: grid; place-items: center; }
.ab-light__b .ico { width: 18px; height: 18px; transition: opacity .2s; }
/* svetlo se učitava: prsten oko ikonice (slika ostaje stara do preliva) */
.ab-light__b.is-loading .ico { opacity: .35; }
.ab-light__b.is-loading .ab-light__i::after { content: ''; position: absolute; inset: -3px; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); border-radius: 50%; animation: ab-spin .7s linear infinite; }
/* uži ekran: ikonice, natpis samo kod izabranog */
@media (max-width: 1180px) {
  .ab-light__b { padding: 0 11px; }
  .ab-light__b:not([aria-pressed="true"]) .ab-light__t { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ab-light.is-ready .ab-light__thumb { transition: none; } }

/* izbor ambijenta: natpis u gornjem levom uglu je dugme (preko celog natpisa) koje otvara mali izbornik spremnih ambijenata */
.ab-title { position: relative; }
.ab-title--menu { padding-right: 40px; transition: background-color .2s, box-shadow .2s; }
.ab-title--menu:hover, .ab-title.is-open { background: var(--surface); }
.ab-amb__btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 13px 0 0; border: 0; border-radius: inherit; background: transparent; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ab-amb__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ab-amb__chev { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.ab-amb__chev .ico { width: 14px; height: 14px; stroke-width: 2.4; transform: rotate(90deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.ab-title--menu:hover .ab-amb__chev, .ab-title.is-open .ab-amb__chev { background: var(--ink); color: var(--bg); box-shadow: none; }
.ab-title.is-open .ab-amb__chev .ico { transform: rotate(-90deg); }
.ab-amb__menu { position: absolute; z-index: 8; top: calc(var(--bar-h) + 8px); left: 0; display: grid; gap: 3px; width: min(330px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: var(--shadow-2); transform-origin: 24px 0; animation: ab-pop .24s cubic-bezier(.2, .8, .2, 1); }
.ab-amb__menu[hidden] { display: none; }
.ab-amb__i { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 10px 6px 6px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.ab-amb__i:hover, .ab-amb__i:focus-visible { background: var(--surface); outline: none; }
.ab-amb__i:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.ab-amb__i[aria-current] { background: var(--surface-2); }
.ab-amb__img { display: block; width: 68px; height: 42px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--surface-2), var(--line-2)); box-shadow: inset 0 0 0 1px var(--line); }
.ab-amb__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-amb__n { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.ab-amb__n small { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.ab-amb__ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.ab-amb__ok .ico { width: 13px; height: 13px; stroke-width: 3; }
@keyframes ab-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .ab-amb__menu { animation: none; } }

/* pogledi (ambijent sa više kamera): staklena traka sa sličicama dole levo; izabran pogled ima okvir, pogled koji se učitava prsten */
.ab-views { position: absolute; z-index: 4; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 7px; max-width: calc(100% - var(--panel-w) - 64px); padding: 8px 8px 7px; border: 1px solid var(--glass-line); border-radius: 20px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--shadow-1); }
.ab-views[hidden] { display: none; }
.ab--closed .ab-views { max-width: calc(100% - 32px); }
.ab-views__h { display: flex; align-items: center; gap: 4px; margin: 0 3px; font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); }
.ab-views__h span { margin-right: auto; }
.ab-views kbd { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: 5px; font: 700 9.5px/1 inherit; letter-spacing: 0; color: var(--muted); }
.ab-views__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ab-views__list::-webkit-scrollbar { display: none; }
.ab-view { position: relative; display: flex; flex: none; flex-direction: column; gap: 5px; width: 112px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ab-view__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, var(--surface-2), var(--line-2)); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.ab-view__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.ab-view:hover .ab-view__img img { transform: scale(1.07); filter: none; }
.ab-view__t { overflow: hidden; padding: 0 2px; white-space: nowrap; text-overflow: ellipsis; transition: color .2s; }
.ab-view:hover .ab-view__t { color: var(--ink); }
.ab-view[aria-pressed="true"] .ab-view__img { box-shadow: 0 0 0 2px var(--ink), 0 6px 18px rgba(0, 0, 0, .25); }
.ab-view[aria-pressed="true"] .ab-view__img img { filter: none; }
.ab-view[aria-pressed="true"] .ab-view__t { color: var(--ink); }
.ab-view:focus-visible { outline: none; }
.ab-view:focus-visible .ab-view__img { box-shadow: 0 0 0 2px var(--accent); }
.ab-view__ring { position: absolute; inset: 0; display: none; place-items: center; background: rgba(12, 17, 22, .38); }
.ab-view.is-loading .ab-view__ring { display: grid; }
.ab-view.is-loading .ab-view__ring::after { content: ''; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: ab-spin .7s linear infinite; }
/* novi pogled: platno iznad starog, preliv; staro se posle oslobađa */
.ab-pic--next { opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.ab-pic--next.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ab-pic--next { transition: none; } .ab-view__img img { transition: none; } }
@media (min-width: 761px) and (max-width: 1500px) {
  .ab--views .ab-busy { bottom: 158px; }
  .ab--views .ab-toast { bottom: 170px; }
}

/* ───────── panel ───────── */
.ab-panel { position: absolute; z-index: 5; top: calc(var(--top) + var(--bar-h) + 12px); right: 16px; bottom: 16px; width: var(--panel-w); display: flex; flex-direction: column; border: 1px solid var(--glass-line); border-radius: 26px; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: var(--shadow-2); color: var(--ink); transition: transform .5s cubic-bezier(.2, .8, .2, 1); outline: none; }
.ab--closed .ab-panel { transform: translateX(calc(100% + 18px)); }
.ab-panel__body { flex: 1; min-height: 0; overflow: auto; padding: 18px 18px 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ab-panel__toggle { position: absolute; top: 14px; left: -50px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-1); color: var(--ink); }
.ab-panel__toggle .ico { width: 18px; height: 18px; transition: transform .4s; }
.ab--closed .ab-panel__toggle .ico { transform: rotate(180deg); }
.ab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ab-head .eyebrow, .ab-eyebrow { font-size: 11px; }
.ab-eyebrow { margin: 0 0 8px; }

/* brend: kartice sa logotipom (logotip za svetlu i tamnu temu kroz <picture>) */
.ab-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.ab-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; min-height: 82px; padding: 13px 13px 11px; border: 0; border-radius: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; overflow: hidden; transition: background-color .2s, box-shadow .2s, transform .2s; }
.ab-brand:hover { background: var(--surface); transform: translateY(-1px); }
.ab-brand[aria-pressed="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-1); }
.ab-brand::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--bc, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ab-brand[aria-pressed="true"]::after { transform: none; }
.ab-brand:focus-visible { outline-offset: 2px; }
.ab-brand__logo { display: flex; align-items: center; gap: 8px; min-width: 0; height: 32px; }
.ab-brand__logo--duo { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.ab-brand__logo--duo .lg-sep { display: none; }
.ab-brand__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.ab-brand__t b { font-weight: 800; color: var(--ink); }
.ab-brand__desc { margin-top: -4px; font-size: 7.5px; font-weight: 800; line-height: 1.2; letter-spacing: .1em; color: var(--muted); }
/* jedan brend u ambijentu (npr. deking: TimberTech): kartica preko cele širine, veći logotipi u redu */
.ab-brands[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.ab-brands[data-n="1"] .ab-brand { min-height: 0; padding: 14px 14px 12px; }
.ab-brands[data-n="1"] .ab-brand__logo--duo { flex-direction: row; align-items: center; gap: 12px; height: 30px; }
.ab-brands[data-n="1"] .ab-brand__logo--duo .lg-sep { display: block; height: 22px; }
.ab-brands[data-n="1"] .ab-brand__logo--duo .lg--main { height: 18px; }
.ab-brands[data-n="1"] .ab-brand__logo--duo .lg--sub { height: 26px; }
.ab-brands[data-n="1"] .ab-brand__desc { margin-top: -2px; font-size: 8.5px; }
.ab-brands[data-n="1"] .ab-brand__t { flex-direction: row; gap: 6px; }
.lg { display: block; flex: none; max-width: 100%; }
.lg img { display: block; width: auto; max-width: 100%; height: 100%; }
.lg--solo { height: 30px; }
.ab-brand__logo--duo .lg--main { height: 13px; }
.ab-brand__logo--duo .lg--sub { height: 12px; }
.lg-sep { display: block; flex: none; width: 1px; height: 14px; background: var(--line-2); }

/* kolekcije brenda */
.ab-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ab-cols button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.ab-cols button:hover { color: var(--ink); border-color: var(--ink); }
.ab-cols button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ab-cols small { font-size: 10.5px; font-weight: 700; opacity: .6; font-variant-numeric: tabular-nums; }

/* dekori */
.ab-decors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ab-dec { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; text-align: left; transition: transform .2s, box-shadow .2s; }
.ab-dec canvas, .ab-dec img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; background: var(--c, var(--surface-2)); }
.ab-dec img { object-fit: cover; }
.ab-empty { grid-column: 1 / -1; padding: 14px; border: 1px dashed var(--line-2); border-radius: 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ab-empty button { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: underline; }
.ab-dec__n { padding: 8px 10px 0; font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.ab-dec__c { padding: 2px 10px 9px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ab-dec:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.ab-dec[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink), var(--shadow-1); }
.ab-dec[aria-pressed="true"]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.ab-dec:focus-visible { outline-offset: 2px; }

/* izabrani dekor */
.ab-cur { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ab-cur__brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); }
.ab-cur__brand .lg { height: 15px; }
.ab-cur__brand .lg--solo { height: 18px; }
.ab-cur__brand .lg--sub { height: 13px; }
.ab-cur__brand span { margin-left: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ab-cur__head { display: flex; align-items: center; gap: 12px; }
.ab-cur__sw { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--c) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); transition: background-color .4s; }
.ab-cur__name { font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.ab-cur__sub { margin: 2px 0 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.ab-cur__look { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ab-spec { margin-top: 10px; }
.ab-spec summary { display: flex; align-items: center; gap: 8px; padding: 2px 0; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.ab-spec summary::-webkit-details-marker { display: none; }
.ab-spec summary::after { content: ''; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.ab-spec[open] summary::after { margin-top: 2px; transform: rotate(-135deg); }
.ab-spec dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.ab-spec dl div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ab-spec dt { font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ab-spec dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-spec dl div.wide { grid-column: 1 / -1; }
.ab-spec dl div.wide dd { font-size: 12.5px; line-height: 1.4; }
.ab-nc { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }
.ab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ab-tags li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.ab-notes { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ab-notes li { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.ab-notes a { font-weight: 700; color: var(--accent-ink); }
.ab-more { margin-top: 8px; }
.ab-more summary { display: inline-flex; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.ab-cur__desc { margin: -4px 0 10px; font-size: 8.5px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
/* procena materijala (deking): površina, dužina daske -> broj dasaka i EDGELoc klipova (metod proizvođača, bez cena) */
.ab-calc { margin-top: 10px; padding: 10px 11px 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.ab-calc__h { margin: 0 0 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ab-calc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ab-calc__f { position: relative; display: flex; align-items: center; }
.ab-calc__f input { width: 96px; height: 36px; padding: 0 36px 0 11px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ab-calc__f input:focus { border-color: transparent; outline: 2px solid var(--accent); outline-offset: 0; }
.ab-calc__f i { position: absolute; right: 11px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--muted); pointer-events: none; }
.ab-calc__len { flex: 1; min-width: 0; }
.ab-calc__len button { flex: 1; padding: 0 6px; }
.ab-calc__out { margin: 9px 0 0; font-size: 13px; line-height: 1.5; }
.ab-calc__out b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ab-calc__out span { font-size: 12px; color: var(--muted); }
.ab-calc__note { margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.ab-links { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 10px 0 0; }
.ab-link { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.ab-links .ab-link { margin-top: 0; }

/* način slaganja */
.ab-lay { display: grid; gap: 12px; margin-top: 16px; }
.ab-lbl { margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ab-seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); }
.ab-seg button { flex: 1; min-width: 0; height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.ab-seg button:hover { color: var(--ink); }
.ab-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.ab-seg--sm { border-radius: 12px; }
.ab-seg--sm button { flex: none; height: 30px; padding: 0 11px; font-size: 11.5px; border-radius: 9px; }
.ab-hint { margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--muted); }   /* deking: čeoni spojevi na gredama (uz izbor pomaka) */
.ab-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }

/* ───────── poređenje (pre / posle) ───────── */
.ab-split { position: absolute; inset: 0; z-index: 2; --x: 50%; pointer-events: none; }
.ab-split__line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .16), 0 0 22px rgba(0, 0, 0, .3); }
.ab-split__knob { position: absolute; top: 55%; left: var(--x); display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #10151a; box-shadow: 0 8px 26px rgba(0, 0, 0, .38); cursor: ew-resize; pointer-events: auto; transition: transform .2s; }
.ab-split__knob .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.dragging .ab-split__knob, .ab-split__knob:hover { transform: scale(1.08); }
.ab-split__tag { position: absolute; top: calc(var(--top) + var(--bar-h) + 14px); max-width: min(38vw, 320px); overflow: hidden; padding: 7px 13px; border-radius: 999px; background: rgba(12, 17, 22, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ab-split__tag--l { right: calc(100% - var(--x) + 14px); }
.ab-split__tag--r { left: calc(var(--x) + 14px); }

/* ───────── priprema dekora, poruke ───────── */
.ab-busy, .ab-toast { position: absolute; left: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-1); color: var(--ink); font-size: 12.5px; font-weight: 700; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .3s; pointer-events: none; }
.ab-busy { bottom: 24px; padding-left: 12px; }
.ab-toast { position: fixed; z-index: 8; bottom: 76px; max-width: calc(100% - 32px); text-align: center; }
.ab-busy.on, .ab-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ab-busy i { width: 16px; height: 16px; border: 2.5px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: ab-spin .8s linear infinite; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
@media (min-width: 761px) {
  .ab:not(.ab--closed) .ab-busy, .ab:not(.ab--closed) .ab-toast { left: calc(50% - (var(--panel-w) + 16px) / 2); }
}

/* ───────── ekran učitavanja ───────── */
.ab-load { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; background: #0c1116; color: #f2f4f6; transition: opacity .6s ease, visibility .6s; }
.ab-load.done { opacity: 0; visibility: hidden; }
.ab-load__bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(30px) saturate(1.15) brightness(.5); transform: scale(1.06); opacity: 0; transition: opacity 1s; }
.ab-load__bg.on { opacity: 1; }
.ab-load__box { position: relative; width: min(420px, calc(100% - 48px)); text-align: center; }
.ab-load__mark { display: grid; gap: 5px; width: 66px; margin: 0 auto 26px; }
.ab-load__mark i { position: relative; display: block; height: 8px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.ab-load__mark i:nth-child(2) { width: 68%; margin-left: 32%; --i: 1; }
.ab-load__mark i:nth-child(3) { width: 84%; --i: 2; }
.ab-load__mark i:nth-child(4) { width: 52%; margin-left: 48%; --i: 3; }
.ab-load__mark i:nth-child(5) { --i: 4; }
.ab-load__mark i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: translateX(-101%); animation: ab-plank 1.8s cubic-bezier(.6, 0, .2, 1) infinite; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes ab-plank { 0% { transform: translateX(-101%); } 42%, 62% { transform: none; } 100% { transform: translateX(101%); } }
.ab-load__eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); }
.ab-load__title { margin: 10px 0 24px; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.05; letter-spacing: -.045em; }
.ab-load__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.ab-load__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(.06); transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ab-load__msg { margin: 14px 0 0; min-height: 1.5em; font-size: 13.5px; line-height: 1.5; color: rgba(242, 244, 246, .74); }
.ab-load__err { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }
.ab-load__err a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 14px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.ab-load__err a:first-child { border-color: transparent; background: #fff; color: #10151a; }
.ab-load.err .ab-load__mark i::after { animation: none; }
.ab-load.err .ab-load__bar { display: none; }

/* ───────── telefon: donji sheet ───────── */
@media (max-width: 760px) {
  .ab { --top: max(10px, env(safe-area-inset-top)); --bar-h: 40px; }
  .ab-stage { bottom: var(--sheet, 320px); }
  .ab-bar { left: 10px; right: 10px; gap: 6px; }
  .ab-chip { padding: 0 12px; border-radius: 14px; }
  .ab-title { flex: 0 1 auto; padding: 0 13px; }
  .ab-title p { display: none; }
  .ab-title h1 { max-width: 46vw; font-size: 14px; }
  .ab-tools { gap: 6px; }
  .ab-tool { width: 40px; padding: 0; justify-content: center; }
  .ab-tool__t { display: none; }
  .ab-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; max-height: 62dvh; border-bottom: 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .ab-panel__toggle { display: none; }
  .ab--closed .ab-panel { transform: none; }
  .ab-panel__body { padding: 8px 14px 12px; }
  .ab-panel__body::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--line-2); }
  .ab-eyebrow { display: none; }
  .ab-brands { gap: 6px; margin: 0 0 10px; }
  .ab-brand { flex-direction: row; align-items: center; min-height: 48px; padding: 8px 10px; border-radius: 14px; }
  .ab-brand:hover { transform: none; }
  .ab-brand__t { display: none; }
  .ab-brand__logo { height: 28px; }
  .lg--solo { height: 24px; }
  .ab-cols { flex-wrap: nowrap; margin: 8px -14px 0; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .ab-cols::-webkit-scrollbar { display: none; }
  .ab-cols button { height: 28px; padding: 0 10px; font-size: 11px; }
  .ab-empty { flex: 0 0 calc(100% - 28px); }
  .ab-cur__brand { margin-bottom: 8px; padding-bottom: 6px; }
  .ab-decors { display: flex; gap: 8px; margin: 10px -14px 0; padding: 3px 14px 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 14px; scrollbar-width: none; }
  .ab-decors::-webkit-scrollbar { display: none; }
  .ab-decors li { display: flex; flex: 0 0 96px; scroll-snap-align: start; }
  .ab-dec { flex: 1; border-radius: 14px; }
  .ab-dec:hover { transform: none; }
  .ab-dec__n { overflow: hidden; padding: 6px 8px 0; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
  .ab-dec__c { overflow: hidden; padding: 1px 8px 7px; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
  .ab-dec[aria-pressed="true"]::after { top: 6px; right: 6px; width: 20px; height: 20px; background-size: 12px; }
  .ab-cur { margin-top: 8px; padding: 8px 12px; border-radius: 16px; }
  .ab-spec { margin-top: 6px; }
  .ab-cur__sw { width: 32px; height: 32px; border-radius: 10px; }
  .ab-cur__name { font-size: 15px; }
  .ab-cur__look { display: none; }
  .ab-lay { gap: 6px; margin-top: 8px; }
  .ab-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; }
  .ab-lbl { margin: 0; font-size: 9.5px; letter-spacing: .1em; }
  .ab-seg button { height: 30px; padding: 0 4px; font-size: 11.5px; }
  .ab-note, .ab-hint { display: none; }
  .ab-split__tag { max-width: 44vw; padding: 6px 10px; font-size: 11px; }
  /* svetlo: kompaktno, u drugom redu ispod trake, centrirano (ikonice + natpis izabranog) */
  .ab-chip.ab-light { position: absolute; top: calc(var(--bar-h) + 8px); left: 0; right: 0; width: max-content; max-width: 100%; height: 40px; margin: 0 auto; padding: 3px; border-radius: 14px; }
  .ab-light__b { min-width: 38px; padding: 0 10px; border-radius: 11px; font-size: 12px; gap: 6px; }
  .ab-light__thumb { border-radius: 11px; }
  .ab-light__b .ico { width: 17px; height: 17px; }
  .ab--lights .ab-split__tag { top: calc(var(--top) + var(--bar-h) + 58px); }
  .ab-busy { bottom: 14px; }
  .ab-toast { bottom: calc(var(--sheet, 320px) + 14px); }
  /* izbor ambijenta: natpis se ne skraćuje previše, izbornik preko cele širine */
  .ab-title--menu { padding-right: 36px; }
  .ab-title--menu h1 { max-width: 38vw; }
  .ab-amb__btn { padding-right: 9px; }
  .ab-amb__menu { width: calc(100vw - 20px); }
  /* pogledi: kompaktno, samo sličice (natpis u title / aria-label), iznad panela */
  .ab-views { left: 10px; bottom: calc(var(--sheet, 320px) + 10px); max-width: calc(100% - 20px); padding: 5px; border-radius: 15px; gap: 0; }
  .ab-views__h { display: none; }
  .ab-views__list { gap: 5px; }
  .ab-view { width: 60px; }
  .ab-view__img { border-radius: 10px; }
  .ab-view__t { display: none; }
  .ab--views .ab-busy { bottom: 62px; }
  .ab--views .ab-toast { bottom: calc(var(--sheet, 320px) + 66px); }
  .ab-brands[data-n="1"] .ab-brand { flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 12px 7px; }
  .ab-brands[data-n="1"] .ab-brand__logo--duo { height: 24px; gap: 10px; }
  .ab-brands[data-n="1"] .ab-brand__logo--duo .lg--main { height: 14px; }
  .ab-brands[data-n="1"] .ab-brand__logo--duo .lg--sub { height: 21px; }
  .ab-brands[data-n="1"] .ab-brand__desc { margin: 0; font-size: 7.5px; }
  .ab-cur__desc { display: none; }
}
@media (min-width: 761px) and (max-height: 560px) {
  .ab { --panel-w: 320px; --bar-h: 40px; --top: 10px; }
  .ab-panel { bottom: 10px; }
  .ab-decors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-cur__look, .ab-note { display: none; }
  .ab-brand { min-height: 58px; padding: 9px 11px; }
  .ab-brand__t { display: none; }
}
@media (hover: none) { .ab-dec:hover, .ab-brand:hover { transform: none; } }

/* ───────── početna i upit za cenu ───────── */
/* „Početna“ (ikonica levo od natpisa ambijenta) i istaknuto „Zatraži ponudu“ u gornjoj traci (link na upit.html sa istim izborom, ambijent.js) i u kartici
   izabranog dekora. Uže od 1400 px alati u traci su samo ikonice (naziv u title), da „Zatraži ponudu“ stane; uže od 980 px i dugme upita je ikonica. */
.ab-home { flex: none; justify-content: center; width: var(--bar-h); padding: 0; }
.ab-home .ico { width: 19px; height: 19px; }
.ab-cta { flex: none; gap: 8px; padding: 0 16px 0 13px; border-color: transparent; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(255, 90, 31, .32); }
a.ab-chip.ab-cta:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.ab-cta .ico { width: 19px; height: 19px; }
.ab-upit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 0; padding: 9px 9px 9px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.ab-upit:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.ab-upit__t { min-width: 0; }
.ab-upit__t b { display: block; font-size: 14px; line-height: 1.25; }
.ab-upit__t small { display: block; font-size: 11px; font-weight: 600; line-height: 1.35; opacity: .72; }
.ab-upit__go { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; transition: transform .2s; }
.ab-upit:hover .ab-upit__go { transform: translateX(2px); }
.ab-upit__go .ico { width: 18px; height: 18px; }
@media (max-width: 1400px) { .ab-tool { width: var(--bar-h); padding: 0; justify-content: center; } .ab-tool__t { display: none; } }
@media (max-width: 980px) {
  .ab-cta { width: var(--bar-h); padding: 0; justify-content: center; }
  .ab-cta__t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 760px) {
  .ab-home { width: 40px; }
  .ab-upit { margin-top: 8px; padding: 5px 5px 5px 12px; border-radius: 12px; }
  .ab-upit__t small { display: none; }
  .ab-upit__go { width: 30px; height: 30px; border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) { .ab-upit, .ab-upit__go, .ab-cta { transition: none; } }
