/**
 * MOJA APOTEKA – stranica proizvoda (includes/class-product-page.php).
 *
 * Mjere iz dizajna „Stranica proizvoda – desktop”. Do 1024 px galerija ide iznad kupovine,
 * sličice prelaze ispod glavne slike. Pravila za dugmad/polja imaju najmanje dvije klase.
 */

.ma-pp { display: flex; flex-direction: column; gap: 64px; font-family: var(--ma-font); color: var(--ma-color-text); }
.ma-pp .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ma-product-page { background: var(--ma-color-bg); }
.ma-product-page__in { max-width: var(--ma-container, 1360px); margin: 0 auto; padding: 28px 24px 64px; box-sizing: border-box; }

/* ---------- Vrh: galerija + kupovina ---------- */
.ma-pp__top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.ma-pp__gallery { flex: 1 1 560px; min-width: 0; background: #FFFFFF; border: 1px solid var(--ma-color-border, #EFE6DD); border-radius: 24px; padding: 22px 24px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; }
.ma-pp .ma-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ma-color-muted); }
.ma-pp .ma-crumbs li { display: flex; gap: 8px; margin: 0; }
.ma-pp .ma-crumbs li + li::before { content: "/"; }
.ma-pp .ma-crumbs a { color: var(--ma-color-muted); text-decoration: none; }
.ma-pp .ma-crumbs a:hover, .ma-pp .ma-crumbs a:focus { color: var(--ma-color-orange-hover); }
.ma-pp .ma-crumbs a.is-last { color: var(--ma-color-text); font-weight: 600; }

