:root {
    --fv-store-primary: #ff5a00;
    --fv-store-primary-soft: #fff2ea;
    --fv-store-bg: #f4f5f7;
    --fv-store-text: #222831;
    --fv-store-muted: #8c929b;
    --fv-store-border: #e6e8eb;
}

.fv-vstore-page {
    min-height: 700px;
    padding-bottom: 55px;
    background: var(--fv-store-bg);
    color: var(--fv-store-text);
}

.fv-vstore-state {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fv-store-bg);
    color: #808791;
}

.fv-vstore-state i {
    color: var(--fv-store-primary);
}

.fv-vstore-state.error {
    color: #b42318;
}

/* =========================================================================
   HERO
============================================================================ */

.fv-vstore-hero {
    width: min(1190px, calc(100% - 32px));
    margin: 18px auto 0;
    overflow: hidden;
    border: 1px solid var(--fv-store-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(18, 24, 36, 0.04);
}

.fv-vstore-banner {
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: #222;
}

.fv-vstore-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-vstore-banner-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 90, 0, 0.35), transparent 30%),
        linear-gradient(125deg, #171b22, #303745);
    color: #fff;
}

.fv-vstore-banner-fallback i {
    color: var(--fv-store-primary);
    font-size: 48px;
}

.fv-vstore-banner-fallback strong {
    font-size: 28px;
}

.fv-vstore-profile {
    position: relative;
    min-height: 108px;
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 14px;
    padding: 12px 22px 14px;
}

.fv-vstore-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin-top: -55px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.13);
}

.fv-vstore-logo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fv-vstore-logo-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--fv-store-primary-soft);
    color: var(--fv-store-primary);
    font-size: 35px;
}

.fv-vstore-profile-copy {
    min-width: 0;
}

.fv-vstore-profile-copy > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fv-vstore-profile-copy h1 {
    margin: 0;
    color: #171c23;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 650;
}

.fv-vstore-profile-copy button {
    min-width: 78px;
    min-height: 35px;
    padding: 0 15px;
    border: 1px solid var(--fv-store-primary);
    border-radius: 5px;
    background: var(--fv-store-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.fv-vstore-profile-copy button.following {
    background: #fff;
    color: var(--fv-store-primary);
}

.fv-vstore-profile-copy button:disabled {
    opacity: 0.65;
}

.fv-vstore-profile-copy p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 7px 0 0;
    color: #69717c;
    font-size: 10px;
}

.fv-vstore-profile-copy p strong {
    color: #343a43;
}

.fv-vstore-profile-copy p i {
    width: 1px;
    height: 13px;
    margin: 0 5px;
    background: #d7dade;
}

.fv-vstore-chat {
    width: 44px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: #f1f2f4;
    color: #9ba0a7;
    font-size: 17px;
}

/* =========================================================================
   METRICS
============================================================================ */

.fv-vstore-metrics {
    width: min(1190px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px auto 0;
    overflow: hidden;
    border: 1px solid var(--fv-store-border);
    border-radius: 9px;
    background: #fff;
}

.fv-vstore-metrics > div {
    min-height: 78px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    padding: 11px 15px;
    border-right: 1px solid var(--fv-store-border);
}

.fv-vstore-metrics > div:last-child {
    border-right: 0;
}

.fv-vstore-metrics i {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--fv-store-primary);
    font-size: 20px;
}

.fv-vstore-metrics span {
    color: var(--fv-store-muted);
    font-size: 8px;
}

.fv-vstore-metrics strong {
    margin-top: 3px;
    color: #2d333c;
    font-size: 12px;
}

/* =========================================================================
   SECTIONS
============================================================================ */

.fv-vstore-section {
    width: min(1190px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 17px;
    border: 1px solid var(--fv-store-border);
    border-radius: 9px;
    background: #fff;
}

.fv-vstore-section-head {
    min-height: 39px;
    display: flex;
    align-items: flex-start;
}

.fv-vstore-section-head h2,
.fv-vstore-products-head h2 {
    margin: 0;
    color: #20262e;
    font-size: 18px;
    font-weight: 600;
}

/* =========================================================================
   HIGHLIGHTED
============================================================================ */

.fv-vstore-highlight-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fv-vstore-highlight-item {
    min-width: 0;
}

/* =========================================================================
   ALL PRODUCTS
============================================================================ */

.fv-vstore-products-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f2;
}

.fv-vstore-products-head label {
    width: 330px;
    height: 38px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    padding: 0 7px;
    border: 1px solid #d8dde3;
    border-radius: 5px;
    background: #fff;
}

.fv-vstore-products-head label > i {
    color: #86909c;
    font-size: 12px;
    text-align: center;
}

.fv-vstore-products-head input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #303741;
    font-size: 10px;
}

