:root {
	--osc-accent: #005B3A;
	--osc-ink: #71340F;
	--osc-paper: #FFFEFA;
	--osc-gold: #D6AA60;
	--osc-soft: #F8F2E8;
	--osc-line: #E9D8BC;
	--osc-muted: #796454;
	--osc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.osc-cart-open {
	overflow: hidden;
}

.osc-cart-trigger {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--osc-ink);
	cursor: pointer;
	box-shadow: none;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
	z-index: 99990;
}

.osc-cart-trigger:hover {
	background: color-mix(in srgb, var(--osc-ink) 8%, transparent);
	color: var(--osc-accent);
	transform: translateY(-2px);
}

.osc-cart-trigger:focus-visible,
.osc-cart-close:focus-visible,
.osc-cart-item__remove:focus-visible,
.osc-quantity__button:focus-visible,
.osc-cart-continue:focus-visible,
.osc-cart-checkout:focus-visible,
.osc-cart-shop:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--osc-accent) 45%, transparent);
	outline-offset: 3px;
}

.osc-cart-trigger--floating {
	position: fixed;
	right: clamp(14px, 2vw, 28px);
	top: 48%;
	width: 58px;
	height: 58px;
	background: var(--osc-paper);
	box-shadow: 0 14px 38px rgba(113, 52, 15, 0.18);
}

.osc-cart-trigger--floating[data-osc-position="left"] {
	right: auto;
	left: clamp(14px, 2vw, 28px);
}

.osc-cart-trigger--floating:hover {
	background: var(--osc-paper);
}

.osc-cart-trigger__icon {
	display: inline-flex;
}

.osc-cart-count {
	position: absolute;
	top: 1px;
	right: -2px;
	display: grid;
	place-items: center;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	border: 2px solid var(--osc-paper);
	border-radius: 20px;
	background: var(--osc-accent);
	color: #FFFEFA;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.osc-cart-shell {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
	transition: visibility 0s linear 480ms;
}

.osc-cart-shell.is-open {
	pointer-events: auto;
	visibility: visible;
	transition-delay: 0s;
}

.osc-cart-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(71, 43, 25, 0.46);
	opacity: 0;
	backdrop-filter: blur(2px);
	cursor: default;
	transition: opacity 360ms ease;
}

.osc-cart-shell.is-open .osc-cart-overlay {
	opacity: 1;
}

.osc-cart-drawer {
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	grid-template-rows: auto 1fr;
	width: min(460px, 100vw);
	height: 100%;
	max-height: 100dvh;
	background: var(--osc-paper);
	color: var(--osc-ink);
	box-shadow: -24px 0 70px rgba(71, 43, 25, 0.2);
	transform: translate3d(102%, 0, 0);
	transition: transform 480ms var(--osc-ease);
	overflow: hidden;
}

.osc-cart-shell[data-position="left"] .osc-cart-drawer {
	right: auto;
	left: 0;
	box-shadow: 24px 0 70px rgba(71, 43, 25, 0.2);
	transform: translate3d(-102%, 0, 0);
}

.osc-cart-shell.is-open .osc-cart-drawer {
	transform: translate3d(0, 0, 0);
}

.osc-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: clamp(24px, 5vw, 38px) clamp(22px, 5vw, 36px) 22px;
	border-bottom: 2px solid var(--osc-gold);
}

.osc-cart-eyebrow {
	display: block;
	margin-bottom: 4px;
	color: var(--osc-accent);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
}

