:root {
    --basket-primary: #32348f;
    --basket-secondary: #5fa8ab;
    --basket-line: #e2e8f0;
    --basket-soft: #f8fafc;
}

.page-basket {
    background: var(--basket-soft);
}

.page-basket .basket-page {
    position: relative;
    min-height: 680px;
    padding: 22px 0 88px;
    overflow: hidden;
}

.page-basket .basket-page::before {
    position: absolute;
    inset-block-start: -180px;
    inset-inline-end: -140px;
    width: 420px;
    height: 420px;
    content: "";
    border-radius: 50%;
    background: rgba(50, 52, 143, .035);
    pointer-events: none;
}

.page-basket .basket-page__container {
    position: relative;
    z-index: 1;
    width: 1200px;
    max-width: calc(100% - 40px);
}

.page-basket .breadcrumbs {
    padding: 0 6px 16px;
    color: var(--ava-neutral-400);
    font-size: 12px;
}

.page-basket .basket-page__head {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-block-end: 24px;
    padding: 14px 18px;
    border: 1px solid rgba(226, 232, 240, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .74);
}

.page-basket .basket-page__head > div {
    min-width: 0;
}

.page-basket .basket-page__head > div > span {
    display: block;
    color: var(--basket-secondary);
    font-size: 12px;
    line-height: 22px;
    font-weight: 600;
}

.page-basket .basket-page__head h1 {
    margin: 0;
    color: var(--ava-neutral-900);
    font-size: 26px;
    line-height: 40px;
    font-weight: 800;
}

.page-basket .basket-page__head-icon,
.page-basket .basket-empty__icon {
    display: grid;
    place-items: center;
    color: var(--basket-primary);
    background: #fff;
    box-shadow: 0 10px 28px rgba(50, 52, 143, .08);
}

.page-basket .basket-page__head-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--ava-primary-200);
    border-radius: 16px;
}

.page-basket .basket-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-areas: "summary items";
    align-items: start;
    gap: 24px;
}

.page-basket .basket-items-card,
.page-basket .basket-summary,
.page-basket .basket-empty {
    border: 1px solid var(--basket-line);
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 27, 52, .055);
}

.page-basket .basket-items-card {
    grid-area: items;
    overflow: hidden;
    border-radius: 28px;
}

.page-basket .basket-items-card__head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    border-block-end: 1px solid var(--basket-line);
}

.page-basket .basket-items-card__head h2,
.page-basket .basket-summary h2 {
    margin: 0;
    color: var(--ava-neutral-900);
    font-size: 18px;
    line-height: 32px;
    font-weight: 800;
}

.page-basket .basket-items-card__head span {
    color: var(--ava-neutral-500);
    font-size: 11px;
    line-height: 20px;
}

.page-basket .basket-clear-form,
.page-basket .basket-clear-form button {
    margin: 0;
}

.page-basket .basket-clear-form button {
    min-height: 40px;
    padding-inline: 14px;
    border: 0;
    border-radius: 12px;
    color: var(--ava-neutral-500);
    background: var(--basket-soft);
    cursor: pointer;
    font-size: 11px;
}

.page-basket .basket-items-list {
    padding-inline: 20px;
}

.page-basket .basket-item {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 112px;
    grid-template-areas:
        "price details image"
        "actions actions image";
    align-items: center;
    gap: 14px 18px;
    padding: 20px 0;
}

.page-basket .basket-item + .basket-item {
    border-block-start: 1px solid var(--basket-line);
}

.page-basket .basket-item__image {
    grid-area: image;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    align-self: start;
    overflow: hidden;
    border-radius: 22px;
    background: var(--basket-soft);
}

.page-basket .basket-item__image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.page-basket .basket-item__details {
    grid-area: details;
    min-width: 0;
}

.page-basket .basket-item__details h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ava-neutral-900);
    font-size: 16px;
    line-height: 29px;
    font-weight: 750;
}

.page-basket .basket-item__details p {
    margin: 2px 0 4px;
    overflow: hidden;
    color: var(--ava-neutral-500);
    font-size: 11px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-basket .basket-item__price {
    grid-area: price;
    min-width: 132px;
    color: var(--ava-neutral-800);
    text-align: left;
    white-space: nowrap;
}

.page-basket .basket-item__price strong {
    font-size: 16px;
    line-height: 28px;
    font-weight: 800;
}

.page-basket .basket-item__price > span {
    color: var(--basket-primary);
    font-size: 10px;
}

.page-basket .basket-item__price small {
    display: block;
    color: var(--ava-neutral-400);
    font-size: 9px;
    line-height: 18px;
}

.page-basket .basket-item__actions {
    grid-area: actions;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-basket .basket-quantity {
    height: 42px;
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--basket-line);
    border-radius: 13px;
    background: #fff;
    direction: ltr;
}

.page-basket .basket-quantity form {
    margin: 0;
}

.page-basket .basket-quantity button,
.page-basket .basket-quantity input {
    width: 42px;
    height: 40px;
    min-width: 0;
    padding: 0;
    border: 0;
    color: var(--ava-neutral-700);
    background: transparent;
    text-align: center;
    appearance: textfield;
}

.page-basket .basket-quantity button {
    cursor: pointer;
    font-size: 18px;
}

.page-basket .basket-quantity button:disabled {
    color: var(--ava-neutral-300);
    cursor: not-allowed;
}

.page-basket .basket-quantity input {
    border-inline: 1px solid var(--basket-line);
    font-size: 13px;
}

.page-basket .basket-quantity input::-webkit-inner-spin-button,
.page-basket .basket-quantity input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.page-basket .basket-item__remove,
.page-basket .basket-item__remove button {
    margin: 0;
}

.page-basket .basket-item__remove button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-inline: 10px;
    border: 0;
    border-radius: 12px;
    color: var(--ava-neutral-500);
    background: var(--basket-soft);
    cursor: pointer;
    font-size: 10px;
}

