/* ===== КОРЗИНА — стиль «платина», как страница шаблонов ===== */

/* Атрибут hidden сильнее любых display: flex/grid */
[hidden] {
	display: none !important;
}

:root {
	--plat-1: #ffffff;
	--plat-2: #dfe4ea;
	--plat-3: #aeb7c2;
	--glow: rgba(198, 210, 226, 0.13);
	--card-bg: #161618;
	--line: #2a2b2e;
	--line-soft: #232326;
}

.cart-page {
	border-left: 1px solid #3c3c3c;
	border-right: 1px solid #3c3c3c;
	border-top: 1px solid #3c3c3c;
	border-bottom: 1px solid #3c3c3c;
	min-height: 100dvh;
	padding: 30px 44px 64px;
	background:
		radial-gradient(90% 30% at 50% 0%, rgba(198, 210, 226, 0.04), transparent 70%),
		#111;
}

/* ===== Шапка ===== */
.cart-head-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cart-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #9aa2ad;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.cart-back:hover {
	color: #ffffff;
}

.cart-back svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cart-title {
	color: white;
	font-family: "Vetrino";
	font-size: 46px;
	font-weight: 400;
	margin: 26px 0 0;
	line-height: 1.1;
}

.cart-subtitle {
	display: block;
	color: #7f858d;
	font-family: "SF Pro Display";
	font-size: 15px;
	margin-top: 10px;
}

/* ===== Пустая корзина ===== */
.cart-empty {
	text-align: center;
	padding: 90px 20px 110px;
}

.cart-empty-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 22px;
	background: var(--card-bg);
	border: 1px solid var(--line);
}

.cart-empty-icon svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: #8c95a1;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cart-empty h2 {
	color: white;
	font-family: "Vetrino";
	font-size: 30px;
	font-weight: 400;
	margin: 0 0 12px;
}

.cart-empty p {
	color: #9a9a9a;
	font-family: "SF Pro Display";
	font-size: 16px;
	margin: 0 0 30px;
}

.cart-empty-btn {
	display: inline-block;
	color: #111111;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 14px 34px;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.cart-empty-btn:hover {
	background-color: #e2e2e2;
}

/* ===== Тело: товары + оформление ===== */
.cart-body {
	display: grid;
	grid-template-columns: 1fr 430px;
	gap: 28px;
	align-items: start;
	margin-top: 34px;
}

/* Список товаров */
.cart-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cart-item {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
	transition: border-color 0.35s ease;
}

.cart-item:hover {
	border-color: rgba(198, 210, 226, 0.35);
}

.ci-thumb {
	flex-shrink: 0;
	width: 132px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--line);
}

.ci-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ci-info {
	flex: 1;
	min-width: 0;
}

.ci-cat {
	color: #8c95a1;
	font-family: "SF Pro Display";
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 6px;
}

.ci-title {
	color: white;
	font-family: "Vetrino";
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0;
}

.ci-price {
	flex-shrink: 0;
	color: white;
	font-family: "Vetrino";
	font-size: 24px;
	white-space: nowrap;
}

.ci-remove {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

.ci-remove:hover {
	border-color: #b05252;
	background: rgba(176, 82, 82, 0.12);
}

.ci-remove svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: #9aa2ad;
	stroke-width: 1.8;
	stroke-linecap: round;
	transition: stroke 0.3s ease;
}

.ci-remove:hover svg {
	stroke: #e08585;
}

/* ===== Карточка оформления ===== */
.cart-side {
	position: sticky;
	top: 24px;
}

.order-card {
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 30px 28px;
}

.order-title {
	color: white;
	font-family: "Vetrino";
	font-size: 26px;
	font-weight: 400;
	margin-bottom: 22px;
}

.order-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line-soft);
}

.order-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
}

.order-row span {
	color: #9c9c9c;
	font-family: "SF Pro Display";
	font-size: 14px;
	line-height: 1.4;
}

.order-row b {
	color: #d5d9de;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.order-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0 4px;
}

.order-total span {
	color: #9c9c9c;
	font-family: "SF Pro Display";
	font-size: 15px;
}

.order-total b {
	color: white;
	font-family: "Vetrino";
	font-size: 30px;
	font-weight: 400;
}

/* Поля */
.field {
	margin-top: 16px;
}

.field label {
	display: block;
	color: #8c95a1;
	font-family: "SF Pro Display";
	font-size: 13.5px;
	font-weight: 400;
	margin-bottom: 8px;
}

