/* Petmeal Quick Cart Modal — mobile first */
:root {
	--pmjqc-green: #58a93f;
	--pmjqc-green-dark: #397c2d;
	--pmjqc-ink: #252823;
	--pmjqc-muted: #777b73;
	--pmjqc-line: #e8ebe6;
	--pmjqc-soft: #f6f7f4;
	--pmjqc-soft-green: #f1f8ee;
	--pmjqc-white: #fff;
}

.pmjqc-lock {
	overflow: hidden !important;
}

.pmjqc-overlay,
.pmjqc-overlay * {
	box-sizing: border-box;
}

.pmjqc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: rgba(28, 32, 27, .54);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s ease, visibility .28s ease, backdrop-filter .34s ease, -webkit-backdrop-filter .34s ease;
	will-change: opacity;
}

.pmjqc-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.pmjqc-dialog {
	position: relative;
	width: 100%;
	max-height: min(92dvh, 760px);
	overflow: hidden;
	background: var(--pmjqc-white);
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -18px 70px rgba(0, 0, 0, .18);
	transform: translate3d(0, 34px, 0);
	opacity: 0;
	transition: transform .34s cubic-bezier(.2,.82,.24,1), opacity .24s ease, box-shadow .34s ease;
	will-change: transform, opacity;
	font-family: inherit;
	color: var(--pmjqc-ink);
}

.pmjqc-overlay.is-open .pmjqc-dialog {
	transform: translate3d(0, 0, 0);
	opacity: 1;
}

.pmjqc-scroll {
	max-height: min(92dvh, 760px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.pmjqc-handle {
	width: 42px;
	height: 4px;
	margin: 9px auto 2px;
	border-radius: 999px;
	background: #d8dbd5;
}

.pmjqc-close {
	position: absolute;
	top: 18px;
	right: 16px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border: 1px solid var(--pmjqc-line);
	border-radius: 50%;
	background: rgba(255,255,255,.94);
	color: #5d625a;
	box-shadow: 0 6px 20px rgba(26,31,25,.08);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .18s ease, background .18s ease, color .18s ease;
}

.pmjqc-close::before,
.pmjqc-close::after {
	content: '';
	position: absolute;
	width: 15px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}
.pmjqc-close::before { transform: rotate(45deg); }
.pmjqc-close::after { transform: rotate(-45deg); }
.pmjqc-close:active { transform: scale(.94); }

.pmjqc-top {
	padding: 18px 18px 12px;
}

.pmjqc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 48px 12px 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pmjqc-green-dark);
}

.pmjqc-eyebrow::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pmjqc-green);
	box-shadow: 0 0 0 5px rgba(88,169,63,.12);
}

.pmjqc-product {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.pmjqc-media {
	position: relative;
	width: 92px;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	background: var(--pmjqc-soft);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.pmjqc-media::after {
	content: '';
	position: absolute;
	inset: auto 10px 8px;
	height: 10px;
	border-radius: 50%;
	background: rgba(25,30,25,.08);
	filter: blur(5px);
}

.pmjqc-image {
	position: relative;
	z-index: 1;
	width: 84%;
	height: 84%;
	object-fit: contain;
	display: block;
}

.pmjqc-title {
	margin: 0 0 7px;
	padding-right: 6px;
	font-size: clamp(17px, 4.8vw, 21px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--pmjqc-ink);
}

.pmjqc-price {
	font-size: 17px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--pmjqc-green-dark);
}

.pmjqc-price del {
	margin-right: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #a1a69e;
	opacity: 1;
}
.pmjqc-price ins { text-decoration: none; }

.pmjqc-description {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--pmjqc-muted);
}

.pmjqc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 13px;
}

.pmjqc-badge {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 9px;
	border: 1px solid var(--pmjqc-line);
	border-radius: 999px;
	background: #fff;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	color: #656a62;
}

.pmjqc-badge--stock {
	border-color: #d9ecd2;
	background: var(--pmjqc-soft-green);
	color: var(--pmjqc-green-dark);
}

