/* =====================================================================
   NPO AT Quote Cart
   Часть 1. Единая карточка товара с кнопкой «Заказать»
   ===================================================================== */

.product-card-col {
	display: flex;
	margin-bottom: 32px;
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: #fff;
	border: 1px solid rgba(45, 45, 53, .1);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
	transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
	box-shadow: 0 18px 44px rgba(0, 0, 0, .09);
	transform: translateY(-2px);
}

.product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 250px;
	background: #fff;
	border-bottom: 1px solid rgba(45, 45, 53, .08);
	overflow: hidden;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
	display: block;
}

.product-card__body {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	padding: 16px 16px 4px;
}

.product-card__note {
	color: #FCA311;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.product-card__title {
	margin: 8px 0 0;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 700;
}

.product-card__title a {
	color: #2b2b30;
	text-decoration: none;
}

.product-card__title a:hover,
.product-card__title a:focus {
	color: #FCA311;
}

.product-card__excerpt {
	margin: 8px 0 0;
	color: #606060;
	font-size: 14px;
	line-height: 1.5;
}

.product-card__actions {
	margin-top: auto;
	padding: 12px 16px 0;
}

.product-card__order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-bottom: 24px;
	padding: 0 16px;
	border: 0;
	border-radius: 6px;
	background: #FCA311;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, filter .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.product-card__order:hover,
.product-card__order:focus {
	background: #FCA311;
	color: #fff;
	filter: brightness(.94);
}

.product-card__order:focus-visible,
.product-card__order--link:focus-visible,
.product-card__title a:focus-visible {
	outline: 2px solid #FCA311;
	outline-offset: 2px;
}

.product-card__order:disabled {
	cursor: default;
	opacity: .75;
	filter: none;
}

.product-card__order.is-loading {
	opacity: .75;
	pointer-events: none;
}

.product-card__order.is-added {
	background: #2b2b30;
	color: #fff;
}

.product-card__order.is-added:hover,
.product-card__order.is-added:focus {
	background: #2b2b30;
	filter: none;
	color: #fff;
}

.product-card__order.is-error {
	background: #c0392b;
}

.product-card__order--link:hover,
.product-card__order--link:focus {
	background: #FCA311;
	color: #fff;
}

.product-card__go-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin-top: 8px;
	padding: 0 16px;
	border: 1px solid #2b2b30;
	border-radius: 6px;
	color: #2b2b30;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}

.product-card__go-link:hover,
.product-card__go-link:focus {
	color: #FCA311;
	border-color: #FCA311;
}

.catalog-btn .product-card__go-link {
	width: auto;
	padding: 0 24px;
}

@media (max-width: 575px) {
	.product-card-col {
		margin-bottom: 26px;
	}

	.product-card__media {
		height: 180px;
	}

	.product-card__media img {
		padding: 12px;
	}
}

/* =====================================================================
   Часть 2. Страница «Ваш заказ»
   ===================================================================== */

.npo-quote-page {
	background: #f7f7f8;
	color: #2d2d35;
}

.npo-quote-page__container {
	width: min(1440px, calc(100% - 32px));
	margin: 0 auto;
	padding-top: 36px;
}

.npo-quote-page__title {
	margin: 0 0 28px;
	font-size: clamp(36px, 4vw, 58px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
}

.npo-quote-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 28px;
	align-items: start;
}

.npo-quote-page__main {
	background: #fff;
	border: 1px solid rgba(45, 45, 53, .12);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .045);
	overflow: hidden;
}

.npo-quote-page__side {
	display: grid;
	gap: 20px;
	align-content: start;
}

/* --- Позиция заказа --- */

.npo-quote-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 22px;
	border-bottom: 1px solid rgba(45, 45, 53, .1);
}

.npo-quote-item:last-child {
	border-bottom: 0;
}

.npo-quote-item__media {
	flex: 0 0 110px;
	width: 110px;
	height: 92px;
	background: #f5f5f6;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.npo-quote-item__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
	display: block;
}

.npo-quote-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.npo-quote-item__title {
	display: inline-block;
	color: #2d2d35;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.npo-quote-item__title:hover {
	color: #FCA311;
}

.npo-quote-item__meta {
	margin: 6px 0 0;
	color: #606060;
	font-size: 13px;
}

.npo-quote-item__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
}

.npo-quote-item__qty-label,
.npo-quote-item__comment-label {
	display: grid;
	gap: 6px;
}

.npo-quote-item__qty-label span,
.npo-quote-item__comment-label span {
	color: #606060;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.npo-quote-item__qty {
	width: 84px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid rgba(45, 45, 53, .2);
	border-radius: 6px;
	background: #fff;
	color: #2d2d35;
	font-weight: 600;
	font-size: 15px;
}

