.gray-background{
    background: #F5F6FA;
}

.sale {
    padding: 50px 64px;
    margin: 0 auto;
    gap: 32px;
    background: #F5F6FA;
    height: 100%;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    @media (max-width:1259.9px) {
        padding: 50px 48px;
    }
    @media (max-width:991.9px) {
        flex-direction: column;
    }
    @media (max-width:767.9px) {
        padding: 24px 0;
        gap: 12px;
    }
}
/* GLOBAL*/
.sale button {
    outline: none;
    border: none;
}
.sale h1 {
    font-size: 36px;
    margin: 0;
    @media (max-width:1259.9px) {
        font-size: 28px;
    }
    @media (max-width:576.9px) {
        font-size: 24px;
    }
}
.sale h2 {
    font-size: 32px;
    margin: 0;
    @media (max-width:1259.9px) {
        font-size: 24px;
    }
    @media (max-width:576.9px) {
        font-size: 18px;
    }
}
.sale__title{
    font-size: 24px;
    font-weight: 600;
    @media (max-width:1259.9px) {
        font-size: 18px;
    }
}
.sale__subtitle{
    font-size: 20px;
    font-weight: 600;
    @media (max-width:1259.9px) {
        font-size: 14px;
    }
}
.sale__small-text{
    font-size: 16px;
    @media (max-width:1259.9px) {
        font-size: 12px;
    }
    @media (max-width:576.9px) {
        font-size: 10px;
    }
}
.sale__fw-medium{
    font-weight: 500;
}
.sale__discount{
    text-decoration: line-through;
}
.sale__text--gray{
    color: #8B8DA7;
}
.sale__text--green{
    color: #5BBA2F;
}
.sale__text--purple{
    color: #7373F5;
}
b{
    font-weight: 700;
}
.sale__block {
    background: white;
    border-radius: 32px;
    padding: 16px;
    @media (max-width:1259.9px) {
        padding: 12px;
    }
    @media (max-width:991.9px) {
        border-radius: 16px;
        padding: 8px;
    }
}
.sale__button{
    background: #7373F5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 56px;
    border-radius: 48px;
    color: white;
    cursor: pointer;
    @media (max-width:1259.9px) {
        height: 48px;
    }
}
.sale__button:hover{
    background: #9696FF;
    color: white;
}
.sale__button--disable{
    background: #E0E0E9;
    color: white;
}
.sale__button--disable:hover{
    background: #E0E0E9;
    color: white;
}
.sale__link {
    color: #7373F5;
    text-decoration: none;
    font-weight: 500;
    transition: none;
}
.sale__link svg{
    margin-right: 12px;
}
.sale__link:hover {
    color: #1d1d1f;
}
.sale__link:hover svg path{
    stroke: #1d1d1f;
}

/*BASKET*/
.sale__basket{
    flex: 1;
    max-width: 800px;
    @media (max-width:991.9px) {
        max-width: none;
    }
}
.sale__basket-products {
    gap: 16px;
    @media (max-width:767.9px) {
        gap: 12px;
    }
}
.sale__basket-product {
    width: 100%;
    gap: 16px;
    padding-right: 40px;
    min-height: 160px;
    @media (max-width:1259.9px) {
        padding: 8px 32px 8px 8px;
    }
    @media (max-width:991.9px) {
        min-height: 117px;
    }
    @media (max-width:576.9px) {
        padding: 8px 8px 8px 0;
        gap: 0;
        min-height: 100px;
    }
}
.sale__basket-product-img-con{
    width: 123px;
    height: 128px;
    min-width: 123px;
    @media (max-width:991.9px) {
        width: 84px;
        min-width: 84px;
        height: 84px;
    }
}
.sale__basket-product img{
    height: 100%;
}
.sale__basket-product-info{
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    justify-content: space-between;
    @media (max-width:991.9px) {
        padding: 6px 0;
    }
    @media (max-width:767.9px) {
        padding: 5px 0;
    }
}
.sale__basket-product-text{
    gap: 6px;
    margin-bottom: 22px;
    @media (max-width:1259.9px) {
        margin-bottom: 48px;
    }
    @media (max-width:991.9px) {
        margin-bottom: 24px;
    }
    @media (max-width:767.9px) {
        margin-bottom: 5px;
    }
    @media (max-width:576.9px) {
        margin-bottom: 0;
    }
}
.sale__basket-product-color{
    width: 17px;
    height: 17px;
    border-radius: 100%;
    margin-right: 5px;
    background-position: center;
    @media (max-width:767.9px) {
        margin-left: 8px;
    }
    @media (max-width:576.9px) {
        width: 10px;
        height: 10px;
    }
}

