/*
 * OptiReview: skupni slogi (žetoni, pisava, glava, noga, gumbi).
 * Svet (po nordqr.com): bela osnova, serifni naslovi PT Serif, besedilo Poppins, cink za besedilo, noč za pasove,
 * en indigo poudarek za dejanja. Temne plošče (.panel) sijejo v barvah Googlovega logotipa na kartici; nebesno
 * modra #DDE9F6 ostane podlaga fotografij izdelkov. Stran izdelka ima svoje sloge v product.css.
 */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/pt-serif-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/pt-serif-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #131316;
	--ink-2: #1c1c21;
	--ink-line: #2c2c33;
	--text: #27272a;
	--muted: #5b5b66;
	--muted-on-sky: #4a5468;
	--muted-on-ink: #a1a1aa;
	--line: #e4e4e7;
	--bg: #ffffff;
	--sky: #dde9f6;
	--sky-soft: #eef4fb;
	--accent: #4a4ad8;
	--accent-hover: #3a3ac2;
	--accent-soft: #eeeefc;
	--accent-on-ink: #a8a8ff;
	--ok: #15803d;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "PT Serif", Georgia, "Times New Roman", serif;

	--radius-sm: 6px;
	--radius: 8px;
	--radius-lg: 14px;
	--radius-slab: 16px;

	/* Sij plošč: barve Googlovega logotipa na kartici. */
	--glow-blue: rgba(66, 133, 244, 0.5);
	--glow-green: rgba(52, 168, 83, 0.46);
	--glow-yellow: rgba(251, 188, 5, 0.42);
	--glow-red: rgba(234, 67, 53, 0.44);

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--band-y: clamp(56px, 8vw, 104px);
	--header-h: 72px;

	--shadow-up: 0 -1px 0 var(--line), 0 -12px 32px rgba(11, 12, 15, 0.08);
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	interpolate-size: allow-keywords;
	color-scheme: light;
	scrollbar-color: #c4c4cc transparent;
}

/* Osnova */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	caret-color: var(--accent);
	overflow-x: clip;
}

::selection {
	background: var(--accent);
	color: #fff;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1,
h2,
h3 {
	font-family: var(--serif);
	letter-spacing: -0.022em;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--accent);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--accent-hover);
}

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

.icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 8px 16px;
	clip: auto;
	clip-path: none;
	background: var(--bg);
}

/* Gumbi */

.btn,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font: 500 1rem/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.btn:hover,
.button:hover {
	background: #262932;
	color: #fff;
}

.btn:active,
.button:active {
	transform: translateY(1px);
}

.btn--accent {
	background: var(--accent);
}

.btn--accent:hover {
	background: var(--accent-hover);
}

.btn--light {
	background: #fff;
	color: var(--ink);
}

.btn--light:hover {
	background: var(--sky-soft);
	color: var(--ink);
}

.btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
}

.btn--outline {
	background: #fff;
	box-shadow: 0 0 0 1px rgba(19, 19, 22, 0.1), 0 1px 3px rgba(19, 19, 22, 0.08);
	color: var(--text);
}

.btn--outline:hover {
	background: #fafafa;
	box-shadow: 0 0 0 1px rgba(19, 19, 22, 0.18), 0 2px 6px rgba(19, 19, 22, 0.1);
	color: var(--text);
}

.btn--lg {
	min-height: 54px;
	padding: 0 30px;
	font-size: 1.0625rem;
}

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s;
}

.icon-btn:hover {
	background: var(--sky-soft);
	color: var(--ink);
}

/* Obvestilo nad poljem za količino, npr. ob poskusu zmanjšanja pod najmanjšo količino (main.js). Puščica kaže na −. */
.quantity {
	position: relative;
}

.qty-tip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	z-index: 5;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--ink);
	box-shadow: 0 8px 24px rgba(11, 12, 15, 0.18);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s, transform 0.2s var(--ease-out);
	pointer-events: none;
}

.qty-tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 16px;
	border: 6px solid transparent;
	border-top-color: var(--ink);
}

.qty-tip.is-visible {
	opacity: 1;
	transform: none;
}

/* Plošča: noč s sijem ene Googlove barve iz spodnjega levega vogala in indigo odsevom zgoraj desno. Kjer vogal
   prekrije vsebina (kartica izdelka), plošča premakne sij z --glow-at in --glow-fade. */

