/* SLIDE PRODUCTS [START] */
.slide-products {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* LIST */
.products-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 16px;
    gap: 16px;
    padding: 16px;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ITEM */
.products-item {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    -webkit-transition: background-color 0.5s, border-color 0.5s;
    -moz-transition: background-color 0.5s, border-color 0.5s;
    transition: background-color 0.5s, border-color 0.5s;
}

.products-item.active {
    background-color: #F9F1F1;
    border-color: rgba(232, 81, 70, 0.5);
}

/* IMAGE */
.products-item__image {
    background-color: rgba(0, 0, 0, 0.05);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    width: 100%;
    padding: 50% 0%;
    position: relative;
    border-radius: 8px;
}

/* LABEL */
.products-item__label {
    background-color: var(--color);
    box-shadow: 0px 0px 0px 2px #FFFFFF;
    color: #FFFFFF;
    cursor: default;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    line-height: 26px;
    width: fit-content;
    max-width: 90%;
    height: 26px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 12px;
    overflow: hidden;
    position: absolute;
    top: -21px;
    left: 0;
    right: 0;
    white-space: nowrap;
    border-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
}

.products-item.active .products-item__label {
    box-shadow: 0px 0px 0px 2px #F9F1F1;
}

/* CONTENT */
.products-item__content {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    border-radius: 8px;
}

/* TITLE */
.products-item__title {
    color: var(--color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    height: 40px;
    overflow: hidden;
    -webkit-transition: color 0.5s;
    -moz-transition: color 0.5s;
    transition: color 0.5s;
}

.products-item__title:hover {
    color: var(--color-primary);
}

/* SUBTITLE */
.products-item__subtitle {
    color: rgba(49, 49, 49, 0.7);
    cursor: default;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 20px;
    text-overflow: ellipsis;
    height: 20px;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
}

/* BUTTONS */
.products-item__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* margin-top: 12px; */
}

/* PREVIEW */
.product-preview {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    max-width: 1180px;
    height: 90vh;
    padding: 40px;
    overflow: hidden;
    border-radius: 16px;
}

.product-preview .f-button.is-close-btn {
    color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    opacity: 1;
    position: absolute;
    top: 16px;
    right: 16px;
    -webkit-transition: color 0.5s;
    -moz-transition: color 0.5s;
    transition: color 0.5s;
}

.product-preview .f-button.is-close-btn:hover {
    color: rgba(232, 81, 70, 1);
}

.product-preview .f-button.is-close-btn svg {
    -webkit-transition: none;
    -moz-transition: none;
    transition: none;
}

.product-preview__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-preview__image {
    background-color: rgba(0, 0, 0, 0.05);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    width: 256px;
    min-width: 256px;
    height: 256px;
    position: relative;
    border-radius: 8px;
}

.product-preview__label {
    background-color: var(--color);
    box-shadow: 0px 0px 0px 2px #FFFFFF;
    color: #FFFFFF;
    cursor: default;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-overflow: ellipsis;
    line-height: 26px;
    width: fit-content;
    max-width: 90%;
    height: 26px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 12px;
    overflow: hidden;
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    white-space: nowrap;
    border-radius: 8px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-transition: box-shadow 0.5s;
    -moz-transition: box-shadow 0.5s;
    transition: box-shadow 0.5s;
}

.product-preview__content {
    display: flex;
    flex-direction: column;
}

.product-preview__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 8px;
}

.product-preview__subtitle {
    color: rgba(49, 49, 49, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.product-preview__wrap {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 24px;
    padding-top: 24px;
    overflow: hidden;
}

.product-preview__text {
    height: 100%;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 16px;
}

/* SELECT PRODUCT */
.select-product .select-product__name        { opacity: 1; visibility: visible; }
.select-product.active .select-product__name { opacity: 0; visibility: hidden; }

.select-product .select-product__icon        { opacity: 0; visibility: hidden; }
.select-product.active .select-product__icon { opacity: 1; visibility: visible; }

.select-product__name {
    -webkit-transition: opacity 0.5s, visibility 0.5s;
    -moz-transition: opacity 0.5s, visibility 0.5s;
    transition: opacity 0.5s, visibility 0.5s;
}

.select-product__icon {
    display: block;
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: opacity 0.5s, visibility 0.5s;
    -moz-transition: opacity 0.5s, visibility 0.5s;
    transition: opacity 0.5s, visibility 0.5s;
}

.select-product__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.select-product .check       { opacity: 1; }
.select-product:hover .check { opacity: 0; }

.select-product .cancel       { opacity: 0; }
.select-product:hover .cancel { opacity: 1; }


/* FOOTER */
.products-footer {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.products-footer__image {
    background-color: rgba(49, 49, 49, 0.1);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color: #666666;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 8px;
}

.products-footer__image svg {
    display: block;
    width: 24px;
    height: 24px;
}

.products-footer__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.products-footer__title {
    color: var(--color);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.products-footer__subtitle {
    color: rgba(49, 49, 49, 0.7);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.products-footer__placeholder {
    width: 100%;
    height: 20px;
    border-radius: 6px;
}

.products-footer__placeholder--title {
    background-color: rgba(49, 49, 49, 0.1);
    width: 256px;
}

.products-footer__placeholder--subtitle {
    background-color: rgba(49, 49, 49, 0.05);
    width: 128px;
}

.products-footer__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}
/* SLIDE PRODUCTS [END] */