/* Cart, checkout, and account pages. */
.woocommerce-cart .page-content,
.woocommerce-checkout .page-content,
.woocommerce-account .page-content {
	width: min(1460px, calc(100% - 64px));
	margin: 0 auto;
	padding-block: 30px 60px;
}

.woocommerce-cart .content-card {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.woocommerce-cart .entry-header {
	display: none;
}

.woocommerce-cart .entry-content {
	margin: 0;
}

.woocommerce-checkout .content-card,
.woocommerce-account .content-card {
	padding: 32px;
	border-color: rgba(200, 155, 91, 0.3);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 16px 38px rgba(54, 28, 12, 0.06);
}

.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
	margin: 0 0 24px;
	color: #48060a;
	font-family: var(--psdv-heading-font);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0;
}

.psdv-cart-shell {
	color: #17130f;
}

.psdv-cart-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.psdv-cart-title-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.psdv-cart-title {
	margin: 0;
	color: #17130f;
	font-family: var(--psdv-heading-font);
	font-size: clamp(42px, 4vw, 58px);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}

.psdv-cart-count-badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 16px;
	border: 1px solid rgba(176, 112, 45, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: #563e2b;
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
}

.psdv-cart-clear {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #7a0709;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: color 0.18s ease;
}

.psdv-cart-clear span {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	font-size: 22px;
	line-height: 1;
}

.psdv-cart-clear:hover {
	color: #a40c10;
}

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

.psdv-cart-main {
	min-width: 0;
}

.psdv-cart-form,
.psdv-cart-total-card {
	border: 1px solid rgba(200, 155, 91, 0.28);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 18px 42px rgba(58, 34, 14, 0.055);
}

.psdv-cart-form {
	overflow: hidden;
}

.psdv-cart-items {
	display: grid;
}

.psdv-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 202px minmax(0, 1fr) 116px 92px;
	gap: 22px;
	align-items: center;
	min-width: 0;
	padding: 18px 46px 18px 22px;
	border-bottom: 1px solid rgba(200, 155, 91, 0.22);
}

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

.psdv-cart-item__media {
	overflow: hidden;
	width: 202px;
	height: 165px;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.psdv-cart-item__media a,
.psdv-cart-item__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.psdv-cart-item__media img {
	object-fit: contain;
}

.psdv-cart-item__info {
	display: grid;
	gap: 8px;
	align-content: center;
	min-width: 0;
}

.psdv-cart-item__badge {
	justify-self: start;
	padding: 4px 12px;
	border: 1px solid rgba(176, 112, 45, 0.42);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	color: #9b621f;
	font-size: 13px;
	line-height: 1;
}

.psdv-cart-item__name {
	color: #17130f;
	font-family: var(--psdv-heading-font);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.18;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.psdv-cart-item__name:hover {
	color: #5b0709;
}

.psdv-cart-item__meta {
	color: #4f4942;
	font-size: 16px;
	line-height: 1.35;
}

.psdv-cart-item__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #44743d;
	font-size: 14px;
	line-height: 1.2;
}

.psdv-cart-item__stock span[aria-hidden="true"] {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4f9b58;
}

.psdv-cart-item__stock .stock {
	margin: 0;
	color: inherit;
}

.psdv-cart-item__price,
.psdv-cart-item__quantity {
	display: grid;
	gap: 10px;
	align-content: center;
	min-width: 0;
}

.psdv-cart-item__price span,
.psdv-cart-item__quantity span {
	color: #6a6259;
	font-size: 15px;
	line-height: 1;
}

.psdv-cart-item__price strong,
.psdv-cart-item__quantity-count {
	color: #17130f;
	font-size: 21px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.psdv-cart-item__price strong {
	color: #48060a;
}

.psdv-cart-item__quantity-count {
	font: inherit;
}

.psdv-cart-item__remove {
	position: absolute;
	top: 50%;
	right: 14px;
	display: block;
	transform: translateY(-50%);
}

.psdv-cart-item__remove a.remove {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #7a2d18 !important;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease;
}

.psdv-cart-item__remove a.remove:hover {
	background: rgba(122, 7, 9, 0.09);
	color: #7a0709 !important;
}

.woocommerce-cart .button,
.woocommerce-cart button.button,
.woocommerce-cart input.button,
.woocommerce-cart .checkout-button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	overflow: hidden;
	border: 1px solid var(--psdv-button-border) !important;
	border-radius: 999px;
	background: var(--psdv-button-bg) !important;
	box-shadow: var(--psdv-button-shadow);
	color: var(--psdv-button-color) !important;
	font-family: var(--psdv-font);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.woocommerce-cart .button::before,
.woocommerce-cart button.button::before,
.woocommerce-cart input.button::before,
.woocommerce-cart .checkout-button::before {
	content: "";
	position: absolute;
	z-index: 0;
	inset: 4px;
	border: 1px dashed rgba(255, 232, 176, 0.32);
	border-radius: inherit;
}

.woocommerce-cart .button > *,
.woocommerce-cart button.button > *,
.woocommerce-cart input.button > *,
.woocommerce-cart .checkout-button > * {
	position: relative;
	z-index: 1;
}

.woocommerce-cart .button:hover,
.woocommerce-cart button.button:hover,
.woocommerce-cart input.button:hover,
.woocommerce-cart .checkout-button:hover {
	background: var(--psdv-button-bg-hover) !important;
	border-color: var(--psdv-button-border-hover) !important;
	box-shadow: var(--psdv-button-shadow-hover);
	transform: translateY(-2px);
}

.woocommerce-cart button.button:disabled,
.woocommerce-cart button.button:disabled[disabled] {
	opacity: 0.45;
	cursor: default;
	transform: none;
}

.psdv-cart-sidebar {
	position: sticky;
	top: 104px;
	min-width: 0;
	z-index: 1;
}

.woocommerce-cart .cart-collaterals {
	display: block;
}

.psdv-cart-total-card {
	width: 100%;
	padding: 28px;
}

.psdv-cart-total-card h2 {
	margin: 0 0 22px;
	color: #17130f;
	font-family: var(--psdv-heading-font);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.1;
}

.psdv-cart-total-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	padding: 12px 0;
	color: #2c2823;
	font-size: 16px;
	line-height: 1.3;
}

.psdv-cart-total-row strong {
	color: #17130f;
	font-size: 18px;
	font-weight: 500;
	text-align: right;
	white-space: nowrap;
}

.psdv-cart-total-row--main {
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(200, 155, 91, 0.24);
}

.psdv-cart-total-row--main strong,
.psdv-cart-total-row--pay strong {
	color: #48060a;
	font-family: var(--psdv-heading-font);
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
}

.psdv-cart-total-row--discount strong {
	color: #8f080b;
}

.psdv-cart-total-row--pay {
	margin-top: 10px;
	padding-top: 22px;
	border-top: 1px solid rgba(200, 155, 91, 0.24);
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 20px 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	min-height: 56px;
	font-size: 16px;
}

.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error {
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid rgba(200, 155, 91, 0.3);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.9);
	color: #302b26;
}

