/* =========================================================
   VapeTec 0.21.0 – Kategorie-Schnellreservierung
   Native NOVA-Basket-Form bleibt technisch erhalten;
   sichtbare Bedienung wird auf den Reservierungs-Flow gezogen.
   ========================================================= */
#product-list.layout-gallery .vt-category-quickreserve {
    margin-top: .48rem;
    width: 100%;
    background: transparent;
}

#product-list.layout-gallery .vt-category-quickreserve__row {
    display: grid;
    grid-template-columns: minmax(108px, .9fr) minmax(118px, 1.1fr);
    gap: .42rem;
    align-items: stretch;
}

#product-list.layout-gallery .vt-category-quickreserve__qty {
    min-width: 0;
    height: 34px;
    border: 1px solid rgba(70, 67, 64, .24);
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255,255,255,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

#product-list.layout-gallery .vt-category-quickreserve__step,
#product-list.layout-gallery .vt-category-quickreserve__input {
    height: 32px !important;
    min-height: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--vt-anthracite) !important;
}

#product-list.layout-gallery .vt-category-quickreserve__step {
    width: 32px;
    padding: 0 !important;
    font-size: .72rem;
}

#product-list.layout-gallery .vt-category-quickreserve__step:hover,
#product-list.layout-gallery .vt-category-quickreserve__step:focus {
    background: rgba(184,115,51,.10) !important;
    color: var(--vt-copper-action) !important;
}

#product-list.layout-gallery .vt-category-quickreserve__input {
    min-width: 38px;
    padding: 0 .18rem !important;
    text-align: center;
    font-size: .82rem;
    font-weight: 650;
    -moz-appearance: textfield;
}

#product-list.layout-gallery .vt-category-quickreserve__input::-webkit-inner-spin-button,
#product-list.layout-gallery .vt-category-quickreserve__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#product-list.layout-gallery .vt-category-quickreserve__submit,
#product-list.layout-gallery .vt-category-quickreserve__variant {
    min-height: 34px;
    border-radius: 5px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    padding: .34rem .58rem !important;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.05;
    text-decoration: none !important;
    transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#product-list.layout-gallery .vt-category-quickreserve__submit {
    border: 1px solid rgba(184,115,51,.68) !important;
    background: linear-gradient(180deg,#292929 0%,#1d1d1d 55%,#151515 100%) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -1px 0 rgba(0,0,0,.52),
        0 2px 0 rgba(86,47,25,.72),
        0 3px 6px rgba(23,19,16,.16) !important;
}

/* v0.21.157: Das Klemmbrett am Kategorie-Reservierungsbutton als
   festes SVG darstellen, unabhängig von Font-Awesome-Glyphen. */
#product-list.layout-gallery .vt-category-quickreserve__submit > svg.vt-category-quickreserve__icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
    flex: 0 0 15px;
    display: inline-block;
    color: #d99a67;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

#product-list.layout-gallery .vt-category-quickreserve__submit:hover,
#product-list.layout-gallery .vt-category-quickreserve__submit:focus {
    border-color: var(--vt-copper-hover) !important;
    background: linear-gradient(180deg,#32302f 0%,#24211f 55%,#191716 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -1px 0 rgba(0,0,0,.55),
        0 2px 0 #6e3b20,
        0 5px 9px rgba(23,19,16,.20) !important;
}

#product-list.layout-gallery .vt-category-quickreserve__submit:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 3px rgba(0,0,0,.34),
        0 1px 0 #6e3b20 !important;
}

#product-list.layout-gallery .vt-category-quickreserve__variant {
    width: 100%;
    justify-content: space-between;
    border: 1px solid rgba(120,120,120,.34) !important;
    background: linear-gradient(180deg,#f2f3f3 0%,#d9dcdd 100%) !important;
    color: var(--vt-anthracite) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.76),
        0 2px 0 rgba(92,92,92,.28),
        0 3px 6px rgba(40,37,35,.10) !important;
}

