/**
 * Quantity +/- controls — single product page.
 * The block cart uses WooCommerce's native quantity stepper.
 */

.hs-add-to-cart-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hs-plusminus {
	display: inline-flex;
	align-items: center;
	gap: 0;
}

.hs-plusminus__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary, #4FC6F0);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease;
	-webkit-user-select: none;
	user-select: none;
}

.hs-plusminus__btn:hover:not(:disabled) {
	background: var(--wp--preset--color--secondary-light, #8BD2EB);
}

.hs-plusminus__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.hs-plusminus__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary, #4FC6F0);
	outline-offset: 2px;
}

.hs-plusminus__qty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	font-family: var(--wp--preset--font-family--body, 'Quicksand', sans-serif);
	color: var(--wp--preset--color--contrast, #333);
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 50%;
	margin: 0 3px;
}

/* Hide the native number input spinners */
.hs-add-to-cart-wrapper input[type="number"]::-webkit-inner-spin-button,
.hs-add-to-cart-wrapper input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hs-add-to-cart-wrapper input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
	text-align: center;
}

/* Hide the native quantity input on single product (display is driven by our span) */
.hs-add-to-cart-wrapper .quantity {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
