/* ==========================================================================
   Zootek - dizajn sistem

   Paleta je izvedena iz logotipa: grafitni medaljon, srebrni prsten i plavi
   luk. Grafit nosi "chrome" sajta (topbar, zaglavlje, podnozje), svijetla
   celicno-siva je platno za proizvode, a plava je jedini akcent.
   ========================================================================== */

:root {
	/* Plava iz luka na logotipu. */
	--ac: #2F86D6;
	--ac-dark: #1F6DB5;
	--ac-darker: #17558C;
	--ac-shadow: rgba(47, 134, 214, 0.3);

	--bg: #F4F6F8;
	--surface: #FFFFFF;
	--surface-warm: #FCFDFE;
	--surface-tint: #EDF1F5;
	--sand: #F2F5F8;
	--sand-2: #E9EEF3;
	--sand-3: #DBE3EB;
	--hero: #E6ECF2;
	--about: #E3E9EF;

	--ink: #1B1E22;
	--ink-strong: #121417;
	--ink-soft: #333A42;
	--ink-body: #4E565F;
	--muted: #79828C;
	--muted-light: #A9B2BC;

	--line: #E1E7ED;
	--line-soft: #E9EEF3;
	--line-softer: #F0F4F7;
	--line-input: #D7DFE7;
	--line-strong: #C5D0DA;
	--line-check: #B9C4D0;

	--ok-bg: #E8F3EC;
	--ok: #3E8E5C;
	--warn-bg: #FCF3E2;
	--warn: #A97B2C;
	--err-bg: #FBEAE8;
	--err: #C0392B;

	/* Grafitni "chrome" - isti ton kao medaljon na logotipu. */
	--foot: #16181B;
	--foot-text: #B8C0C9;
	--foot-muted: #79828C;
	--foot-line: #2A2F35;
	--foot-bright: #F4F6F8;

	/* Tamna traka zaglavlja, sestra podnozja. */
	--head: #1B1E22;
	--head-top: #101215;
	--head-line: rgba(255, 255, 255, 0.09);
	--head-text: #C3CBD3;
	--head-bright: #FFFFFF;
	--head-field: #24282D;

	/* Srebrni preliv sa prstena logotipa - koristi se za ZOOTEK natpis. */
	--steel: linear-gradient(180deg, #FFFFFF 0%, #DCE1E6 30%, #939BA4 56%, #E4E8EC 66%, #848C95 100%);

	--r-pill: 999px;
	/* Uglovi su tjesnji nego na toploj temi - oprema, a ne igracka. */
	--r-hero: 18px;
	--r-card: 12px;
	--r-panel: 12px;
	--r-img: 10px;

	--shadow-card: 0 8px 22px rgba(18, 22, 28, 0.08);
	--shadow-pop: 0 14px 34px rgba(18, 22, 28, 0.13);
	--shadow-pop-lg: 0 20px 46px rgba(18, 22, 28, 0.17);

	--wrap: 1440px;
	--gut: 24px;
	/* Overridden from the Customizer (Zootek tema -> Početna strana). */
	--hero-h: 580px;

	--f-head: Saira, 'Segoe UI', 'Trebuchet MS', sans-serif;
	--f-body: Commissioner, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* WooCommerce ships a purple palette as CSS variables and uses it for notices,
   badges, ratings and focus states. Remap it to ours once, here, instead of
   chasing every component. Doubled :root wins over WooCommerce's own rule
   regardless of stylesheet order. */
:root:root {
	--woocommerce: var(--ac);
	--wc-primary: var(--ac);
	--wc-primary-text: #FFFFFF;
	--wc-secondary: #E9EEF3;
	--wc-secondary-text: #1B1E22;
	--wc-highlight: var(--ac-dark);
	--wc-highlight-text: #FFFFFF;
	--wc-content-bg: #FFFFFF;
	--wc-subtext: #79828C;
	--wc-green: #3E8E5C;
	--wc-red: #C0392B;
	--wc-orange: #A97B2C;
}

/* --------------------------------------------------------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	/* Kills the blue flash mobile browsers paint over a tapped element. */
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a,
button,
input,
select,
textarea,
label,
summary,
[role="button"],
[tabindex] {
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.stopi-no-scroll { overflow: hidden; }

a { color: var(--ac-dark); text-decoration: none; }
a:hover { color: var(--ac-darker); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 700;
	color: var(--ink-strong);
	line-height: 1.2;
	margin: 0 0 12px;
	text-wrap: balance;
}

p { margin: 0 0 14px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

input, button, select, textarea { font-family: var(--f-body); font-size: 15px; }

::selection { background: #CFE3F7; }

:focus-visible {
	outline: 2px solid var(--ac);
	outline-offset: 2px;
	border-radius: 4px;
}

@keyframes stopiFade {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--surface);
	color: var(--ink);
	padding: 12px 20px;
	border-radius: 0 0 var(--r-panel) 0;
	font-weight: 800;
}
.skip-link:focus { left: 0; }

.stopi-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.stopi-page { min-height: 100vh; display: flex; flex-direction: column; }
.stopi-main { flex: 1; width: 100%; }

/* ------------------------------------------------------- buttons ---------- */

.stopi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	background: var(--ac);
	color: #FFFFFF;
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 15px;
	line-height: 1.2;
	padding: 14px 28px;
	border-radius: var(--r-pill);
	cursor: pointer;
	box-shadow: 0 6px 18px var(--ac-shadow);
	transition: filter 0.15s ease, transform 0.15s ease;
	text-align: center;
}
.stopi-btn:hover { filter: brightness(0.92); color: #FFFFFF; }
.stopi-btn:active { transform: translateY(1px); }
.stopi-btn[disabled],
.stopi-btn.disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.stopi-btn--ghost {
	background: var(--surface);
	color: var(--ink);
	border: 1.5px solid var(--line-strong);
	box-shadow: none;
}
.stopi-btn--ghost:hover { border-color: var(--ac); color: var(--ac-dark); filter: none; }

.stopi-btn--soft {
	background: var(--sand-2);
	color: var(--ink);
	box-shadow: none;
	font-size: 13px;
	padding: 9px 16px;
}
.stopi-btn--soft:hover { background: var(--ac); color: #FFFFFF; filter: none; }

.stopi-btn--block { width: 100%; }
.stopi-btn--sm { font-size: 14px; padding: 11px 22px; }

.stopi-link-btn {
	border: none;
	background: none;
	color: var(--ac-dark);
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}
.stopi-link-btn:hover { text-decoration: underline; color: var(--ac-darker); }

/* -------------------------------------------------------- header ---------- */

/* Utility strip above the header. Phone and the script switcher live here so
   the main row is only logo, search and the two buttons that get used. */
.stopi-topbar {
	background: var(--head-top);
	color: var(--head-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.stopi-topbar__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
	min-height: 40px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}
.stopi-topbar__side {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.stopi-topbar__side--right { justify-content: flex-end; }
.stopi-topbar__promo {
	margin: 0;
	text-align: center;
}
.stopi-topbar__promo a { color: inherit; text-decoration: underline; }
.stopi-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: inherit;
	white-space: nowrap;
}
.stopi-topbar__phone:hover { color: #FFFFFF; }
.stopi-topbar__phone svg { flex: none; opacity: 0.75; }

/* The switcher was drawn for a light background; scale it down and invert. */
.stopi-topbar .stopi-pismo {
	background: rgba(255, 255, 255, 0.1);
	padding: 2px;
}
.stopi-topbar .stopi-pismo__btn {
	min-width: 34px;
	height: 26px;
	padding: 0 9px;
	font-size: 11.5px;
	color: var(--head-text);
}
.stopi-topbar .stopi-pismo__btn:hover { color: #FFFFFF; }
.stopi-topbar .stopi-pismo__btn.is-active {
	background: var(--surface);
	color: var(--ink);
	box-shadow: none;
}

/* Zaglavlje je grafitno kao medaljon na logotipu - tamna ploca drzi logotip i
   uokviruje svijetao sadrzaj ispod. */
.stopi-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--head);
	/* Umjesto linije na dnu - meka sjenka. Sjenka pada preko sadrzaja jer je
	   zaglavlje sticky, pa odvaja ploca od stranice bez ijednog ostrog ruba. */
	box-shadow: 0 6px 16px -8px rgba(18, 22, 28, 0.22);
}

.stopi-header__bar {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 14px var(--gut);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 22px;
	position: relative;
}

/* Grid rather than flex: the outer columns size to their own content and the
   search takes whatever is left. A long customer name in the account button
   can no longer push the right group over the search field. */
.stopi-header__left,
.stopi-header__right {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.stopi-header__right { justify-content: flex-end; gap: 14px; }

.stopi-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: none;
	color: inherit;
}
.stopi-brand:hover { color: inherit; }

.stopi-brand__mark {
	width: 42px;
	height: 42px;
	border-radius: var(--r-img);
	background: var(--ac);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(47, 134, 214, 0.28);
	flex: none;
}
.stopi-brand__mark svg { fill: #FFFFFF; }
.stopi-brand__mark img { width: 42px; height: 42px; border-radius: var(--r-img); object-fit: cover; }
/* Medaljon je okrugao i sam sebi ram - bez pozadine i bez zaobljenja teme. */
.stopi-brand--logo .stopi-brand__mark { background: none; box-shadow: none; width: auto; height: auto; border-radius: 0; }
.stopi-brand--logo .stopi-brand__mark img {
	width: auto;
	height: 48px;
	border-radius: 0;
	object-fit: contain;
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

/* ZOOTEK natpis pored znaka. Slova nose isti srebrni preliv kao prsten
   medaljona, pa lockup djeluje kao jedan komad metala. */
.stopi-brand__name {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 23px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--steel);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stopi-brand__tag {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-top: 4px;
}

/* Na tamnoj ploci natpis i potpis moraju biti svjetliji. */
.stopi-header .stopi-brand__tag { color: var(--head-text); opacity: 0.75; }

/* Ime i potpis su jedan stubac pored znaka. */
.stopi-brand__name,
.stopi-brand__tag { display: block; }
.stopi-brand > span { min-width: 0; }

/* search */

.stopi-search {
	max-width: 620px;
	width: 100%;
	margin: 0 auto;
	position: relative;
}
.stopi-search__form { position: relative; display: block; }
.stopi-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}
.stopi-search__input {
	width: 100%;
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-pill);
	background: var(--bg);
	padding: 11px 18px 11px 42px;
	font-size: 14px;
	color: var(--ink);
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.stopi-search__input::placeholder { color: var(--muted); }
.stopi-search__input:focus { border-color: var(--ac); background: var(--surface); }

/* Isto polje stoji i na svijetlim stranicama (searchform.php), pa tamnu
   varijantu vezujemo samo za traku zaglavlja. */
.stopi-header .stopi-search__input {
	background: var(--head-field);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--head-bright);
}
.stopi-header .stopi-search__input::placeholder { color: #8A939D; }
.stopi-header .stopi-search__input:focus {
	background: #2B3037;
	border-color: var(--ac);
	box-shadow: 0 0 0 3px rgba(47, 134, 214, 0.22);
}
.stopi-header .stopi-search__icon { stroke: #8A939D; }

.stopi-sugs {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-pop);
	padding: 8px;
	z-index: 70;
	animation: stopiFade 0.15s ease;
	max-height: 66vh;
	overflow-y: auto;
}
.stopi-sugs[hidden] { display: none; }
.stopi-sug {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	color: inherit;
}
.stopi-sug:hover,
.stopi-sug:focus { background: var(--sand); color: inherit; }
/* Product thumbnail on the left. Fixed box so rows stay the same height even
   when the images have different proportions. */
.stopi-sug__media {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--surface-tint);
	display: flex;
	align-items: center;
	justify-content: center;
}
.stopi-sug__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Name over brand, both truncating - as inline spans they used to run into each
   other and into the price. */
.stopi-sug__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1 1 auto;
	min-width: 0;
}
.stopi-sug__name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stopi-sug__brand {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stopi-sug__price {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 13.5px;
	color: var(--ac-dark);
	flex: 0 0 auto;
	max-width: 45%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: right;
}
.stopi-sugs__empty {
	padding: 14px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
	text-align: center;
}

/* phone */

/* cart button + mini cart */

.stopi-cart { position: relative; flex: none; }

.stopi-cart__btn {
	display: flex;
	align-items: center;
	gap: 9px;
	background: var(--sand-2);
	border: none;
	border-radius: var(--r-pill);
	padding: 10px 18px;
	cursor: pointer;
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	transition: background 0.15s ease;
}
.stopi-cart__btn:hover { background: var(--sand-3); }

/* Na grafitnoj traci korpa je jedina plava povrsina - najglasnija stvar u redu. */
.stopi-header .stopi-cart__btn {
	background: var(--ac);
	color: #FFFFFF;
	box-shadow: 0 4px 14px rgba(47, 134, 214, 0.35);
}
.stopi-header .stopi-cart__btn:hover { background: var(--ac-dark); }
.stopi-header .stopi-cart__count { background: rgba(255, 255, 255, 0.22); }

/* Nalog i burger: obris na tamnom, bez pune povrsine da korpa ostane sama. */
.stopi-header .stopi-acc {
	color: var(--head-bright);
	border-color: rgba(255, 255, 255, 0.18);
}
.stopi-header .stopi-acc:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.32);
	color: var(--head-bright);
}
.stopi-header .stopi-acc.is-in {
	background: rgba(255, 255, 255, 0.08);
	border-color: transparent;
}
.stopi-header .stopi-acc.is-in:hover { background: rgba(255, 255, 255, 0.14); }
.stopi-header .stopi-burger {
	background: rgba(255, 255, 255, 0.08);
	color: var(--head-bright);
}
.stopi-header .stopi-burger:hover { background: rgba(255, 255, 255, 0.16); }

.stopi-cart__count {
	background: var(--ac);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 800;
	min-width: 20px;
	height: 20px;
	border-radius: var(--r-pill);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

/* cart drawer */

.stopi-cartdrawer {
	position: fixed;
	inset: 0;
	z-index: 110;
}
.stopi-cartdrawer[hidden] { display: none; }

.stopi-cartdrawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 15, 18, 0.45);
	opacity: 0;
	transition: opacity 0.22s ease;
}
.stopi-cartdrawer.is-open .stopi-cartdrawer__scrim { opacity: 1; }

/* The open state is a class, not a keyframe animation: if animations do not run
   the panel still lands in the right place instead of staying off-screen. */
.stopi-cartdrawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(92vw, 400px);
	background: var(--surface);
	box-shadow: -18px 0 46px rgba(18, 22, 28, 0.18);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.24s ease;
}
.stopi-cartdrawer.is-open .stopi-cartdrawer__panel { transform: none; }
.stopi-cartdrawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line-soft);
	flex: none;
}
.stopi-cartdrawer__head .stopi-mini__title { font-size: 18px; }

