/*
Theme Name: Zajel
Theme URI: https://www.zajel.ba
Author: Zajel
Description: Lagana WooCommerce tema za Zajel.ba – bez page buildera, minimalistički stil.
Version: 0.9.8
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.0
Text Domain: zajel
*/

:root {
	--z-black: #000;
	--z-ink: #1a1a1a;
	--z-muted: #595959;
	--z-line: #e6e6e6;
	--z-soft: #f2f2f2;
	--z-beige: #e9e5df;
	--z-sale: #b3121b;
	--z-yellow: #ffc401;
	--z-head: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
	--z-body: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--z-pad: 24px;
	--z-header-h: 64px;
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.z-locked { overflow: hidden; }
body { margin: 0; font-family: var(--z-body); font-size: 15px; line-height: 1.55; color: var(--z-black); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: #555; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--z-black); outline-offset: 2px; }
.z-visually-hidden, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.z-skip { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 10px 14px; z-index: 100; }
.z-skip:focus { left: 8px; top: 8px; }
.z-center { text-align: center; }

.z-h1, .z-h2, h1, h2, h3 { font-family: var(--z-head); font-weight: 700; text-transform: uppercase; line-height: 1.05; letter-spacing: .01em; }
.z-h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 8px; }
.z-h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }

.z-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; background: #000; color: #fff; border: 1px solid #000; font-family: var(--z-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.z-btn:hover { background: #fff; color: #000; }
.z-btn--outline { background: rgba(255,255,255,.35); color: #000; }
.z-btn--outline:hover { background: #000; color: #fff; }
.z-link { font-family: var(--z-head); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 4px; }

/* ---------- Traka na vrhu ---------- */
.z-promo { background: #000; color: #fff; padding: 0 16px; font-family: var(--z-head); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.z-promo__list { list-style: none; margin: 0 auto; padding: 0; height: 36px; display: flex; align-items: center; justify-content: center; gap: 44px; }
.z-promo__list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
/* Mobitel: poruke se smjenjuju u jednom redu (3 s svaka). */
@media (max-width: 760px) {
	.z-promo__list { position: relative; gap: 0; }
	.z-promo__list li { position: absolute; inset: 0; justify-content: center; opacity: 0; animation: zPromo 9s infinite; }
	.z-promo__list li:nth-child(2) { animation-delay: 3s; }
	.z-promo__list li:nth-child(3) { animation-delay: 6s; }
	.z-promo__list--1 li { opacity: 1; animation: none; }
	.z-promo__list--2 li { animation-duration: 6s; }
}
@keyframes zPromo { 0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 34% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
	.z-promo__list li { animation: none; opacity: 0; }
	.z-promo__list li:first-child { opacity: 1; }
}

/* ---------- Header ---------- */
.z-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--z-line); display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; height: var(--z-header-h); padding: 0 var(--z-pad); }
.admin-bar .z-header { top: 32px; }
.z-header__left { display: flex; align-items: center; gap: 8px; }
.z-header__right { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.z-logo { font-family: var(--z-head); font-weight: 700; font-size: 28px; letter-spacing: .02em; text-decoration: none; color: #000; line-height: 1; }
.z-logo__img { max-height: 40px; width: auto; }
.z-logo { display: inline-flex; align-items: center; }
.z-logo__svg { display: block; height: 40px; width: auto; }
.z-drawer .z-logo__svg { height: 32px; }
.z-foot__brand { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--z-line); }
.z-foot__logo { display: inline-flex; }
.z-foot__logo .z-logo__svg { height: 36px; width: auto; display: block; }
.z-foot__claim { margin: 0; font-family: var(--z-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #333; }
.z-iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; color: #000; text-decoration: none; }
.z-burger { display: none; }
.z-cart-count:not(:empty) { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #000; color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; }

.z-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 34px; font-family: var(--z-head); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.z-nav__list > li { position: static; }
.z-nav__list > li > a { display: block; padding: 22px 0; text-decoration: none; }
.z-nav__list > li > a:hover, .z-nav__list > .current-menu-item > a, .z-nav__list > .current-menu-ancestor > a { text-decoration: underline; text-underline-offset: 6px; color: #000; }
.z-nav__list .sub-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--z-yellow); color: #000; border: 0; padding: 18px var(--z-pad); list-style: none; margin: 0; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.z-nav__list .sub-menu li { white-space: nowrap; }
.z-nav__list .sub-menu a { display: block; padding: 6px 0; color: #000; }
.z-nav__list > li:hover > .sub-menu, .z-nav__list > li:focus-within > .sub-menu { display: flex; }
.z-nav__list .sub-menu a { text-decoration: none; }
.z-nav__list .sub-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.z-nav__list > li > a[href*="akcija"] { color: var(--z-sale); }

.z-search { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--z-line); box-shadow: 0 12px 24px -18px rgba(0,0,0,.35); padding: 14px var(--z-pad) 12px; z-index: 40; }
.z-searchform { position: relative; display: flex; align-items: center; max-width: 680px; margin: 0 auto; border-bottom: 2px solid #000; }
.z-searchform__icon { display: flex; color: #000; padding: 0 10px 0 2px; }
.z-searchform input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; padding: 0; font-size: 16px; color: #000; -webkit-appearance: none; appearance: none; border-radius: 0; }
.z-searchform input[type="search"]::placeholder { color: #8a8a8a; }
.z-searchform input[type="search"]::-webkit-search-cancel-button { display: none; }
.z-searchform__go { height: 32px; padding: 0 14px; background: #000; color: #fff; border: 0; font-family: var(--z-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.z-searchform__go:hover { background: #222; }
.z-searchform__close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 6px; background: none; border: 0; color: #000; cursor: pointer; }
.z-searchform:focus-within { border-bottom-color: var(--z-yellow, #ffc401); }
.z-search__quick { max-width: 680px; margin: 10px auto 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; }
.z-search__quick span { color: #8a8a8a; margin-right: 2px; }
.z-search__quick a { padding: 4px 10px; border: 1px solid var(--z-line); color: #000; text-decoration: none; border-radius: 999px; }
.z-search__quick a:hover { border-color: #000; }
@media (max-width: 760px) {
	.z-search { padding: 10px 16px; }
	.z-searchform__go { display: none; }
	.z-search__quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.z-search__quick a { white-space: nowrap; }
}

/* ---------- Ladice (mobilni meni, filteri) ---------- */
.z-drawer { position: fixed; inset: 0; z-index: 60; }
.z-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .2s; }
.z-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 88vw); background: #fff; overflow-y: auto; transform: translateX(-100%); transition: transform .2s ease; z-index: 1; display: flex; flex-direction: column; }
.admin-bar .z-drawer__panel { top: 32px; }
.z-drawer--right .z-drawer__panel { left: auto; right: 0; transform: translateX(100%); }
.z-drawer.is-open .z-drawer__panel { transform: none; }
.z-drawer.is-open .z-drawer__backdrop { opacity: 1; }
.z-drawer__top { display: flex; justify-content: space-between; align-items: center; height: var(--z-header-h); padding: 0 12px 0 var(--z-pad); border-bottom: 1px solid var(--z-line); }
.z-drawer__title { font-family: var(--z-head); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.z-drawer__body { padding: 8px var(--z-pad) 32px; }
.z-drawer__list, .z-drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.z-drawer__list > li { position: relative; border-bottom: 1px solid var(--z-line); }
.z-drawer__list > li > a { display: block; padding: 16px var(--z-pad); font-family: var(--z-head); font-weight: 700; font-size: 17px; text-transform: uppercase; text-decoration: none; }
.z-drawer__list .sub-menu { padding: 0 var(--z-pad) 14px; }
.z-drawer__list .sub-menu a { display: block; padding: 9px 0; text-decoration: none; }
.z-subtoggle { position: absolute; right: 8px; top: 6px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.z-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.z-drawer__contact { margin-top: auto; padding: 24px var(--z-pad); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--z-muted); }

/* ---------- Početna ---------- */
.z-hero { position: relative; min-height: min(720px, 82vh); background: var(--z-beige); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.z-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.z-hero__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 64px 16px; }
.z-hero__kicker { margin: 0; font-family: var(--z-head); font-weight: 600; font-size: 15px; letter-spacing: .3em; text-transform: uppercase; }
.z-hero__title { margin: 0; font-size: clamp(64px, 9vw, 128px); line-height: .9; letter-spacing: -.01em; }
.z-hero__btns { display: flex; flex-direction: column; gap: 10px; width: 240px; margin-top: 10px; }
.z-hero.is-dark { color: #fff; }
.z-hero.is-dark .z-btn--outline { color: #fff; border-color: #fff; background: rgba(0,0,0,.2); }
.z-hero.is-dark .z-btn--outline:hover { background: #fff; color: #000; }
/* Fotografija preko cijele širine, naslov i dugmad preko slike (bijelo, uz blago zatamnjenje). */
.z-hero.has-img { min-height: min(820px, 86vh); color: #fff; justify-content: flex-start; text-align: left; }
.z-hero.has-img .z-hero__img { object-position: 60% 24%; }
.z-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,.15) 55%, rgba(0,0,0,0)); pointer-events: none; }
.z-hero.has-img .z-hero__content { z-index: 1; align-items: flex-start; padding-left: clamp(24px, 7vw, 120px); }
.z-hero.has-img .z-hero__title { text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.z-hero.has-img .z-btn--outline { color: #fff; border-color: #fff; background: rgba(0,0,0,.18); }
.z-hero.has-img .z-btn--outline:hover { background: #fff; color: #000; }
/* Desktop: fotografija preko cijele širine, prikazan donji dio (noge i cipele), naslov i dugmad lijevo preko slike. */
@media (min-width: 901px) {
	.z-hero.has-img .z-hero__img { object-position: 50% 88%; }
}

.z-tiles { padding: 72px 0 8px; }
.z-tiles .z-h2 { margin-bottom: 36px; }
.z-tiles__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
.z-tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: #000; }
.z-tile__media { display: block; aspect-ratio: 4 / 5; background: var(--z-soft); overflow: hidden; }
.z-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.z-tile:hover img { transform: scale(1.03); }
.z-tile__name { padding: 0 12px; font-family: var(--z-head); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }

.z-section { padding: 88px var(--z-pad) 24px; }
.z-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.z-banners { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; padding-top: 72px; }
.z-banner { position: relative; display: flex; min-height: 620px; background: #d8d3cc; color: #000; text-decoration: none; overflow: hidden; }
.z-banner.is-dark { background: #1c1c1c; color: #fff; }
.z-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.z-banner__content { position: relative; margin-top: auto; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.z-banner__kicker { font-family: var(--z-head); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.z-banner__title { font-family: var(--z-head); font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: .95; text-transform: uppercase; }
.z-banner__link { font-family: var(--z-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.z-banner:hover { color: inherit; }
.z-banner.is-sale { background: var(--z-sale); color: #fff; }
/* Baner s fotografijom: bijeli tekst na blagom tamnom prelazu odozdo, da se čita na svakoj slici. */
.z-banner:has(.z-banner__img) { color: #fff; }
.z-banner:has(.z-banner__img)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.6)); z-index: 1; pointer-events: none; }
.z-banner__content { z-index: 2; }
.z-feature { padding-top: 72px; }
.z-feature__link { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); background: var(--z-beige); color: #000; text-decoration: none; }
.z-feature__link:hover { color: #000; }
.z-feature__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.z-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.z-feature__link:hover .z-feature__media img { transform: scale(1.02); }
.z-feature__content { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px clamp(24px, 6vw, 96px); }
.z-feature__title { font-family: var(--z-head); font-weight: 700; font-size: clamp(40px, 5vw, 76px); line-height: .92; text-transform: uppercase; }

.z-brands { padding: 88px var(--z-pad) 0; }
.z-brands .z-h2 { margin-bottom: 28px; }
.z-brands__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--z-line); border-bottom: 1px solid var(--z-line); }
.z-brands__list a { display: block; padding: 26px 28px; font-family: var(--z-head); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }

.z-trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; padding: 64px var(--z-pad); text-align: center; }
.z-trust__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.z-trust__item strong { font-family: var(--z-head); font-size: 14px; text-transform: uppercase; }
.z-trust__item span { font-size: 13px; color: var(--z-muted); }

.z-about { background: #f5f5f5; padding: 64px var(--z-pad); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.z-about p { margin: 0; max-width: 720px; color: #333; }
.z-newsletter { width: 100%; max-width: 460px; margin-top: 12px; }

/* ---------- Mreža proizvoda ---------- */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px 6px; }
ul.products::before, ul.products::after { display: none !important; }
.z-card { margin: 0 !important; width: auto !important; float: none !important; }
.z-card__link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: #000; height: 100%; }
.z-card__link:hover { color: #000; }
.z-card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: #f5f5f5; overflow: hidden; }
/* Cijela slika unutar okvira – ništa se ne odsijeca; bijela pozadina fotografije se stapa s okvirom. */
.z-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; mix-blend-mode: multiply; transition: opacity .25s; }
.z-card__img.is-fill { object-fit: cover; padding: 0; }
.z-card__img--alt { opacity: 0; }
@media (hover: hover) { .z-card__media.has-alt:hover .z-card__img--alt { opacity: 1; } .z-card__media.has-alt:hover .z-card__img:not(.z-card__img--alt) { opacity: 0; } }
.z-badge { position: absolute; top: 12px; left: 12px; font-family: var(--z-head); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.z-badge--sale { background: var(--z-sale); color: #fff; font-size: 12px; padding: 4px 7px; letter-spacing: 0; }
.z-badge--out { top: auto; bottom: 12px; background: #fff; padding: 4px 7px; }
.z-card__info { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
.z-card__brand { font-size: 11px; letter-spacing: .08em; color: var(--z-muted); text-transform: uppercase; }
.z-card__title { font-family: var(--z-head); font-size: 14px; font-weight: 600; text-transform: uppercase; line-height: 1.25; }
.z-card__price, .price { font-size: 13px; font-weight: 500; }
.price del { color: var(--z-muted); font-weight: 400; margin-right: 6px; }
ins { text-decoration: none; }
.price ins, .z-card__price ins { color: var(--z-sale); font-weight: 600; }
.z-card__price del { color: var(--z-muted); font-weight: 400; margin-left: 6px; }

/* ---------- Kategorija ---------- */
.z-shop { padding-bottom: 80px; }
.z-archive__head { padding: 28px var(--z-pad) 0; }
.z-bc { font-size: 12px; color: var(--z-muted); letter-spacing: .03em; margin-bottom: 16px; }
.z-bc a { color: var(--z-muted); }
.z-bc__sep { margin: 0 6px; }
.z-archive__count { margin: 0; font-size: 13px; color: var(--z-muted); }
.z-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.z-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid #d0d0d0; font-family: var(--z-head); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.z-chip:hover { border-color: #000; color: #000; }
.z-chip.is-active { background: #000; border-color: #000; color: #fff; }
.term-description { margin-top: 16px; max-width: 760px; color: #333; font-size: 14px; }
.z-archive__seo { padding: 64px var(--z-pad) 0; max-width: 900px; color: var(--z-muted); font-size: 13px; line-height: 1.6; }
.z-archive__seo .term-description { margin: 0; color: inherit; font-size: inherit; }
.z-toolbar { position: sticky; top: var(--z-header-h); z-index: 30; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; margin-top: 24px; margin-bottom: 4px; padding: 0 var(--z-pad); border-top: 1px solid var(--z-line); border-bottom: 1px solid var(--z-line); }
.admin-bar .z-toolbar { top: calc(var(--z-header-h) + 32px); }
.z-toolbar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: none; border: 0; padding: 0; font-family: var(--z-head); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { border: 0; background: transparent; font-family: var(--z-head); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; min-height: 44px; cursor: pointer; }
.z-shop > .woocommerce-notices-wrapper, .z-shop .woocommerce-info, .z-shop .woocommerce-message { margin-left: var(--z-pad); margin-right: var(--z-pad); }
.z-filter { padding: 18px 0; border-bottom: 1px solid var(--z-line); }
.z-filter__title { font-size: 15px; margin: 0 0 12px; }
.z-filter ul { list-style: none; margin: 0; padding: 0; }
.z-filter li { padding: 5px 0; }
.woocommerce-pagination { margin-top: 56px; text-align: center; }
.woocommerce-pagination ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 4px; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid #d0d0d0; text-decoration: none; font-weight: 500; }
.woocommerce-pagination .current { background: #000; border-color: #000; color: #fff; }
/* Učitavanje dok skrolaš – numeracija ostaje samo kao rezerva bez JavaScripta. */
.z-inf .woocommerce-pagination { display: none; }
.z-more { display: none; justify-content: center; padding: 40px 0 0; }
.z-inf .z-more { display: flex; }
.z-more__status { font-size: 13px; color: var(--z-muted); letter-spacing: .04em; }
.z-more.is-done { display: none; }
.z-more__btn { margin-top: 8px; }

/* ---------- Proizvod ---------- */
.single-product .z-shop { padding-bottom: 40px; }
.single-product div.product { display: flex; align-items: flex-start; flex-wrap: wrap; }
.single-product div.product > .woocommerce-product-gallery { flex: 1 1 60%; min-width: 0; margin: 0; width: auto !important; float: none !important; opacity: 1 !important; position: relative; }
.single-product div.product > .summary { flex: 1 1 36%; min-width: 0; position: sticky; top: var(--z-header-h); padding: 28px 48px 32px; margin: 0; width: auto !important; float: none !important; display: flex; flex-direction: column; gap: 12px; }
/* Desktop: sažetak se skrola normalno (ništa se ne odsijeca); kad dugme za korpu izađe s ekrana,
   pojavi se traka "Dodaj u korpu" na dnu (vidi .z-buybar). */
@media (min-width: 901px) {
	.single-product div.product > .summary { position: static; }
	.single-product .summary .product_title { font-size: clamp(22px, 1.9vw, 28px); }
}
.z-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--z-line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s ease; }
.z-buybar.is-on { transform: none; }
.z-buybar__in { display: flex; align-items: center; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 10px var(--z-pad); }
.z-buybar__img { width: 48px; height: 60px; flex: 0 0 48px; background: #f5f5f5; }
.z-buybar__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.z-buybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.z-buybar__name { font-family: var(--z-head); font-weight: 700; font-size: 14px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-buybar__price { font-size: 14px; }
.z-buybar__price del { color: var(--z-muted); margin-left: 6px; }
.z-buybar__price ins { color: var(--z-sale); }
.z-buybar__size { font-size: 12px; color: var(--z-muted); }
.z-buybar__btn { height: 48px; padding: 0 28px; background: #000; color: #fff; border: 0; font-family: var(--z-head); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
@media (max-width: 600px) { .z-buybar__img { display: none; } .z-buybar__btn { padding: 0 18px; font-size: 13px; } }
.z-gallery .woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; margin: 0; }
.z-gallery .woocommerce-product-gallery__image { background: var(--z-soft); overflow: hidden; width: auto !important; margin: 0 !important; float: none !important; display: block !important; }
.z-gallery .woocommerce-product-gallery__image:only-child { grid-column: span 2; }
.z-gallery .woocommerce-product-gallery__image:only-child img { max-height: 85vh; object-fit: contain; }
.z-gallery .woocommerce-product-gallery__image a { display: block; height: 100%; }
.z-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0; text-decoration: none; }
.woocommerce-product-gallery__trigger::before { content: "+"; font-size: 22px; }
.single-product .onsale { position: absolute; top: 12px; left: 12px; z-index: 3; background: var(--z-sale); color: #fff; font-family: var(--z-head); font-weight: 700; font-size: 13px; padding: 4px 8px; }
.summary .z-bc { margin: 0; }
.z-pdp__brand { font-family: var(--z-head); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.summary .product_title { margin: 0; font-size: clamp(26px, 2.4vw, 32px); }
.summary > .price, .summary .price { font-size: 20px; font-weight: 600; margin: 4px 0 0; color: #000 !important; }
.summary .price ins { color: var(--z-sale); }
.z-pdp__vat { margin: -8px 0 0; font-size: 12px; color: var(--z-muted); }
.summary .woocommerce-product-details__short-description { font-size: 14px; color: #333; }
.summary form.cart { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; }
.summary table.variations { border: 0; margin: 0; width: 100%; border-collapse: collapse; }
.summary table.variations tr { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.summary table.variations th, .summary table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.summary table.variations label { font-family: var(--z-head); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.summary .reset_variations { font-size: 12px; margin-top: 8px; display: inline-block; }
/* Bez praznog prostora između veličina i dugmeta. */
.summary .reset_variations[style*="hidden"] { display: none; }
.summary table.variations { margin-bottom: 0 !important; }
.summary table.variations tr { margin-bottom: 0; }
.z-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.z-swatch { min-height: 46px; padding: 0 8px; background: #fff; border: 1px solid #d0d0d0; font-size: 14px; cursor: pointer; }
.z-swatch:hover { border-color: #000; }
.z-swatch.is-active { background: #000; color: #fff; border-color: #000; }
.z-swatch.is-disabled, .z-swatch:disabled { position: relative; color: #9a9a9a; background: #fafafa; border-color: #e2e2e2; cursor: not-allowed; overflow: hidden; }
/* Nema na stanju: prekriženo (kao na dosadašnjem zajel.ba). */
.z-swatch.is-disabled::before, .z-swatch.is-disabled::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 1px; background: #e0a0a0; transform: translate(-50%, -50%) rotate(35deg); }
.z-swatch.is-disabled::after { transform: translate(-50%, -50%) rotate(-35deg); }
.single_variation_wrap { display: flex; flex-direction: column; gap: 12px; }
.woocommerce-variation-price .price { font-size: 18px; }
.woocommerce-variation-add-to-cart, .summary form.cart:not(.variations_form) { display: flex; gap: 8px; }
.quantity .qty { width: 64px; height: 54px; border: 1px solid #d0d0d0; text-align: center; }
.single_add_to_cart_button { flex: 1; height: 54px; background: #000 !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; font-family: var(--z-head) !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.single_add_to_cart_button.disabled { background: #6b6b6b !important; opacity: 1 !important; }
.stock { font-size: 13px; margin: 0; }
.stock.out-of-stock { color: var(--z-sale); }
.z-pdp__trust { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #333; }
.z-pdp__trust li { display: flex; align-items: center; gap: 10px; }
.z-acc { border-top: 1px solid var(--z-line); margin-top: 8px; }
.z-acc__item { border-bottom: 1px solid var(--z-line); }
.z-acc__head { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-family: var(--z-head); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.z-acc__head::-webkit-details-marker { display: none; }
.z-acc__head::after { content: "+"; font-size: 20px; font-weight: 400; }
.z-acc__item[open] .z-acc__head::after { content: "−"; }
.z-acc__body { padding-bottom: 18px; font-size: 14px; color: #333; }
.z-acc__body table { width: 100%; border-collapse: collapse; }
.z-acc__body th, .z-acc__body td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--z-line); }
.related, .upsells { width: 100%; padding: 80px var(--z-pad) 0; }
.z-more-brand { padding: 80px var(--z-pad) 24px; clear: both; }
.related > h2, .upsells > h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 0 0 28px; }

/* BeRocket filteri u ladici */
.z-drawer__body .bapf_sfilter { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--z-line); }
.z-drawer__body .bapf_head h3 { font-family: var(--z-head); font-size: 15px; text-transform: uppercase; margin: 0; }
.z-drawer__body .wpf_item_pa_velicina .bapf_body ul, .z-drawer__body [class*="velicina"] .bapf_body ul { display: grid !important; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.z-drawer__body [class*="velicina"] .bapf_body li { margin: 0 !important; position: relative; }
.z-drawer__body [class*="velicina"] .bapf_body li input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.z-drawer__body [class*="velicina"] .bapf_body li label { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #d0d0d0; font-size: 14px; }
.z-drawer__body [class*="velicina"] .bapf_body li input:checked + label { background: #000; color: #fff; border-color: #000; }
.z-drawer__body [class*="velicina"] .bapf_body li input:focus-visible + label { outline: 2px solid #000; outline-offset: 2px; }

/* ---------- Stranice, korpa, kasa ---------- */
.z-page { padding: 40px var(--z-pad) 80px; max-width: 1280px; margin: 0 auto; }
.z-article .z-h1 { margin-bottom: 28px; }
.z-content { max-width: 820px; }
.z-page--wc .z-content { max-width: none; }
.z-content a { text-underline-offset: 3px; }
.z-posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 16px; }
.z-post__link { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.z-post__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.z-post__title { font-size: 20px; margin: 0; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .wc-block-components-button:not(.is-link) { background: #000 !important; color: #fff !important; border-radius: 0 !important; font-family: var(--z-head) !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; }
.woocommerce .button:hover { background: #333 !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: #000 !important; background: #f5f5f5 !important; }
.woocommerce-message::before, .woocommerce-info::before { color: #000 !important; }
.woocommerce form .input-text, .woocommerce form select { border: 1px solid #d0d0d0; border-radius: 0; min-height: 46px; padding: 8px 12px; }

/* ---------- Newsletter ---------- */
.z-nl { border-top: 1px solid var(--z-line); padding: 48px var(--z-pad); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.z-nl__title { font-size: 22px; margin: 0; }
.z-nl__text { margin: 0; color: var(--z-muted); font-size: 14px; }
.z-nl__form { width: 100%; display: flex; justify-content: center; margin-top: 8px; }
.z-nl .zf-form-wrap { width: 100%; max-width: 460px; }

/* ---------- Stikeri (ACF) ---------- */
.zf-stickers { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.zf-sticker { background: #000; color: #fff; font-family: var(--z-head); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; }


/* ---------- Popust kao kod D.Franklina: oznaka pored cijene ---------- */
.onsale, .z-badge--sale { display: none !important; }
.z-pill { display: inline-block; background: var(--z-sale); color: #fff; font-family: var(--z-head); font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 6px; margin-left: 8px; vertical-align: 1px; letter-spacing: .02em; }
.summary .z-pill { font-size: 13px; padding: 4px 8px; vertical-align: 3px; }

/* ---------- Uvećana slika (PhotoSwipe) ---------- */
.pswp__top-bar { background: rgba(0,0,0,.55) !important; height: 56px !important; }
.pswp__button { opacity: 1 !important; width: 56px !important; height: 56px !important; }
.pswp__button--close { opacity: 1 !important; transform: scale(1.15); }
.pswp__counter { line-height: 56px !important; opacity: 1 !important; }
.admin-bar .pswp__top-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar .pswp__top-bar { top: 46px; } }

/* ---------- Korpa ---------- */
.woocommerce-cart-form .shop_table td.product-thumbnail img { width: 80px; height: auto; max-width: none; }
.woocommerce-cart-form .shop_table td { vertical-align: middle; }
.woocommerce-cart-form .product-name a { text-decoration: none; font-family: var(--z-head); font-weight: 600; text-transform: uppercase; }
.woocommerce a.remove { color: #000 !important; font-size: 22px; font-weight: 300; }
.woocommerce a.remove:hover { background: none !important; color: var(--z-sale) !important; }
.upsell-products-wrapper { margin-top: 12px; font-size: 12px; }
.upsell-products-wrapper .upsell-title { font-family: var(--z-head); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.cart-item-upsell-products { display: flex; gap: 8px; overflow-x: auto; }
.upsell-product { flex: 0 0 110px; }
.upsell-product img { width: 110px; height: auto; }
.upsell-product h2 { font-size: 11px; margin: 4px 0 2px; }
.upsell-product p { margin: 0 0 4px; }
.upsell-product .button { font-size: 10px !important; padding: 6px 8px !important; }
@media (max-width: 768px) {
	.woocommerce-cart-form table.shop_table.cart thead { display: none; }
	.woocommerce-cart-form table.shop_table.cart, .woocommerce-cart-form table.shop_table.cart tbody { display: block; width: 100%; border: 0; }
	.woocommerce-cart-form table.shop_table.cart tr.cart_item { display: grid; grid-template-columns: 88px minmax(0,1fr) 32px; grid-template-areas: "thumb name remove" "thumb price price" "thumb qty sub" "up up up"; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--z-line); }
	.woocommerce-cart-form table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; background: none !important; }
	.woocommerce-cart-form table.shop_table.cart td::before { display: none !important; }
	.woocommerce-cart-form td.product-thumbnail { grid-area: thumb; }
	.woocommerce-cart-form td.product-thumbnail img { width: 88px; }
	.woocommerce-cart-form td.product-name { grid-area: name; font-size: 13px; line-height: 1.3; display: contents !important; }
	.woocommerce-cart-form td.product-name > a { grid-area: name; }
	.woocommerce-cart-form td.product-name .variation, .woocommerce-cart-form td.product-name dl { grid-area: price; }
	.woocommerce-cart-form td.product-name .upsell-products-wrapper { grid-area: up; }
	.woocommerce-cart-form td.product-remove { grid-area: remove; text-align: right !important; }
	.woocommerce-cart-form td.product-price { grid-area: price; font-size: 13px; color: var(--z-muted); }
	.woocommerce-cart-form td.product-quantity { grid-area: qty; }
	.woocommerce-cart-form td.product-quantity .qty { width: 56px; height: 40px; }
	.woocommerce-cart-form td.product-subtotal { grid-area: sub; text-align: right !important; align-self: center; font-weight: 600; grid-column: 2 / 4; justify-self: end; }
	.woocommerce-cart-form table.shop_table.cart tr:not(.cart_item) { display: block; }
	.woocommerce-cart-form table.shop_table.cart tr:not(.cart_item) td { display: block; padding: 12px 0 !important; border: 0 !important; }
	.cart-collaterals .cart_totals { width: 100% !important; float: none !important; }
	.cart_totals table.shop_table th, .cart_totals table.shop_table td { padding: 10px 8px !important; }
	.wc-proceed-to-checkout .checkout-button { width: 100%; }
}

/* ---------- Footer ---------- */
.z-foot { border-top: 1px solid var(--z-line); padding: 56px var(--z-pad) 28px; }
.z-foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.z-foot__title { font-size: 14px; letter-spacing: .06em; margin: 0 0 16px; }
.z-foot__list, .z-foot__social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.z-foot__list a, .z-foot__social a { text-decoration: none; }
.z-foot__list a:hover, .z-foot__social a:hover { text-decoration: underline; }
.z-foot__social { flex-direction: row; gap: 16px; margin-top: 16px; }
.z-foot__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--z-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--z-muted); }

/* ---------- Mobilno ---------- */
@media (max-width: 1100px) {
	.single-product div.product > .summary { padding: 28px 28px 32px; }
}
@media (max-width: 900px) {
	:root { --z-pad: 16px; --z-header-h: 56px; }
	.z-nav { display: none; }
	.z-burger { display: inline-flex; }
	.z-header { grid-template-columns: minmax(0,1fr) auto; }
	.z-logo { font-size: 24px; }
	.z-logo__svg { height: 32px; }
	ul.products, .z-tiles__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	ul.products { gap: 24px 4px; }
	.z-banners { grid-template-columns: 1fr; }
	.z-banner { min-height: 460px; }
	.z-hero.has-img { min-height: min(680px, 82vh); align-items: flex-end; justify-content: center; text-align: center; }
	.z-hero.has-img .z-hero__img { object-position: 55% 30%; }
	.z-hero.has-img::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.55)); }
	.z-hero.has-img .z-hero__content { align-items: center; padding: 40px 16px 44px; }
	.z-feature__link { grid-template-columns: 1fr; }
	.z-feature__content { padding: 32px 16px 40px; }
	.z-trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.z-foot__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.z-posts { grid-template-columns: 1fr; }
	.z-section { padding-top: 64px; }
	.z-tiles { padding-top: 56px; }
	.single-product div.product { flex-direction: column; align-items: stretch; }
	.single-product div.product > .summary { position: static; padding: 20px 16px 8px; }
	.z-gallery .woocommerce-product-gallery__wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2px; }
	.z-gallery .woocommerce-product-gallery__image { flex: 0 0 100%; scroll-snap-align: center; }
	.z-gallery .woocommerce-product-gallery__image:only-child { flex-basis: 100%; }
}
@media (max-width: 782px) {
	.admin-bar .z-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .z-header { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Korpa: bez "Dostava u <adresa>" – za goste WooCommerce prikazuje adresu radnje; dostava se šalje na adresu kupca. */
.woocommerce-shipping-destination, .woocommerce-cart .woocommerce-shipping-calculator { display: none !important; }

/* Djeca – manja kartica odmah iza "Za nju" / "Za njega" (0.9.6) */
.z-feature--kids { padding-top: 56px; }
.z-feature--kids .z-feature__link { grid-template-columns: minmax(0,5fr) minmax(0,7fr); max-width: 1100px; margin: 0 auto; }
.z-feature--kids .z-feature__media { aspect-ratio: 4 / 3; }
.z-feature--kids .z-feature__content { gap: 12px; padding: 32px clamp(20px, 4vw, 64px); }
.z-feature--kids .z-feature__title { font-size: clamp(30px, 3.4vw, 52px); }
@media (max-width: 760px) {
	.z-feature--kids { padding-top: 40px; }
	.z-feature--kids .z-feature__link { grid-template-columns: minmax(0,42%) minmax(0,58%); }
	.z-feature--kids .z-feature__media { aspect-ratio: 4 / 5; }
	.z-feature--kids .z-feature__content { gap: 8px; padding: 16px 14px; }
	.z-feature--kids .z-feature__title { font-size: 26px; }
	.z-feature--kids .z-banner__kicker, .z-feature--kids .z-banner__link { font-size: 12px; }
}
