﻿.cart-page {
    padding: 36px 40px 56px;
}

.cart-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1d428a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
    text-decoration: none;
}

.cart-page-header h1 {
    margin: 0;
    font-family: 'Arada-Bold';
    font-size: clamp(32px, 3vw, 40px);
    line-height: 1.2;
    color: #191c1e;
}

.cart-page-header p {
    margin: 4px 0 0;
    color: #444653;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.cart-content {
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 3.7fr) minmax(0, 2fr);
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    background: #ffffff;
    border: 1px solid #C4C5D54D;
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
}

.cart-item-image {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 8px;
    background: #edf0f5;
    padding: 16px;
}

.cart-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-title {
    margin: 0;
    font-family: 'Arada-Bold';
    font-size: clamp(24px, 2.2vw, 28px);
    line-height: 1.15;
    color: #191964;
}

.cart-item-delete {
    border: 0;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
}

.cart-item-model {
    margin: 4px;
    color: #444653;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    margin-left: 0px;
}

.cart-item-meta {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 287px minmax(0, 1fr);
    gap: 15px 0px;
    align-items: start;
}

    .cart-item-meta .cart-quantity-group,
    .cart-item-meta .cart-notes-group {
        display: grid;
        gap: 6px;
        font-size: 12px;
        color: #444653;
        line-height: 16px;
        font-weight: 700;
    }

.cart-item-quantity,
.cart-item-notes {
    border: 1px solid #757684;
    border-radius: 8px;
    padding: 8px;
    background: #F7F9FB;
    color: #191c1e;
}

.cart-quantity-group {
    align-content: start;
}

.cart-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #757684;
    border-radius: 8px;
    background: #fff;
    color: #191c1e;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.cart-qty-btn-disabled {
    opacity: 0.5;
}

.cart-item-quantity {
    width: 58px;
    min-width: 58px;
    height: 32px;
    text-align: center;
    font-weight: 700;
    line-height: 16px;
    padding: 0 8px;
}

    .cart-item-quantity::-webkit-outer-spin-button,
    .cart-item-quantity::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.cart-notes-group {
    min-width: 0;
}

.cart-item-notes ::placeholder {
    color: #6B7280;
}

.cart-item-notes {
    resize: vertical;
    min-height: 80px;
    min-width: 0;
    width: 100%;
}

.cart-page input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border: 4px solid #003A9B;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    margin: 0;
    cursor: pointer;
}

    .cart-page input[type="radio"]::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #003A9B;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.15s ease-in-out;
    }

    .cart-page input[type="radio"]:checked::before {
        transform: translate(-50%, -50%) scale(1);
    }

    .cart-page input[type="radio"]:focus-visible {
        outline: 2px solid #003A9B;
        outline-offset: 2px;
    }

.quatity-name {
    font-size: 12px;
    color: #444653;
    font-weight: 700;
    line-height: 16px;
}

.quote-summary {
    background: #ffffff;
    border: 1px solid #C4C5D54D;
    border-radius: 12px;
    padding: 28px;
    gap: 16px;
    display: flex;
    flex-direction: column;
}

    .quote-summary h2 {
        margin: 0;
        font-family: 'Arada-Bold';
        font-size: 24px;
        line-height: 32px;
    }

    .quote-summary dl {
        margin: 0px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    color: #444653;
    padding: 8px 0;
}

.row-end {
    border-bottom: 1px solid rgba(196, 197, 213, 0.45);
}

.summary-row dd,
.summary-row dt {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.summary-row dd {
    color: #191c1e;
    font-family: 'Arada-Bold';
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.14px;
}

dt {
    font-weight: 400 !important;
}



.quote-alert {
    margin-top: 16px;
    border-radius: 8px;
    padding: 16px 0px 16px 16px;
    background: #dff9ed;
    color: #1a6a43;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
}

.quote-action-btn {
    display: inline-block;
    min-width: 0;
    width: 100%;
    border: 1px solid #191964;
    border-radius: 12px;
    color: #ffffff;
    padding: 16px;
    background: #191964;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
    cursor: pointer;
}

.cart-empty-state {
    margin-top: 32px;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    height: 378px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .cart-empty-state h2 {
        margin: 0;
        color: #00288E;
        font-family: 'Arada-Bold';
        font-size: clamp(26px, 3.2vw, 32px);
        line-height: 32px;
    }

.cart-empty-illustration {
    width: 200px;
    height: 200px;
    display: grid;
    place-items: center;
    font-size: 56px;
    background: #ecf1fb;
}

    .cart-empty-illustration dotlottie-player {
        height: 200px;
        width: 200px;
    }

.cart-empty-state .quote-action-btn {
    max-width: 240px;
}

.quote-action-btn:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .cart-page {
        padding-left: 24px;
        padding-right: 24px;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 20px 16px 28px;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .cart-item-image {
        width: 100%;
        max-width: 128px;
        height: 140px;
    }

    .cart-item-meta {
        grid-template-columns: 1fr;
    }

    .quote-summary h2 {
        font-size: 28px;
    }

    .cart-empty-state {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .cart-empty-illustration {
        width: 180px;
        height: 180px;
    }

        .cart-empty-illustration dotlottie-player {
            width: 180px;
            height: 180px;
        }
}
