/* ─── Cart Page (.cp) ────────────────────────────────────────── */

/* ── Layout ──────────────────────────────────────────────────── */

.cp__layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 24px;
	align-items: start;
}

/* ── Shipping progress bar ───────────────────────────────────── */

.cp__shipping-bar {
	background: #f8f8f6;
	border-radius: 10px;
	padding: 14px 20px;
	margin-bottom: 20px;
}

.cp__shipping-text {
	font-size: 16px;
	color: #666;
	margin-bottom: 8px;
}

.cp__shipping-text strong {
	color: #1a1a1a;
	font-weight: 600;
}

.cp__shipping-text--done {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #548048;
	font-weight: 600;
}

.cp__shipping-track {
	height: 6px;
	background: #e8e8e8;
	border-radius: 3px;
	overflow: hidden;
}

.cp__shipping-fill {
	height: 100%;
	background: #548048;
	border-radius: 3px;
	transition: width .4s ease;
}

.cp__shipping-fill--done {
	background: #548048;
}

/* ── Product list — единый блок ──────────────────────────────── */

.cp__list {
	border-radius: 12px;
	overflow: hidden;
}

.cp__item {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	padding: 25px 0px;
	border-bottom: 1px solid #D6D6D6;
}

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

/* Image */
.cp__item-img {
	position: relative;
	width: 100px;
	height: 100px;
	border-radius: 8px;
	background: #f8f8f6;
}

.cp__item-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cp__item-img a {
	display: block;
	width: 100%;
	height: 100%;
}

.cp__item-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #f87978;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 30px;
    line-height: 1.4;
}

/* Body */
.cp__item-body {
	display: flex;
	flex-direction: column;
}

.cp__item-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a!important;
	text-decoration: none;
}

.cp__item-name:hover {
	color: #548048;
	text-decoration: none;
}

.cp__item-meta {
	font-size: 12px;
	color: #999;
	margin-top: 2px;
}

/* Price */
.cp__item-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 8px 0;
}

.cp__item-current {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

.cp__item-old {
	font-size: 13px;
	color: #bbb;
	text-decoration: line-through;
}

/* Actions row */
.cp__item-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.cp__item-subtotal {
	margin-left: auto;
	font-size: 20px;
	font-weight: 600;
	white-space: nowrap;
}

/* Quantity — стиль мини-корзины */
.cp__qty {
	display: inline-flex;
	align-items: center;
	background: #f5f5f5;
	border-radius: 30px;
	overflow: hidden;
}

.cp__qty .quantity {
	display: flex;
	align-items: center;
	margin: 0;
	border: none;
}

.cp__qty .quantity .qty {
	width: 36px;
	height: 34px;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 400;
	-moz-appearance: textfield;
	padding: 0;
	margin: 0;
}

.cp__qty .quantity .qty::-webkit-inner-spin-button,
.cp__qty .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

.cp__qty .quantity .minus,
.cp__qty .quantity .plus {
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	font-size: 16px;
	cursor: pointer;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .15s;
	padding: 0;
	line-height: 1;
}

.cp__qty .quantity .minus:hover,
.cp__qty .quantity .plus:hover {
	color: #1a1a1a;
}

/* Remove */
.cp__item-remove {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	color: #999!important;
	text-decoration: none;
	transition: color .15s;
}

.cp__item-remove svg {
	flex-shrink: 0;
}

.cp__item-remove:hover {
	color: #e74c3c;
	text-decoration: none;
}

/* Alert */
.cp__item-alert {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 8px 12px;
	background: #fff8e1;
	border-radius: 6px;
	font-size: 12px;
	color: #856404;
}

.cp__item-alert--warn {
	background: #fef0f0;
	color: #c0392b;
}

/* ── Form footer ─────────────────────────────────────────────── */

.cp__form-footer {
	padding: 14px 0 0;
}

.cp__update-btn {
	background: none;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 8px 18px;
	font-size: 13px;
	color: #999;
	cursor: pointer;
	transition: all .2s;
}

.cp__update-btn:hover {
	border-color: #1a1a1a;
	color: #1a1a1a;
}

/* ── Sidebar ─────────────────────────────────────────────────── */

.cp__aside {
	position: sticky;
	top: 100px;
}

.cp__totals {
	background: #f8f8f6;
	border-radius: 12px;
	padding: 24px;
}

.cp__totals-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	font-size: 16px;
	color: #666;
}

.cp__totals-row + .cp__totals-row {
	border-top: 1px solid #e8e8e8;
}

.cp__totals-row span:last-child {
	font-weight: 500;
	color: #1a1a1a;
}

.cp__totals-row--discount span:last-child {
	color: #e74c3c;
}

.cp__totals-row--total {
	padding-top: 14px;
	margin-top: 4px;
	border-top: 2px solid #1a1a1a !important;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

.cp__totals-row--total span {
	color: #1a1a1a !important;
	font-weight: 700 !important;
}

/* Checkout */
.cp__checkout-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: #548048 !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .02em;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.cp__checkout-btn:hover {
	background: #6a9a5c;
	color: #fff;
	text-decoration: none;
}

.cp__checkout-note {
	margin: 12px 0 0;
	font-size: 14px;
	color: #999;
	line-height: 1.5;
	text-align: center;
}

.cp__checkout-note a {
    color: #548048;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Cross-sells ─────────────────────────────────────────────── */

.cp__cross-sells {
	margin-top: 40px;
}

.cp__cross-sells .cross-sells::before {
	width: 100%;
}

/* ── Porto overrides ─────────────────────────────────────────── */

.woocommerce-cart .cart_totals,
.woocommerce-cart .wc-proceed-to-checkout {
	display: none !important;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 991px) {
	.cp__layout {
		grid-template-columns: 1fr;
	}

	.cp__aside {
		position: static;
	}
}

@media (max-width: 575px) {
	.cp__item {
		grid-template-columns: 90px 1fr;
		gap: 12px;
		padding: 14px;
	}

	.cp__item-img {
		width: 90px;
		height: 90px;
	}

	.cp__item-actions {
		flex-wrap: wrap;
	}

	.cp__item-subtotal {
		width: 100%;
		text-align: right;
		margin-left: 0;
		margin-top: 8px;
	}
}