/* Cart Page Styles */

.cart-container {
	max-width: 1100px;
	margin: 4rem auto;
	padding: 0 2rem;
	min-height: 70vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.cart-header {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 2rem;
}

.cart-header h1 {
	font-size: 2rem;
	color: #0f172a;
	margin: 0;
}

.item-count {
	color: #64748b;
	font-weight: 600;
}

/* EMPTY STATE */
.cart-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6rem 2rem;
	text-align: center;
	background: white;
	border-radius: 16px;
	border: 1px solid #f1f5f9;
	width: 100%;
	margin: 0 auto;
}

.empty-icon-wrapper {
	color: #cbd5e1;
	margin-bottom: 1.5rem;
}

.cart-empty-state h2 {
	font-size: 1.8rem;
	margin: 0 0 0.5rem 0;
	color: #0f172a;
}

.cart-empty-state p {
	color: #64748b;
	margin-bottom: 2rem;
	max-width: 400px;
	line-height: 1.6;
}

.guest-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}

.btn-primary {
	background: #0f172a;
	color: white;
	border: none;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s;
}

.btn-primary:hover {
	background: #1e293b;
}

.btn-secondary {
	background: white;
	color: #0f172a;
	border: 1px solid #e2e8f0;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s;
}

.btn-secondary:hover {
	border-color: #0f172a;
	background: #f8fafc;
}

/* LAYOUT GRID */
.cart-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 3rem;
	align-items: start;
}

/* ITEMS LIST (UNIFIED CARD) */
.cart-items {
	background: white;
	border-radius: 16px;
	padding: 0 2rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
	border: 1px solid #f1f5f9;
}

.cart-item {
	display: flex;
	gap: 1.5rem;
	padding: 2rem 0;
	border-bottom: 1px solid #f1f5f9;
	align-items: center;
}

.cart-item:last-child {
	border-bottom: none;
}

.item-visual {
	width: 90px;
	height: 90px;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.item-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: multiply;
}

.item-core {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
}

.item-infos h3 {
	margin: 0;
	font-size: 1.1rem;
	color: #0f172a;
}

.item-meta {
	font-size: 0.8rem;
	color: #64748b;
}

.item-controls {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 0.2rem;
}

/* Quantity Selector - Same as product cards */
.qty-selector {
	display: flex;
	align-items: center;
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	height: 40px;
}

.qty-btn {
	width: 36px;
	height: 100%;
	border: none;
	background: transparent;
	color: #6b7280;
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-btn:hover {
	background: #e5e7eb;
	color: #111827;
}

.qty-input {
	width: 50px;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	outline: none;
}

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

.remove-link {
	background: none;
	border: none;
	color: #94a3b8;
	font-size: 0.75rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}

.remove-link:hover {
	color: #ef4444;
}

.item-price-block {
	text-align: right;
	min-width: 100px;
}

.total-price {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.unit-price {
	display: block;
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 4px;
}

/* SIDEBAR SUMMARY */
.cart-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: sticky;
	top: 100px;
}

/* SHIPPING PROGRESS BAR */
.shipping-progress-card {
	background: white;
	border: 1px solid #dcfce7;
	padding: 1rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.shipping-msg {
	margin: 0 0 0.8rem 0;
	font-size: 0.9rem;
	color: #16a34a;
}

.shipping-msg.success {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.progress-track {
	width: 100%;
	height: 6px;
	background: #dcfce7;
	border-radius: 3px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: #16a34a;
	border-radius: 3px;
	transition: width 0.3s ease;
}

/* SUMMARY BOX */
.summary-box {
	background: white;
	padding: 1.5rem;
	border-radius: 16px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
	border: 1px solid #f1f5f9;
}

.summary-box h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #0f172a;
	font-size: 1.1rem;
}

/* Delivery Option Style */
.delivery-option {
	background: #f8fafc;
	border: 1px solid #0ea5e9;
	border-radius: 8px;
	padding: 1rem;
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	position: relative;
}

.delivery-icon {
	color: #0f172a;
	display: flex;
	align-items: center;
}

.delivery-info {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.delivery-name {
	font-weight: 700;
	font-size: 0.9rem;
	color: #0f172a;
}

.delivery-delay {
	font-size: 0.8rem;
	color: #64748b;
	margin-bottom: 0.2rem;
}

.delivery-cost {
	font-size: 0.9rem;
	font-weight: 600;
	color: #0f172a;
}

.delivery-check {
	position: absolute;
	top: 0.8rem;
	right: 0.8rem;
	color: #0ea5e9;
}

.summary-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 1.5rem 0;
}

.summary-line {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.8rem;
	color: #475569;
	font-size: 0.9rem;
}

.total-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e8f0;
	font-weight: 800;
	color: #0f172a;
}

.big-price {
	font-size: 1.5rem;
}

.checkout-btn {
	width: 100%;
	background: #0f172a;
	color: white;
	border: none;
	padding: 1rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	transition: transform 0.2s;
	text-decoration: none;
}

.checkout-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.secure-badge {
	text-align: center;
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.secure-badge svg {
	flex-shrink: 0;
}

.text-green {
	color: #16a34a;
}

/* Responsive */
@media (max-width: 900px) {
	.cart-layout {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.cart-sidebar {
		position: static;
	}

	.item-price-block {
		text-align: left;
		margin-top: 0.5rem;
	}

	.cart-item {
		flex-wrap: wrap;
	}

	.item-core {
		width: 100%;
	}
}

@media (max-width: 600px) {
	.cart-container {
		padding: 0 1rem;
	}

	.cart-items {
		padding: 0 1rem;
	}

	.cart-item {
		padding: 1.5rem 0;
	}

	.item-visual {
		width: 70px;
		height: 70px;
	}
}