.woocommerce-cart .cart-empty {
	padding: 44px 30px;
	border: 1px solid rgba(200, 155, 91, 0.28);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.9);
	text-align: center;
}

.woocommerce-cart .return-to-shop {
	margin: 18px 0 0;
	text-align: center;
}

@media (max-width: 1180px) {
	.psdv-cart-layout {
		grid-template-columns: 1fr;
	}

	.psdv-cart-sidebar {
		position: static;
	}
}

@media (max-width: 940px) {
	.psdv-cart-item {
		grid-template-columns: 166px minmax(0, 1fr);
		gap: 16px;
		padding-right: 46px;
	}

	.psdv-cart-item__media {
		width: 166px;
		height: 146px;
	}

	.psdv-cart-item__price,
	.psdv-cart-item__quantity {
		grid-column: 2 / 3;
		grid-template-columns: 110px 1fr;
		align-items: center;
		gap: 10px;
	}

	.psdv-cart-item__remove {
		top: 20px;
		transform: none;
	}
}

@media (max-width: 760px) {
	.woocommerce-cart .page-content,
	.woocommerce-checkout .page-content,
	.woocommerce-account .page-content {
		width: min(100% - 28px, 1320px);
		padding-block: 24px 44px;
	}

	.woocommerce-checkout .content-card,
	.woocommerce-account .content-card {
		padding: 20px;
	}

	.woocommerce-checkout .entry-title,
	.woocommerce-account .entry-title {
		font-size: 32px;
	}

	.psdv-cart-heading,
	.psdv-cart-title-row {
		align-items: flex-start;
	}

	.psdv-cart-heading {
		flex-direction: column;
	}

	.psdv-cart-title-row {
		flex-wrap: wrap;
	}

	.psdv-cart-item {
		grid-template-columns: 112px minmax(0, 1fr);
		padding: 14px 42px 14px 14px;
	}

	.psdv-cart-item__media {
		width: 112px;
		height: 112px;
	}

	.psdv-cart-item__name {
		font-size: 20px;
	}

	.psdv-cart-item__price,
	.psdv-cart-item__quantity {
		grid-column: 1 / -1;
		grid-template-columns: 1fr auto;
	}

	.psdv-cart-total-card {
		padding: 22px;
	}

	.psdv-cart-total-row--main strong,
	.psdv-cart-total-row--pay strong {
		font-size: 28px;
	}
}
