/* Dar Manhal luxury cart page — loads after core pages/cart.css */
.cart-page.dmah-cart-page {
	--cart-pink: #409A9D;
	--cart-ink: #16181D;
	--cart-rule: rgba(22, 24, 29, 0.08);
	background: #fff !important;
	background-image: none !important;
	padding: 28px 0 80px !important;
}

.cart-page.dmah-cart-page > .container {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Neutralize Argima .cart-line grid so theme row layout wins */
.dmah-cart-page .cart-line.dmah-cart-line-row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.7fr 0.7fr 40px;
	gap: 12px;
	align-items: center;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(22, 24, 29, 0.06);
	border-top: 0;
	margin: 0;
}

.dmah-cart-page .cart-line__remove {
	position: static;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--jg-settings-radius, 5px);
	background: transparent;
	color: rgba(22, 24, 29, 0.35);
	font-size: 22px;
	line-height: 1;
	padding: 0;
	box-shadow: none;
}

/* ——— Luxury cart page ——— */
.dmah-cart-page {
	padding: 28px 0 80px;
	background: #fff;
}

.dmah-cart-page > .container {
	padding-top: 0;
	padding-bottom: 0;
}

.dmah-cart-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 36px 40px;
	align-items: start;
}

.dmah-cart-empty {
	text-align: center;
	padding: 64px 20px;
	background: #fff;
	border: 1px solid rgba(22, 24, 29, 0.06);
	border-radius: var(--jg-settings-radius, 5px);
}

.dmah-cart-empty__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 999px;
	background: rgba(64, 154, 157, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
}

.dmah-cart-empty__icon img {
	width: 28px;
}

.dmah-cart-empty__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #16181D;
}

.dmah-cart-empty__hint {
	margin: 0 auto 24px;
	max-width: 320px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(22, 24, 29, 0.55);
}

.dmah-cart-table {
	background: #fff;
	border: 1px solid rgba(22, 24, 29, 0.07);
	border-radius: var(--jg-settings-radius, 5px);
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(16, 18, 22, 0.04);
}

.dmah-cart-table__head {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.7fr 0.7fr 40px;
	gap: 12px;
	padding: 14px 22px;
	background: #fff;
	border-bottom: 1px solid rgba(22, 24, 29, 0.08);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(22, 24, 29, 0.45);
}

.dmah-cart-line-row {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.7fr 0.7fr 40px;
	gap: 12px;
	align-items: center;
	padding: 20px 22px;
	border-bottom: 1px solid rgba(22, 24, 29, 0.06);
}

.dmah-cart-line-row:last-child {
	border-bottom: 0;
}

.dmah-cart-line-row__product {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.dmah-cart-line-row__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 96px;
	border-radius: var(--jg-settings-radius, 5px);
	overflow: hidden;
	background: #eef1f2;
	box-shadow: 0 8px 20px rgba(22, 24, 29, 0.08);
}

.dmah-cart-line-row__thumb img,
.dmah-cart-line-row__thumb .cart-line__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dmah-cart-line-row__meta {
	min-width: 0;
}

.dmah-cart-line-row .cart-line__name {
	display: block;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #16181D;
	text-decoration: none;
	line-height: 1.35;
}

.dmah-cart-line-row .cart-line__name:hover {
	color: #409A9D;
}

.dmah-cart-line-row__unit,
.dmah-cart-line-row__total {
	font-size: 15px;
	font-weight: 400;
	color: rgba(22, 24, 29, 0.72);
}

.dmah-cart-line-row__compare {
	display: inline-block;
	margin-right: 6px;
	font-size: 13px;
	font-weight: 400;
	color: rgba(22, 24, 29, 0.4);
	text-decoration: line-through;
}

.dmah-cart-line-row__unit-mobile {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 400;
	color: rgba(22, 24, 29, 0.65);
}

.dmah-cart-line-row .cart-qty__select {
	width: 76px;
	height: 40px;
	padding: 0 28px 0 14px;
	border: 1px solid rgba(22, 24, 29, 0.12);
	border-radius: var(--jg-settings-radius, 5px);
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2316181D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75L6 6.25L10.5 1.75'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px 7px;
	font-size: 14px;
	font-weight: 400;
	color: #16181D;
	line-height: 38px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.dmah-cart-line-row .cart-qty__select::-ms-expand {
	display: none;
}

.dmah-cart-line-row__remove .cart-line__remove {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--jg-settings-radius, 5px);
	background: transparent;
	color: rgba(22, 24, 29, 0.35);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.dmah-cart-line-row__remove .cart-line__remove:hover {
	color: #409A9D;
	background: rgba(64, 154, 157, 0.08);
}

.dmah-cart-summary {
	position: sticky;
	top: 100px;
	padding: 28px 26px 26px;
	background: #fff;
	border: 1px solid rgba(22, 24, 29, 0.07);
	border-radius: var(--jg-settings-radius, 5px);
	box-shadow: 0 16px 48px rgba(16, 18, 22, 0.06);
	overflow: hidden;
}

.dmah-cart-summary__ornament {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, #409A9D 20%, #7bc4c6 50%, #409A9D 80%, transparent);
}

.dmah-cart-summary__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #409A9D;
}

