/* =========================================================
   PepX Scientific — WooCommerce Cart
========================================================= */

body.woocommerce-cart {
	background: #f5f8ff;
}

/* Remove the normal page-content width restriction */

body.woocommerce-cart .site-main {
	width: 100%;
	max-width: none;
	padding: 80px 0 120px;
}

body.woocommerce-cart .site-main > article,
body.woocommerce-cart article.page,
body.woocommerce-cart .entry-content {
	width: min(100% - 48px, 1280px);
	max-width: 1280px;
	margin-right: auto;
	margin-left: auto;
	padding-right: 0;
	padding-left: 0;
}

body.woocommerce-cart .entry-header {
	width: min(100% - 48px, 1280px);
	max-width: 1280px;
	margin: 0 auto 42px;
	padding: 0;
}

body.woocommerce-cart .entry-title {
	margin: 0;
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: clamp(62px, 7vw, 96px);
	font-weight: 400;
	line-height: 0.9;
}

/* Main WooCommerce block */

body.woocommerce-cart .wp-block-woocommerce-cart {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.woocommerce-cart .wc-block-cart {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 380px !important;
	align-items: start;
	gap: 30px;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

body.woocommerce-cart .wc-block-cart__main {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	position: sticky;
	top: 120px;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 30px !important;
	background:
		radial-gradient(
			circle at 90% 5%,
			rgba(72, 119, 255, 0.15),
			transparent 34%
		),
		linear-gradient(180deg, #ffffff, #f7f9ff);
	border: 1px solid var(--pepx-border-light);
	border-radius: 28px;
	box-shadow: 0 22px 65px rgba(34, 61, 119, 0.1);
}

/* Cart products */

body.woocommerce-cart .wc-block-cart-items {
	width: 100%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--pepx-border-light);
	border-radius: 28px;
	box-shadow: 0 22px 65px rgba(34, 61, 119, 0.08);
}

body.woocommerce-cart .wc-block-cart-items__header {
	padding: 21px 27px;
	background: #f8faff;
	border-bottom: 1px solid var(--pepx-border-light);
}

body.woocommerce-cart .wc-block-cart-items__header span {
	color: var(--pepx-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items__row {
	padding: 28px 27px !important;
	border-bottom: 1px solid var(--pepx-border-light);
}

body.woocommerce-cart .wc-block-cart-items__row:last-child {
	border-bottom: 0;
}

body.woocommerce-cart .wc-block-cart-item__image {
	width: 125px !important;
	padding-right: 22px !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	background:
		radial-gradient(
			circle at 50% 35%,
			rgba(69, 117, 255, 0.13),
			transparent 48%
		),
		#f7f9ff;
	border: 1px solid var(--pepx-border-light);
	border-radius: 18px;
}

body.woocommerce-cart .wc-block-cart-item__product {
	padding-right: 20px !important;
}

body.woocommerce-cart .wc-block-components-product-name {
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: 29px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--pepx-blue);
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details,
body.woocommerce-cart .wc-block-components-product-metadata p {
	color: var(--pepx-muted);
	font-size: 10px;
	line-height: 1.7;
}

body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	color: var(--pepx-navy);
	font-size: 13px;
	font-weight: 800;
}

/* Quantity selector */

body.woocommerce-cart .wc-block-components-quantity-selector {
	min-height: 44px;
	background: var(--pepx-white);
	border: 1px solid var(--pepx-border);
	border-radius: 13px;
	overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector input {
	color: var(--pepx-navy);
	font-family: var(--pepx-font-body);
	font-size: 11px;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
	color: var(--pepx-blue);
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
	margin-top: 10px;
	color: var(--pepx-muted);
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: #d92d20;
}

/* Totals */

body.woocommerce-cart .wc-block-cart__totals-title {
	padding: 0 0 22px !important;
	margin: 0 0 18px !important;
	border-bottom: 1px solid var(--pepx-border);
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: 38px !important;
	font-weight: 400;
	line-height: 1;
	text-align: left;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
	padding: 17px 0;
	border-top: 1px solid var(--pepx-border-light);
}

body.woocommerce-cart .wc-block-components-totals-wrapper:first-of-type {
	border-top: 0;
}

body.woocommerce-cart .wc-block-components-totals-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

body.woocommerce-cart .wc-block-components-totals-item__label {
	color: var(--pepx-muted);
	font-size: 10px;
	font-weight: 700;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
	color: var(--pepx-navy);
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
	padding-top: 22px;
	border-top: 1px solid var(--pepx-border);
}

body.woocommerce-cart
	.wc-block-components-totals-footer-item
	.wc-block-components-totals-item__label,
body.woocommerce-cart
	.wc-block-components-totals-footer-item
	.wc-block-components-totals-item__value {
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: 27px;
	font-weight: 400;
	line-height: 1;
}

/* Coupon */

body.woocommerce-cart .wc-block-components-panel__button {
	width: 100%;
	color: var(--pepx-navy);
	font-size: 10px;
	font-weight: 800;
}

body.woocommerce-cart .wc-block-components-text-input input {
	min-height: 52px;
	background: var(--pepx-white);
	border: 1px solid var(--pepx-border);
	border-radius: 13px;
	color: var(--pepx-navy);
	font-family: var(--pepx-font-body);
}

body.woocommerce-cart .wc-block-components-text-input input:focus {
	border-color: var(--pepx-blue);
	box-shadow: 0 0 0 4px rgba(34, 92, 255, 0.1);
}

body.woocommerce-cart .wc-block-components-totals-coupon__button {
	min-height: 48px;
	padding: 0 18px;
	background: var(--pepx-blue-soft);
	border: 0;
	border-radius: 12px;
	color: var(--pepx-blue);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

/* Checkout button */

body.woocommerce-cart .wc-block-cart__submit {
	margin-top: 22px;
}

body.woocommerce-cart .wc-block-cart__submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 58px;
	padding: 0 22px;
	background: var(--pepx-blue);
	border: 0;
	border-radius: 15px;
	color: var(--pepx-white);
	font-family: var(--pepx-font-body);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	box-shadow: 0 17px 36px rgba(34, 92, 255, 0.22);
	transition:
		transform var(--pepx-transition),
		box-shadow var(--pepx-transition);
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background: var(--pepx-blue);
	box-shadow: 0 22px 45px rgba(34, 92, 255, 0.3);
	transform: translateY(-2px);
}

/* Shipping */

body.woocommerce-cart .wc-block-components-shipping-rates-control,
body.woocommerce-cart .wc-block-components-totals-shipping__change-address__link,
body.woocommerce-cart .wc-block-components-totals-shipping__via {
	color: var(--pepx-muted);
	font-size: 9px;
}

/* Cross-sells */

body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block {
	width: 100%;
	margin-top: 50px;
}

body.woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block h2,
body.woocommerce-cart .wc-block-components-product-list__title {
	margin-bottom: 30px;
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
}

body.woocommerce-cart .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

body.woocommerce-cart .wc-block-grid__product {
	width: auto !important;
	max-width: none !important;
	padding: 20px;
	background: var(--pepx-white);
	border: 1px solid var(--pepx-border-light);
	border-radius: 22px;
	box-shadow: 0 15px 42px rgba(34, 61, 119, 0.06);
}

body.woocommerce-cart .wc-block-grid__product-image img {
	border-radius: 16px;
}

body.woocommerce-cart .wc-block-grid__product-title {
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
}

body.woocommerce-cart .wc-block-grid__product-price {
	color: var(--pepx-navy);
	font-size: 11px;
	font-weight: 800;
}

body.woocommerce-cart .wp-block-button__link {
	min-height: 46px;
	padding: 14px 20px;
	background: var(--pepx-blue);
	border-radius: 13px;
	color: var(--pepx-white);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Empty cart */

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	padding: 70px 40px;
	background: var(--pepx-white);
	border: 1px solid var(--pepx-border-light);
	border-radius: 28px;
	text-align: center;
	box-shadow: 0 22px 65px rgba(34, 61, 119, 0.08);
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
	margin: 0 0 25px;
	color: var(--pepx-navy);
	font-family: var(--pepx-font-heading);
	font-size: clamp(54px, 7vw, 84px);
	font-weight: 400;
}

/* Responsive */

@media (max-width: 980px) {
	body.woocommerce-cart .wc-block-cart {
		grid-template-columns: 1fr !important;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		position: static;
	}

	body.woocommerce-cart .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	body.woocommerce-cart .site-main {
		padding: 55px 0 90px;
	}

	body.woocommerce-cart .site-main > article,
	body.woocommerce-cart article.page,
	body.woocommerce-cart .entry-content,
	body.woocommerce-cart .entry-header {
		width: min(100% - 24px, 1280px);
	}

	body.woocommerce-cart .wc-block-cart-items__row {
		padding: 20px 16px !important;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		width: 88px !important;
		padding-right: 14px !important;
	}

	body.woocommerce-cart .wc-block-components-product-name {
		font-size: 24px;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		padding: 23px !important;
		border-radius: 22px;
	}

	body.woocommerce-cart .wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}