.pmjqc-body {
	padding: 8px 18px 18px;
}

.pmjqc-divider {
	height: 1px;
	margin: 2px 0 18px;
	background: var(--pmjqc-line);
}

.pmjqc-question {
	margin: 0;
	font-size: clamp(22px, 6.3vw, 28px);
	line-height: 1.08;
	font-weight: 850;
	letter-spacing: -.035em;
	color: var(--pmjqc-ink);
}

.pmjqc-helper {
	margin: 7px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--pmjqc-muted);
}

.pmjqc-quantity-card {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 54px;
	align-items: center;
	gap: 8px;
	margin-top: 17px;
	padding: 7px;
	border: 1px solid #e2e9de;
	border-radius: 20px;
	background: var(--pmjqc-soft);
}

.pmjqc-qty-btn {
	width: 54px;
	height: 54px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: var(--pmjqc-green-dark);
	box-shadow: 0 5px 18px rgba(29,43,25,.06);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}
.pmjqc-qty-btn--plus {
	background: var(--pmjqc-green);
	color: #fff;
}
.pmjqc-qty-btn:disabled { opacity: .38; cursor: default; }

.pmjqc-quantity-value {
	min-width: 0;
	text-align: center;
}
.pmjqc-quantity-number {
	display: block;
	font-size: 25px;
	line-height: 1;
	font-weight: 850;
	color: var(--pmjqc-ink);
}
.pmjqc-quantity-label {
	display: block;
	margin-top: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #8a8e87;
}

.pmjqc-summary {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 15px;
	padding: 13px 2px 0;
}
.pmjqc-summary-label {
	font-size: 12px;
	font-weight: 650;
	color: var(--pmjqc-muted);
}
.pmjqc-summary-value {
	font-size: 18px;
	line-height: 1.1;
	font-weight: 850;
	color: var(--pmjqc-ink);
	white-space: nowrap;
}

.pmjqc-actions {
	display: grid;
	gap: 9px;
	margin-top: 15px;
}

.pmjqc-add {
	position: relative;
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 18px;
	padding: 12px 18px;
	background: var(--pmjqc-green);
	color: #fff;
	box-shadow: 0 10px 26px rgba(74,143,53,.20);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	transition: transform .16s ease, background .18s ease, box-shadow .18s ease;
}
.pmjqc-add:hover { background: #4c9837; box-shadow: 0 12px 30px rgba(74,143,53,.27); }
.pmjqc-add:active { transform: translateY(1px) scale(.995); }
.pmjqc-add:disabled { cursor: wait; opacity: .72; }
.pmjqc-add.is-success { background: var(--pmjqc-green-dark); }
.pmjqc-add__main { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pmjqc-add__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .72; }
.pmjqc-add__total { font-size: 13px; opacity: .88; white-space: nowrap; }

.pmjqc-continue {
	width: 100%;
	min-height: 44px;
	border: 0;
	background: transparent;
	color: #70756d;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.pmjqc-message {
	display: none;
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: #fff2f1;
	font-size: 12px;
	line-height: 1.4;
	color: #9b382f;
}
.pmjqc-message.is-visible { display: block; }

.pmjqc-skeleton {
	padding: 26px 18px 28px;
}
.pmjqc-skeleton__line,
.pmjqc-skeleton__box {
	position: relative;
	overflow: hidden;
	background: #eef0ec;
}
.pmjqc-skeleton__line::after,
.pmjqc-skeleton__box::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
	transform: translateX(-100%);
	animation: pmjqcShimmer 1.15s infinite;
}
.pmjqc-skeleton__row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.pmjqc-skeleton__box { width: 92px; aspect-ratio: 1; border-radius: 20px; }
.pmjqc-skeleton__line { height: 13px; border-radius: 999px; margin: 8px 0; }
.pmjqc-skeleton__line:nth-child(1) { width: 72%; height: 18px; }
.pmjqc-skeleton__line:nth-child(2) { width: 42%; }
.pmjqc-skeleton__line:nth-child(3) { width: 88%; margin-top: 20px; }
.pmjqc-skeleton__line:nth-child(4) { width: 66%; }