.field input {
	width: 100%;
	height: 48px;
	background-color: #111113;
	border: 1px solid #2f3033;
	border-radius: 10px;
	color: white;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 400;
	padding: 0 14px;
	outline: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field input::placeholder {
	color: #4c4f54;
}

.field input:focus {
	border-color: rgba(198, 210, 226, 0.55);
	box-shadow: 0 0 0 4px rgba(198, 210, 226, 0.06);
}

/* Чекбоксы согласий */
.consent-row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 22px;
	cursor: pointer;
}

.consent-row input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.consent-box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 7px;
	background-color: #111113;
	border: 1.5px solid #3a3b3e;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.consent-row:hover .consent-box {
	border-color: #5a7fd6;
}

.consent-box svg {
	width: 14px;
	height: 14px;
	display: block;
}

.consent-box svg path {
	fill: none;
	stroke: #ffffff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	transition: stroke-dashoffset 0.3s ease 0.05s;
}

/* Отмечено: синий фон, белая галочка прорисовывается (как на записи) */
.consent-row input:checked + .consent-box {
	background-color: #2f80ed;
	border-color: #2f80ed;
	box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.18);
	animation: consent-pop 0.3s ease;
}

.consent-row input:checked + .consent-box svg path {
	stroke-dashoffset: 0;
}

.consent-row input:focus-visible + .consent-box {
	border-color: #2f80ed;
	box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.25);
}

@keyframes consent-pop {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(0.85);
	}
	100% {
		transform: scale(1);
	}
}

.consent-text {
	color: #9a9a9a;
	font-family: "SF Pro Display";
	font-size: 13px;
	font-weight: 400;
	line-height: 1.55;
}

.consent-text a {
	color: #e4e8ed;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.3s ease;
}

.consent-text a:hover {
	color: white;
}

/* Кнопка оплаты (красная, Альфа — как на записи) */
.btn-pay {
	width: 100%;
	height: 56px;
	margin-top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #ffffff;
	background-color: #ef3124;
	border: none;
	border-radius: 11px;
	font-family: "SF Pro Display";
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.3s ease,
		opacity 0.3s ease;
}

.btn-pay:hover:not(:disabled) {
	background-color: #d62619;
}

.btn-pay:disabled {
	opacity: 0.4;
	cursor: default;
	background-color: #ef3124;
}

.btn-pay .alfa-ico {
	width: 22px;
	height: 22px;
}

.pay-error {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(176, 82, 82, 0.12);
	border: 1px solid rgba(176, 82, 82, 0.45);
	color: #e08585;
	font-family: "SF Pro Display";
	font-size: 13.5px;
	line-height: 1.5;
}

.pay-hint {
	margin-top: 14px;
	color: #6f767f;
	font-family: "SF Pro Display";
	font-size: 12.5px;
	line-height: 1.55;
}

/* ===== СТРАНИЦА «СПАСИБО» ===== */
.suc-wrap {
	max-width: 560px;
	margin: 0 auto;
	padding: 70px 0 40px;
	text-align: center;
}

.suc-icon {
	width: 86px;
	height: 86px;
	margin: 0 auto 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #ffffff;
}

.suc-icon svg {
	width: 40px;
	height: 40px;
	fill: none;
	stroke: #16181c;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.suc-title {
	color: white;
	font-family: "Vetrino";
	font-size: 40px;
	font-weight: 400;
	margin: 0 0 16px;
	line-height: 1.15;
}

.suc-text {
	color: #9a9a9a;
	font-family: "SF Pro Display";
	font-size: 15.5px;
	line-height: 1.65;
	margin: 0 0 32px;
}

.suc-text b {
	color: #e4e8ed;
	font-weight: 500;
}

.suc-card {
	text-align: left;
	margin-bottom: 32px;
}

.suc-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.suc-link {
	color: #9aa2ad;
	font-family: "SF Pro Display";
	font-size: 14.5px;
	transition: color 0.3s ease;
}

.suc-link:hover {
	color: white;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
	.cart-body {
		grid-template-columns: 1fr;
	}
	.cart-side {
		position: static;
	}
}

@media (max-width: 700px) {
	.cart-page {
		padding: 22px 14px 44px;
	}
	.cart-title {
		font-size: 34px;
	}
	.cart-item {
		flex-wrap: wrap;
		gap: 14px;
	}
	.ci-thumb {
		width: 100%;
		height: 130px;
	}
	.ci-info {
		flex: 1 1 60%;
	}
	.order-card {
		padding: 24px 18px;
	}
}