.fv-vstore-products-head label button {
    width: 29px;
    height: 29px;
    border: 0;
    background: transparent;
    color: #9aa0a8;
}

.fv-vstore-products-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
}

.fv-vstore-refreshing {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8d939c;
    font-size: 9px;
}

.fv-vstore-refreshing i {
    color: var(--fv-store-primary);
}

.fv-vstore-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #989ea7;
}

.fv-vstore-empty i {
    color: var(--fv-store-primary);
    font-size: 30px;
}

.fv-vstore-empty strong {
    color: #3d444e;
    font-size: 13px;
}

.fv-vstore-empty span {
    font-size: 9px;
}

.fv-vstore-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 28px 0 5px;
}

.fv-vstore-load-more-wrap button {
    min-width: 280px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--fv-store-primary);
    border-radius: 4px;
    background: #fff;
    color: var(--fv-store-primary);
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================================
   TABLET
============================================================================ */

@media (max-width: 1050px) and (min-width: 768px) {
    .fv-vstore-highlight-scroll {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fv-vstore-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================================
   MOBILE
============================================================================ */

@media (max-width: 767px) {
    .fv-vstore-page {
        padding-bottom: 80px;
        background: #f3f4f7;
    }

    .fv-vstore-hero {
        width: 100%;
        margin: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .fv-vstore-banner {
        height: 128px;
    }

    .fv-vstore-banner-fallback strong {
        display: none;
    }

    .fv-vstore-banner-fallback i {
        font-size: 34px;
    }

    .fv-vstore-profile {
        min-height: 116px;
        grid-template-columns: 88px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 10px 13px 12px;
    }

    .fv-vstore-logo {
        width: 78px;
        height: 78px;
        margin-top: -52px;
        border-width: 3px;
    }

    .fv-vstore-profile-copy > div {
        gap: 9px;
    }

    .fv-vstore-profile-copy h1 {
        max-width: 155px;
        overflow: hidden;
        font-size: 15px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .fv-vstore-profile-copy button {
        min-width: 74px;
        min-height: 34px;
        padding-inline: 11px;
        border-radius: 4px;
        font-size: 10px;
    }

    .fv-vstore-profile-copy p {
        flex-wrap: wrap;
        gap: 3px;
        font-size: 9px;
    }

    .fv-vstore-profile-copy p i {
        height: 11px;
        margin-inline: 3px;
    }

    .fv-vstore-chat {
        width: 42px;
        height: 34px;
    }

    .fv-vstore-metrics {
        display: none;
    }

    .fv-vstore-section {
        width: 100%;
        margin: 12px 0 0;
        padding: 14px;
        border: 0;
        border-radius: 0;
    }

    .fv-vstore-section-head {
        min-height: 42px;
    }

    .fv-vstore-section-head h2,
    .fv-vstore-products-head h2 {
        font-size: 15px;
    }

    /*
     * Highlighted products become a horizontal swipe carousel.
     */
    .fv-vstore-highlight-scroll {
        display: flex;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 -14px;
        padding: 0 14px 5px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .fv-vstore-highlight-scroll::-webkit-scrollbar {
        display: none;
    }

    .fv-vstore-highlight-item {
        width: 191px;
        min-width: 191px;
        scroll-snap-align: start;
    }

    .fv-vstore-products-head {
        min-height: 61px;
        align-items: center;
        gap: 8px;
        margin-bottom: 11px;
    }

    .fv-vstore-products-head h2 {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .fv-vstore-products-head label {
        width: auto;
        flex: 1 1 auto;
        height: 39px;
        grid-template-columns: 30px minmax(0, 1fr) 27px;
    }

    .fv-vstore-products-head input {
        font-size: 10px;
    }

    .fv-vstore-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fv-vstore-load-more-wrap button {
        min-width: min(280px, 100%);
    }
}

@media (max-width: 360px) {
    .fv-vstore-profile {
        grid-template-columns: 80px minmax(0, 1fr) 38px;
        padding-inline: 9px;
    }

    .fv-vstore-logo {
        width: 72px;
        height: 72px;
    }

    .fv-vstore-profile-copy h1 {
        max-width: 125px;
        font-size: 14px;
    }

    .fv-vstore-profile-copy button {
        min-width: 65px;
        padding-inline: 8px;
        font-size: 9px;
    }

    .fv-vstore-products-head {
        display: block;
        padding: 8px 0 10px;
    }

    .fv-vstore-products-head label {
        width: 100%;
        margin-top: 9px;
    }
}
