@charset "utf-8";
/***!  /templates/flex/css/sibmet-minicart.css?25c4dc3c0912dd04a945f718c0baa884  !***/

/*
 * Мини-корзина sibmet.com - иконка в шапке и боковая панель.
 * 23.09.2026. Подключается из templates/flex/html/mod_virtuemart_cart/default.php.
 */

.sm-mc-module,
.sm-mc {
	--mc-accent: #22a9e1;
	--mc-accent-dark: #1689b9;
	--mc-text: #1f2933;
	--mc-muted: #6b7785;
	--mc-line: #e3e8ee;
	--mc-soft: #f4f7fa;
	--mc-danger: #d64545;
}

/* ---------- иконка в шапке ---------- */

.sm-mc-module #cd-menu-trigger {
	position: relative;
	text-decoration: none;
}
.sm-mc-module #cd-menu-trigger:focus-visible {
	outline: 2px solid var(--mc-accent);
	outline-offset: -4px;
}
.sm-mc-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -22px 0 0 6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--mc-accent);
	color: #fff;
	font: 700 12px/20px "Open Sans", Arial, sans-serif;
	text-align: center;
	box-shadow: 0 0 0 2px #303030; /* отделяет кружок от иконки на тёмной шапке */
	pointer-events: none;
}
.sm-mc-badge[hidden] { display: none; }

/* ---------- слой и панель ---------- */

html.sm-mc-lock,
html.sm-mc-lock body { overflow: hidden; }

.sm-mc[hidden] { display: none !important; }

.sm-mc,
.sm-mc *,
.sm-mc *::before,
.sm-mc *::after { box-sizing: border-box; }

.sm-mc {
	position: fixed;
	inset: 0;
	z-index: 10050;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--mc-text);
}
.sm-mc__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 32, .5);
	opacity: 0;
	transition: opacity .25s ease;
}
.sm-mc__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 420px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: -8px 0 32px rgba(0, 0, 0, .18);
	transform: translateX(100%);
	transition: transform .25s ease;
	outline: none;
}
.sm-mc.is-open .sm-mc__backdrop { opacity: 1; }
.sm-mc.is-open .sm-mc__panel { transform: none; }

@media (prefers-reduced-motion: reduce) {
	.sm-mc__backdrop,
	.sm-mc__panel { transition: none; }
}

/* шапка панели */
.sm-mc__head {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 16px 16px 24px;
	border-bottom: 1px solid var(--mc-line);
}
.sm-mc .sm-mc__title {
	margin: 0;
	font: 600 22px/1.2 "Open Sans", Arial, sans-serif;
	color: var(--mc-text);
	text-transform: none;
	letter-spacing: 0;
}
.sm-mc__meta {
	flex: 1;
	font-size: 14px;
	color: var(--mc-muted);
	white-space: nowrap;
}
.sm-mc__close {
	flex: none;
	width: 40px;
	height: 40px;
	margin-left: auto;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mc-muted);
	cursor: pointer;
}
.sm-mc__close:hover { background: var(--mc-soft); color: var(--mc-text); }
.sm-mc__close:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: 0; }

/* список */
.sm-mc__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.sm-mc.is-busy .sm-mc__list { opacity: .55; pointer-events: none; transition: opacity .15s; }

.sm-mc__list {
	list-style: none;
	margin: 0;
	padding: 0 24px;
}
.sm-mc-item {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	padding: 16px 32px 16px 0;
	border-bottom: 1px solid var(--mc-line);
	transition: opacity .2s;
}
.sm-mc-item:last-child { border-bottom: 0; }
.sm-mc-item.is-removing { opacity: .3; }

.sm-mc-item__media {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 6px;
	background: var(--mc-soft);
	overflow: hidden;
}
.sm-mc-item__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}
.sm-mc-item__info { min-width: 0; }
.sm-mc .sm-mc-item__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--mc-text);
	text-decoration: none;
}
.sm-mc-item__kg { white-space: nowrap; font-weight: 400; color: var(--mc-muted); }
.sm-mc a.sm-mc-item__name:hover { color: var(--mc-accent-dark); text-decoration: underline; }
.sm-mc-item__price {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	color: var(--mc-muted);
}
.sm-mc-item__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-top: 10px;
}
.sm-mc-item__approx {
	font-size: 12px;
	color: var(--mc-muted);
	white-space: nowrap;
}
.sm-mc-item__sum {
	margin-left: auto;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}
