/*
 * Bae Beaute Smart Cart Luxe Skin
 * Scoped to the existing .bbsc smart cart drawer. No WooCommerce logic changes.
 */

:root {
	--bbscls-bg: #fbf3ea;
	--bbscls-surface: #fffaf5;
	--bbscls-soft: #fbf4eb;
	--bbscls-line: #f1e8da;
	--bbscls-hair: #f4ece0;
	--bbscls-line-d: #e7d8c2;
	--bbscls-accent: #c5a063;
	--bbscls-metal: #a8843c;
	--bbscls-ink: #251c14;
	--bbscls-ink-2: #5a4a3a;
	--bbscls-ink-soft: #9b8a72;
	--bbscls-ok: #7a6a2e;
	--bbscls-shadow: rgba(24, 18, 14, .34);
}

body .bbsc-overlay {
	background: rgba(24, 18, 14, .48);
	backdrop-filter: saturate(1.05) blur(1px);
}

body .bbsc-drawer {
	width: min(410px, calc(100vw - 18px));
	background: var(--bbscls-surface);
	border-left: 1px solid var(--bbscls-line-d);
	box-shadow: -34px 0 80px -40px var(--bbscls-shadow);
	color: var(--bbscls-ink);
	font-family: "Figtree", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:not(.bbsc-open) .bbsc-drawer {
	width: 0 !important;
	min-width: 0 !important;
	border-left: 0 !important;
	box-shadow: none !important;
	overflow: hidden !important;
}

body.bbsc-open .bbsc-drawer {
	width: min(410px, calc(100vw - 18px));
}

body .bbsc-drawer * {
	letter-spacing: 0;
}

body .bbsc-header {
	align-items: flex-start;
	border-bottom: 1px solid var(--bbscls-hair);
	padding: 22px 22px 16px;
}

body .bbsc-eyebrow {
	color: var(--bbscls-metal);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .18em;
	line-height: 1.2;
	margin: 0 0 7px;
	text-transform: uppercase;
}

body .bbsc-header h2 {
	color: var(--bbscls-ink);
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 27px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
}

body .bbsc-header-count {
	color: var(--bbscls-ink-soft);
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	margin-top: 7px;
	text-transform: uppercase;
}

body .bbsc-icon-btn {
	align-items: center;
	background: transparent;
	border: 1px solid var(--bbscls-line-d);
	border-radius: 50%;
	color: var(--bbscls-ink-2);
	display: inline-flex;
	font-size: 0;
	height: 34px;
	justify-content: center;
	min-width: 34px;
	width: 34px;
}

body .bbsc-icon-btn::before,
body .bbsc-icon-btn::after {
	background: currentColor;
	content: "";
	height: 1.4px;
	position: absolute;
	width: 13px;
}

body .bbsc-icon-btn::before {
	transform: rotate(45deg);
}

body .bbsc-icon-btn::after {
	transform: rotate(-45deg);
}

body .bbsc-icon-btn:hover,
body .bbsc-icon-btn:focus-visible {
	background: var(--bbscls-soft);
	outline: none;
}

body .bbsc-trust-strip {
	background: var(--bbscls-soft);
	border-bottom: 1px solid var(--bbscls-line);
	border-top: 0;
	color: var(--bbscls-ink-2);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(3, 1fr);
	padding: 0;
}

body .bbsc-trust-strip span {
	align-items: center;
	border-right: 1px solid var(--bbscls-line);
	display: flex;
	font-size: 9px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: .11em;
	line-height: 1.25;
	min-height: 38px;
	padding: 9px 8px;
	text-align: center;
	text-transform: uppercase;
}

body .bbsc-trust-strip span:last-child {
	border-right: 0;
}

body .bbsc-free-ship {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bbscls-hair);
	margin: 0 22px;
	padding: 17px 0 18px;
}

body .bbsc-free-ship-top {
	align-items: flex-start;
	color: var(--bbscls-ink-2);
	display: flex;
	font-size: 11.5px;
	font-weight: 400;
	gap: 8px;
	justify-content: space-between;
	line-height: 1.35;
	margin-bottom: 10px;
}

body .bbsc-free-ship-top::before {
	background: currentColor;
	content: "";
	flex: 0 0 15px;
	height: 15px;
	margin-top: 1px;
	mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 3h13v10H1z'/%3E%3Cpath d='M14 8h4l3 3v2h-7z'/%3E%3Ccircle cx='5.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	width: 15px;
}

body .bbsc-free-ship-top strong {
	color: var(--bbscls-ink);
	font-weight: 600;
	text-align: right;
}

body .bbsc-progress {
	background: var(--bbscls-line-d);
	border-radius: 3px;
	height: 3px;
	overflow: hidden;
}

body .bbsc-progress span {
	background: linear-gradient(90deg, var(--bbscls-metal), var(--bbscls-accent));
	border-radius: inherit;
	display: block;
	height: 100%;
}

body .bbsc-items {
	background: var(--bbscls-surface);
	padding: 4px 22px;
}

body .bbsc-item {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bbscls-hair);
	border-radius: 0;
	display: grid;
	gap: 15px;
	grid-template-columns: 70px minmax(0, 1fr);
	margin: 0;
	padding: 20px 0;
}

body .bbsc-item:last-child {
	border-bottom: 0;
}

