/**
 * Cart page styles — naturalie design system
 */

/* ========== Layout ========== */

.ncc-cart-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px;
	font-family: var(--nl-font-family, inherit);
	font-size: var(--nl-font-size-base, 14px);
	color: var(--nl-text, #333);
}

.ncc-cart-header {
	text-align: center;
	margin-bottom: 40px;
}

.ncc-cart-heading {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--nl-text, #333);
}

.ncc-cart-subtitle {
	font-size: 14px;
	color: var(--nl-text-muted, #888);
	margin: 4px 0 0;
}



/* Hide Bricks / WC default cart elements that conflict */
body.ncc-cart .woocommerce-cart-form,
body.ncc-cart .cart-collaterals,
body.ncc-cart .woocommerce table.shop_table {
	display: none !important;
}

/* ========== Base Button (cart page doesn't load checkout.css) ========== */

.ncc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: 2px solid var(--nl-primary, #468664);
	border-radius: var(--nl-radius-sm, 8px);
	background: var(--nl-primary, #468664);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.ncc-btn:hover {
	opacity: 0.9;
}

/* ========== Discount Hint Banner ========== */

.ncc-cart-discount-hint {
	background: var(--nl-primary-light, #deece4);
	border: 1px solid var(--nl-primary, #468664);
	border-radius: var(--nl-radius, 14px);
	padding: 12px 16px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--nl-primary, #468664);
}

.ncc-cart-discount-hint svg {
	flex-shrink: 0;
}

.ncc-cart-discount-hint strong {
	font-weight: 600;
}

/* ========== Step Indicator ========== */

.ncc-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-top: 20px;
}

.ncc-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ncc-progress-dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #ddd;
	background: var(--nl-surface, #fff);
	color: var(--nl-text-muted, #888);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.ncc-progress-step--active .ncc-progress-dot {
	background: var(--nl-primary, #468664);
	border-color: var(--nl-primary, #468664);
	color: #fff;
	box-shadow: 0 2px 8px rgba(70, 134, 100, 0.3);
}

.ncc-progress-label {
	font-size: 12px;
	color: var(--nl-text-muted, #888);
	font-weight: 500;
}

.ncc-progress-step--active .ncc-progress-label {
	color: var(--nl-primary, #468664);
	font-weight: 600;
}

.ncc-progress-line {
	width: 60px;
	height: 2px;
	background: #ddd;
	margin: 0 8px;
	margin-bottom: 22px;
	border-radius: 1px;
}

/* ========== Cart Items ========== */

.ncc-cart-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 0;
}

.ncc-cart-item {
	display: flex;
	gap: 20px;
	background: var(--nl-surface, #fff);
	border: 1px solid transparent;
	border-radius: var(--nl-radius, 14px);
	padding: 20px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.3s ease, max-height 0.4s ease, padding 0.3s ease, margin-bottom 0.3s ease;
}

.ncc-cart-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
}

/* Animated removal */

.ncc-cart-item--removing {
	opacity: 0 !important;
	max-height: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	overflow: hidden;
	transform: scale(0.98) !important;
	pointer-events: none;
}

/* Image */

.ncc-cart-item-image {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
	border-radius: var(--nl-radius-sm, 8px);
	overflow: hidden;
	background: var(--nl-bg, #f8f6f3);
}

.ncc-cart-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Main content area */

.ncc-cart-item-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.ncc-cart-item-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.ncc-cart-item-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.ncc-cart-item-name a {
	color: var(--nl-text, #333);
	text-decoration: none;
}

.ncc-cart-item-name a:hover {
	color: var(--nl-primary, #468664);
}

/* Remove button */

.ncc-cart-item-remove {
	flex-shrink: 0;
}

.ncc-remove-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--nl-text-muted, #888);
	text-decoration: none;
	transition: all 0.2s ease;
}

.ncc-remove-btn:hover {
	color: #e2401c;
	background: #fef2f2;
}

/* Meta (variations) */

.ncc-cart-item-meta {
	font-size: 12px;
	color: var(--nl-text-muted, #888);
	margin: 4px 0 8px;
}

.ncc-cart-item-meta dl {
	margin: 0;
}

.ncc-cart-item-meta dt,
.ncc-cart-item-meta dd {
	display: inline;
	margin: 0;
}

/* Bottom row: quantity + price + total */

.ncc-cart-item-bottom {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 12px;
	flex-wrap: wrap;
}

/* ========== Quantity Controls ========== */

.ncc-cart-item-quantity {
	flex-shrink: 0;
}

.ncc-qty-fixed {
	display: inline-block;
	padding: 6px 16px;
	font-weight: 600;
	font-size: 14px;
}

.ncc-qty-controls {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: var(--nl-radius-sm, 8px);
	overflow: hidden;
	background: var(--nl-bg, #f8f6f3);
}

.ncc-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 18px;
	color: var(--nl-text, #333);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	user-select: none;
	-webkit-user-select: none;
}

.ncc-qty-btn:hover {
	background: var(--nl-primary-light, #deece4);
	color: var(--nl-primary, #468664);
}

.ncc-qty-btn:active {
	background: var(--nl-primary, #468664);
	color: #fff;
}

.ncc-qty-input {
	width: 48px;
	height: 36px;
	border: none;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--nl-text, #333);
	background: var(--nl-surface, #fff);
	-moz-appearance: textfield;
	padding: 0;
}

.ncc-qty-input::-webkit-inner-spin-button,
.ncc-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ncc-qty-input:focus {
	outline: 2px solid var(--nl-primary, #468664);
	outline-offset: -2px;
}

/* Prices */

.ncc-cart-item-prices {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ncc-cart-item-unit-price {
	font-size: 13px;
	color: var(--nl-text-muted, #888);
}

.ncc-cart-item-unit-price del {
	color: #999;
	text-decoration: line-through;
	margin-right: 6px;
}

.ncc-cart-item-unit-price ins {
	text-decoration: none;
	color: var(--nl-text, #333);
	font-weight: 600;
}

.ncc-cart-item-base-price {
	font-size: 11px;
	color: var(--nl-text-muted, #888);
	line-height: 1.3;
}

.ncc-cart-item-total {
	font-size: 16px;
	font-weight: 700;
	color: var(--nl-primary, #468664);
	margin-left: auto;
	white-space: nowrap;
}

/* ========== Summary Panel ========== */

.ncc-cart-summary {
	background: var(--nl-surface, #fff);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: var(--nl-radius, 14px);
	padding: 32px;
	margin-top: 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.ncc-cart-summary-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Free Shipping Progress Bar */

.ncc-free-shipping-bar {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ncc-free-shipping-text {
	font-size: 13px;
	color: var(--nl-text-muted, #888);
	margin: 0 0 8px;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.ncc-free-shipping-text strong {
	color: var(--nl-primary, #468664);
}

.ncc-free-shipping-text--success {
	color: var(--nl-primary, #468664);
	font-weight: 600;
}

.ncc-free-shipping-track {
	width: 100%;
	height: 8px;
	background: #eee;
	border-radius: 4px;
	overflow: hidden;
}

.ncc-free-shipping-fill {
	height: 100%;
	background: var(--nl-primary, #468664);
	border-radius: 4px;
	transition: width 0.5s ease;
}

.ncc-cart-summary-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 16px;
}

.ncc-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
}

.ncc-summary-row--total {
	font-size: 22px;
	font-weight: 700;
	padding-top: 12px;
	border-top: 2px solid rgba(0, 0, 0, 0.08);
	margin-top: 4px;
}

.ncc-summary-total {
	color: var(--nl-text, #333);
}

.ncc-summary-row--discount span:last-child {
	color: #e2401c;
}

.ncc-summary-row--tax {
	font-size: 12px;
	color: var(--nl-text-muted, #888);
}

.ncc-summary-row--tax span:last-child {
	font-size: 12px;
}

.ncc-summary-row--wprr-discount {
	font-size: 13px;
}

.ncc-summary-discount-amount {
	color: #e2401c;
	font-weight: 600;
}

/* Coupon pills in summary */

.ncc-summary-row--coupon {
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
}

.ncc-summary-coupon-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 13px;
}

.ncc-summary-coupon-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--nl-primary, #468664);
	color: #fff;
	padding: 4px 10px 4px 12px;
	border-radius: 20px;
	font-size: 12px;
}

.ncc-summary-coupon-pill strong {
	font-weight: 600;
	letter-spacing: 0.3px;
}

.ncc-summary-coupon-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: none;
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s;
}

.ncc-summary-coupon-remove:hover {
	background: rgba(255, 255, 255, 0.5);
}

.ncc-summary-coupon-amount {
	color: #e2401c;
	font-weight: 600;
}

/* Coupon input */

.ncc-cart-coupon {
	margin-bottom: 16px;
	padding-top: 12px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ncc-coupon-input-wrap {
	display: flex;
	gap: 6px;
	align-items: stretch;
}

.ncc-coupon-input-wrap .ncc-input {
	flex: 1;
	padding: 5px 10px;
	border: 1px solid #ddd;
	border-radius: var(--nl-radius-sm, 8px);
	background: var(--nl-bg, #f8f6f3);
	font-size: 13px;
	min-height: 30px;
}

.ncc-coupon-input-wrap .ncc-input:focus {
	outline: none;
	border-color: var(--nl-primary, #468664);
}

.ncc-btn--coupon {
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	min-height: 30px;
	border-radius: var(--nl-radius-sm, 8px);
}

.ncc-coupon-message {
	margin-top: 6px;
	font-size: 12px;
	min-height: 0;
	transition: all 0.2s ease;
}

.ncc-coupon-message--success {
	color: var(--nl-primary, #468664);
}

.ncc-coupon-message--error {
	color: #e2401c;
}

/* Proceed to checkout */

.ncc-cart-proceed {
	margin-bottom: 12px;
}

.ncc-cart-proceed .ncc-btn--checkout {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	padding: 18px 28px;
	border-radius: var(--nl-radius, 14px);
	letter-spacing: 0.3px;
	box-shadow: 0 4px 14px rgba(70, 134, 100, 0.35);
	animation: ncc-pulse 2.5s ease-in-out infinite;
}

@keyframes ncc-pulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(70, 134, 100, 0.35); }
	50% { box-shadow: 0 6px 22px rgba(70, 134, 100, 0.5); }
}

/* Continue shopping link in summary */

.ncc-cart-continue-link {
	display: block;
	text-align: center;
	font-size: 13px;
	color: var(--nl-primary, #468664);
	text-decoration: none;
	padding: 8px 0;
	margin-top: 4px;
	transition: opacity 0.2s;
}

.ncc-cart-continue-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Trust badges */

.ncc-cart-trust {
	display: flex;
	justify-content: center;
	gap: 20px;
	font-size: 12px;
	color: var(--nl-text-muted, #888);
	margin-top: 8px;
}

.ncc-cart-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ncc-cart-trust-item svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Continue shopping (bottom) */

.ncc-cart-continue {
	text-align: center;
	margin-top: 20px;
}

/* ========== Empty Cart ========== */

.ncc-cart-empty {
	text-align: center;
	padding: 60px 20px;
}

.ncc-cart-empty p {
	font-size: 16px;
	margin-bottom: 20px;
}

/* ========== Cross-Sells ========== */

.ncc-cross-sells {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid #eee;
}

.ncc-cross-sells-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 16px;
}

.ncc-cross-sells-track-wrapper {
	position: relative;
	overflow: hidden;
}

.ncc-cross-sells-track {
	display: flex;
	gap: 16px;
	transition: transform 0.4s ease;
	padding: 4px 0;
}

.ncc-cross-sell-card {
	flex-shrink: 0;
	background: var(--nl-surface, #fff);
	border: 1px solid #eee;
	border-radius: var(--nl-radius-sm, 8px);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.4s ease;
}

.ncc-cross-sell-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.ncc-cross-sells-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: var(--nl-surface, #fff);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.2s ease;
	color: var(--nl-text, #333);
	padding: 0;
}

.ncc-cross-sells-arrow:hover {
	background: var(--nl-primary, #468664);
	color: #fff;
	border-color: var(--nl-primary, #468664);
}

.ncc-cross-sells-arrow--prev {
	left: 0;
}

.ncc-cross-sells-arrow--next {
	right: 0;
}

.ncc-cross-sells-arrow svg {
	width: 18px;
	height: 18px;
}

.ncc-cross-sell-card--added {
	opacity: 0;
	transform: scale(0.95);
	pointer-events: none;
	min-width: 0;
	width: 0;
	overflow: hidden;
	padding: 0;
	margin: 0;
	border: none;
	transition: all 0.4s ease;
}

.ncc-cross-sell-card--in-cart {
	opacity: 0.5;
}

.ncc-cross-sell-card--in-cart .ncc-btn--add-cross-sell {
	pointer-events: none;
	background: var(--nl-primary-light, #deece4);
	color: var(--nl-primary, #468664);
	border-color: transparent;
}

.ncc-cross-sell-image {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--nl-bg, #f8f6f3);
}

.ncc-cross-sell-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ncc-cross-sell-info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ncc-cross-sell-name {
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.ncc-cross-sell-name a {
	color: var(--nl-text, #333);
	text-decoration: none;
}

.ncc-cross-sell-name a:hover {
	color: var(--nl-primary, #468664);
}

.ncc-cross-sell-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--nl-primary, #468664);
}

.ncc-btn--add-cross-sell {
	display: inline-block;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	background: transparent;
	color: var(--nl-primary, #468664);
	border: 1.5px solid var(--nl-primary, #468664);
	border-radius: var(--nl-radius-sm, 8px);
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.ncc-btn--add-cross-sell:hover {
	background: var(--nl-primary, #468664);
	color: #fff;
}

.ncc-btn--add-cross-sell:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Cart item adding animation */

.ncc-cart-item--adding {
	opacity: 0;
	transform: translateY(-10px);
}

.ncc-cart-item--adding:not(.ncc-cart-item--adding) {
	opacity: 1;
	transform: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========== 2-Column Layout (Desktop) ========== */

@media (min-width: 769px) {
	.ncc-cart-wrapper {
		display: grid;
		grid-template-columns: 1fr 380px;
		gap: 32px;
		align-items: start;
	}

	.ncc-cart-header {
		grid-column: 1 / -1;
	}

	.ncc-cart-form {
		grid-column: 1;
		min-width: 0;
	}

	.ncc-cart-summary {
		grid-column: 2;
		grid-row: 2;
		position: sticky;
		top: 24px;
		margin-top: 0;
	}

	.ncc-cart-continue {
		grid-column: 1 / -1;
	}
}

/* ========== Mobile ========== */

@media (max-width: 768px) {
	.ncc-cart-wrapper {
		padding: 20px 12px;
	}

	.ncc-cart-heading {
		font-size: 20px;
	}

	.ncc-cart-item {
		flex-direction: row;
		gap: 12px;
		padding: 14px;
	}

	.ncc-cart-item-image {
		width: 56px;
		height: 56px;
	}

	.ncc-cart-item-name {
		font-size: 13px;
	}

	.ncc-cart-item-base {
		font-size: 10px;
	}

	.ncc-cart-item-total {
		font-size: 13px;
	}

	.ncc-cart-item-bottom {
		gap: 12px;
	}

	.ncc-cart-item-total {
		margin-left: 0;
	}

	.ncc-cart-summary {
		margin-top: 20px;
		padding: 24px;
	}

	.ncc-cart-trust {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.ncc-summary-row--coupon {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.ncc-progress-dot {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}

	.ncc-progress-line {
		width: 40px;
		margin-bottom: 18px;
	}

	.ncc-progress-label {
		font-size: 11px;
	}

	.ncc-cross-sells-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.ncc-cross-sell-card {
		padding: 10px;
	}

	.ncc-cross-sell-name {
		font-size: 12px;
	}

	.ncc-cross-sell-price {
		font-size: 12px;
	}

	.ncc-btn--add-cross-sell {
		padding: 6px 12px;
		font-size: 11px;
	}
}