/* The AJAX fragment replaces this node, so the scroll layout lives on it. */
.stopi-mini__body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.stopi-mini__title { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.stopi-mini__close {
	border: none;
	background: var(--sand);
	border-radius: var(--r-pill);
	width: 26px;
	height: 26px;
	cursor: pointer;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}
.stopi-mini__close:hover { color: var(--ac-dark); }

.stopi-mini__empty {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	padding: 30px 24px;
}
.stopi-mini__list {
	list-style: none;
	margin: 0;
	padding: 6px 20px;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}
.stopi-mini__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}
.stopi-mini__item:last-child { border-bottom: none; }
.stopi-mini__item-media {
	width: 66px;
	height: 66px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--surface-tint);
	flex: none;
}
.stopi-mini__item-media a {
	display: block;
	width: 100%;
	height: 100%;
}
/* WooCommerce forces 32px and float:right on widget cart images, and its
   selector outranks a plain class - so match its weight here. */
.stopi-cartdrawer ul.cart_list li img,
.stopi-cartdrawer .stopi-mini__item-media img {
	float: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 5px;
	object-fit: contain;
	box-shadow: none;
	/* Inset by the padding, so the box's own radius never reaches its corners. */
	border-radius: 12px;
}
.stopi-mini__item-body { min-width: 0; flex: 1; }
.stopi-mini__item-name {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
	display: block;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.stopi-mini__item-meta { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 3px; display: block; }
.stopi-mini__item-meta .amount { color: var(--muted); }
.stopi-mini__remove {
	border: none;
	background: var(--sand);
	border-radius: var(--r-pill);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted-light);
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	flex: none;
}
.stopi-mini__remove:hover { color: var(--ac-dark); background: var(--surface-tint); }

/* Busy state -------------------------------------------------------------- */

@keyframes stopiSpin { to { transform: rotate(360deg); } }

/* WooCommerce's blockUI drops a black 60% veil over whatever it is updating,
   with inline styles - hence !important. Replace it with a light wash and a
   spinner in the theme's colours. */
.stopi .blockUI.blockOverlay {
	background: var(--surface) !important;
	opacity: 0.72 !important;
	cursor: progress !important;
	border-radius: inherit;
}
.stopi .blockUI.blockOverlay::before {
	content: '' !important;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 22px;
	margin: -11px 0 0 -11px;
	box-sizing: border-box;
	border: 2px solid var(--line-strong);
	border-top-color: var(--ac);
	border-radius: var(--r-pill);
	background: none !important;
	animation: stopiSpin 0.7s linear infinite;
}

/* The cart badge is too small for a spinner; just dim it while it refreshes. */
.stopi .stopi-cart__count .blockUI.blockOverlay { opacity: 0 !important; }
.stopi .stopi-cart__count .blockUI.blockOverlay::before { display: none; }
.stopi-cart__count.updating { opacity: 0.4; transition: opacity 0.15s ease; }

/* A line being removed fades rather than going dark. */
.stopi-mini__item { position: relative; transition: opacity 0.15s ease; }
.stopi-mini__item.stopi-is-removing { opacity: 0.45; }

.stopi-mini__foot {
	flex: none;
	border-top: 1px solid var(--line-soft);
	background: var(--surface-warm);
	padding: 16px 20px 18px;
}
.stopi-mini__foot .stopi-freeship { margin-bottom: 14px; }
.stopi-mini__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 0 14px;
}
.stopi-mini__total-label { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.stopi-mini__total-value { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--ink-strong); }
.stopi-mini__actions { display: flex; flex-direction: column; gap: 8px; }

/* chips */

.stopi-chips { border-top: 1px solid var(--line-soft); background: var(--surface-warm); }
.stopi-chips__row {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 9px var(--gut);
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.stopi-chip {
	flex: none;
	border: 1px solid var(--line-input);
	background: var(--surface);
	color: var(--ink-soft);
	font-size: 13px;
	font-weight: 700;
	padding: 7px 15px;
	border-radius: var(--r-pill);
	cursor: pointer;
	white-space: nowrap;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.stopi-chip:hover { border-color: var(--ac); color: var(--ink-soft); }
.stopi-chip.is-active { background: var(--ac); border-color: var(--ac); color: #FFFFFF; }
.stopi-chip.is-active:hover { color: #FFFFFF; }

/* primary nav bar */

/* Svijetla traka menija ispod tamnog zaglavlja - prelaz ka sadrzaju. Bez ruba
   na dnu; odvajanje radi meka sjenka na .stopi-header. */
.stopi-navbar { background: var(--surface); }
.stopi-navbar__row {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.stopi-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
}
.stopi-nav li { position: relative; }
.stopi-nav a {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 13px 14px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--ink-soft);
	white-space: nowrap;
	text-decoration: none;
	position: relative;
	transition: color 0.15s ease;
}
/* Plava crta ispod stavke - isti potez kao luk na logotipu. */
.stopi-nav > li > a::before {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 0;
	height: 2px;
	background: var(--ac);
	transform: scaleX(0);
	transition: transform 0.18s ease;
}
.stopi-nav > li:hover > a::before,
.stopi-nav > li.current-menu-item > a::before,
.stopi-nav > li.current-menu-ancestor > a::before,
.stopi-nav > li.current_page_item > a::before { transform: scaleX(1); }
.stopi-nav a:hover { color: var(--ac-dark); text-decoration: none; }
.stopi-nav .current-menu-item > a,
.stopi-nav .current-menu-ancestor > a,
.stopi-nav .current_page_item > a {
	color: var(--ac-dark);
}

/* Caret: the border box is exactly as tall as the visible triangle (5px), so the
   flex centring on the link lines it up with the text without nudging. */
.stopi-nav .menu-item-has-children > a::after {
	content: '';
	flex: none;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.55;
}

/* dropdowns */
.stopi-nav ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 232px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-pop);
	z-index: 80;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.stopi-nav li:hover > ul.sub-menu,
.stopi-nav li:focus-within > ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.stopi-nav ul.sub-menu a {
	padding: 9px 12px;
	border-radius: 11px;
	font-size: 13.5px;
	white-space: normal;
}
.stopi-nav ul.sub-menu a:hover { background: var(--sand); }
.stopi-nav ul.sub-menu ul.sub-menu { top: 0; left: calc(100% + 6px); }
.stopi-nav ul.sub-menu .menu-item-has-children > a::after {
	margin-left: auto;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 5px solid currentColor;
	border-right: 0;
}

/* script switcher */

.stopi-pismo {
	display: inline-flex;
	align-items: center;
	flex: none;
	background: var(--sand-2);
	border-radius: var(--r-pill);
	padding: 3px;
	gap: 2px;
}
.stopi-pismo__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 34px;
	padding: 0 11px;
	border-radius: var(--r-pill);
	font-size: 12.5px;
	font-weight: 800;
	color: var(--ink-soft);
	line-height: 1;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.stopi-pismo__btn:hover { color: var(--ac-dark); }
.stopi-pismo__btn.is-active {
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 1px 3px rgba(18, 22, 28, 0.12);
}

/* burger + mobile nav */

.stopi-burger {
	display: none;
	border: none;
	background: var(--sand-2);
	border-radius: var(--r-pill);
	width: 42px;
	height: 42px;
	cursor: pointer;
	color: var(--ink);
	align-items: center;
	justify-content: center;
	flex: none;
}

.stopi-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
}
.stopi-drawer.is-open { display: block; }
.stopi-drawer__scrim { position: absolute; inset: 0; background: rgba(12, 15, 18, 0.45); }
.stopi-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(88vw, 340px);
	background: var(--surface-warm);
	padding: 18px;
	overflow-y: auto;
	animation: stopiFade 0.18s ease;
}
.stopi-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.stopi-drawer__pismo {
	display: none;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line-soft);
}
.stopi-drawer__pismo .stopi-pismo { width: 100%; }
.stopi-drawer__pismo .stopi-pismo__btn { flex: 1; height: 38px; font-size: 13px; }

