/* Asiami Smart Cart Drawer — all selectors are intentionally prefixed. */
.ascd-root,
.ascd-root *,
.ascd-root *::before,
.ascd-root *::after {
	box-sizing: border-box;
	font-family: inherit !important;
}

.ascd-root {
	--ascd-red: #e52f2d;
	--ascd-red-dark: #c91e2f;
	--ascd-ink: #211f1c;
	--ascd-muted: #77716a;
	--ascd-line: rgba(95, 73, 54, 0.12);
	--ascd-ivory: #fffaf4;
	--ascd-card: rgba(255, 255, 255, 0.86);
	position: fixed;
	inset: 0;
	z-index: 1000002;
	direction: rtl;
	pointer-events: none;
	visibility: hidden;
}

.ascd-root.is-open {
	pointer-events: auto;
	visibility: visible;
}

.ascd-backdrop {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(24, 20, 17, 0.38);
	box-shadow: none;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 240ms ease;
	cursor: default;
}

.ascd-backdrop:hover,
.ascd-backdrop:focus {
	background: rgba(24, 20, 17, 0.38);
	box-shadow: none;
}

.ascd-root.is-open .ascd-backdrop {
	opacity: 1;
}

.ascd-drawer {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 24px));
	height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
	color: var(--ascd-ink);
	background:
		linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.82)),
		rgba(255, 250, 244, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-right: 0;
	border-radius: 32px 0 0 32px;
	box-shadow: -18px 0 60px rgba(35, 27, 20, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	backdrop-filter: blur(24px) saturate(145%);
	transform: translate3d(104%, 0, 0);
	transition: transform 330ms cubic-bezier(0.22, 0.9, 0.28, 1);
	outline: 0;
	isolation: isolate;
}

.ascd-drawer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 84% 3%, rgba(229, 47, 45, 0.1), transparent 29%),
		radial-gradient(circle at 8% 94%, rgba(149, 181, 105, 0.11), transparent 26%);
}

.ascd-root.is-open .ascd-drawer {
	transform: translate3d(0, 0, 0);
}

.ascd-mobile-handle {
	display: none;
}

.ascd-header {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	padding: 16px 22px;
	border-bottom: 1px solid var(--ascd-line);
	background: rgba(255, 251, 246, 0.48);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.ascd-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ascd-header h2 {
	margin: 0;
	color: var(--ascd-ink);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.4;
}

.ascd-header-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 27px;
	padding: 3px 9px;
	color: #a5332f;
	background: rgba(229, 47, 45, 0.08);
	border: 1px solid rgba(229, 47, 45, 0.13);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.ascd-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 42px;
	margin: 0;
	padding: 7px 9px 7px 11px;
	color: #4c4843;
	background: transparent;
	border: 0;
	border-radius: 14px;
	box-shadow: none;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease;
}

.ascd-close:hover,
.ascd-close:focus-visible {
	color: var(--ascd-red-dark);
	background: rgba(229, 47, 45, 0.07);
	box-shadow: none;
}

.ascd-close svg,
.ascd-coupon svg,
.ascd-secondary-button svg,
.ascd-remove svg,
.ascd-empty-icon svg {
	display: block;
	flex: 0 0 auto;
}

.ascd-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.ascd-items {
	flex: 1 1 auto;
	min-height: 0;
	padding: 16px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(101, 80, 63, 0.25) transparent;
}

.ascd-items::-webkit-scrollbar {
	width: 5px;
}

.ascd-items::-webkit-scrollbar-thumb {
	background: rgba(101, 80, 63, 0.22);
	border-radius: 999px;
}

