.vxl-products-grid {
    display: grid;
    gap: 1.25rem
}

.vxl-product-card-modern {
    display: flex;
    position: relative;
    height: 170px;
    max-height: 170px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    overflow: visible;
    cursor: pointer;
    transition: box-shadow .18s, transform .18s
}

.vxl-product-card-modern:hover {
    box-shadow: 0 8px 12px 10px rgb(36 36 36 / 18%), 0 2px 4px rgb(40 40 40 / 12%);
}

.vxl-prod-thumb-block {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    width: 120px;
    flex-shrink: 0;
    padding: 8px;
    background: #6c63ff;
    color: #fff;
    position: relative;
    border-radius: 14px 0 0 14px;
    overflow: hidden
}

.vxl-prod-thumb-block .vxl-thumb-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: .5px;
    overflow: hidden
}

.vxl-prod-thumb-block .vxl-thumb-inner img {
    width: 100%;
    /*height: 100%;*/
    object-fit: cover;
    display: block;
    border-radius: 10px
}

.vxl-prod-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 12px;
    min-width: 0;
    position: relative;
    overflow: visible;
    z-index: 20;
}

.vxl-prod-main h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600
}

.vxl-prod-main h3 + .vxl-prod-tooltips {
    margin-top: 2px;
}

.vxl-prod-tooltips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 6px;
    position: relative;
    z-index: 40;
}

.vxl-prod-tooltips .vxl-pt {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    border: 1px solid rgba(0, 0, 0, 0);
    border-radius: 50%;
    overflow: visible;
    position: relative;
}

.vxl-prod-tooltips .vxl-pt-tip {
    position: absolute;
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translate(-50%, -8px);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    line-height: 1.25;
    padding: 10px 14px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18), 0 2px 4px rgba(0, 0, 0, .12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, transform .18s;
    z-index: 30;
}

.vxl-prod-tooltips .vxl-pt-tip:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 30px;
    height: 14px;
    background: #1f2937;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.vxl-prod-tooltips .vxl-pt:hover .vxl-pt-tip,
.vxl-prod-tooltips .vxl-pt:focus .vxl-pt-tip {
    opacity: 1;
    transform: translate(-50%, -12px);
}

.vxl-prod-tooltips .vxl-pt img { /* fade base */
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: help;
    display: block;
    opacity: .82; /* leicht abgeblendet vor Hover */
    transition: opacity .25s ease, transform .25s ease; /* Fade + Scale */
}

.vxl-prod-tooltips .vxl-pt:hover img,
.vxl-prod-tooltips .vxl-pt:focus img { /* bestehende Skalierung plus Fade auf volle Sichtbarkeit */
    transform: scale(1.2);
    opacity: 1;
}

.vxl-prod-excerpt {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em; /* Fallback for non-webkit */
}

.vxl-prod-prices {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.vxl-price-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
    background: #f1f5f9;
    border: 1px solid #d9e2ec;
    border-radius: 22px;
    color: #2d3748;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s, border-color .15s, box-shadow .15s
}

.vxl-price-btn:hover, .vxl-price-btn:focus {
    background: #e2e8f0;
    border-color: #c3d0dc;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, .25)
}

.vxl-price-btn .dashicons {
    font-size: 14px;
    line-height: 14px;
    width: 14px;
    height: 14px
}

.vxl-price-btn.is-loading {
    opacity: .55;
    pointer-events: none
}

.vxl-no-interval-price {
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Pagination */
.vxl-products-pagination {
    margin: 22px 0 4px;
    text-align: center;
}

.vxl-prod-pages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.vxl-prod-pages .vxl-page-item a,
.vxl-prod-pages .vxl-page-item span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    background: #f1f5f9;
    color: #2d3748;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.vxl-prod-pages .vxl-page-item a:hover {
    background: #e2e8f0;
    border-color: #c3d0dc;
}

.vxl-prod-pages .vxl-page-item.is-current span {
    background: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
    font-weight: 600;
    cursor: default;
}

/* End Pagination */

/* Loading state overlay */
.vxl-products-wrapper {
    position: relative;
}

.vxl-products-wrapper.is-loading:before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000; /* höher als Tooltips (999) */
}

.vxl-products-wrapper.is-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    /* Previously used transform: translate(-50%, -50%) which got overridden by animation frames (transform: rotate). */
    /* Use negative margins to center so rotation animation does not affect positioning. */
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(0, 0, 0, .18);
    border-top-color: #6c63ff;
    border-radius: 50%;
    animation: vxlCartSpin .6s linear infinite;
    z-index: 10001; /* über Overlay */
}

.vxl-products-wrapper.is-loading {
    pointer-events: none; /* Interaktionen blockieren während Laden */
}

/* End loading state */

/* Pagination bullet removal hardening */
.vxl-prod-pages, .vxl-prod-pages li {
    list-style: none !important;
}

