/* Cata-Kor cart drawer — matches catakor.com cart_drawer */
:root {
	--ck-accent: #1c483c;
	--ck-accent-light: #e2f78e;
	--ck-tertiary: #00b67a;
	--ck-tertiary-light: #bfedde;
	--ck-font: "Space Grotesk", "Teachers", system-ui, sans-serif;
}

body.Overflow_hidden,
body.ck-cart-open {
	overflow: hidden !important;
}

.cd__outer {
	display: none;
	justify-content: flex-end;
	width: 100vw;
	height: 100%;
	background: rgb(0 0 0 / 0.75);
	position: fixed;
	inset: 0;
	z-index: 100000;
	transition: opacity 0.2s ease;
	opacity: 0;
}

.cd__outer[hidden] {
	display: none !important;
}

.cd__outer.is-visible {
	display: flex;
}

.cd__outer.active {
	opacity: 1;
}

.cd__inner {
	max-width: 100%;
	width: 100%;
	background: #fff;
	position: relative;
	right: -700px;
	display: flex;
	flex-direction: column;
	gap: 0;
	overflow: hidden;
	height: 100%;
	transition: right 0.2s ease-in;
	font-family: var(--ck-font);
}

.cd__outer.active .cd__inner {
	right: 0;
}

@media only screen and (min-width: 560px) {
	.cd__inner {
		max-width: 560px;
	}

	.cd__inner.floating {
		height: calc(100% - 16px);
		border-radius: 12px;
		top: 8px;
		align-self: flex-start;
	}

	.cd__outer.active .cd__inner.floating {
		right: 8px;
	}
}

.cd__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--ck-accent-light);
	flex-shrink: 0;
}

.cd__nav h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #1a1a1a;
	font-family: var(--ck-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.15px;
}

.cd__nav-back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 4px;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
}

.cd__nav-back svg {
	width: 18px;
	height: 18px;
	fill: #000;
}

.cd__units {
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	text-align: center;
	padding-top: 2px;
}

.cd__units span {
	border-radius: 50%;
	background: var(--ck-accent);
	color: #fff;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Empty */
.cd__empty {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 24px;
	text-align: center;
	font-weight: 600;
	padding: 16px;
	font-family: var(--ck-font);
	color: #1a1a1a;
	font-size: 16px;
}

.cd__empty[hidden],
.cd__content[hidden] {
	display: none !important;
}

.cd__empty-btn {
	border-radius: 5px;
	border: 2px solid var(--ck-accent);
	background: var(--ck-accent);
	color: #fff !important;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.15px;
	text-decoration: none !important;
	text-align: center;
	padding: 16px 32px;
	transition: all 0.2s ease;
}

.cd__empty-btn:hover {
	background: #fff;
	color: var(--ck-accent) !important;
}

/* Content layout */
.cd__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.cd__items {
	flex: 1;
	overflow: auto;
	padding: 8px 16px 16px;
}

/* Progress */
.ck-discount-progress {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 12px 16px 8px;
	flex-shrink: 0;
}

.discount-bar__status {
	width: 100%;
	border-radius: 8px;
	background: #f4f2ee;
	color: #24222a;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	letter-spacing: 0.15px;
	text-align: center;
	padding: 6px 4px;
}

.discount-bar__status-value {
	color: var(--ck-tertiary);
}

.discount-bar__status .success-icon {
	display: none;
	flex-shrink: 0;
}

.ck-discount-progress.is-free .discount-bar__status .success-icon {
	display: block;
}

.discount-bar__progress-bar-wrapper {
	width: 100%;
	display: grid;
	justify-items: end;
	grid-template-columns: 1fr;
	position: relative;
	padding-top: 4px;
	min-height: 48px;
}

.discount-bar__progress-bar {
	width: 100%;
	height: 4px;
	position: absolute;
	top: 60%;
	left: 0;
	right: 0;
	background-color: #cccccc;
	border-radius: 30px;
	overflow: hidden;
}

.discount-bar__progress-fill {
	display: block !important;
	width: 0%;
	height: 100%;
	position: absolute;
	inset: 0;
	background: var(--ck-tertiary);
	border-radius: 30px;
	transition: width 0.3s ease-in-out;
}

.discount-bar__threshold {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	text-align: center;
	position: relative;
	margin-bottom: 28px;
	z-index: 1;
}

.discount-bar__circle {
	background-color: var(--ck-tertiary-light);
	border-radius: 53px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	position: relative;
}

.discount-bar__circle:after {
	content: "";
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid var(--ck-tertiary-light);
	display: block;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 80%);
}