body .bbsc-img {
	background: linear-gradient(135deg, #f4e2d8, #e6c7b4);
	border-radius: 3px;
	height: 84px;
	overflow: hidden;
	width: 70px;
}

body .bbsc-img img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

body .bbsc-detail {
	min-width: 0;
}

body .bbsc-title {
	color: var(--bbscls-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.34;
	margin: 0 0 7px;
}

body .bbsc-line {
	align-items: center;
	color: var(--bbscls-ink-2);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 6px;
	line-height: 1.35;
}

body .bbsc-price,
body .bbsc-line-total {
	color: var(--bbscls-ink);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

body .bbsc-badge {
	border-radius: 2px;
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1;
	padding: 5px 7px;
	text-transform: uppercase;
}

body .bbsc-badge-free,
body .bbsc-badge-offer {
	background: rgba(197, 160, 99, .14);
	border: 1px solid rgba(197, 160, 99, .28);
	color: var(--bbscls-metal);
}

body .bbsc-stock {
	color: var(--bbscls-ink-soft);
	font-size: 11px;
}

body .bbsc-offer-note {
	color: var(--bbscls-ink-soft);
	font-size: 11px;
	line-height: 1.35;
	margin: 8px 0 0;
}

body .bbsc-item-bottom {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 12px;
}

body .bbsc-qty {
	align-items: center;
	border: 1px solid var(--bbscls-line-d);
	border-radius: 3px;
	display: inline-flex;
	overflow: hidden;
}

body .bbsc-qty button,
body .bbsc-qty .bbsc-qty-btn {
	background: transparent;
	border: 0;
	color: var(--bbscls-ink-2);
	height: 28px;
	min-width: 28px;
	width: 28px;
}

body .bbsc-qty input,
body .bbsc-qty .bbsc-qty-value,
body .bbsc-qty span {
	color: var(--bbscls-ink);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	min-width: 24px;
	text-align: center;
}

body .bbsc-remove {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--bbscls-line-d);
	border-radius: 0;
	color: var(--bbscls-ink-soft);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	padding: 0 0 1px;
	text-transform: uppercase;
}

body .bbsc-line-total-wrap {
	color: var(--bbscls-ink-soft);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-align: right;
	text-transform: uppercase;
}

body .bbsc-summary {
	background: var(--bbscls-surface);
	border: 0;
	border-top: 1px solid var(--bbscls-line);
	margin: 0;
	padding: 18px 22px 0;
}

body .bbsc-summary-title {
	color: var(--bbscls-ink);
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px;
}

body .bbscp-coupon,
body .bbsc-drawer-coupon {
	background: var(--bbscls-soft);
	border: 1px solid var(--bbscls-line-d);
	border-radius: 2px;
	color: var(--bbscls-ink-2);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .13em;
	margin: 0 0 14px;
	min-height: 38px;
	text-transform: uppercase;
}

body .bbsc-summary-row,
body .bbsc-summary-total {
	align-items: baseline;
	color: var(--bbscls-ink-2);
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	margin-bottom: 7px;
}

body .bbsc-summary-total {
	border-top: 1px solid var(--bbscls-hair);
	color: var(--bbscls-ink);
	font-size: 19px;
	font-weight: 600;
	margin: 10px 0 3px;
	padding-top: 10px;
}

body .bbsc-footer {
	background: var(--bbscls-surface);
	border-top: 0;
	padding: 0 22px 20px;
}

body .bbsc-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr;
	margin-top: 15px;
}

body .bbsc-primary,
body .bbsc-secondary {
	align-items: center;
	border-radius: 2px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	justify-content: center;
	letter-spacing: .16em;
	min-height: 50px;
	padding: 14px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

body .bbsc-primary {
	background: var(--bbscls-ink);
	color: var(--bbscls-surface);
}

body .bbsc-primary::before {
	background: currentColor;
	content: "";
	height: 14px;
	margin-right: 9px;
	mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='1.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
	width: 14px;
}

body .bbsc-primary:hover,
body .bbsc-primary:focus-visible {
	background: var(--bbscls-metal);
	color: var(--bbscls-surface);
}

body .bbsc-secondary {
	background: transparent;
	border: 1px solid var(--bbscls-line-d);
	color: var(--bbscls-ink-2);
	min-height: 42px;
}

body .bbsc-floating {
	background: var(--bbscls-surface);
	border: 1px solid var(--bbscls-metal);
	box-shadow: 0 12px 32px -14px var(--bbscls-shadow);
	color: var(--bbscls-ink);
}

body .bbsc-floating-count,
body .bbsc-floating .bbsc-count {
	background: var(--bbscls-ink);
	color: var(--bbscls-surface);
}

@media (max-width: 640px) {
	body .bbsc-drawer {
		border-left: 0;
		width: 100vw;
	}

	body.bbsc-open .bbsc-drawer {
		width: 100vw;
	}

	body .bbsc-header {
		padding: 19px 20px 15px;
	}

	body .bbsc-trust-strip span {
		font-size: 8px;
		min-height: 36px;
		padding-inline: 6px;
	}

	body .bbsc-free-ship {
		margin-inline: 20px;
	}

	body .bbsc-items {
		padding-inline: 20px;
	}

	body .bbsc-item {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 13px;
		padding-block: 18px;
	}

	body .bbsc-img {
		height: 78px;
		width: 64px;
	}

	body .bbsc-summary,
	body .bbsc-footer {
		padding-inline: 20px;
	}

	body .bbsc-item-bottom {
		column-gap: 12px;
		display: grid;
		grid-template-columns: auto auto minmax(62px, 1fr);
		justify-content: stretch;
		row-gap: 8px;
	}

	body .bbsc-qty {
		justify-self: start;
	}

	body .bbsc-remove {
		justify-self: start;
		white-space: nowrap;
	}

	body .bbsc-line-total-wrap {
		justify-self: end;
		min-width: 62px;
		white-space: nowrap;
	}
}

@media (max-width: 360px) {
	body .bbsc-item-bottom {
		grid-template-columns: auto 1fr;
	}

	body .bbsc-line-total-wrap {
		grid-column: 1 / -1;
		justify-self: end;
	}
}
