/* Amanos Ajax Cart — Dark Olive + Gold */

:root {
	--aac-green-950: #031006;
	--aac-green-900: #061609;
	--aac-green-800: #0c2812;
	--aac-gold-light: #f2e2b8;
	--aac-gold: #dcbe7e;
	--aac-gold-deep: #a8823f;
	--aac-cream: #f4efe2;
}

body.amanos-cart-open {
	overflow: hidden !important;
	touch-action: none;
}

body.amanos-ajax-cart-active .ct-header-cart .ct-cart-content {
	display: none !important;
}

.amanos-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(1, 9, 3, 0.62);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.amanos-cart-overlay.is-visible {
	opacity: 1;
}

.amanos-cart-drawer,
.amanos-cart-drawer *,
.amanos-cart-drawer *::before,
.amanos-cart-drawer *::after {
	box-sizing: border-box;
}

.amanos-cart-drawer {
	position: fixed;
	z-index: 999999;
	top: 0;
	/* inline-start = left in LTR (German), right in RTL (Arabic). */
	inset-inline-start: 0;
	width: min(92vw, 460px);
	height: 100dvh;
	display: flex;
	flex-direction: column;
	color: var(--aac-cream);
	background:
		radial-gradient(80% 45% at 100% 0%, rgba(220, 190, 126, 0.14), transparent 64%),
		radial-gradient(80% 50% at 0% 100%, rgba(61, 140, 68, 0.16), transparent 66%),
		linear-gradient(155deg, var(--aac-green-800), var(--aac-green-950));
	border-inline-end: 1px solid rgba(220, 190, 126, 0.25);
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
	/* LTR: parked off the left edge. */
	transform: translateX(-105%);
	visibility: hidden;
	transition:
		transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.34s;
	font-family: inherit;
	isolation: isolate;
}

.amanos-cart-drawer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(244, 239, 226, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(244, 239, 226, 0.035) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: radial-gradient(90% 75% at 50% 42%, #000, transparent 88%);
}

.amanos-cart-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

.amanos-cart-drawer.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	pointer-events: none;
	background: rgba(3, 16, 6, 0.28);
	cursor: progress;
}

.amanos-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 22px 22px 17px;
	border-bottom: 1px solid rgba(220, 190, 126, 0.16);
}

.amanos-cart-kicker {
	display: block;
	margin-bottom: 3px;
	color: var(--aac-gold);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.22em;
}

.amanos-cart-head h2 {
	margin: 0 !important;
	color: #fff !important;
	font-size: 23px !important;
	line-height: 1.35 !important;
	font-weight: 850 !important;
}

.amanos-cart-close {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	padding: 0 !important;
	color: var(--aac-gold-light) !important;
	background: rgba(255, 255, 255, 0.055) !important;
	border: 1px solid rgba(220, 190, 126, 0.25) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: 0.25s ease;
}

.amanos-cart-close:hover {
	color: var(--aac-green-900) !important;
	background: var(--aac-gold) !important;
	transform: rotate(6deg);
}

.amanos-cart-close svg,
.amanos-cart-remove svg,
.amanos-cart-checkout svg,
.amanos-cart-empty-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.amanos-cart-close svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.amanos-cart-progress {
	height: 2px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
}

.amanos-cart-progress span {
	display: block;
	width: 42%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--aac-gold-light), transparent);
	transform: translateX(-130%);
}

.amanos-cart-drawer.is-loading .amanos-cart-progress span {
	animation: aac-loading 1s linear infinite;
}

@keyframes aac-loading {
	to { transform: translateX(340%); }
}

.amanos-cart-live {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

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

.amanos-cart-items {
	min-height: 0;
	flex: 1;
	overflow-y: auto;
	padding: 14px 18px 20px;
	scrollbar-width: thin;
	scrollbar-color: var(--aac-gold-deep) transparent;
}

.amanos-cart-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(220, 190, 126, 0.13);
}

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

.amanos-cart-thumb {
	width: 88px;
	height: 96px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(220, 190, 126, 0.14);
	border-radius: 14px;
}

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

.amanos-cart-thumb img {
	object-fit: cover;
}

.amanos-cart-item-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
}

