.home-featured-stores {
    margin: 24px 10px 22px;
    min-width: 0;
}

.home-featured-stores-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-featured-stores-header h2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1f2937;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 800;
    line-height: 1.7;
}

.home-featured-stores-title-mark {
    width: 24px;
    height: 30px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
}

.home-featured-stores-title-mark img {
    width: 24px;
    height: 30px;
    display: block;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.home-featured-stores-row {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.home-featured-stores-row::-webkit-scrollbar {
    display: none;
}

.home-featured-stores-track {
    --featured-stores-duration: 80s;
    --featured-stores-gap: 12px;
    --featured-stores-half-gap: 6px;
    display: flex;
    gap: var(--featured-stores-gap);
    width: max-content;
    animation: home-featured-stores-marquee var(--featured-stores-duration) linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.home-featured-stores-row.is-user-scrolling .home-featured-stores-track {
    animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
    .home-featured-stores-row:hover .home-featured-stores-track {
        animation-play-state: paused;
    }
}

@keyframes home-featured-stores-marquee {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(calc(50% + var(--featured-stores-half-gap)), 0, 0);
    }
}

.home-featured-store-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: clamp(142px, 13vw, 172px);
    min-height: 152px;
    flex: 0 0 clamp(142px, 13vw, 172px);
    padding: 12px 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    scroll-snap-align: start;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.2s ease;
    -webkit-user-drag: none;
}

.home-featured-store-card * {
    -webkit-user-drag: none;
}

.home-featured-store-card::after {
    content: none;
}

.home-featured-store-card:hover {
    box-shadow: 0 13px 30px rgba(15, 23, 42, 0.11);
}

.home-featured-store-card:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.35);
    outline-offset: 3px;
}

.home-featured-store-avatar {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #f8fafc;
    color: #dc2626;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.home-featured-store-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-featured-store-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.home-featured-store-name,
.home-featured-store-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-featured-store-name {
    margin-bottom: 5px;
    padding-inline: 4px;
    font-size: 0.83rem;
    font-weight: 800;
}

.home-featured-store-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f7f7f8;
    color: #737373;
    font-size: 0.68rem;
    line-height: 1.5;
}

.home-featured-store-meta svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #262626;
}

.home-featured-store-pattern {
    position: absolute;
    inset: 0;
    color: #eef0f3;
    pointer-events: none;
}

.home-featured-store-pattern svg {
    position: absolute;
    top: 1px;
    width: 43px;
    height: 43px;
}

.home-featured-store-pattern svg:first-child {
    right: -10px;
}

.home-featured-store-pattern svg:last-child {
    left: -10px;
}

.home-featured-stores-loading,
.home-featured-stores-empty {
    width: 100%;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
}

.home-featured-stores-retry {
    margin-inline-start: 8px;
    border: 0;
    background: transparent;
    color: #dc2626;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

body.theme-dark .home-featured-stores-header h2,
body.theme-dark .home-featured-store-card {
    color: #f8fafc;
}

body.theme-dark .home-featured-store-card,
body.theme-dark .home-featured-stores-loading,
body.theme-dark .home-featured-stores-empty {
    border-color: rgba(148, 163, 184, 0.2);
    background: #111827;
}

body.theme-dark .home-featured-store-meta {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.theme-dark .home-featured-store-pattern {
    color: rgba(148, 163, 184, 0.12);
}

@media (max-width: 760px) {
    .home-featured-stores {
        margin: 18px 0 16px;
    }

    .home-featured-stores-header {
        gap: 10px;
        margin-bottom: 11px;
    }

    .home-featured-stores-header h2 {
        font-size: 0.95rem;
    }

    .home-featured-stores-row {
        margin-inline: calc(var(--home-content-padding) * -1);
        padding-inline: var(--home-content-padding);
    }

    .home-featured-stores-track {
        --featured-stores-gap: 10px;
        --featured-stores-half-gap: 5px;
    }

    .home-featured-store-card {
        width: 138px;
        min-height: 146px;
        flex-basis: 138px;
        padding: 11px 9px 9px;
        border-radius: 16px;
    }

    .home-featured-store-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-featured-store-card {
        transition: none;
    }
}
