/* ===== Страница корзины /basket/ — Abrau Club ===== */

body:has(.basket-page) .main_banner_after_banner,
body:has(.basket-page) .main_banner {
	display: none !important;
}

body:has(.basket-page) .maintop_bnrs {
	margin-bottom: 0;
}

body:has(.basket-page) #breadcrumbs {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Фиксированная шапка: отступ через padding у main_content */
body:has(.basket-page) .main_content {
	padding-top: calc(136px + env(safe-area-inset-top, 0px));
}

body:has(.basket-page) .main_content .wrapper-inner.static_page {
	margin-top: 0 !important;
	max-width: 960px;
}

.basket-page {
	--bp-ink: #151515;
	--bp-muted: #7a7a7a;
	--bp-line: #e8e8e8;
	--bp-bg: #f6f6f6;
	--bp-card: #ffffff;
	--bp-radius: 0;
	--bp-ease: cubic-bezier(.22, 1, .36, 1);
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	max-width: 920px;
	margin: 0 auto 64px;
	padding: 0 20px;
}

.basket-page__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--bp-line);
}

.basket-page__title {
	margin: 0;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--bp-ink);
	line-height: 1.15;
}

.basket-page__clear {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 0;
	border: 1px solid var(--bp-line);
	background: transparent;
	color: var(--bp-muted);
	font-size: 13px;
	font-weight: 400;
	text-decoration: none;
	transition: border-color .2s var(--bp-ease), color .2s var(--bp-ease), background .2s var(--bp-ease);
}

.basket-page__clear:hover {
	border-color: var(--bp-ink);
	color: var(--bp-ink);
	background: var(--bp-bg);
	text-decoration: none;
}

/* Список товаров */
.basket-page #basket-root {
	opacity: 1 !important;
}

.basket-page .basket-items-list-wrapper {
	border: none;
	background: transparent;
}

.basket-page .basket-items-list-header {
	display: none !important;
}

.basket-page .basket-items-list {
	padding: 0;
	background: transparent;
}

.basket-page .basket-items-list-table tbody {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.basket-page .basket-items-list-item-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--bp-line) !important;
	border-radius: 0;
	background: var(--bp-card);
	box-shadow: 0 2px 12px rgba(21, 21, 21, .04);
	transition: box-shadow .2s var(--bp-ease);
}

.basket-page .basket-items-list-item-container:hover {
	box-shadow: 0 8px 24px rgba(21, 21, 21, .07);
}

.basket-page .basket-items-list-item-descriptions {
	width: auto;
	flex: 1 1 280px;
	min-width: 0;
	padding: 0;
}

.basket-page .basket-items-list-item-descriptions-inner {
	align-items: center;
	gap: 16px;
}

.basket-page .basket-item-image-link {
	margin-right: 0;
	border: none;
	border-radius: 0;
	overflow: hidden;
	background: var(--bp-bg);
	flex-shrink: 0;
}

.basket-page .basket-item-block-image {
	width: 88px;
	height: 110px;
	margin-right: 0;
	border-radius: 0;
	overflow: hidden;
}

.basket-page .basket-item-image {
	object-fit: contain;
	background: var(--bp-bg);
}