.amanos-cart-item-top {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.amanos-cart-item-copy {
	min-width: 0;
	flex: 1;
}

.amanos-cart-item-name {
	display: block;
	color: #fff !important;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.55;
	text-decoration: none !important;
}

.amanos-cart-item-name:hover {
	color: var(--aac-gold-light) !important;
}

.amanos-cart-item-meta {
	margin-top: 5px;
	color: rgba(244, 239, 226, 0.64);
	font-size: 11.5px;
	line-height: 1.55;
}

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

.amanos-cart-remove {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	padding: 0 !important;
	color: rgba(244, 239, 226, 0.55) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	cursor: pointer;
}

.amanos-cart-remove:hover {
	color: #ffb4ab !important;
	background: rgba(179, 38, 30, 0.18) !important;
}

.amanos-cart-remove svg {
	width: 17px;
	height: 17px;
	stroke-width: 1.8;
}

.amanos-cart-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.amanos-cart-quantity {
	display: grid;
	grid-template-columns: 32px 42px 32px;
	height: 34px;
	overflow: hidden;
	border: 1px solid rgba(220, 190, 126, 0.23);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.045);
}

.amanos-cart-quantity button {
	min-width: 0 !important;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	color: var(--aac-gold-light) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.amanos-cart-quantity button:hover {
	background: rgba(220, 190, 126, 0.12) !important;
}

.amanos-cart-quantity input {
	width: 42px !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff !important;
	background: transparent !important;
	border: 0 !important;
	border-right: 1px solid rgba(220, 190, 126, 0.16) !important;
	border-inline-start: 1px solid rgba(220, 190, 126, 0.16) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center;
	appearance: textfield;
}

.amanos-cart-item-price {
	color: #ffffff;
	font-size: 14px;
	font-weight: 850;
	white-space: nowrap;
}

.amanos-cart-item-price,
.amanos-cart-item-price *,
.amanos-cart-subtotal strong,
.amanos-cart-subtotal strong * {
	color: #ffffff !important;
	text-decoration: none;
}

/* Struck-through original price on sale items stays readable but secondary. */
.amanos-cart-item-price del,
.amanos-cart-item-price del * {
	color: rgba(255, 255, 255, 0.55) !important;
	font-weight: 600;
	text-decoration: line-through;
}

.amanos-cart-item-price ins,
.amanos-cart-item-price ins * {
	color: #ffffff !important;
	text-decoration: none;
}

/* Tax / suffix labels: dimmed cream so they never compete with the figure. */
.amanos-cart-item-price small,
.amanos-cart-item-price .woocommerce-Price-taxLabel,
.amanos-cart-subtotal small,
.amanos-cart-subtotal .woocommerce-Price-taxLabel {
	color: rgba(244, 239, 226, 0.6) !important;
	font-size: 10.5px;
	font-weight: 500;
}

.amanos-cart-footer {
	flex: 0 0 auto;
	padding: 17px 20px max(20px, env(safe-area-inset-bottom));
	background: rgba(2, 12, 4, 0.72);
	border-top: 1px solid rgba(220, 190, 126, 0.18);
	box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(12px);
}

.amanos-cart-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 15px;
}

.amanos-cart-subtotal span {
	color: rgba(244, 239, 226, 0.72);
	font-size: 13px;
}

.amanos-cart-subtotal strong {
	color: #ffffff;
	font-size: 18px;
	font-weight: 900;
}

.amanos-cart-actions {
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	gap: 10px;
}

.amanos-cart-actions a,
.amanos-cart-shop-button {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 15px;
	border-radius: 13px;
	font-size: 13.5px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	transition: 0.25s ease;
}

.amanos-cart-view {
	color: var(--aac-cream) !important;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(244, 239, 226, 0.24);
}

.amanos-cart-view:hover {
	color: var(--aac-gold-light) !important;
	border-color: var(--aac-gold);
	transform: translateY(-2px);
}

