.product-carousel { position: relative; }

.pc-viewport {
    overflow: hidden;
    padding: 18px 12px 34px;
    margin: -18px -12px -34px;
}

.pc-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform .45s ease;
    will-change: transform;
}

.pc-track .product-item-grid {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.pc-track template { display: none !important; }

.pc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 50px;
    border-radius: 0;
    border: none;
    background: color-mix(in srgb, var(--b2c-primary, #1d4ed8) 65%, transparent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: none;
    cursor: pointer;
    z-index: 5;
    opacity: .7;
    transition: background .2s ease, opacity .2s ease;
}

.pc-btn.prev {
    left: 0;
    clip-path: polygon(0 0, 100% 22%, 100% 78%, 0 100%);
}

.pc-btn.next {
    right: 0;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 78%);
}

.pc-btn:hover {
    background: var(--b2c-primary, #1d4ed8);
    opacity: 1;
}

.pc-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.pc-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--b2c-line, #e6e8ec);
    cursor: pointer;
    transition: all .25s ease;
}

.pc-dot.active {
    width: 20px;
    border-radius: 10px;
    background: var(--b2c-primary, #1d4ed8);
}

@media (max-width: 767px) {

    .pc-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;

        padding-top: 18px;
        padding-bottom: 34px;
        margin-top: -18px;
        margin-bottom: -34px;
    }
    .pc-viewport::-webkit-scrollbar { display: none; }

    .pc-track {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        transition: none;
    }
    .pc-track .product-item-grid {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        padding: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .pc-btn { display: none; }
}