.stopi-drawer__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stopi-drawer__list a {
	display: block;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
}
.stopi-drawer__list a:hover { background: var(--sand); color: var(--ac-dark); }
.stopi-drawer__list ul.sub-menu {
	list-style: none;
	margin: 0 0 4px;
	padding: 0 0 0 14px;
	border-left: 2px solid var(--line);
}
.stopi-drawer__list ul.sub-menu a { font-size: 13.5px; font-weight: 600; padding: 8px 12px; }
.stopi-drawer__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 10px 14px;
}

/* --------------------------------------------------------- home ---------- */

.stopi-hero {
	margin-top: 28px;
	background: var(--hero);
	border-radius: var(--r-hero);
	padding: 64px 56px;
	min-height: var(--hero-h);
	box-sizing: border-box;
	display: flex;
	gap: 48px;
	align-items: center;
	flex-wrap: wrap;
}
.stopi-hero__body { flex: 1 1 320px; min-width: 280px; }
.stopi-hero__eyebrow {
	display: inline-block;
	background: var(--surface);
	color: var(--ac-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: var(--r-pill);
	margin-bottom: 18px;
}
.stopi-hero__title {
	font-size: clamp(30px, 4.2vw, 46px);
	line-height: 1.12;
	margin: 0 0 14px;
}
.stopi-hero__text {
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-body);
	margin: 0 0 26px;
	max-width: 46ch;
}
.stopi-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stopi-hero__media {
	flex: 1 1 340px;
	min-width: 280px;
	/* Follows the hero height, leaving room for the padding above and below. */
	height: calc(var(--hero-h) - 128px);
	min-height: 260px;
	border-radius: 22px;
	overflow: hidden;
	background: var(--surface-tint);
}
.stopi-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.stopi-slot {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface-tint);
	color: var(--muted-light);
	font-size: 12.5px;
	font-weight: 700;
	text-align: center;
	padding: 12px;
}

/* hero slider */

.stopi-slider {
	position: relative;
	margin-top: 28px;
}
.stopi-slider__track {
	display: flex;
	border-radius: var(--r-hero);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.stopi-slider__track::-webkit-scrollbar { display: none; }

.stopi-slider .stopi-slide {
	flex: 0 0 100%;
	width: 100%;
	margin-top: 0;
	border-radius: 0;
	scroll-snap-align: start;
}
.stopi-slider .stopi-hero__title { font-size: clamp(28px, 3.9vw, 44px); }

/* Arrows sit in the page gutter, outside the slider box. They only appear once
   the viewport is wide enough to hold them there (wrap + 2 x 56px); on narrower
   and touch screens the track is swipeable and the dots carry the navigation. */
.stopi-slider__arrow { display: none; }

@media (min-width: 1552px) {
	.stopi-slider__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: var(--r-pill);
		background: var(--surface);
		color: var(--ink);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 14px rgba(18, 22, 28, 0.1);
		z-index: 3;
		transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	}
	.stopi-slider__arrow:hover {
		color: var(--ac-dark);
		border-color: var(--ac);
	}
	.stopi-slider__arrow--prev { left: -56px; }
	.stopi-slider__arrow--next { right: -56px; }

	.stopi-slider--single .stopi-slider__arrow { display: none; }
}

/* dots */
.stopi-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 3;
}
.stopi-slider__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: none;
	border-radius: var(--r-pill);
	background: rgba(12, 15, 18, 0.26);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}
.stopi-slider__dot.is-active { width: 26px; background: var(--ac); }

.stopi-slider--single .stopi-slider__arrow,
.stopi-slider--single .stopi-slider__dots { display: none; }

.stopi-trust {
	margin-top: 22px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: 14px;
}
.stopi-trust__item {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	padding: 16px 18px;
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.stopi-trust__mark {
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: var(--r-pill);
	background: var(--ok-bg);
	color: var(--ok);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
}
.stopi-trust__title { font-weight: 800; font-size: 14px; color: var(--ink); }
.stopi-trust__sub { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.stopi-section { margin-top: 48px; }
.stopi-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}
.stopi-section__title { font-size: 26px; margin: 0; }

/* Horizontal carousel. The track is a plain scroll container, so it works with a
   swipe, a trackpad and the keyboard even before the arrow script runs. */
.stopi-carousel { position: relative; }
.stopi-carousel__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-bottom: 2px;
}
.stopi-carousel__track::-webkit-scrollbar { display: none; }
.stopi-carousel__track > * { scroll-snap-align: start; }

.stopi-carousel__arrow { display: none; }

@media (min-width: 1552px) {
	.stopi-carousel__arrow[hidden] { display: none; }
	.stopi-carousel__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: var(--r-pill);
		background: var(--surface);
		color: var(--ink);
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 14px rgba(18, 22, 28, 0.1);
		z-index: 3;
		transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	}
	.stopi-carousel__arrow:hover { color: var(--ac-dark); border-color: var(--ac); }
	.stopi-carousel__arrow--prev { left: -56px; }
	.stopi-carousel__arrow--next { right: -56px; }
}

.stopi-cats > .stopi-cat {
	flex: 0 0 168px;
	width: 168px;
}

.stopi-cat {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 20px 14px;
	text-align: center;
	color: inherit;
	display: block;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stopi-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); color: inherit; }
/* The wrapper is a span, so it needs an explicit block-level display before the
   width/height and the auto margins do anything. */
.stopi-cat__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	margin: 0 auto 12px;
	border-radius: var(--r-pill);
	overflow: hidden;
	background: var(--surface-tint);
}
.stopi-cat__img img {
	width: 74px;
	height: 74px;
	object-fit: cover;
	object-position: center;
}
.stopi-cat__name {
	display: block;
	font-weight: 800;
	font-size: 13.5px;
	line-height: 1.3;
	color: var(--ink);
	text-align: center;
}

.stopi-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stopi-brands__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 14px;
	text-align: center;
}
.stopi-brand-pill {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	padding: 10px 22px;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 15px;
	color: var(--ink-soft);
	transition: border-color 0.15s ease, color 0.15s ease;
}
.stopi-brand-pill:hover { border-color: var(--ac); color: var(--ac-dark); }

/* Logo version - the image is the pill. No padding and no border, so it runs
   edge to edge; overflow hides whatever the rounded corners cut off. */
.stopi-brand-pill--logo {
	display: block;
	padding: 0;
	border: none;
	overflow: hidden;
	width: 176px;
	height: 72px;
	flex: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stopi-brand-pill--logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.stopi-brand-pill--logo:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(18, 22, 28, 0.14);
}

@media (max-width: 560px) {
	.stopi-brand-pill--logo { width: 132px; height: 58px; }
}

/* Home: the brands Zootek represents exclusively - a heading over a row of
   larger logos. */
.stopi-brands__title {
	font-size: 24px;
	margin: 0 0 20px;
	text-align: center;
}
.stopi-section--brands .stopi-brands { gap: 16px; }
.stopi-section--brands .stopi-brand-pill--logo {
	width: 210px;
	height: 88px;
	box-shadow: 0 1px 3px rgba(18, 22, 28, 0.08);
}
@media (max-width: 560px) {
	.stopi-brands__title { font-size: 20px; }
	.stopi-section--brands .stopi-brands { gap: 10px; }
	.stopi-section--brands .stopi-brand-pill--logo { width: calc(50% - 5px); height: 72px; }
}

.stopi-about {
	margin-top: 48px;
	background: var(--about);
	border-radius: var(--r-hero);
	padding: 40px 44px;
	display: flex;
	gap: 36px;
	align-items: center;
	flex-wrap: wrap;
}
.stopi-about__body { flex: 1 1 340px; }
.stopi-about__title { font-size: 24px; margin: 0 0 10px; }
.stopi-about__text { font-size: 15px; line-height: 1.65; color: var(--ink-body); margin: 0; max-width: 60ch; }
.stopi-about__cards { flex: none; display: flex; flex-direction: column; gap: 10px; }
.stopi-about__card {
	background: var(--surface);
	border-radius: 16px;
	padding: 12px 20px;
	display: block;
	color: inherit;
}
.stopi-about__card:hover { color: inherit; }
.stopi-about__card-label { font-size: 11px; font-weight: 700; color: var(--muted); }
.stopi-about__card-value { font-size: 15px; font-weight: 800; color: var(--ink); }

/* --------------------------------------------------- product card -------- */

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

.stopi-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
	height: 100%;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.stopi-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-card);
	border-color: var(--line-strong);
}

.stopi-card__media {
	aspect-ratio: 1 / 1;
	border-radius: var(--r-img);
	overflow: hidden;
	background: var(--surface-tint);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	margin-bottom: 2px;
}
.stopi-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	/* The photo is inset by the padding, so it needs its own radius - the one on
	   the tinted box behind it never reaches the picture's corners. */
	border-radius: var(--r-img);
	transition: transform 0.25s ease;
}
.stopi-card:hover .stopi-card__media img { transform: scale(1.04); }

.stopi-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--ac);
	color: #FFFFFF;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: var(--r-pill);
	z-index: 2;
}
.stopi-card__badge--out { background: var(--muted-light); }

/* Dim the photo, not the text, when the product cannot be bought. */
.stopi-card:has(.stopi-card__badge--out) .stopi-card__media img { opacity: 0.62; }

.stopi-card__brand {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--ac-dark);
	min-height: 1.2em;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stopi-card__title {
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
	flex: 1;
	margin: 0;
}
.stopi-card__title a { color: inherit; }
.stopi-card__title a:hover { color: var(--ac-dark); }

.stopi-card__foot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid var(--line-soft);
}
.stopi-card__price {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 16.5px;
	color: var(--ink-strong);
	line-height: 1.25;
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}
.stopi-card__price del {
	color: var(--muted-light);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration-thickness: 1px;
}
.stopi-card__price ins { text-decoration: none; }
.stopi-card__price .amount { white-space: nowrap; }
/* Price ranges on variable products read better one size down. */
.stopi-card__price .amount + .amount { font-size: 0.9em; }

.stopi-card__add {
	display: flex;
	width: 100%;
	justify-content: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stopi-card__add.loading { opacity: 0.6; }
.stopi-card__add.added::after { content: ' ✓'; }
/* WooCommerce appends a "view cart" link after a successful AJAX add. */
.stopi-card__foot .added_to_cart {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--ac-dark);
	text-align: center;
}

/* ------------------------------------------------------ breadcrumb ------- */

.stopi-crumbs {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin: 22px 0 14px;
	flex-wrap: wrap;
}
.stopi-crumbs a { color: var(--muted); }
.stopi-crumbs a:hover { color: var(--ac-dark); }
.stopi-crumbs__current { color: var(--ink); font-weight: 700; }

/* -------------------------------------------------- shop / archive ------- */

.stopi-shop__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.stopi-shop__title { font-size: 30px; margin: 0; }
.stopi-shop__count { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.stopi-shop__desc { font-size: 14.5px; color: var(--ink-body); max-width: 70ch; margin: 0 0 20px; }

/* Native select arrows sit flush against the edge, which reads badly inside a
   pill. Draw our own chevron and give it real breathing room. */
.stopi-select,
.stopi-shop select,
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 1.5px solid var(--line-input);
	background-color: var(--surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239A8577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.8 6,6.5 11,1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 12px 8px;
	border-radius: var(--r-pill);
	padding: 10px 44px 10px 18px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s ease;
}
.stopi-select:hover,
.stopi-shop select:hover,
.woocommerce-ordering select:hover { border-color: var(--ac); }

/* Edge/IE render a second arrow. */
.stopi-select::-ms-expand,
.stopi-shop select::-ms-expand { display: none; }

.stopi-shop__layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
	padding-bottom: 56px;
}
.stopi-shop__side {
	flex: 1 1 230px;
	max-width: 270px;
	min-width: 220px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 20px;
}
.stopi-shop__body { flex: 999 1 320px; min-width: 0; }

