/*
Theme Name: NikoTrade Mirisi
Theme URI: https://nikotrade.hr
Author: NikoTrade
Description: WooCommerce tema s fokusom na automirise u obliku dresa: 20 mirisa, editor dresa s upitom i katalog ostalih proizvoda. Plave boje partnera (Dinamo, Belupo) i scroll animacije.
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: nikotrade-mirisi
*/

/* ---------- Osnova ---------- */

:root {
	--nt-ease: cubic-bezier(.2, .7, .2, 1);
	--nt-hair: 1px solid var(--wp--preset--color--line);
	--nt-radius: 20px;
	--nt-shadow: 0 18px 40px -18px rgba(6, 26, 64, .28);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--wp--preset--color--accent); color: #fff; }

a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }

.nt-eyebrow {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.has-ink-background-color .nt-eyebrow, .has-accent-background-color .nt-eyebrow { color: var(--wp--preset--color--sky); }

.nt-lead { font-size: var(--wp--preset--font-size--l); line-height: 1.45; color: var(--wp--preset--color--muted); max-width: 40ch; }
.has-ink-background-color .nt-lead { color: rgba(255, 255, 255, .74); }

.nt-kit-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 900; line-height: .8; font-size: clamp(5rem, 14vw, 11rem);
	color: transparent; -webkit-text-stroke: 1.5px var(--wp--preset--color--accent);
	margin: 0; user-select: none;
}

/* Naslov sekcije: naslov lijevo, kratki opis desno */
.nt-section-head { gap: 1.25rem 3rem !important; margin-bottom: var(--wp--preset--spacing--40); }
.nt-section-head h2 { font-size: clamp(2.4rem, 5.4vw, 4.5rem); margin: 0; }
.nt-section-lead { color: var(--wp--preset--color--muted); max-width: 44ch; margin: 0; }
.nt-faq h2 + .nt-section-lead { margin-top: 1.5rem; }
.has-ink-background-color .nt-section-lead, .has-accent-background-color .nt-section-lead { color: rgba(255, 255, 255, .78); }

/* ---------- Gumbi ---------- */

.wp-block-button__link { transition: background-color .25s var(--nt-ease), color .25s var(--nt-ease), border-color .25s var(--nt-ease), transform .25s var(--nt-ease); }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--ink); border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-light > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--wp--preset--color--sky); border-color: var(--wp--preset--color--sky); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline-light > .wp-block-button__link { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.wp-block-button.is-style-outline-light > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); border-color: #fff; }

.nt-arrow-link a, a.nt-arrow-link {
	font-weight: 600; font-size: var(--wp--preset--font-size--s);
	letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	border-bottom: 1px solid currentColor; padding-bottom: .2rem;
}
.nt-arrow-link a::after, a.nt-arrow-link::after { content: " →"; display: inline-block; transition: transform .25s var(--nt-ease); }
.nt-arrow-link a:hover::after, a.nt-arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Zaglavlje ---------- */

/* Cijelo zaglavlje je ljepljivo; traka s partnerima odlazi gore pri skrolanju */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky; top: calc(var(--nt-topbar-h, 0px) * -1); z-index: 60;
	margin-block-start: 0;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--nt-topbar-h, 0px)); }