.osc-cart-header h2 {
	margin: 0;
	color: var(--osc-ink);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(27px, 5vw, 34px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.osc-cart-close,
.osc-cart-item__remove {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--osc-line);
	border-radius: 50%;
	background: transparent;
	color: var(--osc-ink);
	cursor: pointer;
	transition: background-color 180ms ease, transform 180ms ease;
}

.osc-cart-close:hover,
.osc-cart-item__remove:hover {
	background: var(--osc-soft);
	transform: rotate(4deg);
}

.osc-cart-live {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.osc-drawer__content {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: 0;
	overflow: hidden;
}

.osc-drawer__content.is-loading {
	pointer-events: none;
}

.osc-drawer__content.is-loading::after {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: block;
	background: color-mix(in srgb, var(--osc-paper) 70%, transparent);
	content: '';
	animation: osc-soft-pulse 900ms ease-in-out infinite alternate;
}

.osc-cart-items {
	min-height: 0;
	padding: 6px clamp(22px, 5vw, 36px) 18px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-color: var(--osc-line) transparent;
	scrollbar-width: thin;
}

.osc-cart-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 18px;
	padding: 24px 0;
	border-bottom: 1px solid var(--osc-line);
}

.osc-cart-item__image {
	display: block;
	align-self: start;
	aspect-ratio: 1;
	border-radius: 4px 18px 4px 18px;
	background: var(--osc-soft);
	overflow: hidden;
}

.osc-cart-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

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

.osc-cart-item__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.osc-cart-item__name {
	color: var(--osc-ink);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.osc-cart-item__name:hover {
	color: var(--osc-accent);
}

.osc-cart-item__remove {
	width: 30px;
	height: 30px;
	border-color: transparent;
	color: var(--osc-muted);
}

.osc-cart-item__remove svg {
	width: 18px;
	height: 18px;
}

.osc-cart-item dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 6px;
	margin: -6px 0 0;
	color: var(--osc-muted);
	font-size: 12px;
}

.osc-cart-item dl.variation dt,
.osc-cart-item dl.variation dd,
.osc-cart-item dl.variation p {
	margin: 0;
	padding: 0;
}

.osc-cart-item__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.osc-quantity {
	display: grid;
	grid-template-columns: 30px 34px 30px;
	align-items: center;
	border: 1px solid var(--osc-line);
	border-radius: 999px;
	background: var(--osc-paper);
	overflow: hidden;
}

.osc-quantity__button {
	display: grid;
	place-items: center;
	width: 30px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--osc-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.osc-quantity__button:hover {
	background: var(--osc-soft);
}

.osc-quantity__input {
	width: 34px !important;
	height: 32px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--osc-ink) !important;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 13px !important;
	font-weight: 700;
	line-height: 32px !important;
	text-align: center;
	-moz-appearance: textfield;
}

.osc-quantity__input::-webkit-inner-spin-button,
.osc-quantity__input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.osc-cart-item__price {
	color: var(--osc-ink);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.osc-cart-item__price del {
	margin-inline-end: 4px;
	color: var(--osc-muted);
	font-size: 11px;
}

.osc-cart-footer {
	padding: 22px clamp(22px, 5vw, 36px) max(26px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--osc-line);
	background: var(--osc-paper);
	box-shadow: 0 -12px 34px rgba(113, 52, 15, 0.05);
}

.osc-cart-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 19px;
}

.osc-cart-total strong {
	font-size: 22px;
}

.osc-cart-note {
	margin: 7px 0 18px;
	color: var(--osc-muted);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 12px;
	line-height: 1.5;
}

.osc-cart-checkout,
.osc-cart-shop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	padding: 14px 20px;
	border: 1px solid var(--osc-accent);
	border-radius: 999px;
	background: var(--osc-accent);
	color: #FFFEFA;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: filter 180ms ease, transform 180ms ease;
}

.osc-cart-checkout:hover,
.osc-cart-shop:hover {
	color: #FFFEFA;
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.osc-cart-checkout span {
	font-size: 22px;
	transition: transform 180ms ease;
}

[dir="ltr"] .osc-cart-checkout span {
	transform: rotate(180deg);
}

.osc-cart-checkout:hover span {
	transform: translateX(-3px);
}

[dir="ltr"] .osc-cart-checkout:hover span {
	transform: rotate(180deg) translateX(-3px);
}

.osc-cart-continue {
	display: block;
	width: 100%;
	margin-top: 13px;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--osc-ink);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--osc-ink) 28%, transparent);
	text-underline-offset: 4px;
	cursor: pointer;
}

.osc-cart-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 50px clamp(28px, 8vw, 54px);
	flex-direction: column;
	text-align: center;
}

.osc-cart-empty__icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin-bottom: 26px;
	border-radius: 50% 50% 42% 58% / 55% 43% 57% 45%;
	background: var(--osc-soft);
	color: var(--osc-ink);
	transform: rotate(-5deg);
}

.osc-cart-empty__icon svg {
	width: 44px;
	height: 44px;
	transform: rotate(5deg);
}

.osc-cart-empty h3 {
	margin: 0 0 8px;
	color: var(--osc-ink);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 28px;
}

.osc-cart-empty p {
	max-width: 290px;
	margin: 0 0 24px;
	color: var(--osc-muted);
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.65;
}

.osc-cart-shop {
	justify-content: center;
	width: auto;
	min-width: 190px;
}

@keyframes osc-soft-pulse {
	from { opacity: 0.48; }
	to { opacity: 0.78; }
}

@media (max-width: 520px) {
	.osc-cart-trigger--floating {
		right: 14px;
		top: auto;
		bottom: calc(18px + env(safe-area-inset-bottom));
		width: 54px;
		height: 54px;
	}

	.osc-cart-trigger--floating[data-osc-position="left"] {
		right: auto;
		left: 14px;
	}

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

	.osc-cart-header {
		padding-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osc-cart-drawer,
	.osc-cart-overlay,
	.osc-cart-trigger,
	.osc-cart-checkout,
	.osc-cart-shop {
		transition-duration: 1ms !important;
	}

	.osc-drawer__content.is-loading::after {
		animation: none;
	}
}
