
/* SANIMAX WORKBENCH 1.5 — Carousel products */
.snx-wb15-carousel {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 18px auto 0;
}
.snx-wb15-track.wp-block-columns,
.snx-wb15-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 12px !important;
    margin: 0 !important;
}
.snx-wb15-track::-webkit-scrollbar { display: none; }

.snx-wb15-slide.wp-block-column,
.snx-wb15-slide {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
    display: flex !important;
}
.snx-wb15-slide .snx-v2-card {
    width: 100% !important;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dcebf0;
    border-radius: 18px 18px 26px 18px;
    background: #fff;
}
.snx-wb15-slide .snx-v2-card > figure,
.snx-wb15-slide .snx-v2-card > figure > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
.snx-wb15-slide .snx-v2-card img {
    display: block !important;
    width: 100% !important;
    height: 178px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff;
}
.snx-wb15-slide .snx-v2-card-body {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    padding: 16px 17px 18px !important;
}
.snx-wb15-slide .snx-v2-card-body h3 {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
    line-height: 1.15 !important;
}
.snx-wb15-slide .snx-v2-card-body p {
    margin-top: 0;
}
.snx-wb15-slide .wp-block-buttons {
    margin-top: auto !important;
    padding-top: 9px;
}

.snx-wb15-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid #b9d8e2;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #063a5b;
    box-shadow: 0 8px 24px rgba(6,58,91,.12);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.snx-wb15-arrow:hover { background: #eef9fc; }
.snx-wb15-prev { left: -21px; }
.snx-wb15-next { right: -21px; }

.snx-wb15-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(2,18,28,.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}
.snx-wb15-lightbox.is-open { display: flex; }
.snx-wb15-lightbox img {
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0,0,0,.35);
    background: #fff;
}
.snx-wb15-lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}
body.snx-wb15-lock { overflow: hidden; }

@media (max-width: 1100px) {
    .snx-wb15-carousel { max-width: calc(100% - 46px); }
    .snx-wb15-prev { left: -18px; }
    .snx-wb15-next { right: -18px; }
}
@media (max-width: 820px) {
    .snx-wb15-slide.wp-block-column,
    .snx-wb15-slide { flex-basis: calc((100% - 16px) / 2) !important; }
}
@media (max-width: 600px) {
    .snx-wb15-carousel { max-width: 100%; }
    .snx-wb15-slide.wp-block-column,
    .snx-wb15-slide { flex-basis: 86% !important; }
    .snx-wb15-arrow {
        width: 38px;
        height: 38px;
        top: 47%;
    }
    .snx-wb15-prev { left: 6px; }
    .snx-wb15-next { right: 6px; }
    .snx-wb15-lightbox { padding: 18px; }
}
