.sc-cart-page {
    background: #f7f8fa;
    color: #101820;
}

.sc-cart-hero {
    padding: 34px 0 18px;
    background: #ffffff;
}

.sc-cart-hero h1 {
    margin: 22px 0 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.sc-cart-alert {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 600;
}

.sc-cart-alert--success {
    background: #edf9f1;
    color: #176c35;
    border: 1px solid rgba(23, 108, 53, 0.16);
}

.sc-cart-alert--error {
    background: #fff2ef;
    color: #9d2b16;
    border: 1px solid rgba(255, 62, 18, 0.22);
}

.sc-cart-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.sc-cart-empty {
    padding: 28px 0 36px;
}

.sc-cart-empty__card {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    border: 1px solid rgba(12, 24, 36, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.48) 70%, rgba(255, 255, 255, 0.1) 100%),
        radial-gradient(circle at 80% 54%, rgba(255, 62, 18, 0.13), transparent 34%),
        linear-gradient(135deg, #f6f8fa, #e8edf2);
    box-shadow: 0 24px 70px rgba(14, 27, 40, 0.08);
}

.sc-cart-empty__content {
    position: relative;
    z-index: 2;
    padding: clamp(32px, 5vw, 58px);
}

.sc-cart-empty__icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(12, 24, 36, 0.12);
    color: #ff3e12;
    font-size: 42px;
    box-shadow: 0 18px 40px rgba(12, 24, 36, 0.08);
}

.sc-cart-empty h2 {
    margin: 0;
    max-width: 520px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.sc-cart-empty p {
    max-width: 500px;
    margin: 20px 0 30px;
    color: #5d6a75;
    font-size: 18px;
    line-height: 1.65;
}

.sc-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sc-cart-button:hover {
    transform: translateY(-1px);
}

.sc-cart-button--primary {
    background: linear-gradient(135deg, #ff4b1f, #f2370d);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(242, 55, 13, 0.24);
}

.sc-cart-button--outline {
    background: #ffffff;
    color: #101820;
    border: 1px solid rgba(12, 24, 36, 0.14);
}

.sc-cart-empty__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 58px;
}

.sc-cart-empty__benefits div {
    padding-left: 16px;
    border-left: 2px solid rgba(255, 62, 18, 0.35);
}

.sc-cart-empty__benefits strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
}

.sc-cart-empty__benefits span {
    display: block;
    margin-top: 6px;
    color: #687783;
    font-size: 13px;
    line-height: 1.45;
}

.sc-cart-filled {
    padding: 28px 0 40px;
}

.sc-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.sc-cart-table-card,
.sc-cart-summary {
    background: #ffffff;
    border: 1px solid rgba(12, 24, 36, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(14, 27, 40, 0.06);
}

.sc-cart-table-head,
.sc-cart-item {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 130px 150px 120px 120px 40px;
    gap: 16px;
    align-items: center;
}

.sc-cart-table-head {
    padding: 18px 22px;
    color: #75818c;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid rgba(12, 24, 36, 0.08);
}

.sc-cart-item {
    padding: 22px;
    border-bottom: 1px solid rgba(12, 24, 36, 0.08);
}

.sc-cart-item:last-child {
    border-bottom: 0;
}

.sc-cart-item__product {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.sc-cart-item__image {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f4f7;
    color: #ff3e12;
    font-weight: 900;
}

.sc-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sc-cart-item__name {
    display: block;
    color: #101820;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.sc-cart-item__meta {
    display: block;
    margin-top: 8px;
    color: #66737e;
    font-size: 13px;
}

.sc-cart-qty {
    display: inline-grid;
    grid-template-columns: 38px 48px 38px;
    height: 42px;
    border: 1px solid rgba(12, 24, 36, 0.12);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.sc-cart-qty button,
.sc-cart-remove,
.sc-cart-clear {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sc-cart-qty button {
    font-size: 18px;
    color: #52616e;
}

.sc-cart-qty input {
    width: 48px;
    border: 0;
    text-align: center;
    font-weight: 800;
    -moz-appearance: textfield;
}

.sc-cart-qty input::-webkit-outer-spin-button,
.sc-cart-qty input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.sc-cart-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #72808d;
    font-size: 22px;
}

.sc-cart-remove:hover {
    background: #fff2ef;
    color: #ff3e12;
}

.sc-cart-summary {
    position: sticky;
    top: 20px;
    padding: 28px;
}

.sc-cart-summary h2 {
    margin: 0 0 24px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.sc-cart-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    color: #5f6d78;
}

.sc-cart-summary__row strong {
    color: #101820;
    text-align: right;
}

.sc-cart-summary__total {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(12, 24, 36, 0.1);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.sc-cart-summary__button {
    width: 100%;
    margin-top: 26px;
}

.sc-cart-summary__note {
    margin: 18px 0 0;
    color: #687783;
    font-size: 14px;
    line-height: 1.55;
}

.sc-cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.sc-cart-clear {
    color: #687783;
    font-weight: 700;
}

.sc-cart-clear:hover {
    color: #ff3e12;
}

.sc-cart-recommendations {
    padding: 18px 0 56px;
}

.sc-cart-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.sc-cart-section-head h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.sc-cart-section-head a {
    color: #ff3e12;
    font-weight: 800;
    text-decoration: none;
}

.sc-cart-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.sc-cart-category-grid a {
    min-height: 120px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(12, 24, 36, 0.1);
    border-radius: 18px;
    background: #ffffff;
    color: #101820;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.sc-cart-category-grid span {
    color: #ff3e12;
}

.sc-cart-modal[hidden] {
    display: none;
}

.sc-cart-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.sc-cart-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 20, 0.62);
    backdrop-filter: blur(8px);
}

.sc-cart-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.sc-cart-modal__close {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f7;
    color: #101820;
    font-size: 28px;
    cursor: pointer;
}

.sc-cart-modal h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.045em;
}

.sc-cart-modal p {
    margin: 10px 0 24px;
    color: #64717c;
    line-height: 1.6;
}

.sc-cart-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sc-cart-form__field {
    margin-bottom: 14px;
}

.sc-cart-form__field label {
    display: block;
    margin-bottom: 7px;
    color: #334150;
    font-size: 14px;
    font-weight: 800;
}

.sc-cart-form__field input,
.sc-cart-form__field textarea {
    width: 100%;
    border: 1px solid rgba(12, 24, 36, 0.14);
    border-radius: 14px;
    padding: 13px 14px;
    color: #101820;
    font: inherit;
    background: #ffffff;
}

.sc-cart-form__field textarea {
    resize: vertical;
}

.sc-cart-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sc-cart-form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 20px;
    color: #5f6d78;
    font-size: 14px;
    line-height: 1.5;
}