.sale__basket-product-discount{
    margin-right: 16px;
    @media (max-width:576.9px) {
        margin-right: 4px;
    }
}
.sale__basket-product-buttons{
    gap: 16px;
    align-items: center;
}
.sale__quantity{
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    @media (max-width:767.9px) {
        gap: 0;
    }
}
.sale__quantity-button{
    width: 24px;
    height: 24px;
    border-radius: 100%;
    background: #F3F3F3;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    @media (max-width:767.9px) {
        width: 20px;
        height: 20px;
    }
}
.sale__quantity-button--unavailable svg path{
    stroke: #CFCFCF;

}
.sale__quantity-input{
    border: none;
    background: none;
    text-align: center;
    width: 35px;
    @media (max-width:767.9px) {
        font-size: 12px;
    }
}
.sale__quantity-input:focus-visible{
    outline: none;
}
.sale__quantity-delete{
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 100%;
    cursor: pointer;
    @media (max-width:767.9px) {
        margin-left: auto;
        width: 10px;
        height: 10px;
        background: white;
        margin-right: 6px;
        padding: 0;
    }
}
.sale__quantity-delete:focus-visible{
    outline: none;
}
.sale__quantity-delete:focus{
    outline: none;
}
.sale__basket-clear {
    gap: 8px;
    border: 0;
    background: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #8B8DA7;
    transition: none;
}
.sale__basket-clear svg{
    margin-bottom: 3px;
}
.sale__basket-clear:hover {
    color: inherit;
}
.sale__basket-clear:hover svg path {
    stroke: #1d1d1f;
}

/*EMPTY BASKET*/
.sale__basket--empty{
    max-width: 1200px;
}
.sale__basket-empty{
    gap: 12px;
    margin-top: 51px;
    @media (max-width:991.9px) {
        margin-top: 0;
    }
}
.sale__basket-empty svg {
    @media (max-width:576.9px) {
        width: 6px;
        height: 10px;
    }
}

.sale__basket-empty h2{
    margin-bottom: 12px;
    @media (max-width:991.9px) {
        margin-bottom: 4px;
    }
}
.sale__basket-empty img{
    width: 315px;
    height: 315px;
    @media (max-width:991.9px) {
        width: 236px;
        height: 236px;
    }
}
.sale__basket-popup{
    width: 400px;
    margin: auto;
    @media (max-width:767.9px) {
        width: 296px;
    }
}
.sale__product-header{
    position: fixed;
    width: 100%;
    left: 0;
    bottom: -80px;
    z-index: 3;
    background: #FFFFFF;
    transition: all 0.3s ease;
    padding: 12px 0;
}
.sale__product-header--active{
    bottom: 0;
}
.sale__product-header-col{
    gap: 10px;
}
.sale__product-header .sale__button{
    width: 168px;
    height: 32px;
    font-size: 12px;
}

/*RESULT*/
.sale__result {
    width: 400px;
    padding:  16px 0 0 0;
    height: min-content;
    margin-top: 60px;
    @media (max-width:1259.9px) {
        width: 300px;
    }
    @media (max-width:991.9px) {
        width: 100%;
    }
    @media (max-width:767.9px) {
        margin-top: 0;
        padding:  12px 0 0 0;
    }
}
.sale__result .sale__button{
    margin: 0 16px 16px 16px;
    @media (max-width:767.9px) {
        margin: 0 12px 12px 12px;
    }
}
.sale__result-info{
    border-top: 2px solid #F5F6FA;
    border-bottom: 2px solid #F5F6FA;
    gap: 32px;
    @media (max-width:1259.9px) {
        gap: 22px;
    }
    @media (max-width:767.9px) {
        gap: 20px;
    }
}
.sale__result-small-text{
    @media (max-width:767.9px) {
        font-size: 12px;
    }
}

/*POPUP*/
.sale__popup-container{
    width: 100vw;
    height: 100vh;
    background: hsla(0, 0%, 42%, 0.3);
    backdrop-filter: blur(1px);
    z-index: 2000;
    display: none;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    font-size: 20px;
    font-weight: 500;
    @media (max-width:991.9px) {
        font-size: 14px;
    }
}
.sale__basket-popup{
    gap: 24px;
    padding-top: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.sale__basket-popup-product{
    gap: 8px;
}
.sale__basket-popup-img-con{
    width: 76px;
    height: 80px;
    min-width: 76px;
    @media (max-width:991.9px) {
        width: 64px;
        min-width: 64px;
        height: 64px;
    }
}
.sale__basket-popup-img-con img{
    height: 100%;
}