.panel {
	--glow: var(--glow-blue);
	--glow-at: 120% 90% at 0% 100%;
	--glow-fade: 58%;
	overflow: hidden;
	border-radius: var(--radius-slab);
	background:
		radial-gradient(var(--glow-at), var(--glow) 0%, transparent var(--glow-fade)),
		radial-gradient(90% 70% at 100% 0%, rgba(74, 74, 216, 0.4) 0%, transparent 62%),
		linear-gradient(165deg, #211f3a 0%, var(--ink) 58%);
	color: #fff;
}

.panel--green {
	--glow: var(--glow-green);
}

.panel--yellow {
	--glow: var(--glow-yellow);
}

.panel--red {
	--glow: var(--glow-red);
}

/* Glava */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.site-header__brand .custom-logo {
	width: auto;
	height: 34px;
}

.site-header__title {
	color: var(--ink);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.site-nav__list {
	display: flex;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding-block: 8px;
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease-out);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

.site-nav__list .sub-menu {
	display: none;
}

.site-header__actions {
	display: flex;
	justify-content: flex-end;
	gap: 4px;
}

.site-header__cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 15px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.site-header__cart-count.is-empty {
	display: none;
}

.site-header__menu-toggle {
	display: none;
}

.site-search {
	border-top: 1px solid var(--line);
	padding-block: 16px;
}

.woocommerce-product-search,
.search-form {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin-inline: auto;
}

.woocommerce-product-search .search-field,
.search-form .search-field {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	font: 400 1rem var(--font);
}

.woocommerce-product-search .search-field:focus,
.search-form .search-field:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.woocommerce-product-search button,
.search-form .search-submit {
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font: 600 0.9375rem var(--font);
	cursor: pointer;
}

@media (max-width: 900px) {
	:root {
		--header-h: 60px;
	}

	.site-header__inner {
		grid-template-columns: 1fr auto;
		gap: 8px;
	}

	.site-header__menu-toggle {
		display: inline-grid;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 8px var(--gutter) 20px;
		border-bottom: 1px solid var(--line);
		background: #fff;
		box-shadow: 0 16px 32px rgba(11, 12, 15, 0.08);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list li + li {
		border-top: 1px solid var(--line);
	}

	.site-nav__list a {
		padding-block: 14px;
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.site-nav__list a::after {
		display: none;
	}
}

@media (max-width: 420px) {
	.site-header__account {
		display: none;
	}

	.site-header__brand .custom-logo {
		height: 28px;
	}
}

/* Vsebina */

.site-main {
	padding-block: 32px var(--band-y);
}

.page-title,
.entry__title {
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
}

.entry__content {
	max-width: 72ch;
}

.entry--wide .entry__content {
	max-width: none;
}

.site-main--canvas {
	padding: 0;
}

.entry + .entry {
	margin-top: 32px;
}

.woocommerce-breadcrumb {
	padding-block: 16px;
	color: var(--muted);
	font-size: 0.8125rem;
}

.woocommerce-breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--ink);
}

.woocommerce-breadcrumb .sep {
	margin-inline: 8px;
	opacity: 0.5;
}

/* Noga */

.site-footer {
	border-top: 1px solid var(--ink-line);
	background: var(--ink);
	color: var(--muted-on-ink);
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--muted-on-ink);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: 72px 48px;
}

.site-footer__brand .custom-logo {
	width: auto;
	height: 28px;
	margin-bottom: 20px;
	filter: invert(1);
}

.site-footer__title {
	color: #fff;
	font-size: 1.375rem;
	font-weight: 700;
}

.site-footer__brand p {
	max-width: 36ch;
}

.site-footer__col h2 {
	margin-bottom: 16px;
	color: #fff;
	font-family: var(--font);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
}

.site-footer__col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__col li + li {
	margin-top: 10px;
}

.site-footer__legal {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	padding-block: 24px 32px;
	font-size: 0.8125rem;
}

.site-footer__legal::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	border-top: 1px solid var(--ink-line);
}

.site-footer__legal p {
	margin: 0;
}

@media (max-width: 900px) {
	.site-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-block: 56px 40px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

/* WooCommerce na straneh z njegovimi slogi (trgovina, košarica, blagajna, Moj račun): gumbi in mreža v barvah teme */

body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce #respond input#submit {
	padding: 0.85em 1.4em;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font-family: var(--font);
	font-weight: 600;
}

body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover {
	background: #262932;
	color: #fff;
}

body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .woocommerce #place_order,
body .woocommerce .wc-proceed-to-checkout a.checkout-button {
	background: var(--accent);
	color: #fff;
}

