/* =====================================================================
   Vanora Cart Drawer — fashion-cart-drawer-premium.html
   Starts below site header; scoped to aside.cart-drawer.
   ===================================================================== */

:root {
	--cart-ink: #171411;
	--cart-ink-soft: #5f564e;
	--cart-muted: #978b80;
	--cart-muted-2: #b8ada1;
	--cart-line: rgba(23, 20, 17, .10);
	--cart-line-strong: rgba(23, 20, 17, .16);
	--cart-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

aside.cart-drawer {
	--cart-offset-top: 64px;
	--cart-offset-bottom: 0px;
	--cart-paper-2: #f1ebe2;
	--cart-dark: #151310;
	--cart-ease: cubic-bezier(.22, .72, .18, 1);
	--cart-shadow: -28px 0 80px rgba(30, 24, 18, .16), -8px 0 24px rgba(30, 24, 18, .08);
	position: fixed;
	z-index: 99;
	top: var(--cart-offset-top);
	right: 0;
	width: min(456px, 100vw);
	height: calc(100dvh - var(--cart-offset-top) - var(--cart-offset-bottom));
	max-height: calc(100dvh - var(--cart-offset-top) - var(--cart-offset-bottom));
	display: grid;
	grid-template-rows: auto 1fr auto;
	margin: 0;
	flex-wrap: unset;
	font-family: var(--cart-font);
	color: var(--cart-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	background:
		radial-gradient(circle at 100% 0%, rgba(182, 155, 121, .08), transparent 24%),
		linear-gradient(180deg, #faf7f2 0%, #f6f1ea 100%);
	border-left: 1px solid var(--cart-line);
	box-shadow: var(--cart-shadow);
	overflow: hidden;
	transform: translateX(100%);
	transition: transform .45s var(--cart-ease), visibility .45s var(--cart-ease);
	visibility: hidden;
	pointer-events: none;
}

/* Scrim — starts below site header */
.cart__scrim {
	--cart-offset-top: 64px;
	position: fixed;
	top: var(--cart-offset-top);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 98;
	background: rgba(16, 14, 12, .28);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease, visibility .3s ease;
}

.cart__scrim.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

aside.cart-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

/* Header */
aside.cart-drawer .cart__head {
	min-height: 56px;
	padding: 0 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(17, 16, 15, .10);
	background: rgba(245, 241, 234, .94);
	backdrop-filter: blur(18px) saturate(135%);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
}

aside.cart-drawer .cart__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

aside.cart-drawer .cart__monogram {
	width: 36px;
	height: 36px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: #1b1815;
	flex: none;
}

aside.cart-drawer .cart__monogram svg {
	width: 17px;
	height: 17px;
}

aside.cart-drawer .cart__heading {
	display: grid;
	gap: 4px;
	min-width: 0;
}

aside.cart-drawer .cart__eyebrow {
	margin: 0;
	font-size: 9px;
	line-height: 1;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--cart-muted);
	font-weight: 650;
}

aside.cart-drawer .cart__title {
	margin: 0;
	font-size: 14px;
	line-height: 1.1;
	letter-spacing: .10em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--cart-ink);
}

aside.cart-drawer .cart__count {
	color: var(--cart-muted);
	font-weight: 500;
}

aside.cart-drawer .cart__close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #514a44;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .24s ease, transform .24s var(--cart-ease);
}

aside.cart-drawer .cart__close:hover {
	background: var(--cart-paper-2);
	transform: rotate(4deg);
}

aside.cart-drawer .cart__close svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.3;
	stroke-linecap: round;
}

/* Body */
aside.cart-drawer .cart__body {
	min-height: 0;
	overflow: auto;
	padding: 16px 20px 10px;
	scrollbar-width: thin;
	scrollbar-color: #d0c5b8 transparent;
}

aside.cart-drawer .cart__body .widget_shopping_cart_content {
	margin: 0;
	padding: 0;
}

aside.cart-drawer .cart__items {
	display: flex;
	flex-direction: column;
	align-content: flex-start;
}

aside.cart-drawer .cart__body::-webkit-scrollbar {
	width: 5px;
}

aside.cart-drawer .cart__body::-webkit-scrollbar-thumb {
	background: #d0c5b8;
	border-radius: 999px;
}

aside.cart-drawer .progress {
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
	border: 1px solid rgba(182, 155, 121, .22);
}

aside.cart-drawer .progress__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

aside.cart-drawer .progress__title {
	font-size: 11px;
	font-weight: 600;
	color: var(--cart-ink);
}

aside.cart-drawer .progress__value {
	font-size: 10px;
	color: var(--cart-muted);
	font-weight: 600;
}

aside.cart-drawer .progress__bar {
	height: 3px;
	margin-top: 10px;
	border-radius: 999px;
	overflow: hidden;
	background: #e8dfd4;
}

aside.cart-drawer .progress__bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #d7c2a8, #a98c69);
}

aside.cart-drawer .progress__copy {
	margin: 8px 0 0;
	font-size: 10px;
	line-height: 1.5;
	color: var(--cart-muted);
}

/* Product rows */
aside.cart-drawer .product {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--cart-line);
}

aside.cart-drawer .product:last-child {
	border-bottom: 0;
}

aside.cart-drawer .product__media {
	display: block;
	width: 92px;
	height: 118px;
	overflow: hidden;
	border-radius: 12px;
	background: #e8e1d8;
}

aside.cart-drawer .product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .55s var(--cart-ease);
}

