/* Cart You May Also Like + free shipping bar + checkout order bump */

:root {
	--bab-teal: #004447;
	--bab-teal-deep: #013235;
	--bab-gold: #c69c6d;
	--bab-ink: #1c1c1c;
	--bab-muted: #6b6b6b;
	--bab-line: #e6e0d6;
	--bab-sand: #f7f4ef;
	--bab-card: #ffffff;
}

/* ========== You May Also Like ========== */
.bab-ymal {
	margin: 1.75rem 0 0.25rem;
	padding: 0;
	background: transparent;
	border: 0;
}

.bab-ymal__head {
	margin-bottom: 1rem;
}

.bab-ymal__title {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.55rem, 2.4vw, 1.9rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-transform: none;
	color: var(--bab-teal);
}

.bab-ymal__sub {
	margin: 0.3rem 0 0;
	font-family: "DM Sans", sans-serif;
	font-size: 0.875rem;
	color: var(--bab-muted);
}

.bab-ymal__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2.25rem) / 4);
	gap: 0.75rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	padding: 0.15rem 0.15rem 0.85rem;
	margin: 0 -0.15rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--bab-gold) transparent;
}

.bab-ymal__track::-webkit-scrollbar {
	height: 4px;
}

.bab-ymal__track::-webkit-scrollbar-thumb {
	background: var(--bab-gold);
	border-radius: 99px;
}

.bab-ymal__card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bab-card);
	border: 1px solid var(--bab-line);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bab-ymal__card:hover {
	border-color: rgba(0, 68, 71, 0.28);
	box-shadow: 0 10px 28px rgba(0, 68, 71, 0.08);
}

.bab-ymal__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bab-sand);
	overflow: hidden;
}

.bab-ymal__img {
	display: block;
	width: 100%;
	height: 100%;
}

.bab-ymal__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.bab-ymal__card:hover .bab-ymal__img img {
	transform: scale(1.04);
}

/* Always-visible + add control */
.bab-ymal__add {
	position: absolute;
	right: 0.65rem;
	bottom: 0.65rem;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--bab-teal) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	text-decoration: none !important;
	line-height: 1 !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.bab-ymal__add-icon {
	font-family: "DM Sans", sans-serif;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-1px);
}

.bab-ymal__add:hover,
.bab-ymal__add.added {
	background: var(--bab-teal) !important;
	color: #fff !important;
	transform: scale(1.05);
}

.bab-ymal__add.loading {
	opacity: 0.7;
	pointer-events: none;
}

.bab-ymal__meta {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	padding: 0.8rem 0.85rem 1rem;
	font-family: "DM Sans", sans-serif;
}

.bab-ymal__cat {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bab-gold);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bab-ymal__name {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--bab-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
}

.bab-ymal__name:hover {
	color: var(--bab-teal);
}

.bab-ymal__price {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bab-ink);
}

.bab-ymal__price del {
	opacity: 0.5;
	margin-inline-end: 0.3rem;
	font-weight: 500;
}

.bab-ymal__price .amount {
	color: inherit;
}

/* Hide any leftover Flatsome chrome if present */
.bab-ymal .image-tools,
.bab-ymal .quick-view,
.bab-ymal .add-to-cart-button,
.bab-ymal .wishlist-icon {
	display: none !important;
}

/* ========== Free shipping motivator ========== */
.bab-free-shipping-bar {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--bab-sand);
	border: 1px solid var(--bab-line);
}

.bab-free-shipping-bar__msg {
	margin: 0 0 0.65rem;
	font-family: "DM Sans", sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bab-ink);
}

.bab-free-shipping-bar__msg--success {
	color: var(--bab-teal);
}

.bab-free-shipping-bar__track {
	height: 6px;
	background: #e5e1d8;
	border-radius: 999px;
	overflow: hidden;
}

.bab-free-shipping-bar__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--bab-teal), var(--bab-gold));
	border-radius: 999px;
	transition: width 0.35s ease;
}

.bab-free-shipping-bar__suggest {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--bab-line);
}

.bab-free-shipping-bar__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	background: #fff;
}

.bab-free-shipping-bar__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bab-free-shipping-bar__suggest-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-family: "DM Sans", sans-serif;
}

.bab-free-shipping-bar__name {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--bab-ink);
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bab-free-shipping-bar__price {
	font-size: 0.8rem;
	color: var(--bab-muted);
}

.bab-free-shipping-bar__add {
	align-self: flex-start;
	margin-top: 0.25rem !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2rem !important;
	height: 2rem !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--bab-teal) !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
	font-size: 0 !important;
	position: relative;
}

.bab-free-shipping-bar__add::after {
	content: "+";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--bab-teal);
}

.bab-free-shipping-bar__add:hover {
	background: var(--bab-teal) !important;
}

.bab-free-shipping-bar__add:hover::after {
	color: #fff;
}

/* ========== Checkout order bump ========== */
.bab-order-bump {
	margin: 0 0 1.25rem;
	padding: 0.9rem 1rem;
	border: 1px solid var(--bab-line);
	border-left: 3px solid var(--bab-gold);
	background: #fbf8f3;
	font-family: "DM Sans", sans-serif;
}

.bab-order-bump__label {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	cursor: pointer;
}

.bab-order-bump__checkbox {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var(--bab-teal);
}

.bab-order-bump__media {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	background: #fff;
}

.bab-order-bump__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bab-order-bump__content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.bab-order-bump__eyebrow {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bab-gold);
	font-weight: 700;
}

.bab-order-bump__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bab-ink);
	line-height: 1.3;
}

.bab-order-bump__price {
	font-size: 0.85rem;
	color: #444;
}

.bab-order-bump__status {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: var(--bab-teal);
}

.bab-order-bump.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Tablet */
@media only screen and (max-width: 849px) {
	.bab-ymal__track {
		grid-auto-columns: calc((100% - 0.75rem) / 2);
		gap: 0.75rem;
	}
}

/* Mobile */
@media only screen and (max-width: 48em) {
	.bab-ymal {
		margin-top: 1.35rem;
	}

	.bab-ymal__track {
		grid-auto-columns: calc((100% - 0.65rem) / 2);
		gap: 0.65rem;
		padding-bottom: 0.65rem;
		scrollbar-width: none;
	}

	.bab-ymal__track::-webkit-scrollbar {
		display: none;
	}

	.bab-ymal__add {
		width: 2.55rem;
		height: 2.55rem;
		right: 0.55rem;
		bottom: 0.55rem;
		/* Always solid & tappable — no hover dependency */
		background: var(--bab-teal) !important;
		color: #fff !important;
		box-shadow: 0 6px 16px rgba(0, 68, 71, 0.28);
	}

	.bab-ymal__add-icon {
		font-size: 1.45rem;
	}

	.bab-ymal__meta {
		padding: 0.7rem 0.65rem 0.85rem;
		gap: 0.22rem;
	}

	.bab-ymal__name {
		font-size: 0.98rem;
		min-height: 2.4em;
	}

	.bab-ymal__price {
		font-size: 0.85rem;
	}

	.bab-order-bump__label {
		align-items: flex-start;
	}
}

/* Very small phones: slightly larger cards for easier swipe */
@media only screen and (max-width: 380px) {
	.bab-ymal__track {
		grid-auto-columns: 72%;
	}
}
