/* Amphorae Shop – בורר כמות +/− וכפתור הוספה לסל (צבעים ורדיוס ממסך ההגדרות) */

/* עמוד מוצר: שדה הכמות של ווקומרס הופך לבורר */
/* מסתירים כפתורי +/- של סניפטים/תבניות קיימים (למשל input.qty-btn) כדי שלא יהיו כפולים */
.woocommerce div.product form.cart div.quantity .qty-btn,
.woocommerce div.product form.cart div.quantity .minus:not(.amph-qty__btn),
.woocommerce div.product form.cart div.quantity .plus:not(.amph-qty__btn) { display: none !important; }

.woocommerce div.product form.cart div.quantity,
.amph-qty {
	display: inline-flex !important;
	align-items: stretch;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, .55);
	border-radius: var(--amph-radius, 0);
	background: #F9F9F9;
	overflow: hidden;
	direction: rtl;
	margin: 0;
	vertical-align: middle;
}
.amph-qty--loop { height: 34px; }

.woocommerce div.product form.cart div.quantity input.qty,
.amph-qty .amph-qty__input {
	width: 48px !important;
	min-width: 0;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	text-align: center;
	font-family: 'Assistant', sans-serif;
	font-size: 15px !important;
	font-weight: 300;
	-moz-appearance: textfield;
	appearance: textfield;
}
.amph-qty input::-webkit-outer-spin-button,
.amph-qty input::-webkit-inner-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* !important — הסגנון הגלובלי של אלמנטור לכפתורים */
button.amph-qty__btn {
	flex: 0 0 36px;
	width: 36px;
	min-width: 36px;
	background-color: #E8E8E8 !important;
	color: #000 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	font-family: 'Assistant', sans-serif;
	font-size: 20px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer;
}
.amph-qty--loop button.amph-qty__btn { flex-basis: 30px; width: 30px; min-width: 30px; font-size: 17px !important; }
button.amph-qty__btn:hover { background-color: #dcdcdc !important; }

/* גרידים: בורר + כפתור בשורה אחת */
.amph-add-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
}
.amph-add-row .button { margin: 0 !important; }

/* כפתורי "הוספה לסל" — רק כשהאופציה פעילה בהגדרות */
body.amph-style-atc a.add_to_cart_button,
body.amph-style-atc a.button.product_type_woosb,
body.amph-style-atc button.single_add_to_cart_button {
	background-color: var(--amph-primary, #566B30) !important;
	color: var(--amph-btn-text, #fff) !important;
	border: 1px solid var(--amph-primary, #566B30) !important;
	border-radius: var(--amph-radius, 0) !important;
	font-family: 'Assistant', sans-serif;
	transition: filter .2s ease;
}
body.amph-style-atc a.add_to_cart_button:hover,
body.amph-style-atc a.button.product_type_woosb:hover,
body.amph-style-atc button.single_add_to_cart_button:hover { filter: brightness(.85); }
