/*
 * Sticky Add to Cart bar (product pages). Plain CSS, not Tailwind.
 * Button matches the product page's Add to Cart (black, Barlow Condensed, 8px radius).
 */

.stickyAtc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(254, 252, 245, 0.96);
	border-top: 1px solid #e7e2d3;
	box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
	transform: translateY(110%);
	transition: transform 0.25s ease;
}

.stickyAtc.is-visible {
	transform: translateY(0);
}

.stickyAtcInner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1170px;
	margin: 0 auto;
}

.stickyAtcInfo {
	min-width: 0;
}

.stickyAtcTitle {
	display: none;
	overflow: hidden;
	color: #141414;
	font-family: Cabin, ui-sans-serif, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.stickyAtcPrice {
	color: #141414;
	font-family: Cabin, ui-sans-serif, system-ui, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.stickyAtcPrice del {
	margin-right: 6px;
	color: #8a8a8a;
	font-weight: 400;
}

.stickyAtcPrice ins {
	text-decoration: none;
}

.stickyAtcButton {
	flex: none;
	min-width: 160px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
	transition: opacity 0.15s;
}

.stickyAtcButton:hover {
	opacity: 0.9;
}

/* Room at the bottom of the page so the bar never covers the footer. */
body.has-sticky-atc {
	padding-bottom: 76px;
}

@media (min-width: 768px) {
	.stickyAtcTitle {
		display: block;
	}

	.stickyAtcButton {
		min-width: 220px;
	}
}

@media (max-width: 380px) {
	.stickyAtcButton {
		min-width: 140px;
		padding: 12px 16px;
	}
}