.discount-bar__circle p {
	color: #1a1a1a;
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 10px;
	line-height: 1.2;
	margin: 0;
}

.discount-bar__threshold-value {
	position: absolute;
	bottom: -28px;
	color: #1a1a1a;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.discount-bar__circle .success-icon,
.discount-bar__threshold.discount-bar__threshold--filled .discount-bar__circle .default-icon {
	display: none;
}

.discount-bar__threshold.discount-bar__threshold--filled .discount-bar__circle .success-icon {
	display: block;
}

.discount-bar__threshold.discount-bar__threshold--filled .discount-bar__circle {
	background: var(--ck-tertiary);
}

.discount-bar__threshold.discount-bar__threshold--filled .discount-bar__circle:after {
	border-top-color: var(--ck-tertiary);
}

.discount-bar__threshold.discount-bar__threshold--filled .discount-bar__circle p {
	color: #fff;
}

@media (min-width: 768px) {
	.discount-bar__status {
		font-size: 16px;
	}
}

/* Items */
.cd__item {
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	gap: 12px;
	padding-block: 12px;
}

.cd__item-image {
	width: min(35%, 110px);
	align-self: center;
	overflow: hidden;
	flex-shrink: 0;
}

.cd__item-image img {
	display: block;
	width: 100%;
	height: auto;
}

.cd__item-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.cd__item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.cd__item-title {
	max-width: 340px;
	color: #111;
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: 0.15px;
	margin: 0;
	text-transform: uppercase;
}

.cd__item-variant {
	color: #5f5f5f;
	font-size: 12px;
	line-height: 1.2;
	margin: 0;
}

.cd__item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

.cd__item-price {
	color: #111;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.15px;
	margin: 0;
}

.cd__item-remove {
	width: fit-content;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
	cursor: pointer;
	margin-left: auto;
	border: 0;
	background: transparent;
	padding: 2px;
	color: #9a9a9a;
	transition: color 0.2s ease;
}

.cd__item-remove:hover,
.cd__item-remove.active {
	color: #000;
}

.cd__item-remove .loader {
	width: 16px;
	height: 16px;
	border: 2px solid #000;
	border-bottom-color: transparent;
	border-radius: 50%;
	display: none;
	box-sizing: border-box;
	animation: ck-cart-spin 1s linear infinite;
}

.cd__item.loading .cd__item-remove .loader {
	display: inline-block;
}

.cd__item.loading .cd__item-remove svg {
	display: none;
}

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

.cd__item-quantity {
	max-width: 96px;
	height: 28px;
	border: 1px solid #d9d9d9;
	border-radius: 5px;
	display: flex;
	align-items: center;
	padding: 0 2px;
	background: #fff;
	box-sizing: border-box;
}

.cd__item-quantity-value {
	width: 28px;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #5b595f;
	font-family: var(--ck-font);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
}

.cd__item-quantity-minus,
.cd__item-quantity-plus {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0;
	margin: 0;
	color: #111 !important;
	line-height: 1;
	appearance: none;
	-webkit-appearance: none;
}

.cd__item-quantity-minus:hover,
.cd__item-quantity-plus:hover {
	color: #1e3d14 !important;
	opacity: 0.75;
}

.cd__item-quantity-minus::before,
.cd__item-quantity-plus::before {
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: inherit;
	speak: never;
}

.cd__item-quantity-minus::before {
	content: "\2212"; /* − */
}

.cd__item-quantity-plus::before {
	content: "+";
}

.cd__item-quantity svg {
	display: none !important;
}

/* Footer */
.cd__footer {
	width: 100%;
	border-top: 1px solid var(--ck-accent-light);
	flex-shrink: 0;
	background: #fff;
}

.cd__footer-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 16px;
}

.cd__footer-prices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cd__footer-prices-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cd__footer-prices-line .label,
.cd__footer-prices-line .value {
	font-family: var(--ck-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.15px;
	color: #000;
}

.cd__footer-prices-line[data-value="total"] .label,
.cd__footer-prices-line[data-value="total"] .value {
	font-size: 18px;
	font-weight: 600;
}

.cd__checkout-btn {
	cursor: pointer;
	width: 100%;
	border-radius: 10px;
	background: var(--ck-accent);
	color: #fff !important;
	outline: none;
	border: none;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: var(--ck-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 0.15px;
	text-decoration: none !important;
	text-align: center;
	padding: 16px;
	transition: background 150ms ease-in-out;
	text-transform: none;
}

.cd__checkout-btn:hover {
	background: #262626;
	color: #fff !important;
}

@media (max-width: 559px) {
	.cd__item-title {
		font-size: 14px;
	}
}
