/* cms2 product slider */
.cms2-products { padding: clamp(28px, 5vw, 64px) clamp(22px, 4vw, 48px); }
.cms2-products-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cms2-products-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 800;
}
.cms2-products-head-center { justify-content: center; }

.cms2-carousel { position: relative; }
.cms2-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cms2-carousel-track::-webkit-scrollbar { display: none; }

.cms2-product {
    flex: 0 0 calc((100% - 18px * (var(--items, 4) - 1)) / var(--items, 4));
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}
.cms2-product-img {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    background: #f5f5f4;
    border-radius: 10px;
    overflow: hidden;
}
.cms2-product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
a.cms2-product:hover .cms2-product-img img { transform: scale(1.05); }
.cms2-product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #e02b20;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
}
.cms2-product-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px; }
.cms2-product-brand { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #888; }
.cms2-product-name { font-size: 15px; font-weight: 700; }
.cms2-product-price { font-size: 14px; font-weight: 700; }
.cms2-product-price s { color: #c02; font-weight: 400; margin-left: 6px; }

.cms2-carousel-arrows { display: flex; gap: 8px; }
.cms2-carousel-prev, .cms2-carousel-next {
    width: 44px; height: 44px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 22px; line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.cms2-carousel-prev:hover, .cms2-carousel-next:hover { background: #111; color: #fff; border-color: #111; }
.cms2-carousel-arrows-overlay {
    position: absolute;
    top: 34%;
    left: -8px; right: -8px;
    justify-content: space-between;
    pointer-events: none;
}
.cms2-carousel-arrows-overlay button { pointer-events: auto; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* layout B tweaks */
.cms2-products-b .cms2-product-img { background: transparent; }
.cms2-products-b .cms2-product-body { align-items: center; text-align: center; }

@media (max-width: 760px) {
    .cms2-product { flex-basis: calc((100% - 18px * (var(--items-m, 2) - 1)) / var(--items-m, 2)); }
}
