/* PALIX Produktregeln – Frontend */

.palix-tier-prices {
    margin: 16px 0 12px;
    max-width: 560px;
}

.palix-tier-prices__title {
    margin-bottom: 8px;
    color: #0b1324;
    font-size: 15px;
    font-weight: 700;
}

.palix-tier-prices__table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.palix-tier-prices__row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 9px 12px;
    border-bottom: 1px solid #eceff2;
}

.palix-tier-prices__row:last-child {
    border-bottom: 0;
}

.palix-tier-prices__qty {
    color: #4b5563;
    font-size: 13px;
}

.palix-tier-prices__price {
    color: #0b1324;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.palix-quantity-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 14px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.4;
}

.palix-quantity-rules strong {
    color: #0b1324;
    font-weight: 600;
}

@media (max-width: 600px) {
    .palix-tier-prices__row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .palix-tier-prices__price {
        text-align: left;
    }
}

/* PALIX gültige Mengenauswahl */
.palix-quantity-control {
    display: inline-flex !important;
    align-items: stretch;
    gap: 0 !important;
}

.palix-quantity-control .palix-rule-qty {
    width: 58px !important;
    min-width: 58px !important;
    text-align: center;
    border-radius: 0 !important;
    -moz-appearance: textfield;
}

.palix-quantity-control .palix-rule-qty::-webkit-outer-spin-button,
.palix-quantity-control .palix-rule-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.palix-qty-btn {
    width: 34px;
    min-width: 34px;
    padding: 0 !important;
    border: 1px solid #0b1324;
    background: #fff;
    color: #0b1324;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.palix-qty-minus {
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.palix-qty-plus {
    border-left: 0;
    border-radius: 0 4px 4px 0;
}

.palix-qty-btn:hover {
    background: #f4f6f9;
}


/* =========================================================
   PALIX v1.0.8 – Produktübersicht: Hover-Kaufbereich
========================================================= */

/* Produktkarte hebt sich beim Darüberfahren leicht hervor. */
.woocommerce ul.products li.product,
.wc-block-product {
    position: relative;
    z-index: 1;
    transition:
        transform .20s ease,
        box-shadow .20s ease,
        background-color .20s ease;
    border-radius: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product:hover,
    .wc-block-product:hover {
        z-index: 20;
        transform: translateY(-4px) scale(1.018);
        background: #fff;
        box-shadow: 0 14px 34px rgba(11, 19, 36, .14);
    }
}

/* Der Kaufbereich belegt seinen Platz weiterhin, ist auf Desktop aber
   erst beim Hover/Fokus sichtbar. Dadurch bleiben alle Karten ausgerichtet. */
.palix-loop-purchase {
    margin-top: 10px;
    min-height: 84px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    pointer-events: none;
    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.woocommerce ul.products li.product:hover .palix-loop-purchase,
.wc-block-product:hover .palix-loop-purchase {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.palix-loop-rule-hint {
    margin: 0 0 6px;
    color: #5f6875;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.palix-loop-buy-row {
    display: flex;
    align-items: stretch;
    gap: 7px;
}

.palix-loop-qty-control {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
}

.palix-loop-qty-btn,
.palix-loop-qty-input {
    height: 40px !important;
    box-sizing: border-box !important;
    border: 1px solid #ccd2da !important;
    background: #fff !important;
    color: #0b1324 !important;
}

.palix-loop-qty-btn {
    width: 29px;
    min-width: 29px;
    padding: 0 !important;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.palix-loop-qty-minus {
    border-radius: 6px 0 0 6px !important;
    border-right: 0 !important;
}

.palix-loop-qty-plus {
    border-radius: 0 6px 6px 0 !important;
    border-left: 0 !important;
}

.palix-loop-qty-input {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 4px !important;
    border-radius: 0 !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 600;
    -moz-appearance: textfield;
}

.palix-loop-qty-input::-webkit-outer-spin-button,
.palix-loop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.palix-loop-qty-btn:hover {
    background: #f4f6f9 !important;
}

/* PALIX Dunkelblau für den Warenkorb-Button. */
.palix-loop-add-to-cart {
    display: inline-flex !important;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #0b1324 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    text-align: center;
    white-space: normal;
    transition: background-color .18s ease, transform .18s ease;
}

.palix-loop-add-to-cart:hover,
.palix-loop-add-to-cart:focus {
    background: #16233b !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Touchgeräte haben keinen echten Hover: dort Kaufbereich immer zeigen. */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .palix-loop-purchase {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .woocommerce ul.products li.product,
    .wc-block-product {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 480px) {
    .palix-loop-buy-row {
        flex-wrap: wrap;
    }

    .palix-loop-add-to-cart {
        flex-basis: 100%;
    }
}


/* PALIX v1.0.9 – Auf Desktop darf Klick/Fokus die Karte nicht offen halten.
   Nur echter Maus-Hover zeigt den Kaufbereich. */
@media (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product:not(:hover) .palix-loop-purchase,
    .wc-block-product:not(:hover) .palix-loop-purchase {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(5px) !important;
        pointer-events: none !important;
    }

    .woocommerce ul.products li.product:not(:hover),
    .wc-block-product:not(:hover) {
        transform: none !important;
        box-shadow: none !important;
    }
}


/* PALIX v1.0.10 – Offerte-Button wie Warenkorb-Hover */
@media (hover:hover) and (pointer:fine) {
    .wc-block-product .palix-offer-button,
    .wc-block-product .palix-offerte-button,
    .wc-block-product .offer-button,
    .wc-block-product a[href*="offerte"],
    .products .product .palix-offer-button,
    .products .product .palix-offerte-button,
    .products .product .offer-button,
    .products .product a[href*="offerte"] {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity .16s ease, visibility .16s ease !important;
    }

    .wc-block-product:hover .palix-offer-button,
    .wc-block-product:hover .palix-offerte-button,
    .wc-block-product:hover .offer-button,
    .wc-block-product:hover a[href*="offerte"],
    .products .product:hover .palix-offer-button,
    .products .product:hover .palix-offerte-button,
    .products .product:hover .offer-button,
    .products .product:hover a[href*="offerte"] {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Offerte anfordern optisch identisch zur PALIX-Warenkorb-Aktion */
.wc-block-product .palix-offer-button,
.wc-block-product .palix-offerte-button,
.wc-block-product .offer-button,
.wc-block-product a[href*="offerte"],
.products .product .palix-offer-button,
.products .product .palix-offerte-button,
.products .product .offer-button,
.products .product a[href*="offerte"] {
    background: #07152d !important;
    border-color: #07152d !important;
    color: #fff !important;
}


/* ==================================================
   PALIX – OFFERTE-BUTTON PRODUKTDETAILSEITE
================================================== */

/* Offerte anfordern auf der einzelnen Produktseite */
.single-product .palix-offer-button,
.single-product .palix-offerte-button,
.single-product .offer-button,
.single-product a[href*="offerte"] {
    background: #0B1F33 !important;
    background-color: #0B1F33 !important;
    border-color: #0B1F33 !important;
    color: #FFFFFF !important;
}

/* Hover / Fokus */
.single-product .palix-offer-button:hover,
.single-product .palix-offer-button:focus,
.single-product .palix-offerte-button:hover,
.single-product .palix-offerte-button:focus,
.single-product .offer-button:hover,
.single-product .offer-button:focus,
.single-product a[href*="offerte"]:hover,
.single-product a[href*="offerte"]:focus {
    background: #132D46 !important;
    background-color: #132D46 !important;
    border-color: #132D46 !important;
    color: #FFFFFF !important;
}

/* ==================================================
   ENDE – OFFERTE-BUTTON PRODUKTDETAILSEITE
================================================== */


/* ==================================================
   PALIX – MINDESTMENGE / BESTELLSCHRITT
   Produktübersicht: untereinander darstellen
================================================== */

.palix-product-rules-summary .palix-min-qty,
.palix-product-rules-summary .palix-order-step,
.palix-product-card-rules .palix-min-qty,
.palix-product-card-rules .palix-order-step {
    display: block;
}

/* ==================================================
   ENDE – MINDESTMENGE / BESTELLSCHRITT
================================================== */


/* ==================================================
   PALIX – MENGENHINWEISE PRODUKTÜBERSICHT
================================================== */

.palix-loop-rule-hint-line {
    display: block;
}

.palix-loop-rule-hint-line + .palix-loop-rule-hint-line {
    margin-top: 2px;
}

/* ==================================================
   ENDE – MENGENHINWEISE PRODUKTÜBERSICHT
================================================== */


/* ==================================================
   PALIX – EINHEITLICHES MENGENFELD
   Alle einfachen Produkte verwenden dieselbe Optik
================================================== */

/* Auch Produkte ohne Mindestmenge/Bestellschritt
   erhalten auf der Produktdetailseite das PALIX − / Menge / + Feld. */
.single-product .quantity.palix-quantity-control {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
}

/* ==================================================
   ENDE – EINHEITLICHES MENGENFELD
================================================== */


/* ==================================================
   PALIX – MENGENFELD PRODUKTDETAILSEITE
   Einheitliches zusammenhängendes − | Menge | + Feld
================================================== */

.single-product form.cart .quantity.palix-quantity-control {
    display: inline-flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    height: 54px !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #0B1F33 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.single-product form.cart .quantity.palix-quantity-control .palix-qty-minus,
.single-product form.cart .quantity.palix-quantity-control .palix-qty-plus {
    width: 42px !important;
    min-width: 42px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    color: #0B1F33 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.single-product form.cart .quantity.palix-quantity-control .palix-qty-minus {
    border-right: 1px solid #D5D9DE !important;
}

.single-product form.cart .quantity.palix-quantity-control .palix-qty-plus {
    border-left: 1px solid #D5D9DE !important;
}

.single-product form.cart .quantity.palix-quantity-control input.qty {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
    color: #0B1F33 !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 52px !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield;
}

.single-product form.cart .quantity.palix-quantity-control input.qty::-webkit-outer-spin-button,
.single-product form.cart .quantity.palix-quantity-control input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product form.cart .quantity.palix-quantity-control .palix-qty-minus:hover,
.single-product form.cart .quantity.palix-quantity-control .palix-qty-plus:hover {
    background: #F3F5F7 !important;
}

/* Warenkorb-Button optisch auf gleiche Höhe bringen */
.single-product form.cart .single_add_to_cart_button {
    min-height: 54px !important;
}

/* ==================================================
   ENDE – MENGENFELD PRODUKTDETAILSEITE
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.16
   Ruhiger B2B-Look nach neuer Kartenstruktur
================================================== */

/* Grundkarte */
.woocommerce ul.products li.product,
.wc-block-product {
    background: #fff;
    border: 1px solid #e2e5e9 !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}

@media (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product:hover,
    .wc-block-product:hover {
        border-color: #cfd4da !important;
        transform: translateY(-3px) scale(1.012) !important;
        box-shadow: 0 12px 28px rgba(11, 31, 51, .10) !important;
    }
}

/* Titel und Zusatzinformationen etwas ruhiger staffeln */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product .wp-block-post-title,
.wc-block-product .wc-block-components-product-name {
    margin-bottom: 3px !important;
}

.woocommerce ul.products li.product .palix-product-title-extra,
.wc-block-product .palix-product-title-extra {
    color: #657080 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
}

/* Kaufzone */
.palix-loop-purchase {
    margin-top: 12px !important;
    min-height: 118px !important;
}

/* Mindestmenge / Bestellschritt als kompakte Infobox */
.palix-loop-rule-hint {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background: #f6f7f8;
    color: #394659 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.palix-loop-rule-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 9px;
}

.palix-loop-rule-item + .palix-loop-rule-item {
    border-left: 1px solid #dde1e6;
}

.palix-loop-rule-icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: #0B1F33;
}

.palix-loop-rule-copy {
    min-width: 0;
}

.palix-loop-rule-copy strong {
    font-weight: 700;
}

/* Mengenfeld und Button auf einer sauberen Linie */
.palix-loop-buy-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch !important;
    gap: 9px !important;
}

.palix-loop-qty-control {
    display: inline-grid !important;
    grid-template-columns: 35px 48px 35px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #cbd2db;
    border-radius: 8px;
    background: #fff;
}

.palix-loop-qty-btn,
.palix-loop-qty-input {
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0B1F33 !important;
    box-shadow: none !important;
}

.palix-loop-qty-btn {
    width: 35px !important;
    min-width: 35px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.palix-loop-qty-minus {
    border-right: 1px solid #e0e4e9 !important;
}

.palix-loop-qty-plus {
    border-left: 1px solid #e0e4e9 !important;
}

.palix-loop-qty-input {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 4px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Warenkorb-Button */
.palix-loop-add-to-cart {
    min-height: 44px !important;
    border-radius: 8px !important;
    background: #0B1F33 !important;
    padding: 8px 13px !important;
    gap: 8px;
    font-size: 13px !important;
}

.palix-loop-add-to-cart-label {
    display: inline-block;
}

.palix-loop-add-to-cart-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

/* Bereits im Warenkorb */
.palix-loop-cart-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #4f5c6d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
}

.palix-loop-cart-status-icon {
    display: inline-flex;
    color: #0B1F33;
}

/* Nur eine vorhandene Mengenregel: Box nutzt volle Breite */
.palix-loop-rule-hint:has(.palix-loop-rule-item:only-child) {
    grid-template-columns: 1fr;
}

/* Touch / kleine Bildschirme */
@media (max-width: 520px) {
    .palix-loop-rule-hint {
        grid-template-columns: 1fr !important;
    }

    .palix-loop-rule-item + .palix-loop-rule-item {
        border-left: 0;
        border-top: 1px solid #dde1e6;
    }

    .palix-loop-buy-row {
        grid-template-columns: 1fr !important;
    }

    .palix-loop-qty-control {
        width: max-content;
    }
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.16
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.17
   Feinschliff: mehr Luft + sauberes Mengenfeld
================================================== */

/* Kaufzone insgesamt etwas entspannter */
.palix-loop-purchase {
    margin-top: 16px !important;
    min-height: 128px !important;
}

/* --------------------------------------------------
   Mindestmenge / Bestellschritt
   Mehr Innenabstand und ruhigere Proportionen
-------------------------------------------------- */

.palix-loop-rule-hint {
    margin: 0 0 14px !important;
    border-radius: 10px !important;
    background: #f7f8fa !important;
}

.palix-loop-rule-item {
    min-height: 58px !important;
    padding: 11px 13px !important;
    gap: 9px !important;
    box-sizing: border-box !important;
}

.palix-loop-rule-icon {
    width: 20px !important;
    height: 20px !important;
    align-items: center !important;
    justify-content: center !important;
}

.palix-loop-rule-icon svg {
    width: 18px !important;
    height: 18px !important;
}

.palix-loop-rule-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    line-height: 1.2 !important;
}

.palix-loop-rule-copy strong {
    display: block !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

/* --------------------------------------------------
   Kaufzeile
-------------------------------------------------- */

.palix-loop-buy-row {
    gap: 10px !important;
    align-items: center !important;
}

/* --------------------------------------------------
   Mengenfeld
   Kompakt, gleich hoch, keine vertikale Verzerrung
-------------------------------------------------- */

.palix-loop-qty-control {
    display: grid !important;
    grid-template-columns: 36px 48px 36px !important;
    width: 120px !important;
    min-width: 120px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border: 1px solid #cbd2db !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.palix-loop-qty-btn,
.palix-loop-qty-input {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.palix-loop-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    background: #fff !important;
}

.palix-loop-qty-input {
    display: block !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 42px !important;
    background: #fff !important;
    color: #0B1F33 !important;
    -moz-appearance: textfield;
}

.palix-loop-qty-input::-webkit-outer-spin-button,
.palix-loop-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.palix-loop-qty-minus {
    border-right: 1px solid #e0e4e9 !important;
}

.palix-loop-qty-plus {
    border-left: 1px solid #e0e4e9 !important;
}

/* --------------------------------------------------
   Warenkorb-Button
-------------------------------------------------- */

.palix-loop-add-to-cart {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
}

.palix-loop-add-to-cart-label {
    line-height: 1.15 !important;
}

/* --------------------------------------------------
   "Bereits im Warenkorb"
-------------------------------------------------- */

.palix-loop-cart-status {
    margin-top: 11px !important;
    padding-left: 2px !important;
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.17
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.18
   Feinschliff Produktübersicht
================================================== */

/* --------------------------------------------------
   Karte:
   im Normalzustand komplett ruhig,
   Rahmen/Schatten erst beim Hover
-------------------------------------------------- */

.woocommerce ul.products li.product,
.wc-block-product {
    border-color: transparent !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
}

@media (hover: hover) and (pointer: fine) {
    .woocommerce ul.products li.product:hover,
    .wc-block-product:hover {
        border-color: #D9DEE5 !important;
        box-shadow: 0 10px 26px rgba(11, 31, 51, 0.09) !important;
        transform: translateY(-2px) scale(1.008) !important;
    }
}

/* --------------------------------------------------
   Kaufzone:
   etwas mehr Luft zwischen Preis und Infobox
-------------------------------------------------- */

.palix-loop-purchase {
    margin-top: 18px !important;
    min-height: 132px !important;
}

/* --------------------------------------------------
   Mindestmenge / Bestellschritt
   Luftiger und ruhiger
-------------------------------------------------- */

.palix-loop-rule-hint {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    min-height: 64px !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    border: 1px solid #E4E8ED !important;
    border-radius: 10px !important;
    background: #F7F8FA !important;
}

.palix-loop-rule-item {
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 12px 10px !important;
    gap: 8px !important;
    align-items: center !important;
}

.palix-loop-rule-item + .palix-loop-rule-item {
    border-left: 1px solid #E0E4E9 !important;
}

.palix-loop-rule-icon {
    width: 19px !important;
    min-width: 19px !important;
    height: 19px !important;
}

.palix-loop-rule-copy {
    min-width: 0 !important;
    display: block !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
    color: #445164 !important;
}

.palix-loop-rule-copy strong {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    color: #334155 !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------
   Kaufzeile:
   Mengenfeld schmaler, Button bekommt mehr Platz
-------------------------------------------------- */

.palix-loop-buy-row {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: center !important;
}

/* --------------------------------------------------
   Mengenfeld
-------------------------------------------------- */

.palix-loop-qty-control {
    grid-template-columns: 34px 44px 34px !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    border-radius: 8px !important;
}

.palix-loop-qty-btn,
.palix-loop-qty-input {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

.palix-loop-qty-btn {
    width: 34px !important;
    min-width: 34px !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.palix-loop-qty-input {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    font-size: 13px !important;
    line-height: 40px !important;
}

/* --------------------------------------------------
   Warenkorb-Button:
   gleiche Höhe, mehr Platz für den Text
-------------------------------------------------- */

.palix-loop-add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    gap: 5px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
}

.palix-loop-add-to-cart-label {
    display: block !important;
    line-height: 1.05 !important;
}

.palix-loop-add-to-cart-icon svg {
    width: 15px !important;
    height: 15px !important;
}

/* --------------------------------------------------
   Bereits im Warenkorb
-------------------------------------------------- */

.palix-loop-cart-status {
    margin-top: 10px !important;
    font-size: 10.5px !important;
}

/* --------------------------------------------------
   Sehr schmale Karten:
   Infobox notfalls untereinander statt gequetscht
-------------------------------------------------- */

@media (max-width: 360px) {
    .palix-loop-rule-hint {
        grid-template-columns: 1fr !important;
    }

    .palix-loop-rule-item + .palix-loop-rule-item {
        border-left: 0 !important;
        border-top: 1px solid #E0E4E9 !important;
    }
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.18
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.19
   Infobox wie gewünschte Referenz: deutlich luftiger
================================================== */

/* --------------------------------------------------
   Abstand Preis -> Infobox
-------------------------------------------------- */

.palix-loop-purchase {
    margin-top: 20px !important;
}

/* --------------------------------------------------
   Mindestmenge / Bestellschritt – grosse ruhige Box
-------------------------------------------------- */

.palix-loop-rule-hint {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    min-height: 78px !important;
    margin: 0 0 15px !important;
    padding: 0 !important;

    border: 1px solid #E3E7EC !important;
    border-radius: 12px !important;
    background: #F7F8FA !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}

.palix-loop-rule-item {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 10px !important;

    min-width: 0 !important;
    min-height: 78px !important;

    padding: 15px 14px !important;
    box-sizing: border-box !important;
}

.palix-loop-rule-item + .palix-loop-rule-item {
    border-left: 1px solid #E0E4E9 !important;
}

.palix-loop-rule-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;

    color: #0B1F33 !important;
}

.palix-loop-rule-icon svg {
    width: 21px !important;
    height: 21px !important;
}

.palix-loop-rule-copy {
    display: block !important;
    min-width: 0 !important;

    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.28 !important;

    color: #596678 !important;
}

.palix-loop-rule-copy strong {
    display: block !important;

    margin: 0 0 4px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;

    color: #334155 !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------
   Kaufzeile etwas vom Infoblock lösen
-------------------------------------------------- */

.palix-loop-buy-row {
    margin-top: 0 !important;
}

/* --------------------------------------------------
   Warenkorbstatus etwas luftiger darunter
-------------------------------------------------- */

.palix-loop-cart-status {
    margin-top: 12px !important;
}

/* --------------------------------------------------
   Bei sehr schmalen Karten weiterhin stabil
-------------------------------------------------- */

@media (max-width: 340px) {
    .palix-loop-rule-item {
        grid-template-columns: 20px minmax(0, 1fr) !important;
        column-gap: 7px !important;
        padding: 13px 9px !important;
    }

    .palix-loop-rule-icon {
        width: 20px !important;
        min-width: 20px !important;
        height: 20px !important;
    }

    .palix-loop-rule-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .palix-loop-rule-copy,
    .palix-loop-rule-copy strong {
        font-size: 10px !important;
    }
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.19
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.20
   Infobox flacher + breiter wirkend
================================================== */

/* --------------------------------------------------
   Infobox kompakter in der Höhe
-------------------------------------------------- */

.palix-loop-rule-hint {
    min-height: 64px !important;
    margin: 0 0 14px !important;
    border-radius: 10px !important;
}

/* --------------------------------------------------
   Inhalte horizontal großzügiger verteilen
-------------------------------------------------- */

.palix-loop-rule-item {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    min-height: 64px !important;
    padding: 10px 16px !important;
    column-gap: 10px !important;
}

/* --------------------------------------------------
   Icons etwas kompakter
-------------------------------------------------- */

.palix-loop-rule-icon {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
}

.palix-loop-rule-icon svg {
    width: 19px !important;
    height: 19px !important;
}

/* --------------------------------------------------
   Text weniger gestaucht
-------------------------------------------------- */

.palix-loop-rule-copy {
    font-size: 10.5px !important;
    line-height: 1.2 !important;
}

.palix-loop-rule-copy strong {
    margin-bottom: 2px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------
   Mehr nutzbare Breite innerhalb beider Spalten
-------------------------------------------------- */

.palix-loop-rule-item--min {
    padding-right: 18px !important;
}

.palix-loop-rule-item--step {
    padding-left: 18px !important;
}

/* --------------------------------------------------
   Trennlinie dezenter
-------------------------------------------------- */

.palix-loop-rule-item + .palix-loop-rule-item {
    border-left-color: #E6E9ED !important;
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.20
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.21
   Infobox: Text links, Icon rechts neben Stückzahl
================================================== */

/* --------------------------------------------------
   Infobox insgesamt
-------------------------------------------------- */

.palix-loop-rule-hint {
    min-height: 60px !important;
    margin-bottom: 14px !important;
}

/* --------------------------------------------------
   Spalteninhalt nicht mehr mit Icon links
-------------------------------------------------- */

.palix-loop-rule-item {
    display: block !important;
    min-height: 60px !important;
    padding: 10px 14px !important;
}

/* --------------------------------------------------
   Textblock klar linksbündig
-------------------------------------------------- */

.palix-loop-rule-copy {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;

    text-align: left !important;

    font-size: 10.5px !important;
    line-height: 1.2 !important;
}

.palix-loop-rule-copy strong {
    display: block !important;
    margin: 0 0 4px !important;

    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;

    white-space: nowrap !important;
}

/* --------------------------------------------------
   Stückzahl + Icon in einer Zeile
-------------------------------------------------- */

.palix-loop-rule-value-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;

    width: 100% !important;
    min-width: 0 !important;
}

.palix-loop-rule-value {
    display: inline-block !important;
    min-width: 0 !important;

    font-size: 10.5px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;

    color: #596678 !important;
    white-space: nowrap !important;
}

/* --------------------------------------------------
   Icon rechts neben Stückzahl
-------------------------------------------------- */

.palix-loop-rule-value-row .palix-loop-rule-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #0B1F33 !important;
    flex: 0 0 auto !important;
}

.palix-loop-rule-value-row .palix-loop-rule-icon svg {
    width: 18px !important;
    height: 18px !important;
}

/* --------------------------------------------------
   Erste Spalte etwas mehr Luft rechts,
   zweite etwas mehr Luft links
-------------------------------------------------- */

.palix-loop-rule-item--min {
    padding-left: 14px !important;
    padding-right: 13px !important;
}

.palix-loop-rule-item--step {
    padding-left: 14px !important;
    padding-right: 13px !important;
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.21
================================================== */


/* ==================================================
   PALIX – PRODUKTKARTE v1.0.22
   Ganze Hover-Karte klickbar
================================================== */

.palix-product-card-clickable {
    cursor: pointer !important;
}

.palix-product-card-clickable a,
.palix-product-card-clickable button {
    cursor: pointer !important;
}

.palix-product-card-clickable input,
.palix-product-card-clickable select,
.palix-product-card-clickable textarea {
    cursor: text;
}

.palix-product-card-clickable:focus {
    outline: none;
}

.palix-product-card-clickable:focus-visible {
    outline: 2px solid rgba(11, 31, 51, .30);
    outline-offset: 3px;
}

/* ==================================================
   ENDE – PRODUKTKARTE v1.0.22
================================================== */


/* =========================================================
   PALIX 1.0.29 – Preisvorteil Mini-Warenkorb / Cart / Checkout
========================================================= */
.palix-vp-original-hidden {
    display: none !important;
}

.palix-vp-block-price-summary {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.palix-vp-block-old {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    text-decoration-thickness: 1px;
}

.palix-vp-block-new {
    color: #0b1324;
    font-size: 14px;
    font-weight: 700;
}

.palix-vp-block-save {
    color: #4b5563;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
}

@media (max-width: 600px) {
    .palix-vp-block-old {
        font-size: 11px;
    }

    .palix-vp-block-new {
        font-size: 13px;
    }

    .palix-vp-block-save {
        font-size: 10px;
    }
}


/* PALIX 1.0.30 – klassischer Warenkorb */
.palix-vp-classic-cart-summary {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.palix-vp-classic-old {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.palix-vp-classic-new {
    color: #0b1324;
    font-size: 14px;
    font-weight: 700;
}

.palix-vp-classic-save {
    color: #4b5563;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
}


/* =========================================================
   PALIX 1.0.39 – Vollpalettenanzeige
========================================================= */
.palix-vp-original-hidden {
    display: none !important;
}

.palix-vp-final-summary {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.palix-vp-final-old {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
}

.palix-vp-final-new {
    color: #0b1324;
    font-size: 14px;
    font-weight: 700;
}

.palix-vp-final-save {
    color: #4b5563;
    font-size: 11px;
    font-style: italic;
    font-weight: 400;
}

/* Nur der eigentliche Hinweis unter dem Produkt wird dezent. */
.palix-vp-note {
    font-size: 0.88em;
    font-style: italic;
    line-height: 1.35;
}

.palix-vp-note strong {
    font-weight: 600;
}


/* PALIX 1.0.40 – dezenter Vollpalettenhinweis */
.palix-vp-note {
    display: block;
    margin-top: 4px;
    font-size: 0.82em;
    font-style: italic;
    line-height: 1.35;
    color: #4b5563;
}

.palix-vp-note strong {
    font-weight: 600;
    color: inherit;
}

.palix-vp-sep {
    padding: 0 2px;
}

.palix-vp-final-summary {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.palix-vp-final-old {
    color: #6b7280;
    font-size: 12px;
}

.palix-vp-final-new {
    color: #0b1324;
    font-size: 14px;
    font-weight: 700;
}

.palix-vp-final-save {
    color: #4b5563;
    font-size: 11px;
    font-style: italic;
}


/* PALIX 1.0.42 – Mini-Warenkorb Vorteilshinweis vollständig */
.palix-vp-mini-note {
    display: block;
    margin: 6px 0 7px;
    color: #4b5563;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.palix-vp-mini-note em { font-style: italic; }
.palix-vp-mini-note strong { color: #0b1324; font-weight: 700; }


/* =========================================================
   PALIX 1.0.43 – Mini-Warenkorb sauber
========================================================= */

.palix-vp-mini-original-hidden {
    display: none !important;
}

.palix-vp-mini-price-summary {
    display: inline-flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.palix-vp-mini-old {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
}

.palix-vp-mini-new {
    color: #0b1324;
    font-size: 14px;
    font-weight: 700;
}

.palix-vp-mini-save {
    color: #4b5563;
    font-size: 11px;
    font-style: italic;
    font-weight: 400;
}

.palix-vp-mini-comparison {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 6px 0 8px !important;
    padding: 0 !important;

    color: #4b5563 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.palix-vp-mini-comparison em {
    font-style: italic !important;
}

.palix-vp-mini-comparison strong {
    color: #0b1324 !important;
    font-weight: 700 !important;
}


/* PALIX 1.0.59 – MWST-Hinweis beim „ab“-Preis in Produktübersichten */
.palix-loop-lowest-price__tax {
    margin-left: 2px;
    color: #6b7280;
    font-size: 0.72em;
    font-weight: 400;
    white-space: nowrap;
}