.dmah-cart-summary__head h2 {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #16181D;
}

.dmah-cart-summary__count {
	display: block;
	margin-bottom: 20px;
	font-size: 13px;
	color: rgba(22, 24, 29, 0.5);
}

.dmah-cart-summary__label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(22, 24, 29, 0.5);
}

.dmah-cart-summary__code-row {
	display: flex;
	gap: 8px;
}

.dmah-cart-summary__code-row .form-control {
	flex: 1 1 auto;
	height: 44px;
	border: 1px solid rgba(22, 24, 29, 0.12);
	border-radius: var(--jg-settings-radius, 5px);
	font-size: 14px;
}

.dmah-cart-summary__code-row .btn-default {
	flex: 0 0 auto;
	padding: 0 18px !important;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
}

.dmah-cart-summary__code-row .btn-default::before,
.dmah-cart-summary__code-row .btn-default::after {
	display: none !important;
	content: none !important;
}

.dmah-cart-summary__codes {
	margin-bottom: 18px;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(22, 24, 29, 0.07);
	display: grid;
	gap: 8px;
}

.dmah-cart-code {
	border: 1px solid rgba(22, 24, 29, 0.08);
	border-radius: var(--jg-settings-radius, 5px);
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dmah-cart-code.is-open {
	border-color: rgba(64, 154, 157, 0.35);
	box-shadow: 0 0 0 3px rgba(64, 154, 157, 0.08);
}

.dmah-cart-code__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	color: #16181D;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.dmah-cart-code__toggle:hover {
	color: #409A9D;
}

.dmah-cart-code__toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.dmah-cart-code__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--jg-settings-radius, 5px);
	background: rgba(64, 154, 157, 0.1);
	color: #409A9D;
	font-size: 12px;
}

.dmah-cart-code__chev {
	width: 8px;
	height: 8px;
	border-right: 1.5px solid rgba(22, 24, 29, 0.35);
	border-bottom: 1.5px solid rgba(22, 24, 29, 0.35);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	flex: 0 0 auto;
	margin-top: -4px;
}

.dmah-cart-code.is-open .dmah-cart-code__chev {
	transform: rotate(225deg);
	margin-top: 2px;
}

.dmah-cart-code__panel {
	padding: 0 14px 14px;
}

.dmah-cart-code__panel[hidden] {
	display: none !important;
}

.dmah-cart-summary__applied {
	margin: 8px 0 0;
	font-size: 14px;
}

.dmah-cart-summary__applied button {
	border: 0;
	background: none;
	color: #409A9D;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: underline;
	padding: 0 0 0 8px;
}

.dmah-cart-summary__error {
	margin: 8px 0 0;
	font-size: 13px;
	color: #b42318;
}

.dmah-cart-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 14px;
	color: #16181D;
}

.dmah-cart-summary__row--total {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(22, 24, 29, 0.08);
	font-size: 16px;
	font-weight: 600;
}

.dmah-cart-summary__row--total strong {
	color: #409A9D;
	font-size: 22px;
	letter-spacing: -0.02em;
}

.dmah-cart-summary__note {
	margin: 4px 0 20px;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(22, 24, 29, 0.45);
}

.dmah-cart-summary__actions {
	display: grid;
	gap: 10px;
}

.dmah-cart-summary__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	box-shadow: 0 10px 28px rgba(64, 154, 157, 0.28);
}

.dmah-cart-summary__checkout.disabled {
	opacity: 0.45;
	pointer-events: none;
	box-shadow: none;
}

.dmah-cart-summary__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	font-size: 14px;
	font-weight: 500;
	color: #16181D;
	text-decoration: none;
	border: 1px solid rgba(22, 24, 29, 0.12);
	border-radius: var(--jg-settings-radius, 5px);
	background: #fff;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.dmah-cart-summary__continue:hover {
	border-color: #409A9D;
	color: #409A9D;
}