.stopi-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.stopi-filters__title { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.stopi-filters__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 10px;
}
.stopi-filters__group { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.stopi-filters__group:last-child { margin-bottom: 0; }

.stopi-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
	line-height: 1.3;
}
.stopi-check input { position: absolute; opacity: 0; pointer-events: none; }
.stopi-check__box {
	width: 19px;
	height: 19px;
	border-radius: 6px;
	border: 1.5px solid var(--line-check);
	background: var(--surface);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.stopi-check__box::after { content: '✓'; opacity: 0; }
.stopi-check input:checked + .stopi-check__box {
	background: var(--ac);
	border-color: var(--ac);
}
.stopi-check input:checked + .stopi-check__box::after { opacity: 1; }
.stopi-check input:focus-visible + .stopi-check__box { outline: 2px solid var(--ac); outline-offset: 2px; }

.stopi-radio__dot {
	width: 18px;
	height: 18px;
	border-radius: var(--r-pill);
	border: 1.5px solid var(--line-check);
	background: var(--surface);
	box-shadow: inset 0 0 0 3px var(--surface);
	flex: none;
	transition: background 0.12s ease, border-color 0.12s ease;
}
.stopi-radio input:checked + .stopi-radio__dot {
	background: var(--ac);
	border-color: var(--ac);
}
.stopi-radio input:focus-visible + .stopi-radio__dot { outline: 2px solid var(--ac); outline-offset: 2px; }

.stopi-filters__apply { margin-top: 18px; }
.stopi-filters__apply[hidden] { display: none; }
.stopi-filters.is-busy { opacity: 0.55; pointer-events: none; }

/* toolbar above the grid */

.stopi-shop__tools {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.stopi-sortform { display: inline-flex; align-items: center; }

/* Custom sort dropdown (the native option list cannot be styled). */

.stopi-dd { position: relative; }

.stopi-dd__toggle {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--surface);
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-pill);
	padding: 10px 18px;
	font-family: var(--f-body);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.15s ease;
}
.stopi-dd__toggle:hover { border-color: var(--ac); }
.stopi-dd.is-open .stopi-dd__toggle { border-color: var(--ac); }

.stopi-dd__chevron {
	color: var(--muted);
	flex: none;
	transition: transform 0.18s ease;
}
.stopi-dd.is-open .stopi-dd__chevron { transform: rotate(180deg); }

.stopi-dd__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 100%;
	width: max-content;
	max-width: min(300px, calc(100vw - 32px));
	list-style: none;
	margin: 0;
	padding: 7px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-pop);
	z-index: 70;
	animation: stopiFade 0.15s ease;
}
.stopi-dd__menu[hidden] { display: none; }

.stopi-dd__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 13px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink-soft);
	cursor: pointer;
	white-space: nowrap;
}
.stopi-dd__opt::before {
	content: '';
	width: 15px;
	height: 15px;
	border-radius: var(--r-pill);
	border: 1.5px solid var(--line-check);
	flex: none;
	transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.stopi-dd__opt.is-active { background: var(--sand); color: var(--ink); }
.stopi-dd__opt.is-selected { color: var(--ac-dark); }
.stopi-dd__opt.is-selected::before {
	background: var(--ac);
	border-color: var(--ac);
	box-shadow: inset 0 0 0 3px var(--surface);
}

/* active filter chips */

.stopi-active {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.stopi-active__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-right: 2px;
}
.stopi-active__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--sand-2);
	border: 1px solid transparent;
	border-radius: var(--r-pill);
	padding: 7px 12px 7px 15px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.stopi-active__chip:hover {
	background: var(--surface);
	border-color: var(--ac);
	color: var(--ac-dark);
}
.stopi-active__x {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border-radius: var(--r-pill);
	background: rgba(18, 22, 28, 0.12);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	flex: none;
}
.stopi-active__chip:hover .stopi-active__x { background: var(--ac); color: #FFFFFF; }
.stopi-active__clear {
	font-size: 13px;
	font-weight: 800;
	color: var(--ac-dark);
	padding: 7px 4px;
}
.stopi-active__clear:hover { text-decoration: underline; }

.stopi-empty {
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: var(--r-card);
	padding: 48px 24px;
	text-align: center;
}
.stopi-empty__title { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--ink-strong); margin-bottom: 6px; }
.stopi-empty__text { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }

.stopi-pagination {
	margin: 32px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.stopi-pagination__meta {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--muted);
}
.stopi-pagination ul,
.stopi-pagination .page-numbers {
	list-style: none;
	display: flex;
	gap: 8px;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
	justify-content: center;
}
.stopi-pagination li { display: block; }
.stopi-pagination .page-numbers li .page-numbers,
.stopi-pagination > .page-numbers > .page-numbers,
.stopi-pagination a.page-numbers,
.stopi-pagination span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	font-weight: 800;
	font-size: 14px;
}
.stopi-pagination .page-numbers.current {
	background: var(--ac);
	border-color: var(--ac);
	color: #FFFFFF;
}
.stopi-pagination a.page-numbers:hover { border-color: var(--ac); color: var(--ac-dark); }

/* ---------------------------------------------------- single product ----- */

.stopi-product { display: flex; gap: 36px; flex-wrap: wrap; align-items: flex-start; }
.stopi-product__media { flex: 1 1 340px; max-width: 560px; min-width: 300px; position: relative; }
.stopi-product__summary { flex: 1 1 320px; min-width: 290px; }

.stopi-product__badge { top: 14px; left: 14px; z-index: 5; }

/* WooCommerce product gallery (flexslider + zoom + photoswipe) */

.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }

.woocommerce-product-gallery__image,
.woocommerce-product-gallery .flex-viewport {
	border-radius: 24px;
	overflow: hidden;
	background: var(--surface);
}
.woocommerce-product-gallery .flex-viewport { border: 1px solid var(--line); }
.woocommerce-product-gallery--without-images .woocommerce-product-gallery__image,
.woocommerce-product-gallery:not(.flex) .woocommerce-product-gallery__image {
	border: 1px solid var(--line);
}
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
}
.woocommerce-product-gallery__image img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 14px;
}

/* thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}
.woocommerce-product-gallery .flex-control-thumbs li { margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 6px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-img);
	cursor: pointer;
	opacity: 1;
	transition: border-color 0.15s ease;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--ac);
	opacity: 1;
}

/* lightbox trigger */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	box-shadow: 0 4px 14px rgba(18, 22, 28, 0.1);
	font-size: 0;
	color: transparent;
	text-indent: 0;
}
.woocommerce-product-gallery__trigger::after {
	content: '';
	width: 15px;
	height: 15px;
	border: 2px solid var(--ink-soft);
	border-radius: var(--r-pill);
	box-shadow: 6px 6px 0 -4px var(--ink-soft);
	transform: translate(-2px, -2px);
}
.woocommerce-product-gallery__trigger:hover::after { border-color: var(--ac-dark); box-shadow: 6px 6px 0 -4px var(--ac-dark); }

.stopi-product__brand {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ac-dark);
	margin-bottom: 8px;
	display: block;
}
.stopi-product__title { font-size: 29px; line-height: 1.2; margin: 0 0 12px; }
.stopi-product__pricerow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.stopi-product__price {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 28px;
	color: var(--ink-strong);
}
.stopi-product__price del { color: var(--muted-light); font-size: 19px; margin-right: 8px; }
.stopi-product__price ins { text-decoration: none; }

.stopi-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ok-bg);
	color: var(--ok);
	font-size: 12.5px;
	font-weight: 800;
	padding: 6px 13px;
	border-radius: var(--r-pill);
}
.stopi-stock::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: var(--r-pill);
	background: currentColor;
}
.stopi-stock--out { background: var(--err-bg); color: var(--err); }
.stopi-stock--back { background: var(--warn-bg); color: var(--warn); }

.stopi-product__excerpt {
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink-body);
	margin: 0 0 22px;
}

.stopi-qty {
	display: inline-flex;
	align-items: center;
	background: var(--surface);
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-pill);
	overflow: hidden;
}
.stopi-qty__btn {
	border: none;
	background: none;
	font-size: 18px;
	font-weight: 800;
	color: var(--muted);
	width: 40px;
	height: 44px;
	cursor: pointer;
	line-height: 1;
}
.stopi-qty__btn:hover { color: var(--ac-dark); }
.stopi-qty input,
.stopi-qty .qty {
	width: 42px;
	min-width: 42px;
	border: none;
	background: none;
	text-align: center;
	font-weight: 800;
	font-size: 15px;
	color: var(--ink);
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}
.stopi-qty input::-webkit-outer-spin-button,
.stopi-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stopi-product__cart {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 22px;
}
.stopi-product__cart .stopi-btn { flex: 1; min-width: 190px; }

.stopi-perks {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin-bottom: 22px;
	list-style: none;
}
.stopi-perks li {
	display: flex;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ink-soft);
}
.stopi-perks li::before { content: '✓'; color: var(--ok); flex: none; }

.stopi-specs__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 10px;
}
.stopi-specs {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	overflow: hidden;
	margin: 0 0 22px;
}
.stopi-specs__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 18px;
	border-bottom: 1px solid var(--line-softer);
	font-size: 13.5px;
}
.stopi-specs__row:last-child { border-bottom: none; }
.stopi-specs__k { font-weight: 600; color: var(--muted); }
.stopi-specs__v { font-weight: 700; color: var(--ink); text-align: right; }
.stopi-specs__v p { margin: 0; }

.stopi-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 26px 28px;
}
.stopi-tabs { margin-top: 52px; }
.stopi-tabs__nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding: 0;
	list-style: none;
}
.stopi-tabs__nav a {
	display: block;
	padding: 9px 20px;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--line);
	font-weight: 800;
	font-size: 14px;
	color: var(--ink-soft);
}
.stopi-tabs__nav .active a,
.stopi-tabs__nav a:hover { background: var(--ac); border-color: var(--ac); color: #FFFFFF; }
.stopi-tabs .panel > h2:first-child { display: none; }

/* single product: WooCommerce's own add-to-cart form */

.stopi-product__summary form.cart {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin: 0 0 22px;
}
.stopi-product__summary form.cart .single_add_to_cart_button {
	flex: 1;
	min-width: 190px;
	padding: 14px 26px;
	font-size: 15px;
}
.stopi-product__summary form.variations_form { display: block; }
.stopi-product__summary form.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
}
/* Attributes stack as label + choices instead of a two-column table. */
.stopi-product__summary table.variations,
.stopi-product__summary table.variations tbody,
.stopi-product__summary table.variations tr,
.stopi-product__summary table.variations th,
.stopi-product__summary table.variations td {
	display: block;
	width: auto;
	padding: 0;
	text-align: left;
	border: none;
}
.stopi-product__summary table.variations { margin: 0 0 18px; }
.stopi-product__summary table.variations tr { margin-bottom: 16px; }
.stopi-product__summary table.variations tr:last-child { margin-bottom: 0; }
.stopi-product__summary table.variations th {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 9px;
}

