/**
 * ==========================================================
 * ShopCore Cart Page Stylesheet
 * File   : assets/css/cart.css
 * Purpose: Full-width modern responsive cart layout
 * ==========================================================
 */

.shopcore-cart-page {
	padding: 36px 0 80px;
	background: #f8fafc;
	min-height: calc(100vh - 350px);
}

.shopcore-cart-page .sc-container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* ==========================================================
   Breadcrumb
   ========================================================== */

.sc-cart-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 18px;
}

.sc-cart-breadcrumb a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.sc-cart-breadcrumb a:hover {
	color: #ef1d25;
}

.sc-cart-breadcrumb .sc-breadcrumb-sep {
	font-size: 10px;
	color: #94a3b8;
}

.sc-cart-breadcrumb .sc-breadcrumb-current {
	color: #0f172a;
	font-weight: 600;
}

/* ==========================================================
   Heading
   ========================================================== */

.shopcore-cart-heading {
	margin-bottom: 28px;
}

.shopcore-cart-eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	color: #ef1d25;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.shopcore-cart-heading h1 {
	margin: 0;
	color: #0f172a;
	font-size: clamp(24px, 2.5vw, 32px);
	font-weight: 800;
	line-height: 1.2;
}

.shopcore-cart-heading p {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 14px;
}

/* ==========================================================
   Grid Layout (Wide Golden Ratio)
   ========================================================== */

.shopcore-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 32px;
	align-items: start;
}

.shopcore-cart-items-panel,
.shopcore-cart-totals-inner {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
	padding: 28px;
}

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

.shopcore-cart-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.shopcore-cart-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.shopcore-cart-table th {
	padding: 0 16px 16px;
	border: 0;
	border-bottom: 1px solid #e2e8f0;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
}

.shopcore-cart-table td {
	padding: 20px 16px;
	border: 0;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	font-size: 14px;
	vertical-align: middle;
}

.shopcore-cart-table th:first-child,
.shopcore-cart-table td:first-child {
	padding-left: 0;
}

.shopcore-cart-table th:last-child,
.shopcore-cart-table td:last-child {
	padding-right: 0;
	text-align: right;
}

.shopcore-cart-table tbody tr.cart_item {
	transition: background 0.15s ease;
}

.shopcore-cart-table tbody tr.cart_item:hover {
	background: #fbfcfe;
}

.shopcore-cart-table .product-remove {
	width: 32px;
}

.shopcore-cart-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #94a3b8;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	transition: all 0.2s ease;
}

.shopcore-cart-remove:hover {
	background: #fef2f2;
	color: #ef1d25;
}

.shopcore-cart-table .product-thumbnail {
	width: 80px;
}

.shopcore-cart-table .product-thumbnail img {
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
	background: #fafafa;
	display: block;
}

.shopcore-cart-table .product-name a {
	color: #0f172a;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	line-height: 1.45;
	transition: color 0.15s ease;
}

.shopcore-cart-table .product-name a:hover {
	color: #ef1d25;
}

.shopcore-cart-table .product-name dl.variation {
	margin: 6px 0 0;
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
}

.shopcore-cart-table .product-name dl.variation dt,
.shopcore-cart-table .product-name dl.variation dd {
	display: inline;
	margin: 0 4px 0 0;
}

.shopcore-cart-table .product-price,
.shopcore-cart-table .product-subtotal {
	color: #ef1d25;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.shopcore-cart-table .product-quantity .quantity {
	display: inline-flex;
	align-items: center;
	margin: 0;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.shopcore-cart-table .product-quantity input.qty {
	width: 56px;
	height: 40px;
	padding: 0;
	border: 0;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	background: #ffffff;
}

/* ==========================================================
   Cart Actions (Coupon + Update)
   ========================================================== */

.shopcore-cart-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
	margin-top: 8px;
}

.shopcore-cart-actions .coupon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.shopcore-cart-actions .coupon input.input-text {
	width: 220px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	font-size: 13.5px;
	color: #0f172a;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.shopcore-cart-actions .coupon input.input-text:focus {
	border-color: #ef1d25;
	outline: none;
	box-shadow: 0 0 0 3px rgba(239, 29, 37, 0.1);
}

