.sfy-dynamic-product-rail {
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: #fffdf8;
    background: #201d1a;
}

.sfy-filmstrip::before,
.sfy-filmstrip::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 18px;
    content: '';
    background: repeating-linear-gradient(
        90deg,
        #201d1a 0 11px,
        #f7f3e9 11px 24px,
        #201d1a 24px 37px
    );
    z-index: 3;
    pointer-events: none;
}

.sfy-filmstrip::before {
    top: 0;
    border-bottom: 2px solid #b49758;
}

.sfy-filmstrip::after {
    bottom: 0;
    border-top: 2px solid #b49758;
}

.sfy-filmstrip-viewport {
    height: 100%;
    padding: 49px 0 25px;
    overflow: hidden;
    box-sizing: border-box;
}

.sfy-filmstrip .sfy-filmstrip-title {
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 27px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f3d99b;
    background: #201d1a;
    font-family: Georgia, serif;
    font-size: clamp(14px, 1.4vw, 19px);
    line-height: 1;
    text-align: center;
    z-index: 4;
}

.home-opening-rails {
    display: block;
    overflow: visible;
    background: #201d1a;
}

.home-opening-rails .sfy-dynamic-product-rail {
    height: clamp(230px, 30vw, 290px);
    display: grid;
    grid-template-rows: 48px minmax(0, 1fr);
    border-bottom: 1px solid #b49758;
}

.home-opening-rails .sfy-filmstrip::before,
.home-opening-rails .sfy-filmstrip::after {
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #201d1a 0 8px,
        #f7f3e9 8px 17px,
        #201d1a 17px 26px
    );
}

.home-opening-rails .sfy-filmstrip::before {
    top: 48px;
}

.home-opening-rails .sfy-filmstrip .sfy-filmstrip-title {
    position: static;
    width: 100%;
    height: 48px;
    padding: 0 5%;
    justify-content: flex-start;
    color: #f3d99b;
    border: 0;
    font-size: clamp(19px, 2vw, 26px);
    line-height: 1;
    text-align: left;
    box-sizing: border-box;
}

.home-opening-rails .sfy-filmstrip-viewport {
    padding: 13px 0 12px;
}

.home-opening-rails .sfy-filmstrip-sequence {
    padding-right: 14px;
    gap: 14px;
}

.home-opening-rails .sfy-filmstrip-card {
    width: clamp(155px, 15vw, 205px);
    padding: 6px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0;
    border-width: 2px;
}

.home-opening-rails .sfy-filmstrip-card span {
    margin-top: 5px;
    font-size: clamp(10px, .9vw, 13px);
    -webkit-line-clamp: 2;
}

.home-opening-rails .sfy-filmstrip-placeholder .sfy-filmstrip-track {
    width: 100%;
    animation: none;
}

.home-opening-rails .sfy-filmstrip-placeholder .sfy-filmstrip-status {
    width: 100%;
}

@media (max-width: 800px) {
    .home-opening-rails .sfy-dynamic-product-rail {
        height: 230px;
        grid-template-rows: 42px minmax(0, 1fr);
    }

    .home-opening-rails .sfy-filmstrip::before {
        top: 42px;
    }

    .home-opening-rails .sfy-filmstrip .sfy-filmstrip-title {
        height: 42px;
        font-size: 18px;
    }
}

/* Fekvő tableten az Akciók szalag a nyitórész alsó sávja. */
@media (min-width: 901px) and (max-width: 1366px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    .home-opening-rails .sfy-dynamic-product-rail:first-child {
        --tablet-offers-height: clamp(205px, 19vw, 260px);
        height: var(--tablet-offers-height);
        margin-bottom: calc(-1 * var(--tablet-offers-height));
        grid-template-rows: clamp(38px, 3.08vw, 42px) minmax(0, 1fr);
        z-index: 8;
        transform: translateY(calc(-1 * var(--tablet-offers-height)));
    }

    .home-opening-rails .sfy-dynamic-product-rail:first-child::before {
        top: clamp(38px, 3.08vw, 42px);
    }

    .home-opening-rails .sfy-dynamic-product-rail:first-child .sfy-filmstrip-title {
        height: clamp(38px, 3.08vw, 42px);
        padding: 0 4%;
        font-size: clamp(18px, 1.46vw, 20px);
    }

    .home-opening-rails .sfy-dynamic-product-rail:first-child .sfy-filmstrip-viewport {
        padding: 13px 0 12px;
    }

    .home-opening-rails .sfy-dynamic-product-rail:first-child .sfy-filmstrip-card {
        width: clamp(145px, 12.81vw, 175px);
    }
}

.sfy-filmstrip-track {
    display: flex;
    width: max-content;
    height: 100%;
    align-items: stretch;
    animation: sfy-filmstrip-right var(--sfy-filmstrip-duration, 70s) linear infinite;
}

.sfy-filmstrip:hover .sfy-filmstrip-track,
.sfy-filmstrip:focus-within .sfy-filmstrip-track {
    animation-play-state: paused;
}

.sfy-filmstrip-direction-left .sfy-filmstrip-track {
    animation-name: sfy-filmstrip-left;
}

.sfy-filmstrip-sequence {
    display: flex;
    height: 100%;
    padding-right: 14px;
    gap: 14px;
}

.sfy-filmstrip-card {
    display: grid;
    width: clamp(130px, 12vw, 175px);
    height: 100%;
    padding: 6px;
    grid-template-rows: minmax(0, 1fr) auto;
    color: #26352b;
    background: #fffdf8;
    border: 2px solid #b49758;
    text-decoration: none;
    box-sizing: border-box;
}

.sfy-filmstrip-card img,
.sfy-filmstrip-card .sfy-filmstrip-no-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #eee7da;
}

.sfy-filmstrip-no-image {
    display: grid;
    place-items: center;
    color: #667068;
    font-size: 11px;
}

.sfy-filmstrip-card span {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-family: Georgia, serif;
    font-size: clamp(10px, .9vw, 13px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sfy-filmstrip-card:hover,
.sfy-filmstrip-card:focus-visible {
    border-color: #f3d99b;
    outline: 2px solid #fffdf8;
    outline-offset: -4px;
}

.sfy-filmstrip-status {
    display: grid;
    width: 100vw;
    height: 100%;
    place-items: center;
    color: #f3d99b;
    font-size: 13px;
}

@keyframes sfy-filmstrip-right {
    from { transform: translateX(calc(-50% - 7px)); }
    to { transform: translateX(0); }
}

@keyframes sfy-filmstrip-left {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 7px)); }
}

@media (prefers-reduced-motion: reduce) {
    .sfy-filmstrip-viewport { overflow-x: auto; }
    .sfy-filmstrip-track { animation: none; }
    .sfy-filmstrip-sequence:nth-child(2) { display: none; }
}