/* option boxes */

.stopi-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.stopi-swatches__native { display: none !important; }

.stopi-swatch {
	border: 1.5px solid var(--line-input);
	background: var(--surface);
	border-radius: 12px;
	padding: 9px 16px;
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ink-soft);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.stopi-swatch:hover { border-color: var(--ac); color: var(--ac-dark); }
.stopi-swatch.is-active {
	border-color: var(--ac);
	background: var(--ac);
	color: #FFFFFF;
	box-shadow: 0 4px 12px var(--ac-shadow);
}
.stopi-swatch:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	text-decoration: line-through;
	border-color: var(--line);
}
.stopi-swatch:disabled:hover { color: var(--ink-soft); border-color: var(--line); }
/* Match the shop's sort control instead of the raw browser dropdown. */
.stopi-product__summary table.variations select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-pill);
	background-color: var(--surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239A8577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.8 6,6.5 11,1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	padding: 10px 42px 10px 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s ease;
}
.stopi-product__summary table.variations select:hover,
.stopi-product__summary table.variations select:focus { border-color: var(--ac); }
.stopi-product__summary .reset_variations {
	font-size: 12.5px;
	font-weight: 700;
	display: inline-block;
	margin-top: 6px;
}
.stopi-product__summary .woocommerce-variation-price {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 22px;
	color: var(--ink-strong);
	margin-bottom: 8px;
}
.stopi-product__summary .stock { font-size: 13.5px; font-weight: 700; }
.stopi-product__summary .group_table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.stopi-product__summary .group_table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.stopi-product__summary .woocommerce-product-details__short-description { display: none; }

/* product data tabs */

.stopi-tabs .woocommerce-tabs { margin: 0; }
.stopi-tabs ul.tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.stopi-tabs ul.tabs::before,
.stopi-tabs ul.tabs::after { display: none; }
.stopi-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
}
.stopi-tabs ul.tabs li::before,
.stopi-tabs ul.tabs li::after { display: none; }
.stopi-tabs ul.tabs li a {
	display: block;
	padding: 9px 20px;
	border-radius: var(--r-pill);
	background: var(--surface);
	border: 1px solid var(--line);
	font-weight: 800;
	font-size: 14px;
	color: var(--ink-soft);
	text-decoration: none;
}
.stopi-tabs ul.tabs li.active a,
.stopi-tabs ul.tabs li a:hover {
	background: var(--ac);
	border-color: var(--ac);
	color: #FFFFFF;
}
.stopi-tabs .woocommerce-Tabs-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 26px 30px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ink-soft);
}
.stopi-tabs .woocommerce-Tabs-panel > h2 { display: none; }
.stopi-tabs .woocommerce-Tabs-panel > *:first-child { margin-top: 0; }
.stopi-tabs .woocommerce-Tabs-panel > *:last-child { margin-bottom: 0; }
.stopi-tabs .woocommerce-Tabs-panel h3 { font-size: 18px; margin: 24px 0 10px; }
.stopi-tabs .woocommerce-Tabs-panel ul,
.stopi-tabs .woocommerce-Tabs-panel ol { padding-left: 22px; margin: 0 0 16px; }
.stopi-tabs .woocommerce-Tabs-panel li { margin-bottom: 6px; }
.stopi-tabs .woocommerce-Tabs-panel img { border-radius: var(--r-img); }

/* additional information */

.stopi-tabs table.shop_attributes {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	margin: 0;
}
.stopi-tabs table.shop_attributes tr:nth-child(odd) { background: var(--sand); }
.stopi-tabs table.shop_attributes th,
.stopi-tabs table.shop_attributes td {
	padding: 13px 18px;
	border: none;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
}
.stopi-tabs table.shop_attributes th {
	font-weight: 800;
	color: var(--muted);
	width: 38%;
	font-style: normal;
}
.stopi-tabs table.shop_attributes td {
	font-weight: 700;
	color: var(--ink);
	font-style: normal;
}
.stopi-tabs table.shop_attributes td p { margin: 0; font-style: normal; }

/* reviews */

.stopi-reviews {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}
.stopi-reviews .clear { display: none; }

/* With no reviews yet the left column has nothing to hold, so stack instead. */
.stopi-reviews--empty { grid-template-columns: minmax(0, 1fr); gap: 22px; }

.stopi-reviews__summary {
	display: flex;
	gap: 26px;
	align-items: center;
	flex-wrap: wrap;
	background: var(--sand);
	border-radius: var(--r-panel);
	padding: 18px 22px;
	margin-bottom: 20px;
}
.stopi-reviews__score {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}
.stopi-reviews__avg {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 38px;
	line-height: 1;
	color: var(--ink-strong);
}
.stopi-reviews__count { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* WooCommerce floats .star-rating right, which drags it beside the number. */
.stopi-reviews__score .star-rating,
.stopi-review__rating .star-rating {
	float: none;
	margin: 0;
}
.stopi-reviews__score .star-rating { margin-top: 2px; }

.stopi-reviews__bars { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 5px; }
.stopi-reviews__bar { display: flex; align-items: center; gap: 9px; }
.stopi-reviews__bar-label { font-size: 12px; font-weight: 700; color: var(--muted); width: 26px; flex: none; }
.stopi-reviews__bar-track {
	flex: 1;
	height: 7px;
	background: var(--sand-3);
	border-radius: var(--r-pill);
	overflow: hidden;
}
.stopi-reviews__bar-fill { display: block; height: 100%; background: var(--ac); border-radius: var(--r-pill); }
.stopi-reviews__bar-n { font-size: 12px; font-weight: 700; color: var(--muted-light); width: 20px; text-align: right; flex: none; }

.stopi-reviews__none {
	background: var(--sand);
	border-radius: var(--r-panel);
	padding: 26px 24px;
	text-align: center;
}
.stopi-reviews__none-stars { font-size: 22px; color: var(--line-strong); letter-spacing: 3px; }
.stopi-reviews__none .woocommerce-noreviews {
	font-family: var(--f-head);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink-strong);
	margin: 10px 0 6px;
	background: none;
	padding: 0;
}
.stopi-reviews__none-sub {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
	margin: 0;
	max-width: 46ch;
	margin-inline: auto;
}

/* review list */

.stopi-reviews__items { list-style: none; margin: 0; padding: 0; }
.stopi-review { margin: 0 0 12px; }
.stopi-review__inner {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	padding: 16px 18px;
}
.stopi-review__avatar {
	width: 44px;
	height: 44px;
	border-radius: var(--r-pill);
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	user-select: none;
}
.stopi-review__body { flex: 1; min-width: 0; }
.stopi-review__head {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	margin-bottom: 5px;
}
.stopi-review__author { font-size: 14px; font-weight: 800; color: var(--ink); }
.stopi-review__verified {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: var(--ok);
	background: var(--ok-bg);
	border-radius: var(--r-pill);
	padding: 3px 9px;
}
.stopi-review__date { font-size: 12px; font-weight: 600; color: var(--muted-light); margin-left: auto; }
.stopi-review__rating { margin-bottom: 8px; }
.stopi-review__text { font-size: 14px; color: var(--ink-soft); }
.stopi-review__text p:last-child { margin-bottom: 0; }
.stopi-review__pending { font-size: 12.5px; font-weight: 700; color: var(--warn); margin: 8px 0 0; }

/* review form */

.stopi-reviews__form {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 22px 24px;
}
.stopi-reviews--empty .stopi-reviews__form { max-width: 560px; }

.stopi-tabs .comment-reply-title {
	display: block;
	font-family: var(--f-head);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink-strong);
	margin-bottom: 16px;
	line-height: 1.3;
}
.stopi-tabs .comment-reply-title small { display: none; }
.stopi-tabs .comment-form { margin: 0; }
.stopi-tabs .comment-form p { margin: 0 0 14px; }
.stopi-tabs .comment-form label { margin-bottom: 6px; }
.stopi-tabs .comment-form .required { color: var(--ac-dark); }
.stopi-tabs .comment-form-rating { margin-bottom: 14px; }
.stopi-tabs .comment-form-rating select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-img);
	background-color: var(--surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239A8577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.8 6,6.5 11,1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 8px;
	padding: 11px 42px 11px 15px;
	font-size: 14.5px;
	color: var(--ink);
	cursor: pointer;
	outline: none;
}
.stopi-tabs .comment-form-rating select:focus { border-color: var(--ac); }
.stopi-tabs .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 9px;
}
.stopi-tabs .comment-form-cookies-consent label {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}
.stopi-tabs .comment-form .form-submit { margin: 4px 0 0; }
.stopi-tabs .comment-form input[type="submit"] { width: auto; }

.stopi-reviews__gate {
	background: var(--sand);
	border-radius: var(--r-img);
	padding: 16px 18px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--muted);
	margin: 0;
}

@media (max-width: 780px) {
	.stopi-reviews { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* related / upsell sections */

.related.products > h2,
.upsells.products > h2,
.cross-sells > h2 {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 24px;
	margin: 0 0 16px;
	color: var(--ink-strong);
}
.related.products,
.upsells.products { margin-top: 44px; }

/* reviews */
.woocommerce #reviews #comments ol.commentlist { list-style: none; padding: 0; margin: 0 0 20px; }
.woocommerce #reviews #comments ol.commentlist li { margin-bottom: 16px; }
.woocommerce #reviews .comment-text {
	background: var(--sand);
	border: none;
	border-radius: var(--r-panel);
	padding: 16px 18px;
	margin-left: 60px;
}
.woocommerce #reviews .comment_container img.avatar {
	width: 44px;
	border-radius: var(--r-pill);
	position: absolute;
	padding: 0;
	border: none;
	background: none;
}
.woocommerce .star-rating span { color: var(--ac); }

/* comments */
.stopi-comments .comment-list { margin: 0 0 24px; }
.stopi-comments .comment-body { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }

/* sort form sits inline in the shop header */
.stopi-sortform { display: inline-flex; gap: 8px; align-items: center; }

/* -------------------------------------------------------- cart ----------- */

.stopi-cartpage { padding-bottom: 56px; }
.stopi-cartpage__title { font-size: 30px; margin: 26px 0 20px; }
.stopi-cartpage__title span { color: var(--muted-light); font-size: 22px; }

