/* SHOP-1.0.13E FIX1 - native draggable homepage promotions carousel */

#ff-home-promotions-row {
    width: 100%;
    margin-top: 26px;
    padding-top: 0;
}

.ff-home-promotions-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

#ff-home-promotions-row .module-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 10px;
    color: #0f6f82;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

#ff-home-promotions-row .module-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: #0f6f82;
}

.ff-home-promotions-all {
    margin-bottom: 7px;
    color: #5d6870;
    font-size: 12px;
    text-decoration: none;
}

.ff-home-promotions-all:hover {
    color: #0f6f82;
}

.ff-home-promotions-carousel {
    position: relative;
    width: 100%;
    padding-bottom: 24px;
}

.ff-home-promotions-track {
    display: flex;
    gap: 20px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.ff-home-promotions-track::-webkit-scrollbar {
    display: none;
}

.ff-home-promotions-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.ff-home-promo-slide {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.ff-home-promo-card {
    height: 100%;
    text-align: center;
}

.ff-home-promo-image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f5f6f7;
}

.ff-home-promo-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    pointer-events: none;
}

.ff-home-promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 28px;
    padding: 5px 7px;

    box-sizing: border-box;
    background: #e52323;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ff-home-promo-body {
    padding: 8px 4px 2px;
}

.ff-home-promo-name {
    margin: 0 0 4px;
    min-height: 36px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28;
}

.ff-home-promo-name a {
    color: #37454e;
    text-decoration: none;
}

.ff-home-promo-name a:hover {
    color: #0f6f82;
}

.ff-home-promo-price {
    margin-top: 2px;
    line-height: 1.2;
}

.ff-home-promo-price strong {
    color: #0f6f82;
    font-size: 15px;
}

.ff-home-promo-price span {
    margin-left: 6px;
    color: #8a9297;
    font-size: 12px;
    text-decoration: line-through;
}

.ff-home-promo-rule {
    margin-top: 4px;
    color: #7a8389;
    font-size: 10px;
    line-height: 1.35;
}

.ff-home-promotions-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ff-home-promotions-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d7dde0;
    cursor: pointer;
}

.ff-home-promotions-dot.active {
    background: #0f6f82;
}

@media (max-width: 767px) {
    #ff-home-promotions-row {
        margin-top: 22px;
    }

    .ff-home-promotions-heading {
        margin-bottom: 12px;
    }

    .ff-home-promotions-track {
        gap: 14px;
    }

    .ff-home-promo-slide {
        flex-basis: calc((100% - 14px) / 2);
    }

    .ff-home-promo-name {
        min-height: 0;
    }
}

@media (max-width: 479px) {
    .ff-home-promotions-track {
        gap: 12px;
    }

    .ff-home-promo-slide {
        flex-basis: 100%;
    }

    .ff-home-promotions-all {
        display: none;
    }
}