.basket-page .basket-item-info-name-link span,
.basket-page .basket-item-info-name span {
	color: var(--bp-ink) !important;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.basket-page .basket-item-info-name-link:hover span {
	color: var(--bp-ink);
	opacity: .75;
}

.basket-page .basket-items-list-item-price-for-one {
	padding: 0 16px;
}

.basket-page .basket-items-list-item-price-for-one .basket-item-price-current-text {
	font-size: 14px;
	color: var(--bp-muted);
}

.basket-page .basket-items-list-item-amount {
	padding: 0 12px;
}

.basket-page .basket-items-list-item-price:not(.basket-items-list-item-price-for-one) {
	padding: 0 8px 0 16px;
	text-align: right;
}

.basket-page .basket-item-price-current-text {
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 18px;
	font-weight: 400;
	color: var(--bp-ink);
}

.basket-page .basket-item-price-old-text {
	color: var(--bp-muted);
	font-size: 13px;
}

.basket-page .basket-items-list-item-remove {
	position: static;
	padding: 0 0 0 8px;
}

.basket-page .basket-item-actions-remove.close-btn {
	width: 36px;
	height: 36px;
	border-radius: 0;
	background: var(--bp-bg) !important;
	opacity: 1;
	transition: background .2s var(--bp-ease);
}

.basket-page .basket-item-actions-remove.close-btn:hover {
	background: var(--bp-line) !important;
}

.basket-page .product-item-quantity-block {
	border: 1px solid var(--bp-line);
	border-radius: 0;
	overflow: hidden;
	background: var(--bp-card);
}

/* Блок итогов */
.basket-page .basket-checkout-container {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"coupon coupon"
		"total btn";
	gap: 20px 24px;
	margin-top: 20px;
	padding: 22px 0;
	border: none;
	border-top: 1px solid var(--bp-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	align-items: end;
}

.basket-page .basket-checkout-container,
.basket-page .basket-checkout-container * {
	font-family: 'Futura New', 'Futura New Light', sans-serif;
}

.basket-page .basket-coupon-section {
	grid-area: coupon;
	width: 100%;
}

.basket-page .basket-checkout-section {
	grid-area: total;
	margin-left: 0;
}

.basket-page .basket-checkout-block-btn {
	grid-area: btn;
	margin-left: 0;
	align-self: end;
}

.basket-page .basket-checkout-block-total-title {
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--bp-muted);
}

.basket-page .basket-coupon-block-total-price-current {
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 400;
	color: var(--bp-ink);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.basket-page .basket-checkout-block-total-description {
	border-top-color: var(--bp-line);
}

.basket-page .basket-btn-checkout,
.basket-page .btn_checkout_custom.basket-btn-checkout {
	width: 220px;
	max-width: 100%;
	height: 52px;
	border-radius: 0 !important;
	background: var(--bp-ink) !important;
	border-color: var(--bp-ink) !important;
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.01em;
	transition: background .2s var(--bp-ease), transform .15s var(--bp-ease);
}

.basket-page .basket-btn-checkout:hover {
	background: #2a2a2a !important;
	border-color: #2a2a2a !important;
}

.basket-page .basket-btn-checkout:active {
	transform: scale(.98);
}

/* Промокод */
.basket-page .basket-page__promo-card {
	margin: 0 0 14px;
	padding: 16px 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.basket-page .basket-page__promo-title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--bp-ink);
}

.basket-page .basket-page__promo-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.basket-page .basket-page__promo-code {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px dashed #d0d0d0;
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .03em;
	color: var(--bp-ink);
	line-height: 1;
}

.basket-page .basket-page__promo-copy {
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--bp-line);
	border-radius: 0;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color .2s var(--bp-ease), background .2s var(--bp-ease);
}

.basket-page .basket-page__promo-copy:hover {
	border-color: var(--bp-ink);
	background: #fff;
}

.basket-page .basket-page__promo-apply {
	height: 38px !important;
	padding: 0 16px !important;
	min-width: 110px !important;
	border-radius: 0 !important;
	background: var(--bp-ink) !important;
	border-color: var(--bp-ink) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	letter-spacing: .01em;
}

.basket-page .basket-coupon-block-field-description {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--bp-muted);
	margin-bottom: 8px;
}

.basket-page .basket-coupon-section .form-control {
	height: 46px;
	border: 1px solid var(--bp-line);
	border-radius: 0;
	border-right: none;
	box-shadow: none;
	font-size: 14px;
	font-weight: 400;
	color: var(--bp-ink);
	padding: 0 14px;
}

.basket-page .basket-coupon-section .form-control:focus {
	border-color: var(--bp-ink);
}

.basket-page .basket-coupon-block-coupon-btn.btn_fill {
	width: auto;
	min-width: 120px;
	height: 46px;
	padding: 0 18px;
	border-radius: 0 !important;
	background: var(--bp-ink) !important;
	border-color: var(--bp-ink) !important;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .01em;
}

