/* ── Buy Now Button ────────────────────────────────────────────────────────── */
.qc-buy-now-btn {
	transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
	text-decoration: none !important;
	display: inline-block;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.qc-hover-effect:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0,0,0,.15) !important;
	opacity: .92;
}

.qc-hover-effect:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0,0,0,.1) !important;
}

/* Disabled state (variable product — no variation selected yet) */
.qc-btn-disabled {
	opacity: .45 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

/* Icon inside button */
.qc-icon {
	display: inline-block;
	font-style: normal;
	vertical-align: middle;
}

/* ── Stock Urgency Message ─────────────────────────────────────────────────── */
.qc-stock-message {
	color: #b45309;
	font-weight: 600;
	font-size: 13px;
	padding: 9px 14px;
	background: #fff5e6;
	border-left: 4px solid #b45309;
	border-radius: 4px;
	margin-bottom: 10px;
}

/* ── Quantity Selector ─────────────────────────────────────────────────────── */
.qc-btn-row {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.qc-qty-selector {
	display: inline-flex;
	align-items: center;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.qc-qty-minus,
.qc-qty-plus {
	background: #f3f4f6;
	border: none;
	padding: 0 12px;
	height: 40px;
	font-size: 18px;
	line-height: 40px;
	cursor: pointer;
	color: #374151;
	transition: background .15s;
	-webkit-appearance: none;
}

.qc-qty-minus:hover,
.qc-qty-plus:hover {
	background: #e5e7eb;
}

.qc-qty-input {
	border: none !important;
	border-left: 1px solid #d1d5db !important;
	border-right: 1px solid #d1d5db !important;
	border-radius: 0 !important;
	width: 52px !important;
	height: 40px !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	padding: 0 !important;
	outline: none !important;
	-moz-appearance: textfield;
}

.qc-qty-input::-webkit-outer-spin-button,
.qc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ── Sticky Buy Now Bar ─────────────────────────────────────────────────────── */
.qc-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}

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

.qc-sticky-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.qc-sticky-bar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	overflow: hidden;
}

.qc-sticky-bar-name {
	font-weight: 600;
	font-size: 14px;
	color: #f9fafb;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.qc-sticky-bar-price {
	font-size: 13px;
	color: #d1d5db;
}

.qc-sticky-bar-price .woocommerce-Price-amount {
	color: #86efac;
}

.qc-sticky-bar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.qc-qty-sticky .qc-qty-minus,
.qc-qty-sticky .qc-qty-plus {
	height: 36px;
	line-height: 36px;
}

.qc-qty-sticky .qc-qty-input {
	height: 36px !important;
}

.qc-sticky-btn {
	white-space: nowrap;
}

/* ── Variable Product Tooltip ─────────────────────────────────────────────── */
.qc-buy-now-wrap .qc-btn-row {
	position: relative;
}

.qc-variation-tip {
	display: none;
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
	pointer-events: none;
	z-index: 10;
}

.qc-variation-tip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1d2327;
}

.qc-btn-disabled-wrap:hover .qc-variation-tip {
	display: block;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.qc-sticky-bar-inner {
		padding: 10px 16px;
		gap: 10px;
	}
	.qc-sticky-bar-info {
		display: none;
	}
	.qc-sticky-bar-actions {
		width: 100%;
		justify-content: center;
	}
}
