/* ============ Quickview 弹窗（固定规格 1200px）============ */
/* 弹窗必须在最上层(购物车抽屉 1050 之上) */
#merc-quickview.modal {
	z-index: 2500;
}
.merc-qv-dialog {
	max-width: 1200px;
}
.merc-qv-content {
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 18px);
	overflow-y: auto; /* 整个弹窗滚动,商品区永远完整显示 */
}
.merc-qv-close {
	background: transparent;
	border: 0;
	color: #8a857c;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0;
}
.merc-qv-close:hover {
	color: var(--merc-hover);
}
.merc-qv-topbar {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding: 14px 24px 0;
}
.merc-qv-topbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.merc-qv-share {
	background: none;
	border: 0;
	color: #8a857c;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}
.merc-qv-share:hover {
	color: var(--merc-hover);
}
.merc-qv-crumb {
	color: var(--merc-hover);
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.merc-qv-crumb a {
	color: var(--merc-hover);
	text-decoration: none;
}
.merc-qv-crumb a:hover {
	text-decoration: underline;
}
.merc-qv-crumb__sep {
	margin: 0 6px;
	color: #b8b2a8;
}
.merc-qv-crumb__cur {
	color: var(--merc-chocolat);
}
.merc-qv-share svg {
	width: 24px;
	height: 24px;
}
.merc-qv-disclaimer {
	border-top: 1px solid var(--merc-border);
	background: transparent;
	color: #8a857c;
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 28px 14px;
	flex-shrink: 0;
}
.merc-qv-body {
	padding: 20px 28px 0;
	flex-shrink: 0; /* 商品区完整显示,不在内部滚动(2026-08-23 Marc 要求) */
}
.merc-qv-main {
	display: flex;
	gap: 28px;
	padding-bottom: 20px;
}
.merc-qv-related {
	margin: 8px 0 0;
	padding: 0 28px 14px;
	position: relative;
}
.merc-qv-related-title {
	color: var(--merc-chocolat);
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 6px;
}
.merc-qv-related-wrap {
	position: relative;
}
.merc-qv-related-track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 14px 15px 18px;
	scroll-behavior: smooth;
}
.merc-qv-left {
	flex: 0 0 40%;
}
.merc-qv-img-main {
	background: transparent;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}
.merc-qv-img-main img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	cursor: zoom-in;
	transform-origin: 50% 50%;
	transition: transform 0.12s ease-out;
}
/* 框内 hover 放大+跟随平移(对标 Mercadona, 2026-08-26) */
.merc-qv-img-main.is-zoom img {
	transform: scale(2);
}
.merc-qv-noimg {
	padding: 60px 20px;
	text-align: center;
	color: #8a857c;
}
.merc-qv-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}
.merc-qv-thumb {
	background: #f7f4ef;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	height: 64px;
	overflow: hidden;
	padding: 0;
	width: 64px;
}
.merc-qv-thumb.is-active {
	border-color: var(--merc-hover);
}
.merc-qv-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}
.merc-qv-right {
	flex: 1;
}
.merc-qv-name {
	color: var(--merc-chocolat);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 6px;
}
.merc-qv-format {
	color: #8a857c;
	font-size: 13px;
	margin-bottom: 12px;
}
.merc-qv-price {
	color: var(--merc-chocolat);
	font-size: 26px;
	font-weight: 800;
	margin-bottom: 2px;
}
.merc-qv-price-unit {
	color: #8a857c;
	font-size: 13px;
	margin-bottom: 14px;
}
.merc-qv-desc {
	color: #4a453e;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}
.merc-qv-right .merc-add-capsule {
	max-width: 240px;
	margin: 0 0 12px;
}
.merc-qv-picker {
	justify-content: flex-start;
	max-width: 240px;
	margin-bottom: 12px;
}
.merc-qv-full {
	color: var(--merc-hover);
	font-size: 14px;
	text-decoration: none;
}
.merc-qv-full:hover {
	text-decoration: underline;
}

/* 弹窗特征折叠区 (营养/成分/过敏原/保存) */
.merc-qv-features {
	margin: 0 0 16px;
	border-top: 1px solid var(--merc-border, #ececec);
}
.merc-qv-feature {
	border-bottom: 1px solid var(--merc-border, #ececec);
}
.merc-qv-feature summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #4a453e;
	padding: 10px 0;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.merc-qv-feature summary::-webkit-details-marker {
	display: none;
}
.merc-qv-feature summary::after {
	content: '+';
	font-size: 15px;
	color: #9a948a;
}
.merc-qv-feature[open] summary::after {
	content: '−';
}
.merc-qv-feature__body {
	font-size: 13px;
	line-height: 1.6;
	color: #4a453e;
	padding: 0 0 12px;
	white-space: pre-line;
}
.merc-qv-feature__body p {
	margin: 0 0 8px;
}

/* 相关商品横滑 */
.merc-qv-related-arrow {
	align-items: center;
	background: #fff;
	border: 1px solid var(--merc-border);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(59, 57, 53, 0.15);
	color: var(--merc-text);
	cursor: pointer;
	display: flex;
	height: 36px;
	justify-content: center;
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 36px;
	z-index: 5;
}
.merc-qv-related-arrow:hover {
	border-color: var(--merc-hover);
	color: var(--merc-hover);
}
.merc-qv-related-arrow.prev {
	left: -14px;
}
.merc-qv-related-arrow.next {
	right: -14px;
}
.merc-qv-related-arrow svg {
	display: block;
}
.merc-qv-related-card {
	flex: 0 0 210px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.merc-qv-related-card:hover {
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}
.merc-qv-related-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.merc-qv-related-link:hover {
	color: inherit;
	text-decoration: none;
}
.merc-qv-related-img {
	background: var(--merc-img-bg, #F5F5F5);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	display: block;
	overflow: hidden;
	padding: 8px;
	margin: 6px 6px 0;
	width: auto;
	box-sizing: border-box;
}
.merc-qv-related-img img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 8px;
}
.merc-qv-related-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	margin: 2px 12px 4px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	min-height: 38px;
	color: var(--merc-chocolat);
}
.merc-qv-related-price {
	display: block;
	font-size: 18px;
	font-weight: 800;
	margin: 0 12px 8px;
	color: var(--merc-chocolat);
}
.merc-qv-related-format {
	display: block;
	font-size: 12px;
	color: #8a857c;
	margin: 0 12px 4px;
}
.merc-qv-card-add {
	height: 39px !important;
	font-size: 15px;
	line-height: 39px;
	margin: 0 14px 14px !important;
	width: calc(100% - 28px) !important;
	box-sizing: border-box;
}
/* 相关商品卡 En carro 数量选择器 */
.merc-rel-picker {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 0 14px 14px;
	padding: 0;
}
.merc-rel-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--merc-deepgreen);
}
.merc-rel-picker .merc-qty-btn {
	height: 36px;
	width: 36px;
	font-size: 18px;
}
.merc-rel-qty {
	font-size: 16px;
	font-weight: 700;
	min-width: 22px;
	text-align: center;
}

.merc-qv-zoom {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
}
.merc-qv-zoom img {
	max-width: 92vw;
	max-height: 92vh;
	object-fit: contain;
}
.merc-qv-zoom__close {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 40px;
	line-height: 1;
	position: absolute;
	right: 24px;
	top: 16px;
}

/* ============ 邮编门禁弹窗 ============ */
.merc-postal-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.merc-postal-modal__box {
	background: #fff;
	border-radius: 12px;
	max-width: 420px;
	padding: 32px;
	position: relative;
	width: 100%;
}
.merc-postal-modal__close {
	background: none;
	border: 0;
	color: #8a857c;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 12px;
}
.merc-postal-modal__close:hover {
	color: var(--merc-hover);
}
.merc-postal-modal__title {
	color: var(--merc-chocolat);
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 10px;
}
.merc-postal-modal__btn {
	background: #fff;
	border: 1.5px solid var(--merc-add);
	border-radius: 8px;
	color: var(--merc-add);
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	padding: 0 20px;
}
.merc-postal-modal__btn:hover {
	background: var(--merc-add);
	color: #fff;
}
/* 空输入禁用态(新建列表弹窗):灰底灰字不可点 */
.merc-postal-modal__btn[disabled] {
	background: #f0f0ee;
	border-color: #c9c6c1;
	color: #c9c6c1;
	cursor: not-allowed;
}
.merc-postal-modal__btn[disabled]:hover {
	background: #f0f0ee;
	color: #c9c6c1;
}
/* 新建列表弹窗副标题 */
.merc-newlist-modal__sub {
	color: #8a857c;
	font-size: 14px;
	margin: 0 0 4px;
}
.merc-postal-modal__msg {
	font-size: 13px;
	margin-top: 12px;
	min-height: 18px;
}
.merc-postal-modal__msg.is-error {
	color: var(--merc-tomato);
}
.merc-postal-modal__support {
	margin-top: 16px;
	border-top: 1px solid var(--merc-border);
	padding-top: 14px;
}
.merc-postal-modal__support a {
	color: #6b675f;
	font-size: 13px;
	text-decoration: none;
}
.merc-postal-modal__support a:hover {
	color: var(--merc-hover);
}

/* ============ 登录弹窗（Mercadona 风格） ============ */
.merc-auth-modal {
	align-items: center;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	height: 100vh;
	justify-content: center;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
	z-index: 2000;
}
.merc-auth-modal__box {
	background: #fff;
	border-radius: 16px;
	max-width: 440px;
	padding: 28px 32px;
	position: relative;
	width: 90%;
}
.merc-auth-modal__close {
	background: #f0ece5;
	border: 0;
	border-radius: 50%;
	color: var(--merc-chocolat);
	cursor: pointer;
	font-size: 16px;
	height: 30px;
	line-height: 30px;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 30px;
}
.merc-auth-modal__title {
	color: var(--merc-chocolat);
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 6px;
	text-align: center;
}
.merc-auth-modal__sub {
	color: #8a857c;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 18px;
	text-align: center;
}
.merc-auth-modal__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.merc-auth-modal__opt {
	align-items: center;
	border: 1px solid var(--merc-border);
	border-radius: 10px;
	background: #fff;
	color: var(--merc-chocolat);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	justify-content: center;
	padding: 12px 16px;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.merc-auth-modal__opt:hover {
	border-color: var(--merc-hover);
	background: #faf8f4;
}
.merc-auth-modal__opt--apple svg {
	color: #000;
}
.merc-auth-modal__x {
	color: #6b6966;
	font-size: 16px;
	font-weight: 700;
}
.merc-auth-modal__tos {
	color: #8a857c;
	font-size: 11px;
	line-height: 1.5;
	margin: 18px 0 0;
	text-align: center;
}
.merc-auth-modal__tos a {
	color: var(--merc-hover);
	text-decoration: none;
}

/* email 弹窗 */
.merc-email-modal__box {
	max-width: 400px;
}
.merc-email-modal__label {
	color: var(--merc-chocolat);
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
}
.merc-email-modal__box input[type="email"] {
	border: 1px solid var(--merc-border);
	border-radius: 10px;
	box-sizing: border-box;
	font-size: 15px;
	height: 46px;
	padding: 0 14px;
	width: 100%;
}
.merc-email-modal__actions {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
}
.merc-email-modal__back {
	background: transparent;
	border: 0;
	color: #6b6966;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 0;
}
.merc-email-modal__back:hover {
	color: var(--merc-chocolat);
}
.merc-email-modal__go {
	background: var(--merc-button);
	border: 0;
	border-radius: 22px;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 26px;
}
.merc-email-modal__go:hover {
	background: var(--merc-button-dark);
}

.merc-profile-row--link {
	cursor: pointer;
	text-decoration: none;
	transition: background 0.12s ease;
}
.merc-profile-row--link:hover {
	background: #faf8f4;
}
.merc-profile-row__chev {
	color: #b8b2a8;
	font-size: 22px;
	font-weight: 700;
}
