/* ═══════════════════════════════════════════════════════════════════════
   SAVED PRODUCTS DRAWER & CONFIRMATION MODAL - BONEBANA (Figma Match)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Backdrop Overlay ── */
.bb-saved-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s ease;
}

.bb-saved-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

/* ── Slide-Over Right Drawer ── */
.bb-saved-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 420px;
	background-color: #FFFFFF;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
	font-family: 'Bricolage Grotesque', sans-serif;
}

.bb-saved-drawer.is-open {
	transform: translateX(0);
}

/* ── Drawer Header ── */
.bb-saved-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 1.75rem;
	border-bottom: 1px solid #ECE9E3;
}

.bb-saved-drawer__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #121212;
	margin: 0;
	letter-spacing: 0;
}

.bb-saved-drawer__close {
	background: none;
	border: none;
	color: #121212;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.bb-saved-drawer__close:hover {
	opacity: 0.7;
	transform: rotate(90deg);
}

/* ── Drawer Body ── */
.bb-saved-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 0 1.75rem 2rem 1.75rem;
	scrollbar-width: thin;
	scrollbar-color: #D5D2CC transparent;
}

.bb-saved-drawer__body::-webkit-scrollbar {
	width: 4px;
}

.bb-saved-drawer__body::-webkit-scrollbar-thumb {
	background-color: #D5D2CC;
	border-radius: 2px;
}

/* ── Saved Items List (Attached 1) ── */
.bb-saved-items-list {
	display: flex;
	flex-direction: column;
}

.bb-saved-item {
	display: flex;
	gap: 1.15rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #ECE9E3;
	align-items: flex-start;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.bb-saved-item.is-removing {
	opacity: 0;
	transform: translateX(20px);
}

/* Item Thumbnail */
.bb-saved-item__thumb-link {
	display: block;
	flex-shrink: 0;
	width: 78px;
	aspect-ratio: 3 / 4;
	background-color: #F4F2EE;
	overflow: hidden;
}

.bb-saved-item__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bb-saved-item__thumb-link:hover .bb-saved-item__thumb {
	transform: scale(1.04);
}

/* Item Details */
.bb-saved-item__details {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bb-saved-item__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.bb-saved-item__title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	color: #121212;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: opacity 0.2s ease;
}

.bb-saved-item__title:hover {
	opacity: 0.7;
}

/* Bookmark Remove Trigger (Filled Bookmark Icon) */
.bb-saved-item__remove-btn {
	background: none;
	border: none;
	color: #121212;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.bb-saved-item__remove-btn:hover {
	opacity: 0.7;
	transform: scale(1.15);
}

.bb-saved-bookmark-icon {
	color: #121212;
	fill: #121212;
	stroke: #121212;
}

/* Prices */
.bb-saved-item__prices {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 13px;
	font-weight: 400;
	color: #121212;
	margin-bottom: 0.65rem;
}

.bb-saved-item__price-sale {
	font-weight: 500;
	color: #121212;
}

.bb-saved-item__price-regular {
	font-size: 12px;
	color: #888888;
	text-decoration: line-through;
}

.bb-saved-item__price-current {
	color: #121212;
}

/* Color Swatches Indicator (Figma Match Attached 1) */
.bb-saved-item__swatches {
	display: flex;
	align-items: center;
	gap: 5px;
}

.bb-saved-item__swatch {
	width: 10px;
	height: 10px;
	border-radius: 1px;
	background-color: #ccc;
	display: inline-block;
	flex-shrink: 0;
}

.bb-saved-item__swatch-more {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: #555555;
	margin-left: 2px;
	line-height: 1;
}

/* ── Empty State ── */
.bb-saved-empty-state {
	padding: 4rem 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bb-saved-empty-icon {
	color: #888888;
	margin-bottom: 1.25rem;
	opacity: 0.6;
}

.bb-saved-empty-title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #121212;
	margin: 0 0 0.5rem 0;
}

.bb-saved-empty-desc {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 12px;
	font-weight: 300;
	color: #767676;
	line-height: 18px;
	max-width: 260px;
	margin: 0 0 1.75rem 0;
}

.bb-saved-empty-btn {
	display: inline-block;
	background-color: #121212;
	color: #FFFFFF;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.85rem 1.75rem;
	border: 1px solid #121212;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.bb-saved-empty-btn:hover {
	background-color: #393939;
	border-color: #393939;
	color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════════════════
   DELETE CONFIRMATION & SUCCESS MODAL (Figma Match Attached 2)
   ═══════════════════════════════════════════════════════════════════════ */
.bb-saved-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.bb-saved-modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.bb-saved-confirm-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.95);
	background-color: #FFFFFF;
	z-index: 100001;
	width: 90%;
	max-width: 380px;
	padding: 2.25rem 2rem;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
	opacity: 0;
	visibility: hidden;
	transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, visibility 0.25s ease;
	font-family: 'Bricolage Grotesque', sans-serif;
	border-radius: 0;
}

.bb-saved-confirm-modal.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.bb-saved-modal-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.bb-saved-modal-view {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Modal Icon */
.bb-saved-modal-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	color: #121212;
}

.bb-modal-trash-icon {
	stroke: #121212;
}

/* Modal Title (Attached 2) */
.bb-saved-modal-title {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #121212;
	margin: 0 0 1.75rem 0;
	text-align: center;
}

.bb-saved-modal-subtitle {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 13px;
	font-weight: 300;
	color: #555555;
	line-height: 20px;
	margin: 0;
	text-align: center;
}

/* Modal Buttons (Cancel & Delete) */
.bb-saved-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	width: 100%;
}

.bb-saved-modal-btn {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 13px;
	font-weight: 500;
	padding: 0.75rem 1.25rem;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	outline: none;
}

/* Cancel button (White bg, subtle border) */
.bb-saved-modal-btn--cancel {
	background-color: #FFFFFF;
	border: 1px solid #D5D2CC;
	color: #4A433D;
}

.bb-saved-modal-btn--cancel:hover {
	background-color: #F8F7F4;
	border-color: #BBB8B0;
	color: #121212;
}

/* Delete button (Dark brown / charcoal background) */
.bb-saved-modal-btn--delete {
	background-color: #5C5248;
	border: 1px solid #5C5248;
	color: #FFFFFF;
}

.bb-saved-modal-btn--delete:hover {
	background-color: #483F37;
	border-color: #483F37;
	color: #FFFFFF;
}

.bb-saved-modal-btn--delete:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Success View Icon Animation */
.bb-saved-modal-icon-wrap--success {
	color: #2E7D32;
	animation: bbPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bbPopIn {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE BOOKMARK TRIGGER STATES
   ═══════════════════════════════════════════════════════════════════════ */
.bb-single-wishlist-trigger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #121212;
}

.bb-single-wishlist-trigger.is-saved .bb-wishlist-icon {
	fill: #121212;
	stroke: #121212;
}

.bb-single-wishlist-trigger:hover .bb-wishlist-icon {
	transform: scale(1.1);
}

.bb-single-wishlist-trigger .bb-wishlist-icon {
	transition: transform 0.2s ease, fill 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.bb-saved-drawer {
		max-width: 100%;
	}
	.bb-saved-confirm-modal {
		padding: 1.75rem 1.5rem;
		max-width: 320px;
	}
}
