.cart-page-shell {
    width: 100%;
    max-width: none;
    margin: 24px 0 56px;
    box-sizing: border-box;
}

.cart-empty-state {
    padding: 48px 0 20px;
}

.cart-success-state {
    width: 100%;
    min-height: min(58vh, 520px);
    padding: 34px 0 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-success-animation {
    width: min(300px, 76vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-success-animation svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cart-success-animation--fallback::before {
    content: "";
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: block;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #19b36b, #ff1493) border-box;
    border: 10px solid transparent;
    box-shadow: 0 22px 48px rgba(25, 179, 107, 0.18);
}

.cart-success-message {
    width: min(720px, 100%);
    margin: 10px auto 0;
    color: #0f172a;
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.cart-items-card,
.cart-summary-card {
    min-width: 0;
    width: 100%;
    border: 1px solid #8bafe6;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(18, 37, 63, 0.06);
}

.cart-page-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e9f0;
    width: 100%;
}

.cart-page-head h1 {
    margin: 0 0 6px;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.cart-page-head p,
.cart-summary-note {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.cart-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cfe6d7;
    background: #f4fbf6;
    color: #1d6d34;
}

.cart-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.cart-layout > * {
    min-width: 0;
}

.cart-items-card {
    width: 100%;
    padding: 0;
    overflow: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cart-remove-form,
.cart-clear-form {
    margin: 0;
}

.cart-remove-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 7px;
    color: #d33b3b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-summary-card {
    /* flex: 0 0 380px; */
    width: 60%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    position: sticky;
    top: 18px;
    background-color: #daf0f7;
    color: black !important;
}

.cart-request-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.cart-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7edf4;
    flex-wrap: wrap;
}

.cart-section-title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.cart-section-meta {
    color: #3e7cff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.cart-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}

.cart-summary-line:last-of-type {
    border-bottom: none;
}

.cart-summary-line span {
    color: #3b3e43;
    font-size: 14px;
    font-weight: 400;
}

.cart-summary-line strong {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
}

.cart-form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-form-field span {
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.cart-form-field input,
.cart-form-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #527bc6;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-form-field select {
    padding-right: 42px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #6f7b8e 50%),
        linear-gradient(135deg, #6f7b8e 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.cart-form-field input:focus,
.cart-form-field select:focus,
.cart-order-meta-input:focus {
    outline: none;
    border-color: #3f79c8;
    box-shadow: 0 0 0 3px rgba(63, 121, 200, 0.14);
}

.cart-kargo-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #0d1420;
}

.cart-kargo-field input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.cart-request-submit {
    width: 100%;
}

.cart-order-items-grid {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cart-order-item-card {
    width: 100%;
    padding: 12px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    position: relative;
}

.cart-order-item-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    padding: 20px;
    box-sizing: border-box;
}

.cart-order-item-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.cart-order-item-id {
    color: transparent;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cart-order-item-photo {
    width: 60%;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    min-height: 0;
    display: block;
    border: 1px solid #d0d6e2;
    padding: 0;
    box-sizing: border-box;
}

.cart-order-item-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.cart-order-item-card-body {
    width: 100%;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cart-order-specs {
    display: grid;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.cart-order-spec-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    border-bottom: 1px solid #e8e8e8;
}

.cart-order-spec-row:last-child {
    border-bottom: none;
}

.cart-order-spec-label,
.cart-order-spec-value {
    min-height: 36px;
    padding: 0px 0px 0px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    line-height: 1.25;
}

.cart-order-spec-label {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.cart-order-spec-value {
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 400;
    overflow-wrap: anywhere;
    min-width: 0;
}

.cart-order-meta-input {
    width: 100%;
    min-height: 40px;
    border:  solid #cfd6e2;
    padding: 0px 20px;
    box-sizing: border-box;
    font: inherit;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    border-width: 0 0 0 1px;
}

.cart-order-item-price strong,
.cart-order-item-total-value strong {
    color: #029007;
    font-size: 16px !important;
    font-weight: 500;
}

.cart-order-specs-totals {
    margin-top: 4px;
}

.cart-order-spec-row-total .cart-order-spec-label,
.cart-order-spec-row-total .cart-order-spec-value {
    min-height: 36px;
}

.cart-order-spec-row-total .cart-order-spec-label,
.cart-order-item-total-value {
    font-weight: 700;
}

.cart-pack-hint {
    margin: 0;
    color: #6f7b8e;
    font-size: 10px;
    line-height: 1.35;
    max-width: none;
}

.cart-continue-link,
.cart-clear-btn {
    min-height: 36px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.cart-continue-link {
    background: #1a73e8;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(26, 115, 232, 0.2);
}

.cart-continue-link:hover {
    transform: translateY(-1px);
    background: #1767cf;
}

.cart-clear-btn {
    background: #fff1f1;
    color: #c23333;
}

.cart-clear-btn:hover {
    background: #ffe4e4;
}

.cart-page-shell .product-buy-btn,
.cart-page-shell .cart-continue-link,
.cart-page-shell .cart-clear-btn {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.cart-page-shell .product-buy-btn,
.cart-page-shell .cart-continue-link {
    background: #2563eb;
}

.cart-page-shell .product-buy-btn:hover,
.cart-page-shell .cart-continue-link:hover {
    background: #1d4ed8;
    transform: none;
}

.cart-page-shell .cart-clear-btn {
    border: 1px solid #f1c7c7;
    background: #fff7f7;
    color: #c23333;
}

.cart-page-shell .cart-clear-btn:hover {
    background: #fff1f1;
    transform: none;
}



@media (max-width: 1000px) {
    .cart-layout {
        flex-direction: column;
        gap: 20px;
    }

    .cart-items-card,
    .cart-summary-card {
        width: 100%;
        flex: 0 0 auto;
    }

}


@media (max-width: 768px) {
    .cart-page-shell {
        width: 100%;
        margin: 12px 0;
        min-width: 0;
    }

    .cart-success-state {
        min-height: 54vh;
        padding: 20px 0 42px;
    }

    .cart-success-message {
        font-size: 22px;
    }

    .cart-items-card,
    .cart-summary-card {
        width: 100%;
        min-width: 0;
    }

    .cart-items-card {
        padding: 0;
    }

    .cart-summary-card {
        border-radius: 16px;
        padding: 14px;
        box-sizing: border-box;
    }

    .cart-summary-line {
        padding: 8px 0;
    }

    .cart-order-spec-row {
        grid-template-columns: 129px minmax(0, 1fr);
    }

    .cart-order-item-photo {
        width: 100%;
        height: auto;
    }

    .cart-order-item-content {
        flex-direction: column;
        width: 100%;
    }

    .cart-order-item-card-body {
        width: 100%;
    }
}