.nt-topbar {
	background: #03102A; color: rgba(255, 255, 255, .78);
	font-size: var(--wp--preset--font-size--xs); letter-spacing: .05em;
}
.nt-topbar p { margin: 0; }
@media (max-width: 1080px) { .nt-topbar .nt-hide-mobile { display: none; } }
.nt-topbar-clubs { display: flex; align-items: center; gap: .45rem; color: #fff; }
.nt-topbar-clubs .nt-crest { height: 20px; width: auto; object-fit: contain; }
.nt-topbar-clubs .nt-crest + .nt-crest { margin-right: .35rem; }

.nt-header {
	background: var(--wp--preset--color--ink); color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	transition: background-color .3s var(--nt-ease), box-shadow .3s var(--nt-ease);
}
.is-scrolled .nt-header { background: rgba(6, 26, 64, .94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.nt-header .nt-logo { margin: 0; }
.nt-header .nt-logo img { display: block; height: auto; }
.nt-header .wp-block-navigation { font-size: 1.2rem; font-weight: 600; color: #fff; }
.nt-header .wp-block-navigation-item__content { text-decoration: none; position: relative; color: inherit; }
.nt-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
	background: var(--wp--preset--color--sky);
	transform: scaleX(0); transform-origin: left; transition: transform .3s var(--nt-ease);
}
.nt-header .wp-block-navigation-item__content:hover::after,
.nt-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.nt-header .wp-block-navigation__responsive-container-open { color: #fff; }
.nt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; font-weight: 800; text-transform: uppercase; }

.nt-header .wc-block-customer-account__account-icon,
.nt-header .wc-block-customer-account svg { width: 2rem !important; height: 2rem !important; }
.nt-header .wc-block-customer-account__link { display: flex; align-items: center; color: #fff; }
.nt-header .wc-block-customer-account__link:hover { color: var(--wp--preset--color--sky); }
.nt-header .wc-block-mini-cart__button { padding: .25rem; color: #fff; }
.nt-header .wc-block-mini-cart__button:hover { color: var(--wp--preset--color--sky); }
.nt-header .wc-block-mini-cart__icon { width: 2rem !important; height: 2rem !important; margin: 0 !important; }
.nt-header .wc-block-mini-cart__badge {
	background-color: var(--wp--preset--color--sky) !important; color: var(--wp--preset--color--ink) !important;
	border-radius: 999px; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
	font-size: .72rem; font-weight: 700; line-height: 1; box-shadow: 0 0 0 2px var(--wp--preset--color--ink);
}
.nt-header .wc-block-mini-cart__badge.is-bump { animation: nt-bump .5s var(--nt-ease); }
@keyframes nt-bump { 40% { transform: scale(1.45); } }

/* ---------- Hero ---------- */

.nt-hero, .nt-page-hero { position: relative; overflow: hidden; isolation: isolate; }
/* Tanke vodoravne pruge kao na plavom dresu */
.nt-hero::before, .nt-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(142, 197, 255, .07) 34px 38px);
	transform: translateY(calc(var(--nt-scroll, 0) * 40px));
}
.nt-hero h1, .nt-page-hero h1 {
	color: #fff; font-size: clamp(3.4rem, 9vw, 8.5rem); font-weight: 900; line-height: .86; letter-spacing: -.005em; margin: .4rem 0 0;
}
.nt-hero h1 em, .nt-page-hero h1 em { font-style: normal; color: var(--wp--preset--color--sky); }
.nt-page-hero.is-compact h1 { font-size: clamp(3rem, 7vw, 6rem); }
.nt-hero-copy .wp-block-buttons { gap: .75rem; }
.nt-hero-visual { position: relative; }
.nt-hero-visual figure { margin: 0; }
.nt-hero-visual img { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.nt-parallax { will-change: transform; }
.nt-page-hero-img img { max-height: 340px; width: auto; margin-inline: auto; display: block; }

.nt-hero-facts { list-style: none; padding: 0; margin: var(--wp--preset--spacing--40) 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.nt-hero-facts li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 2px solid rgba(142, 197, 255, .45); }
.nt-hero-facts strong { font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.nt-hero-facts span { font-size: var(--wp--preset--font-size--xs); color: rgba(255, 255, 255, .65); letter-spacing: .04em; }

/* ---------- Traka s klubovima ---------- */

.nt-marquee { overflow: hidden; border-bottom: var(--nt-hair); background: #fff; padding: 1.1rem 0; }
.nt-marquee-track { display: flex; width: max-content; gap: 3.5rem; animation: nt-marquee 38s linear infinite; }
.nt-marquee:hover .nt-marquee-track { animation-play-state: paused; }
.nt-marquee-item { display: inline-flex; align-items: center; gap: .8rem; white-space: nowrap; font-weight: 600; font-size: var(--wp--preset--font-size--s); color: var(--wp--preset--color--muted); }
.nt-marquee-item img { height: 42px; width: 42px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.nt-marquee-item:hover img { filter: none; opacity: 1; }
@keyframes nt-marquee { to { transform: translateX(-50%); } }

/* ---------- Editor dresa ---------- */

/* Pregled dresa se pri skrolanju zaustavlja ispod zaglavlja (visinu zaglavlja mjeri animacije.js) */
.nt-dres .nt-dres-stage { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--nt-header-h, 84px) + 2.25rem); }

/* ---------- Partneri ---------- */

.nt-partner-cards { gap: 1.25rem !important; }
.nt-partner-card {
	position: relative; overflow: hidden; isolation: isolate; border-radius: var(--nt-radius); color: #fff;
	padding: clamp(1.75rem, 3.5vw, 3rem);
	display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	min-height: 420px;
}
/* Dinamo: tanke vodoravne pruge kao na dresu */
.nt-partner-card.is-dinamo { background: #0B3C9C; }
.nt-partner-card.is-dinamo::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: repeating-linear-gradient(180deg, transparent 0 26px, rgba(142, 197, 255, .14) 26px 30px);
}
/* Belupo: niz točkica kao na rukavima i hlačicama dresa */
.nt-partner-card.is-belupo { background: #1559D6; }
.nt-partner-card.is-belupo::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(circle, rgba(255, 255, 255, .16) 2.5px, transparent 3px) 0 0 / 22px 22px;
	-webkit-mask-image: linear-gradient(115deg, transparent 35%, #000 85%); mask-image: linear-gradient(115deg, transparent 35%, #000 85%);
}
.nt-partner-card > * { margin: 0 !important; }
.nt-partner-card h3 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: .9; margin-top: 2.25rem !important; }
.nt-partner-card p { color: rgba(255, 255, 255, .82); max-width: 40ch; margin-top: .85rem !important; }
.nt-partner-crest {
	flex: none; width: clamp(130px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%; background: #fff;
	display: grid; place-items: center;
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .1), 0 0 0 22px rgba(255, 255, 255, .05), 0 30px 50px -20px rgba(0, 0, 0, .5);
	transition: transform .7s var(--nt-ease);
}
.nt-partner-crest img { width: 70%; height: 70%; object-fit: contain; }
.nt-partner-card:hover .nt-partner-crest { transform: rotate(-6deg) scale(1.05); }

/* ---------- Mirisi ---------- */

.nt-mirisi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.nt-miris {
	--tint: var(--wp--preset--color--accent);
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: var(--nt-hair); border-radius: var(--nt-radius); overflow: hidden;
	transition: box-shadow .45s var(--nt-ease), border-color .3s;
}
.nt-miris:hover { box-shadow: var(--nt-shadow); border-color: color-mix(in srgb, var(--tint) 45%, var(--wp--preset--color--line)); }
.nt-miris-img { display: block; position: relative; background: var(--wp--preset--color--paper); overflow: hidden; }
.nt-miris-img::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--tint); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--nt-ease); }
.nt-miris:hover .nt-miris-img::after { transform: scaleX(1); }
.nt-miris-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform .7s var(--nt-ease); }
.nt-miris:hover .nt-miris-img img { transform: scale(1.06) rotate(-2deg); }
.nt-miris-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.nt-miris-num { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: .95rem; letter-spacing: .08em; color: var(--tint); filter: saturate(1.1) brightness(.85); }
.nt-miris-title { font-size: 1.55rem; margin: 0; }
.nt-miris-title a { text-decoration: none; color: inherit; }
.nt-miris-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* cijela kartica je link */
.nt-miris-desc { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--s); line-height: 1.45; }
.nt-miris-foot { margin-top: auto; padding-top: .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nt-miris-price { font-weight: 700; }
.nt-miris-price del { color: var(--wp--preset--color--muted); font-weight: 400; opacity: .8; margin-right: .3rem; }
.nt-miris-price ins { text-decoration: none; }
.nt-miris-add {
	position: relative; z-index: 2;
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .55rem 1rem; border-radius: 6px; text-decoration: none; white-space: nowrap;
	font-size: .82rem; font-weight: 600; letter-spacing: .03em;
	background: var(--wp--preset--color--ink); color: #fff;
	transition: background-color .25s, transform .25s var(--nt-ease);
}
.nt-miris-add:hover { background: var(--wp--preset--color--accent); color: #fff; }
.nt-miris-add.loading { opacity: .6; pointer-events: none; }
.nt-miris-add.added { background: #138A4B; }
.nt-miris-add.added::before { content: "✓"; }
.nt-miris .added_to_cart { display: none; } /* WooCommerceov link "Pogledaj košaricu" — košarica se otvara u zaglavlju */
.nt-mirisi-empty { color: var(--wp--preset--color--muted); }

/* ---------- Katalog ---------- */

.nt-cat-card {
	position: relative; overflow: hidden; background: #fff; border-radius: var(--nt-radius);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	transition: transform .45s var(--nt-ease), box-shadow .45s var(--nt-ease);
}
.nt-cat-card:hover { transform: translateY(-4px); box-shadow: var(--nt-shadow); }
.nt-cat-card figure { margin: 0 0 1rem; background: var(--wp--preset--color--paper); border-radius: 6px; overflow: hidden; }
.nt-cat-card img { mix-blend-mode: multiply; transition: transform .7s var(--nt-ease); }
.nt-cat-card:hover img { transform: scale(1.05); }
.nt-cat-card h3 { font-size: var(--wp--preset--font-size--xl); margin: 0 0 .35rem; }
.nt-cat-card h3 a { text-decoration: none; }
.nt-cat-card h3 a::after { content: " →"; color: var(--wp--preset--color--accent); }
.nt-cat-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.nt-cat-card p { margin: 0; color: var(--wp--preset--color--muted); }

/* ---------- Poziv u plavoj traci ---------- */

.nt-cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.75rem); margin: 0 0 .35rem; }
.nt-cta-band p { margin: 0; color: rgba(255, 255, 255, .85); }
.nt-cta-band .wp-block-buttons { gap: .75rem; }

/* ---------- Proizvodi (katalog i povezani) ---------- */

.nt-cat-tabs { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 0; padding: 0; list-style: none; }
.nt-cat-tabs a {
	display: inline-block; padding: .2rem 0 .35rem; text-decoration: none;
	font-family: var(--wp--preset--font-family--display); font-weight: 800; text-transform: uppercase;
	font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; letter-spacing: .01em;
	color: var(--wp--preset--color--muted); border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.nt-cat-tabs a:hover { color: var(--wp--preset--color--ink); }
.nt-cat-tabs a.is-active { color: var(--wp--preset--color--ink); border-bottom-color: var(--wp--preset--color--accent); }
.nt-cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.nt-cat-chips a {
	display: inline-block; padding: .5rem 1rem; text-decoration: none;
	border: var(--nt-hair); border-radius: 6px; font-size: var(--wp--preset--font-size--s); font-weight: 500;
	transition: border-color .2s, background-color .2s, color .2s;
}
.nt-cat-chips a:hover { border-color: var(--wp--preset--color--ink); }
.nt-cat-chips a.is-active { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.nt-cat-chips a.is-active::after { content: "×"; margin-left: .5rem; font-weight: 600; opacity: .7; }
.nt-cat-chips a.is-active:hover { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); }

.nt-sort { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.nt-sort-label { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.nt-sort ul { display: flex; margin: 0; padding: 4px; list-style: none; background: var(--wp--preset--color--paper); border-radius: 8px; }
.nt-sort a {
	display: block; padding: .5rem .95rem; text-decoration: none; white-space: nowrap; border-radius: 5px;
	font-size: var(--wp--preset--font-size--s); font-weight: 500; color: var(--wp--preset--color--muted);
	transition: background-color .2s, color .2s;
}
.nt-sort a:hover { color: var(--wp--preset--color--ink); }
.nt-sort a.is-active { background: #fff; color: var(--wp--preset--color--ink); box-shadow: 0 2px 8px rgba(6, 26, 64, .08); }
@media (max-width: 600px) {
	.nt-sort, .nt-sort ul { width: 100%; }
	.nt-sort li { flex: 1; }
	.nt-sort a { padding: .5rem .3rem; text-align: center; font-size: var(--wp--preset--font-size--xs); }
}

.wc-block-product-template { row-gap: 2.5rem !important; }
.wc-block-product-template .wc-block-components-product-image,
.wc-block-product-template .wp-block-woocommerce-product-image {
	background: var(--wp--preset--color--paper); margin-bottom: .9rem !important; overflow: hidden; border-radius: 6px;
}
/* Izdvojeni proizvodi na naslovnoj: bijele kartice kao kategorije iznad */
.nt-featured .wc-block-product-template { gap: 1.25rem !important; }
.nt-featured .wc-block-product-template > li {
	display: flex; flex-direction: column; margin: 0 !important;
	background: #fff; border-radius: var(--nt-radius); overflow: hidden; padding: .75rem .75rem 1.25rem;
	transition: box-shadow .45s var(--nt-ease);
}
.nt-featured .wc-block-product-template > li:hover { box-shadow: var(--nt-shadow); }
/* Fotografije imaju sivu podlogu (#EFEFEF): ista boja okvira pa sve slike izgledaju jednako */
.nt-featured .wc-block-components-product-image,
.nt-featured .wp-block-woocommerce-product-image { background: #fff !important; border-radius: 6px; margin-bottom: 1rem !important; }

/* Katalog na naslovnoj: fotografije imaju sivu podlogu (#EFEFEF). Blago posvjetljenje je
   pretvara u bijelu, pa slike stapaju s bijelim karticama umjesto sivih kvadrata. */
.nt-catalog .nt-cat-card figure { background: #fff; }
.nt-catalog .nt-cat-card img,
.nt-catalog .nt-featured img { mix-blend-mode: normal; background: #fff; filter: brightness(1.068); }
/* Fotografija čaše ima tamniju sivu podlogu pri dnu (do #E2E2E2) pa treba jače posvjetljenje */
.nt-catalog .nt-cat-card img[src*="casa-"] { filter: brightness(1.14) contrast(1.06); }
.nt-featured .wp-block-post-terms,
.nt-featured .wp-block-post-title,
.nt-featured .wp-block-woocommerce-product-price { padding-inline: .5rem; }
.nt-featured .wp-block-post-title { font-weight: 600; margin-bottom: .4rem; }
.nt-featured .wp-block-woocommerce-product-price { margin-top: auto; }
.wc-block-product-template .wc-block-components-product-image img {
	aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--nt-ease);
}
.wc-block-product-template li:hover .wc-block-components-product-image img { transform: scale(1.05); }
.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--body); text-transform: none;
	font-size: var(--wp--preset--font-size--m); font-weight: 500; line-height: 1.35; margin: 0 0 .25rem;
}
.wc-block-product-template .wp-block-post-title a { text-decoration: none; }
.wc-block-product-template .wp-block-post-terms { font-size: var(--wp--preset--font-size--xs); letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin-bottom: .2rem; }
.wc-block-product-template .wp-block-post-terms a { color: inherit; text-decoration: none; }

.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-weight: 600; }
.wc-block-components-product-price del, .price del { color: var(--wp--preset--color--muted); font-weight: 400; margin-right: .35rem; opacity: .8; }
.wc-block-components-product-price ins, .price ins { color: var(--wp--preset--color--accent); text-decoration: none; }
.wc-block-components-product-sale-badge, .onsale {
	background: var(--wp--preset--color--accent) !important; color: #fff !important; border: 0 !important;
	border-radius: 4px !important; font-size: .7rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	padding: .3rem .65rem !important;
}

/* Stranica proizvoda */
.nt-product h1.wp-block-post-title { font-size: var(--wp--preset--font-size--xxl); }
.nt-product .wp-block-woocommerce-product-price { font-size: var(--wp--preset--font-size--l); }
.nt-product .woocommerce-product-gallery { background: var(--wp--preset--color--paper); border-radius: 8px; overflow: hidden; }
.nt-product .woocommerce-product-gallery__image img:not(.zoomImg) { mix-blend-mode: multiply; }
.nt-product .woocommerce-product-gallery__image img.zoomImg { mix-blend-mode: normal; background: var(--wp--preset--color--paper); }
.nt-product .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .5rem !important; background: #fff; }
.nt-product .flex-control-thumbs li { width: auto !important; margin: 0 !important; background: var(--wp--preset--color--paper); border-radius: 4px; overflow: hidden; }
.nt-product .flex-control-thumbs img { opacity: .55; transition: opacity .2s; mix-blend-mode: multiply; }
.nt-product .flex-control-thumbs img.flex-active, .nt-product .flex-control-thumbs img:hover { opacity: 1; }
.nt-product .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.nt-product form.cart { margin-top: 1.5rem; }
.nt-product form.cart .button, .woocommerce .single_add_to_cart_button {
	background: var(--wp--preset--color--accent) !important; color: #fff !important; border-radius: 6px !important;
	text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding: 1rem 2rem !important;
	transition: background-color .25s;
}
.nt-product form.cart .button:hover { background: var(--wp--preset--color--ink) !important; }
.nt-product form.cart .quantity input { height: 100%; min-height: 3.1rem; border: var(--nt-hair); border-radius: 6px; }
.nt-product table.variations { width: 100%; border: 0; margin-bottom: 1rem; }
.nt-product table.variations th, .nt-product table.variations td { display: block; padding: 0; border: 0; text-align: left; }
.nt-product table.variations th label { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nt-product table.variations td { padding-bottom: 1rem; }
.nt-product table.variations select {
	width: 100%; max-width: 360px; box-sizing: border-box;
	height: auto !important; min-height: 3.1rem; line-height: 1.4 !important;
	padding: .75rem 2.75rem .75rem 1rem !important;
	border: var(--nt-hair); border-radius: 12px;
	font: inherit; font-size: var(--wp--preset--font-size--m) !important; color: var(--wp--preset--color--ink) !important;
	-webkit-appearance: none; appearance: none; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23061A40' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1rem center !important;
}
.nt-product table.variations select:hover, .nt-product table.variations select:focus { border-color: var(--wp--preset--color--accent); outline: none; }
.nt-product .reset_variations { font-size: var(--wp--preset--font-size--xs); }
.nt-product .woocommerce-variation-price { margin-bottom: 1rem; font-size: var(--wp--preset--font-size--l); font-weight: 600; }

.nt-trust { list-style: none; padding: 0; margin: 0; border-top: var(--nt-hair); font-size: var(--wp--preset--font-size--s); }
.nt-trust li { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: var(--nt-hair); color: var(--wp--preset--color--muted); }
.nt-trust li::before { content: "—"; color: var(--wp--preset--color--accent); font-weight: 700; }

.wp-block-woocommerce-product-details .wc-tabs { border-bottom: var(--nt-hair) !important; padding: 0 !important; }
.wp-block-woocommerce-product-details .wc-tabs li { border: 0 !important; background: none !important; margin: 0 1.5rem 0 0 !important; padding: 0 !important; }
.wp-block-woocommerce-product-details .wc-tabs li a { text-transform: uppercase; letter-spacing: .08em; font-size: var(--wp--preset--font-size--s); text-decoration: none; padding: .9rem 0 !important; display: inline-block; }
.wp-block-woocommerce-product-details .wc-tabs li.active a { box-shadow: inset 0 -2px 0 var(--wp--preset--color--accent); }
.wp-block-woocommerce-product-details .wc-tabs li::before, .wp-block-woocommerce-product-details .wc-tabs li::after, .wp-block-woocommerce-product-details .wc-tabs::before { display: none !important; }
.wp-block-woocommerce-product-details .shop_attributes { border: 0 !important; }
.wp-block-woocommerce-product-details .shop_attributes th,
.wp-block-woocommerce-product-details .shop_attributes td { border-bottom: var(--nt-hair) !important; background: none !important; padding: .75rem 0 !important; text-align: left; font-style: normal !important; }
.wp-block-woocommerce-product-details .shop_attributes th { width: 30%; font-weight: 600; }
.wp-block-woocommerce-product-details .shop_attributes p { margin: 0; padding: 0 !important; }

.wc-block-breadcrumbs, .woocommerce-breadcrumb { font-size: var(--wp--preset--font-size--xs); letter-spacing: .06em; color: var(--wp--preset--color--muted); }
.wc-block-breadcrumbs a, .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: 12px !important; }

/* Košarica i naplata */
.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-button:not(.is-link),
.wc-block-mini-cart__footer .wc-block-components-button {
	border-radius: 6px !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
	background: var(--wp--preset--color--accent) !important; color: #fff !important; border-color: var(--wp--preset--color--accent) !important;
}
.wc-block-mini-cart__footer .wc-block-components-button.outlined { background: transparent !important; color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--ink) !important; }
table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image { width: 136px !important; }
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row,
.is-medium table.wc-block-cart-items .wc-block-cart-items__row,
.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
.is-small table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 104px 1fr !important; column-gap: 18px !important; padding: 20px 0 !important; }
table.wc-block-cart-items .wc-block-cart-item__image a { display: block; background: var(--wp--preset--color--paper); border-radius: 4px; overflow: hidden; }
table.wc-block-cart-items .wc-block-cart-item__image img { aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { font-size: 1.125rem !important; font-weight: 600 !important; line-height: 1.35 !important; text-decoration: none; }
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { font-size: 1.0625rem !important; }
table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { font-weight: 600; }
table.wc-block-cart-items .wc-block-components-product-metadata { font-size: .95rem; margin-top: .35rem; }
.wc-block-components-drawer { --drawer-width: min(560px, 100vw); --neg-drawer-width: calc(-1 * min(560px, 100vw)); }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select__select, .wc-block-components-textarea { border-radius: 10px !important; }

/* ---------- Kontakt obrazac i česta pitanja ---------- */

.nt-form { display: grid; gap: 1.1rem; }
.nt-form p { margin: 0; }
.nt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nt-field { display: grid; gap: .4rem; }
.nt-field label { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nt-field label span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.nt-field input, .nt-field textarea {
	font: inherit; width: 100%; box-sizing: border-box; padding: .85rem 1rem;
	border: var(--nt-hair); border-radius: 12px; background: #fff;
}
.nt-field input:focus, .nt-field textarea:focus { outline: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 3px rgba(21, 89, 214, .15); }
.nt-check label { display: block; position: relative; padding-left: 1.7rem; font-size: var(--wp--preset--font-size--s); font-weight: 400; letter-spacing: 0; text-transform: none; }
.nt-check input { position: absolute; left: 0; top: .25rem; width: auto; margin: 0; }
.nt-hp { position: absolute !important; left: -9999px !important; }
.nt-form button { justify-self: start; cursor: pointer; }
.nt-form-errors { border-left: 3px solid #D8342B; padding: .75rem 1rem; background: #FDF1F0; border-radius: 0 10px 10px 0; }
.nt-form-success { padding: 1.5rem; background: var(--wp--preset--color--paper); border-radius: var(--nt-radius); }

.wp-block-details { border-bottom: var(--nt-hair); padding: 1.15rem 0; }
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--m); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center;
	border-radius: 50%; background: var(--wp--preset--color--paper); color: var(--wp--preset--color--accent); font-weight: 700;
	transition: transform .3s var(--nt-ease), background-color .3s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--accent); color: #fff; }
.wp-block-details p { color: var(--wp--preset--color--muted); margin-top: .6rem; max-width: 60ch; }

/* Kontakt: sva česta pitanja skupljena u jedan padajući izbornik.
   Selektori su s ">" da stanje vanjskog izbornika ne "otvara" ikone unutarnjih pitanja. */
.nt-faq-drop { margin-top: var(--wp--preset--spacing--40); padding: 0; border: 1px solid var(--wp--preset--color--line); border-radius: var(--nt-radius); background: #fff; overflow: hidden; }
.nt-faq-drop summary { align-items: center; border-radius: 10px; transition: color .2s; }
.nt-faq-drop summary:focus { outline: none; }
.nt-faq-drop summary:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; }
.nt-faq-drop summary::after { content: "" !important; transform: none !important; transition: background-color .25s, border-color .25s, transform .3s var(--nt-ease) !important; }

/* Vanjski izbornik: naslov + strelica dolje/gore */
.nt-faq-drop > summary {
	padding: 1.15rem 1.35rem; border-radius: 0;
	font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--l); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
	color: var(--wp--preset--color--ink);
}
.nt-faq-drop > summary::after { width: 2.25rem; height: 2.25rem; background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 1.1rem no-repeat !important; }
.nt-faq-drop[open] > summary::after { transform: rotate(180deg) !important; background-color: var(--wp--preset--color--ink) !important; }
.nt-faq-drop > summary:hover::after { background-color: var(--wp--preset--color--ink) !important; }
.nt-faq-drop[open] > summary { border-bottom: 1px solid var(--wp--preset--color--line); }

/* Pitanja: zatvoreno = obrub s plusom, otvoreno = ispunjen krug s minusom */
.nt-faq-drop > .wp-block-details { margin: 0 1.35rem; padding: 1rem 0; }
.nt-faq-drop > .wp-block-details:last-child { border-bottom: 0; }
.nt-faq-drop > .wp-block-details > summary { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--ink); }
.nt-faq-drop > .wp-block-details > summary:hover { color: var(--wp--preset--color--accent); }
.nt-faq-drop > .wp-block-details > summary::after { width: 1.75rem; height: 1.75rem; box-sizing: border-box; border: 1.5px solid var(--wp--preset--color--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231559D6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / .85rem no-repeat !important; }
.nt-faq-drop > .wp-block-details > summary:hover::after { border-color: var(--wp--preset--color--accent); }
.nt-faq-drop > .wp-block-details[open] > summary { color: var(--wp--preset--color--accent); }
.nt-faq-drop > .wp-block-details[open] > summary::after { border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / .85rem no-repeat !important; }
.nt-faq-drop > .wp-block-details > p { margin: .5rem 0 0; font-size: .95rem; line-height: 1.6; }

/* ---------- Podnožje ---------- */

.nt-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.nt-footer a:hover { color: #fff; text-decoration: underline; }
.nt-footer h3 { color: #fff; font-size: 1.1rem; letter-spacing: .06em; }
.nt-footer .nt-footer-meta { color: rgba(255, 255, 255, .55); }
.nt-footer ul { list-style: none; padding: 0; margin: 0; }
.nt-footer li { margin-bottom: .45rem; }
.nt-footer-cta { padding-bottom: var(--wp--preset--spacing--40); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nt-footer-big { color: #fff; font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; line-height: .86; margin: 0; }

/* ---------- Scroll animacije ---------- */

@media (prefers-reduced-motion: no-preference) {
	.nt-rise { animation: nt-rise .9s var(--nt-ease) both; }
	.nt-rise-2 { animation: nt-rise .9s .12s var(--nt-ease) both; }
	.nt-rise-3 { animation: nt-rise .9s .24s var(--nt-ease) both; }
	@keyframes nt-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

	.nt-hero-visual .nt-parallax img { animation: nt-float 7s ease-in-out infinite; }
	@keyframes nt-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

	/* Elementi se skrivaju samo kad radi JS (klasa nt-js na <html>) */
	.nt-js .nt-reveal, .nt-js .nt-stagger > *, .nt-js .nt-stagger .wc-block-product-template > li, .nt-js .nt-mirisi > li {
		opacity: 0; transform: translateY(36px);
		transition: opacity .8s var(--nt-ease), transform .8s var(--nt-ease);
		transition-delay: calc(var(--nt-i, 0) * 70ms);
	}
	.nt-js .nt-reveal.is-in, .nt-js .nt-stagger > .is-in, .nt-js .nt-stagger .wc-block-product-template > li.is-in, .nt-js .nt-mirisi > li.is-in {
		opacity: 1; transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.nt-marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.nt-marquee-item[aria-hidden="true"] { display: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Mobitel ---------- */

@media (max-width: 1100px) {
	.nt-mirisi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.nt-hero-visual { order: -1; }
	.nt-hero-visual img { max-height: 46vh; width: auto; margin-inline: auto; display: block; }
	.nt-hide-mobile { display: none !important; }
	.nt-field-row { grid-template-columns: 1fr; }
	.nt-product h1.wp-block-post-title { font-size: var(--wp--preset--font-size--xl); }
	.nt-mirisi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
	.nt-miris-body { padding: .8rem .85rem .9rem; }
	.nt-miris-title { font-size: 1.3rem; }
	.nt-miris-desc { display: none; }
	.nt-miris-foot { flex-direction: column; align-items: stretch; }
	.nt-miris-add { justify-content: center; }
	.nt-partner-card { min-height: 0; }
	.nt-partner-crest { width: 120px; }
	.nt-partner-card h3 { margin-top: 1.75rem !important; }
	.nt-page-hero-img { display: none; }
}