.stopi-cartlayout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.stopi-cartlayout__items { flex: 999 1 340px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stopi-cartlayout__side { flex: 1 1 280px; max-width: 380px; min-width: 270px; position: sticky; top: 96px; }

.stopi-line {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 14px 16px;
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
}
.stopi-line__media {
	width: 76px;
	height: 76px;
	border-radius: var(--r-img);
	overflow: hidden;
	background: var(--surface-tint);
	flex: none;
}
.stopi-line__media img { width: 100%; height: 100%; object-fit: contain; }
.stopi-line__body { flex: 1; min-width: 150px; }
.stopi-line__name { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.stopi-line__name:hover { color: var(--ac-dark); }
.stopi-line__meta { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.stopi-line__meta .amount { color: var(--muted); }
.stopi-line__total {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 17px;
	color: var(--ink-strong);
	min-width: 96px;
	text-align: right;
}
/* WooCommerce sizes a.remove in em with a 1.5em font-size, which shrinks the
   button and blows up the glyph - match its selector weight to undo both. */
.stopi-cartpage a.stopi-line__remove,
.stopi-line__remove {
	border: none;
	background: var(--sand);
	border-radius: var(--r-pill);
	width: 30px;
	height: 30px;
	cursor: pointer;
	color: var(--muted-light);
	font-size: 17px;
	line-height: 1;
	font-weight: 700;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.stopi-cartpage a.stopi-line__remove:hover,
.stopi-line__remove:hover { color: var(--ac-dark); background: var(--surface-tint); }
.stopi-line .stopi-qty { background: var(--bg); }
.stopi-line .stopi-qty__btn { width: 34px; height: 36px; font-size: 16px; }
.stopi-line .stopi-qty input { width: 36px; min-width: 36px; font-size: 14px; }

.stopi-summary {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 22px;
}
.stopi-summary__title { font-family: var(--f-head); font-weight: 700; font-size: 18px; margin-bottom: 16px; }
.stopi-freeship {
	background: var(--sand);
	border-radius: var(--r-img);
	padding: 12px 14px;
	margin-bottom: 16px;
}
.stopi-freeship__msg { font-size: 12.5px; font-weight: 800; color: var(--ink-body); margin-bottom: 8px; }
.stopi-freeship__bar { height: 7px; background: var(--sand-3); border-radius: var(--r-pill); overflow: hidden; }
.stopi-freeship__fill { height: 100%; background: var(--ac); border-radius: var(--r-pill); transition: width 0.3s ease; }

.stopi-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
	padding: 7px 0;
}
.stopi-summary__row--last { border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; }
.stopi-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 14px 0 18px;
}
.stopi-summary__total-label { font-weight: 800; font-size: 15px; }
.stopi-summary__total-value {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 22px;
	color: var(--ink-strong);
}
.stopi-summary .wc-proceed-to-checkout { margin: 0; padding: 0; }
.stopi-summary .wc-proceed-to-checkout a.checkout-button,
.stopi-summary .wc-proceed-to-checkout a.button {
	display: flex;
	width: 100%;
	padding: 15px 20px;
	font-size: 15px;
	margin: 0;
}
.stopi-summary__note {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	text-align: center;
	margin-top: 12px;
}

/* coupon + update row: one shared control height so nothing sits half a step off */

.stopi-cartactions {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 14px 16px;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.stopi-coupon {
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}
.stopi-coupon input {
	width: 190px;
	min-width: 130px;
	height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}
.stopi-cartactions__btn {
	height: 44px;
	padding: 0 20px;
	font-size: 14px;
	white-space: nowrap;
	flex: none;
}
.stopi-cartactions__update { margin-left: auto; }

.stopi-summary__free { color: var(--ok); font-weight: 800; }

@media (max-width: 620px) {
	.stopi-cartactions { flex-direction: column; align-items: stretch; }
	.stopi-coupon { flex-wrap: wrap; }
	.stopi-coupon input { width: auto; flex: 1; }
	.stopi-cartactions__update { margin-left: 0; }
}

/* ----------------------------------------------- forms / woo commons ----- */

.stopi-field,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select:not(.stopi-select),
.woocommerce-page form .form-row input.input-text,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select:not(.stopi-select),
.stopi-main input[type="text"],
.stopi-main input[type="email"],
.stopi-main input[type="tel"],
.stopi-main input[type="url"],
.stopi-main input[type="password"],
.stopi-main input[type="search"],
.stopi-main textarea {
	width: 100%;
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-img);
	background: var(--surface);
	padding: 11px 15px;
	font-size: 14.5px;
	color: var(--ink);
	outline: none;
	transition: border-color 0.15s ease;
}
.stopi-field:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:not(.stopi-select):focus,
.stopi-main input:focus,
.stopi-main textarea:focus { border-color: var(--ac); }

.stopi-main textarea { min-height: 120px; }

/* WooCommerce styles .form-row descendants with three classes, which outranked
   the shared field rule and left the order-notes box with its default look. */
.stopi-checkout form.checkout .form-row textarea,
.woocommerce-checkout form .form-row textarea,
.woocommerce form .form-row textarea,
.woocommerce form .form-row .input-text.stopi-textarea {
	width: 100%;
	min-height: 120px;
	border: 1px solid var(--line-input);
	border-radius: var(--r-img);
	background: var(--surface);
	padding: 11px 15px;
	font-family: var(--f-body);
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink);
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease;
}
.stopi-checkout form.checkout .form-row textarea:focus,
.woocommerce-checkout form .form-row textarea:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--ac); }
.woocommerce form .form-row textarea::placeholder { color: var(--muted); }

/* The filter checkboxes are labels too, but they lay themselves out as a row -
   excluding them here keeps this generic form rule from flattening them. */
.woocommerce form .form-row label,
.stopi-main label:not(.stopi-check) {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: var(--ink-soft);
	margin-bottom: 6px;
}
.woocommerce form .form-row { margin-bottom: 16px; padding: 0; }
.woocommerce .form-row .required { color: var(--ac-dark); text-decoration: none; border: 0; }

/* WooCommerce buttons -> tema */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	background: var(--ac);
	color: #FFFFFF;
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 14.5px;
	line-height: 1.2;
	padding: 13px 26px;
	border-radius: var(--r-pill);
	cursor: pointer;
	box-shadow: 0 6px 18px var(--ac-shadow);
	text-shadow: none;
	transition: filter 0.15s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--ac);
	color: #FFFFFF;
	filter: brightness(0.92);
}
/* WooCommerce hard-codes its purple for disabled ".alt" buttons instead of using
   the CSS variables, so the disabled state needs its own override. */
.stopi.woocommerce button.button.disabled,
.stopi.woocommerce button.button.alt.disabled,
.stopi.woocommerce button.button:disabled,
.stopi.woocommerce button.button:disabled[disabled],
.stopi.woocommerce button.button.alt:disabled,
.stopi.woocommerce button.button.alt:disabled[disabled],
.stopi.woocommerce a.button.disabled,
.stopi.woocommerce a.button.alt.disabled,
.stopi.woocommerce input.button.disabled,
.stopi.woocommerce input.button.alt.disabled,
.stopi.woocommerce input.button:disabled,
.stopi.woocommerce input.button:disabled[disabled] {
	background-color: var(--sand-3);
	color: var(--muted);
	box-shadow: none;
	opacity: 1;
	cursor: not-allowed;
	filter: none;
}

.woocommerce a.button.wc-backward,
.woocommerce .button.wc-forward {
	background: var(--surface);
	color: var(--ink);
	border: 1.5px solid var(--line-strong);
	box-shadow: none;
}
.woocommerce a.button.wc-backward:hover { background: var(--surface); color: var(--ac-dark); }

/* WooCommerce notices */

.stopi .woocommerce-message,
.stopi .woocommerce-info,
.stopi .woocommerce-error,
.stopi .wc-block-components-notice-banner {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 4px solid var(--ac);
	border-radius: var(--r-panel);
	padding: 15px 18px 15px 50px;
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink-soft);
	list-style: none;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	box-shadow: 0 4px 14px rgba(18, 22, 28, 0.06);
}

/* Round badge with a glyph, replacing WooCommerce's icon font. */
.stopi .woocommerce-message::before,
.stopi .woocommerce-info::before,
.stopi .woocommerce-error::before {
	content: '✓';
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	border-radius: var(--r-pill);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 800;
	background: var(--ok-bg);
	color: var(--ok);
	font-family: var(--f-body);
	animation: none;
	margin: 0;
	padding: 0;
}

.stopi .woocommerce-message { border-left-color: var(--ok); }

.stopi .woocommerce-info { border-left-color: var(--ac); }
.stopi .woocommerce-info::before { content: 'i'; background: var(--sand-2); color: var(--ac-dark); }

.stopi .woocommerce-error {
	border-left-color: var(--err);
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
.stopi .woocommerce-error::before { content: '!'; background: var(--err-bg); color: var(--err); top: 18px; transform: none; }
.stopi .woocommerce-error li { margin: 0; }

/* the inline "Pregled korpe" style link */
.stopi .woocommerce-message .button,
.stopi .woocommerce-info .button,
.stopi .woocommerce-message a.wc-forward,
.stopi .woocommerce-info a.wc-forward {
	margin-left: auto;
	padding: 9px 18px;
	font-size: 13.5px;
	background: var(--sand-2);
	color: var(--ink);
	border: none;
	box-shadow: none;
	white-space: nowrap;
}
.stopi .woocommerce-message .button:hover,
.stopi .woocommerce-info .button:hover,
.stopi .woocommerce-message a.wc-forward:hover,
.stopi .woocommerce-info a.wc-forward:hover {
	background: var(--ac);
	color: #FFFFFF;
	filter: none;
}

.stopi .woocommerce-noreviews {
	background: var(--sand);
	border-radius: var(--r-img);
	padding: 16px 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--muted);
	margin: 0;
}

@media (max-width: 560px) {
	.stopi .woocommerce-message,
	.stopi .woocommerce-info,
	.stopi .woocommerce-error { padding: 14px 16px 14px 46px; }
	.stopi .woocommerce-message .button,
	.stopi .woocommerce-info .button { margin-left: 0; width: 100%; justify-content: center; }
}

.stopi-notices:empty { display: none; }
.stopi-notices { margin-top: 20px; }

/* WooCommerce price markup */
.amount { white-space: nowrap; }
.woocommerce-Price-currencySymbol { font-size: 0.78em; font-weight: 700; }

/* ------------------------------------------------------ checkout --------- */

.stopi-checkout { padding-bottom: 56px; }

/* Customer details on the left, the order summary on the right. */
.stopi-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 0 26px;
	align-items: start;
}
.stopi-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.stopi-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; }
.stopi-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; }

/* One column each, so billing fields are not squeezed side by side. */
.woocommerce-checkout .col2-set { display: block; width: 100%; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout .col2-set .col-2 { margin-top: 24px; }

.woocommerce-checkout #customer_details,
.woocommerce-checkout .stopi-checkout__main {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
	margin-bottom: 0;
}

@media (max-width: 900px) {
	.stopi-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		gap: 22px;
	}
	.stopi-checkout form.checkout #customer_details,
	.stopi-checkout form.checkout #order_review_heading,
	.stopi-checkout form.checkout #order_review { grid-column: 1; grid-row: auto; }
}
.woocommerce-checkout h3,
.woocommerce-billing-fields h3 { font-size: 19px; margin: 0 0 16px; }
#order_review_heading { font-size: 19px; margin: 0 0 14px; }
.woocommerce-checkout-review-order {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 22px;
}
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
}
.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table thead th {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	padding-bottom: 8px;
}
.woocommerce-checkout-review-order-table tfoot th { color: var(--muted); }
.stopi-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.stopi-checkout .woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
	font-family: var(--f-head);
	font-size: 19px;
	font-weight: 700;
	color: var(--ink-strong);
	border-bottom: none;
	padding-top: 14px;
}