aside.cart-drawer .product:hover .product__media img {
	transform: scale(1.022);
}

aside.cart-drawer .product__content {
	min-width: 0;
	padding-top: 2px;
}

aside.cart-drawer .product__meta {
	margin: 0 0 6px;
	font-size: 9px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cart-muted-2);
	font-weight: 650;
}

aside.cart-drawer .product__name {
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
	letter-spacing: -.01em;
	font-weight: 500;
	color: var(--cart-ink);
}

aside.cart-drawer .product__name a {
	color: inherit;
	text-decoration: none;
}

aside.cart-drawer .product__name a:hover {
	opacity: .72;
}

aside.cart-drawer .product__variant {
	margin: 5px 0 0;
	font-size: 10px;
	color: var(--cart-muted);
}

aside.cart-drawer .product__price {
	margin: 8px 0 0;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: -.01em;
	color: var(--cart-ink);
}

aside.cart-drawer .product__tools {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

aside.cart-drawer .qty {
	height: 32px;
	border: 1px solid var(--cart-line-strong);
	border-radius: 10px;
	display: grid;
	grid-template-columns: 32px 32px 32px;
	overflow: hidden;
	background: rgba(255, 255, 255, .55);
}

aside.cart-drawer .qty button {
	width: 32px;
	border: 0;
	background: transparent;
	color: #4f4842;
	display: grid;
	place-items: center;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

aside.cart-drawer .qty button:hover {
	background: #ece4da;
}

aside.cart-drawer .qty .qty__val {
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 650;
}

aside.cart-drawer .product__wishlist {
	height: 32px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: var(--cart-muted);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	letter-spacing: .02em;
	cursor: pointer;
}

aside.cart-drawer .product__wishlist:hover {
	color: var(--cart-ink);
}

aside.cart-drawer .product__wishlist svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.3;
	flex: none;
}

aside.cart-drawer .product__remove {
	width: 32px;
	height: 32px;
	margin-top: 2px;
	border: 1px solid var(--cart-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	color: #9d9185;
	display: grid;
	place-items: center;
	text-decoration: none;
	transition: background .24s ease, color .24s ease, transform .24s var(--cart-ease);
}

aside.cart-drawer .product__remove:hover {
	background: #eee5da;
	color: #1b1815;
	transform: translateY(-1px);
}

aside.cart-drawer .product__remove svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.35;
	stroke-linecap: round;
}

aside.cart-drawer .woocommerce-mini-cart__empty-message {
	padding: 48px 12px !important;
	text-align: center;
	color: var(--cart-muted) !important;
	font-size: 13px;
}

/* Summary */
aside.cart-drawer .cart__summary {
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--cart-line);
	background: rgba(249, 246, 240, .98);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 -8px 24px rgba(30, 24, 18, .06);
}

aside.cart-drawer .summary__row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}

aside.cart-drawer .summary__label {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cart-ink-soft);
	font-weight: 600;
}

aside.cart-drawer .summary__price {
	font-size: 24px;
	line-height: 1;
	letter-spacing: -.04em;
	font-weight: 700;
	color: var(--cart-ink);
}

aside.cart-drawer .summary__price .woocommerce-Price-amount {
	font-weight: inherit;
}

aside.cart-drawer .summary__tax {
	margin: 8px 0 0;
	font-size: 10px;
	line-height: 1.5;
	color: var(--cart-muted);
}

aside.cart-drawer .summary__actions {
	margin-top: 16px;
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 10px;
}

aside.cart-drawer .action {
	height: 50px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 10px;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	text-decoration: none;
	transition: transform .25s var(--cart-ease), background .25s ease, color .25s ease, border-color .25s ease;
}

aside.cart-drawer .action--ghost {
	border: 1px solid #2f2a25;
	background: rgba(255, 255, 255, .65);
	color: #1e1a17;
}

aside.cart-drawer .action--ghost:hover {
	background: #eee6dc;
	transform: translateY(-1px);
}

aside.cart-drawer .action--primary {
	border: 1px solid var(--cart-dark);
	background: var(--cart-dark);
	color: #fff;
	box-shadow: 0 10px 22px rgba(21, 19, 16, .14);
}

aside.cart-drawer .action--primary:hover {
	background: #000;
	transform: translateY(-1px);
}

aside.cart-drawer .action svg {
	width: 13px;
	height: 13px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.25;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

aside.cart-drawer .summary__trust {
	margin-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 9px;
	letter-spacing: .10em;
	text-transform: uppercase;
	color: var(--cart-muted);
}

aside.cart-drawer .summary__pays {
	font-weight: 650;
	color: var(--cart-ink-soft);
}

@media (max-width: 520px) {
	aside.cart-drawer {
		width: 100%;
	}

	aside.cart-drawer .cart__head {
		min-height: 52px;
		padding: 0 16px;
	}

	aside.cart-drawer .cart__body {
		padding: 14px 16px 8px;
	}

	aside.cart-drawer .product {
		grid-template-columns: 80px 1fr auto;
		gap: 12px;
		padding: 14px 0;
	}

	aside.cart-drawer .product__media {
		width: 80px;
		height: 104px;
		border-radius: 11px;
	}

	aside.cart-drawer .product__name {
		font-size: 12px;
	}

	aside.cart-drawer .cart__summary {
		padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	}

	aside.cart-drawer .summary__actions {
		grid-template-columns: 1fr;
	}

	aside.cart-drawer .product__wishlist span {
		display: none;
	}
}
