.bc { --bc-primary: #1F3D36; --bc-accent: #B4520E; --bc-w: 420px; font-family: inherit; line-height: 1.4; }
.bc *, .bc *::before, .bc *::after { box-sizing: border-box; }
html.bc-lock { overflow: hidden; }

.bc-overlay {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.bc.is-open .bc-overlay { opacity: 1; visibility: visible; }

.bc-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 99999;
	width: var(--bc-w); max-width: 92vw;
	display: flex; flex-direction: column;
	background: #fff; color: #1b1b1b;
	box-shadow: 0 0 30px rgba(0, 0, 0, .2);
	transition: transform .3s ease, visibility .3s ease;
	visibility: hidden; outline: none;
}
.bc-rtl .bc-drawer { left: 0; transform: translateX(-105%); }
.bc-ltr .bc-drawer { right: 0; transform: translateX(105%); }
.bc.is-open .bc-drawer { transform: none; visibility: visible; }

.bc-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid #eee;
}
.bc-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--bc-primary); }
.bc-close {
	background: none; border: 0; cursor: pointer;
	font-size: 30px; line-height: 1; padding: 0 4px; color: #444;
}

/* Free shipping progress */
.bc-progress { padding: 14px 20px; background: #f6f8f7; border-bottom: 1px solid #eee; }
.bc-progress[hidden] { display: none; }
.bc-progress-text { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--bc-primary); text-align: center; }
.bc-bar { height: 10px; border-radius: 99px; background: #dfe5e2; overflow: hidden; }
.bc-bar > span {
	display: block; height: 100%; width: 0;
	background: var(--bc-accent); border-radius: 99px;
	transition: width .4s ease, background-color .3s ease;
}
.bc-progress.is-done .bc-bar > span { background: var(--bc-primary); }

.bc-notice {
	margin: 10px 20px 0; padding: 8px 12px; border-radius: 6px;
	background: #fdecea; color: #8a1f17; font-size: 13px;
}
.bc-notice[hidden], .bc-empty[hidden], .bc-foot[hidden] { display: none; }

/* Items */
.bc-items { list-style: none; margin: 0; padding: 0 20px; flex: 1; overflow-y: auto; }
.bc-item { position: relative; display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.bc-img { flex: 0 0 72px; }
.bc-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.bc-info { flex: 1; min-width: 0; padding-inline-end: 26px; }
.bc-name { display: block; font-size: 14px; font-weight: 600; color: #1b1b1b; text-decoration: none; }
a.bc-name:hover { color: var(--bc-accent); }
.bc-meta { margin-top: 2px; font-size: 12px; color: #777; white-space: pre-line; }
.bc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bc-price { font-size: 14px; font-weight: 700; color: var(--bc-primary); }

.bc-qty { display: inline-flex; align-items: center; border: 1px solid #d5d5d5; border-radius: 8px; overflow: hidden; }
.bc-qty button {
	width: 32px; height: 32px; padding: 0; border: 0; background: #fafafa;
	font-size: 18px; line-height: 1; cursor: pointer; color: #222;
}
.bc-qty button:hover:not(:disabled) { background: #eee; }
.bc-qty button:disabled { opacity: .35; cursor: not-allowed; }
.bc-qty-val { min-width: 34px; text-align: center; font-size: 14px; font-weight: 600; }

.bc-remove {
	position: absolute; top: 12px; inset-inline-end: 0;
	background: none; border: 0; cursor: pointer;
	font-size: 22px; line-height: 1; color: #999; padding: 2px 6px;
}
.bc-remove:hover { color: #c0392b; }

.bc-empty { padding: 40px 20px; text-align: center; color: #666; font-size: 16px; flex: 1; }

/* Upsell */
.bc-items { min-height: 120px; }
.bc-upsell { padding: 12px 0 14px; border-top: 1px solid #eee; background: #fafaf8; }
.bc-upsell[hidden] { display: none; }
.bc-upsell-title { margin: 0 20px 10px; font-size: 15px; font-weight: 700; color: var(--bc-primary); }
.bc-upsell-list { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 4px; scroll-snap-type: x proximity; }
.bc-up {
	flex: 0 0 140px; scroll-snap-align: start; padding: 10px;
	background: #fff; border: 1px solid #ececec; border-radius: 10px;
	display: flex; flex-direction: column; gap: 6px;
}
.bc-up-img img { width: 100%; height: 90px; object-fit: contain; display: block; }
.bc-up-name {
	font-size: 12px; font-weight: 600; color: #1b1b1b; text-decoration: none; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px;
}
.bc-up-price { font-size: 13px; font-weight: 700; color: var(--bc-primary); }
.bc-up-price del { opacity: .55; font-weight: 400; margin-inline-end: 4px; }
.bc-up-price ins { text-decoration: none; }
.bc-up-btn {
	margin-top: auto; padding: 7px 0; border: 0; border-radius: 8px; cursor: pointer; text-align: center;
	background: var(--bc-accent); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none;
}
.bc-up-btn:hover { filter: brightness(.92); }

/* Product page bundles */
.bc-bundles { margin: 0 0 16px; width: 100%; flex-basis: 100%; }
.bc-bundles-title { margin-bottom: 8px; font-weight: 700; color: var(--bc-primary); }
.bc-bundle {
	display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 12px 14px;
	border: 2px solid #dfe5e2; border-radius: 10px; cursor: pointer; background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}
.bc-bundle:has(input:checked) { border-color: var(--bc-primary); background: #f3f7f5; }
.bc-bundle input { accent-color: var(--bc-primary); margin: 0; }
.bc-bundle-label { flex: 1; font-weight: 600; }
.bc-badge {
	display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 99px;
	background: var(--bc-accent); color: #fff; font-size: 12px; font-style: normal; font-weight: 700;
}
.bc-bundle-price { font-weight: 700; color: var(--bc-primary); }

/* Footer */
.bc-foot { padding: 16px 20px 20px; border-top: 1px solid #eee; background: #fff; }
.bc-subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.bc-checkout {
	display: block; text-align: center; padding: 14px; border-radius: 10px;
	background: var(--bc-primary); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none;
	transition: background-color .2s ease;
}
.bc-checkout:hover { background: var(--bc-accent); }
.bc-viewcart { display: block; margin-top: 12px; text-align: center; font-size: 14px; color: #555; text-decoration: underline; }

.bc.is-busy .bc-items, .bc.is-busy .bc-foot { opacity: .6; pointer-events: none; }

@media (max-width: 480px) {
	.bc-drawer { width: 100vw; max-width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
	.bc-drawer, .bc-overlay, .bc-bar > span { transition: none; }
}