body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover,
body .woocommerce #place_order:hover,
body .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--accent-hover);
	color: #fff;
}

body .woocommerce button.button:disabled,
body .woocommerce button.button:disabled[disabled] {
	padding: 0.85em 1.4em;
	opacity: 0.45;
}

.site-main--shop ul.products li.product a {
	color: var(--ink);
	text-decoration: none;
}

.site-main--shop ul.products li.product img {
	border-radius: var(--radius-lg);
	background: var(--sky);
}

.site-main--shop ul.products li.product .woocommerce-loop-product__title {
	font-size: 1.0625rem;
	font-weight: 600;
}

.site-main--shop ul.products li.product .price {
	color: var(--ink);
	font-weight: 500;
}

/* Košarica v stranskem predalu (inc/cart-drawer.php, woocommerce/cart/mini-cart.php) */

html:has(.cart-drawer[open]) {
	overflow: hidden;
}

.cart-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(440px, 100vw - 40px);
	max-width: none;
	height: auto;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: var(--bg);
	color: var(--text);
	box-shadow: -24px 0 48px rgba(11, 12, 15, 0.14);
}

.cart-drawer[open] {
	animation: drawer-in 0.4s var(--ease-out);
}

.cart-drawer.is-closing {
	animation: drawer-out 0.25s ease-in forwards;
}

.cart-drawer::backdrop {
	background: rgba(11, 12, 15, 0.45);
	animation: backdrop-in 0.3s ease-out;
}

.cart-drawer.is-closing::backdrop {
	animation: backdrop-out 0.25s ease-in forwards;
}

@keyframes drawer-in {
	from {
		transform: translateX(100%);
	}
}

@keyframes drawer-out {
	to {
		transform: translateX(100%);
	}
}

@keyframes backdrop-in {
	from {
		opacity: 0;
	}
}

@keyframes backdrop-out {
	to {
		opacity: 0;
	}
}

.cart-drawer__panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.cart-drawer__head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px 10px 24px;
	border-bottom: 1px solid var(--line);
}

.cart-drawer__title {
	margin: 0;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
}

.cart-drawer__count {
	color: var(--muted);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.cart-drawer .widget_shopping_cart_content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

/* Izdelki in pod njimi izdelek do brezplačne dostave; drsita skupaj, noga ostane spodaj. */
.mini-cart__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mini-cart__list {
	margin: 0;
	padding: 4px 24px;
	list-style: none;
}

.mini-cart__item {
	position: relative;
	display: grid;
	/* Slika je visoka kot dve vrstici imena in izbirnik količine. */
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 16px;
	padding-block: 18px;
}

.mini-cart__item + .mini-cart__item {
	border-top: 1px solid var(--line);
}

.mini-cart__thumb {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--sky);
}