.amanos-cart-checkout,
.amanos-cart-shop-button {
	color: var(--aac-green-900) !important;
	background: linear-gradient(135deg, #f4e3b6, #d3ae63 58%, #bb9349);
	border: 1px solid rgba(255, 255, 255, 0.24);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.amanos-cart-checkout:hover,
.amanos-cart-shop-button:hover {
	color: var(--aac-green-950) !important;
	filter: brightness(1.06);
	transform: translateY(-2px);
}

.amanos-cart-checkout svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

html[dir="rtl"] .amanos-cart-checkout svg {
	transform: scaleX(-1);
}

.amanos-cart-empty {
	flex: 1;
	display: grid;
	align-content: center;
	justify-items: center;
	padding: 40px 26px;
	text-align: center;
}

.amanos-cart-empty-icon {
	width: 74px;
	height: 74px;
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	color: var(--aac-gold);
	background: rgba(220, 190, 126, 0.08);
	border: 1px solid rgba(220, 190, 126, 0.23);
	border-radius: 50%;
}

.amanos-cart-empty-icon svg {
	width: 34px;
	height: 34px;
	stroke-width: 1.7;
}

.amanos-cart-empty h3 {
	margin: 0 0 8px !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 850 !important;
}

.amanos-cart-empty p {
	max-width: 30ch;
	margin: 0 0 22px;
	color: rgba(244, 239, 226, 0.64);
	font-size: 14px;
	line-height: 1.75;
}

.amanos-cart-shop-button {
	min-width: 170px;
}

.amanos-cart-toast {
	position: fixed;
	z-index: 1000002;
	right: 20px;
	bottom: 22px;
	max-width: min(88vw, 390px);
	padding: 13px 17px;
	color: var(--aac-cream);
	background: #0c2812;
	border: 1px solid rgba(220, 190, 126, 0.3);
	border-radius: 13px;
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.55;
	opacity: 0;
	transform: translateY(14px);
	transition: 0.28s ease;
}

.amanos-cart-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.amanos-cart-toast.is-error {
	color: #ffdad6;
	background: #4a0b08;
	border-color: rgba(255, 180, 171, 0.34);
}

.single_add_to_cart_button.is-amanos-loading {
	pointer-events: none;
	opacity: 0.76;
}

.single_add_to_cart_button.is-amanos-loading::after {
	content: "";
	width: 16px;
	height: 16px;
	display: inline-block;
	margin-inline-start: 9px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	vertical-align: middle;
	animation: aac-spin 0.75s linear infinite;
}

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

@media (max-width: 600px) {
	.amanos-cart-drawer {
		width: min(100vw, 440px);
	}

	.amanos-cart-head {
		padding: 17px 16px 14px;
	}

	.amanos-cart-head h2 {
		font-size: 20px !important;
	}

	.amanos-cart-items {
		padding-inline: 14px;
	}

	.amanos-cart-item {
		grid-template-columns: 78px minmax(0, 1fr);
		gap: 11px;
	}

	.amanos-cart-thumb {
		width: 78px;
		height: 88px;
	}

	.amanos-cart-item-bottom {
		align-items: flex-end;
		flex-direction: column-reverse;
		gap: 8px;
	}

	.amanos-cart-quantity {
		align-self: flex-start;
	}

	.amanos-cart-actions {
		grid-template-columns: 1fr;
	}

	.amanos-cart-toast {
		right: 14px;
		left: 14px;
		bottom: 14px;
		max-width: none;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amanos-cart-drawer,
	.amanos-cart-overlay,
	.amanos-cart-toast,
	.amanos-cart-drawer * {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* Logical drawer direction: RTL parks off the right edge. */
html[dir="rtl"] .amanos-cart-drawer {
	transform: translateX(105%);
}

/* Also matches themes that omit dir="ltr" on <html>. */
.amanos-cart-drawer.is-open,
html[dir="rtl"] .amanos-cart-drawer.is-open,
html[dir="ltr"] .amanos-cart-drawer.is-open {
	transform: translateX(0);
}

/* Lightweight shell while cart HTML is fetched only through AJAX */
.amanos-cart-skeleton {
	display: grid;
	gap: 14px;
	padding: 22px 18px;
}

.amanos-cart-skeleton span {
	display: block;
	height: 94px;
	border: 1px solid rgba(220, 190, 126, 0.11);
	border-radius: 14px;
	background:
		linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.035) 20%,
			rgba(220, 190, 126, 0.09) 50%,
			rgba(255, 255, 255, 0.035) 80%
		);
	background-size: 220% 100%;
	animation: amanos-cart-skeleton 1.25s ease-in-out infinite;
}

@keyframes amanos-cart-skeleton {
	to {
		background-position: -120% 0;
	}
}