.vxl-prod-pages li::marker {
    content: "";
}

.vxl-prod-pages li:before {
    content: none !important;
}

/* End bullet removal */

/* Tooltip visibility fixes */
.vxl-products-wrapper, .vxl-products-grid {
    overflow: visible;
}

.vxl-product-card-modern {
    position: relative;
}

.vxl-product-card-modern:hover, .vxl-product-card-modern:focus-within {
    z-index: 60;
}

.vxl-prod-tooltips .vxl-pt-tip {
    z-index: 999;
}

/* End tooltip visibility fixes */

/* --- Tooltip adjustments --- */
.vxl-prod-main {
    position: relative;
    overflow: visible;
    z-index: 20;
}

.vxl-prod-tooltips {
    position: relative;
    z-index: 40;
}

.vxl-prod-tooltips .vxl-pt {
    position: relative;
}

.vxl-prod-tooltips .vxl-pt-tip {
    bottom: 100%;
    top: auto;
    left: 50%;
    transform: translate(-50%, -8px);
}

.vxl-prod-tooltips .vxl-pt:hover .vxl-pt-tip,
.vxl-prod-tooltips .vxl-pt:focus .vxl-pt-tip {
    transform: translate(-50%, -12px);
}

/* --- end tooltip adjustments --- */

@media (max-width: 640px) {
    .vxl-product-card-modern {
        flex-direction: row
    }

    .vxl-prod-main {
        padding: 12px 14px
    }
}

/* Load More Button */
.vxl-products-load-more-wrap {
    margin: 32px 0 8px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.vxl-products-load-more {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: linear-gradient(135deg, #6c63ff, #523ead);
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    padding: 14px 34px;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px -4px rgba(82, 62, 173, .45), 0 2px 6px rgba(0, 0, 0, .12);
    transition: box-shadow .25s, transform .18s, background-position .4s;
    background-size: 160% 160%;
}

.vxl-products-load-more:hover:not(.is-loading),
.vxl-products-load-more:focus-visible:not(.is-loading) {
    box-shadow: 0 10px 26px -6px rgba(82, 62, 173, .55), 0 4px 10px rgba(0, 0, 0, .16);
    transform: translateY(-2px);
    outline: none;
}

.vxl-products-load-more:active:not(.is-loading) {
    transform: translateY(0);
    box-shadow: 0 4px 12px -4px rgba(82, 62, 173, .5), 0 2px 6px rgba(0, 0, 0, .18);
}

.vxl-products-load-more:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.vxl-products-load-more.is-loading {
    pointer-events: none;
    opacity: .85;
    color: transparent; /* hide text while showing spinner */
}

.vxl-products-load-more.is-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    /* Previously used transform: translate(-50%, -50%) which got overridden by animation frames (transform: rotate). */
    /* Use negative margins to center so rotation animation does not affect positioning. */
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vxlCartSpin .65s linear infinite;
}

/* Subtle shimmer on gradient */
@keyframes vxlLoadMoreGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.vxl-products-load-more {
    animation: vxlLoadMoreGradient 8s ease infinite;
}

/* Provide keyframes fallback if not already defined elsewhere */
@keyframes vxlCartSpin {
    to {
        transform: rotate(360deg);
    }
}

/* End Load More Button */

/* Breadcrumb */
.vxl-prod-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 14px;
    color: #475569;
    font-weight: 500;
}

.vxl-prod-breadcrumb .vxl-bc-seg {
    opacity: .75;
    transition: opacity .15s
}

.vxl-prod-breadcrumb .vxl-bc-seg.is-current {
    opacity: 1;
    font-weight: 600;
    color: #1e293b;
}

.vxl-prod-breadcrumb .vxl-bc-seg.is-root {
    cursor: default;
}

.vxl-prod-breadcrumb .vxl-bc-sep {
    opacity: .35;
}

/* Category Switcher */
.vxl-cat-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.vxl-cat-switcher .vxl-cat-filter {
    border: 0;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 24px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    transition: background .18s, box-shadow .18s, color .18s;
}

.vxl-cat-switcher .vxl-cat-filter:hover {
    background: #e2e8f0;
}

.vxl-cat-switcher .vxl-cat-filter.is-active {
    background: #6c63ff;
    color: #fff;
    box-shadow: 0 4px 14px -2px rgba(108, 99, 255, .45);
}

.vxl-cat-switcher .vxl-cat-filter:focus-visible {
    outline: 2px solid #6c63ff;
    outline-offset: 2px;
}

/* Nested Category Switcher Dropdown */
.vxl-cat-switcher .vxl-cat-item {
    position: relative;
}

.vxl-cat-switcher .vxl-cat-children {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    /*background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, .25);*/
    border-radius: 10px;
    min-width: 180px;
    z-index: 40;
}

.vxl-cat-switcher .vxl-cat-item:hover > .vxl-cat-children, [data-focus] > .vxl-cat-children {
    display: flex;
}

