/* ==========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ КОРЗИНЫ
   ========================================== */

.cart-page {
	padding: 40px 0 80px;
	min-height: calc(100vh - 200px);
}

/* ========== ПУСТАЯ КОРЗИНА ========== */
.cart-empty {
	text-align: center;
	padding: 80px 20px;
	max-width: 500px;
	margin: 0 auto;
}

.cart-empty__icon {
	margin: 0 0 30px;
	animation: float 3s ease-in-out infinite;
}

.cart-empty__title {
	font-size: 32px;
	line-height: 1.2;
	margin: 0 0 16px;
	text-transform: uppercase;
}

.cart-empty__text {
	font-size: 18px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 40px;
}

.cart-empty__btn {
	display: inline-block;
	padding: 16px 40px;
	background-color: rgba(222, 63, 58, 1);
	color: white;
	text-decoration: none;
	border-radius: 30px;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	transition: all var(--trans);
}

.cart-empty__btn:hover {
	background-color: rgba(222, 63, 58, 0.8);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(222, 63, 58, 0.4);
}

/* ========== ЗАГОЛОВОК КОРЗИНЫ ========== */
.cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 40px;
	padding: 0 0 20px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cart-header__title {
	font-size: 32px;
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.cart-header__count {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.6);
}

/* ========== СПИСОК ТОВАРОВ ========== */
.cart-items {
	margin: 0 0 40px;
}

.cart-item {
	display: grid;
	grid-template-columns: 80px 1fr 80px 100px 80px 40px;
	gap: 16px;
	align-items: center;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	margin: 0 0 16px;
	transition: all var(--trans);
}

.cart-item:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

.cart-item__image {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
}

.cart-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cart-item__image a {
	display: block;
}

.cart-item__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cart-item__name {
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
}

.cart-item__name a {
	color: white;
	text-decoration: none;
	transition: color var(--trans);
}

.cart-item__name a:hover {
	color: rgba(222, 63, 58, 1);
}

.cart-item__price {
	font-size: 18px;
	font-weight: 600;
	color: rgba(222, 63, 58, 1);
}

.cart-item__quantity {
	display: flex;
	align-items: center;
	justify-content: center;
}

.cart-item__quantity .quantity {
	display: flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 25px;
	padding: 4px;
}

.cart-item__quantity input[type="number"] {
	width: 50px;
	text-align: center;
	background: transparent;
	border: none;
	color: white;
	font-size: 16px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.cart-item__quantity input[type="number"]::-webkit-outer-spin-button,
.cart-item__quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cart-item__subtotal {
	font-size: 20px;
	font-weight: 700;
	text-align: right;
}

.cart-item__remove {
	text-align: center;
}

.cart-item__remove .remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: white;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	transition: all var(--trans);
}

.cart-item__remove .remove:hover {
	background-color: rgba(222, 63, 58, 1);
	transform: rotate(90deg);
}

/* ========== ДЕЙСТВИЯ С КОРЗИНОЙ ========== */
.cart-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 60px;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.03);
	border-radius: 15px;
}

.cart-actions__update {
	padding: 12px 30px;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--trans);
}

.cart-actions__update:hover {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
}

/* ========== ИТОГИ КОРЗИНЫ ========== */
.cart-totals-wrapper {
	display: flex;
	justify-content: flex-end;
}

.cart-totals {
	width: 100%;
	max-width: 450px;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	padding: 30px;
}

.cart_totals__title {
	font-size: 24px;
	line-height: 1.2;
	margin: 0 0 24px;
	text-transform: uppercase;
	text-align: center;
}

.cart_totals__table {
	margin: 0 0 30px;
}

.cart_totals__row {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart_totals__row:last-child {
	border-bottom: none;
}

.cart_totals__label {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.8);
}

.cart_totals__value {
	font-size: 16px;
	font-weight: 600;
}

.cart_totals__total {
	padding: 20px 0 0;
	margin: 20px 0 0;
	border-top: 2px solid rgba(222, 63, 58, 0.5);
}

.cart_totals__total .cart_totals__label {
	font-size: 20px;
	font-weight: 700;
	color: white;
}

.cart_totals__total .cart_totals__value {
	font-size: 24px;
	font-weight: 700;
	color: rgba(222, 63, 58, 1);
}

/* Купон */
.cart_totals__coupon {
	margin: 0 0 20px;
}

.cart_totals__coupon input[type="text"] {
	width: 100%;
	padding: 12px 20px;
	background-color: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 25px;
	color: white;
	font-size: 16px;
	margin: 0 0 12px;
	outline: none;
	transition: all var(--trans);
}

.cart_totals__coupon input[type="text"]:focus {
	border-color: rgba(222, 63, 58, 1);
	background-color: rgba(255, 255, 255, 0.15);
}

.cart_totals__coupon input[type="text"]::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.cart_totals__coupon button {
	width: 100%;
	padding: 14px 30px;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 25px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--trans);
}

.cart_totals__coupon button:hover {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Кнопка оформления */
.wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	padding: 18px 30px;
	background-color: rgba(222, 63, 58, 1);
	color: white;
	text-align: center;
	text-decoration: none;
	border-radius: 30px;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	transition: all var(--trans);
}

.wc-proceed-to-checkout a.checkout-button:hover {
	background-color: rgba(222, 63, 58, 0.8);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(222, 63, 58, 0.4);
}

/* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 767px) {
	.cart-item {
		grid-template-columns: 60px 1fr;
		gap: 12px;
	}

	.cart-item__image {
		width: 60px;
		height: 60px;
	}

	.cart-item__info {
		grid-column: 2;
	}

	.cart-item__price {
		grid-column: 1 / -1;
		text-align: left;
		font-size: 16px;
	}

	.cart-item__quantity {
		grid-column: 1 / 2;
		justify-content: flex-start;
	}

	.cart-item__subtotal {
		grid-column: 2 / 3;
		font-size: 18px;
	}

	.cart-item__remove {
		grid-column: 1 / -1;
		text-align: right;
	}

	.cart-header__title {
		font-size: 24px;
	}

	.cart-actions {
		flex-direction: column;
		gap: 12px;
	}

	.cart-actions__update {
		width: 100%;
	}

	.cart-totals {
		max-width: 100%;
	}
}

/* ========== АДАПТИВ ДЛЯ ПЛАНШЕТОВ ========== */
@media (min-width: 768px) and (max-width: 1023px) {
	.cart-item {
		grid-template-columns: 70px 1fr 70px 90px 70px 40px;
		gap: 12px;
	}

	.cart-item__image {
		width: 70px;
		height: 70px;
	}
}

/* Анимация */
@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-15px);
	}
}