.basket-page .basket-coupon-alert {
	padding: 10px 0;
	border-radius: 0;
	background: transparent;
	font-size: 13px;
	line-height: 1.35;
}

.basket-page .basket-coupon-alert .basket-coupon-text,
.basket-page .basket-coupon-alert strong {
	font-size: 13px;
	font-weight: 400;
	color: var(--bp-ink);
}

.basket-page .basket-coupon-block-total-price-difference {
	font-size: 13px;
	font-weight: 400;
	color: var(--bp-muted);
	line-height: 1.3;
}

.basket-page .basket-coupon-block-total-price-old {
	font-size: 14px;
	font-weight: 400;
	color: var(--bp-muted);
	line-height: 1.25;
}

.basket-page .basket-checkout-block-total-description,
.basket-page .basket-checkout-block-total-description span {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--bp-muted);
}

/* Пустая корзина */
.basket-page .basket-page__empty {
	padding: 48px 20px 64px;
	text-align: center;
}

.basket-page .bx-sbb-empty-cart-image {
	width: 120px;
	height: 120px;
	margin-bottom: 24px;
	opacity: .85;
}

.basket-page .bx-sbb-empty-cart-text {
	font-family: 'Futura New', 'Futura New Light', sans-serif;
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 400;
	color: var(--bp-ink);
	margin-bottom: 12px;
}

.basket-page .bx-sbb-empty-cart-desc {
	font-size: 15px;
	color: var(--bp-muted);
	line-height: 1.5;
}

.basket-page .from-basket-to-catalog {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-top: 20px;
	padding: 0 28px;
	border-radius: 0 !important;
	background: var(--bp-ink) !important;
	border-color: var(--bp-ink) !important;
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}


.basket-page .basket-coupon-section .basket-personal-coupon-note {
	margin: 0 0 14px !important;
}

.basket-page .basket-checkout-container {
	margin-top: 16px;
}

/* Мобилка */
@media (max-width: 768px) {
	body:has(.basket-page) .main_content {
		padding-top: calc(102px + env(safe-area-inset-top, 0px));
	}

	body:has(.basket-page) .main_content .wrapper-inner.static_page {
		margin-top: 0 !important;
	}

	.basket-page {
		padding: 0 12px;
		margin-bottom: 48px;
	}

	.basket-page__head {
		align-items: center;
		margin-bottom: 18px;
		padding-bottom: 14px;
	}

	.basket-page__clear {
		height: 36px;
		padding: 0 14px;
		font-size: 12px;
	}

	.basket-page .basket-items-list-item-container {
		position: relative;
		padding: 14px 14px 14px 12px;
	}

	.basket-page .basket-items-list-item-descriptions {
		flex: 1 1 100%;
	}

	.basket-page .basket-items-list-item-descriptions-inner {
		align-items: flex-start;
	}

	.basket-page .basket-item-block-image {
		width: 72px;
		height: 92px;
	}

	.basket-page .basket-items-list-item-remove {
		position: absolute;
		top: 10px;
		right: 10px;
		padding: 0;
	}

	.basket-page .basket-items-list-item-price-for-one {
		padding: 10px 0 0;
		margin: 0;
	}

	.basket-page .basket-items-list-item-amount {
		padding: 10px 0 0;
		margin-right: 0;
	}

	.basket-page .basket-items-list-item-price:not(.basket-items-list-item-price-for-one) {
		padding: 10px 0 0;
		margin-left: auto;
	}

	.basket-page .basket-checkout-container {
		grid-template-columns: 1fr;
		grid-template-areas:
			"coupon"
			"total"
			"btn";
		gap: 16px;
		padding: 18px 0;
	}

	.basket-page .basket-checkout-section-inner {
		justify-content: space-between;
		width: 100%;
	}

	.basket-page .basket-checkout-block-btn,
	.basket-page .basket-btn-checkout {
		width: 100% !important;
	}

	.basket-page .basket-page__promo-row {
		flex-direction: column;
		align-items: stretch;
	}

	.basket-page .basket-page__promo-apply {
		width: 100%;
	}
}