.npo-quote-item__comment {
	width: 100%;
	min-width: 240px;
	height: 40px;
	padding: 8px 10px;
	border: 1px solid rgba(45, 45, 53, .2);
	border-radius: 6px;
	background: #fff;
	color: #2d2d35;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
}

.npo-quote-item__actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.npo-quote-item__remove {
	padding: 0;
	border: 0;
	background: none;
	color: #a03a2e;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.npo-quote-item__remove:hover {
	color: #7d2b21;
}

.npo-quote-item__saving {
	color: #909090;
	font-size: 12px;
	min-height: 16px;
}

/* --- Форма заявки --- */

.npo-quote-form {
	background: #fff;
	border: 1px solid rgba(45, 45, 53, .12);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .045);
	padding: 24px;
}

.npo-quote-form__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
}

.npo-quote-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.npo-quote-form__field {
	display: grid;
	gap: 6px;
}

.npo-quote-form__field--wide {
	grid-column: 1 / -1;
}

.npo-quote-form__field span {
	color: #606060;
	font-size: 13px;
	font-weight: 600;
}

.npo-quote-form__field input,
.npo-quote-form__field textarea {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(45, 45, 53, .2);
	border-radius: 6px;
	background: #fff;
	color: #2d2d35;
	font-family: inherit;
	font-size: 14px;
}

.npo-quote-form__field textarea {
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

.npo-quote-form__field input:focus,
.npo-quote-form__field textarea:focus,
.npo-quote-item__qty:focus,
.npo-quote-item__comment:focus {
	outline: 2px solid rgba(252, 163, 17, .5);
	outline-offset: 0;
	border-color: #FCA311;
}

.npo-quote-form__field.has-error input,
.npo-quote-form__field.has-error textarea {
	border-color: #c0392b;
}

.npo-quote-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 16px;
	color: #606060;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}

.npo-quote-form__consent input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: #FCA311;
}

.npo-quote-form__note {
	margin: 10px 0 0;
	color: #909090;
	font-size: 12px;
}

.npo-quote-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin-top: 18px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: #FCA311;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	cursor: pointer;
	transition: filter .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.npo-quote-form__submit:hover {
	filter: brightness(.94);
}

.npo-quote-form__submit:disabled {
	opacity: .75;
	cursor: default;
}

.npo-quote-form__submit:focus-visible,
.npo-quote-item__remove:focus-visible {
	outline: 2px solid #FCA311;
	outline-offset: 2px;
}

.npo-quote-form__error {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid #e5b4ad;
	border-radius: 6px;
	background: #fdf1ef;
	color: #8f2f22;
	font-size: 14px;
}

.npo-quote-page__support {
	background: #fff;
	border: 1px solid rgba(45, 45, 53, .12);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .045);
	padding: 20px 24px;
}

.npo-quote-page__support-title {
	margin: 0 0 6px;
	font-weight: 700;
	font-size: 16px;
}

.npo-quote-page__support-text {
	margin: 0;
	color: #606060;
	font-size: 14px;
	line-height: 1.5;
}

/* --- Пустой заказ / успех --- */

.npo-quote-page__empty,
.npo-quote-page__success {
	max-width: 720px;
	padding: 44px;
	border-radius: 10px;
	background: #fff;
	color: #2d2d35;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .045);
}

.npo-quote-page__empty-title,
.npo-quote-page__success-title {
	margin: 0 0 10px;
	font-size: 28px;
	font-weight: 700;
}

.npo-quote-page__empty-text,
.npo-quote-page__success-text {
	max-width: 620px;
	margin: 0;
	color: #606060;
	font-size: 16px;
	line-height: 1.55;
}

.npo-quote-page__success-number {
	margin: 0 0 12px;
	color: #FCA311;
	font-size: 18px;
	font-weight: 700;
}

.npo-quote-page__continue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	margin-top: 22px;
	padding: 0 22px;
	border: 1px solid rgba(45, 45, 53, .22);
	border-radius: 6px;
	color: #2d2d35;
	font-weight: 600;
	text-decoration: none;
}

.npo-quote-page__continue:hover {
	border-color: #FCA311;
	color: #FCA311;
}

@media (max-width: 1100px) {
	.npo-quote-page__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.npo-quote-page__container {
		padding-top: 24px;
	}

	.npo-quote-item {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}

	.npo-quote-item__media {
		flex-basis: 90px;
		width: 90px;
		height: 76px;
	}

	.npo-quote-item__actions {
		align-items: flex-start;
		flex-direction: row;
	}

	.npo-quote-form__grid {
		grid-template-columns: 1fr;
	}

	.npo-quote-form__field--wide {
		grid-column: auto;
	}

	.npo-quote-page__empty,
	.npo-quote-page__success {
		padding: 28px 22px;
	}
}