.dmah-cart-recs {
	grid-column: 1 / -1;
	margin-top: 12px;
	padding-top: 40px;
	border-top: 1px solid rgba(22, 24, 29, 0.07);
}

.dmah-cart-recs__eyebrow {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #409A9D;
}

.dmah-cart-recs__head h2 {
	margin: 0 0 24px;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #16181D;
}

.dmah-cart-recs__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.dmah-cart-recs__grid.product-item-list {
	flex-wrap: unset;
}

.dmah-cart-recs__grid .product-item {
	width: 100% !important;
	margin: 0;
}

.dmah-cart-recs__grid .product-item-btn .btn-default {
	width: 100%;
}

.dmah-cart-rec__thumb {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--jg-settings-radius, 5px);
	background: #eef1f2;
	margin-bottom: 14px;
	box-shadow: 0 10px 28px rgba(22, 24, 29, 0.08);
	transition: transform 0.3s ease;
}

.dmah-cart-rec__thumb:hover {
	transform: translateY(-3px);
}

.dmah-cart-rec__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dmah-cart-rec__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.dmah-cart-rec__title a {
	color: #16181D;
	text-decoration: none;
}

.dmah-cart-rec__title a:hover {
	color: #409A9D;
}

.dmah-cart-rec__price {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #16181D;
}

.dmah-cart-rec__price span {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 400;
	color: rgba(22, 24, 29, 0.4);
	text-decoration: line-through;
}

