/* =========================================================
   WooSpax Cart
========================================================= */

.ws-cart {
	width: 100%;
	padding: 55px 0 80px;
	direction: rtl;
}

/* =========================================================
   Cart Header
========================================================= */

.ws-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	margin-bottom: 35px;
	padding: 22px 35px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ws-cart-title {
	margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.3;
    color: var(--ws-heading, #222);
}

.ws-cart-subtitle {
	margin: 0;
	font-size: 16px;
	color: var(--ws-text, #777);
}

.ws-cart-header-icon {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: var(--ws-primary, #111);
	color: #fff;
	flex-shrink: 0;
}

.ws-cart-header-icon svg {
	width: 28px;
	height: 28px;
}

/* =========================================================
   Layout
========================================================= */

.ws-cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 30px;
	align-items: start;
}

/* =========================================================
   Products Card
========================================================= */

.ws-cart-products-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.ws-cart-products-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 25px;
	border-bottom: 1px solid #eee;
}

.ws-cart-products-heading h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	color: var(--ws-heading, #222);
}

.ws-cart-products-heading span {
	min-width: 35px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 50px;
    background: var(--ws-primary, #222);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

/* =========================================================
   Cart Item
========================================================= */

.ws-cart-item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) 110px;
	gap: 20px;
	align-items: center;
	padding: 25px;
	border-bottom: 1px solid #eee;
}

.ws-cart-item:last-child {
	border-bottom: 0;
}

.ws-cart-item-image {
	width: 110px;
	height: 110px;
	border-radius: 14px;
	overflow: hidden;
	background: #f7f7f7;
}

.ws-cart-item-image a,
.ws-cart-item-image img {
	display: block;
	width: 100%;
	height: 100%;
}

.ws-cart-item-image img {
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ws-cart-item-image:hover img {
	transform: scale(1.05);
}

/* =========================================================
   Product Info
========================================================= */

.ws-cart-item-info {
	min-width: 0;
}

.ws-cart-item-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}

.ws-cart-item-title a {
	color: var(--ws-heading, #222);
	text-decoration: none;
	transition: color 0.2s ease;
}

.ws-cart-item-title a:hover {
	color: var(--ws-primary, #111);
}

.ws-cart-item-meta {
	margin-bottom: 8px;
	font-size: 13px;
	color: #888;
}

.ws-cart-item-meta dl {
	margin: 0;
}

.ws-cart-item-meta dt,
.ws-cart-item-meta dd {
	display: inline;
	margin: 0 4px;
}

.ws-cart-item-meta dd {
	color: #555;
}

.ws-cart-item-price {
	font-size: 14px;
	font-weight: 600;
	color: var(--ws-primary, #111);
}

.ws-cart-item-price del {
	color: #999;
	margin-left: 5px;
}

.ws-cart-item-price ins {
	text-decoration: none;
}

/* =========================================================
   Quantity + Remove
========================================================= */

.ws-cart-item-bottom {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 15px;
}

.ws-cart-quantity {
	display: flex;
	align-items: center;
}

.ws-cart-quantity .quantity {
	display: flex;
	align-items: center;
	margin: 0;
}

.ws-cart-quantity input.qty {
	width: 70px;
	height: 42px;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	font-size: 14px;
	outline: none;
}

.ws-cart-quantity input.qty:focus {
	border-color: var(--ws-primary, #111);
}

.ws-cart-remove {
	display: flex;
	align-items: center;
	justify-content: center;
}
.ws-cart-form.ws-cart-updating {
	opacity: 0.65;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.ws-cart-update.loading {
	opacity: 0.6;
	cursor: wait;
}

.ws-cart-remove-btn.is-removing {
	opacity: 0.5;
	pointer-events: none;
}
.ws-cart-remove-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 40px !important;
	height: 40px !important;

	padding: 0 !important;
	margin: 0 !important;

	border-radius: 10px !important;

	background: #f5f5f5 !important;
	color: #777 !important;

	font-size: 0 !important;
	line-height: 1 !important;

	text-decoration: none !important;

	box-sizing: border-box !important;
}

.ws-cart-remove-btn:hover {
	background: var(--ws-primary) !important;
	color: #e53935 !important;
}

.ws-cart-remove-btn svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;

	margin: 0 !important;
	padding: 0 !important;

	flex-shrink: 0;
}

.ws-cart-remove-btn::before,
.ws-cart-remove-btn::after {
	display: none !important;
	content: none !important;
}
/* =========================================================
   Product Total
========================================================= */

.ws-cart-item-total {
	text-align: left;
	font-size: 16px;
	font-weight: 700;
	color: var(--ws-heading, #222);
	white-space: nowrap;
}

/* =========================================================
   Cart Actions
========================================================= */

.ws-cart-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	flex-wrap: wrap;
	padding: 22px 25px;
	background: #fafafa;
	border-top: 1px solid #eee;
}

.ws-cart-coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	max-width: 380px;
}

.ws-cart-coupon input {
	width: 100%;
	height: 45px;
	padding: 0 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	outline: none;
}

.ws-cart-coupon input:focus {
	border-color: var(--ws-primary, #111);
}

.ws-cart-coupon-btn,
.ws-cart-update {
	height: 45px;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--ws-primary, #222);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.ws-cart-coupon-btn:hover,
.ws-cart-update:hover {
	background: var(--ws-primary-hover, #000);
	transform: translateY(-1px);
}

.ws-cart-update:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* =========================================================
   Summary
========================================================= */

.ws-cart-summary {
	position: sticky;
	top: 25px;
}

.ws-cart-summary-card {
	padding: 25px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ws-cart-summary-title {
	margin: 0 0 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eee;
	font-size: 20px;
	font-weight: 800;
	color: var(--ws-heading, #222);
}

.ws-cart-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 12px 0;
	font-size: 14px;
	color: #666;
}

.ws-cart-summary-row strong {
	color: #222;
	font-weight: 700;
}

.ws-cart-discount strong {
	color: #2e9d57;
}

.ws-cart-shipping {
	padding: 12px 0;
	border-top: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

.ws-cart-shipping .woocommerce-shipping-totals {
	margin: 0;
}

.ws-cart-shipping ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.ws-cart-shipping li {
	margin-bottom: 8px;
	font-size: 13px;
}

.ws-cart-shipping select {
	width: 100%;
	min-height: 42px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

/* =========================================================
   Total
========================================================= */

.ws-cart-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 15px;
	padding-top: 20px;
	border-top: 2px solid #222;
}

.ws-cart-total span {
	font-size: 16px;
	font-weight: 700;
	color: #222;
}

.ws-cart-total strong {
	font-size: 22px;
	font-weight: 800;
	color: var(--ws-primary, #111);
}

/* =========================================================
   Checkout
========================================================= */

.ws-cart-checkout {
	margin-top: 22px;
}

.ws-cart-checkout .checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0 !important;
	padding: 12px 20px !important;
	border-radius: 10px !important;
	background: var(--ws-primary, #222) !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.ws-cart-checkout .checkout-button:hover {
	background: var(--ws-primary-hover, #000) !important;
	transform: translateY(-2px);
}

/* =========================================================
   Secure
========================================================= */

.ws-cart-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #eee;
	color: #777;
	font-size: 16px;
}

span.woocommerce-Price-amount.amount {
    font-size: 20px;
}

.ws-cart-secure svg {
	width: 17px;
	height: 17px;
	color: #2e9d57;
}

/* =========================================================
   Cross Sells
========================================================= */

.ws-cart-cross-sells {
	margin-top: 55px;
}

.ws-cart-section-heading {
	margin-bottom: 20px;
}

.ws-cart-section-heading h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: var(--ws-heading, #222);
}

.ws-cart-cross-sells-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* =========================================================
   WooCommerce Notices
========================================================= */

.ws-cart .woocommerce-message,
.ws-cart .woocommerce-info,
.ws-cart .woocommerce-error {
	margin: 0 0 25px;
	padding: 15px 18px;
	border-radius: 10px;
	font-size: 14px;
}

/* =========================================================
   Empty Cart
========================================================= */

.woocommerce-cart .cart-empty.woocommerce-info {
	margin: 30px 0;
	padding: 50px 20px;
	border: 1px solid #eee;
	border-radius: 18px;
	background: #fff;
	text-align: center;
	font-size: 17px;
}

/* =========================================================
   Responsive - Tablet
========================================================= */

@media (max-width: 1100px) {

	.ws-cart-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 20px;
	}

	.ws-cart-item {
		grid-template-columns: 95px minmax(0, 1fr) 90px;
		gap: 15px;
	}

	.ws-cart-item-image {
		width: 95px;
		height: 95px;
	}

	.ws-cart-cross-sells-grid {
		grid-template-columns: repeat(3, 1fr);
	}

}

/* =========================================================
   Responsive - Mobile
========================================================= */

@media (max-width: 768px) {

	.ws-cart {
		padding: 30px 0 55px;
	}

	.ws-cart-header {
		padding: 22px;
		margin-bottom: 22px;
		border-radius: 14px;
	}

	.ws-cart-title {
		font-size: 25px;
	}

	.ws-cart-subtitle {
		font-size: 13px;
	}

	.ws-cart-header-icon {
		width: 50px;
		height: 50px;
	}

	.ws-cart-layout {
		grid-template-columns: 1fr;
	}

	.ws-cart-summary {
		position: static;
	}

	.ws-cart-item {
		grid-template-columns: 85px minmax(0, 1fr);
		gap: 15px;
		padding: 20px;
	}

	.ws-cart-item-image {
		width: 85px;
		height: 85px;
	}

	.ws-cart-item-total {
		display: none;
	}

	.ws-cart-item-title {
		font-size: 15px;
	}

	.ws-cart-item-price {
		font-size: 13px;
	}

	.ws-cart-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ws-cart-coupon {
		width: 100%;
		max-width: none;
	}

	.ws-cart-update {
		width: 100%;
	}

	.ws-cart-cross-sells-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

}

/* =========================================================
   Responsive - Small Mobile
========================================================= */

@media (max-width: 768px) {

	.ws-cart-header {
		padding: 18px;
	}

	.ws-cart-title {
		font-size: 22px;
	}

	.ws-cart-header-icon {
		width: 45px;
		height: 45px;
	}

	.ws-cart-products-heading {
		padding: 18px;
	}

	.ws-cart-item {
		grid-template-columns: 70px minmax(0, 1fr);
		padding: 16px;
		gap: 12px;
	}

	.ws-cart-item-image {
		width: 70px;
		height: 70px;
		border-radius: 10px;
	}

	.ws-cart-item-bottom {
		gap: 8px;
		margin-top: 10px;
	}

	.ws-cart-quantity input.qty {
		width: 60px;
		height: 38px;
	}

	.ws-cart-remove-btn {
		width: 36px;
		height: 36px;
	}

	.ws-cart-summary-card {
		padding: 20px;
	}

	.ws-cart-total strong {
		font-size: 19px;
	}

	.ws-cart-cross-sells-grid {
		grid-template-columns: 1fr;
	}

}