.vxl-cat-switcher .vxl-cat-children[hidden] {
    display: none;
}

.vxl-cat-switcher .vxl-cat-children .vxl-cat-item {
    width: 100%;
}

.vxl-cat-switcher .vxl-cat-children .vxl-cat-filter {
    width: 100%;
    text-align: left;
}

.vxl-cat-switcher .vxl-cat-children .vxl-cat-children {
    left: 100%;
    top: 0;
    margin-left: 6px;
}

.vxl-cat-switcher .vxl-cat-item:hover > .vxl-cat-children .vxl-cat-item:hover > .vxl-cat-children {
    display: flex;
}

/* Breadcrumb hover children */
.vxl-prod-breadcrumb .vxl-bc-seg-wrapper {
    position: relative;
}

.vxl-prod-breadcrumb .vxl-bc-children {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, .25);
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
    z-index: 30;
    font-size: 12px;
}

.vxl-prod-breadcrumb .vxl-bc-children[hidden] {
    display: none;
}

.vxl-prod-breadcrumb .vxl-bc-seg-wrapper:hover > .vxl-bc-seg + .vxl-bc-children {
    display: flex;
}

.vxl-prod-breadcrumb .vxl-bc-child {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.vxl-prod-breadcrumb .vxl-bc-child:hover {
    background: #f1f5f9;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .vxl-cat-switcher {
        gap: 6px;
    }

    .vxl-cat-switcher .vxl-cat-filter {
        padding: 7px 14px;
        font-size: 11px;
    }

    .vxl-prod-breadcrumb {
        font-size: 11px;
    }
}

/* Responsive column utilities (base up to 6 columns) */
.vxl-products-grid.vxl-cols-1{grid-template-columns:repeat(1,1fr);} .vxl-products-grid.vxl-cols-2{grid-template-columns:repeat(2,1fr);} .vxl-products-grid.vxl-cols-3{grid-template-columns:repeat(3,1fr);} .vxl-products-grid.vxl-cols-4{grid-template-columns:repeat(4,1fr);} .vxl-products-grid.vxl-cols-5{grid-template-columns:repeat(5,1fr);} .vxl-products-grid.vxl-cols-6{grid-template-columns:repeat(6,1fr);}
@media (min-width:640px){ .vxl-products-grid.vxl-sm-cols-1{grid-template-columns:repeat(1,1fr);} .vxl-products-grid.vxl-sm-cols-2{grid-template-columns:repeat(2,1fr);} .vxl-products-grid.vxl-sm-cols-3{grid-template-columns:repeat(3,1fr);} .vxl-products-grid.vxl-sm-cols-4{grid-template-columns:repeat(4,1fr);} .vxl-products-grid.vxl-sm-cols-5{grid-template-columns:repeat(5,1fr);} .vxl-products-grid.vxl-sm-cols-6{grid-template-columns:repeat(6,1fr);} }
@media (min-width:768px){ .vxl-products-grid.vxl-md-cols-1{grid-template-columns:repeat(1,1fr);} .vxl-products-grid.vxl-md-cols-2{grid-template-columns:repeat(2,1fr);} .vxl-products-grid.vxl-md-cols-3{grid-template-columns:repeat(3,1fr);} .vxl-products-grid.vxl-md-cols-4{grid-template-columns:repeat(4,1fr);} .vxl-products-grid.vxl-md-cols-5{grid-template-columns:repeat(5,1fr);} .vxl-products-grid.vxl-md-cols-6{grid-template-columns:repeat(6,1fr);} }
@media (min-width:1024px){ .vxl-products-grid.vxl-lg-cols-1{grid-template-columns:repeat(1,1fr);} .vxl-products-grid.vxl-lg-cols-2{grid-template-columns:repeat(2,1fr);} .vxl-products-grid.vxl-lg-cols-3{grid-template-columns:repeat(3,1fr);} .vxl-products-grid.vxl-lg-cols-4{grid-template-columns:repeat(4,1fr);} .vxl-products-grid.vxl-lg-cols-5{grid-template-columns:repeat(5,1fr);} .vxl-products-grid.vxl-lg-cols-6{grid-template-columns:repeat(6,1fr);} }
@media (min-width:1280px){ .vxl-products-grid.vxl-xl-cols-1{grid-template-columns:repeat(1,1fr);} .vxl-products-grid.vxl-xl-cols-2{grid-template-columns:repeat(2,1fr);} .vxl-products-grid.vxl-xl-cols-3{grid-template-columns:repeat(3,1fr);} .vxl-products-grid.vxl-xl-cols-4{grid-template-columns:repeat(4,1fr);} .vxl-products-grid.vxl-xl-cols-5{grid-template-columns:repeat(5,1fr);} .vxl-products-grid.vxl-xl-cols-6{grid-template-columns:repeat(6,1fr);} }
/* End responsive columns */
