.cart-page {
    color: var(--color-text-dark);
    font-family: var(--font-sans), sans-serif;
    padding-bottom: 80px;
}

.cart-page__title {
    color: var(--color-text-night);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    margin: 0 0 40px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 792px) 383px;
    gap: 40px;
    align-items: start;
}

.cart-orders,
.cart-shipment,
.cart-products {
    display: flex;
    flex-direction: column;
}

.cart-orders {
    gap: 40px;
    min-width: 0;
}

.cart-shipment {
    gap: 24px;
}

.cart-notice,
.cart-delivery-progress {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-xl);
    color: var(--color-text-night);
    font-size: 16px;
    line-height: 24px;
}

.cart-notice {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 24px;
}

.cart-notice img,
.cart-shipment__timing img,
.cart-delivery-progress img,
.cart-summary__discount img {
    display: block;
    flex: 0 0 16px;
    height: 16px;
    width: 16px;
}

.cart-shipment__timing {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.cart-producer {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}

.cart-producer__header {
    border-bottom: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 20px auto minmax(180px, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding-bottom: 24px;
}

.cart-producer__header > strong,
.cart-producer__identity strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.cart-producer__identity {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    min-width: 0;
}

.cart-producer__identity > span {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 20px;
}

.cart-producer__identity > div {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.cart-producer__identity strong {
    overflow-wrap: anywhere;
    text-align: right;
}

.cart-producer__avatar {
    background: var(--color-border);
    border-radius: var(--radius-full);
    display: block;
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
    object-fit: cover;
}

.cart-check {
    background: var(--color-green-700);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
}

.cart-check img {
    display: block;
    height: 16px;
    width: 16px;
}

.cart-products {
    gap: 16px;
}

.cart-products__head {
    color: var(--color-text-muted);
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 64px 96px 124px 96px 32px;
    gap: 12px;
    padding-left: 32px;
    font-size: 12px;
    line-height: 20px;
}

.cart-product {
    display: grid;
    grid-template-columns: 20px 64px minmax(84px, 1fr) 64px 96px 124px 96px 32px;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.cart-product__image {
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    height: 64px;
    overflow: hidden;
    width: 64px;
}

.cart-product__image img {
    display: block;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.cart-product__name,
.cart-product__price {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.cart-product__name {
    color: var(--color-text-night);
    overflow-wrap: anywhere;
}

.cart-product__unit,
.cart-product__unit-price {
    color: var(--color-text-night);
    font-size: 14px;
    line-height: 22px;
}

.cart-quantity {
    display: grid;
    grid-template-columns: 42px 40px 42px;
    height: 40px;
}

.cart-quantity__button,
.cart-quantity__value {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 14px/22px var(--font-sans), sans-serif;
    height: 40px;
    margin: 0;
    padding: 0;
}

.cart-quantity__button {
    cursor: pointer;
}

.cart-quantity__button:first-child {
    border-radius: var(--radius-btn-sm) 0 0 var(--radius-btn-sm);    
    border-right-width: 0px;
}

.cart-quantity__button:last-child {
    border-radius: 0 var(--radius-btn-sm) var(--radius-btn-sm) 0;
    border-left-width: 0px;
}

.cart-quantity__value {
    appearance: none;
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
    min-width: 0;
    outline: 0;
    text-align: center;
    width: 100%;
    border-radius: 0 !important;
    height: 40px !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    border-radius: 0 !important;
    height: 40px !important;
}

    .cart-quantity__value:disabled{
        background: white !important;
    }

    .cart-quantity__button:disabled {
        cursor: not-allowed;        
        background: white;
        border-color: var(--color-border);
    }

.cart-quantity__button:disabled > svg {
   opacity: 0.45;
}

.cart-quantity__button img,
.cart-product__remove img {
    display: block;
    height: 16px;
    width: 16px;
}

.cart-product__remove {
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 8px;
    width: 32px;
}

    .cart-product__remove:disabled {
        opacity: 0.5;
        background: transparent !important;
    }


@media (hover: hover) and (pointer: fine) {
    .cart-product__remove:hover,
    .cart-quantity__button:hover:not(:disabled) {
        background: var(--color-bg-subtle);
    }
}

    .cart-delivery-progress {
        display: flex;
        gap: 16px;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
    }

        .cart-delivery-progress > div {
            display: flex;
            gap: 12px;
            align-items: center;
            min-width: 0;
        }

    .cart-delivery-progress__action {
        padding: 6px 16px;
        font-size: 12px;
        font-family: DM Sans;
        font-weight: 500;
        line-height: 20px;
        width: fit-content;
        height: 34px;
    }

    .cart-summary {
        background: var(--color-bg-subtle);
        border-radius: var(--radius-card-lg);
        display: flex;
        flex-direction: column;
        gap: 32px;
        padding: 32px;
        position: sticky;
        top: 24px;
    }

        .cart-summary h2,
        .cart-empty h2 {
            font-family: var(--font-serif);
            font-size: 24px;
            font-weight: 400;
            line-height: 32px;
            margin: 0;
        }

    .cart-summary__lines {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 0;
    }

        .cart-summary__lines > div {
            display: flex;
            gap: 16px;
            justify-content: space-between;
            font-size: 16px;
            line-height: 24px;
        }

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

    .cart-summary dd {
        text-align: right;
    }

    .cart-summary__delivery small {
        display: block;
        font-size: 12px;
        font-weight: 400;
        line-height: 20px;
    }

    .cart-summary__delivery dd {
        color: var(--color-text-muted);
        font-size: 12px;
        line-height: 20px;
        max-width: 112px;
    }

    .cart-summary__lines .cart-summary__total {
        border-top: 1px solid var(--color-border);
        font-weight: 600;
        padding-top: 16px;
    }

    .cart-summary__discount {
        background: transparent;
        border: 0;
        cursor: pointer;
        display: flex;
        gap: 12px;
        align-items: center;
        align-self: flex-start;
        font: 500 16px/24px var(--font-sans), sans-serif;
        margin: 0;
        padding: 0;
    }

    .cart-summary__next {
        height: 48px;
        font: 500 16px/24px var(--font-sans), sans-serif;
        color: white;
    }

    .cart-summary__action {
        min-height: 48px;
    }

    a.cart-summary__next:focus{
        color: white;
    }

    .cart-summary__next[aria-disabled="true"] {
        cursor: not-allowed;
        opacity: 0.6;
    }

    .cart-error {
        color: var(--color-error);
        font-size: 14px;
        line-height: 22px;
        margin: -16px 0 0;
        min-height: 22px;
    }

    .cart-empty {
        background: var(--color-bg-subtle);
        border-radius: var(--radius-card-lg);
        display: grid;
        grid-template-columns: 16px 1fr auto;
        gap: 16px;
        align-items: center;
        padding: 32px;
    }

        .cart-empty p {
            margin: 8px 0 0;
        }

    .cart-empty__action {
        padding: 4px 24px;
        width: auto !important;
    }

    body.more-products-open {
        overflow: hidden;
    }

    .more-products-backdrop {
        background: rgba(33, 36, 29, .4);
        inset: 0;
        position: fixed;
        z-index: 1000;
    }

    .more-products-drawer {
        background: var(--color-white);
        border-left: 1px solid var(--color-border);
        bottom: 0;
        color: var(--color-text-dark);
        display: flex;
        flex-direction: column;
        font-family: var(--font-sans), sans-serif;
        max-width: 100%;
        position: fixed;
        right: 0;
        top: 0;
        width: 480px;
        z-index: 1001;
    }

        .more-products-backdrop[hidden],
        .more-products-drawer[hidden],
        .more-products-drawer [hidden] {
            display: none;
        }

    .more-products-drawer__header,
    .more-products-drawer__footer {
        background: var(--color-bg);
        flex: 0 0 auto;
        padding: 24px;
    }

    .more-products-drawer__header {
        border-bottom: 1px solid var(--color-border);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .more-products-drawer__title-row,
    .more-products-progress__labels,
    .more-products-drawer__footer > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .more-products-drawer__title-row {
        gap: 16px;
    }

        .more-products-drawer__title-row > div {
            min-width: 0;
        }

    .more-products-drawer h2 {
        color: var(--color-green-700);
        font-family: var(--font-serif);
        font-size: 24px;
        font-weight: 400;
        line-height: 32px;
        margin: 0;
        overflow-wrap: anywhere;
    }

    .more-products-drawer__title-row p {
        color: var(--color-text-mid);
        font-size: 14px;
        line-height: 22px;
        margin: 4px 0 0;
    }

    .more-products-drawer__close {
        background: transparent;
        border: 0;
        border-radius: var(--radius-full);
        color: var(--color-green-700);
        cursor: pointer;
        display: grid;
        flex: 0 0 32px;
        height: 32px;
        padding: 0;
        place-items: center;
        width: 32px;
    }

        .more-products-drawer__close img {
            display: block;
            height: 32px;
            width: 32px;
        }

    .more-products-progress-list,
    .more-products-progress {
        display: flex;
        flex-direction: column;
    }

    .more-products-progress-list {
        gap: 16px;
    }

    .more-products-progress {
        gap: 8px;
    }

    .more-products-progress__labels {
        gap: 12px;
        font-size: 12px;
        line-height: 20px;
    }

    .more-products-progress__goal {
        color: var(--color-text-muted);
        min-width: 0;
    }

    .more-products-progress__remaining {
        color: var(--color-green-700);
        flex: 0 0 auto;
        font-weight: 600;
        text-align: right;
    }

    .more-products-progress__track {
        background: var(--color-bg-subtle);
        border-radius: var(--radius-sm);
        height: 12px;
        overflow: hidden;
        width: 100%;
    }

    .more-products-progress__fill {
        background: var(--color-green-700);
        display: block;
        height: 100%;
        transition: width 180ms ease;
        width: 0;
    }

    .more-products-drawer__content {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 24px;
    }

    .more-products-drawer__status {
        color: var(--color-text-muted);
        font-size: 14px;
        line-height: 22px;
        margin: 0;
    }

    .more-products-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .more-products-item {
        align-items: center;
        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        display: flex;
        gap: 12px;
        min-height: 82px;
        padding: 12px;
    }

    .more-products-item__image {
        border-radius: var(--radius-md);
        display: block;
        flex: 0 0 56px;
        height: 56px;
        object-fit: cover;
        width: 56px;
    }

    .more-products-item__details {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

        .more-products-item__details strong {
            color: var(--color-text-dark);
            font-size: 14px;
            font-weight: 500;
            line-height: 22px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .more-products-item__details span {
            color: var(--color-text-muted);
            font-size: 12px;
            line-height: 20px;
        }

        .more-products-item__details strong:last-child {
            color: var(--color-green-700);
            font-weight: 600;
        }

    .more-products-item__controls {
        flex: 0 0 auto;
        min-width: 0;
    }

    .more-products-item__add {
        font-size: 12px;
        height: 32px;
        line-height: 20px;
        padding: 6px 16px;
        width: auto;
    }

    .more-products-stepper {
        display: grid;
        grid-template-columns: repeat(3, 28px);
        height: 32px;
    }

        .more-products-stepper button,
        .more-products-stepper output {
            align-items: center;
            background: transparent;
            border: 1px solid var(--color-border);
            color: var(--color-text-dark);
            display: flex;
            font: 400 12px/20px var(--font-sans), sans-serif;
            height: 32px;
            justify-content: center;
            margin: 0;
            min-width: 0;
            padding: 0;
            width: 28px;
        }

        .more-products-stepper button {
            cursor: pointer;
            font-size: 18px;
        }

            .more-products-stepper button:first-child {
                border-radius: var(--radius-md) 0 0 var(--radius-md);
            }

            .more-products-stepper button:last-child {
                border-radius: 0 var(--radius-md) var(--radius-md) 0;
            }

        .more-products-stepper output {
            border-left: 0;
            border-right: 0;
        }

    .more-products-drawer__footer {
        border-top: 1px solid var(--color-border);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

        .more-products-drawer__footer > div {
            gap: 16px;
            font-size: 16px;
            line-height: 24px;
        }

            .more-products-drawer__footer > div strong:first-child {
                font-weight: 600;
            }

    .more-products-summary__value {
        color: var(--color-green-700);
        flex: 0 0 auto;
        font-weight: 700;
    }

    .more-products-submit {
        height: 48px;
        width: 100%;
    }

    .more-products-submit__error {
        color: var(--color-error);
        font-size: 12px;
        line-height: 20px;
        margin: -8px 0 0;
    }

    @media (max-width: 479px) {
        .more-products-drawer {
            border-left: 0;
            width: 100%;
        }

        .more-products-drawer__header,
        .more-products-drawer__footer,
        .more-products-drawer__content {
            padding: 16px;
        }

        .more-products-drawer h2 {
            font-size: 22px;
            line-height: 30px;
        }

        .more-products-progress__labels {
            align-items: flex-start;
            flex-direction: column;
            gap: 2px;
        }

        .more-products-progress__remaining {
            text-align: left;
        }

        .more-products-item {
            gap: 8px;
            padding: 10px;
        }

        .more-products-item__image {
            flex-basis: 48px;
            height: 48px;
            width: 48px;
        }

        .more-products-item__add {
            padding-left: 12px;
            padding-right: 12px;
        }

        .more-products-stepper {
            grid-template-columns: repeat(3, 26px);
        }

            .more-products-stepper button,
            .more-products-stepper output {
                width: 26px;
            }
    }

    @media (max-width: 1100px) {
        .cart-layout {
            grid-template-columns: minmax(0, 1fr) 320px;
            gap: 24px;
        }

        .cart-producer {
            padding: 24px;
        }

        .cart-products__head {
            grid-template-columns: minmax(156px, 1fr) 124px minmax(96px, auto) 32px;
        }

            .cart-products__head span:nth-child(2),
            .cart-products__head span:nth-child(3) {
                display: none;
            }

        .cart-product {
            grid-template-columns: 20px 64px minmax(80px, 1fr) 124px minmax(96px, auto) 32px;
        }

        .cart-product__unit {
            display: none;
        }

        .cart-product__unit-price {
            display: none;
        }
    }

    @media (max-width: 1000px) {
        .cart-page {
            --summary-panel-gutter: clamp(16px, 4vw, 32px);
            padding-bottom: calc(80px + var(--summary-panel-height, 0px) + 24px);
        }

        .cart-layout {
            display: block;
        }

        .cart-summary {
            bottom: 0;
            box-shadow: 0 -8px 32px rgba(33, 36, 29, .12);
            box-sizing: border-box;
            max-height: calc(100vh - 24px);
            overflow-y: auto;
            position: fixed;
            right: var(--summary-panel-gutter);
            top: auto;
            width: min(383px, calc(100% - (2 * var(--summary-panel-gutter))));
            z-index: 100;
        }
    }

    @media (max-width: 1000px) {
        .cart-page {
            padding-top: 32px;
        }

        .cart-page__title {
            margin-bottom: 32px;
        }
    }

    @media (max-width: 1000px) {
        .cart-page {
            padding-bottom: 40px;
            padding-top: 24px;
        }

        .cart-page__title {
            font-size: 28px;
            line-height: 36px;
            margin-bottom: 24px;
        }

        .cart-orders {
            gap: 32px;
        }

        .cart-notice {
            align-items: flex-start;
            font-size: 14px;
            line-height: 22px;
            padding: 16px;
        }

        .cart-producer {
            border-radius: var(--radius-card);
            padding: 20px 16px;
        }

        .cart-products__head {
            display: none;
        }

        .cart-producer__header {
            grid-template-columns: 20px 1fr;
            min-height: 0;
        }

        .cart-producer__identity {
            align-items: flex-start;
            grid-column: 2;
        }

            .cart-producer__identity > div {
                align-items: center;
            }

            .cart-producer__identity strong {
                text-align: left;
            }

        .cart-product {
            border-bottom: 1px solid var(--color-bg-subtle);
            grid-template-columns: 20px 56px minmax(0, 1fr) 32px;
            grid-template-areas:
                "check image name remove"
                ". image unit-price ."
                ". quantity price price";
            gap: 8px 12px;
            padding-bottom: 16px;
        }

            .cart-product:last-child {
                border-bottom: 0;
                padding-bottom: 0;
            }

            .cart-product .cart-check {
                grid-area: check;
            }

        .cart-product__image {
            grid-area: image;
            height: 56px;
            width: 56px;
        }

            .cart-product__image img {
                height: 56px;
                width: 56px;
            }

        .cart-product__name {
            grid-area: name;
        }

        .cart-product__unit-price {
            display: block;
            grid-area: unit-price;
        }

        .cart-quantity {
            grid-area: quantity;
            grid-template-columns: 36px 36px 36px;
            width: 108px;
        }

        .cart-product__price {
            align-self: center;
            grid-area: price;
            justify-self: end;
        }

        .cart-product__remove {
            grid-area: remove;
        }

        .cart-delivery-progress {
            align-items: flex-start;
            flex-direction: column;
            font-size: 14px;
            line-height: 22px;
        }

        .cart-delivery-progress__action {
            align-self: flex-end;
            font-size: 14px;
            height: auto;
            width: 100%;
        }

        .cart-summary {
            border-radius: var(--radius-card);
            box-shadow: none;
            max-height: none;
            overflow: visible;
            padding: 24px;
            position: static;
            width: auto;
            margin-top: -16px;
        }

            .cart-summary:not(.is-summary-visible) .cart-summary__next {
                bottom: max(24px, env(safe-area-inset-bottom));
                box-shadow: 0 8px 24px rgba(33, 36, 29, .24);
                left: 40px;
                position: fixed;
                right: 40px;
                width: auto;
                z-index: 101;
            }

        .cart-empty {
            grid-template-columns: 16px 1fr;
            padding: 24px;
        }

        .cart-empty__action {
            grid-column: 1 / -1;
            width: 100% !important;
        }
    }