/* Millenare — carrinho lateral */
.mlr-cd {
	--ink: #1d1b16; --muted: #5c574d; --gold: #c99a3e; --line: #efe8d8; --wa: #1faa59;
	position: fixed; inset: 0; z-index: 999999;
	font-family: 'Inter', system-ui, sans-serif; color: var(--ink);
}
.mlr-cd[hidden] { display: none; }
.mlr-cd__overlay { position: absolute; inset: 0; background: rgba(20, 16, 8, .45); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.mlr-cd__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(420px, 100%);
	display: flex; flex-direction: column;
	background: #fff;
	box-shadow: -18px 0 50px rgba(20, 16, 8, .18);
	transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.mlr-cd.is-open .mlr-cd__overlay { opacity: 1; }
.mlr-cd.is-open .mlr-cd__panel { transform: translateX(0); }
html.mlr-cd-lock, html.mlr-cd-lock body { overflow: hidden; }
.mlr-cd .mlr-i { width: 20px; height: 20px; flex: 0 0 auto; }

.mlr-cd__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mlr-cd__title { display: flex; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; font-size: 18px; font-weight: 700; }
.mlr-cd__title .mlr-i { color: var(--gold); }
.mlr-cd__count { font-weight: 500; color: var(--muted); font-size: 15px; }
.mlr-cd__close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f6f3ec; color: var(--ink); cursor: pointer; }
.mlr-cd__close:hover { background: #efe9dc; }

.mlr-cd__msg { margin: 12px 20px 0; padding: 10px 12px; border-radius: 10px; background: #eef9f2; color: #146c3a; font-size: 13.5px; }
.mlr-cd__msg.is-error { background: #fdecec; color: #a12626; }
.mlr-cd__msg[hidden] { display: none; }

.mlr-cd__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mlr-cd.is-busy .mlr-cd__body { opacity: .6; pointer-events: none; transition: opacity .15s; }
.mlr-cd__loading { padding: 30px 20px; color: var(--muted); }

.mlr-cd__items { list-style: none; margin: 0 !important; padding: 8px 20px !important; overflow-y: auto; flex: 1; }
.mlr-cd__item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mlr-cd__item:last-child { border-bottom: 0; }
.mlr-cd__thumb { display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f6f3ec; }
.mlr-cd__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mlr-cd__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-right: 26px; }
.mlr-cd__name { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink) !important; text-decoration: none !important; }
.mlr-cd__unit { font-size: 13px; color: var(--muted); }
.mlr-cd__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.mlr-cd__qty { display: inline-flex; align-items: center; border: 1px solid #e4ddcd; border-radius: 999px; overflow: hidden; }
.mlr-cd__q { width: 32px; height: 32px; border: 0; background: #fff; color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer; }
.mlr-cd__q:hover { background: #faf5e8; }
.mlr-cd__qn { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.mlr-cd__line { font-size: 15px; font-weight: 700; }
.mlr-cd__remove { position: absolute; top: 12px; right: 0; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #9a9384; cursor: pointer; }
.mlr-cd__remove:hover { background: #f6f3ec; color: #a12626; }
.mlr-cd__remove .mlr-i { width: 16px; height: 16px; }

.mlr-cd__summary { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: #fffdf8; display: grid; gap: 10px; }
.mlr-cd__coupon { display: flex; gap: 8px; margin: 0 !important; }
.mlr-cd__coupon input { flex: 1; min-width: 0; height: 42px; padding: 0 14px !important; border: 1px solid #e4ddcd !important; border-radius: 10px !important; background: #fff !important; font-size: 14px; text-transform: uppercase; }
.mlr-cd__coupon input::placeholder { text-transform: none; }
.mlr-cd__coupon button { height: 42px; padding: 0 16px; border: 0; border-radius: 10px; background: #efe7d3; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.mlr-cd__coupon button:hover { background: #e6dbc0; }
.mlr-cd__line-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.mlr-cd__line-row--coupon { color: #146c3a; }
.mlr-cd__line-row--coupon span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.mlr-cd__line-row--coupon .mlr-i { width: 16px; height: 16px; }
.mlr-cd__coupon-rm { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.mlr-cd__line-row--total { font-size: 17px; font-weight: 700; padding-top: 4px; }
.mlr-cd__ship { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; color: var(--muted); }
.mlr-cd__ship .mlr-i { width: 17px; height: 17px; color: var(--gold); }
.mlr-cd__btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	height: 50px; border-radius: 999px; border: 0;
	font-size: 15.5px; font-weight: 700; text-decoration: none !important; cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.mlr-cd__btn .mlr-i { width: 18px; height: 18px; }
.mlr-cd__btn--primary, .mlr-cd__btn--primary:visited { background: #26d366; background: linear-gradient(180deg, #2bd56d 0%, #1faa59 100%); color: #fff !important; box-shadow: 0 8px 20px rgba(31, 170, 89, .28); }
.mlr-cd__btn--primary:hover { transform: translateY(-1px); }
.mlr-cd__btn--ghost { background: transparent; color: var(--muted); height: 40px; font-weight: 600; }
.mlr-cd__btn--ghost:hover { color: var(--ink); }

.mlr-cd__empty { margin: auto; padding: 40px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.mlr-cd__empty-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #faf5e8; color: var(--gold); }
.mlr-cd__empty-ico .mlr-i { width: 28px; height: 28px; }
.mlr-cd__empty-title { margin: 6px 0 0 !important; font-size: 17px; font-weight: 700; }
.mlr-cd__empty-text { margin: 0 0 8px !important; color: var(--muted); font-size: 14px; }
.mlr-cd__empty .mlr-cd__btn { width: 220px; }

/* Contador no link do cabeçalho */
.mlr-has-badge { position: relative; }
.et_pb_main_blurb_image.mlr-has-badge .mlr-cart-badge { top: -6px; left: 18px; }
.mlr-cart-badge {
	position: absolute; top: -8px; left: 14px;
	min-width: 18px; height: 18px; padding: 0 5px;
	display: inline-grid; place-items: center;
	border-radius: 999px; background: #1faa59; color: #fff;
	font: 700 11px/1 'Inter', system-ui, sans-serif;
	box-shadow: 0 0 0 2px #fff;
}
.mlr-cart-badge[hidden] { display: none; }

/* Botão de adicionar enquanto envia */
form.cart .single_add_to_cart_button.loading { opacity: .7; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	.mlr-cd__panel, .mlr-cd__overlay { transition: none; }
}

/* O tema usa peso 300 no texto: na gaveta, leitura mais firme. */
.mlr-cd, .mlr-cd p, .mlr-cd span, .mlr-cd input, .mlr-cd button { font-weight: 400; }
.mlr-cd__msg { font-weight: 500 !important; }
.mlr-cd__unit, .mlr-cd__ship span { color: #5c574d; }
.mlr-cd__title, .mlr-cd__name, .mlr-cd__line, .mlr-cd__line-row--total, .mlr-cd__btn, .mlr-cd__qn, .mlr-cd__coupon button, .mlr-cd__empty-title { font-weight: 700 !important; }
.mlr-cd__name { font-weight: 600 !important; }
.mlr-cd__ship strong, .mlr-cd__line-row--coupon strong { font-weight: 600 !important; }