.mini-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-cart__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mini-cart__name {
	margin: 0;
	padding-right: 32px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.mini-cart__name a {
	color: var(--ink);
	text-decoration: none;
}

.mini-cart__name a:hover {
	color: var(--accent);
}

.mini-cart__body dl.variation {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.mini-cart__body dl.variation dt,
.mini-cart__body dl.variation dd,
.mini-cart__body dl.variation p {
	display: inline;
	margin: 0;
}

.mini-cart__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 8px;
}

.mini-cart__price {
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	transition: opacity 0.2s;
}

/* Kos iz ponudbe na blagajni (inc/upsells.php): prečrtana redna cena pred ceno s popustom. */
.mini-cart__price del {
	margin-right: 4px;
	color: var(--muted);
	font-weight: 400;
}

.mini-cart__price ins {
	text-decoration: none;
}

.mini-cart__item.is-pending .mini-cart__price {
	opacity: 0.35;
}

.mini-cart__qty {
	display: inline-flex;
	align-items: center;
	height: 40px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
}

.mini-cart__qty-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: none;
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.mini-cart__qty-btn:hover:not(:disabled) {
	background: var(--sky-soft);
}

.mini-cart__qty-btn:disabled {
	color: #b7c0cc;
	cursor: default;
}

.mini-cart__qty-input {
	width: 30px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: 600 0.9375rem var(--font);
	text-align: center;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mini-cart__qty-input::-webkit-outer-spin-button,
.mini-cart__qty-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.mini-cart__qty-fixed {
	color: var(--muted);
	font-size: 0.875rem;
}

.mini-cart__remove {
	position: absolute;
	top: 12px;
	right: -10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	color: var(--muted);
	transition: background-color 0.2s, color 0.2s;
}

.mini-cart__remove:hover {
	background: var(--sky-soft);
	color: var(--ink);
}

/* Izdelek do brezplačne dostave pod izdelki (optireview_cart_upsell v inc/cart-drawer.php) */
.cart-upsell,
.cart-upsell__note {
	margin: 4px 24px 24px;
	border: 1px solid #d3eedc;
	border-radius: var(--radius-lg);
	background: #effaf3;
}

.cart-upsell {
	padding: 16px;
}

.cart-upsell__title,
.cart-upsell__note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.cart-upsell__title {
	margin: 0 0 14px;
}

.cart-upsell__note {
	padding: 14px 16px;
}

.cart-upsell__title .icon,
.cart-upsell__note .icon {
	flex: none;
	color: var(--ok);
}

.cart-upsell__note--done {
	align-items: center;
	color: #14532d;
}

/* Na telefonu ostane "Naročilo vključuje brezplačno dostavo!" v eni vrstici (od 360 px). */
@media (max-width: 420px) {
	.cart-upsell__note--done {
		margin-inline: 16px;
		padding-inline: 14px;
		font-size: 0.8125rem;
	}
}

.cart-upsell__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 14px;
}

.cart-upsell .mini-cart__thumb {
	background: #fff;
}

.cart-upsell__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.cart-upsell__name {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
}

.cart-upsell__name a {
	color: var(--ink);
	text-decoration: none;
}

.cart-upsell__name a:hover {
	color: var(--accent);
}

.cart-upsell__variant {
	margin: 0;
	color: var(--muted);
	font-size: 0.8125rem;
}

.cart-upsell__choice {
	max-width: 100%;
	height: 34px;
	padding: 0 32px 0 10px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a6072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
	color: var(--ink);
	font: 500 0.8125rem var(--font);
	appearance: none;
	cursor: pointer;
}

.cart-upsell__choice:hover {
	border-color: #c4cad4;
}

.cart-upsell__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	align-self: stretch;
	margin-top: 4px;
}

.cart-upsell__price {
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.cart-upsell__add {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--accent);
	border-radius: var(--radius-sm);
	background: #fff;
	color: var(--accent);
	font: 600 0.875rem/1 var(--font);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.cart-upsell__add:hover {
	background: var(--accent);
	color: #fff;
}

.cart-upsell__add.is-loading {
	color: transparent;
	pointer-events: none;
}

.cart-upsell__add.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 18px;
	height: 18px;
	margin: auto;
	border: 2px solid var(--accent-soft);
	border-top-color: var(--accent);
	border-radius: 999px;
	animation: spin 0.7s linear infinite;
}

.cart-upsell .woocommerce-error {
	margin: 12px 0 0;
	font-size: 0.8125rem;
}

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

.mini-cart__foot {
	flex: none;
	padding: 18px 24px max(20px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--line);
}

.mini-cart__foot .total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 14px;
	font-size: 1.0625rem;
}

.mini-cart__foot .total strong {
	font-weight: 500;
}

.mini-cart__foot .total .amount {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mini-cart__saved {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: -8px 0 14px;
	color: var(--ok);
	font-size: 0.875rem;
	font-weight: 500;
}

/* Izdelek pod najmanjšo količino (inc/cart-drawer.php): blagajna ga ne sprejme. */
.mini-cart__error {
	margin: -4px 0 14px;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	background: #fdf2f1;
	color: #b42318;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
}

.mini-cart__foot .buttons {
	margin: 0;
}

/* Na straneh trgovine ima body razred .woocommerce, zato bi gumb sicer prevzel WooCommerceov slog za a.button. */
.cart-drawer .mini-cart__checkout.button {
	display: flex;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font: 600 1.0625rem/1.2 var(--font);
}

.cart-drawer .mini-cart__checkout.button:hover {
	background: var(--accent-hover);
	color: #fff;
}

.mini-cart__pay {
	margin: 14px 0 0;
}

.mini-cart__pay img {
	width: 100%;
	max-width: 280px;
	margin-inline: auto;
	opacity: 0.75;
}

.mini-cart__empty {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 32px 24px;
	text-align: center;
}

.mini-cart__empty .icon {
	color: #b7c3d3;
}

.mini-cart__empty p {
	margin: 0 0 8px;
	font-weight: 500;
}

/* Obvestila WooCommerce na straneh, kjer tema nariše vse sama */

.woocommerce-notices-wrapper:empty {
	display: none;
}

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