#product-list.layout-gallery .vt-category-quickreserve__variant-icon {
    color: var(--vt-copper-action) !important;
}

#product-list.layout-gallery .vt-category-quickreserve__variant:hover,
#product-list.layout-gallery .vt-category-quickreserve__variant:focus {
    border-color: rgba(184,115,51,.62) !important;
    background: linear-gradient(180deg,#f7f7f7 0%,#e0e1e1 100%) !important;
    color: var(--vt-anthracite) !important;
}

/* Auf Smartphones: echte Touch-Ziele, aber weiterhin kompakt. */
@media (max-width: 767.98px) {
    #product-list.layout-gallery .vt-category-quickreserve__row {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    #product-list.layout-gallery .vt-category-quickreserve__qty,
    #product-list.layout-gallery .vt-category-quickreserve__submit,
    #product-list.layout-gallery .vt-category-quickreserve__variant {
        min-height: 44px;
    }

    #product-list.layout-gallery .vt-category-quickreserve__step,
    #product-list.layout-gallery .vt-category-quickreserve__input {
        height: 42px !important;
        min-height: 42px !important;
    }

    #product-list.layout-gallery .vt-category-quickreserve__step {
        width: 42px;
    }

    #product-list.layout-gallery .vt-category-quickreserve__submit,
    #product-list.layout-gallery .vt-category-quickreserve__variant {
        font-size: .84rem;
    }
}

/* =========================================================
   VapeTec 0.21.1 – VARIANT QUICK RESERVE STABILISIERUNG
   NOVA hebt Galerie-Karten mit Inline-Varianten beim Hover aus
   dem Grid (position:absolute + negative margins). Für den
   Kategorie-Schnellreservierungsflow bleiben Variantenkarten
   stattdessen vollständig im normalen Dokumentfluss.
   ========================================================= */
@media (min-width: 768px) {
    #product-list.layout-gallery .productbox-hover.productbox-show-variations.vt-category-variant-inline.transition,
    #product-list.layout-gallery .productbox-hover.productbox-show-variations.vt-category-variant-inline:hover,
    #product-list.layout-gallery .productbox-hover.productbox-show-variations.vt-category-variant-inline:focus,
    #product-list.layout-gallery .productbox-hover.productbox-show-variations.vt-category-variant-inline.focus,
    #product-list.layout-gallery .productbox-hover.productbox-show-variations.vt-category-variant-inline:focus-within {
        position: relative !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Die native NOVA-Variantenauswahl ist bei unseren Schnellreservierungs-
   Karten ein permanentes Bedienelement und kein Hover-Popup. */
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations > .collapse,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations > .collapsing,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations > .show,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations .productbox-onhover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    transition: none !important;
}

/* Kein zusätzliches Karten-Anheben/Schattieren beim Varianten-Hover. */
#product-list.layout-gallery .vt-category-variant-inline:hover .productbox-inner::before,
#product-list.layout-gallery .vt-category-variant-inline:focus .productbox-inner::before,
#product-list.layout-gallery .vt-category-variant-inline.focus .productbox-inner::before,
#product-list.layout-gallery .vt-category-variant-inline:focus-within .productbox-inner::before {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Inline-Varianten sitzen fest zwischen Bild und Titel. */
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations {
    position: relative !important;
    z-index: 3;
    margin-top: .34rem !important;
}

#product-list.layout-gallery .vt-category-variant-inline .productbox-variations .variations,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations dl,
#product-list.layout-gallery .vt-category-variant-inline .productbox-variations dd {
    margin-bottom: 0 !important;
}

/* =========================================================
   VapeTec 0.21.3 – RESERVIERUNGS-POPUP IM MATERIALSYSTEM
   Das NOVA-Popup nach erfolgreicher Schnellreservierung wird
   gezielt markiert und auf die warme Vape-Tec-Seitenfläche
   gezogen. Andere Modals bleiben unangetastet.
   ========================================================= */