.sc-cart-form__consent a {
    color: #ff3e12;
}

.sc-cart-form__submit {
    width: 100%;
}

.sc-cart-header-link__count {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff3e12;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .sc-cart-grid {
        grid-template-columns: 1fr;
    }

    .sc-cart-summary {
        position: static;
    }

    .sc-cart-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .sc-cart-empty__card {
        grid-template-columns: 1fr;
    }

    .sc-cart-empty__visual {
        display: none;
    }

    .sc-cart-empty__benefits {
        grid-template-columns: 1fr;
    }

    .sc-cart-table-head {
        display: none;
    }

    .sc-cart-item {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sc-cart-item__product {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .sc-cart-item__image {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 640px) {
    .sc-cart-hero {
        padding-top: 24px;
    }

    .sc-cart-empty__content,
    .sc-cart-modal__dialog {
        padding: 24px;
    }

    .sc-cart-actions,
    .sc-cart-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .sc-cart-category-grid {
        grid-template-columns: 1fr;
    }

    .sc-cart-form__grid {
        grid-template-columns: 1fr;
    }
}
/* Cart checkout button color correction */
.sc-cart-summary__button.sc-cart-button--primary {
    background: linear-gradient(135deg, #f76628, #ff7a3d);
    box-shadow: 0 16px 34px rgba(247, 102, 40, 0.22);
}

.sc-cart-summary__button.sc-cart-button--primary:hover {
    background: linear-gradient(135deg, #ff7a3d, #f76628);
    box-shadow: 0 18px 38px rgba(247, 102, 40, 0.28);
}

/* Empty cart catalog button color correction */
.sc-cart-empty .sc-cart-button--primary {
    background: linear-gradient(135deg, #f76628, #ff7a3d);
    box-shadow: 0 16px 34px rgba(247, 102, 40, 0.22);
}

.sc-cart-empty .sc-cart-button--primary:hover {
    background: linear-gradient(135deg, #ff7a3d, #f76628);
    box-shadow: 0 18px 38px rgba(247, 102, 40, 0.28);
}
/* Cart recommended category images */
.sc-cart-category-card {
    position: relative;
    overflow: hidden;
    align-items: flex-start !important;
    min-height: 132px;
    isolation: isolate;
}

.sc-cart-category-card::before {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 150px;
    height: 110px;
    border-radius: 50%;
    background: rgba(247, 102, 40, 0.08);
    z-index: -1;
}

.sc-cart-category-card__title {
    position: relative;
    z-index: 2;
    max-width: 68%;
    color: #101820 !important;
}

.sc-cart-category-card img {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 1;
    width: 92px;
    height: 74px;
    object-fit: contain;
}

.sc-cart-category-card__arrow {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
    color: #f76628 !important;
}

@media (max-width: 640px) {
    .sc-cart-category-card__title {
        max-width: 62%;
    }

    .sc-cart-category-card img {
        width: 84px;
        height: 68px;
    }
}


/* Empty cart clean responsive layout */
.sc-cart-empty__card {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 56px 64px;
    border: 1px solid #dfe4ea;
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(247, 102, 40, 0.14) 0%, rgba(247, 102, 40, 0.06) 18%, transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f7f9fb 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.sc-cart-empty__content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    min-width: 0;
}

.sc-cart-empty__logo {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.sc-cart-empty__logo img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
}

.sc-cart-empty h2 {
    max-width: 100%;
    margin: 0 0 18px;
}

.sc-cart-empty p {
    max-width: 520px;
}

.sc-cart-empty__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 52px;
    margin-top: 24px;
    padding: 15px 28px;
    border: 0;
    border-radius: 14px;
    background: #f76628;
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 18px 34px rgba(247, 102, 40, 0.22);
}

.sc-cart-empty__cta:hover {
    background: #e95c21;
    color: #ffffff;
}

.sc-cart-empty__benefits {
    margin-top: 28px;
}

.sc-cart-empty__visual {
    display: none;
}

@media (max-width: 1180px) {
    .sc-cart-empty__card {
        padding: 44px 40px;
    }

    .sc-cart-empty__content {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .sc-cart-empty__card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .sc-cart-empty__logo {
        width: 92px;
        height: 92px;
        margin-bottom: 26px;
    }

    .sc-cart-empty__logo img {
        width: 74px;
        height: 74px;
    }

    .sc-cart-empty h2 {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.05;
    }

    .sc-cart-empty p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .sc-cart-empty__cta {
        width: 100%;
        min-height: 50px;
        padding: 15px 18px;
        white-space: normal;
    }
}

