/* === Quantity pill selector for variable products === */

/* Hide the native select (replaced by pills) */
.variations_form .growshophr-quantity-select {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Hide the "Količina" table header label (replaced by pills) */
.variations_form .variations th.label,
.variations_form .variations td.label {
	display: none !important;
}

/* Hide "Obriši" clear link and "Odaberi opciju" default option label */
.variations_form .variations td.value .reset_variations {
	display: none !important;
}

.variations_form .variations td.value {
	padding: 0;
	width: 100%;
}

/* === Pill row === */
.growshophr-quantity-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 6px;
}

/* === Individual pill (bigger) === */
.growshophr-quantity-card {
	align-items: center;
	background: #fff;
	border: 2px solid #d0ddd2;
	border-radius: 8px;
	box-sizing: border-box;
	color: #173d20;
	cursor: pointer;
	display: inline-flex;
	gap: 6px;
	justify-content: center;
	padding: 10px 16px;
	text-align: center;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
	min-width: 100px;
}

.growshophr-quantity-card:hover {
	border-color: #28752e;
	box-shadow: 0 1px 4px rgba(40, 117, 46, .15);
}

.growshophr-quantity-card.is-selected {
	background: #eaf6eb;
	border-color: #28752e;
	box-shadow: 0 0 0 1px #28752e;
}

.growshophr-quantity-card:focus-visible {
	outline: 2px solid #28752e;
	outline-offset: 2px;
}

/* === Pill text sizes (bigger) === */
.growshophr-quantity-card__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

.growshophr-quantity-card__sep {
	font-size: 12px;
	color: #999;
}

.growshophr-quantity-card__price {
	font-size: 14px;
	font-weight: 600;
	color: #28752e;
	line-height: 1.3;
}

.growshophr-quantity-card__price ins {
	text-decoration: none;
}

.growshophr-quantity-card__price del {
	color: #718176;
	font-size: 11px;
	margin-left: 2px;
}

/* === Show selected price summary === */
.growshophr-selected-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 6px 0 12px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	color: #173d20;
}

.growshophr-selected-price del {
	font-size: 14px;
	font-weight: 400;
	color: #999;
	text-decoration: line-through;
}

.growshophr-selected-price ins {
	text-decoration: none;
	color: #28752e;
}

/* === Hide the WooCommerce default price range (above the form) === */
.product-type-variable .summary > .price {
	display: none !important;
}

/* === Hide the WooCommerce variation price box === */
.single_variation_wrap .woocommerce-variation {
	display: none !important;
}

/* DO NOT hide .woocommerce-variation-add-to-cart — it contains the
   quantity stepper, "Dodaj u košaricu" and "Kupi odmah" buttons */

/* === Mobile === */
@media (max-width: 600px) {
	.growshophr-quantity-cards {
		gap: 6px;
	}

	.growshophr-quantity-card {
		padding: 8px 12px;
		min-width: 80px;
	}

	.growshophr-quantity-card__name,
	.growshophr-quantity-card__price {
		font-size: 13px;
	}

	.growshophr-selected-price {
		font-size: 20px;
	}
}