.ma-gal { display: flex; gap: 18px; align-items: stretch; }
.ma-gal__thumbs { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ma-gal__list { display: flex; flex-direction: column; gap: 10px; max-height: 432px; overflow-y: auto; scrollbar-width: none; padding: 2px; }
.ma-gal__list::-webkit-scrollbar { display: none; }
.ma-pp .ma-gal__nav { width: 44px; height: 44px; border-radius: 999px; background: #FFFFFF; color: var(--ma-color-text); box-shadow: 0 2px 10px rgba(0,0,0,.06); display: flex; align-items: center; justify-content: center; flex: none; }
.ma-pp .ma-gal__nav:hover, .ma-pp .ma-gal__nav:focus { background: #FFFFFF; color: var(--ma-color-orange-hover); }
.ma-pp .ma-gal__thumb { width: 76px; height: 76px; border-radius: 14px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 4px; border: 2px solid var(--ma-color-border, #EFE6DD); box-sizing: border-box; flex: none; transition: border-color .2s; }
.ma-pp .ma-gal__thumb:hover, .ma-pp .ma-gal__thumb:focus { background: #FFFFFF; border-color: var(--ma-color-border-strong); }
.ma-pp .ma-gal__thumb.is-active { border-color: var(--ma-color-text); }
.ma-pp .ma-gal__thumb img { width: 100% !important; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; margin: 0; border-radius: 10px; }
.ma-gal__stage { flex: 1; min-width: 0; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.ma-gal__main { display: block; width: 420px; max-width: 100%; cursor: zoom-in; }
.ma-gal__main[hidden] { display: none; }
.ma-gal__stage .ma-gal__img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; margin: 0; border-radius: 0 !important; }

/* ---------- Kupovina ---------- */
.ma-buy { flex: 1 1 420px; max-width: 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ma-buy__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.ma-buy a.ma-buy__brand, .ma-buy .ma-buy__brand { font-size: 16px; font-weight: 700; color: var(--ma-color-text); text-decoration: none; letter-spacing: .3px; }
.ma-buy a.ma-buy__brand:hover { color: var(--ma-color-orange-hover); }
.ma-buy__rating { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ma-color-muted); }
.ma-buy__rating a { color: var(--ma-color-muted); text-decoration: none; }
.ma-buy__rating a:hover { color: var(--ma-color-orange-hover); }
.ma-stars { position: relative; display: inline-block; color: #E3D7CC; letter-spacing: 1px; line-height: 1; }
.ma-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #E08A00; }
.ma-buy .ma-buy__wish { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ma-color-muted); }
.ma-buy .ma-buy__wish[aria-pressed="true"] { color: var(--ma-color-orange-hover); }
.ma-buy .ma-buy__title { margin: 0; padding: 0; font-family: var(--ma-font); font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; color: var(--ma-color-heading); text-transform: none; }
.ma-buy__badge { align-self: flex-start; background: var(--ma-color-orange); color: #FFFFFF; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }
.ma-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ma-buy__now { font-size: 36px; font-weight: 700; letter-spacing: -.5px; color: var(--ma-color-heading); line-height: 1.1; }
.ma-buy__now.is-sale { color: var(--ma-color-orange-dark); }
.ma-buy__now .ma-card__from { font-size: 18px; font-weight: 600; }
.ma-buy__old { font-size: 18px; color: var(--ma-color-subtle); text-decoration: line-through; }
.ma-buy .ma-buy__stock { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ma-color-text); }
.ma-buy__dot { width: 8px; height: 8px; border-radius: 999px; background: #1F8A5B; flex: none; }
.ma-buy__stock.is-out .ma-buy__dot { background: #B42318; }

/* Količina i korpa. */
.ma-buy .ma-buy__cart, .woocommerce div.product .ma-buy form.ma-buy__cart { display: flex; gap: 12px; align-items: stretch; margin: 0; } /* WooCommerce daje form.cart donju marginu 2em. */
.ma-qty { flex: none; display: flex; align-items: center; border: 1.5px solid var(--ma-color-text); border-radius: 999px; height: 52px; box-sizing: border-box; }
.ma-buy .ma-qty__btn { width: 44px; height: 48px; font-size: 20px; line-height: 1; color: var(--ma-color-text); display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.ma-buy .ma-qty__btn:hover, .ma-buy .ma-qty__btn:focus { background: var(--ma-color-beige); color: var(--ma-color-text); }
.ma-buy .ma-qty .ma-qty__input {
	width: 36px !important;
	min-width: 0 !important;
	height: 44px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: center;
	font-family: var(--ma-font);
	font-weight: 600;
	font-size: 16px;
	color: var(--ma-color-text);
	-moz-appearance: textfield;
	appearance: textfield;
}
.ma-buy .ma-qty__input::-webkit-outer-spin-button, .ma-buy .ma-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ma-buy .ma-buy__cart .ma-buy__add, .ma-buy form button.ma-buy__add {
	flex: 1;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--ma-color-orange);
	color: #FFFFFF;
	font-family: var(--ma-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	padding: 0 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	transition: background .2s;
}
.ma-buy .ma-buy__cart .ma-buy__add:hover, .ma-buy .ma-buy__cart .ma-buy__add:focus { background: var(--ma-color-orange-hover); color: #FFFFFF; }
.ma-buy .ma-buy__cart .ma-buy__add.is-loading { opacity: .7; }

/* Proizvod sa varijantama (dizajn „Proizvod sa varijantama”, includes/class-variations.php) */
.ma-buy__stock.is-low .ma-buy__dot { background: #D9620B; }
.ma-buy .ma-buy__old[hidden], .ma-buy .ma-buy__badge[hidden], .ma-buy .ma-buy__promo[hidden] { display: none; }
.woocommerce div.product .ma-buy form.ma-var, .ma-buy form.ma-var { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.ma-var .ma-var__attrs { display: flex; flex-direction: column; gap: 18px; width: 100%; border: 0; margin: 0; }
.ma-var .ma-var__group { display: flex; flex-direction: column; gap: 10px; border-radius: 14px; transition: box-shadow .2s; }
.ma-var .ma-var__group.is-attention { box-shadow: 0 0 0 6px #FBE3CB; background: #FBE3CB; }
.ma-var .ma-var__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ma-var .ma-var__label { font-size: 14px; color: #4A3F38; }
.ma-var .ma-var__label b { color: #241C17; font-weight: 700; }
.ma-buy .ma-var button.ma-var__guide-btn { border: 0; background: transparent; padding: 0; min-height: 0; font-family: var(--ma-font); font-size: 13.5px; font-weight: 600; text-decoration: underline; color: #2B2420; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ma-buy .ma-var button.ma-var__guide-btn:hover { color: #C2560A; background: transparent; }
.ma-var .ma-var__guide { background: #FFFFFF; border: 1px solid #E8DDD2; border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: #4A3F38; }
.ma-var .ma-var__guide p { margin: 0 0 6px; }
.ma-var .ma-var__guide > :last-child { margin-bottom: 0; }
.ma-var .ma-var__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-var .ma-var__opts.is-color { gap: 10px; }
/* Krugovi boja */
.ma-buy .ma-var .is-color button.ma-var__opt { position: relative; width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 999px; background: #FFFFFF; border: 2px solid transparent; box-shadow: 0 0 0 1px #E2D6CB; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: box-shadow .15s; }
.ma-buy .ma-var .is-color button.ma-var__opt:hover { box-shadow: 0 0 0 1px #241C17; background: #FFFFFF; }
.ma-buy .ma-var .is-color button.ma-var__opt.is-on { border-color: #241C17; box-shadow: none; }
.ma-var .ma-var__swatch { width: 34px; height: 34px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.ma-buy .ma-var .is-color button.ma-var__opt.is-out:not(.is-on) .ma-var__swatch { opacity: .55; }
.ma-buy .ma-var .is-color button.ma-var__opt.is-out::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: #6B5D53; transform: rotate(45deg); border-radius: 2px; }
.ma-buy .ma-var .is-color button.ma-var__opt.is-none { opacity: .3; cursor: not-allowed; }
/* Pilule (veličina i ostalo) */
.ma-buy .ma-var .is-pill button.ma-var__opt { min-width: 56px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #D9CCBF; background: #FFFFFF; color: #241C17; font-family: var(--ma-font); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; line-height: 1; cursor: pointer; box-shadow: none; }
.ma-buy .ma-var .is-pill button.ma-var__opt:hover { border-color: #241C17; background: #FFFFFF; color: #241C17; }
.ma-buy .ma-var .is-pill button.ma-var__opt.is-out { background: #F5F0EB; color: #A3968B; border-color: #E2D6CB; text-decoration: line-through; }
.ma-buy .ma-var .is-pill button.ma-var__opt.is-on { background: #241C17; color: #FFFFFF; border-color: #241C17; }
.ma-buy .ma-var .is-pill button.ma-var__opt.is-none { background: transparent; color: #CDBFB2; border: 1px dashed #E2D6CB; cursor: not-allowed; text-decoration: none; }
.ma-buy .ma-var button.ma-var__opt:focus-visible { outline: 2px solid var(--ma-color-orange, #D9620B); outline-offset: 2px; }
/* Skrivene WooCommerce liste i poruke (WooCommerce ih i dalje koristi) */
.ma-var .ma-var__select { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ma-var .ma-var__reset, .ma-var .reset_variations { display: none !important; }
.ma-var .ma-var__wc, .ma-var .woocommerce-variation.single_variation { display: none !important; }
.ma-var .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
.ma-var .ma-var__out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #FBE3CB; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.ma-var .ma-var__out[hidden], .ma-var .ma-var__notify[hidden], .ma-var [hidden] { display: none !important; }
.ma-buy .ma-var button.ma-var__notify-btn, .ma-buy .ma-var .ma-var__notify button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #241C17; background: transparent; font-family: var(--ma-font); font-size: 14px; font-weight: 600; color: #241C17; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ma-buy .ma-var button.ma-var__notify-btn:hover, .ma-buy .ma-var .ma-var__notify button:hover { background: #241C17; color: #FFFFFF; }
.ma-var .ma-var__notify { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.ma-buy .ma-var .ma-var__notify input[type="email"] { flex: 1 1 200px; height: 40px !important; border: 1px solid #D9CCBF !important; border-radius: 999px !important; padding: 0 14px !important; font-size: 14px !important; background: #FFFFFF !important; box-shadow: none !important; }
.ma-var .ma-var__hp { position: absolute !important; left: -9999px !important; }
.ma-var .ma-var__notify-msg { font-size: 13.5px; font-weight: 600; }
.ma-buy .ma-var .ma-buy__cart .ma-buy__add.is-waiting, .ma-buy .ma-var .ma-buy__cart .ma-buy__add.is-out, .ma-buy .ma-var .ma-buy__cart .ma-buy__add.disabled { background: #CDBFB2; opacity: 1; cursor: not-allowed; }
.ma-var .ma-var__hint { margin: -4px 0 0; font-size: 13.5px; font-weight: 600; color: #A3330B; }


/* WooCommerce forma (varijabilni i drugi tipovi). */
.ma-buy__woo .variations { width: 100%; border: 0; margin: 0 0 12px; }
.ma-buy__woo .variations th, .ma-buy__woo .variations td { border: 0; padding: 4px 0; text-align: left; background: transparent; }
.ma-buy__woo .variations select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--ma-color-border-strong); background: #FFFFFF; padding: 0 14px; font-family: var(--ma-font); font-size: 15px; }
.ma-buy__woo .reset_variations { font-size: 13px; color: var(--ma-color-subtle); }
.ma-buy__woo .woocommerce-variation-price { margin: 8px 0; font-size: 22px; font-weight: 700; }
.ma-buy__woo form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; }
.ma-buy__woo .quantity input.qty { width: 80px; height: 52px; border-radius: 999px; border: 1.5px solid var(--ma-color-text); text-align: center; font-size: 16px; }
.ma-buy .ma-buy__woo .single_add_to_cart_button { flex: 1; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; height: 52px; border: 0; border-radius: 999px; background: var(--ma-color-orange); color: #FFFFFF; font-size: 16px; font-weight: 600; padding: 0 24px; }
.ma-buy .ma-buy__woo .single_add_to_cart_button:hover, .ma-buy .ma-buy__woo .single_add_to_cart_button:focus { background: var(--ma-color-orange-hover); color: #FFFFFF; }
.ma-buy .ma-buy__woo .single_add_to_cart_button.disabled { opacity: .5; }

/* Okviri. */
.ma-buy__promo { background: var(--ma-color-peach); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ma-buy__promo strong { font-size: 15px; }
.ma-buy__promo p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.ma-buy__facts { background: var(--ma-color-green-light); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ma-buy__facts strong { font-size: 15px; }
.ma-buy__facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ma-buy__facts li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; margin: 0; }
.ma-buy__facts li svg { flex: none; margin-top: 2px; color: var(--ma-color-green); }
.ma-buy__facts--text p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.ma-buy .ma-buy__warning { margin: 0; display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ma-color-muted); }
.ma-buy__warning svg { flex: none; margin-top: 2px; }
.ma-buy__delivery summary { list-style: none; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #E2D6CB; padding: 14px 0; font-size: 14.5px; font-weight: 600; color: var(--ma-color-text); cursor: pointer; }
.ma-buy__delivery summary::-webkit-details-marker { display: none; }
.ma-buy__delivery summary svg { transition: transform .2s; }
.ma-buy__delivery[open] summary svg { transform: rotate(180deg); }
.ma-buy__delivery dl { margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ma-buy__delivery dl div { display: flex; justify-content: space-between; gap: 12px; }
.ma-buy__delivery dt { font-weight: 400; }
.ma-buy__delivery dd { margin: 0; color: var(--ma-color-muted); text-align: right; }
.ma-buy__summary { background: #FFFFFF; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--ma-shadow); }
.ma-buy__summary strong { font-size: 15px; }
.ma-buy__summary p { margin: 0; font-size: 14px; line-height: 1.6; }
.ma-buy__summary .ma-stars { letter-spacing: 2px; align-self: flex-start; }

/* MOJA Club bodovi. */
.ma-buy__club { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; background: #EFEAE4; color: #241C17; border-radius: 14px; padding: 12px 16px; }
.ma-buy__club-m { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--ma-color-orange); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1; padding: 0; margin: 0; text-align: center; letter-spacing: 0; box-sizing: border-box; }
.ma-buy__club-text { flex: 1; min-width: 0; }
.ma-buy a.ma-buy__club-more { flex: none; color: #241C17; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ma-buy a.ma-buy__club-more:hover { color: #FBE3CB; }

/* Preporuka farmaceuta. */
.ma-buy__pharm { background: #FFFFFF; border-radius: 18px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--ma-shadow); }
.ma-buy__pharm-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ma-color-green-light); color: #241C17; display: flex; align-items: center; justify-content: center; }
.ma-buy__pharm-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ma-buy__pharm-body strong { font-size: 15px; color: var(--ma-color-heading); }
.ma-buy__pharm-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ma-color-text); }
.ma-buy__pharm-name { font-size: 13px; color: var(--ma-color-subtle); font-style: italic; }

/* Lista recenzija (unesene iz admina). */
.ma-reviews, .ma-pp .ma-acc__body ul.ma-reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.ma-review { margin: 0; background: #FFFFFF; border-radius: 16px; padding: 16px 18px; box-shadow: var(--ma-shadow); display: flex; flex-direction: column; gap: 8px; }
.ma-review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ma-review__who { font-size: 13px; color: var(--ma-color-subtle); }
.ma-review__who strong { color: var(--ma-color-text); font-weight: 600; }
.ma-review__stars { color: #E08A00; letter-spacing: 1px; font-size: 14px; }
.ma-review__off { color: #E3D7CC; }
.ma-review__text p { margin: 0; font-size: 15px; line-height: 1.6; }
.ma-review__src { align-self: flex-start; font-size: 12px; color: var(--ma-color-subtle); background: var(--ma-color-beige); border-radius: 999px; padding: 3px 10px; }

/* ---------- Opis i harmonike ---------- */
.ma-pp__info { width: 100%; border-top: 1px solid #E2D6CB; }
.ma-pp .ma-pp__h2 { margin: 0; padding: 0; font-family: var(--ma-font); font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--ma-color-heading); text-align: center; text-transform: none; }
.ma-pp__desc { padding: 40px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ma-pp__desc-body { max-width: 720px; width: 100%; position: relative; font-size: 16px; line-height: 1.7; color: var(--ma-color-text); text-align: center; }
/* Liste u centriranom tekstu: blok u sredini, stavke poravnate lijevo. */
.ma-pp__desc-body ul, .ma-pp__desc-body ol, .ma-pp #upotreba .ma-acc__body ul, .ma-pp #upotreba .ma-acc__body ol, .ma-pp #sastav .ma-acc__body ul, .ma-pp #sastav .ma-acc__body ol { display: inline-block; text-align: left; margin: 0 0 14px; }
.ma-pp__desc-body p { margin: 0 0 14px; }
.ma-pp__desc-body > :last-child { margin-bottom: 0; }
.ma-pp__desc-body.is-collapsed { max-height: 150px; overflow: hidden; }
.ma-pp__desc-body.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(251,247,243,0), var(--ma-color-bg)); }
.ma-pp .ma-pp__more { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ma-color-text); padding: 10px; min-height: 44px; }
.ma-pp .ma-pp__more:hover, .ma-pp .ma-pp__more:focus { color: var(--ma-color-orange-hover); }
.ma-pp details.ma-acc, .ma-pp details.ma-buy__delivery { background: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none; }
.ma-pp details.ma-acc { border-top: 1px solid #E2D6CB; }
.ma-pp details.ma-acc:last-child { border-bottom: 1px solid #E2D6CB; }
.ma-acc__head { list-style: none; padding: 22px 0; display: flex; justify-content: center; align-items: center; gap: 14px; cursor: pointer; color: var(--ma-color-heading); }
.ma-acc__head::-webkit-details-marker { display: none; }
.ma-acc .ma-acc__title { margin: 0; font-family: var(--ma-font); font-size: 26px; font-weight: 700; letter-spacing: -.3px; color: var(--ma-color-heading); }
.ma-acc__head svg { transition: transform .2s; flex: none; }
.ma-acc[open] .ma-acc__head svg { transform: rotate(180deg); }
.ma-acc__head:hover .ma-acc__title { color: var(--ma-color-orange-hover); }
.ma-acc__body { max-width: 720px; margin: 0 auto; padding: 0 0 28px; font-size: 15.5px; line-height: 1.7; text-align: center; }
.ma-pp #detalji .ma-acc__body, .ma-pp #recenzije .ma-acc__body { text-align: left; }
.ma-acc__body p { margin: 0 0 12px; }
.ma-pp__details { margin: 0; display: flex; flex-direction: column; }
.ma-pp__details div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ma-color-border); }
.ma-pp__details dt { flex: 0 0 160px; font-weight: 600; }
.ma-pp__details dd { margin: 0; color: var(--ma-color-muted); }

/* Recenzije (WooCommerce šablon unutar harmonike). Selektori sa #reviews/#comments da nadjačaju woocommerce.css. */
.ma-pp #reviews .woocommerce-Reviews-title, .ma-pp #reviews #comments > h2 { display: none; }
.ma-pp #reviews #comments ol.commentlist { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ma-pp #reviews #comments ol.commentlist li { margin: 0; padding: 0; background: #FFFFFF; border-radius: 16px; box-shadow: var(--ma-shadow); }
.ma-pp #reviews #comments ol.commentlist li .comment_container { display: block; }
.ma-pp #reviews #comments ol.commentlist li img.avatar { display: none; }
.ma-pp #reviews #comments ol.commentlist li .comment-text { margin: 0; border: 0; border-radius: 0; padding: 16px 18px; }
.ma-pp #reviews #comments ol.commentlist li .comment-text p.meta { margin: 0 0 6px; font-size: 13px; color: var(--ma-color-subtle); }
.ma-pp #reviews #comments ol.commentlist li .comment-text p.meta strong { color: var(--ma-color-text); font-weight: 600; }
.ma-pp #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ma-color-text); }
.ma-pp #reviews .star-rating { color: #E08A00; font-size: 13px; }
.ma-pp #reviews .star-rating::before { color: #E3D7CC; }
.ma-pp #reviews #review_form_wrapper { background: #FFFFFF; border-radius: 16px; padding: 20px 22px; box-shadow: var(--ma-shadow); }
.ma-pp #reviews #review_form .comment-reply-title { display: block; font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ma-color-heading); }
.ma-pp #reviews #review_form p { margin: 0 0 14px; font-size: 14px; }
.ma-pp #reviews #review_form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.ma-pp #reviews #review_form textarea, .ma-pp #reviews #review_form input[type="text"], .ma-pp #reviews #review_form input[type="email"] { width: 100%; border: 1px solid var(--ma-color-border-strong) !important; border-radius: 12px !important; padding: 10px 14px !important; font-family: var(--ma-font); font-size: 15px; box-sizing: border-box; background: #FFFFFF !important; box-shadow: none !important; }
.ma-pp #reviews #review_form p.stars a { color: #E08A00; }
.ma-pp #reviews #review_form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.ma-pp #reviews #review_form #respond .form-submit input#submit, .ma-pp #reviews #review_form input#submit { height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--ma-color-heading); color: #FFFFFF; font-family: var(--ma-font); font-weight: 600; font-size: 15px; cursor: pointer; }
.ma-pp #reviews #review_form #respond .form-submit input#submit:hover, .ma-pp #reviews #review_form input#submit:hover { background: #000000; color: #FFFFFF; }
.ma-pp #reviews .woocommerce-noreviews { margin: 0 0 16px; color: var(--ma-color-subtle); }

/* ---------- Slični proizvodi ---------- */
.ma-pp__related { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.ma-pp__related .ma-products { width: 100%; --ma-cols: 5; }
@media (max-width: 1280px) { .ma-pp__related .ma-products { --ma-cols: 4; } }

/* ---------- Uvećanje slike ---------- */
.ma-lightbox { position: fixed; inset: 0; z-index: 100001; background: rgba(20,12,6,.88); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.ma-lightbox[hidden] { display: none; }
.ma-lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; object-fit: contain; background: #FFFFFF; border-radius: 16px; }
.ma-lightbox button.ma-lightbox__close, .ma-lightbox .ma-lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px; background: #FFFFFF; color: var(--ma-color-heading); border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }

/* ---------- Tablet i mobitel ---------- */
@media (max-width: 1024px) {
	.ma-pp { gap: 44px; }
	.ma-pp__top { gap: 28px; }
	.ma-pp__gallery { flex-basis: 100%; }
	.ma-gal { flex-direction: column-reverse; }
	.ma-gal__thumbs { flex-direction: row; justify-content: center; }
	.ma-gal__list { flex-direction: row; max-height: none; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
	.ma-pp .ma-gal__nav { display: none; }
	.ma-gal__stage { min-height: 380px; }
	.ma-buy { max-width: none; flex-basis: 100%; }
	.ma-buy .ma-buy__title { font-size: 34px; }
	.ma-pp__related .ma-products { --ma-cols: 3; }
}
@media (max-width: 767px) {
	.ma-product-page__in { padding: 16px 16px 48px; }
	.ma-pp__gallery { padding: 16px; border-radius: 20px; gap: 12px; }
	.ma-gal__stage { min-height: 300px; }
	.ma-gal__main { width: 300px; }
	.ma-pp .ma-gal__thumb { width: 60px; height: 60px; border-radius: 12px; }
	.ma-buy { gap: 14px; }
	.ma-buy .ma-buy__title { font-size: 26px; letter-spacing: -.5px; }
	.ma-buy__now { font-size: 30px; }
	.ma-pp .ma-pp__h2 { font-size: 24px; }
	.ma-acc .ma-acc__title { font-size: 20px; }
	.ma-pp__desc { padding: 28px 0 20px; }
	.ma-pp__details dt { flex-basis: 110px; }
	.ma-pp__related .ma-products { --ma-cols: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.ma-acc__head svg, .ma-buy__delivery summary svg, .ma-pp .ma-gal__thumb { transition: none; }
}
.ma-lightbox .ma-lightbox__close:hover, .ma-lightbox .ma-lightbox__close:focus { background: #FFFFFF; color: var(--ma-color-orange-hover); }

/* ---------- Tabovi opisa (0.38.8) ---------- */
.ma-pp .ma-tabs { width: 100%; padding: 36px 0 24px; }
.ma-pp .ma-tabs__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.ma-pp a.ma-tabs__tab, .ma-pp a.ma-tabs__tab:visited { display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px; border: 1.5px solid #E2D6CB; background: #FFFFFF; font-size: 15px; font-weight: 700; color: var(--ma-color-text); text-decoration: none; box-sizing: border-box; transition: background .15s, color .15s, border-color .15s; }
.ma-pp a.ma-tabs__tab:hover { border-color: var(--ma-color-heading); }
.ma-pp a.ma-tabs__tab[aria-selected="true"] { background: #241C17; border-color: #241C17; color: #FFFFFF; }
.ma-pp a.ma-tabs__tab:focus-visible { outline: 2px solid var(--ma-color-orange-hover, #B04A06); outline-offset: 2px; }
.ma-pp .ma-tabs__panel[hidden] { display: none !important; }
.ma-pp .ma-tabs:not(.is-js) .ma-tabs__panel + .ma-tabs__panel { margin-top: 16px; }
.ma-pp .ma-pcard { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; background: #FFFFFF; border-radius: 26px; padding: 32px 36px; box-shadow: 0 4px 18px rgba(90, 50, 20, .06); }
.ma-pp .ma-pcard--single, .ma-pp .ma-tabs__panel:not([data-ma-panel="opis"]) .ma-pcard { grid-template-columns: minmax(0, 1fr); }
.ma-pp .ma-pcard__h { margin: 0 0 14px; font-family: var(--ma-font); font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--ma-color-heading); text-align: left; }
.ma-pp .ma-pcard .ma-pp__desc-body, .ma-pp .ma-pcard__text { max-width: none; text-align: left; font-size: 16px; line-height: 1.7; color: var(--ma-color-text); }
.ma-pp .ma-pcard__text p { margin: 0 0 12px; }
.ma-pp .ma-pcard .ma-pp__desc-body ul, .ma-pp .ma-pcard .ma-pp__desc-body ol { display: block; padding-left: 20px; }
.ma-pp .ma-pcard .ma-pp__desc-body.is-collapsed::after { background: linear-gradient(rgba(255,255,255,0), #FFFFFF); }
.ma-pp .ma-pcard .ma-pp__more { padding-left: 0; }
.ma-pp .ma-pcard__side { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.ma-pp .ma-dose { background: #FBE3CB; border-radius: 18px; padding: 20px 22px; }
.ma-pp .ma-dose small, .ma-pp .ma-ingr small { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #B04A06; }
.ma-pp .ma-dose div { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ma-color-heading); }
.ma-pp .ma-dose p { margin: 0 0 6px; }
.ma-pp .ma-dose p:last-child { margin: 0; }
.ma-pp .ma-ingr { background: #F5F0EB; border-radius: 18px; padding: 18px 22px; }
.ma-pp .ma-ingr small { color: #6B5D53; margin-bottom: 6px; }
.ma-pp .ma-ingr__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid #E7DDD3; font-size: 15px; }
.ma-pp .ma-ingr small + .ma-ingr__row, .ma-pp .ma-ingr > .ma-ingr__row:first-child { border-top: 0; }
.ma-pp .ma-ingr__row b { color: var(--ma-color-heading); text-align: right; }
.ma-pp .ma-pcard .ma-pp__details dt { flex: 0 0 180px; }
@media (max-width: 782px) {
	.ma-pp .ma-tabs { padding: 24px 0 16px; }
	.ma-pp .ma-tabs__list { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
	.ma-pp .ma-tabs__list::-webkit-scrollbar { display: none; }
	.ma-pp a.ma-tabs__tab { flex: none; padding: 0 20px; }
	.ma-pp .ma-pcard { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 20px; border-radius: 22px; }
}

/* ---------- Mobilna traka za kupovinu (0.38.8) ---------- */
.ma-sbar { display: none; }
@media (max-width: 782px) {
	.ma-sbar:not([hidden]) { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 890; padding: 10px 16px; font-family: var(--ma-font); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #E2D6CB; box-shadow: 0 -6px 24px rgba(90, 50, 20, .08); animation: ma-sbar-in .2s ease-out; }
	.ma-sbar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
	.ma-sbar__name { font-size: 12px; color: var(--ma-color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ma-sbar__price { font-size: 18px; font-weight: 700; color: var(--ma-color-heading); line-height: 1.2; }
	.ma-sbar__price del { font-size: 13px; font-weight: 500; color: var(--ma-color-muted); margin-right: 4px; }
	.ma-sbar__price ins { text-decoration: none; }
	button.ma-sbar__btn { flex: none; height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ma-color-orange, #EF7D00); color: #FFFFFF; font-family: var(--ma-font); font-size: 15px; font-weight: 700; cursor: pointer; }
	button.ma-sbar__btn:hover, button.ma-sbar__btn:focus { background: var(--ma-color-orange-hover, #B04A06); color: #FFFFFF; }
	.ma-sbar.is-flush { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
	.ma-pp.has-sbar { padding-bottom: 72px; }
}
@keyframes ma-sbar-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ma-sbar { animation: none !important; } }

/* Recenzije kao tab: bez bijele kartice oko (same recenzije su već kartice) (0.39.7) */
.ma-pp .ma-pcard--plain { background: transparent; box-shadow: none; padding: 8px 0 0; border-radius: 0; }
.ma-pp .ma-pcard--plain .ma-pcard__h { margin-bottom: 16px; }