/* ——— Mobile cart polish ——— */
@media (max-width: 991px) {
	.cart-page.dmah-cart-page,
	.dmah-cart-page {
		padding: 12px 0 96px !important;
	}

	.dmah-cart-page__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.dmah-cart-table {
		border: 0;
		box-shadow: none;
		background: transparent;
		overflow: visible;
	}

	.dmah-cart-table__head {
		display: none;
	}

	.dmah-cart-page .cart-line.dmah-cart-line-row,
	.dmah-cart-line-row {
		display: grid !important;
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb meta remove"
			"thumb qty total";
		column-gap: 12px;
		row-gap: 10px;
		align-items: start;
		margin: 0 0 12px !important;
		padding: 14px !important;
		border: 1px solid rgba(22, 24, 29, 0.08) !important;
		border-radius: var(--jg-settings-radius, 5px) !important;
		background: #fff;
		box-shadow: 0 8px 24px rgba(22, 24, 29, 0.04);
	}

	.dmah-cart-line-row:last-child {
		margin-bottom: 0 !important;
	}

	/* Let thumb + meta join the row grid so qty sits under the title/price */
	.dmah-cart-line-row__product {
		display: contents;
	}

	.dmah-cart-line-row__thumb {
		grid-area: thumb;
		flex: none;
		width: 64px;
		height: 86px;
		align-self: start;
	}

	.dmah-cart-line-row__meta {
		grid-area: meta;
		min-width: 0;
		padding-right: 4px;
	}

	.dmah-cart-line-row .cart-line__name {
		font-size: 14px;
		font-weight: 500;
		line-height: 1.35;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		overflow: hidden;
	}

	.dmah-cart-line-row__unit {
		display: none !important;
	}

	.dmah-cart-line-row__unit-mobile {
		display: flex !important;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 6px;
		margin-top: 6px;
		font-size: 13px;
		font-weight: 600;
		color: #16181D;
	}

	.dmah-cart-line-row__unit-mobile .cart-line__mobile-label {
		display: none;
	}

	.dmah-cart-line-row__qty {
		grid-area: qty;
		justify-self: start;
		align-self: end;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.dmah-cart-line-row .cart-qty__select {
		width: 68px;
		height: 36px;
		padding: 0 26px 0 12px;
		border-radius: var(--jg-settings-radius, 5px) !important;
		line-height: 34px;
		font-size: 14px;
		font-weight: 500;
		background-position: right 10px center;
	}

	.dmah-cart-line-row__total,
	.dmah-cart-page .cart-line__subtotal.dmah-cart-line-row__total {
		grid-area: total;
		display: block !important;
		text-align: right;
		align-self: end;
		justify-self: end;
		font-size: 16px;
		font-weight: 600;
		color: #16181D;
		line-height: 36px;
	}

	.dmah-cart-line-row__remove {
		grid-area: remove;
		justify-self: end;
		align-self: start;
	}

	.dmah-cart-page .cart-line__remove,
	.dmah-cart-line-row__remove .cart-line__remove {
		width: 36px;
		height: 36px;
		border-radius: var(--jg-settings-radius, 5px) !important;
		border: 1px solid rgba(22, 24, 29, 0.1);
		background: #fff;
		color: rgba(22, 24, 29, 0.45);
		font-size: 20px;
	}

	.dmah-cart-summary {
		position: static;
		padding: 22px 18px 20px;
		border-radius: var(--jg-settings-radius, 5px);
		box-shadow: 0 12px 32px rgba(16, 18, 22, 0.06);
	}

	.dmah-cart-summary__head h2 {
		font-size: 22px;
	}

	.dmah-cart-summary__codes {
		gap: 10px;
	}

	.dmah-cart-summary__code-row {
		flex-wrap: nowrap;
	}

	.dmah-cart-summary__code-row .form-control {
		min-width: 0;
		flex: 1 1 auto;
	}

	.dmah-cart-summary__checkout {
		min-height: 48px;
		border-radius: var(--jg-settings-radius, 5px) !important;
	}

	.dmah-cart-summary__continue {
		min-height: 44px;
	}

	.dmah-cart-recs {
		margin-top: 8px;
		padding-top: 28px;
		overflow: hidden;
	}

	.dmah-cart-recs__head {
		text-align: left;
		margin-bottom: 4px;
		padding-right: 8px;
	}

	.dmah-cart-recs__head h2 {
		font-size: 24px;
		margin-bottom: 16px;
	}

	/* Horizontal snap track — full product cards are too cramped in a 2-col grid */
	.dmah-cart-recs__grid,
	.dmah-cart-recs__grid.product-item-list {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: stretch;
		gap: 12px !important;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-inline: -12px;
		padding: 4px 12px 12px;
	}

	.dmah-cart-recs__grid::-webkit-scrollbar {
		display: none;
	}

	.dmah-cart-recs__grid .product-item {
		flex: 0 0 68%;
		width: 68% !important;
		max-width: 260px !important;
		min-width: 200px !important;
		margin: 0 !important;
		padding: 12px 10px 14px !important;
		scroll-snap-align: start;
		height: auto;
	}

	.dmah-cart-recs__grid .product-item-header {
		margin-bottom: 10px;
	}

	.dmah-cart-recs__grid .product-item-image {
		padding: 6px 4px 2px;
	}

	.dmah-cart-recs__grid .product-item-action {
		display: none;
	}

	.dmah-cart-recs__grid .product-item-content .product-item-tag {
		display: none;
	}

	.dmah-cart-recs__grid .product-item-content .product-item-title,
	.dmah-cart-recs__grid .product-item-content h2.product-item-title {
		font-size: 14px;
		min-height: 0;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.dmah-cart-recs__grid .product-item-content h3 {
		margin-top: 6px;
		font-size: 14px;
	}

	.dmah-cart-recs__grid .product-item-btn {
		padding-top: 12px;
		min-height: 0;
	}

	.dmah-cart-recs__grid .product-item-btn .btn-default,
	.dmah-cart-recs__grid .product-item-btn .btn-default.btn-add-cart {
		width: 100%;
		min-height: 42px;
		height: 42px;
		padding: 0 12px !important;
		font-size: 13px !important;
		gap: 8px;
		justify-content: center;
		border-radius: var(--jg-settings-radius, 5px) !important;
	}

	.dmah-cart-recs__grid .product-item-btn .btn-add-cart__icon img {
		width: 15px;
		height: 15px;
	}

	.dmah-cart-recs__grid .product-item-btn .btn-default.btn-add-cart .btn-add-cart__label {
		display: inline !important;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}
}

@media (max-width: 575px) {
	.cart-page.dmah-cart-page,
	.dmah-cart-page {
		padding: 8px 0 88px !important;
	}

	.dmah-cart-page .cart-line.dmah-cart-line-row,
	.dmah-cart-line-row {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		padding: 12px !important;
		column-gap: 10px;
		row-gap: 8px;
	}

	.dmah-cart-line-row__thumb {
		width: 56px;
		height: 76px;
	}

	.dmah-cart-line-row .cart-line__name {
		font-size: 13px;
	}

	.dmah-cart-line-row .cart-qty__select {
		width: 64px;
		height: 34px;
		line-height: 32px;
	}

	.dmah-cart-line-row__total {
		font-size: 15px;
		line-height: 34px;
	}

	.dmah-cart-summary {
		padding: 18px 16px 16px;
	}

	.dmah-cart-recs__head h2 {
		font-size: 22px;
	}

	.dmah-cart-recs__grid .product-item {
		flex: 0 0 72%;
		width: 72% !important;
		min-width: 220px !important;
		max-width: 280px !important;
	}
}
