/**
 * MOJA APOTEKA – frontend stilovi komponenti plugina.
 * Boje, font i oblici dolaze iz CSS varijabli (--ma-*) koje generiše Design::css_variables().
 * Ne upisivati hex boje direktno; koristiti varijable.
 */

/* Top bar */
.ma-topbar {
	background: #EF7D00; /* Top bar ima svoju, svjetliju narandžastu (ne mijenja dugmad). */
	color: var(--ma-color-white);
	font-family: var(--ma-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	padding: 9px 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	text-align: center;
}
.ma-topbar__link {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.ma-topbar__link:hover,
.ma-topbar__link:focus-visible { color: inherit; text-decoration: underline; }
.ma-topbar__icon { flex: none; }
@media (max-width: 767px) {
	.ma-topbar { font-size: 12.5px; padding: 7px 14px; }
	.ma-topbar__icon { display: none; }
}

/* Napomena vidljiva samo u Elementor editoru */
.ma-editor-note {
	font-family: var(--ma-font);
	font-size: 13px;
	padding: 10px 14px;
	border: 1px dashed var(--ma-color-border-strong);
	border-radius: var(--ma-radius-sm);
	color: var(--ma-color-muted);
	background: var(--ma-color-beige-light);
}

/* ------------------------------------------------------------------
 * Pilule (oznake): bubble popusta i NOVO
 * ------------------------------------------------------------------ */
.ma-pill {
	display: inline-flex;
	align-items: center;
	font-family: var(--ma-font);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	padding: 4px 9px;
	border-radius: var(--ma-radius-pill);
	white-space: nowrap;
	color: var(--ma-color-white);
}
.ma-pill--sale { background: var(--ma-color-orange); }
.ma-pill--new { background: #241C17; font-size: 10.5px; letter-spacing: 1px; padding: 3px 8px; }

/* ------------------------------------------------------------------
 * Kartica proizvoda (templates/product-card.php)
 * ------------------------------------------------------------------ */
.ma-card {
	position: relative; /* Skriveni tekst za čitače (screen-reader-text) ostaje unutar kartice; inače izlazi iz vrtuljka i pravi horizontalni scroll. */
	font-family: var(--ma-font);
	color: var(--ma-color-text);
	background: var(--ma-color-white);
	border-radius: var(--ma-radius-md);
	box-shadow: var(--ma-shadow);
	padding: 10px 10px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	min-width: 0;
}
.ma-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	background: #FFFFFF; /* 0.41.0: proizvodi na bijeloj pozadini */
	box-shadow: inset 0 0 0 1px var(--ma-color-border, #EFE6DD);
	overflow: hidden;
}
.ma-card__image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ma-card__image img,
.ma-card__img {
	width: 78% !important;
	height: 78% !important;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform .3s ease;
}
.ma-card:hover .ma-card__img { transform: scale(1.04); }
.ma-card .ma-card__wish {
	position: absolute;
	z-index: 2;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--ma-radius-pill);
	background: var(--ma-color-white);
	color: var(--ma-color-muted);
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.ma-card .ma-card__wish:hover, .ma-card .ma-card__wish:focus { background: var(--ma-color-white); color: var(--ma-color-orange-hover); }
.ma-card .ma-card__wish[aria-pressed="true"] { color: var(--ma-color-orange-hover); }
.ma-card__wish[aria-pressed="true"] svg { fill: currentColor; }
.ma-card__body {
	flex: 1;
	padding: 0 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ma-card__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 18px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--ma-color-subtle);
}
.ma-card__title {
	margin: 0;
	font-family: var(--ma-font);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	min-height: 2.6em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ma-card__title a { color: var(--ma-color-text); text-decoration: none; }
.ma-card__title a:hover { color: var(--ma-color-orange-hover); }
.ma-card .ma-card__vars { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.ma-card button.ma-card__dot { width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0; border-radius: 999px; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px #D9CCBF; cursor: pointer; flex: none; position: relative; }
.ma-card button.ma-card__dot::before { content: ""; position: absolute; inset: -12px -4px; } /* Veća površina za dodir. */
.ma-card button.ma-card__dot[aria-pressed="true"] { box-shadow: 0 0 0 1px #241C17; }
.ma-card button.ma-card__dot:hover { box-shadow: 0 0 0 1px #241C17; }
.ma-card .ma-card__more, .ma-card .ma-card__range { font-size: 12.5px; color: var(--ma-color-subtle); }
.ma-card .ma-card__range { margin-left: 2px; }
.ma-card__rating { font-size: 13px; color: var(--ma-color-subtle); display: flex; align-items: center; gap: 4px; }
.ma-card__star { color: #E08A00; }
.ma-card__foot {
	margin-top: auto;
	padding-top: 4px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
}
.ma-card__prices { display: flex; flex-direction: column; min-width: 0; }
.ma-card__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ma-card__pts { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 600; color: #8A3B04; }
.ma-card__pts-m { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 999px; background: #FBE3CB; color: #B04A06; font-size: 9px; font-weight: 800; line-height: 1; padding: 0; margin: 0; text-align: center; letter-spacing: 0; box-sizing: border-box; }
.ma-card__price { font-size: 18px; font-weight: 700; color: var(--ma-color-heading); white-space: nowrap; }
.ma-card__from { font-size: 13px; font-weight: 400; color: var(--ma-color-subtle); }
.ma-card__old { font-size: 13px; color: var(--ma-color-subtle); text-decoration: line-through; }
.ma-card__cart {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--ma-color-orange);
	color: var(--ma-color-white) !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .2s;
	position: relative;
}
.ma-card__cart:hover,
.ma-card__cart:focus-visible { background: var(--ma-color-orange-hover); }
.ma-card__cart.loading { opacity: .6; pointer-events: none; }
.ma-card__cart .ma-i-check { display: none; }
.ma-card__cart.added { background: var(--ma-color-green); }
.ma-card__cart.added .ma-i-cart { display: none; }
.ma-card__cart.added .ma-i-check { display: block; }
.ma-card__cart.is-disabled { background: var(--ma-color-beige); color: var(--ma-color-subtle) !important; cursor: not-allowed; }
.ma-card__cart::after { display: none !important; } /* WooCommerce ikona učitavanja */
.ma-card .added_to_cart { display: none !important; } /* WooCommerce link "Pogledaj korpu" */

/* Uska kartica (npr. 2 kolone na mobitelu): cijena i dugme korpe se ne preklapaju. */
.ma-card { container-type: inline-size; }
@container (max-width: 200px) {
	.ma-card__foot { gap: 6px; }
	.ma-card__price { font-size: 16px; }
	.ma-card__old { font-size: 12px; }
	.ma-card .ma-card__cart { width: 38px; height: 38px; border-radius: 9px; }
	.ma-card .ma-card__cart svg { width: 18px; height: 18px; }
}
/* Vrlo uska kartica (npr. 2 proizvoda u tekstu savjeta na mobitelu): cijena iznad, dugme korpe ispod desno. */
@container (max-width: 170px) {
	.ma-card__foot { flex-wrap: wrap; }
	.ma-card__prices { flex: 1 1 100%; }
	.ma-card .ma-card__cart { margin-left: auto; }
	.ma-card .ma-card__wish { width: 36px; height: 36px; top: 8px; right: 8px; }
	.ma-card .ma-card__wish svg { width: 18px; height: 18px; }
}
.ma-card.is-out .ma-card__img { opacity: .55; }

/* ------------------------------------------------------------------
 * Mreža i vrtuljak proizvoda
 * Broj kolona: --ma-cols (Elementor kontrola "Kolone"); podrazumijevano 5 / 4 (do 1280 px) / 3 / 2.
 * Najviše 5 u redu na cijelom sajtu (odluka 07.10.: šire kartice).
 * ------------------------------------------------------------------ */
.ma-products { --ma-cols: 5; --ma-gap: 16px; position: relative; }
@media (max-width: 1280px) { .ma-products { --ma-cols: 4; } }
@media (max-width: 1024px) { .ma-products { --ma-cols: 3; } }
@media (max-width: 767px) { .ma-products { --ma-cols: 2; --ma-gap: 10px; } }

.ma-products--grid {
	display: grid;
	grid-template-columns: repeat(var(--ma-cols), minmax(0, 1fr));
	gap: var(--ma-gap);
}
.ma-products__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--ma-cols) - 1) * var(--ma-gap)) / var(--ma-cols));
	gap: var(--ma-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 2px 14px;
	margin: -4px -2px -14px;
	scroll-padding-inline: 2px;
}
.ma-products__track::-webkit-scrollbar { display: none; }
.ma-products__track > .ma-card { scroll-snap-align: start; }
.ma-products__track:focus-visible { outline: 2px solid var(--ma-color-orange); outline-offset: 4px; }
div.ma-products .ma-products__arrow {
	position: absolute;
	z-index: 3;
	top: 28%;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: var(--ma-radius-pill);
	background: var(--ma-color-white);
	color: var(--ma-color-text);
	box-shadow: 0 6px 18px rgba(0,0,0,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: opacity .2s;
}
div.ma-products .ma-products__arrow--prev { left: -22px; }
div.ma-products .ma-products__arrow--next { right: -22px; }
div.ma-products .ma-products__arrow:hover, div.ma-products .ma-products__arrow:focus { background: var(--ma-color-white); color: var(--ma-color-orange-hover); }
div.ma-products .ma-products__arrow:disabled { opacity: 0; pointer-events: none; }
div.ma-products.is-static .ma-products__arrow { display: none; }
@media (max-width: 767px) {
	/* Mreža u 2 kolone: samo puni redovi – neparan zadnji proizvod se sakrije (5 → 2×2, 3 → 2). Jedan proizvod ostaje. */
	.ma-products--even-m > .ma-card:last-child:nth-child(odd):not(:first-child) { display: none; }
	/* Vrtuljak na mobitelu: jedna cijela kartica, sljedeća „viri” (znak da se lista prstom). */
	.ma-products__track { grid-auto-columns: 78%; }
	div.ma-products .ma-products__arrow { display: none; }
}
.ma-products__empty { font-family: var(--ma-font); color: var(--ma-color-subtle); }


/* ==================================================================
 * Zaštita od globalnih stilova dugmadi
 *
 * Elementor Theme Style (".elementor-kit-N button", specifičnost 0,1,1; hover 0,2,1)
 * i Hello Elementor ("[type=button]", "button:hover") stilizuju SVA dugmad na stranici.
 * Ovaj reset (0,1,2 / hover i focus 0,2,2) ih neutrališe unutar komponenti plugina.
 * Dugme sa vlastitom pozadinom mora imati i :hover pravilo (npr. ".ma-header .ma-drawer__btn:hover").
 * PRAVILO: svako pravilo za dugme u komponenti mora imati najmanje dvije klase
 * (npr. ".ma-header .ma-nav__link"), da bi bilo jače od reseta.
 * ================================================================== */
.ma-header div button, .ma-footer div button, .ma-card div button, div.ma-products button, .ma-slider div button, .ma-pop div button, .ma-archive div button, .ma-pp div button, .ma-cartpage div button, .ma-co div button {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	width: auto;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-transform: none;
	text-decoration: none;
	text-align: inherit;
	white-space: normal;
	transition: none;
	user-select: auto;
	cursor: pointer;
}
/* Hover/focus: samo ono što tema i Elementor mijenjaju na hover (pozadina, boja). */
.ma-header div button:hover, .ma-footer div button:hover, .ma-card div button:hover, div.ma-products button:hover, .ma-slider div button:hover, .ma-pop div button:hover, .ma-archive div button:hover, .ma-pp div button:hover, .ma-cartpage div button:hover, .ma-co div button:hover,
.ma-header div button:focus, .ma-footer div button:focus, .ma-card div button:focus, div.ma-products button:focus, .ma-slider div button:focus, .ma-pop div button:focus, .ma-archive div button:focus, .ma-pp div button:focus, .ma-cartpage div button:focus, .ma-co div button:focus {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
.ma-header div button:focus-visible, .ma-footer div button:focus-visible, .ma-card div button:focus-visible, div.ma-products button:focus-visible, .ma-slider div button:focus-visible, .ma-pop div button:focus-visible, .ma-archive div button:focus-visible, .ma-pp div button:focus-visible, .ma-cartpage div button:focus-visible, .ma-co div button:focus-visible {
	outline: 2px solid var(--ma-color-orange);
	outline-offset: 2px;
}

/* ==================================================================
 * Zajedničko
 * ================================================================== */
.ma-wrap { max-width: var(--ma-container); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ma-icon { flex: none; display: block; }
.ma-header .screen-reader-text, .ma-card .screen-reader-text, .ma-slider .screen-reader-text, .ma-footer .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ma-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
html.ma-lock, html.ma-lock body { overflow: hidden; }
.ma-logo { font-family: var(--ma-font); font-size: 30px; letter-spacing: -0.5px; line-height: 1; color: var(--ma-color-orange) !important; text-decoration: none; white-space: nowrap; font-weight: 400; }
.ma-logo b { font-weight: 700; }
.ma-logo--image { display: inline-flex; align-items: center; line-height: 0; }
.ma-logo__img { display: block; height: var(--ma-logo-h, 40px) !important; width: auto !important; max-width: 260px; object-fit: contain; }
@media (max-width: 1024px) { .ma-header .ma-logo__img { height: var(--ma-logo-h-m, 30px) !important; max-width: 180px; } }

/* ==================================================================
 * Header (includes/class-header.php)
 * Desktop ≥ 1025px, mobitel/tablet ≤ 1024px.
 * ================================================================== */
.ma-header { position: relative; z-index: 100; font-family: var(--ma-font); color: var(--ma-color-text); background: var(--ma-color-white); }
.ma-header a { text-decoration: none; }
.ma-header button { font-family: inherit; }

/* Gornja traka */
.ma-util { background: var(--ma-color-bg); border-bottom: 1px solid var(--ma-color-border); }
.ma-util__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; min-height: 38px; font-size: 13px; }
.ma-util__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ma-util__link, .ma-util__phone { color: var(--ma-color-muted) !important; padding: 8px 0; display: inline-block; }
.ma-util__link:hover { color: var(--ma-color-orange-hover) !important; }
.ma-util__phone b { color: var(--ma-color-heading); }

/* Glavni red */
.ma-header__row { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.ma-header .ma-header__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ma-color-heading); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.ma-search { flex: 1 1 320px; max-width: 640px; display: flex; align-items: center; gap: 8px; background: var(--ma-color-beige-light); border-radius: var(--ma-radius-pill); padding: 0 6px 0 22px; height: 48px; box-sizing: border-box; margin: 0; }
.ma-search { transition: background .2s, box-shadow .2s; }
.ma-search:focus-within { background: var(--ma-color-white); box-shadow: 0 0 0 1.5px var(--ma-color-border-strong), 0 6px 18px rgba(40,20,5,.08); }
.ma-header .ma-search__input:focus, .ma-header .ma-search__input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
.ma-search__input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font-family: inherit; font-size: 15px; color: var(--ma-color-text); padding: 0 !important; height: auto !important; }
.ma-header .ma-search__btn { width: 40px; height: 40px; border: 0; border-radius: var(--ma-radius-pill); background: transparent; color: var(--ma-color-text); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ma-header .ma-search__btn:hover { background: var(--ma-color-white); color: var(--ma-color-text); }
/* Pretraga: živi prijedlozi (gradi ih header.js) */
.ma-search { position: relative; }
.ma-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0 4px 0 8px; border-radius: 999px; cursor: pointer; background: #E2D6CB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='%232B2420' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.ma-header .ma-sg { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 70; background: #FFFFFF; border: 1px solid var(--ma-color-border); border-radius: 22px; box-shadow: 0 18px 40px rgba(40,20,5,.14); padding: 0; overflow: hidden; text-align: left; }
.ma-header .ma-sg__scroll { padding: 8px 2px 8px 8px; max-height: min(72vh, 600px); overflow-y: auto; }
.ma-header .ma-sg[hidden] { display: none; }
.ma-header .ma-sg__scroll { overscroll-behavior: contain; }
@supports not selector(::-webkit-scrollbar) { .ma-header .ma-sg__scroll { scrollbar-width: thin; scrollbar-color: #D9CCBF transparent; } }
.ma-header .ma-sg__scroll::-webkit-scrollbar { width: 14px; }
.ma-header .ma-sg__scroll::-webkit-scrollbar-track { background: transparent; margin: 8px 0; border-radius: 999px; }
.ma-header .ma-sg__scroll::-webkit-scrollbar-thumb { background: #D9CCBF; border-radius: 999px; border: 4px solid #FFFFFF; background-clip: padding-box; }
.ma-header .ma-sg__scroll::-webkit-scrollbar-thumb:hover { background: #B9A998; background-clip: padding-box; }
.ma-header > .ma-header__main:focus-within { z-index: 30; } /* prijedlozi pretrage iznad navigacije (0.39.1) */
.ma-header .ma-sg__h { padding: 10px 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ma-color-subtle); }
.ma-header .ma-sg a { text-decoration: none; color: var(--ma-color-text); }
.ma-header .ma-sg a.ma-sg__item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; }
.ma-header .ma-sg a.is-active, .ma-header .ma-sg a.ma-sg__item:hover { background: var(--ma-color-beige-light); }
.ma-header .ma-sg__img { width: 52px; height: 52px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--ma-color-border, #EFE6DD); box-sizing: border-box; overflow: hidden; display: block; }
.ma-header .ma-sg__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; margin: 0; }
.ma-header .ma-sg__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-header .ma-sg__t b { font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ma-color-heading); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-header .ma-sg__t small { font-size: 11.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ma-color-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-header .ma-sg__price { font-size: 14.5px; font-weight: 700; color: var(--ma-color-heading); white-space: nowrap; }
.ma-header .ma-sg__price.is-out { font-size: 12.5px; font-weight: 600; color: var(--ma-color-subtle); }
.ma-header .ma-sg__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 8px; }
.ma-header .ma-sg a.ma-sg__chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--ma-color-beige-light); font-size: 14px; font-weight: 600; color: var(--ma-color-heading); }
.ma-header .ma-sg a.ma-sg__chip small { font-size: 12px; font-weight: 500; color: var(--ma-color-subtle); }
.ma-header .ma-sg a.ma-sg__chip:hover, .ma-header .ma-sg a.ma-sg__chip.is-active { background: var(--ma-color-peach); }
.ma-header .ma-sg a.ma-sg__tip { display: block; padding: 9px 10px; border-radius: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.ma-header .ma-sg a.ma-sg__tip:hover { background: var(--ma-color-beige-light); }
.ma-header .ma-sg a.ma-sg__all { display: block; margin-top: 6px; padding: 13px 10px 10px; border-top: 1px solid var(--ma-color-border); text-align: center; font-size: 14px; font-weight: 700; color: var(--ma-color-heading); border-radius: 0 0 14px 14px; }
.ma-header .ma-sg a.ma-sg__all:hover, .ma-header .ma-sg a.ma-sg__all.is-active { color: var(--ma-color-orange-dark); background: transparent; }
.ma-header .ma-sg__empty { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px 10px; text-align: center; }
.ma-header .ma-sg__empty b { font-size: 15px; color: var(--ma-color-heading); }
.ma-header .ma-sg__empty span { font-size: 13.5px; color: var(--ma-color-subtle); }
.ma-header .ma-sg__loading { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.ma-header .ma-sg__loading span { height: 52px; border-radius: 12px; background: linear-gradient(90deg, #F5F0EB 0%, #FBF7F3 50%, #F5F0EB 100%); background-size: 200% 100%; animation: ma-sg-pulse 1.2s linear infinite; }
@keyframes ma-sg-pulse { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ma-header .ma-sg__loading span { animation: none; } }
@media (max-width: 767px) { .ma-header .ma-sg { top: calc(100% + 8px); border-radius: 18px; } .ma-header .ma-sg__scroll { max-height: 68vh; } .ma-header .ma-sg a.ma-sg__item { grid-template-columns: 46px 1fr auto; } .ma-header .ma-sg__img { width: 46px; height: 46px; } }
.ma-icons { margin-left: auto; display: flex; gap: 8px; }
.ma-icons__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; padding: 4px; font-size: 13px; font-weight: 500; color: var(--ma-color-text) !important; }
.ma-icons__item:hover { color: var(--ma-color-orange-hover) !important; }
.ma-cart-count { position: absolute; top: -2px; right: 8px; min-width: 19px; height: 19px; padding: 0 4px; box-sizing: border-box; border-radius: var(--ma-radius-pill); background: var(--ma-color-orange); color: var(--ma-color-white); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ma-cart-count.is-empty { display: none; }

/* Glavni meni */
.ma-nav { position: relative; border-top: 1px solid var(--ma-color-border); border-bottom: 1px solid var(--ma-color-border); background: var(--ma-color-white); }
.ma-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.ma-nav__item.is-first-highlight { margin-left: auto; }
.ma-header .ma-nav__link { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ma-color-text) !important; cursor: pointer; box-sizing: border-box; }
.ma-header .ma-nav__link:hover, .ma-header .ma-nav__link.is-current { color: var(--ma-color-orange-hover) !important; background: transparent; }
.ma-header .ma-nav__link[aria-expanded="true"] { border-bottom-color: var(--ma-color-orange); color: var(--ma-color-heading) !important; }
.ma-nav__link[aria-expanded="true"] .ma-icon--chevron { transform: rotate(180deg); }
.ma-nav__link .ma-icon--chevron { transition: transform .2s; stroke-width: 2.4; }
.ma-header .ma-nav__item.is-highlight .ma-nav__link { color: #C2560A !important; }

/* Mega meni */
.ma-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--ma-color-white); border-top: 1px solid var(--ma-color-border); box-shadow: 0 24px 40px rgba(40,20,5,.15); }
.ma-mega__in { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.ma-mega__cols { flex: 3 1 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 24px 20px; } /* 0.41.0: do 5 kolona (Kozmetika, Zdravlje) */
.ma-mega__col ul { list-style: none; margin: 0; padding: 0; }
.ma-mega__title { display: block; font-size: 15px; font-weight: 700; color: var(--ma-color-heading) !important; padding: 4px 0 8px; }
.ma-mega__link { display: block; font-size: 14.5px; color: var(--ma-color-muted) !important; padding: 6px 0; }
.ma-mega__title:hover, .ma-mega__link:hover { color: var(--ma-color-orange-hover) !important; }
.ma-mega__foot { background: var(--ma-color-bg); border-top: 1px solid var(--ma-color-border); }
.ma-mega__foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; color: var(--ma-color-muted); }
.ma-mega__all { font-weight: 700; color: var(--ma-color-heading) !important; }

/* Istaknuta kartica (desktop i mobitel) */
.ma-feat, .ma-dfeat { display: flex; border-radius: 20px; overflow: hidden; color: var(--ma-color-heading) !important; }
.ma-feat { flex: 1 1 260px; max-width: 320px; flex-direction: column; }
.ma-feat.is-peach, .ma-dfeat.is-peach { background: var(--ma-color-peach); }
.ma-feat.is-beige, .ma-dfeat.is-beige { background: var(--ma-color-beige); }
.ma-feat.is-green-light, .ma-dfeat.is-green-light { background: var(--ma-color-green-light); }
.ma-feat__media { height: 160px; overflow: hidden; display: block; }
.ma-feat__img, .ma-dfeat__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ma-feat__body, .ma-dfeat__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.ma-feat__tag, .ma-dfeat__tag { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--ma-color-orange-dark); text-transform: uppercase; }
.ma-feat__title, .ma-dfeat__title { font-size: 17px; line-height: 1.25; }
.ma-feat__cta, .ma-dfeat__cta { font-size: 14px; font-weight: 600; margin-top: 4px; }

.ma-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(20,14,10,.25); }
.ma-header > .ma-topbar, .ma-util, .ma-header__main, .ma-nav { position: relative; z-index: 11; } /* iznad zatamnjenja, mega meni ostaje vidljiv */
.ma-header__main { background: var(--ma-color-white); }
.ma-nav .ma-mega { z-index: 20; }

/* Ladica (mobilni meni) */
.ma-drawer { position: fixed; inset: 0 auto 0 0; z-index: 1000; width: min(420px, 100%); background: var(--ma-color-bg); display: flex; flex-direction: column; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
.ma-drawer[hidden] { display: none; }
.ma-drawer__head { background: var(--ma-color-white); padding: 10px 12px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--ma-color-border); min-height: 64px; box-sizing: border-box; }
.ma-drawer__title { flex: 1; font-size: 19px; padding-left: 6px; color: var(--ma-color-heading); }
.ma-header .ma-drawer__btn { width: 44px; height: 44px; border: 0; border-radius: var(--ma-radius-pill); background: var(--ma-color-beige-light); color: var(--ma-color-heading); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ma-header .ma-drawer__btn:hover, .ma-header .ma-drawer__btn:focus { background: var(--ma-color-beige); color: var(--ma-color-heading); }
.ma-header .ma-drawer__btn[hidden] { display: none; }
.ma-drawer__body { flex: 1; overflow-y: auto; padding: 14px 12px 24px; }
.ma-drawer__view { display: flex; flex-direction: column; gap: 14px; }
.ma-drawer__view[hidden] { display: none; }
.ma-drawer__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-drawer__tile { border-radius: 18px; padding: 16px; min-height: 92px; box-sizing: border-box; display: flex; align-items: flex-end; color: var(--ma-color-white) !important; font-size: 20px; }
.ma-drawer__tile.is-orange { background: var(--ma-color-orange); }
.ma-drawer__tile.is-green { background: #241C17; }
.ma-drawer__list, .ma-drawer__utils { list-style: none; margin: 0; padding: 0; background: var(--ma-color-white); border-radius: 18px; overflow: hidden; }
.ma-header .ma-drawer__row { width: 100%; border: 0; border-bottom: 1px solid var(--ma-color-border); background: transparent; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; text-align: left; color: var(--ma-color-heading) !important; cursor: pointer; box-sizing: border-box; font: inherit; }
.ma-header .ma-drawer__list li:last-child .ma-drawer__row { border-bottom: 0; }
.ma-header .ma-drawer__row:hover { background: var(--ma-color-bg); }
.ma-drawer__row .ma-icon--next { color: var(--ma-color-subtle); }
.ma-drawer__thumb { flex: none; width: 44px; height: 44px; border-radius: var(--ma-radius-pill); object-fit: cover; }
.ma-drawer__thumb--empty { background: var(--ma-color-peach); color: var(--ma-color-orange-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ma-drawer__label { flex: 1; display: flex; flex-direction: column; gap: 1px; font-size: 16px; }
.ma-drawer__label span { font-size: 12.5px; color: var(--ma-color-subtle); }
.ma-drawer__utils { padding: 4px 14px; }
.ma-drawer__util { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ma-color-border); font-size: 15px; color: var(--ma-color-text) !important; }
.ma-drawer__utils li:last-child .ma-drawer__util { border-bottom: 0; }
.ma-drawer__phone { text-align: center; font-size: 14px; color: var(--ma-color-muted) !important; padding: 6px; }
.ma-drawer__phone b { color: var(--ma-color-heading); }
.ma-drawer__all { display: flex; justify-content: space-between; align-items: center; background: var(--ma-color-white); border-radius: 16px; padding: 14px 16px; font-size: 15.5px; font-weight: 700; min-height: 52px; box-sizing: border-box; color: var(--ma-color-heading) !important; }
.ma-acc { background: var(--ma-color-white); border-radius: 16px; overflow: hidden; }
.ma-header .ma-acc__head { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; min-height: 52px; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ma-color-heading) !important; text-align: left; cursor: pointer; box-sizing: border-box; }
.ma-acc__icon { width: 28px; height: 28px; border-radius: var(--ma-radius-pill); background: var(--ma-color-beige); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .2s; }
.ma-header .ma-acc__head[aria-expanded="true"] .ma-acc__icon { background: var(--ma-color-orange); color: var(--ma-color-white); transform: rotate(45deg); }
.ma-acc__list { list-style: none; margin: 0; padding: 0 16px 8px; }
.ma-acc__list[hidden] { display: none; }
.ma-acc__link { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--ma-color-border); font-size: 15px; color: var(--ma-color-text) !important; }
.ma-dfeat { align-items: center; gap: 12px; padding: 12px; }
.ma-dfeat .ma-dfeat__media { flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; display: block; background: var(--ma-color-white); }
.ma-dfeat__body { padding: 0; }

/* Donja navigacija (mobitel) */
.ma-bottom { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--ma-color-white); border-top: 1px solid var(--ma-color-border); grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.ma-header .ma-bottom__item { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-family: inherit; font-size: 11px; font-weight: 600; color: var(--ma-color-muted) !important; cursor: pointer; padding: 0; }
.ma-header .ma-bottom__item.is-active, .ma-header .ma-bottom__item[aria-expanded="true"], .ma-header .ma-bottom__item:hover, .ma-header .ma-bottom__item:focus, .ma-header .ma-bottom__item:active { background: var(--ma-color-white); color: var(--ma-color-orange) !important; }
.ma-header .ma-bottom__item:hover svg, .ma-header .ma-bottom__item:focus svg, .ma-header .ma-bottom__item:active svg, .ma-header .ma-bottom__item[aria-expanded="true"] svg { color: var(--ma-color-orange); }
.ma-bottom__icon { position: relative; display: flex; }
.ma-bottom__icon .ma-cart-count { top: -6px; right: -10px; min-width: 16px; height: 16px; font-size: 10px; }

@media (max-width: 1024px) {
	.ma-util, .ma-nav, .ma-icons__label, .ma-icons__item--wish { display: none !important; }
	.ma-header__row { flex-wrap: wrap; gap: 4px; padding: 10px 12px 12px; }
	.ma-header .ma-header__burger { display: flex; }
	.ma-logo { font-size: 23px; flex: 1; }
	.ma-header .ma-logo--image { flex: 1; }
	.ma-icons { gap: 0; }
	.ma-icons__item { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
	.ma-icons__item .ma-icon { width: 22px; height: 22px; }
	.ma-cart-count { top: 4px; right: 2px; min-width: 17px; height: 17px; font-size: 10.5px; }
	.ma-search { order: 10; flex: 1 1 100%; max-width: none; height: 44px; padding-left: 16px; margin-top: 6px; }
	.ma-bottom { display: grid; }
	body:has(.ma-bottom) { padding-bottom: 76px; }
}
@media (min-width: 1025px) {
	.ma-drawer, .ma-bottom { display: none !important; }
}

/* ==================================================================
 * Footer (includes/class-footer.php)
 * ================================================================== */
.ma-footer { font-family: var(--ma-font); background: var(--ma-color-white); border-top: 1px solid var(--ma-color-border); color: var(--ma-color-text); }
.ma-footer a { color: var(--ma-color-text); text-decoration: none; }
.ma-footer a:hover { color: var(--ma-color-orange-hover); }
.ma-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ma-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ma-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ma-footer__title { font-size: 15px; font-weight: 700; color: var(--ma-color-heading); margin-bottom: 4px; }
.ma-footer__brand .ma-logo { font-size: 28px; }
.ma-footer__brand p { margin: 4px 0 0; line-height: 1.6; color: var(--ma-color-subtle); }
.ma-footer__socials, .ma-footer__apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ma-footer__social { width: 44px; height: 44px; border-radius: var(--ma-radius-pill); border: 1px solid #E2D6CB; display: flex; align-items: center; justify-content: center; }
.ma-footer__app { display: flex; align-items: center; gap: 10px; border: 1px solid #E2D6CB; border-radius: 12px; padding: 8px 16px 8px 12px; min-height: 48px; box-sizing: border-box; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s; }
.ma-footer__app:hover, .ma-footer__app:focus { border-color: var(--ma-color-orange); }
.ma-footer__app svg { flex: none; }
.ma-footer__app-t { display: flex; flex-direction: column; line-height: 1.15; }
.ma-footer__app-t span { font-size: 10.5px; font-weight: 400; color: var(--ma-color-subtle); }
.ma-footer__app-t strong { font-size: 15px; font-weight: 700; color: var(--ma-color-heading); }
.ma-footer__form { display: flex; align-items: center; gap: 8px; border: 1px solid #E2D6CB; border-radius: var(--ma-radius-pill); padding: 4px 4px 4px 18px; margin: 0; }
.ma-footer__form:focus-within { border-color: var(--ma-color-orange); }
.ma-footer .ma-footer__form input:focus, .ma-footer .ma-footer__form input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; }
.ma-footer__form input[type="email"] { flex: 1; min-width: 0; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 14px; padding: 0 !important; }
.ma-footer .ma-footer__form button { flex: none; width: 44px; height: 44px; border-radius: var(--ma-radius-pill); border: 0; background: var(--ma-color-orange); color: var(--ma-color-white); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ma-footer .ma-footer__form button:hover, .ma-footer .ma-footer__form button:focus { background: var(--ma-color-orange-hover); color: var(--ma-color-white); }
.ma-footer__msg { margin: 0; font-size: 13px; font-weight: 600; }
.ma-footer__msg.is-ok { color: var(--ma-color-green); }
.ma-footer__msg.is-error { color: #A3330B; }
.ma-footer__fine { margin: 0; font-size: 12px; color: var(--ma-color-subtle); }
.ma-footer__fine a { text-decoration: underline; color: inherit; }
.ma-footer__pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ma-footer__pay span { border: 1px solid #E2D6CB; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--ma-color-muted); }
/* Logotipi kartica i sigurnog plaćanja (Podešavanja → Plaćanje). */
.ma-footer__payments { border-top: 1px solid var(--ma-color-border); }
.ma-footer__payments-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 20px; padding-bottom: 20px; }
.ma-footer__payments-title { font-size: 13px; font-weight: 600; color: var(--ma-color-muted); }
.ma-footer ul.ma-footer__logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ma-footer .ma-footer__logo-item { margin: 0; padding: 0; }
.ma-footer .ma-footer__logo-tile { display: flex; align-items: center; justify-content: center; height: 48px; min-width: 84px; padding: 6px 12px; box-sizing: border-box; background: var(--ma-color-white); border: 1px solid var(--ma-color-border); border-radius: 8px; }
.ma-footer a.ma-footer__logo-tile:hover, .ma-footer a.ma-footer__logo-tile:focus { border-color: var(--ma-color-border-strong); }
.ma-footer .ma-footer__logo-tile img { display: block; height: auto !important; width: auto !important; max-height: 32px; max-width: 96px; object-fit: contain; margin: 0; border-radius: 0 !important; }
@media (max-width: 600px) {
	.ma-footer__payments-in { justify-content: center; text-align: center; }
	.ma-footer ul.ma-footer__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
	.ma-footer .ma-footer__logo-tile { height: 48px; min-width: 0; padding: 6px 10px; }
	.ma-footer .ma-footer__logo-tile img { max-height: 30px; max-width: 100%; }
}
.ma-footer__bottom { border-top: 1px solid var(--ma-color-border); }
.ma-footer__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 26px; font-size: 13px; color: var(--ma-color-subtle); }
.ma-footer__bottom-in a { color: var(--ma-color-subtle); }
@media (max-width: 1024px) { .ma-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ma-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; } }

/* Footer: linkovi u dnu (npr. „Postavke kolačića”, modul Kolačići) */
.ma-footer__bottom-in .ma-footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ma-footer__bottom-in button.ma-footer__linkbtn { margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--ma-color-subtle); text-decoration: underline; cursor: pointer; }
.ma-footer__bottom-in button.ma-footer__linkbtn:hover, .ma-footer__bottom-in button.ma-footer__linkbtn:focus { background: none; color: var(--ma-color-orange-hover); }

/* Stranice plugina (korpa, checkout, nalog, arhiva, proizvod, pravne, savjeti): tema Hello Elementor ograničava
   .site-main na 1140 px na stranicama koje nisu iz Elementora; širinu (1360 px) određuje unutrašnji omotač __in. */
html body .site-main.ma-shop-page, html body .site-main.ma-archive-page, html body .site-main.ma-co-page, html body .site-main.ma-product-page { max-width: none !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }

/* ==========================================================================
   Obavještenja (WooCommerce) – kartica sa ikonom, tekstom, dugmetom i „×”
   Šabloni: templates/woocommerce/notices/*.php, poruka „dodano u korpu”: includes/class-notices.php
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.ma-notice.ma-notice, ul.ma-notice.ma-notice {
	position: relative; display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box;
	margin: 0; padding: 12px 14px 12px 12px; list-style: none;
	background: var(--ma-color-white, #FFFFFF); border: 1px solid var(--ma-color-border, #EFE6DD); border-top: 1px solid var(--ma-color-border, #EFE6DD);
	border-radius: var(--ma-radius-md, 18px); box-shadow: 0 6px 22px rgba(90,50,20,.08);
	font-family: var(--ma-font); font-size: 15px; line-height: 1.45; color: var(--ma-color-text, #2B2420);
	animation: ma-notice-in .28s ease-out both; outline: none;
}
.ma-notice.ma-notice::before, .ma-notice.ma-notice::after { content: none; display: none; }
.ma-notice:focus-visible { outline: 2px solid var(--ma-color-orange, #D9620B); outline-offset: 2px; }
@keyframes ma-notice-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ma-notice.ma-notice { animation: none; } }

/* Ikona */
.ma-notice .ma-notice__ic, ul.ma-notice.ma-notice::before {
	flex: none; width: 40px; height: 40px; border-radius: 999px; display: block;
	background-color: var(--ma-ic-bg, #E6F0EC);
	background-image: var(--ma-ic); background-repeat: no-repeat; background-position: center; background-size: 20px;
}
.ma-notice--success { --ma-ic-bg: #E6F0EC; --ma-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6F5C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ma-notice--info { --ma-ic-bg: #FBE3CB; --ma-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B04A06' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.6v.2'/%3E%3C/svg%3E"); }
.ma-notice--error { --ma-ic-bg: #FBE4E1; --ma-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B32D2E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l9.5 16.5h-19z'/%3E%3Cpath d='M12 10v4.5M12 17.4v.2'/%3E%3C/svg%3E"); }
ul.ma-notice--error.ma-notice { border-color: #F2CFC9; align-items: flex-start; flex-direction: column; gap: 4px; padding-left: 66px; min-height: 64px; justify-content: center; }
ul.ma-notice--error.ma-notice::before { content: ""; display: block; position: absolute; left: 12px; top: 12px; }
ul.ma-notice--error li { margin: 0; padding: 0; list-style: none; color: var(--ma-color-heading, #241C17); }
ul.ma-notice--error li::before { content: none; }
ul.ma-notice--error.is-many li { position: relative; padding-left: 12px; }
ul.ma-notice--error.is-many li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 999px; background: #B32D2E; }
ul.ma-notice--error a { color: inherit; font-weight: 600; }

/* Tekst i dugmad */
.ma-notice .ma-notice__body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ma-notice .ma-notice__body > a.button, .ma-notice .ma-notice__body .button, .ma-notice a.ma-notice__btn {
	float: none; order: 9; margin: 0 0 0 auto; flex: none;
	display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; box-sizing: border-box;
	border-radius: var(--ma-radius-pill, 999px); border: 0; background: var(--ma-color-orange, #D9620B); color: #FFFFFF;
	font-family: var(--ma-font); font-size: 14.5px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; box-shadow: none;
}
.ma-notice .ma-notice__body .button:hover, .ma-notice a.ma-notice__btn:hover { background: var(--ma-color-orange-hover, #C2560A); color: #FFFFFF; }
.ma-notice--info .ma-notice__body .button { background: #241C17; }
.ma-notice--info .ma-notice__body .button:hover { background: #0B1F1A; }
.ma-notice .ma-notice__body a:not(.button) { color: var(--ma-color-orange-dark, #B04A06); font-weight: 600; }
.ma-notice .ma-notice__x {
	flex: none; width: 34px; height: 34px; margin: 0 -2px 0 0; padding: 0; border: 0; border-radius: 999px;
	background: transparent; color: var(--ma-color-subtle, #6B5D53); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.ma-notice .ma-notice__x:hover { background: var(--ma-color-beige, #F1ECE7); color: var(--ma-color-heading, #241C17); }
.ma-notice .ma-notice__x:focus-visible { outline: 2px solid var(--ma-color-orange, #D9620B); outline-offset: 1px; }

/* „Dodano u korpu” sa slikom proizvoda */
.ma-notice.is-product .ma-notice__img { position: relative; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--ma-color-beige, #F1ECE7); display: flex; align-items: center; justify-content: center; }
.ma-notice.is-product .ma-notice__img img { width: 44px; height: 44px; object-fit: contain; mix-blend-mode: multiply; margin: 0; border-radius: 0; }
.ma-notice.is-product .ma-notice__ok { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 999px; border: 2px solid #FFFFFF; background: var(--ma-color-green, #1F6F5C) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ma-notice .ma-notice__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ma-notice .ma-notice__title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ma-color-green, #1F6F5C); }
.ma-notice .ma-notice__text strong { font-weight: 600; color: var(--ma-color-heading, #241C17); }
.ma-notice .ma-notice__actions { display: flex; gap: 8px; margin-left: auto; }
.ma-notice .ma-notice__actions .ma-notice__btn { margin: 0; }

@media (max-width: 767px) {
	.woocommerce-notices-wrapper { margin-bottom: 14px; }
	.ma-notice.ma-notice { align-items: flex-start; padding: 12px 10px 12px 12px; gap: 12px; font-size: 14.5px; }
	.ma-notice .ma-notice__ic { width: 36px; height: 36px; background-size: 18px; }
	.ma-notice .ma-notice__body { gap: 10px; }
	.ma-notice .ma-notice__body > a.button, .ma-notice .ma-notice__body .button, .ma-notice .ma-notice__actions { margin: 0; width: 100%; }
	.ma-notice .ma-notice__actions .ma-notice__btn { flex: 1; }
	.ma-notice.is-product .ma-notice__img { width: 48px; height: 48px; }
	.ma-notice.is-product .ma-notice__img img { width: 38px; height: 38px; }
	ul.ma-notice--error.ma-notice { padding-left: 60px; }
	ul.ma-notice--error.ma-notice::before { width: 36px; height: 36px; background-size: 18px; }
}
.ma-notice .ma-notice__x::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 767px) { .ma-notice .ma-notice__x { position: absolute; top: 8px; right: 8px; } .ma-notice .ma-notice__body { padding-right: 30px; } }
@media (max-width: 767px) { .ma-notice.is-product .ma-notice__text { flex: 1 1 0; } .ma-notice.is-product .ma-notice__body { align-items: center; } }

/* Srce za listu želja: bijeli krug sa jasnom sjenom i srce u sredini, svuda (0.39.4) */
.ma-card .ma-card__wish, .ma-buy .ma-buy__wish { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: #FFFFFF; color: #241C17; box-shadow: 0 2px 10px rgba(40, 20, 5, .18), 0 0 0 1px rgba(40, 20, 5, .06); line-height: 1; box-sizing: border-box; transition: transform .15s, color .15s; }
.ma-card .ma-card__wish svg, .ma-buy .ma-buy__wish svg { display: block; width: 22px; height: 22px; margin: 0; flex: none; }
.ma-card .ma-card__wish:hover, .ma-card .ma-card__wish:focus, .ma-buy .ma-buy__wish:hover, .ma-buy .ma-buy__wish:focus { background: #FFFFFF; color: var(--ma-color-orange-hover); transform: scale(1.06); }
.ma-card .ma-card__wish[aria-pressed="true"], .ma-buy .ma-buy__wish[aria-pressed="true"] { background: #FFFFFF; color: var(--ma-color-orange-hover); }
.ma-buy__wish[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 767px) { .ma-card .ma-card__wish { width: 38px; height: 38px; } .ma-card .ma-card__wish svg { width: 19px; height: 19px; } }

/* „Još X KM do besplatne dostave” u obavještenju o dodavanju u korpu (0.40.0) */
.ma-notice .ma-notice__ship { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ma-color-muted); }
.ma-notice .ma-notice__ship b { color: var(--ma-color-heading); }
.ma-notice .ma-notice__ship.is-free { color: var(--ma-color-green, #1F6F5C); font-weight: 600; }