/* line items with a thumbnail */
.stopi-review-order__item { display: flex; gap: 12px; align-items: center; }
.stopi-review-order__media {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--surface-tint);
	flex: none;
}
.stopi-checkout .stopi-review-order__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
	border-radius: 10px;
	float: none;
	margin: 0;
}
.stopi-review-order__text { min-width: 0; }
.stopi-review-order__name { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.stopi-review-order__text .product-quantity {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	margin-top: 2px;
}
/* One control height across the form: plain inputs, native selects and the
   Select2 widget WooCommerce swaps in for country/state. WooCommerce styles
   these through .form-row descendants, so match that weight or lose. */
.stopi-checkout form.checkout .form-row select:not(.stopi-select),
.woocommerce-checkout form .form-row select.country_to_state,
.woocommerce-checkout select:not(.stopi-select) {
	height: 44px;
	min-height: 44px;
	line-height: 1.2;
	padding-top: 0;
	padding-bottom: 0;
}

/* Select2 (country / state). Centre the label with flex rather than a fixed
   line-height, which is what left the text sitting low. */
.stopi-checkout .select2-container { width: 100% !important; }
.stopi-checkout .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 42px 0 15px;
	border: 1.5px solid var(--line-input);
	border-radius: var(--r-img);
	background: var(--surface);
	outline: none;
	transition: border-color 0.15s ease;
}
.stopi-checkout .select2-container .select2-selection--single:hover { border-color: var(--ac); }
.stopi-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	width: 100%;
	padding: 0;
	line-height: 1.25;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.stopi-checkout .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--muted); }

/* Replace the default triangle with the same chevron the other selects use. */
.stopi-checkout .select2-container .select2-selection--single .select2-selection__arrow {
	position: absolute;
	top: 0;
	right: 14px;
	height: 100%;
	width: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stopi-checkout .select2-container .select2-selection--single .select2-selection__arrow b {
	margin: 0;
	top: auto;
	left: auto;
	position: static;
	border: none;
	width: 12px;
	height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%239A8577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1,1.8 6,6.5 11,1.8'/%3E%3C/svg%3E") no-repeat center;
	transition: transform 0.18s ease;
}
.stopi-checkout .select2-container--open .select2-selection--single { border-color: var(--ac); }
.stopi-checkout .select2-container--open .select2-selection--single .select2-selection__arrow b { transform: rotate(180deg); }

/* the open panel */
.select2-container--default .select2-dropdown {
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	box-shadow: var(--shadow-pop);
	overflow: hidden;
	background: var(--surface);
	margin-top: 6px;
}
.select2-container--default .select2-dropdown--above { margin-top: 0; margin-bottom: 6px; }

.select2-container--default .select2-search--dropdown { padding: 10px 10px 6px; }
.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1.5px solid var(--line-input);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
	font-family: var(--f-body);
	outline: none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: var(--ac); }

.select2-container--default .select2-results > .select2-results__options {
	max-height: 260px;
	padding: 6px;
}
.select2-container--default .select2-results__option {
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink-soft);
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--sand);
	color: var(--ink);
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--ac);
	color: #FFFFFF;
}
.select2-container--default .select2-results__message { color: var(--muted); font-weight: 600; }

.woocommerce-checkout #payment {
	background: var(--sand);
	border-radius: var(--r-panel);
	padding: 18px;
}
.woocommerce-checkout #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.woocommerce-checkout #payment ul.payment_methods li {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-img);
	padding: 13px 16px;
	font-weight: 800;
	font-size: 14px;
}
.woocommerce-checkout #payment div.payment_box {
	background: var(--sand);
	border-radius: 12px;
	padding: 12px 14px;
	margin-top: 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-body);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.stopi-checkout #payment .form-row.place-order,
.woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
.woocommerce-checkout #place_order {
	width: 100%;
	display: flex;
	padding: 16px 20px;
	font-size: 15.5px;
	margin: 0;
	float: none;
}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 13.5px; }

/* order received / thank you */
.woocommerce-order .woocommerce-order-overview,
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
	margin-bottom: 20px;
}
.woocommerce ul.order_details {
	list-style: none;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}
.woocommerce ul.order_details li {
	border: none;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 0;
	margin: 0;
}
.woocommerce ul.order_details li strong {
	display: block;
	font-family: var(--f-head);
	font-size: 17px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-strong);
	margin-top: 4px;
}

/* ---------------------------------------------------- my account --------- */

.woocommerce-account .woocommerce { display: flex; gap: 24px; flex-wrap: wrap; }

/* Notices are a sibling of the navigation, so as a flex item they would line up
   as a third column. Give them the full row instead. */
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { flex: 0 0 100%; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation {
	flex: 1 1 220px;
	max-width: 260px;
	min-width: 200px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 14px;
	float: none;
	width: auto;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 14px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink-soft);
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--sand); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--ac); color: #FFFFFF; }
.woocommerce-account .woocommerce-MyAccount-content {
	flex: 999 1 320px;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
	float: none;
	width: auto;
}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
}

/* generic woo tables */
.woocommerce table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--surface);
	overflow: hidden;
	width: 100%;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
	text-align: left;
}
.woocommerce table.shop_table th { font-weight: 800; color: var(--ink-soft); }
.woocommerce table.shop_table tr:last-child td { border-bottom: none; }

/* --------------------------------------------------- pages / blog -------- */

.stopi-entry { padding: 26px 0 56px; }
.stopi-entry__header { margin-bottom: 22px; }
.stopi-entry__title { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.stopi-entry__meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.stopi-entry__thumb { border-radius: var(--r-hero); overflow: hidden; margin-bottom: 24px; }

.stopi-prose {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 30px 34px;
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--ink-soft);
}
.stopi-prose > *:first-child { margin-top: 0; }
.stopi-prose > *:last-child { margin-bottom: 0; }
.stopi-prose h2 { font-size: 24px; margin: 30px 0 12px; }
.stopi-prose h3 { font-size: 19px; margin: 24px 0 10px; }
.stopi-prose ul, .stopi-prose ol { padding-left: 22px; margin: 0 0 16px; }
.stopi-prose li { margin-bottom: 6px; }
.stopi-prose img { border-radius: var(--r-img); }
.stopi-prose blockquote {
	margin: 20px 0;
	padding: 14px 20px;
	background: var(--sand);
	border-left: 3px solid var(--ac);
	border-radius: 0 var(--r-img) var(--r-img) 0;
}
.stopi-prose table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.stopi-prose th, .stopi-prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.stopi-prose code {
	background: var(--sand);
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 0.9em;
}

.stopi-postlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; padding-bottom: 56px; }
.stopi-post {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stopi-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.stopi-post__thumb { aspect-ratio: 16 / 9; background: var(--surface-tint); overflow: hidden; }
.stopi-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.stopi-post__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stopi-post__title { font-size: 18px; margin: 0; }
.stopi-post__title a { color: inherit; }
.stopi-post__title a:hover { color: var(--ac-dark); }
.stopi-post__meta { font-size: 12px; font-weight: 700; color: var(--muted); }
.stopi-post__excerpt { font-size: 14px; color: var(--ink-body); flex: 1; }

/* ---------------------------------------------------------- kontakt ------ */

.stopi-contact { padding: 8px 0 0; }
.stopi-contact__header { margin-bottom: 28px; }
.stopi-contact__lead {
	font-size: 15.5px;
	color: var(--ink-body);
	max-width: 58ch;
	margin: 0;
}

.stopi-contact__layout {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

.stopi-contact__side {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 24px;
}
.stopi-contact__list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.stopi-contact__item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}
.stopi-contact__item:last-child { border-bottom: none; }
.stopi-contact__icon {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: var(--r-pill);
	background: var(--sand-2);
	color: var(--ac-dark);
	display: flex;
	align-items: center;
	justify-content: center;
}
.stopi-contact__body { min-width: 0; }
.stopi-contact__label {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 2px;
}
.stopi-contact__value {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: var(--ink);
	line-height: 1.4;
}
a.stopi-contact__value:hover { color: var(--ac-dark); }
.stopi-contact__extra {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line-soft);
	font-size: 14px;
	color: var(--ink-soft);
}

.stopi-contact__main {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	padding: 26px 28px 30px;
}
.stopi-contact__formtitle { font-size: 20px; margin: 0 0 18px; }

/* form */

.stopi-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0 16px;
}
.stopi-form__row { margin: 0 0 16px; }
.stopi-form__row label {
	display: block;
	font-size: 13px;
	font-weight: 800;
	color: var(--ink-soft);
	margin-bottom: 6px;
}
.stopi-form__req { color: var(--ac-dark); }
.stopi-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stopi-form__consent { margin: 4px 0 20px; }
.stopi-form__consent .stopi-check { align-items: flex-start; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.stopi-form__consent .stopi-check__box { margin-top: 1px; }

.stopi-formnotice {
	border-radius: var(--r-panel);
	padding: 14px 18px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 700;
	border-left: 4px solid var(--ac);
	background: var(--sand);
	color: var(--ink-soft);
}
.stopi-formnotice--ok { border-left-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.stopi-formnotice--err { border-left-color: var(--err); background: var(--err-bg); color: var(--err); }

@media (max-width: 860px) {
	.stopi-contact__layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.stopi-404 { text-align: center; padding: 70px 0 90px; }
.stopi-404__code {
	font-family: var(--f-head);
	font-size: clamp(64px, 12vw, 120px);
	font-weight: 700;
	color: var(--line-strong);
	line-height: 1;
	margin-bottom: 10px;
}

/* ------------------------------------------------ payment branding ------- */

.stopi-payments {
	background: var(--surface);
	border-top: 1px solid var(--line);
	margin-top: auto;
}
.stopi-payments__inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 26px var(--gut);
	display: flex;
	gap: 34px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}
.stopi-payments__intro { flex: 1 1 280px; min-width: 260px; }
.stopi-payments__title { font-size: 17px; margin: 0 0 6px; }
.stopi-payments__text {
	font-size: 13px;
	line-height: 1.55;
	color: var(--muted);
	font-weight: 600;
	margin: 0;
	max-width: 52ch;
}

.stopi-payments__marks {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.stopi-payments__group { display: flex; flex-direction: column; gap: 9px; }
.stopi-payments__label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-light);
}
.stopi-payments__row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}

/* Uniform tiles even out logos whose proportions are wildly different, and give
   every mark the same optical weight. */
/* Every mark gets the same invisible cell, so they line up on one grid even
   though the logos themselves are square, wide or compact. Fixed width, not
   min-width: the widest logo would otherwise stretch its own cell. */
.stopi-payments__chip {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 116px;
	height: 68px;
	flex: none;
	padding: 0;
}
/* Sizes come from the inline style in template-parts/payments.php - do not set
   width or height here, it would undo the per-logo balancing. */
.stopi-payments__chip img {
	display: block;
	object-fit: contain;
}
/* The bank lockup is far wider than it is tall; it sits in its own labelled
   group, so a wider cell there keeps it legible without breaking the row - the
   height and baseline stay the same as every other cell. */
.stopi-payments__chip--bank { width: 150px; }

@media (max-width: 780px) {
	.stopi-payments__inner { gap: 22px; padding: 22px var(--gut); }
	.stopi-payments__marks { gap: 22px; }
}

/* -------------------------------------------------------- footer --------- */

