/*
 * FSPV_PRODUCT_LINES_STOREFRONT_V1
 */

.csh-product-line {
    margin: 18px 0 20px;
    padding: 15px;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    background: #fff;
}

.csh-product-line__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.csh-product-line__title {
    min-width: 0;
}

.csh-product-line__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #858b98;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.csh-product-line__title strong {
    display: block;
    color: #17191f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.csh-product-line__count {
    flex: 0 0 auto;
    color: #858b98;
    font-size: 11px;
    white-space: nowrap;
}

.csh-product-line__grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(100px, 1fr)
        );
    gap: 8px;
}

.csh-product-line__item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    padding: 7px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #17191f;
    text-decoration: none;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.csh-product-line__item:hover {
    border-color: #c8cbd2;
    box-shadow:
        0 5px 18px
        rgba(17, 24, 39, .08);
    transform:
        translateY(-1px);
}

.csh-product-line__item.is-current {
    border-color: #ff5a1f;
    box-shadow:
        0 0 0 2px
        rgba(255, 90, 31, .10);
}

.csh-product-line__image {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 1 / 1;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #f7f7f8;
}

.csh-product-line__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.csh-product-line__placeholder {
    color: #b0b4bd;
    font-size: 10px;
    text-align: center;
}

.csh-product-line__current {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    padding: 4px 6px;
    border-radius: 999px;
    background: #ff5a1f;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.csh-product-line__name {
    display: -webkit-box;
    overflow: hidden;
    min-height: 30px;
    color: #24262b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.csh-product-line__stock {
    display: block;
    color: #858b98;
    font-size: 9px;
    line-height: 1.2;
}

.csh-product-line__stock.is-out {
    color: #b42318;
}

@media (max-width: 640px) {

    .csh-product-line {
        margin-top: 14px;
        padding: 12px;
        border-radius: 14px;
    }

    .csh-product-line__head {
        align-items: flex-start;
    }

    .csh-product-line__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .csh-product-line__item {
        padding: 6px;
    }

    .csh-product-line__name {
        min-height: 28px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {

    .csh-product-line__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/*
 * FSPV_PRODUCT_LINES_STOREFRONT_COMPACT_V1R1
 *
 * Mini product selectors.
 */

.csh-product-line {
    margin:
        14px 0 16px !important;

    padding:
        12px !important;

    border-radius:
        13px !important;
}


.csh-product-line__head {
    align-items:
        center !important;

    margin-bottom:
        9px !important;
}


.csh-product-line__eyebrow {
    margin-bottom:
        2px !important;

    font-size:
        10px !important;
}


.csh-product-line__title strong {
    font-size:
        13px !important;

    line-height:
        1.25 !important;
}


.csh-product-line__count {
    font-size:
        10px !important;
}


/*
 * IMPORTANT:
 * no more flexible catalog-sized cards.
 * Each line member is a small selector.
 */
.csh-product-line__grid {
    display:
        flex !important;

    flex-wrap:
        wrap !important;

    align-items:
        flex-start !important;

    justify-content:
        flex-start !important;

    gap:
        6px !important;
}


.csh-product-line__item {
    flex:
        0 0 76px !important;

    width:
        76px !important;

    min-width:
        76px !important;

    max-width:
        76px !important;

    gap:
        4px !important;

    padding:
        5px !important;

    border-radius:
        9px !important;
}


.csh-product-line__image {
    width:
        64px !important;

    height:
        64px !important;

    aspect-ratio:
        auto !important;

    margin:
        0 auto !important;

    border-radius:
        7px !important;
}


.csh-product-line__image img {
    width:
        100% !important;

    height:
        100% !important;

    object-fit:
        contain !important;
}


.csh-product-line__current {
    top:
        3px !important;

    right:
        3px !important;

    padding:
        3px 4px !important;

    font-size:
        7px !important;
}


.csh-product-line__name {
    display:
        -webkit-box !important;

    min-height:
        24px !important;

    max-height:
        24px !important;

    overflow:
        hidden !important;

    font-size:
        8.5px !important;

    font-weight:
        700 !important;

    line-height:
        12px !important;

    text-align:
        center !important;

    -webkit-box-orient:
        vertical !important;

    -webkit-line-clamp:
        2 !important;
}


.csh-product-line__stock {
    font-size:
        7.5px !important;

    line-height:
        1.1 !important;

    text-align:
        center !important;
}


.csh-product-line__placeholder {
    font-size:
        8px !important;
}


.csh-product-line__item:hover {
    transform:
        translateY(-1px) !important;

    box-shadow:
        0 3px 10px rgba(17,24,39,.07) !important;
}


.csh-product-line__item.is-current {
    box-shadow:
        0 0 0 1px rgba(255,90,31,.11) !important;
}


@media (max-width: 640px) {

    .csh-product-line {
        margin:
            12px 0 14px !important;

        padding:
            10px !important;
    }


    .csh-product-line__grid {
        display:
            flex !important;

        grid-template-columns:
            none !important;

        gap:
            5px !important;
    }


    .csh-product-line__item {
        flex:
            0 0 68px !important;

        width:
            68px !important;

        min-width:
            68px !important;

        max-width:
            68px !important;

        padding:
            4px !important;
    }


    .csh-product-line__image {
        width:
            58px !important;

        height:
            58px !important;
    }


    .csh-product-line__name {
        min-height:
            22px !important;

        max-height:
            22px !important;

        font-size:
            8px !important;

        line-height:
            11px !important;
    }


    .csh-product-line__stock {
        font-size:
            7px !important;
    }
}


@media (max-width: 390px) {

    .csh-product-line__grid {
        display:
            flex !important;

        grid-template-columns:
            none !important;
    }
}

/*
 * FSPV_PRODUCT_LINES_IMAGE_CONTAIN_V1
 * Nu tăia imaginile produselor din linie.
 */

.csh-product-line__image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #ffffff !important;
    padding: 4px !important;
}

.csh-product-line__image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    background: #ffffff !important;
}

.csh-product-line__item:hover .csh-product-line__image img {
    transform: none !important;
}