.pmjqc-toast {
	position: fixed;
	z-index: 2147483001;
	left: 14px;
	right: 14px;
	bottom: max(16px, env(safe-area-inset-bottom));
	margin: auto;
	max-width: 430px;
	padding: 13px 15px;
	border-radius: 16px;
	background: #253024;
	color: #fff;
	box-shadow: 0 14px 44px rgba(0,0,0,.22);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	transform: translateY(18px);
	opacity: 0;
	pointer-events: none;
	transition: transform .22s ease, opacity .22s ease;
}
.pmjqc-toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes pmjqcShimmer { to { transform: translateX(100%); } }



/* Motion system: short, tactile and mobile-first */
.pmjqc-content--product .pmjqc-eyebrow,
.pmjqc-content--product .pmjqc-media,
.pmjqc-content--product .pmjqc-title,
.pmjqc-content--product .pmjqc-price,
.pmjqc-content--product .pmjqc-description,
.pmjqc-content--product .pmjqc-badges,
.pmjqc-content--product .pmjqc-divider,
.pmjqc-content--product .pmjqc-question,
.pmjqc-content--product .pmjqc-helper,
.pmjqc-content--product .pmjqc-quantity-card,
.pmjqc-content--product .pmjqc-summary,
.pmjqc-content--product .pmjqc-actions {
	animation: pmjqcReveal .38s cubic-bezier(.2,.78,.25,1) both;
}

.pmjqc-content--product .pmjqc-eyebrow { animation-delay: .03s; }
.pmjqc-content--product .pmjqc-media { animation-name: pmjqcMediaReveal; animation-delay: .05s; }
.pmjqc-content--product .pmjqc-title { animation-delay: .08s; }
.pmjqc-content--product .pmjqc-price { animation-delay: .11s; }
.pmjqc-content--product .pmjqc-description { animation-delay: .14s; }
.pmjqc-content--product .pmjqc-badges { animation-delay: .17s; }
.pmjqc-content--product .pmjqc-divider { animation-delay: .15s; }
.pmjqc-content--product .pmjqc-question { animation-delay: .18s; }
.pmjqc-content--product .pmjqc-helper { animation-delay: .20s; }
.pmjqc-content--product .pmjqc-quantity-card { animation-name: pmjqcQuantityReveal; animation-delay: .22s; }
.pmjqc-content--product .pmjqc-summary { animation-delay: .25s; }
.pmjqc-content--product .pmjqc-actions { animation-delay: .28s; }

.pmjqc-content--product .pmjqc-badge {
	animation: pmjqcBadgeReveal .34s cubic-bezier(.2,.78,.25,1) both;
	animation-delay: calc(.19s + (var(--pmjqc-badge-index, 0) * .045s));
}

.pmjqc-content--error .pmjqc-question,
.pmjqc-content--error .pmjqc-helper,
.pmjqc-content--error .pmjqc-actions {
	animation: pmjqcReveal .28s ease-out both;
}
.pmjqc-content--error .pmjqc-helper { animation-delay: .04s; }
.pmjqc-content--error .pmjqc-actions { animation-delay: .08s; }

.pmjqc-close:hover {
	background: #f7f8f5;
	color: var(--pmjqc-green-dark);
	transform: rotate(4deg);
}