.stopi-footer { background: var(--foot); color: var(--foot-text); margin-top: auto; }
.stopi-footer__cols {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 44px var(--gut) 20px;
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}
.stopi-footer__brand { flex: 2 1 240px; min-width: 220px; }
.stopi-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stopi-footer__logo--image { display: inline-block; max-width: 100%; }
.stopi-footer__logo--image img { display: block; max-width: 100%; }
.stopi-footer__logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--ac);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.stopi-footer__logo-mark svg { fill: #FFFFFF; }
/* Medaljon nosi svoj prsten - bez plave plocice ispod njega. */
.stopi-footer__logo-mark--image {
	width: 44px;
	height: 44px;
	background: none;
	border-radius: 0;
}
.stopi-footer__logo-mark--image img { width: 44px; height: 44px; object-fit: contain; }
.stopi-footer__logo-name {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	background: var(--steel);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.stopi-footer__about { font-size: 13.5px; line-height: 1.6; margin: 0; max-width: 34ch; color: var(--foot-muted); }
.stopi-footer__social {
	display: inline-block;
	margin-top: 14px;
	color: var(--foot-bright);
	font-weight: 700;
	font-size: 13px;
	border: 1px solid var(--foot-line);
	border-radius: var(--r-pill);
	padding: 7px 16px;
}
.stopi-footer__social:hover { border-color: var(--ac); color: var(--foot-bright); }
/* Wraps rather than squeezing the column when a third network gets added. */
.stopi-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; }
.stopi-footer__socials .stopi-footer__social { margin-top: 14px; }
/* Icon-only profile links (Instagram, Facebook) under the footer text. */
.stopi-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: 14px;
	border: 1px solid var(--foot-line);
	border-radius: 50%;
	color: var(--foot-bright);
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.stopi-footer__icon:hover { border-color: var(--ac); background-color: var(--ac); color: #fff; }
.stopi-contact__socials { display: flex; flex-wrap: wrap; gap: 8px; }

/* Studio credit, quieter than the copyright it sits next to. */
.stopi-footer__credit { white-space: nowrap; }
.stopi-footer__credit a {
	color: var(--foot-text);
	font-weight: 700;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.stopi-footer__credit a:hover { color: var(--foot-bright); border-bottom-color: currentColor; }
.stopi-footer__col { flex: 1 1 170px; }
.stopi-footer__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--foot-muted);
	margin-bottom: 12px;
}
.stopi-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; font-weight: 600; }
.stopi-footer__list a,
.stopi-footer__list span { color: var(--foot-text); }
.stopi-footer__list a:hover { color: var(--foot-bright); }
.stopi-footer__list .stopi-footer__muted { color: var(--foot-muted); }
.stopi-footer__legal { border-top: 1px solid var(--foot-line); }
.stopi-footer__legal-row {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 14px var(--gut);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--foot-muted);
}

.stopi-footer__bottom { border-top: 1px solid var(--foot-line); }
.stopi-footer__bottom-row {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 16px var(--gut);
	font-size: 12px;
	font-weight: 600;
	color: var(--foot-muted);
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* --------------------------------------------------- responsive ---------- */

@media (max-width: 1024px) {
	.stopi-hero { padding: 36px; gap: 28px; }
	.stopi-about { padding: 32px; }
	.stopi-shop__side { position: static; }
	.stopi-cartlayout__side { position: static; }
}

@media (max-width: 860px) {
	/* Only the promo line survives up here; phone and switcher move into the
	   drawer, where there is room to tap them. */
	.stopi-topbar__inner { min-height: 34px; grid-template-columns: 1fr; gap: 0; }
	.stopi-topbar__side { display: none; }
	.stopi-topbar__promo { font-size: 12px; padding: 7px 0; line-height: 1.4; }
	.stopi-topbar--bare { display: none; }

	/* Two columns: brand and buttons on the first row, search across the second. */
	.stopi-header__bar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		padding: 12px var(--gut);
	}
	/* Rows are explicit: the search sits after the buttons in the DOM, so
	   auto-placement would push the buttons onto a third row. */
	.stopi-header__left { grid-column: 1; grid-row: 1; }
	.stopi-header__right { grid-column: 2; grid-row: 1; gap: 10px; }
	.stopi-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.stopi-burger { display: flex; }
	.stopi-brand { flex: 1; min-width: 0; }
	.stopi-brand__tag { display: none; }
	.stopi-brand__name { font-size: 19px; letter-spacing: 0.09em; }
	.stopi-brand--logo .stopi-brand__mark img { height: 40px; }
	.stopi-cart__btn span:not(.stopi-cart__count) { display: none; }
	.stopi-cart__btn { padding: 10px 14px; }
	.stopi-drawer__pismo { display: block; }
	.stopi-chips,
	.stopi-navbar { display: none; }

	.stopi-shop__side {
		max-width: none;
		width: 100%;
		display: none;
	}
	.stopi-shop__side.is-open { display: block; }
	.stopi-filters__toggle { display: inline-flex; }

	.stopi-product { gap: 24px; }
	.stopi-line__total { min-width: 0; text-align: left; }
}

@media (min-width: 861px) {
	.stopi-filters__toggle { display: none; }
}

@media (max-width: 560px) {
	:root { --gut: 16px; }
	.stopi-topbar__promo { font-size: 11px; padding: 6px 4px; letter-spacing: 0; }
	.stopi-burger { width: 38px; height: 38px; }
	.stopi-hero { padding: 28px 22px; margin-top: 18px; border-radius: 22px; min-height: 0; gap: 24px; }
	.stopi-hero__media { height: 240px; min-height: 0; }
	.stopi-slider { margin-top: 18px; }
	.stopi-slider__track { border-radius: 22px; }
	.stopi-slider .stopi-slide { margin-top: 0; border-radius: 0; padding-bottom: 44px; }
	.stopi-about { padding: 24px 22px; border-radius: 22px; }
	.stopi-about__cards { width: 100%; }
	.stopi-section { margin-top: 34px; }
	.stopi-section__title { font-size: 22px; }
	.stopi-grid,
	.stopi-grid--wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.stopi-card { padding: 9px; border-radius: 16px; gap: 6px; }
	.stopi-card__media { padding: 6px; }
	.stopi-card__title { font-size: 13px; }
	.stopi-card__price { font-size: 15px; }
	.stopi-card__foot { gap: 6px; padding-top: 8px; }
	.stopi-card__add { font-size: 12px; padding: 8px 13px; }
	.stopi-cats > .stopi-cat { flex-basis: 132px; width: 132px; }
	.stopi-carousel__track { gap: 10px; }
	.stopi-shop__title,
	.stopi-cartpage__title { font-size: 24px; }
	.stopi-product__title { font-size: 23px; }
	.stopi-prose { padding: 22px 20px; }
	.stopi-panel { padding: 20px; }
	.stopi-line__total { width: 100%; text-align: right; }
}

/* --------------------------------------------------- nalog / popusti ----- */

/* Account button - deliberately lighter than the cart so the cart stays the
   loudest thing in the header row. */
.stopi-acc {
	flex: none;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--r-pill);
	/* Fixed height so the pill lines up with the cart button, whose padding
	   has no border to account for. */
	height: 40px;
	padding: 0 16px;
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	border: 1.5px solid var(--line);
	background: transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	max-width: 190px;
}
.stopi-acc:hover {
	background: var(--sand-2);
	border-color: var(--sand-3);
	color: var(--ink);
}
.stopi-acc__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stopi-acc.is-in {
	border-color: transparent;
	background: var(--sand-2);
}
.stopi-acc.is-in:hover { background: var(--sand-3); }

.stopi-drawer__acc { margin: 0 0 18px; }
.stopi-acc--drawer {
	justify-content: center;
	width: 100%;
	max-width: none;
	padding: 12px 16px;
	border-color: var(--ac);
	color: var(--ac-dark);
}
.stopi-acc--drawer:hover {
	background: var(--ac);
	border-color: var(--ac);
	color: #FFFFFF;
}

/* Why this price is lower, on the single product page. */
.stopi-popust-note {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: -4px 0 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
}
.stopi-popust-note__pct {
	background: var(--ac);
	color: #FFFFFF;
	border-radius: var(--r-pill);
	padding: 3px 11px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.01em;
}

/* "Moji popusti" table inside the account page. */
.stopi-popusti {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	overflow: hidden;
	background: var(--surface);
	margin: 18px 0 0;
}
.stopi-popusti th,
.stopi-popusti td {
	padding: 13px 16px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
	text-align: left;
	vertical-align: middle;
}
.stopi-popusti th { font-weight: 800; color: var(--ink-soft); }
.stopi-popusti tr:last-child td { border-bottom: none; }
.stopi-popusti__pct {
	font-weight: 800;
	color: var(--ac-dark);
	font-size: 16px;
	white-space: nowrap;
}
.stopi-popusti__until {
	display: block;
	color: var(--muted);
	font-size: 12.5px;
	font-weight: 600;
}

/* WooCommerce clears floats with ::before/::after on both of these. In a grid
   or flex container those pseudo-elements become real items and take up cells,
   which pushed the login box into the second column and registration onto a
   row of its own. */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce-account .u-columns.col2-set::before,
.woocommerce-account .u-columns.col2-set::after {
	content: none;
}

/* Login and register sit side by side on desktop instead of stacking. */
.woocommerce-account:not(.logged-in) .u-columns.col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: var(--gut);
	margin: 0;
	width: 100%;
}
.woocommerce-account:not(.logged-in) .u-columns.col2-set .u-column1,
.woocommerce-account:not(.logged-in) .u-columns.col2-set .u-column2 {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}
.woocommerce-account .u-columns h2 {
	font-size: 21px;
	margin: 0 0 14px;
}

@media (max-width: 860px) {
	/* The button moves into the drawer, same as the script switcher. */
	.stopi-header__right .stopi-acc--header { display: none; }
	.stopi-drawer__acc { display: block; }

	.woocommerce-account:not(.logged-in) .u-columns.col2-set { grid-template-columns: 1fr; }
	.stopi-popusti th:nth-child(2),
	.stopi-popusti td:nth-child(2) { max-width: 140px; }
}

/* Subcategories in the shop filter. The indent itself is inline, since it grows
   with the nesting level; this only softens the type so the levels read apart. */
.stopi-check--sub {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
}
.stopi-check--sub:hover { color: var(--ink-soft); }
.stopi-check--sub .stopi-check__box { transform: scale(0.9); }

/* Bestsellers as a carousel. The grid sizes cards by column; in a flex track
   they need an explicit width or they collapse to their content. */
.stopi-products-carousel > .stopi-card {
	flex: 0 0 272px;
	width: 272px;
}

@media (max-width: 860px) {
	.stopi-products-carousel > .stopi-card { flex-basis: 236px; width: 236px; }
}

@media (max-width: 560px) {
	.stopi-products-carousel > .stopi-card { flex-basis: 200px; width: 200px; }
}

/* Card icons in the payment method label. The gateway prints them inline, but
   the theme's image reset makes every image a block, so they stacked one per
   line. Lay the label out as a wrapping row instead. */
.woocommerce-checkout #payment ul.payment_methods li label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin: 0;
}
.woocommerce-checkout #payment ul.payment_methods li label img {
	display: inline-block;
	/* The plugin sets margin-left inline, which would double up on the gap. */
	margin: 0 !important;
	max-height: 20px;
	width: auto;
}
/* It also closes the row with a clearing span that would break the line. */
.woocommerce-checkout #payment ul.payment_methods li label > span[style*="clear"] {
	display: none !important;
}

@media (max-width: 560px) {
	/* Not enough width for the label text and five icons on one line. Push the
	   icons onto their own line as a group: the text is an anonymous flex item
	   that cannot be selected, so the line break is an ::after ordered between
	   the text and the images. */
	.woocommerce-checkout #payment ul.payment_methods li label:has(img)::after {
		content: "";
		flex-basis: 100%;
		height: 0;
		order: 0;
	}
	.woocommerce-checkout #payment ul.payment_methods li label img {
		order: 1;
		max-height: 19px;
	}
}

/* Product code under the title. Quiet, but there when someone needs to quote it. */
.stopi-product__sku {
	margin: -6px 0 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}
.stopi-product__sku .sku {
	font-weight: 800;
	color: var(--ink-soft);
}
