.asn-cart-page {
    background: #f4f7fa;
    min-height: 60vh;
    color: #101827;
}

.asn-cart-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.asn-cart-hero {
    padding: 58px 0 52px;
    background: linear-gradient(135deg, #e8fff3 0%, #f4f7fa 100%);
    border-bottom: 1px solid #e1e7ee;
}

.asn-cart-eyebrow,
.asn-cart-section-label {
    display: block;
    margin-bottom: 8px;
    color: #087a35;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.asn-cart-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}

.asn-cart-hero p {
    margin: 0;
    color: #637087;
    font-size: 16px;
}

.asn-cart-content {
    padding: 44px 0 80px;
}

.asn-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.asn-cart-items-panel,
.asn-cart-summary-panel,
.asn-cart-empty {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 39, .06);
}

.asn-cart-items-panel {
    padding: 28px;
}

.asn-cart-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
}

.asn-cart-panel-header h2,
.asn-cart-summary-panel h2 {
    margin: 0;
    font-size: 23px;
}

.asn-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f9ef;
    color: #087a35;
    font-size: 13px;
    vertical-align: middle;
}

.asn-cart-clear-button,
.asn-cart-remove-button {
    border: 0;
    background: transparent;
    color: #d62828;
    cursor: pointer;
    font-weight: 700;
}

.asn-cart-clear-button {
    font-size: 13px;
}

.asn-cart-items {
    display: flex;
    flex-direction: column;
}

.asn-cart-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #edf0f4;
}

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

.asn-cart-item-image {
    width: 116px;
    height: 116px;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f6;
}

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

.asn-cart-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #8490a3;
}

.asn-cart-image-placeholder span {
    font-size: 28px;
}

.asn-cart-image-placeholder small {
    font-size: 11px;
}

.asn-cart-item-details {
    min-width: 0;
}

.asn-cart-item-details h3 {
    margin: 2px 0 7px;
    font-size: 17px;
    line-height: 1.35;
}

.asn-cart-item-sku {
    display: block;
    margin-bottom: 12px;
    color: #7b8798;
    font-size: 11px;
}

.asn-cart-item-price {
    color: #087a35;
    font-size: 16px;
    font-weight: 800;
}

.asn-cart-item-price span {
    color: #8993a3;
    font-size: 11px;
    font-weight: 500;
}

.asn-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.asn-cart-quantity {
    display: inline-flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    background: #fff;
}

.asn-cart-quantity-button {
    width: 36px;
    height: 100%;
    border: 0;
    background: #f7f9fb;
    color: #172033;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.asn-cart-quantity-input {
    width: 46px;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    text-align: center;
    font-weight: 700;
    background: #fff;
    appearance: textfield;
}

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

.asn-cart-remove-button {
    font-size: 12px;
}

.asn-cart-item-total {
    align-self: start;
    padding-top: 3px;
    color: #087a35;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.asn-cart-continue-link {
    display: inline-block;
    margin-top: 22px;
    color: #087a35;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.asn-cart-summary-panel {
    position: sticky;
    top: 25px;
    padding: 28px;
}

.asn-cart-summary-panel h2 {
    margin-bottom: 26px;
}

.asn-cart-summary-row,
.asn-cart-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.asn-cart-summary-row {
    padding: 10px 0;
    color: #657287;
    font-size: 14px;
}

.asn-cart-summary-row strong {
    color: #172033;
}

.asn-cart-summary-divider {
    height: 1px;
    margin: 18px 0;
    background: #e9edf2;
}

.asn-cart-summary-total {
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.asn-cart-summary-total strong {
    color: #087a35;
    font-size: 24px;
}

.asn-cart-checkout-note {
    margin: 20px 0;
    color: #7a8698;
    font-size: 11px;
    line-height: 1.6;
}

.asn-cart-checkout-button,
.asn-cart-primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: #0b8037;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.asn-cart-checkout-button:disabled {
    background: #b9c2cc;
    cursor: not-allowed;
}

.asn-cart-empty {
    max-width: 680px;
    margin: 10px auto 0;
    padding: 70px 30px;
    text-align: center;
}

.asn-cart-empty-icon {
    display: flex;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e8f9ef;
    font-size: 34px;
}

.asn-cart-empty h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.asn-cart-empty p {
    margin: 0 auto 25px;
    color: #6d7889;
}

.asn-cart-empty .asn-cart-primary-button {
    width: auto;
    padding: 0 28px;
}

.asn-cart-message {
    display: none;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
}

.asn-cart-message.is-visible {
    display: block;
}

.asn-cart-message.is-success {
    background: #e9f9ef;
    color: #087a35;
}

.asn-cart-message.is-error {
    background: #fff0f0;
    color: #b42318;
}

.asn-cart-item.is-loading {
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 900px) {
    .asn-cart-layout {
        grid-template-columns: 1fr;
    }

    .asn-cart-summary-panel {
        position: static;
    }
}

@media (max-width: 620px) {
    .asn-cart-container {
        width: min(100% - 24px, 1180px);
    }

    .asn-cart-hero {
        padding: 40px 0;
    }

    .asn-cart-content {
        padding: 28px 0 50px;
    }

    .asn-cart-items-panel,
    .asn-cart-summary-panel {
        padding: 20px;
        border-radius: 14px;
    }

    .asn-cart-panel-header {
        align-items: flex-start;
    }

    .asn-cart-item {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 13px;
    }

    .asn-cart-item-image {
        width: 82px;
        height: 82px;
    }

    .asn-cart-item-total {
        grid-column: 2;
        padding-top: 0;
    }

    .asn-cart-item-details h3 {
        font-size: 14px;
    }

    .asn-cart-item-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
}
