/* ============================================================
 * MEK7 Sticky Add-to-Cart — mister-mx.de  (v1.0.0)
 * ============================================================ */

.mek7satc-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9997;
	background: #ffffff;
	border-top: 1px solid #e0e0e0;
	box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.07);
	padding: 10px 12px;
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	box-sizing: border-box;
	font-family: inherit;
	transform: translateY(110%);
	transition: none;
	will-change: transform;
}

.mek7satc-bar.mek7satc-ready {
	transition: transform 0.25s ease;
}

.mek7satc-bar.mek7satc-visible {
	transform: translateY(0);
}

/* Thumbnail */
.mek7satc-thumb-wrap {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
	border: 0.5px solid #e0e0e0;
	background: #f7f7f7;
}
.mek7satc-thumb-wrap img,
.mek7satc-thumb-wrap .mek7satc-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Preis + Spar-Info */
.mek7satc-info {
	flex: 1;
	min-width: 0;
	line-height: 1.25;
}
.mek7satc-info .mek7satc-price {
	font-size: 15px;
	font-weight: 500;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mek7satc-info .mek7satc-price del {
	font-size: 12px;
	color: #999;
	font-weight: 400;
	margin-right: 4px;
}
.mek7satc-info .mek7satc-price ins {
	text-decoration: none;
	font-weight: 500;
}
.mek7satc-savings {
	font-size: 12px;
	font-weight: 500;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Mengen-Stepper */
.mek7satc-qty {
	display: flex;
	align-items: stretch;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	overflow: hidden;
	flex-shrink: 0;
	height: 38px;
}
.mek7satc-qty button {
	background: #f5f5f5;
	border: none;
	width: 32px;
	font-size: 18px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 0;
	font-weight: 500;
	touch-action: manipulation;
}
.mek7satc-qty button:hover { background: #ebebeb; }
.mek7satc-qty button:active { background: #e0e0e0; }
.mek7satc-qty-input {
	width: 38px;
	border: none;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	background: #fff;
	color: #222;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
	box-sizing: border-box;
}
.mek7satc-qty-input::-webkit-outer-spin-button,
.mek7satc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Button */
.mek7satc-btn {
	border: none;
	padding: 0 16px;
	height: 40px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	transition: filter 0.15s ease;
	line-height: 1;
	font-family: inherit;
}
.mek7satc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.mek7satc-btn.mek7satc-added {
	background: #2e7d32 !important;
}
.mek7satc-btn.mek7satc-loading .mek7satc-btn-label {
	opacity: 0.4;
}

/* Engere Viewports: kompakter */
@media (max-width: 420px) {
	.mek7satc-bar { gap: 6px; padding: 8px 10px; }
	.mek7satc-btn { min-width: 80px; padding: 0 10px; font-size: 12px; }
	.mek7satc-info .mek7satc-price { font-size: 14px; }
	.mek7satc-savings { font-size: 11px; }
	.mek7satc-qty button { width: 28px; }
	.mek7satc-qty-input { width: 32px; }
}
