/**
 * Pax Shop – Karton-Regel, Mengen-Stepper, Kategorie-Schnellwahl.
 */

/* Kategorie-Schnellwahl */
.pax-chips { display: flex; gap: 10px; margin: 0 0 28px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pax-chips::-webkit-scrollbar { display: none; }
.pax-chip {
	flex: 0 0 auto; background: var(--pax-bg, #EEF2F8); color: var(--pax-dark, #0B1E45); font-weight: 600;
	padding: 11px 18px; border-radius: 22px; text-decoration: none; font-size: 15px;
}
.pax-chip:hover, .pax-chip.is-active { background: var(--pax-blue, #163E8C); color: #fff; }
.pax-chips a.pax-chip { text-decoration: none; }

/* Mengen-Stepper */
.pax-qty { display: inline-flex; align-items: stretch; border: 1px solid #B9C4D8; border-radius: 30px; background: #fff; height: 56px; overflow: hidden; }
.woocommerce .pax-qty .qty, .pax-qty .qty {
	border: 0; width: 52px; min-height: 0; height: 100%; padding: 0; text-align: center; font-weight: 700; font-size: 17px;
	background: transparent; -moz-appearance: textfield; appearance: textfield; border-radius: 0;
}
.pax-qty .qty::-webkit-outer-spin-button, .pax-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pax-qty__btn { width: 46px; border: 0; background: transparent; color: var(--pax-dark, #0B1E45); font-size: 22px; line-height: 1; cursor: pointer; }
.pax-qty__btn:hover { background: var(--pax-bg, #EEF2F8); }
.woocommerce-cart .pax-qty { height: 46px; }
.woocommerce-cart .pax-qty__btn { width: 38px; }

/* ==========================================================================
   Karton-Regel („Bestellbar in Gruppen"): Flaschen-Badge, Warenkorb-Panel, Hinweis
   Das Badge sitzt unter dem Warenkorb-Button, wenn das Theme es in .pax-cart-wrap ausgibt.
   ========================================================================== */

.pax-cart-wrap { position: relative; display: inline-flex; }
.pax-crate-wrap { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; display: flex; gap: 6px; }
.pax-crate-wrap:empty { display: none; }
.pax-crate {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
	background: #fff; color: var(--pax-dark, #0B1E45); text-decoration: none;
	border: 2px solid var(--pax-open, #D93A3A); border-radius: 10px; padding: 7px 9px 6px;
	box-shadow: 0 8px 22px rgba(11,30,69,.28);
}
.pax-crate::before {
	content: ""; position: absolute; top: -8px; right: 22px;
	border: 7px solid transparent; border-top: 0; border-bottom-color: var(--pax-open, #D93A3A);
}
.pax-crate.is-ok { border-color: var(--pax-ok, #2E9D5B); }
.pax-crate.is-ok::before { border-bottom-color: var(--pax-ok, #2E9D5B); }
.pax-crate:hover { color: var(--pax-dark, #0B1E45); transform: translateY(-1px); }
.pax-crate__rows { display: flex; flex-direction: column; gap: 3px; }
.pax-crate__row { display: flex; gap: 3px; justify-content: center; }
.pax-bottle { display: block; width: 9px; height: 21px; }
.pax-bottle.is-full { fill: var(--pax-ok, #2E9D5B); }
.pax-bottle.is-empty { fill: #FDE7E7; stroke: var(--pax-open, #D93A3A); stroke-width: 1.4; }
.pax-crate__count { font-family: var(--pax-font-body, inherit); font-size: 11px; font-weight: 800; line-height: 1; color: var(--pax-open-dark, #B42318); white-space: nowrap; }
.pax-crate.is-ok .pax-crate__count { color: var(--pax-ok-dark, #1F7A4D); }
.pax-crate.is-ok .pax-crate__count::after { content: " ✓"; }
.pax-crate.is-bump { animation: pax-crate-bump .45s ease; }
@keyframes pax-crate-bump { 0% { transform: scale(1); } 35% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (max-width: 1080px) {
	.pax-crate-wrap { top: calc(100% + 8px); }
	.pax-crate::before { right: 16px; }
}

/* Großes Panel im Warenkorb / an der Kasse */
.pax-crate-panel { display: flex; flex-direction: column; gap: 12px; margin: 0 0 24px; }
.pax-crate-panel:empty { display: none; margin: 0; }
.pax-crate-box {
	display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
	padding: 16px 22px; border-radius: 16px; background: #fff; border: 2px solid var(--pax-open, #D93A3A);
}
.pax-crate-box.is-ok { border-color: var(--pax-ok, #2E9D5B); background: #F0FAF3; }
.pax-crate-box .pax-crate__rows { gap: 6px; }
.pax-crate-box .pax-crate__row { gap: 6px; justify-content: flex-start; }
.pax-crate-box .pax-bottle { width: 16px; height: 38px; }
.pax-crate-box__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 3px; }
.pax-crate-box__text strong { font-size: 18px; color: var(--pax-dark, #0B1E45); }
.pax-crate-box__text span { font-weight: 700; color: var(--pax-open-dark, #B42318); }
.pax-crate-box.is-ok .pax-crate-box__text span { color: var(--pax-ok-dark, #1F7A4D); }
.pax-crate-box__text small { font-size: 13px; color: var(--pax-muted, #4A5878); }

/* Hinweis auf der Produktseite */
.pax-pack-note {
	display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 20px; padding: 12px 14px;
	background: #FFF8E6; border: 1px solid #F2D58A; border-radius: 12px; font-size: 14px; line-height: 1.5; color: #4A3A12;
}
.pax-pack-note svg { flex: 0 0 auto; color: var(--pax-warm, #8A5A00); margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
	.pax-crate.is-bump { animation: none; }
}
/* Voller Karton (Zählung beginnt danach von vorn) */
.pax-carton { display: inline-flex; align-items: center; gap: 3px; line-height: 1; }
.pax-carton__icon { display: block; width: 24px; height: 21px; }
.pax-carton__box { fill: var(--pax-ok, #2E9D5B); }
.pax-carton__lid { fill: var(--pax-ok-dark, #1E7A44); }
.pax-carton__check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pax-carton__times { font-family: var(--pax-font-body, inherit); font-size: 11px; font-weight: 800; color: var(--pax-ok-dark, #1E7A44); }
.pax-crate .pax-carton { padding-bottom: 4px; margin-bottom: 1px; border-bottom: 1px dashed var(--pax-line, #DCE3EF); }
.pax-crate-box__bottles { display: flex; align-items: center; gap: 14px; }
.pax-crate-box .pax-carton__icon { width: 46px; height: 40px; }
.pax-crate-box .pax-carton__times { font-size: 16px; }

/* Schwebendes Badge (Themes ohne eigenen Platz unter dem Warenkorb) */
.pax-crate-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9990; }
.pax-crate-float .pax-crate-wrap { position: static; }
.pax-crate-float .pax-crate::before { display: none; }
.pax-has-mobilebar .pax-crate-float { bottom: 84px; }
.pax-crate-badge-off .pax-crate-wrap { display: none; }

/* Produkt-Hinweis („Nur noch 2 Stück!", „Bio-Qualität") */
.pax-hint {
	display: inline-flex; align-items: center; max-width: calc(100% - 24px);
	font-size: 12px; font-weight: 800; line-height: 1.2; letter-spacing: .02em;
	padding: 6px 10px; border-radius: 12px; box-shadow: 0 4px 12px rgba(11,30,69,.15);
	background: var(--pax-accent, #F2B630); color: var(--pax-dark, #0B1E45);
	font-family: var(--pax-font-kicker, var(--pax-font-body, inherit));
}
.pax-hint--green { background: var(--pax-ok, #2E9D5B); color: #fff; }
.pax-hint--red { background: var(--pax-open, #D93A3A); color: #fff; }
.pax-hint--blue { background: var(--pax-blue, #163E8C); color: #fff; }
.pax-hint--dark { background: var(--pax-dark, #0B1E45); color: #fff; }
li.product { position: relative; }
.pax-hint--loop { position: absolute; z-index: 3; top: 12px; right: 12px; pointer-events: none; }
.pax-hint-wrap { position: relative; }
.pax-hint--single { margin: 0 0 12px; box-shadow: none; font-size: 13px; }
@media (max-width: 700px) {
	.pax-hint--loop { top: 8px; right: 8px; font-size: 10px; padding: 5px 8px; max-width: calc(100% - 16px); }
}