.page-basket .basket-item__remove svg {
    width: 17px;
    height: 17px;
}

.page-basket .basket-summary {
    position: sticky;
    inset-block-start: 120px;
    grid-area: summary;
    padding: 22px;
    border-radius: 28px;
}

.page-basket .basket-summary h2 {
    padding-block-end: 14px;
    border-block-end: 1px solid var(--basket-line);
}

.page-basket .basket-summary dl {
    margin: 14px 0;
}

.page-basket .basket-summary dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    color: var(--ava-neutral-500);
    font-size: 12px;
}

.page-basket .basket-summary dt,
.page-basket .basket-summary dd {
    margin: 0;
}

.page-basket .basket-summary__total {
    margin-block-start: 8px;
    padding-block-start: 14px;
    border-block-start: 1px dashed var(--basket-line);
    color: var(--ava-neutral-800) !important;
}

.page-basket .basket-summary__total strong {
    color: var(--ava-neutral-900);
    font-size: 17px;
    font-weight: 850;
}

.page-basket .basket-summary > p {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ava-neutral-500);
    background: var(--basket-soft);
    font-size: 10px;
    line-height: 20px;
}

.page-basket .basket-summary__continue {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
    font-size: 13px;
}

.page-basket .basket-summary__continue svg {
    width: 20px;
    height: 20px;
}

.page-basket .basket-summary__shop {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-start: 8px;
    color: var(--basket-primary);
    font-size: 11px;
    font-weight: 600;
}

.page-basket .basket-empty {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    border-radius: 28px;
    text-align: center;
}

.page-basket .basket-empty__icon {
    width: 76px;
    height: 76px;
    margin-block-end: 18px;
    border-radius: 24px;
    background: var(--basket-soft);
}

.page-basket .basket-empty h2 {
    margin: 0;
    color: var(--ava-neutral-900);
    font-size: 22px;
    line-height: 38px;
    font-weight: 800;
}

.page-basket .basket-empty p {
    margin: 4px 0 20px;
    color: var(--ava-neutral-500);
    font-size: 13px;
}

.page-basket .basket-empty .btn-ava {
    min-height: 52px;
    border-radius: 16px;
}

@media (max-width: 991px) {
    .page-basket .basket-page {
        padding-block-end: 48px;
    }

    .page-basket .basket-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "items" "summary";
    }

    .page-basket .basket-summary {
        position: static;
    }
}

@media (max-width: 767px) {
    .page-basket .basket-page {
        padding-block-start: 14px;
    }

    .page-basket .basket-page__container {
        max-width: calc(100% - 32px);
    }

    .page-basket .breadcrumbs {
        padding: 0 2px 10px;
        font-size: 10px;
    }

    .page-basket .basket-page__head {
        min-height: 72px;
        margin-block-end: 16px;
        padding: 10px 12px;
        border-radius: 20px;
    }

    .page-basket .basket-page__head h1 {
        font-size: 22px;
        line-height: 36px;
    }

    .page-basket .basket-page__head-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 14px;
    }

    .page-basket .basket-layout {
        gap: 16px;
    }

    .page-basket .basket-items-card,
    .page-basket .basket-summary,
    .page-basket .basket-empty {
        border-radius: 22px;
    }

    .page-basket .basket-items-card__head {
        min-height: 68px;
        padding: 12px 14px;
    }

    .page-basket .basket-items-card__head h2,
    .page-basket .basket-summary h2 {
        font-size: 16px;
        line-height: 29px;
    }

    .page-basket .basket-clear-form button {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 10px;
    }

    .page-basket .basket-items-list {
        padding-inline: 14px;
    }

    .page-basket .basket-item {
        grid-template-columns: minmax(0, 1fr) 88px;
        grid-template-areas:
            "details image"
            "price price"
            "actions actions";
        gap: 10px 12px;
        padding: 16px 0;
    }

    .page-basket .basket-item__image {
        width: 88px;
        height: 88px;
        border-radius: 18px;
    }

    .page-basket .basket-item__details h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 14px;
        line-height: 26px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .page-basket .basket-item__details p {
        max-width: 100%;
    }

    .page-basket .basket-item__price {
        min-width: 0;
        padding-block: 4px 8px;
        border-block-end: 1px dashed var(--basket-line);
        text-align: right;
    }

    .page-basket .basket-item__price small {
        display: inline;
        margin-inline-start: 8px;
    }

    .page-basket .basket-item__actions {
        flex-wrap: wrap;
    }

    .page-basket .basket-quantity,
    .page-basket .basket-quantity button,
    .page-basket .basket-quantity input {
        height: 44px;
    }

    .page-basket .basket-quantity button,
    .page-basket .basket-quantity input {
        width: 44px;
    }

    .page-basket .basket-summary {
        padding: 18px;
    }

    .page-basket .basket-empty {
        min-height: 330px;
    }

}

@media (max-width: 359px) {
    .page-basket .basket-page__container {
        max-width: calc(100% - 24px);
    }

    .page-basket .basket-item {
        grid-template-columns: minmax(0, 1fr) 76px;
    }

    .page-basket .basket-item__image {
        width: 76px;
        height: 76px;
    }

    .page-basket .basket-items-card__head {
        gap: 8px;
    }
}