.pmjqc-add {
	overflow: hidden;
	isolation: isolate;
}
.pmjqc-add > * {
	position: relative;
	z-index: 2;
}
.pmjqc-add::after {
	content: '';
	position: absolute;
	z-index: 1;
	top: -45%;
	bottom: -45%;
	left: -40%;
	width: 34%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
	transform: skewX(-18deg) translateX(-220%);
	opacity: 0;
	pointer-events: none;
}
.pmjqc-add.is-loading::after {
	opacity: 1;
	animation: pmjqcButtonSweep .9s ease-in-out infinite;
}
.pmjqc-add.is-success {
	animation: pmjqcSuccess .38s cubic-bezier(.2,.9,.25,1);
}
.pmjqc-add.is-success .pmjqc-add__dot {
	animation: pmjqcDotSuccess .44s cubic-bezier(.2,.9,.25,1);
}

.pmjqc-message {
	display: block;
	max-height: 0;
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-5px);
	transition: max-height .24s ease, margin-top .24s ease, padding .24s ease, opacity .2s ease, transform .24s ease;
}
.pmjqc-message.is-visible {
	max-height: 120px;
	margin-top: 12px;
	padding: 10px 12px;
	opacity: 1;
	transform: translateY(0);
	animation: pmjqcErrorNudge .3s ease-out;
}

.pmjqc-toast.is-visible {
	animation: pmjqcToastPop .3s cubic-bezier(.2,.9,.25,1) both;
}

@keyframes pmjqcReveal {
	from { opacity: 0; transform: translate3d(0, 10px, 0); }
	to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes pmjqcMediaReveal {
	0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.92); }
	70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.015); }
	100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes pmjqcBadgeReveal {
	from { opacity: 0; transform: translate3d(0, 7px, 0) scale(.96); }
	to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes pmjqcQuantityReveal {
	0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); }
	70% { opacity: 1; transform: translate3d(0, -1px, 0) scale(1.008); }
	100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes pmjqcButtonSweep {
	0% { transform: skewX(-18deg) translateX(-220%); }
	100% { transform: skewX(-18deg) translateX(520%); }
}

@keyframes pmjqcSuccess {
	0% { transform: scale(1); }
	45% { transform: scale(.985); }
	75% { transform: scale(1.012); }
	100% { transform: scale(1); }
}

@keyframes pmjqcDotSuccess {
	0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.38); }
	60% { transform: scale(1.35); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@keyframes pmjqcErrorNudge {
	0%, 100% { transform: translateX(0); }
	30% { transform: translateX(-4px); }
	60% { transform: translateX(3px); }
}

@keyframes pmjqcToastPop {
	0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(.97); }
	70% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.006); }
	100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (min-width: 640px) {
	.pmjqc-overlay {
		align-items: center;
		padding: 24px;
	}
	.pmjqc-dialog {
		width: min(560px, 100%);
		border-radius: 30px;
		box-shadow: 0 30px 90px rgba(0,0,0,.24);
		transform: translate3d(0, 18px, 0) scale(.975);
	}
	.pmjqc-overlay.is-open .pmjqc-dialog { transform: translate3d(0,0,0) scale(1); }
	.pmjqc-handle { display: none; }
	.pmjqc-top { padding: 28px 28px 15px; }
	.pmjqc-body { padding: 8px 28px 26px; }
	.pmjqc-product { grid-template-columns: 112px minmax(0,1fr); gap: 20px; }
	.pmjqc-media { width: 112px; border-radius: 24px; }
	.pmjqc-title { font-size: 22px; }
	.pmjqc-description { font-size: 13.5px; }
	.pmjqc-question { font-size: 30px; }
	.pmjqc-quantity-card { grid-template-columns: 58px minmax(0,1fr) 58px; padding: 8px; border-radius: 22px; }
	.pmjqc-qty-btn { width: 58px; height: 58px; border-radius: 17px; }
	.pmjqc-actions { margin-top: 18px; }
	.pmjqc-add { min-height: 60px; border-radius: 19px; font-size: 15px; }
}



/* v1.0.2 — richer transitions without sacrificing mobile performance */
.pmjqc-overlay.is-closing {
	pointer-events: none;
}

.pmjqc-overlay.is-closing .pmjqc-dialog {
	transform: translate3d(0, 46px, 0) scale(.985);
	opacity: 0;
}

