/*
 * Stickit Core - Side Cart styles.
 * Prefix: stkc-. No external dependencies. Mobile-first.
 * Accent color: #d32f2f (site red).
 */

:root {
	--stkc-accent: #d32f2f;
	--stkc-accent-dark: #b71c1c;
	--stkc-text: #1a1a1a;
	--stkc-muted: #6b6b6b;
	--stkc-border: #e5e5e5;
	--stkc-bg: #ffffff;
	--stkc-success: #2e7d32;
}

/* Overlay */
.stkc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.stkc-overlay.stkc-visible {
	opacity: 1;
}

/* Drawer */
.stkc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	max-width: 420px;
	background: var(--stkc-bg);
	color: var(--stkc-text);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	font-size: 15px;
	line-height: 1.4;
}
.stkc-drawer.stkc-visible {
	transform: translateX(0);
}

@media (min-width: 480px) {
	.stkc-drawer {
		width: 420px;
	}
}

/* Header */
.stkc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid var(--stkc-border);
	flex: 0 0 auto;
}
.stkc-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}
.stkc-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--stkc-muted);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stkc-close:hover {
	color: var(--stkc-text);
}

/* Body (scrolls) */
.stkc-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 12px 16px;
}
.stkc-body.stkc-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Free shipping */
.stkc-freeship {
	margin-bottom: 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #faf3f3;
}
.stkc-freeship.stkc-fs-done {
	background: #eef7ef;
}
.stkc-freeship-msg {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
}
.stkc-fs-done .stkc-freeship-msg {
	color: var(--stkc-success);
}
.stkc-freeship-track {
	height: 8px;
	width: 100%;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}
.stkc-freeship-fill {
	display: block;
	height: 100%;
	background: var(--stkc-accent);
	transition: width 0.3s ease;
}
.stkc-fs-done .stkc-freeship-fill {
	background: var(--stkc-success);
}

/* Items */
.stkc-empty {
	color: var(--stkc-muted);
	text-align: center;
	padding: 24px 0;
}
.stkc-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.stkc-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--stkc-border);
}
.stkc-item-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.stkc-item-main {
	flex: 1 1 auto;
	min-width: 0;
}
.stkc-item-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 2px;
}
.stkc-item-price {
	display: block;
	font-size: 13px;
	color: var(--stkc-muted);
	margin-bottom: 8px;
}
.stkc-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--stkc-border);
	border-radius: 6px;
	overflow: hidden;
}
.stkc-qty-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: #f5f5f5;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: var(--stkc-text);
}
.stkc-qty-btn:hover {
	background: #ececec;
}
.stkc-qty-val {
	min-width: 36px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
}
.stkc-remove {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--stkc-muted);
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
}
.stkc-remove:hover {
	color: var(--stkc-accent);
}

/* Order bump */
.stkc-bump {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	padding: 10px;
	border: 1px dashed var(--stkc-accent);
	border-radius: 8px;
	background: #fff7f7;
}
.stkc-bump-thumb img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}
.stkc-bump-main {
	flex: 1 1 auto;
	min-width: 0;
}
.stkc-bump-name {
	display: block;
	font-size: 13px;
	font-weight: 600;
}
.stkc-bump-price {
	display: block;
	font-size: 13px;
	color: var(--stkc-muted);
}
.stkc-bump-add {
	flex: 0 0 auto;
	border: none;
	background: var(--stkc-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 0 14px;
	height: 40px;
	border-radius: 6px;
	cursor: pointer;
}
.stkc-bump-add:hover {
	background: var(--stkc-accent-dark);
}

/* Subtotal */
.stkc-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--stkc-border);
	font-size: 16px;
	font-weight: 700;
}

/* Footer */
.stkc-foot {
	flex: 0 0 auto;
	padding: 14px 16px;
	border-top: 1px solid var(--stkc-border);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.stkc-checkout {
	display: block;
	text-align: center;
	background: var(--stkc-accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	padding: 14px;
	border-radius: 8px;
}
.stkc-checkout:hover {
	background: var(--stkc-accent-dark);
	color: #fff;
}
.stkc-view-cart {
	display: block;
	text-align: center;
	color: var(--stkc-muted);
	text-decoration: underline;
	font-size: 14px;
}

/* Floating action button */
.stkc-fab {
	position: fixed;
	right: 16px;
	bottom: 16px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: var(--stkc-accent);
	color: #fff;
	cursor: pointer;
	z-index: 99997;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}
.stkc-fab:hover {
	background: var(--stkc-accent-dark);
}
.stkc-fab-icon {
	font-size: 22px;
	line-height: 1;
}
.stkc-fab-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: #fff;
	color: var(--stkc-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	border: 1px solid var(--stkc-accent);
}

/* Lock body scroll when drawer open */
body.stkc-open-lock {
	overflow: hidden;
}

/* Suppress legacy Shoptimizer drawer while testing ours (css loads only under ?stickit_cart). */
#shoptimizerCartDrawer, .shoptimizer-mini-cart-wrap { display: none !important; }

/* F6-4 (CRO #27) cross-sell in drawer */
.stkc-xsell{ margin-top:10px; }
.stkc-xsell-head{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--stk-muted,#6E6E6E); margin:0 0 6px; }