.sm-mc-item__del {
	position: absolute;
	top: 12px;
	right: -6px;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9aa5b1;
	cursor: pointer;
}
.sm-mc-item__del:hover { color: var(--mc-danger); background: #fdeeee; }
.sm-mc-item__del:focus-visible { outline: 2px solid var(--mc-accent); }

/* количество */
.sm-mc-qty {
	display: inline-flex;
	align-items: center;
	height: 34px;
	border: 1px solid #cfd8e1;
	border-radius: 6px;
	background: #fff;
}
.sm-mc-qty__btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mc-text);
	font: 400 18px/1 Arial, sans-serif;
	cursor: pointer;
}
.sm-mc-qty__btn:hover:not(:disabled) { color: var(--mc-accent-dark); background: var(--mc-soft); }
.sm-mc-qty__btn:disabled { color: #c3ccd5; cursor: default; }
.sm-mc-qty__btn:focus-visible { outline: 2px solid var(--mc-accent); outline-offset: -2px; }
.sm-mc .sm-mc-qty__input {
	width: 36px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: var(--mc-text);
	font: 600 14px/32px "Open Sans", Arial, sans-serif;
	text-align: right;
	-moz-appearance: textfield;
	appearance: textfield;
}
.sm-mc-qty__input::-webkit-outer-spin-button,
.sm-mc-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sm-mc-qty__input:focus { outline: none; }
.sm-mc-qty:focus-within { border-color: var(--mc-accent); box-shadow: 0 0 0 2px rgba(34, 169, 225, .2); }
.sm-mc-qty__unit {
	padding: 0 4px 0 3px;
	font-size: 14px;
	color: var(--mc-muted);
}

/* ошибка и пустая корзина */
.sm-mc__error {
	margin: 16px 24px 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdeeee;
	color: #9b2c2c;
	font-size: 13px;
	line-height: 1.45;
}
.sm-mc__error a { color: inherit; font-weight: 600; }
.sm-mc__error[hidden],
.sm-mc__empty[hidden],
.sm-mc__foot[hidden],
.sm-mc__list[hidden] { display: none; }

.sm-mc__empty {
	padding: 56px 32px;
	text-align: center;
	color: var(--mc-muted);
}
.sm-mc__empty svg { color: #c3ccd5; }
.sm-mc__empty-title {
	margin: 14px 0 6px;
	font-size: 18px;
	font-weight: 600;
	color: var(--mc-text);
}
.sm-mc__empty-text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
}
.sm-mc__phone {
	display: inline-block;
	margin-top: 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--mc-text);
	text-decoration: none;
}
.sm-mc__phone:hover { color: var(--mc-accent-dark); }

/* низ панели */
.sm-mc__foot {
	flex: none;
	padding: 16px 24px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--mc-line);
	background: #fff;
}
.sm-mc__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 16px;
}
.sm-mc__sum { font-size: 22px; font-weight: 700; }
.sm-mc__note {
	margin: 4px 0 14px;
	font-size: 13px;
	color: var(--mc-muted);
}

/* кнопки */
.sm-mc .sm-mc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: 600 15px/1.2 "Open Sans", Arial, sans-serif;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.sm-mc .sm-mc__btn + .sm-mc__btn { margin-top: 8px; }
.sm-mc .sm-mc__btn--primary { background: var(--mc-accent); color: #fff; }
.sm-mc .sm-mc__btn--primary:hover,
.sm-mc .sm-mc__btn--primary:focus { background: var(--mc-accent-dark); color: #fff; }
.sm-mc .sm-mc__btn--ghost { background: #fff; color: var(--mc-text); border-color: #cfd8e1; }
.sm-mc .sm-mc__btn--ghost:hover { border-color: var(--mc-accent); color: var(--mc-accent-dark); }
.sm-mc .sm-mc__btn:focus-visible { outline: 2px solid var(--mc-text); outline-offset: 2px; }
.sm-mc__empty .sm-mc__btn { max-width: 260px; margin: 0 auto; }

/* ---------- телефон ---------- */

@media (max-width: 480px) {
	.sm-mc__panel { width: 100%; }
	.sm-mc__head { padding: 14px 8px 12px 16px; }
	.sm-mc .sm-mc__title { font-size: 20px; }
	.sm-mc__list { padding: 0 16px; }
	.sm-mc__foot { padding-left: 16px; padding-right: 16px; }
	.sm-mc__error { margin-left: 16px; margin-right: 16px; }
	.sm-mc-item { grid-template-columns: 56px 1fr; gap: 12px; }
	.sm-mc-item__media { width: 56px; height: 56px; }
}