.shopcore-cart-actions .coupon button,
.shopcore-cart-actions .shopcore-update-cart {
	height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.shopcore-cart-actions .coupon button {
	background: #ef1d25;
	color: #ffffff;
}

.shopcore-cart-actions .coupon button:hover {
	background: #c9141b;
}

.shopcore-cart-actions .shopcore-update-cart {
	background: #0f172a;
	color: #ffffff;
}

.shopcore-cart-actions .shopcore-update-cart:hover {
	background: #1e293b;
}

/* ==========================================================
   Cart Totals Panel
   ========================================================== */

.shopcore-cart-totals-inner h2,
.shopcore-cart-totals-inner .cart_totals > h2 {
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f1f5f9;
	color: #0f172a;
	font-size: 20px;
	font-weight: 800;
}

.shopcore-cart-totals-inner .cart_totals {
	float: none;
	width: 100%;
}

.shopcore-cart-totals-inner .shop_table {
	width: 100%;
	margin: 0 0 22px;
	border: 0;
	border-collapse: collapse;
}

.shopcore-cart-totals-inner .shop_table th {
	width: 110px;
	min-width: 110px;
	white-space: nowrap !important;
	color: #475569;
	font-weight: 600;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
	padding: 14px 10px 14px 0;
	border-bottom: 1px solid #f1f5f9;
}

.shopcore-cart-totals-inner .shop_table td {
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
	color: #0f172a;
	font-size: 14px;
	text-align: right;
}

.shopcore-cart-totals-inner .cart-subtotal td {
	font-weight: 700;
	color: #0f172a;
}

.shopcore-cart-totals-inner .order-total th,
.shopcore-cart-totals-inner .order-total td {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	border-top: 2px solid #e2e8f0;
	border-bottom: 0;
	padding-top: 18px;
}

.shopcore-cart-totals-inner .order-total td {
	color: #ef1d25;
}

/* Shipping Method Radio Options */
.shopcore-cart-totals-inner ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
}

.shopcore-cart-totals-inner ul#shipping_method li {
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	font-size: 13.5px;
	color: #1e293b;
}

.shopcore-cart-totals-inner ul#shipping_method input[type="radio"] {
	accent-color: #ef1d25;
}

.woocommerce-shipping-destination {
	margin: 8px 0 0 0;
	font-size: 12.5px;
	color: #64748b;
}

.shipping-calculator-button {
	color: #ef1d25;
	font-weight: 600;
	font-size: 13px;
	text-decoration: underline;
}

.shipping-calculator-form {
	margin-top: 12px;
	text-align: left;
}

.shipping-calculator-form input.input-text,
.shipping-calculator-form select {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 13px;
}

.shipping-calculator-form button.button {
	width: 100%;
	height: 38px;
	background: #0f172a;
	color: #ffffff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
}

/* Proceed to Checkout Button */
.shopcore-cart-totals-inner .wc-proceed-to-checkout {
	padding: 0;
}

.shopcore-cart-totals-inner .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 14px 20px;
	border-radius: 8px;
	background: #ef1d25;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(239, 29, 37, .32);
	transition: all 0.2s ease;
}

.shopcore-cart-totals-inner .wc-proceed-to-checkout a.checkout-button:hover {
	background: #c9141b;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(239, 29, 37, .4);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1024px) {
	.shopcore-cart-layout {
		grid-template-columns: minmax(0, 1fr) 350px;
		gap: 24px;
	}

	.shopcore-cart-items-panel,
	.shopcore-cart-totals-inner {
		padding: 22px;
	}
}

@media (max-width: 860px) {
	.shopcore-cart-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.shopcore-cart-page {
		padding: 24px 0 48px;
	}

	.shopcore-cart-page .sc-container {
		padding: 0 16px;
	}

	.shopcore-cart-heading {
		margin-bottom: 20px;
	}

	.shopcore-cart-heading h1 {
		font-size: 26px;
	}

	.shopcore-cart-items-panel,
	.shopcore-cart-totals-inner {
		padding: 18px;
		border-radius: 10px;
	}

	.shopcore-cart-table-wrap {
		overflow: visible;
	}

	.shopcore-cart-table thead {
		display: none;
	}

	.shopcore-cart-table,
	.shopcore-cart-table tbody,
	.shopcore-cart-table tr,
	.shopcore-cart-table td {
		display: block;
		width: 100%;
	}

	.shopcore-cart-table tr.cart_item {
		position: relative;
		min-height: 110px;
		margin-bottom: 14px;
		padding: 14px 36px 14px 84px;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		background: #ffffff;
	}

	.shopcore-cart-table td {
		padding: 3px 0;
		border: 0;
		text-align: left !important;
	}

	.shopcore-cart-table .product-remove {
		position: absolute;
		top: 10px;
		right: 10px;
		width: auto;
		z-index: 2;
	}

	.shopcore-cart-table .product-thumbnail {
		position: absolute;
		top: 14px;
		left: 12px;
		width: 60px;
	}

	.shopcore-cart-table .product-thumbnail img {
		width: 58px;
		height: 58px;
	}

	.shopcore-cart-table .product-name {
		padding-right: 8px;
		font-size: 14px;
	}

	.shopcore-cart-table td[data-title]::before {
		content: attr(data-title) ': ';
		color: #64748b;
		font-size: 12px;
		font-weight: 600;
		margin-right: 4px;
	}

	.shopcore-cart-table .product-name::before,
	.shopcore-cart-table .product-thumbnail::before,
	.shopcore-cart-table .product-remove::before {
		content: none;
	}

	.shopcore-cart-table .product-price,
	.shopcore-cart-table .product-quantity,
	.shopcore-cart-table .product-subtotal {
		display: inline-block;
		width: auto;
		margin-right: 14px;
	}

	.shopcore-cart-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.shopcore-cart-actions .coupon {
		width: 100%;
	}

	.shopcore-cart-actions .coupon input.input-text {
		flex: 1;
		width: auto;
	}

	.shopcore-cart-actions .coupon button,
	.shopcore-cart-actions .shopcore-update-cart {
		width: 100%;
	}
}
