/* ==========================================================================
   POBIS – program i stranica proizvoda (dizajn „Pobis Proizvod”)
   ========================================================================== */

.shop-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 40px; }
.side { flex: 0 0 240px; display: grid; gap: 40px; padding-top: 40px; }
.prod, .shop-main { flex: 1 1 520px; min-width: 0; padding: 40px 0 80px; }

/* ---------- bočni stupac ---------- */
.side-filter { display: grid; gap: 10px; margin-top: 16px; }
.sel { position: relative; }
.sel select { width: 100%; padding: 13px 40px 13px 14px; border: 1px solid #DCDCD8; border-radius: 0; background: #fff; font-family: var(--f-body); font-size: 15px; color: var(--ink-2); cursor: pointer; -webkit-appearance: none; appearance: none; }
.sel select:focus { border-color: var(--blue); outline: 0; }
.sel::after { content: "▼"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 10px; color: var(--blue); pointer-events: none; }
.side-filter__reset { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted-2); }
.side-cats { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.side-cats > li { border-bottom: 1px solid var(--line); }
.side-cats__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-left: 3px solid transparent; }
.side-cats > li.is-active > .side-cats__row { border-left-color: var(--blue); }
.side-cats__row a { flex: 1; padding: 11px 0 11px 10px; font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); transition: color .15s ease; }
.side-cats__row a:hover, .side-cats > li.is-active > .side-cats__row a { color: var(--blue); }
.side-cats__row button { flex: none; width: 32px; height: 32px; border: 0; background: none; font-family: var(--f-mono); font-size: 14px; color: var(--muted); cursor: pointer; }
.side-cats ul { display: none; gap: 2px; margin: 0; padding: 0 0 12px 22px; list-style: none; }
.side-cats li.is-open > ul { display: grid; }
.side-cats ul a { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.side-cats ul a::before { content: ""; flex: none; width: 6px; height: 1px; background: currentColor; }
.side-cats ul a:hover, .side-cats ul a.is-current { color: var(--blue); }
.side-cats ul a.is-current { font-weight: 600; }
.side-info { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; font-family: var(--f-display); font-size: 19px; font-weight: 600; text-transform: uppercase; }
.side-info a { color: var(--ink); }
.side-info a:hover { color: var(--blue); }

/* ---------- lista programa ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.pgrid .pcard__img { height: 190px; }
.pgrid .pcard__title { font-size: 22px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); background: #fff; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: border-color .15s ease, color .15s ease; }
.subcats a span { color: var(--muted); }
.subcats a:hover { border-color: var(--blue); color: var(--blue); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.active-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--blue); color: #fff; text-transform: uppercase; }
.active-filters a:hover { background: var(--blue-d); color: #fff; }
.active-filters b { font-weight: 400; font-size: 14px; line-height: 1; }
.term-desc { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line-2); color: var(--text); }
/* opis kategorije ide cijelom širinom popisa (ostali tekstovi ostaju u užem stupcu za čitanje) */
.term-desc.prose { max-width: none; }
.fx-cats { margin-top: 0; }
.rule-label--list { margin: 36px 0 18px; }

/* ---------- galerija ---------- */
/* Gornji dio stranice proizvoda: blokovi (slika, podaci, namjena, alat, oblik, narudžba) u stupcima.
   Tri probna rasporeda: --a dva stupca, --b tri stupca (narudžba ostaje na ekranu), --c primjena ispod. */
.prod__top { display: grid; align-items: start; gap: 36px; }
.prod__top--a, .prod__top--c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.prod__top--b { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.prod__top--b .prod__col--buy { position: sticky; top: 20px; }
.prod__top--b .order { padding: 22px; }
.prod__top--b .order table.variations tr { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.prod__top--b .tools__item { gap: 10px; padding: 10px 12px; }
.prod__top--b .tools__item img, .prod__top--b .tools__item svg { max-width: 46px; height: 34px; }
.prod__top--b .tools__v { font-size: 16.5px; }
.prod__col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.prod__col > .spec, .prod__col > .pdfs { margin-top: 0; }
.pblok--order { display: grid; gap: 14px; }
.pblok--order .order__note { margin: 0; }
.prod__use { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; gap: 36px; margin-top: 24px; }
.prod__use .tools { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.prod__use > .prod__col:last-child .tools { grid-template-columns: minmax(0, 1fr); }
.spec--strip { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 18px; border-top: 0; }
.spec--strip dt { padding: 0 0 6px; border-bottom: 0; }
.spec--strip dd { padding: 0 0 14px; font-size: 18px; }
/* dugi popisi: prvih nekoliko stavki + gumb */
.more-btn { align-self: flex-start; margin-top: 10px; padding: 9px 14px; border: 1px solid #DCDCD8; background: #fff; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--blue); cursor: pointer; }
.more-btn:hover { border-color: var(--blue); }
/* probni izbornik rasporeda – vidi se samo u pregledu nove teme */
.prod__proba { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; padding: 8px 10px; border: 1px dashed var(--orange); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted-2); }
.prod__proba span { margin-right: 6px; }
.prod__proba a { padding: 6px 10px; border: 1px solid #DCDCD8; background: #fff; color: var(--ink-2); }
.prod__proba a.is-on { border-color: var(--blue); background: var(--blue); color: #fff; }
.gal__stage { position: relative; aspect-ratio: 1 / 1; background: #F3F3EF; clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); overflow: hidden; }
.gal__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(20, 24, 29, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 24, 29, .05) 1px, transparent 1px); background-size: 44px 44px; }
.gal__glow { display: none; }
.gal__img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.gal__none { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.gal__tag { position: absolute; left: 24px; top: 22px; right: 90px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--blue); }
.gal__count { position: absolute; right: 24px; top: 22px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.gal__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--c, var(--sky)); }
.gal--dark .gal__stage { background: var(--night-3); }
.gal--dark .gal__grid { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.gal--dark .gal__glow { display: block; position: absolute; left: 50%; top: 50%; width: 84%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(11, 82, 150, .55), rgba(11, 82, 150, 0) 72%); }
.gal--dark .gal__img { left: 12%; top: 12%; width: 76%; height: 76%; mix-blend-mode: normal; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); }
.gal--dark .gal__tag { color: #9FD2EE; }
.gal--dark .gal__count { color: var(--steel-3); }
.gal__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gal__thumbs button { width: 84px; height: 84px; padding: 8px; border: 0; background: #F3F3EF; outline: 2px solid transparent; outline-offset: -2px; cursor: pointer; }
.gal__thumbs button[aria-pressed=true] { outline-color: var(--sky); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal--dark .gal__thumbs button { background: var(--night-3); }
.gal--dark .gal__thumbs img { mix-blend-mode: normal; }

.spec { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid var(--line); }
.spec dt { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.pdfs { display: grid; gap: 12px; margin-top: 22px; }
.pdfs__item { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.pdfs__item b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.pdfs__item small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); word-break: break-all; }
.pdfs__item:hover { color: var(--blue); }

/* ---------- namjena, alat, oblik ---------- */
.nm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.nm li { position: relative; height: 76px; overflow: hidden; }
.nm li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .28), transparent 55%, rgba(0, 0, 0, .26)); pointer-events: none; }
.nm li span { position: absolute; left: 0; bottom: 0; z-index: 1; max-width: 100%; padding: 5px 22px 5px 10px; background: var(--blue); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }

.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tools__item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); }
.tools__item img, .tools__item svg { flex: none; width: auto; max-width: 64px; height: 40px; object-fit: contain; }
.tools__v { min-width: 0; font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }

/* ---------- narudžba / upit ---------- */
.order { position: relative; padding: 26px; background: var(--night-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); color: #fff; }
.order__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 8px 8px; }
.order__in { position: relative; }
.order__eyebrow { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; color: #9FD2EE; }
.order__title { margin: 6px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.order__title a { color: #fff; }
.order__title a:hover { color: var(--sky); }
.order__form { margin-top: 20px; }
.order__price { margin-top: 10px; font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; color: #FFD9B8; }
.order__price del { color: var(--steel); }
.order__price ins { text-decoration: none; }
.cart-msg, .order .woocommerce-message, .order .woocommerce-error, .order .woocommerce-info { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border: 1px solid var(--sky); background: transparent; list-style: none; font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: .08em; color: #BFE0FF; }
.cart-msg a, .order .woocommerce-message a { order: 2; color: #fff; white-space: nowrap; }
.cart-msg.is-error, .order .woocommerce-error { border-color: #E08A7E; color: #FFD3CC; }
.order .woocommerce-message + form, .order .woocommerce-error + form { margin-top: 14px; }
.order button.single_add_to_cart_button.is-busy { background: #2C4157; color: var(--steel); cursor: progress; }
.order__note { margin: -12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted-2); text-wrap: pretty; }

.order form.cart { margin: 0; }
.order table.variations { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.order table.variations tbody { display: grid; gap: 10px; }
.order table.variations tr { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; }
.order table.variations th, .order table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.order table.variations label, .order .tm-epo-field-label, .order .tc-epo-label { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.order select { width: 100%; padding: 12px 36px 12px 12px; border: 1px solid #2C4157; border-radius: 0; background: #152434 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M0 0h10L5 7z' fill='%239FD2EE'/%3E%3C/svg%3E") no-repeat right 12px center; color: #fff; font-family: var(--f-body); font-size: 15px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.order select option { background: #fff; color: var(--ink); }
@supports (appearance: base-select) {
	/* popis u tamnom okviru narudžbe */
	.order select::picker(select) { border-color: #2C4157; border-top-color: var(--sky); background: #152434; scrollbar-color: #3A546E transparent; }
	.order select option { background: transparent; color: #E6EDF3; }
	.order select option:hover, .order select option:focus-visible { background: #1D3247; color: #fff; }
	.order select option:checked { background: var(--blue); color: #fff; }
	.order select option:disabled { color: var(--steel-3); }
}
.order input[type=text], .order input[type=number], .order textarea { padding: 12px; border: 1px solid #2C4157; border-radius: 0; background: #152434; color: #fff; font-family: var(--f-body); font-size: 15px; }
.order .reset_variations { display: inline-block; margin-top: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.order .single_variation_wrap { margin-top: 20px; }
.order .woocommerce-variation-add-to-cart, .order form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 10px; }
.order .quantity { display: flex; flex: none; border: 1px solid #2C4157; }
.order .quantity input.qty { width: 76px; min-height: 52px; padding: 0 6px; border: 0; background: transparent; font-family: var(--f-mono); font-size: 14px; text-align: center; }
.order .quantity--step { border-color: #2C4157; background: transparent; color: #fff; }
.order .quantity__btn { color: #fff; }
.order .quantity__btn:hover { background: #152434; }
.order .quantity--step input.qty { width: 50px; border-left: 1px solid #2C4157; border-right: 1px solid #2C4157; }
.order button.single_add_to_cart_button, .order .button { flex: 1; min-width: 200px; padding: 16px 22px; border: 0; border-radius: 0; background: var(--orange); clip-path: var(--clip-10); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; text-align: center; cursor: pointer; transition: background .2s ease; }
.order button.single_add_to_cart_button:hover, .order .button:hover { background: #F08A45; color: #fff; }
.order button.single_add_to_cart_button.disabled, .order button.single_add_to_cart_button:disabled { background: #2C4157; color: var(--steel); cursor: not-allowed; }
.order .price, .order .woocommerce-variation-price, .order .stock, .order .woocommerce-variation-availability { display: none; }
.order .woocommerce-variation-description { font-size: 14px; color: var(--steel-2); }
.order a { color: var(--sky); }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--sky); background: #F2F8FD; list-style: none; font-size: 15px; }
.woocommerce-error { border-color: #D9534F; background: #FDF3F2; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- sekcije ispod ---------- */
.psec { margin-top: 56px; }
.sec-head--xs .sec-title { margin-top: 6px; font-size: clamp(26px, 2.6vw, 36px); }
.sec-head--xs.sec-head--rule { padding-bottom: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border: 1px solid #CFCFCA; }
.legend i.is-on { background: var(--blue); border-color: var(--blue); }

.grits { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.grits button, .grits__off { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100%; padding: 0; border: 0; background: transparent; font-family: var(--f-mono); font-size: 10.5px; }
.grits i { display: block; width: 100%; height: 34px; border: 1px solid #CFCFCA; background: #fff; transition: background .15s ease; }
.grits button { color: var(--ink); cursor: pointer; }
.grits button i { background: var(--blue); border-color: var(--blue); }
.grits button:hover i, .grits button.is-picked i { background: var(--blue-400); }
.grits button.is-picked i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.grits__off { color: var(--muted-3); }
.grits__ends { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }

.dim-wrap { margin-top: 20px; overflow-x: auto; }
.dim, .ref-tables table { width: 100%; min-width: 520px; border-collapse: collapse; }
.dim thead th, .ref-tables th { padding: 12px 16px; background: var(--ink); font-family: var(--f-mono); font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-align: left; white-space: nowrap; color: #9FD2EE; }
.dim td { padding: 11px 16px; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.dim tbody tr:hover td { background: #F7FAFD; }
.dim .dim__sub th { padding: 18px 16px 8px; border-bottom: 2px solid var(--blue); background: none; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-align: left; color: var(--blue); }
.dim tfoot td { padding: 14px 16px; border-bottom: 0; background: var(--paper); font-family: var(--f-body); font-size: 15px; font-weight: 400; color: var(--text); }
.ref-tables table + table { margin-top: 18px; }
.ref-tables td { padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ref-tables th strong { font-weight: 400; }

.ptabs__nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-2); }
.ptabs__nav button { padding: 14px 22px 12px; border: 0; border-top: 3px solid transparent; background: var(--paper); font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); cursor: pointer; }
.ptabs__nav button[aria-selected=true] { border-top-color: var(--blue); background: #fff; color: var(--ink); }
.ptabs__panel { padding: 32px 0 0; }
.opis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.opis__uvod { max-width: 72ch; margin-bottom: 28px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.opis__uvod p { margin: 0 0 10px; }
.opis__list { display: grid; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.opis__list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.opis__list li > span:first-child { flex: none; color: var(--blue); }
.opis__list--broj li > span:first-child { padding-top: 3px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.opis__baner { display: block; max-width: 100%; margin-top: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.steps span { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.steps h3 { margin: 10px 0 0; font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.delivery { display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 32px; }
.delivery__big { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5vw, 72px); line-height: .9; color: var(--blue); }
.delivery p { margin: 0; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 900px) {
	.side { flex-basis: 100%; order: 2; padding-top: 0; padding-bottom: 48px; }
	.prod, .shop-main { padding-top: 28px; padding-bottom: 40px; }
}
@media (max-width: 1180px) {
	.prod__top--b { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.prod__top--b .prod__col--info { grid-column: 1 / -1; order: 3; }
	.prod__top--b .prod__col--buy { position: static; }
}
@media (max-width: 820px) {
	.prod__top--a, .prod__top--b, .prod__top--c, .prod__use { grid-template-columns: minmax(0, 1fr); }
	.spec--strip { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-flow: row; border-top: 1px solid var(--line); }
	.spec--strip dt { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.spec--strip dd { padding: 12px 0; }
}
@media (max-width: 560px) {
	.tools { grid-template-columns: minmax(0, 1fr); }
	.order { padding: 20px; }
	.order table.variations tr { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.dim td { padding: 9px 12px; font-size: 18px; }
	.psec { margin-top: 44px; }
}

/* ==========================================================================
   Stranica kategorije (dizajn „Pobis Kategorija”)
   ========================================================================== */

/* ---------- tamni uvod ---------- */
.cat-top { position: relative; background: var(--night-3); overflow: hidden; }
.cat-top__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; }
.cat-top__glow { position: absolute; right: -4%; top: 50%; width: min(46vw, 560px); aspect-ratio: 1; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(11, 82, 150, .5), rgba(11, 82, 150, 0) 72%); }
.cat-top__img { position: absolute; right: 4%; top: 50%; width: min(30vw, 340px); height: auto; transform: translateY(-50%); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); }
.cat-top__photo { position: absolute; right: 5%; top: 50%; width: min(24vw, 250px); aspect-ratio: 1; transform: translateY(-50%); background: #F3F3EF; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.cat-top__photo.kimg { position: absolute; }
.cat-top__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--c, var(--sky)); }
.cat-top__in { position: relative; padding-top: 44px; padding-bottom: 48px; }
.cat-top__in > * { max-width: min(100%, 62%); }
.crumbs--dark { color: var(--steel); }
.crumbs--dark a { color: var(--steel); }
.crumbs--dark a:hover { color: #fff; }
.crumbs--dark .is-current { color: #9FD2EE; }
.cat-top h1 { margin: 14px 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(46px, 6vw, 86px); line-height: .92; text-transform: uppercase; text-wrap: balance; color: #fff; }
.cat-top p { margin: 16px 0 0; max-width: 50ch; font-size: 16px; line-height: 1.6; color: #C3CFD9; text-wrap: pretty; }
.cat-top__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 26px 0 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #93A6B6; }
.cat-top__shop { margin-top: 22px; }

/* ---------- pločice podkategorija ---------- */
.subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 14px; }
.subtile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 96px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); color: var(--ink); transition: transform .15s ease; }
.subtile:hover { color: var(--ink); transform: translateY(-3px); }
.subtile span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted-3); }
.subtile b { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.05; text-transform: uppercase; }
.subtile.is-active { background: var(--night-2); border-color: var(--night-2); border-top-color: var(--sky); color: #fff; }
.subtile.is-active:hover { color: #fff; }
.subtile.is-active span { color: #9FD2EE; }
.subtile--img { justify-content: flex-start; gap: 8px; }
.subtile--img .kimg { flex: none; height: 104px; margin: -14px -16px 6px; }
.subtile--img b { margin-top: auto; }
.listhead { margin-top: 48px; }
.shop-main > .listhead:first-child, .woocommerce-notices-wrapper + .listhead { margin-top: 0; }
.listhead .sec-title { font-size: clamp(28px, 3vw, 42px); }

/* ---------- traka s filterima ---------- */
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); }
.fbar__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.fbar__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.fbar__chips button { padding: 7px 12px; border: 1px solid #DCDCD8; background: #fff; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; color: var(--ink-2); cursor: pointer; }
.fbar__chips button:hover { border-color: var(--blue); }
.fbar__chips button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.fbar__sep { width: 1px; height: 22px; background: var(--line-2); }
.fbar__sel { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 10px; }
.msel { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.msel__k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.msel select.is-on { border-color: var(--blue); color: var(--blue); }
.msel select { min-width: 92px; padding: 8px 30px 8px 10px; border: 1px solid #DCDCD8; border-radius: 0; background: #fff; font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); cursor: pointer; -webkit-appearance: none; appearance: none; }
.msel::after { content: "▼"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 9px; color: var(--blue); pointer-events: none; }
.fbar__clear { margin-left: auto; padding: 6px 0; border: 0; background: transparent; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; color: var(--blue); cursor: pointer; }
.active-filters { margin: 16px 0 0; }

/* ---------- kartica proizvoda ---------- */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; margin-top: 18px; }
.kcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); color: var(--ink); transition: transform .2s ease; }
.kcard:hover { color: var(--ink); transform: translateY(-4px); }
.kcard__img { position: relative; display: block; aspect-ratio: 4 / 3; background: #F3F3EF; overflow: hidden; }
.kcard__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(20, 24, 29, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 24, 29, .05) 1px, transparent 1px); background-size: 30px 30px; }
.kcard__glow { display: none; }
.kcard__img img { position: absolute; left: 12%; top: 8%; width: 76%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.kcard:hover .kcard__img img { transform: scale(1.05); }
.kcard__brand, .kcard__shape { position: absolute; top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; }
.kcard__brand { left: 14px; color: var(--blue); }
.kcard__shape { right: 14px; color: var(--muted); }
.kcard__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--blue); }
.kcard__img--dark { background: var(--night-3); }
.kcard__img--dark .kcard__grid { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
.kcard__img--dark .kcard__glow { display: block; position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(11, 82, 150, .5), rgba(11, 82, 150, 0) 72%); }
.kcard__img--dark img { left: 15%; top: 10%; width: 70%; height: 80%; mix-blend-mode: normal; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)); }
.kcard__img--dark .kcard__brand { color: #9FD2EE; }
.kcard__img--dark .kcard__shape { color: var(--steel); }
.kcard__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 16px 18px 20px; }
.kcard__title { font-family: var(--f-display); font-weight: 700; font-size: 23px; line-height: 1.02; text-transform: uppercase; }
.chips--tight { gap: 5px; margin-top: 0; }
.chips--tight > span { padding: 4px 8px; }
.gbar { display: grid; gap: 5px; }
.gbar__cells { display: grid; grid-template-columns: repeat(25, minmax(0, 1fr)); gap: 1px; }
.gbar__cells i { height: 8px; background: var(--line); }
.gbar__cells i.on { background: var(--blue); }
.gbar__ends { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--muted); }
.gbar__ends b { font-weight: 400; color: var(--blue); }
.kcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-3); font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.kcard__foot b { font-weight: 400; white-space: nowrap; color: var(--blue); }
.kempty { margin-top: 18px; padding: 40px 24px; border: 1px dashed #CFCFCA; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-align: center; color: var(--muted); }
.kempty button { padding: 0; border: 0; background: transparent; font: inherit; letter-spacing: inherit; color: var(--blue); cursor: pointer; }

/* ---------- savjet ---------- */
.advice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 40px; padding: 24px 26px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); color: #fff; }
.advice__t { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.advice__c { margin-top: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--sky-3); }
.advice__c a { color: inherit; }
.advice__c a:hover { color: #fff; }
.advice__btn { padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .6); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #fff; transition: background .2s ease; }
.advice__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- proizvod: dopune ---------- */
.order__or { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--steel); }
.order__or::after { content: ""; flex: 1; height: 1px; background: #2C4157; }
.order__or + .order__form { margin-top: 14px; }
/* Tekst koji ubacuje stari plugin – sad je to naslov okvira. */
.wsppcp_div_block { display: none !important; }
.order .tm-extra-product-options, .order .tc-extra-product-options { margin-top: 14px; }
.order .tm-extra-product-options label, .order .tc-extra-product-options label, .order .tm-epo-element-label, .order .tc-epo-element-label { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.order .tm-extra-product-options input[type=text], .order .tc-extra-product-options input[type=text] { width: 100%; }
.order .tm-extra-product-options ul, .order .tc-extra-product-options ul { margin: 0; padding: 0; list-style: none; }

@media (max-width: 760px) {
	.cat-top__img, .cat-top__photo, .cat-top__glow { display: none; }
	.cat-top__in > * { max-width: 100%; }
	.cat-top__in { padding-top: 32px; padding-bottom: 36px; }
	.subtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fbar__sep { display: none; }
}

@media (max-width: 1100px) {
	.grits { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
}

/* Cijene se na katalogu ne prikazuju (TM EPO ispisuje vlastiti zbroj). */
.order .amount, .order .tc-price-wrap, .order .tm-epo-totals, .order .tc-epo-totals, .order .tc-totals-form { display: none !important; }

/* Mreža na svijetloj pločici je samo IZA proizvoda: fotografija se prikazuje kao izrez
   s prozirnom pozadinom (inc/izrez.php). Gdje izreza nema (fotografija bez bijele
   pozadine), slika se stapa s podlogom, pa se mreža ne crta da ne prolazi kroz nju. */
.gal:not(.gal--dark):not(.gal--cut) .gal__grid,
.kcard__img:not(.kcard__img--dark):not(.has-cut) .kcard__grid { display: none; }
.gal--cut .gal__img, .kcard__img.has-cut img { mix-blend-mode: normal; }

/* Polja „…koju trebate” vide se tek kad se odabere „po Vašoj želji”. */
.variation-custom-div { display: none; }
.variation-custom-div.variation-custom-show { display: block; }