body .modal.vt-reserve-success-modal .modal-content {
    background: var(--vt-page-bg, #d9d5d0) !important;
    color: var(--vt-anthracite, #23262b) !important;
    border: 1px solid rgba(184,115,51,.42) !important;
    border-radius: 12px !important;
    box-shadow:
        0 18px 48px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.35) !important;
}

body .modal.vt-reserve-success-modal .modal-header,
body .modal.vt-reserve-success-modal .modal-body,
body .modal.vt-reserve-success-modal .modal-footer,
body .modal.vt-reserve-success-modal .product-cell {
    background: transparent !important;
    color: var(--vt-anthracite, #23262b) !important;
}

body .modal.vt-reserve-success-modal .success-title,
body .modal.vt-reserve-success-modal h1,
body .modal.vt-reserve-success-modal h2,
body .modal.vt-reserve-success-modal h3,
body .modal.vt-reserve-success-modal h4,
body .modal.vt-reserve-success-modal h5,
body .modal.vt-reserve-success-modal strong {
    color: var(--vt-anthracite, #23262b) !important;
}

body .modal.vt-reserve-success-modal hr {
    border-top-color: rgba(35,38,43,.16) !important;
}

body .modal.vt-reserve-success-modal .modal-header {
    border-bottom-color: rgba(35,38,43,.14) !important;
}

body .modal.vt-reserve-success-modal .modal-footer {
    border-top-color: rgba(35,38,43,.14) !important;
}

body .modal.vt-reserve-success-modal .table,
body .modal.vt-reserve-success-modal .table td,
body .modal.vt-reserve-success-modal .table th {
    background: transparent !important;
}

/* Falls NOVA im Erfolgsdialog eine eigene weiße Inhaltsfläche setzt. */
body .modal.vt-reserve-success-modal .row,
body .modal.vt-reserve-success-modal [class*="col-"] {
    background-color: transparent;
}

@media (max-width: 767.98px) {
    body .modal.vt-reserve-success-modal .modal-content {
        border-radius: 10px !important;
    }
}

/* =========================================================
   VapeTec 0.21.4 – KOMPAKTES RESERVIERUNGS-POPUP
   Eigener pushed_success-Inhalt: nur die gerade reservierte
   Auswahl + aktuelle Reservierungspositionen. Technische
   Produktdetails, Gewichte, Merkmale und X-Selling entfallen.
   ========================================================= */
body .modal.vt-reserve-success-modal .modal-dialog {
    max-width: 760px !important;
}

body .modal.vt-reserve-success-modal .modal-content {
    background: var(--vt-page-bg, #d9d5d0) !important;
    color: var(--vt-anthracite, #23262b) !important;
    border: 1px solid rgba(184,115,51,.52) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow:
        0 18px 48px rgba(0,0,0,.38),
        inset 0 1px 0 rgba(255,255,255,.34) !important;
}

body .modal.vt-reserve-success-modal .modal-body {
    padding: 0 !important;
    overflow-x: hidden !important;
    background: transparent !important;
}

body .modal.vt-reserve-success-modal .vt-reserve-pushed {
    padding: 1rem 1rem .95rem;
    background: transparent !important;
    color: var(--vt-anthracite, #23262b) !important;
}

.vt-reserve-pushed__headline {
    display: flex;
    align-items: center;
    gap: .48rem;
    margin-bottom: .85rem;
    font-size: 1rem;
    font-weight: 750;
    color: var(--vt-anthracite, #23262b);
}

.vt-reserve-pushed__headline .fas {
    color: var(--vt-copper-action, #a65f2c);
}

.vt-reserve-pushed__added {
    display: grid;
    grid-template-columns: minmax(118px, 25%) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .72rem;
    border: 1px solid rgba(35,38,43,.12);
    border-radius: 9px;
    background: rgba(255,255,255,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34);
}

.vt-reserve-pushed__image {
    min-width: 0;
}

.vt-reserve-pushed__image img,
.vt-reserve-pushed__image picture,
.vt-reserve-pushed__image .image {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    border-radius: 7px;
}

.vt-reserve-pushed__added-info {
    min-width: 0;
}

.vt-reserve-pushed__added-label {
    margin-bottom: .2rem;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--vt-copper-action, #a65f2c);
}

.vt-reserve-pushed__added-name {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.3;
    color: var(--vt-anthracite, #23262b);
}

.vt-reserve-pushed__cart {
    margin-top: .9rem;
}

.vt-reserve-pushed__cart-title {
    margin-bottom: .42rem;
    font-size: .84rem;
    font-weight: 750;
    color: var(--vt-anthracite, #23262b);
}

.vt-reserve-pushed__cart-list {
    max-height: 210px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(35,38,43,.12);
    border-bottom: 1px solid rgba(35,38,43,.12);
}

.vt-reserve-pushed__cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    min-height: 34px;
    padding: .38rem .52rem;
    border-bottom: 1px solid rgba(35,38,43,.08);
    font-size: .79rem;
    background: transparent;
}

.vt-reserve-pushed__cart-item:last-child {
    border-bottom: 0;
}

.vt-reserve-pushed__cart-item.is-current {
    background: rgba(184,115,51,.09);
    box-shadow: inset 3px 0 0 var(--vt-copper-action, #a65f2c);
}

.vt-reserve-pushed__cart-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vt-reserve-pushed__cart-qty {
    font-weight: 800;
    color: var(--vt-copper-action, #a65f2c);
}

.vt-reserve-pushed__cart-empty {
    padding: .55rem;
    font-size: .8rem;
    color: rgba(35,38,43,.72);
}

.vt-reserve-pushed__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin-top: .9rem;
}

.vt-reserve-pushed__continue,
.vt-reserve-pushed__goto {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    border-radius: 6px !important;
    font-weight: 750;
    text-decoration: none !important;
}

.vt-reserve-pushed__continue {
    border: 1px solid rgba(92,92,92,.40) !important;
    background: linear-gradient(180deg,#f2f3f3 0%,#d9dcdd 100%) !important;
    color: var(--vt-anthracite, #23262b) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.78),
        0 2px 0 rgba(92,92,92,.28),
        0 3px 6px rgba(40,37,35,.10) !important;
}

.vt-reserve-pushed__goto {
    border: 1px solid rgba(184,115,51,.68) !important;
    background: linear-gradient(180deg,#292929 0%,#1d1d1d 55%,#151515 100%) !important;
    color: #fff !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        inset 0 -1px 0 rgba(0,0,0,.52),
        0 2px 0 rgba(86,47,25,.72),
        0 3px 6px rgba(23,19,16,.16) !important;
}

.vt-reserve-pushed__goto .fas {
    color: var(--vt-copper, #b87333) !important;
}

.vt-reserve-pushed__continue:hover,
.vt-reserve-pushed__continue:focus {
    border-color: rgba(184,115,51,.58) !important;
    color: var(--vt-copper-action, #a65f2c) !important;
}

.vt-reserve-pushed__goto:hover,
.vt-reserve-pushed__goto:focus {
    border-color: var(--vt-copper-hover, #f19a4a) !important;
    background: linear-gradient(180deg,#32302f 0%,#24211f 55%,#191716 100%) !important;
    color: #fff !important;
}

@media (max-width: 575.98px) {
    body .modal.vt-reserve-success-modal .modal-dialog {
        margin: .65rem !important;
    }

    body .modal.vt-reserve-success-modal .vt-reserve-pushed {
        padding: .8rem;
    }

    .vt-reserve-pushed__added {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: .72rem;
        padding: .58rem;
    }

    .vt-reserve-pushed__image img,
    .vt-reserve-pushed__image picture,
    .vt-reserve-pushed__image .image {
        max-width: 82px;
    }

    .vt-reserve-pushed__actions {
        grid-template-columns: 1fr;
    }

    .vt-reserve-pushed__continue,
    .vt-reserve-pushed__goto {
        min-height: 44px;
    }
}

/* =========================================================
   VapeTec 0.21.5 – Reservierungskorb im Popup
   Lange Artikelnamen dürfen umbrechen; Menge, Positionspreis und
   Entfernen bleiben trotzdem sauber ausgerichtet. Beide Footer-Aktionen
   haben bewusst exakt dieselbe Geometrie.
   ========================================================= */
.vt-reserve-pushed__cart-item {
    grid-template-columns: minmax(0, 1fr) 48px minmax(78px, auto) 34px !important;
    gap: .55rem !important;
    align-items: center;
    min-height: 42px;
    padding: .45rem .5rem !important;
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease;
}

.vt-reserve-pushed__cart-item.is-removing {
    opacity: 0;
    transform: translateX(8px);
}

.vt-reserve-pushed__cart-name {
    display: block;
    min-width: 0;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.28;
}

.vt-reserve-pushed__cart-qty,
.vt-reserve-pushed__cart-price {
    white-space: nowrap;
    text-align: right;
}

.vt-reserve-pushed__cart-price {
    font-weight: 750;
    color: var(--vt-anthracite, #23262b);
}

.vt-reserve-pushed__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(35,38,43,.16);
    border-radius: 7px;
    background: linear-gradient(180deg,#f2f3f3 0%,#d9dcdd 100%);
    color: rgba(35,38,43,.72);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 1px 2px rgba(35,38,43,.08);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}

.vt-reserve-pushed__remove:hover,
.vt-reserve-pushed__remove:focus-visible {
    color: var(--vt-copper-action, #a65f2c);
    border-color: rgba(184,115,51,.62);
    transform: translateY(-1px);
    outline: none;
}

.vt-reserve-pushed__remove.is-loading {
    opacity: .48;
    cursor: wait;
}

.vt-reserve-pushed__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .55rem;
    padding: .62rem .5rem .1rem;
    border-top: 1px solid rgba(184,115,51,.58);
    color: var(--vt-anthracite, #23262b);
}

.vt-reserve-pushed__total > span {
    font-size: .8rem;
    font-weight: 700;
}

.vt-reserve-pushed__total-value {
    font-size: .96rem;
    font-weight: 850;
    color: var(--vt-copper-action, #a65f2c);
    white-space: nowrap;
}

.vt-reserve-pushed__added.is-removed {
    opacity: .68;
}

.vt-reserve-pushed__added.is-removed .vt-reserve-pushed__added-label {
    color: rgba(35,38,43,.62);
}

/* Footer-Aktionen bewusst identisch groß – nur die visuelle Priorität
   unterscheidet sich über Material/Farbe. */
.vt-reserve-pushed__continue,
.vt-reserve-pushed__goto {
    width: 100% !important;
    min-height: 42px !important;
    padding: .62rem .8rem !important;
    font-size: .82rem !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;
}

@media (max-width: 575.98px) {
    .vt-reserve-pushed__cart-item {
        grid-template-columns: 48px minmax(0, 1fr) 36px !important;
        grid-template-areas:
            "name name name"
            "qty price remove";
        gap: .32rem .5rem !important;
        padding: .5rem !important;
    }

    .vt-reserve-pushed__cart-name {
        grid-area: name;
        font-size: .78rem;
    }

    .vt-reserve-pushed__cart-qty {
        grid-area: qty;
        text-align: left;
    }

    .vt-reserve-pushed__cart-price {
        grid-area: price;
        text-align: right;
    }

    .vt-reserve-pushed__remove {
        grid-area: remove;
        justify-self: end;
    }

    .vt-reserve-pushed__total {
        padding-left: .25rem;
        padding-right: .25rem;
    }

    .vt-reserve-pushed__actions {
        grid-template-columns: 1fr 1fr !important;
        gap: .45rem !important;
    }

    .vt-reserve-pushed__continue,
    .vt-reserve-pushed__goto {
        min-height: 44px !important;
        padding: .58rem .42rem !important;
        font-size: .75rem !important;
    }
}

/* =========================================================
   VapeTec 0.21.6 – Reservierungsflow ohne sichtbaren Warenkorb
   Die beiden Footer-Aktionen sind geometrisch exakt gleich.
   NOVA-spezifische Warenkorb-/Continue-Klassen werden nicht mehr
   verwendet; dadurch greifen keine alten Margins oder Button-Regeln.
   ========================================================= */
.vt-reserve-pushed__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: stretch !important;
}

.vt-reserve-pushed__actions > .vt-reserve-pushed__continue,
.vt-reserve-pushed__actions > .vt-reserve-pushed__goto {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 .8rem !important;
    box-sizing: border-box !important;
}

@media (max-width: 575.98px) {
    .vt-reserve-pushed__actions > .vt-reserve-pushed__continue,
    .vt-reserve-pushed__actions > .vt-reserve-pushed__goto {
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 .42rem !important;
    }
}

/* =========================================================
   VapeTec 0.21.7 – Einheitliche Titelhöhe im Kategorie-Grid
   Kurze und lange Artikelnamen reservieren denselben Raum (2 Zeilen),
   damit Menge + Reservieren innerhalb einer Produktreihe sauber fluchten.
   ========================================================= */
#product-list.layout-gallery .productbox-title {
    min-height: 2.6em;
}

#product-list.layout-gallery .productbox-title > a.text-clamp-2 {
    line-height: 1.3;
}


/* =========================================================
   VapeTec 0.21.72 – MOBILE CATEGORY RATING SLOT
   ---------------------------------------------------------
   Problem:
   NOVA rendert die Bewertung nur, wenn Sterne vorhanden sind.
   Dadurch wandern Preis, Menge und Reservieren bei bewerteten
   Artikeln eine Zeile nach unten.

   Lösung:
   - jede Galerie-Karte bekommt denselben festen Meta-Slot
   - Bewertung sitzt darin, wenn vorhanden
   - ohne Bewertung bleibt der Slot bewusst leer
   - dieser reservierte Platz bleibt für die nächste größere
     Kategorie-Erweiterung verfügbar
   - NOVAs 4rem Abstand zwischen Produktreihen wird mobil
     auf unser 24px-Raster reduziert
   ========================================================= */

@media (max-width: 767.98px) {
    #product-list.layout-gallery .vt-category-rating-slot {
        display: flex;
        align-items: center;
        min-height: 32px;
        height: 32px;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    #product-list.layout-gallery .vt-category-rating-slot > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* NOVA: 4rem (= ca. 64px) zwischen Produkt-Wrappers.
       Vape-Tec mobil: 24px. */
    #product-list.layout-gallery .product-wrapper:not(:last-child) {
        margin-bottom: 24px !important;
    }
}


/* =========================================================
   VapeTec 0.21.73 – DESKTOP CATEGORY RATING SLOT
   ---------------------------------------------------------
   Gleiche Logik wie mobil:
   - Bewertung bekommt auch auf Desktop einen festen Meta-Slot
   - Preis / Menge / Reservieren fluchten dadurch in jeder Reihe
   - ohne Bewertung bleibt der Slot bewusst frei
   - Reihenabstand wird kompakter

   Desktop bewusst kleiner als Mobile:
   20px Slot statt 32px.
   ========================================================= */

@media (min-width: 768px) {
    #product-list.layout-gallery .vt-category-rating-slot {
        display: flex;
        align-items: center;
        min-height: 20px;
        height: 20px;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    #product-list.layout-gallery .vt-category-rating-slot > * {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #product-list.layout-gallery .product-wrapper:not(:last-child) {
        margin-bottom: 24px !important;
    }
}


/* =========================================================
   VapeTec 0.21.74 – CATEGORY FLAVOUR META
   ---------------------------------------------------------
   Der feste Bewertungs-/Meta-Slot zeigt jetzt zusätzlich das
   Artikelmerkmal "Geschmack", sofern der Artikel dieses Merkmal hat.

   Keine Kategorie-/Hardware-Sonderlogik nötig:
   - Geschmack vorhanden -> anzeigen
   - Geschmack nicht vorhanden -> nichts anzeigen

   Wenn Bewertung + Geschmack vorhanden sind, werden beide kompakt
   innerhalb desselben festen 32px-Slots gestapelt.
   ========================================================= */

#product-list.layout-gallery .vt-category-rating-slot {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: 32px;
    height: 32px;
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#product-list.layout-gallery .vt-category-flavour {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--vt-copper-hover, #914c22);
    font-size: .68rem;
    font-weight: 650;
    line-height: 14px;
}

#product-list.layout-gallery .vt-category-rating {
    width: 100%;
    min-width: 0;
    height: 16px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#product-list.layout-gallery .vt-category-rating > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    #product-list.layout-gallery .vt-category-flavour {
        font-size: .72rem;
        line-height: 15px;
    }

    #product-list.layout-gallery .vt-category-rating {
        height: 16px;
    }
}

@media (min-width: 768px) {
    /* Desktop war bisher 20px. Für Geschmack + Bewertung braucht der
       gemeinsame Meta-Slot 32px, damit nichts nach unten wandert. */
    #product-list.layout-gallery .vt-category-rating-slot {
        min-height: 32px;
        height: 32px;
    }
}


/* =========================================================
   VapeTec 0.21.76 – RESTORE META + REMOVE LOWER GAP
   ---------------------------------------------------------
   Korrektur zu 0.21.75:
   - Geschmack und Bewertung bleiben wie in 0.21.74 UNTEREINANDER.
   - Entfernt wird stattdessen der echte Leerraum UNTER dem Preisblock
     und VOR Menge/Reservieren.
   - Preisblock gezielt klassifiziert, damit andere Preisbereiche
     im Shop unangetastet bleiben.
   ========================================================= */

#product-list.layout-gallery .vt-category-price-block {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

#product-list.layout-gallery .vt-category-price-block .price_wrapper,
#product-list.layout-gallery .vt-category-price-block .price,
#product-list.layout-gallery .vt-category-price-block .price-note,
#product-list.layout-gallery .vt-category-price-block .base-price {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
}

/* Nur unser definierter Rasterabstand zwischen Preis und Bedienung. */
#product-list.layout-gallery .vt-category-quickreserve {
    margin-top: 8px !important;
}


/* =========================================================
   VapeTec 0.21.77 – CATEGORY FLAVOUR MARQUEE REPLAY
   ---------------------------------------------------------
   - Geschmackszeile nicht mehr semibold, sondern normal
   - nur wirklich überlange Geschmacksangaben laufen
   - beim Eintritt in den Viewport einmal bis zum Ende
   - solange sichtbar bleibt der Text am Ende stehen
   - beim Verlassen sofort zurück auf Start
   - beim erneuten Eintritt läuft er wieder von vorn
   ========================================================= */

#product-list.layout-gallery .vt-category-flavour {
    font-weight: 400 !important;
}

#product-list.layout-gallery .vt-category-flavour.vt-flavour-marquee {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
}

#product-list.layout-gallery .vt-category-flavour .vt-flavour-marquee-track {
    display: inline-block;
    min-width: max-content;
    will-change: transform;
    transform: translateX(0);
}

#product-list.layout-gallery .vt-category-flavour.vt-flavour-marquee.is-vt-running
.vt-flavour-marquee-track {
    animation:
        vt-category-flavour-once
        var(--vt-flavour-marquee-duration, 5.5s)
        ease-in-out
        .45s
        1
        forwards;
}

@keyframes vt-category-flavour-once {
    0%, 8% {
        transform: translateX(0);
    }
    92%, 100% {
        transform: translateX(calc(-1 * var(--vt-flavour-marquee-distance, 0px)));
    }
}

@media (prefers-reduced-motion: reduce) {
    #product-list.layout-gallery .vt-category-flavour.vt-flavour-marquee.is-vt-running
    .vt-flavour-marquee-track {
        animation: none !important;
        transform: translateX(0) !important;
    }
}
