/* Mulan Nutrition - product cards (markup from mulan-card-design.php). Every rule is scoped to .afya-card.mulan-card so other sections that use .mulan-card are untouched. */
.afya-card.mulan-card {
	--mc-ink: #1b1b1b;
	--mc-text: #333;
	--mc-muted: #707070;
	--mc-line: #e6e6e6;
	--mc-red: #e31e24;
	--mc-plus: var(--afya-ink, #1b1b1b);
	--mc-accent: var(--afya-accent, #F2C166);
	--mc-on-accent: var(--mulan-on-accent, #1b1b1b);
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--mc-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: none;
	transform: none;
	transition: box-shadow .2s ease;
}
.afya-card.mulan-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.afya-carousel__item { display: flex; }
.afya-carousel__item > .afya-card { width: 100%; }
.afya-card.mulan-card .mulan-card__off {
	position: absolute;
	z-index: 4;
	top: 0;
	left: 0;
	padding: 5px 9px;
	border-radius: 13px 0 10px 0;
	background: var(--mc-red);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.afya-card.mulan-card .mulan-card__media {
	position: relative;
	aspect-ratio: 5 / 4;
	margin: 14px 0 0;
	background: #fff;
}
.afya-card.mulan-card .mulan-card__img { position: absolute; inset: 0; display: block; }
.afya-card.mulan-card .mulan-card__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .3s ease, transform .4s ease;
}
.afya-card.mulan-card .mulan-card__img .mulan-card__hover { opacity: 0; }
.afya-card.mulan-card.has-alt:hover .mulan-card__main { opacity: 0; }
.afya-card.mulan-card.has-alt:hover .mulan-card__hover { opacity: 1; }
.afya-card.mulan-card:not(.has-alt):hover .mulan-card__main { transform: scale(1.04); }
.afya-card.mulan-card.is-oos .mulan-card__img img { opacity: .45; }
.afya-card.mulan-card .mulan-card__plus {
	position: absolute;
	z-index: 4;
	right: 0;
	bottom: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--mc-plus) !important;
	color: #fff !important;
	box-shadow: none;
	transform: none;
	transition: background-color .15s ease, transform .1s ease;
}
.afya-card.mulan-card .mulan-card__plus .afya-icon { width: 22px; height: 22px; stroke-width: 2.4; }
.afya-card.mulan-card .mulan-card__plus:hover { background: #000 !important; }
.afya-card.mulan-card .mulan-card__plus:active { transform: scale(.95); }
.afya-card.mulan-card .mulan-card__plus:focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 2px; }
.afya-card.mulan-card .mulan-card__plus.loading { opacity: .6; pointer-events: none; }
.afya-card.mulan-card .mulan-card__plus.added { background: var(--afya-green, #166534) !important; }
.afya-card.mulan-card .mulan-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 2px 0; }
.afya-card.mulan-card .mulan-card__flag { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--mc-red); }
.afya-card.mulan-card .mulan-card__flag.is-new { color: var(--mc-red); }
.afya-card.mulan-card h3.mulan-card__title {
	margin: 0 !important;
	min-height: calc(2 * 1.25em);
	font-family: var(--afya-font) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	-webkit-text-stroke: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.afya-card.mulan-card .mulan-card__title a { color: var(--mc-text) !important; text-decoration: none; }
.afya-card.mulan-card .mulan-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.afya-card.mulan-card .mulan-card__title a:focus-visible { outline: none; }
.afya-card.mulan-card:has(.mulan-card__title a:focus-visible) { outline: 2px solid var(--mc-ink); outline-offset: 2px; }
.afya-card.mulan-card .mulan-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 6px; }
.afya-card.mulan-card .mulan-card__now { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--mc-ink); }
.afya-card.mulan-card .mulan-card__now small { font-size: 13px; font-weight: 600; color: var(--mc-muted); letter-spacing: 0; }
.afya-card.mulan-card .mulan-card__was { font-size: 14px; font-weight: 400; color: var(--mc-muted); text-decoration: line-through; opacity: 1; }
.afya-card.mulan-card .mulan-card__rating { margin: 4px 0 0; font-size: 13.5px; color: var(--mc-text); }
.afya-card.mulan-card .mulan-card__rating > span { color: #e0a100; }
.afya-card.mulan-card .mulan-card__rating small { color: var(--mc-muted); }
.afya-card.mulan-card .mulan-card__stock { margin: 6px 0 0; font-size: 15px; font-style: italic; color: var(--mc-muted); }
.afya-card.mulan-card .mulan-card__btn {
	position: relative;
	z-index: 3;
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 36px;
	padding: 0 12px;
	border: 1.5px solid var(--mc-ink);
	border-radius: 8px;
	background: #fff !important;
	color: var(--mc-ink) !important;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none !important;
	box-shadow: none;
	transform: none;
	transition: background-color .15s ease, border-color .15s ease;
}
.afya-card.mulan-card .mulan-card__body > :nth-last-child(2) { margin-bottom: 12px; }
.afya-card.mulan-card .mulan-card__btn .afya-icon { width: 16px; height: 16px; flex: none; }
.afya-card.mulan-card .mulan-card__btn:hover { background: var(--mc-accent) !important; border-color: var(--mc-accent); color: var(--mc-on-accent) !important; }
.afya-card.mulan-card .mulan-card__btn:focus-visible { outline: 2px solid var(--mc-ink); outline-offset: 2px; }
.afya-card.mulan-card .mulan-card__btn.loading { opacity: .6; pointer-events: none; }
.afya-card.mulan-card .mulan-card__btn.added { background: var(--afya-green, #166534) !important; border-color: var(--afya-green, #166534); color: #fff !important; }
.afya-card.mulan-card .mulan-card__btn.is-muted { border-color: var(--mc-line); color: var(--mc-muted) !important; }
.afya-card.mulan-card .added_to_cart { display: none !important; }


@media (max-width: 767px) {
.afya-card.mulan-card { padding: 9px; border-radius: 12px; }
.afya-card.mulan-card .mulan-card__off { border-radius: 11px 0 9px 0; }
.afya-card.mulan-card .mulan-card__media { margin-top: 12px; }
.afya-card.mulan-card .mulan-card__body { padding: 10px 1px 0; }
.afya-card.mulan-card .mulan-card__off { font-size: 11px; padding: 4px 7px; }
.afya-card.mulan-card .mulan-card__plus { width: 34px; height: 34px; }
.afya-card.mulan-card .mulan-card__plus .afya-icon { width: 19px; height: 19px; }
.afya-card.mulan-card .mulan-card__flag { font-size: 13px; }
.afya-card.mulan-card h3.mulan-card__title { font-size: 15px !important; }
.afya-card.mulan-card .mulan-card__now { font-size: 18px; }
.afya-card.mulan-card .mulan-card__was { font-size: 12.5px; }
.afya-card.mulan-card .mulan-card__stock { font-size: 13px; }
.afya-card.mulan-card .mulan-card__btn { min-height: 34px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
.afya-card.mulan-card, .afya-card.mulan-card * { transition: none !important; }
.afya-card.mulan-card:not(.has-alt):hover .mulan-card__main { transform: none; }
}

/* Row spacing: room around each card so borders and hover shadows aren't clipped */
.afya-carousel { --gap: 18px; }
.afya-carousel__track { padding: 6px 2px 14px; margin: -6px -2px -14px; }
.afya-grid.products, .afya-products-section .afya-grid { gap: 24px 18px; }

/* Six across on large screens: slightly tighter type */
@media (min-width: 1200px) {
	.mulan-card h3.mulan-card__title { font-size: 16px !important; }
	.mulan-card__now { font-size: 20px; }
	.mulan-card__flag { font-size: 14px; }
	.mulan-card .mulan-card__plus { width: 36px; height: 36px; }
	.mulan-card .mulan-card__plus .afya-icon { width: 20px; height: 20px; }
}
/* Below 1200px the theme shows 3-4 per row */
@media (min-width: 768px) and (max-width: 1199px) {
	.afya-grid.products { --cols: 4 !important; }
}
@media (max-width: 767px) {
	.afya-carousel { --gap: 12px; }
	.afya-grid.products, .afya-products-section .afya-grid { gap: 14px 12px; }
}

/* Homepage image banners: original layout and height, larger text, more side padding */
@media (min-width: 768px) {
	body .afya-promo--banner .afya-promo__inner { padding: 0 6.5cqw; }
	body .afya-promo--banner .afya-promo__kicker { font-size: 1.7cqw; margin-bottom: .9cqw !important; }
	body .afya-promo--banner .afya-promo__title { font-size: 4.8cqw !important; }
	body .afya-promo--banner .afya-promo__desc { font-size: 1.95cqw; line-height: 1.45; margin-top: 1.3cqw !important; }
	body .afya-promo--banner .afya-promo__btn { font-size: 1.8cqw; padding: 1.15cqw 2.3cqw; margin-top: 2.2cqw; }
	body .afya-promo--banner .afya-promo__btn .afya-icon { width: 1.8cqw; height: 1.8cqw; }
}
body .afya-promo--banner .afya-promo__chips { display: none; }

/* Discount badge: small tilted stamp with a stitched ring */
body .afya-promo--banner .afya-promo__badge {
	top: 8%;
	right: 4.5%;
	width: 7.4cqw;
	height: 7.4cqw;
	min-width: 54px;
	min-height: 54px;
	background: var(--p-badge);
	box-shadow: 0 .8cqw 1.8cqw rgba(140, 20, 24, .28);
	outline: max(1.5px, .22cqw) dashed rgba(255, 255, 255, .75);
	outline-offset: calc(-1 * max(4px, .55cqw));
	transform: rotate(-12deg);
	gap: .15cqw;
}
body .afya-promo--banner .afya-promo__badge b { font-size: max(15px, 2.25cqw); font-weight: 800; letter-spacing: -.02em; }
body .afya-promo--banner .afya-promo__badge small { margin-top: 0; font-size: max(8px, .95cqw); font-weight: 800; letter-spacing: .22em; padding-left: .22em; opacity: .95; }
@media (max-width: 767px) {
	body .afya-promo--banner .afya-promo__badge { width: 12cqw; height: 12cqw; min-width: 50px; min-height: 50px; }
	body .afya-promo--banner .afya-promo__badge b { font-size: max(14px, 3.6cqw); }
	body .afya-promo--banner .afya-promo__badge small { font-size: max(8px, 1.7cqw); }
}

/* Safeguard: banner text can never push past the banner edges */
@media (min-width: 768px) {
	body .afya-promo--banner .afya-promo__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .1em; }
	body .afya-promo--banner .afya-promo__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== Image banners on phones (17 Oct 2026): grow with content, text beside a smaller photo card ===== */
@media (max-width: 767px) {
	body .afya-banner .afya-promo--banner { aspect-ratio: auto; container-type: normal; min-height: 0; }
	body .afya-banner .afya-promo--banner .afya-promo__deco { display: none; }
	body .afya-banner .afya-promo--banner .afya-promo__inner {
		position: relative;
		inset: auto;
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: center;
		gap: 14px;
		padding: 20px 16px 20px 18px;
		min-height: 168px;
	}
	body .afya-banner .afya-promo--banner.afya-promo--media-left .afya-promo__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	body .afya-banner .afya-promo--banner.afya-promo--media-left .afya-promo__media { order: 0; justify-self: end; }
	body .afya-banner .afya-promo--banner .afya-promo__kicker { font-size: 10.5px !important; letter-spacing: .1em; margin-bottom: 6px !important; }
	body .afya-banner .afya-promo--banner .afya-promo__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 20px !important; line-height: 1.12 !important; }
	body .afya-banner .afya-promo--banner .afya-promo__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12.5px !important; line-height: 1.4; margin-top: 6px !important; max-width: none; }
	body .afya-banner .afya-promo--banner .afya-promo__btn { font-size: 12.5px !important; padding: 8px 14px !important; margin-top: 10px; gap: 6px; }
	body .afya-banner .afya-promo--banner .afya-promo__btn .afya-icon { width: 13px; height: 13px; }
	body .afya-banner .afya-promo--banner .afya-promo__media { height: auto; width: 100%; justify-self: end; }
	body .afya-banner .afya-promo--banner .afya-promo__media.is-card { aspect-ratio: 1 / 1; height: auto; max-width: 140px; padding: 8px; border-radius: 14px; }
	body .afya-banner .afya-promo--banner .afya-promo__media img { max-height: 100%; }
	body .afya-banner .afya-promo--banner .afya-promo__badge { top: 8px; right: 8px; width: 46px !important; height: 46px !important; min-width: 0; min-height: 0; }
	body .afya-banner .afya-promo--banner .afya-promo__badge b { font-size: 14px !important; }
	body .afya-banner .afya-promo--banner .afya-promo__badge small { font-size: 7px !important; }
}
