/* Корзина se-doors.ru — цвета и скругления как у карточек каталога */
.sd-cart-add {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 8px;
	padding: 10px 12px;
	background: #fff;
	color: #3BA620;
	border: 2px solid #3BA620;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.sd-cart-add:hover,
.sd-cart-add:focus { background: #3BA620; color: #fff; outline: none; }
.sd-cart-add--done,
.sd-cart-add--done:hover { background: #3BA620; color: #fff; }
.sd-cart-add--detail {
	max-width: 300px;
	margin: 0 auto;
	padding: 13px 0;
	font-size: 16px;
}
.sd-cart-note { font-size: 13px; color: #666; text-align: center; margin-top: 6px; }
.sd-cart-note:empty { display: none; }

/* шапка */
.sd-cart-header { display: flex; align-items: center; }
.sd-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 2px solid #3BA620;
	border-radius: 10px;
	color: #3BA620 !important;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
}
.sd-cart-link:hover { background: #3BA620; color: #fff !important; }
.sd-cart-link svg { width: 22px; height: 22px; }
.sd-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #e53935;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.sd-cart-link .sd-cart-count { position: absolute; top: -9px; left: 26px; }
.sd-cart-link .sd-cart-count--empty { background: #bbb; }

/* плавающая кнопка на телефоне */
.sd-cart-fab {
	position: fixed;
	right: 16px;
	bottom: 90px;
	z-index: 100001;
	display: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #3BA620;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.sd-cart-fab svg { width: 26px; height: 26px; }
.sd-cart-fab .sd-cart-count { position: absolute; top: -2px; right: -2px; }
@media (max-width: 991px) {
	.sd-cart-fab--show { display: flex; }
	.sd-cart-header { display: none; }
}

/* уведомление */
.sd-cart-toast {
	position: fixed;
	right: 20px;
	top: 110px;
	z-index: 100002;
	width: 300px;
	max-width: calc(100% - 40px);
	padding: 16px 18px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0,0,0,.18);
	border-left: 5px solid #3BA620;
	transform: translateY(-20px);
	opacity: 0;
	pointer-events: none;
	transition: all .25s ease;
}
.sd-cart-toast--show { transform: none; opacity: 1; pointer-events: auto; }
.sd-cart-toast__title { font-weight: 700; color: #3BA620; margin-bottom: 4px; }
.sd-cart-toast__name { font-size: 14px; color: #333; margin-bottom: 10px; }
.sd-cart-toast__btn,
.sd-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #3BA620;
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
}
.sd-cart-toast__btn:hover, .sd-btn:hover { background: #2f8a19; }
.sd-btn--big { padding: 14px 28px; font-size: 17px; }
.sd-btn[disabled] { opacity: .6; cursor: default; }

/* страница корзины */
#sd-cart-page { margin: 10px 0 40px; }
.sd-basket-empty, .sd-basket-done { padding: 40px 20px; text-align: center; background: #f9f9f9; border-radius: 16px; }
.sd-basket-empty p, .sd-basket-done p { font-size: 17px; margin-bottom: 18px; }
.sd-basket-row {
	display: grid;
	grid-template-columns: 110px 1fr 130px 120px 32px;
	align-items: center;
	gap: 18px;
	padding: 16px;
	margin-bottom: 14px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.sd-basket-img { display: block; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; background: #f9f9f9; }
.sd-basket-img img { width: 100%; height: 100%; object-fit: cover; }
.sd-basket-name { font-size: 17px; font-weight: 600; color: #222; }
.sd-basket-opts { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: #777; }
.sd-basket-price { margin-top: 6px; font-size: 14px; color: #555; }
.sd-basket-qty { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; width: 120px; }
.sd-basket-qty button { width: 36px; height: 40px; border: none; background: #f4f4f4; font-size: 20px; cursor: pointer; }
.sd-basket-qty button:hover { background: #e6f4e2; color: #3BA620; }
.sd-basket-qty input { width: 48px; height: 40px; border: none; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.sd-basket-qty input::-webkit-outer-spin-button,
.sd-basket-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sd-basket-sum { font-size: 19px; font-weight: 700; color: #3BA620; text-align: right; white-space: nowrap; }
.sd-basket-del { width: 32px; height: 32px; border: none; background: none; color: #aaa; font-size: 26px; line-height: 1; cursor: pointer; }
.sd-basket-del:hover { color: #e53935; }
.sd-basket-total {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 16px;
	font-size: 20px;
}
.sd-basket-total b { color: #3BA620; font-size: 26px; }
.sd-basket-total span { color: #888; font-size: 15px; }
.sd-basket-clear { margin-left: 18px; border: none; background: none; color: #999; text-decoration: underline; cursor: pointer; font-size: 14px; }
.sd-basket-form { margin-top: 18px; padding: 24px; background: #f9f9f9; border-radius: 16px; }
.sd-basket-form h2 { margin: 0 0 16px; font-size: 22px; }
.sd-basket-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.sd-basket-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: #444; }
.sd-basket-fields label > span { display: block; }
.sd-basket-fields .sd-req { display: inline !important; color: #e53935; font-weight: 700; }
.sd-basket-fields input, .sd-basket-fields textarea {
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font: inherit;
	font-weight: 400;
	background: #fff;
}
.sd-basket-fields input:focus, .sd-basket-fields textarea:focus { border-color: #3BA620; outline: none; }
.sd-basket-fields .sd-wide { grid-column: 1 / -1; }
.sd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sd-basket-error { min-height: 22px; margin: 10px 0 4px; color: #e53935; font-weight: 600; }
.sd-basket-agree { margin-top: 12px; font-size: 13px; color: #888; }

@media (max-width: 767px) {
	.sd-basket-row { grid-template-columns: 80px 1fr 28px; gap: 10px 12px; padding: 12px; }
	.sd-basket-img { width: 80px; height: 80px; grid-row: span 2; }
	.sd-basket-info { grid-column: 2; }
	.sd-basket-del { grid-column: 3; grid-row: 1; align-self: start; }
	.sd-basket-qty { grid-column: 2; }
	.sd-basket-sum { grid-column: 2 / 4; text-align: left; }
	.sd-basket-fields { grid-template-columns: 1fr; }
	.sd-basket-total { justify-content: flex-start; font-size: 18px; }
	.sd-basket-clear { margin-left: 0; }
	.sd-btn--big { width: 100%; }
}

/* плитка главной и посадочных (catalog-v1) */
.sd-cart-add--tile { margin: 12px 0 0; }
@media (max-width: 767px) {
	.sd-cart-add--detail { max-width: none; }
}

/* Форма «Бесплатный вызов замерщика» внизу страниц — в стиле карточек сайта
   (только блок подвала .footer-feedback, всплывающее окно не трогаем) */
.footer-feedback {
	border: none !important;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,.06);
	padding: 24px 28px 8px !important;
	margin: 30px 0 40px;
}
.footer-feedback .modal-header { border: none; padding: 0 0 6px; }
.footer-feedback .modal-title { font-size: 22px; font-weight: 600; color: #222; }
.footer-feedback .modal-body { padding: 10px 0 0; }
.footer-feedback label { font-weight: 600; font-size: 14px; color: #444; margin-bottom: 6px; }
.footer-feedback .color-red { color: #e53935; }
.footer-feedback .form-control {
	height: 46px;
	padding: 11px 14px;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: none;
	font-size: 15px;
	background: #fff;
}
.footer-feedback .form-control:focus { border-color: #3BA620; box-shadow: 0 0 0 3px rgba(59,166,32,.12); }
.footer-feedback .margin-bottom-20 { margin-bottom: 4px; }
.footer-feedback p { font-size: 13px; color: #888; margin: 0; }
.footer-feedback .modal-footer { border: none; padding: 10px 0 18px; text-align: left; }
.footer-feedback .modal-footer .row { margin: 0; }
.footer-feedback .modal-footer [class*="col-"] { float: none; width: auto; margin: 0; padding: 0; }
.footer-feedback .btn-u {
	display: inline-block;
	width: auto;
	min-width: 220px;
	padding: 13px 28px;
	background: #3BA620 !important;
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	transition: background .2s ease;
}
.footer-feedback .btn-u:hover { background: #2f8a19 !important; }
@media (min-width: 768px) {
	.footer-feedback .modal-body > .row { display: flex; flex-wrap: wrap; }
	.footer-feedback .modal-body > .row > .col-md-12:nth-child(2),
	.footer-feedback .modal-body > .row > .col-md-12:nth-child(3) { width: 50%; }
	.footer-feedback .modal-body > .row > .col-md-12:nth-child(n+4) { width: 100%; }
}
@media (max-width: 767px) {
	.footer-feedback { padding: 18px 16px 4px !important; margin: 20px 0 30px; }
	.footer-feedback .btn-u { width: 100%; }
}

/* кнопка под итогом калькулятора в карточке */
.sd-cart-add--calc { max-width: 300px; margin: 14px auto 8px; padding: 13px 0; font-size: 16px; background: #3BA620; color: #fff; }
.sd-cart-add--calc:hover { background: #2f8a19; border-color: #2f8a19; }
@media (max-width: 767px) { .sd-cart-add--calc { max-width: none; } }
