/* ==========================================================
   Haselnuss Kärnten – Bestellbox (Packungsgröße / Wunschmenge)
   ========================================================== */
.hk-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--c-primary, #7a4e2e); }

/* ---------- Einleitung & Vorteile ---------- */
.hk-list-intro { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.hk-list-intro p { color: var(--c-text-muted, #7a6a5a); font-size: 1.08rem; margin-bottom: 18px; }
.hk-usp {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.hk-usp li {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	background: var(--c-bg-card, #fffdf7); border: 1px solid var(--c-border, rgba(58,45,34,.13));
	border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .9rem; font-weight: 600; color: var(--c-heading, #5c3c24);
}

/* ---------- Bestellbox ---------- */
.hk-buy {
	background: var(--c-bg-alt, #f5ebe0);
	padding: 24px 24px 20px;
	display: flex; flex-direction: column; gap: 14px;
	margin: 0; border: 0; border-radius: 0; box-shadow: none;
}
.hk-buy fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hk-buy legend, .hk-buy__custom > label, .hk-buy__qtylabel {
	font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--c-text-muted, #7a6a5a); margin-bottom: 8px; padding: 0; display: block;
}

.hk-buy__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk-buy__sizes--3 { grid-template-columns: repeat(3, 1fr); }
.hk-buy__sizes--1 { grid-template-columns: 1fr; }
.hk-buy__sizes--3 .hk-size { padding: 9px 10px; }
.hk-buy__sizes--3 .hk-size.is-selected::after { top: 5px; right: 5px; width: 16px; height: 16px; font-size: 10px; }
.hk-buy__sizes legend { grid-column: 1 / -1; }
.hk-size {
	position: relative; cursor: pointer;
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
	background: #fff; border: 1.5px solid transparent; border-radius: 10px;
	padding: 9px 12px; transition: border-color .2s, box-shadow .2s, background .2s;
	box-shadow: 0 1px 3px rgba(58,45,34,.06);
}
.hk-size:hover { border-color: var(--c-accent-hov, #e8c07a); }
.hk-size input { position: absolute; opacity: 0; pointer-events: none; }
.hk-size__label { font-weight: 700; color: var(--c-heading, #5c3c24); font-size: .98rem; line-height: 1.3; }
.hk-size__price { font-size: .82rem; color: var(--c-text-muted, #7a6a5a); line-height: 1.3; }
.hk-size.is-selected { border-color: var(--c-primary, #7a4e2e); background: #fff; box-shadow: 0 0 0 3px rgba(122,78,46,.14); }
.hk-size.is-selected::after {
	content: '✓'; position: absolute; top: 7px; right: 9px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--c-primary, #7a4e2e); color: #fff; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.hk-size input:focus-visible + .hk-size__label { outline: 2px solid var(--c-primary, #7a4e2e); outline-offset: 3px; }
.hk-size--custom { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border-style: dashed; border-color: rgba(122,78,46,.35); }
.hk-size--custom.is-selected { border-style: solid; }
.hk-size--custom .hk-size__price { padding-right: 22px; }
.hk-size.is-disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.hk-buy__custom { background: #fff; border-radius: 10px; padding: 12px 14px; }
.hk-buy__custom[hidden] { display: none; }
.hk-buy__custom small { display: block; margin-top: 6px; color: var(--c-text-muted, #7a6a5a); font-size: .8rem; }

/* Stepper − Wert + */
.hk-stepper {
	display: inline-flex; align-items: stretch;
	background: #fff; border: 1.5px solid var(--c-border, rgba(58,45,34,.13)); border-radius: 10px; overflow: hidden;
}
.hk-stepper input {
	width: 64px; border: 0 !important; margin: 0 !important; padding: 8px 2px !important; text-align: center;
	font-size: 1.05rem !important; font-weight: 700; color: var(--c-heading, #5c3c24); background: transparent !important;
	box-shadow: none !important; -moz-appearance: textfield; display: inline-block;
}
.hk-stepper input::-webkit-outer-spin-button, .hk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-stepper .hk-stepper__btn {
	width: 40px; margin: 0; border-radius: 0; box-shadow: none; border: 0; background: var(--c-bg, #fdf6f0); color: var(--c-primary, #7a4e2e);
	font-size: 1.25rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
	transition: background .2s;
}
.hk-stepper .hk-stepper__btn:hover { background: var(--c-accent, #f4d6a2); }
.hk-stepper__unit { align-self: center; padding-right: 8px; font-weight: 600; color: var(--c-text-muted, #7a6a5a); }
.hk-stepper--kg { width: 100%; }
.hk-stepper--kg input { flex: 1 1 auto; width: auto; min-width: 0; }
.hk-stepper .hk-stepper__btn, .hk-stepper__unit { flex: 0 0 auto; }
.hk-buy__custom .hk-stepper { border-color: var(--c-primary, #7a4e2e); }

.hk-buy__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hk-buy__qtylabel { margin-bottom: 6px; }
.hk-buy__qty .hk-stepper input { width: 46px; }
.hk-buy__total { text-align: right; line-height: 1.2; }
.hk-buy__total span { display: block; font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c-text-muted, #7a6a5a); margin-bottom: 4px; }
.hk-buy__sum { font-family: var(--font-serif, Georgia, serif); font-size: 1.7rem; color: var(--c-heading, #5c3c24); white-space: nowrap; }

.hk-buy .hk-buy__btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	padding: 14px 20px; margin: 0; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
	background: var(--c-primary, #7a4e2e); color: #fff; font-weight: 700; font-size: 1rem;
	box-shadow: 0 3px 10px rgba(122,78,46,.25); transition: background .2s, transform .2s;
}
.hk-buy .hk-buy__btn:hover { background: var(--c-primary-dk, #5c3c24); transform: translateY(-1px); color: #fff; }
.hk-buy .hk-buy__btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.hk-buy .hk-buy__btn.is-loading { opacity: .75; }
.hk-buy .hk-buy__btn.is-outline { background: transparent; color: var(--c-primary, #7a4e2e); border: 2px solid var(--c-primary, #7a4e2e); box-shadow: none; }

.hk-buy__msg { margin: -4px 0 0; min-height: 0; font-size: .92rem; text-align: center; }
.hk-buy__msg:empty { display: none; }
.hk-buy__msg.is-ok { color: #4f7a3a; font-weight: 700; }
.hk-buy__msg a { margin-left: 6px; font-weight: 700; }
.hk-buy__tax { margin: -6px 0 0; text-align: center; }
.hk-buy__tax .hk-tax-note { font-size: .78rem; }
.hk-buy__soldout { margin: 0; font-size: .95rem; }

/* ---------- Einzelprodukt: Wunschmenge & Mengenfeld ---------- */
.hk-kg-field { width: 100%; margin-bottom: 6px; }
.hk-kg-field[hidden] { display: none; }
.hk-kg-field > label { display: block; font-weight: 700; color: var(--c-heading, #5c3c24); font-size: .95rem; margin-bottom: 6px; }
.hk-kg-field .hk-stepper { max-width: 260px; border-color: var(--c-primary, #7a4e2e); }
.hk-kg-hint { margin: 6px 0 0; font-size: .82rem; color: var(--c-text-muted, #7a6a5a); }
.hk-kg-total { margin: 6px 0 0; font-size: .95rem; }
form.cart .quantity.hk-stepper { margin: 0; }
form.cart .quantity.hk-stepper .qty { width: 52px; border: 0; }

/* Icons statt Emojis in den Produkt-Fakten */
.hk-product-facts .hk-ico { display: inline-flex; }

/* Bestellbox auf der Produktseite */
.summary .hk-buy {
	background: var(--c-card, #fff); border: 1px solid var(--c-line, rgba(43,33,26,.1));
	border-radius: 18px; padding: 22px; margin: 22px 0 18px; box-shadow: 0 6px 24px rgba(43,33,26,.06);
}
.summary .hk-size { background: var(--c-bg, #faf6f1); box-shadow: none; border-color: transparent; }
.summary .hk-size.is-selected { background: #fff; border-color: var(--c-primary, #7a4e2e); box-shadow: 0 0 0 3px rgba(122,78,46,.14); }
.summary .hk-size.is-selected::after { background: var(--c-primary, #7a4e2e); }
.summary .hk-size--custom:not(.is-selected) { border-color: rgba(107,66,38,.3); }
.summary .hk-buy__custom .hk-stepper { border-color: var(--c-primary, #7a4e2e); }
.summary .hk-buy__custom { background: var(--c-bg, #faf6f1); }
.summary .hk-buy .hk-buy__btn { border-radius: 10px; padding: 15px 22px; font-size: 1.02rem; background: var(--c-primary, #7a4e2e); box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.summary .hk-buy .hk-buy__btn:hover { background: var(--c-primary-dk, #5c3c24); transform: translateY(-2px); }
.summary .hk-buy .hk-buy__btn .hk-icon { color: currentColor; }
.summary .hk-stepper .hk-stepper__btn { background: var(--c-bg, #faf6f1); }

@media (max-width: 560px) {
	.hk-buy__sizes--3 { grid-template-columns: repeat(3, 1fr); }
	.hk-buy__sizes--3 .hk-size { padding: 8px; }
	.hk-buy__sizes--3 .hk-size__price { font-size: .76rem; }
	.summary .hk-buy { padding: 16px; border-radius: 14px; }
	.hk-buy__sum { font-size: 1.45rem; }
}
.summary .hk-buy .hk-buy__btn.is-outline { background: transparent; color: var(--c-primary, #7a4e2e); border: 2px solid var(--c-primary, #7a4e2e); box-shadow: none; }
.summary .hk-buy .hk-buy__btn.is-outline:hover { background: var(--c-primary, #7a4e2e); color: #fff; }