.pmjqc-content {
	transform-origin: 50% 20%;
}

.pmjqc-content.is-entering {
	animation: pmjqcContentSwap .34s cubic-bezier(.2,.82,.24,1) both;
}

.pmjqc-content.is-leaving {
	animation: pmjqcContentLeave .16s ease both;
}

.pmjqc-handle {
	transition: width .25s ease, background-color .25s ease, opacity .25s ease;
}

.pmjqc-overlay.is-open .pmjqc-handle {
	animation: pmjqcHandleIntro .42s .08s cubic-bezier(.2,.82,.24,1) both;
}

.pmjqc-image {
	opacity: 0;
	transform: scale(.96);
	transition: opacity .28s ease, transform .4s cubic-bezier(.2,.82,.24,1);
}

.pmjqc-image.is-loaded {
	opacity: 1;
	transform: scale(1);
}

.pmjqc-media {
	transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.pmjqc-media:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(31, 39, 29, .08);
}

.pmjqc-badge {
	transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.pmjqc-badge:hover {
	transform: translateY(-1px);
}

[data-pmjqc-add-label] {
	transition: opacity .16s ease, transform .2s cubic-bezier(.2,.82,.24,1);
}

.pmjqc-add.is-loading .pmjqc-add__main {
	animation: pmjqcLoadingBreath .9s ease-in-out infinite alternate;
}

.pmjqc-dialog.is-confirmed {
	animation: pmjqcDialogConfirm .46s cubic-bezier(.2,.9,.25,1);
}

.pmjqc-dialog.is-confirmed .pmjqc-media {
	animation: pmjqcMediaConfirm .46s cubic-bezier(.2,.9,.25,1);
}

.pmjqc-continue {
	transition: color .18s ease, transform .18s ease, opacity .18s ease;
}
.pmjqc-continue:hover { color: var(--pmjqc-green-dark); }
.pmjqc-continue:active { transform: scale(.985); }

.pmjqc-close:focus-visible,
.pmjqc-qty-btn:focus-visible,
.pmjqc-add:focus-visible,
.pmjqc-continue:focus-visible {
	outline: 3px solid rgba(88,169,63,.22);
	outline-offset: 3px;
}

@keyframes pmjqcContentSwap {
	0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(.992); filter: blur(2px); }
	100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes pmjqcContentLeave {
	from { opacity: 1; transform: translate3d(0,0,0); }
	to { opacity: 0; transform: translate3d(0,-5px,0); }
}

@keyframes pmjqcHandleIntro {
	0% { width: 24px; opacity: 0; transform: translateY(-3px); }
	100% { width: 42px; opacity: 1; transform: translateY(0); }
}

@keyframes pmjqcLoadingBreath {
	from { opacity: .66; transform: translateX(0); }
	to { opacity: 1; transform: translateX(2px); }
}

@keyframes pmjqcDialogConfirm {
	0%, 100% { transform: translate3d(0,0,0) scale(1); }
	45% { transform: translate3d(0,-2px,0) scale(1.008); }
}

@keyframes pmjqcMediaConfirm {
	0%,100% { transform: scale(1); }
	45% { transform: scale(1.045) rotate(-1deg); }
}

@media (min-width: 640px) {
	.pmjqc-overlay.is-closing .pmjqc-dialog {
		transform: translate3d(0, 14px, 0) scale(.97);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmjqc-overlay,
	.pmjqc-overlay *,
	.pmjqc-toast {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
	.pmjqc-skeleton__line::after,
	.pmjqc-skeleton__box::after,
	.pmjqc-add::after { animation: none !important; }
}

/* Feedback visual sutil en el botón original, sin alterar su diseño base. */
.petmeal-jet-quick-cart .pmjqc-source-success,
.petmeal-jet-quick-cart.pmjqc-source-success {
	animation: pmjqcSourceSuccess .42s ease-out;
}

@keyframes pmjqcSourceSuccess {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(.97); }
}