.ascd-item {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	grid-template-areas:
		"image main"
		"image total";
	gap: 9px 14px;
	padding: 13px;
	background: var(--ascd-card);
	border: 1px solid rgba(103, 81, 62, 0.1);
	border-radius: 21px;
	box-shadow: 0 8px 24px rgba(59, 45, 34, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ascd-item + .ascd-item {
	margin-top: 11px;
}

.ascd-item-image {
	grid-area: image;
	display: block;
	align-self: start;
	width: 86px;
	height: 96px;
	overflow: hidden;
	background: #fff8f1;
	border: 1px solid rgba(229, 47, 45, 0.08);
	border-radius: 17px;
}

.ascd-item-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.ascd-item-main {
	grid-area: main;
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.ascd-item-name {
	display: -webkit-box;
	min-width: 0;
	overflow: hidden;
	color: #2b2825;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.75;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ascd-item-name:hover {
	color: var(--ascd-red-dark);
}

.ascd-unit-price {
	margin-top: 2px;
	color: var(--ascd-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.7;
}

.ascd-item-meta {
	margin-top: 2px;
	color: var(--ascd-muted);
	font-size: 10.5px;
	line-height: 1.65;
}

.ascd-item-meta dl,
.ascd-item-meta p {
	margin: 0;
}

.ascd-item-meta dt,
.ascd-item-meta dd {
	display: inline;
	margin: 0;
}

.ascd-item-meta dd::after {
	content: " ";
}

.ascd-unit-price .woocommerce-Price-amount,
.ascd-item-total .woocommerce-Price-amount,
.ascd-total-row .woocommerce-Price-amount,
.ascd-discount-row .woocommerce-Price-amount {
	font: inherit !important;
}

.ascd-item-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.ascd-quantity {
	display: inline-grid;
	grid-template-columns: 34px 38px 34px;
	height: 35px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(89, 70, 54, 0.16);
	border-radius: 11px;
}

.ascd-quantity button,
.ascd-quantity input {
	width: 100%;
	height: 33px;
	min-height: 0;
	margin: 0;
	padding: 0;
	color: #36312d;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: 16px;
	font-weight: 700;
	line-height: 33px;
	text-align: center;
}

.ascd-quantity button {
	cursor: pointer;
}

.ascd-quantity button:hover,
.ascd-quantity button:focus-visible {
	color: var(--ascd-red-dark);
	background: rgba(229, 47, 45, 0.055);
	box-shadow: none;
}

.ascd-quantity input {
	-moz-appearance: textfield;
	border-inline: 1px solid rgba(89, 70, 54, 0.12);
	font-size: 13px;
}

.ascd-quantity input::-webkit-outer-spin-button,
.ascd-quantity input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ascd-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	min-height: 0;
	margin: 0;
	padding: 0;
	color: #9e9186;
	background: transparent;
	border: 0;
	border-radius: 11px;
	box-shadow: none;
	cursor: pointer;
	transition: color 160ms ease, background 160ms ease;
}

.ascd-remove:hover,
.ascd-remove:focus-visible {
	color: var(--ascd-red-dark);
	background: rgba(229, 47, 45, 0.075);
	box-shadow: none;
}

.ascd-item-total {
	grid-area: total;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(95, 73, 54, 0.1);
}

.ascd-item-total > span {
	color: var(--ascd-muted);
	font-size: 12px;
}

.ascd-item-total strong {
	color: var(--ascd-red-dark);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.ascd-footer {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	padding: 15px 18px max(18px, env(safe-area-inset-bottom));
	background: rgba(255, 250, 244, 0.78);
	border-top: 1px solid rgba(95, 73, 54, 0.11);
	box-shadow: 0 -14px 32px rgba(68, 48, 33, 0.045);
	-webkit-backdrop-filter: blur(21px) saturate(140%);
	backdrop-filter: blur(21px) saturate(140%);
}

.ascd-coupon {
	margin-bottom: 11px;
	padding: 0;
	background: rgba(255, 255, 255, 0.58);
	border: 1px solid rgba(92, 70, 53, 0.12);
	border-radius: 15px;
}

.ascd-coupon summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 9px 13px;
	color: #4b4641;
	font-size: 13px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.ascd-coupon summary::-webkit-details-marker {
	display: none;
}

.ascd-coupon-label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ascd-coupon-label svg {
	color: var(--ascd-red);
}

.ascd-chevron {
	transition: transform 180ms ease;
}

.ascd-coupon[open] .ascd-chevron {
	transform: rotate(180deg);
}

.ascd-coupon-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	gap: 7px;
	padding: 0 10px 10px;
}

.ascd-coupon-form input,
.ascd-coupon-form button {
	height: 39px;
	min-height: 0;
	margin: 0;
	border-radius: 11px;
	box-shadow: none;
	font-size: 12px;
}

.ascd-coupon-form input {
	width: 100%;
	padding: 0 11px;
	color: var(--ascd-ink);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(95, 73, 54, 0.15);
}

.ascd-coupon-form input:focus {
	border-color: rgba(229, 47, 45, 0.45);
	outline: 2px solid rgba(229, 47, 45, 0.09);
}

.ascd-coupon-form button {
	padding: 0 9px;
	color: #fff;
	background: var(--ascd-red-dark);
	border: 0;
	font-weight: 750;
	cursor: pointer;
}

.ascd-coupon-form button:hover,
.ascd-coupon-form button:focus-visible {
	color: #fff;
	background: #ad1827;
	box-shadow: none;
}

.ascd-coupon-message {
	display: none;
	padding: 0 12px 10px;
	color: var(--ascd-red-dark);
	font-size: 11px;
	line-height: 1.7;
}

.ascd-coupon-message:not(:empty) {
	display: block;
}

.ascd-total-row,
.ascd-discount-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ascd-discount-row {
	margin: 0 3px 7px;
	color: #638044;
	font-size: 12px;
}

.ascd-total-row {
	margin: 0 3px 13px;
}

.ascd-total-row > span {
	color: #49433e;
	font-size: 15px;
	font-weight: 750;
}

.ascd-total-row strong {
	color: var(--ascd-red-dark);
	font-size: 19px;
	font-weight: 900;
	white-space: nowrap;
}

.ascd-primary-button,
.ascd-secondary-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 49px;
	min-height: 49px;
	margin: 0;
	padding: 0 18px;
	border-radius: 15px;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ascd-primary-button {
	color: #fff;
	background: linear-gradient(135deg, #ed3a31, #c91e2f);
	border: 1px solid rgba(172, 20, 40, 0.32);
	box-shadow: 0 9px 21px rgba(201, 30, 47, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.ascd-primary-button:hover,
.ascd-primary-button:focus-visible {
	color: #fff;
	background: linear-gradient(135deg, #df2926, #b81727);
	box-shadow: 0 11px 24px rgba(201, 30, 47, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.ascd-secondary-button {
	gap: 8px;
	height: 41px;
	min-height: 41px;
	margin-top: 4px;
	color: #655e57;
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 12px;
}

.ascd-secondary-button:hover,
.ascd-secondary-button:focus-visible {
	color: var(--ascd-red-dark);
	background: rgba(229, 47, 45, 0.045);
	box-shadow: none;
}

.ascd-empty,
.ascd-error-state {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 360px;
	padding: 34px;
	text-align: center;
}

.ascd-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 82px;
	height: 82px;
	margin-bottom: 18px;
	color: var(--ascd-red);
	background: rgba(255, 255, 255, 0.66);
	border: 1px solid rgba(229, 47, 45, 0.11);
	border-radius: 27px;
	box-shadow: 0 14px 32px rgba(61, 42, 29, 0.08);
}

.ascd-empty-icon svg {
	width: 38px;
	height: 38px;
}

.ascd-empty h3 {
	margin: 0 0 8px;
	color: var(--ascd-ink);
	font-size: 19px;
	font-weight: 850;
}

.ascd-empty p,
.ascd-error-state {
	margin: 0 0 20px;
	color: var(--ascd-muted);
	font-size: 13px;
	line-height: 1.9;
}

.ascd-empty .ascd-primary-button {
	width: auto;
	min-width: 190px;
	padding-inline: 28px;
}

.ascd-root.is-loading .ascd-content {
	cursor: progress;
}

.ascd-root.is-loading .ascd-content::after {
	content: "";
	position: absolute;
	top: 86px;
	right: 18px;
	z-index: 8;
	width: 19px;
	height: 19px;
	border: 2px solid rgba(229, 47, 45, 0.18);
	border-top-color: var(--ascd-red);
	border-radius: 50%;
	animation: ascd-spin 650ms linear infinite;
}

.ascd-root.is-loading .ascd-items,
.ascd-root.is-loading .ascd-footer {
	pointer-events: none;
	opacity: 0.66;
}

.ascd-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.ascd-cart-open {
	overflow: hidden !important;
}

body.ascd-cart-open .asmln-root {
	pointer-events: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	transform: translateY(120%) !important;
}

body.ascd-cart-open .cart-widget-side,
body.ascd-cart-open .wd-close-side {
	pointer-events: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

@keyframes ascd-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.ascd-backdrop {
		background: rgba(29, 24, 20, 0.34);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
	}

	.ascd-drawer {
		top: auto;
		bottom: 0;
		width: 100%;
		height: min(88dvh, 760px);
		max-height: 88dvh;
		border: 1px solid rgba(255, 255, 255, 0.82);
		border-bottom: 0;
		border-radius: 29px 29px 0 0;
		box-shadow: 0 -18px 55px rgba(38, 29, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
		transform: translate3d(0, 105%, 0);
	}

	.ascd-mobile-handle {
		display: block;
		flex: 0 0 auto;
		width: 40px;
		height: 4px;
		margin: 9px auto 0;
		background: rgba(73, 61, 51, 0.2);
		border-radius: 999px;
	}

	.ascd-header {
		min-height: 59px;
		padding: 7px 16px 9px;
		background: rgba(255, 251, 246, 0.34);
	}

	.ascd-header h2 {
		font-size: 19px;
	}

	.ascd-header-count {
		min-height: 25px;
		font-size: 11px;
	}

	.ascd-close {
		width: 40px;
		height: 40px;
		min-height: 40px;
		padding: 0;
	}

	.ascd-close span {
		display: none;
	}

	.ascd-items {
		padding: 11px 12px;
	}

	.ascd-item {
		grid-template-columns: 70px minmax(0, 1fr);
		gap: 7px 11px;
		padding: 10px;
		border-radius: 18px;
	}

	.ascd-item + .ascd-item {
		margin-top: 8px;
	}

	.ascd-item-image {
		width: 70px;
		height: 80px;
		border-radius: 14px;
	}

	.ascd-item-name {
		font-size: 12.5px;
		line-height: 1.7;
	}

	.ascd-unit-price {
		font-size: 10.5px;
	}

	.ascd-item-actions {
		margin-top: 5px;
	}

	.ascd-quantity {
		grid-template-columns: 31px 35px 31px;
		height: 32px;
		border-radius: 10px;
	}

	.ascd-quantity button,
	.ascd-quantity input {
		height: 30px;
		line-height: 30px;
	}

	.ascd-remove {
		width: 32px;
		height: 32px;
	}

	.ascd-remove svg {
		width: 19px;
		height: 19px;
	}

	.ascd-item-total {
		padding-top: 6px;
	}

	.ascd-item-total > span {
		font-size: 10.5px;
	}

	.ascd-item-total strong {
		font-size: 12px;
	}

	.ascd-footer {
		padding: 10px 12px max(12px, env(safe-area-inset-bottom));
	}

	.ascd-coupon {
		margin-bottom: 8px;
		border-radius: 13px;
	}

	.ascd-coupon summary {
		min-height: 40px;
		padding: 7px 11px;
		font-size: 11.5px;
	}

	.ascd-coupon-form {
		grid-template-columns: minmax(0, 1fr) 82px;
	}

	.ascd-coupon-form input,
	.ascd-coupon-form button {
		height: 36px;
		font-size: 11px;
	}

	.ascd-total-row {
		margin-bottom: 9px;
	}

	.ascd-total-row > span {
		font-size: 13px;
	}

	.ascd-total-row strong {
		font-size: 16px;
	}

	.ascd-primary-button {
		height: 45px;
		min-height: 45px;
		border-radius: 14px;
		font-size: 13px;
	}

	.ascd-secondary-button {
		height: 34px;
		min-height: 34px;
		font-size: 11px;
	}

	.ascd-root.is-loading .ascd-content::after {
		top: 69px;
		right: 15px;
	}
}

@media (max-width: 380px) {
	.ascd-item {
		grid-template-columns: 62px minmax(0, 1fr);
	}

	.ascd-item-image {
		width: 62px;
		height: 74px;
	}

	.ascd-quantity {
		grid-template-columns: 29px 33px 29px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ascd-backdrop,
	.ascd-drawer,
	.ascd-primary-button,
	.ascd-chevron {
		transition-duration: 1ms !important;
	}
}
