/* ─── Sticky product bar ──────────────────────────────────────────────────── */

.ohoche-sticky-bar,
.ohoche-sticky-bar * {
	font-family: "Gilroy", Sans-serif;
}

.ohoche-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	background: #fff;
	border-top: 1px solid #e8e8e8;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.ohoche-sticky-bar.is-visible {
	transform: translateY(0);
}

.ohoche-sticky-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
}

/* ─── Product info (left side) ─────────────────────────────────────────────── */

.ohoche-sticky-bar__product {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.ohoche-sticky-bar__thumb {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	background: #f6f6f6;
}

.ohoche-sticky-bar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ohoche-sticky-bar__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ohoche-sticky-bar__name {
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 380px;
}

.ohoche-sticky-bar__price {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.ohoche-sticky-bar__price .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.ohoche-sticky-bar__price ins {
	text-decoration: none;
}

.ohoche-sticky-bar__price del {
	font-size: 12px;
	font-weight: 400;
	color: #999;
	margin-left: 4px;
}

/* ─── Action (right side) ──────────────────────────────────────────────────── */

.ohoche-sticky-bar__action {
	flex-shrink: 0;
}

.ohoche-sticky-bar__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: none;
	border-radius: 999px;
	background: #6fa57c;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, opacity 0.2s;
	min-width: 180px;
	text-decoration: none !important;
}

.ohoche-sticky-bar__btn:hover:not(:disabled):not(.loading) {
	background: #84a584;
	color: #fff !important;
}

.ohoche-sticky-bar__btn:disabled,
.ohoche-sticky-bar__btn--choose {
	background: #b2c9b8;
	color: #fff !important;
	cursor: default;
}

.ohoche-sticky-bar__btn--choose:not(:disabled) {
	background: #6fa57c;
	color: #fff !important;
	cursor: pointer;
}

.ohoche-sticky-bar__btn--choose:not(:disabled):hover {
	background: #84a584;
	color: #fff !important;
}

.ohoche-sticky-bar__btn.loading {
	opacity: 0.7;
	pointer-events: none;
	color: #fff !important;
}

.ohoche-sticky-bar__btn.loading::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ohocheStickyBarSpin 0.7s linear infinite;
}

.ohoche-sticky-bar__btn.is-in-cart {
	background: #6fa57c;
	color: #fff !important;
	cursor: default;
}

.ohoche-sticky-bar__btn.is-in-cart:hover {
	background: #84a584;
	color: #fff !important;
}

@keyframes ohocheStickyBarSpin {
	to { transform: rotate(360deg); }
}

/* ─── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.ohoche-sticky-bar__inner {
		padding: 8px 12px;
		gap: 8px;
	}

	.ohoche-sticky-bar__thumb {
		width: 40px;
		height: 40px;
		border-radius: 6px;
		flex-shrink: 0;
	}

	.ohoche-sticky-bar__info {
		gap: 1px;
		min-width: 0;
		flex: 1;
	}

	.ohoche-sticky-bar__name {
		font-size: 12px;
		font-weight: 500;
		max-width: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ohoche-sticky-bar__price {
		font-size: 13px;
		font-weight: 600;
	}

	.ohoche-sticky-bar__price del {
		font-size: 11px;
	}

	.ohoche-sticky-bar__btn {
		padding: 10px 14px;
		font-size: 13px;
		font-weight: 600;
		min-width: 0;
		white-space: nowrap;
	}
}
