a.paint-select-category-btn.gt {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(143, 143, 143, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-cart {
    background: #fff;
    border-radius: 18px;
    width: 490px;
    padding: 24px 28px 30px 28px;
    position: relative;
    box-shadow: 0 4px 24px rgba(16, 16, 16, 0.11);
}

.close-btn {
    position: absolute;
    top: -22px;
    right: -22px;
    background: transparent;
    border: none;
    font-size: 34px;
    color: #ccc;
    cursor: pointer;
}

.cart-item {
    background: #fafafa;
    border-radius: 14px;
    display: flex;
    padding: 18px;
    gap: 18px;
    align-items: flex-start;
    margin-top: 18px;
    margin-bottom: 18px;
}

.cart-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(44, 44, 44, 0.08);
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.product-title {
    font-size: 15px;
    color: #212121;
    font-weight: 500;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;

}

.product-price {
    font-size: 14px;
    color: #212121;
    opacity: 0.65;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
}

.counter {
    background: #ededed;
    border: none;
    color: #555;
    font-size: 19px;
    font-weight: 700;
    width: 33px;
    height: 33px;
    border-radius: 6px;
    cursor: pointer;
}

.counter.plus {
    background: #34a853;
    color: #fff;
}

.quantity {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-size: 17px;
    color: #212121;
}

.product-color {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ececec;
    border-radius: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 14px;
}

.color-badge {
    background: #d0d0d0;
    border-radius: 6px;
    padding: 4px 14px;
    font-size: 14px;
    color: #353535;
    margin-right: 12px;
}

.color-title {
    color: #7e7e7e;
    margin-right: 8px;
}

.color-price {
    color: #212121;
    font-weight: 500;
}

.cart-summary {
    margin-top: 10px;
    font-size: 15px;
    color: #363636;
}

.summary-amount {
    font-weight: 700;
    font-size: 16px;
    margin-left: 5px;
}

.cart-buttons {
    display: flex;
    gap: 20px;
    margin-top: 22px;
}

.btn-dark,
.btn-green {
    flex: 1;
    padding: 14px 0;
    font-size: 17px;
    border-radius: 7px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: 0.14s;
}

.btn-dark {
    background: #242424;
    color: #fff;
}

.btn-green {
    background: #219c47;
    color: #fff;

}

.modal-overlay.active {
    display: flex;
}

@media screen and (max-width: 520px) {
    .modal-cart {
        width: 90%;
        padding: 18px 20px 22px 20px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 13px;
    }

    .product-price {
        font-size: 12px;
    }

    .counter {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .quantity {
        font-size: 15px;
        min-width: 24px;
    }

    .product-color {
        gap: 12px;
        font-size: 12px;
    }

    .color-badge {
        padding: 3px 10px;
        font-size: 12px;
        margin-right: 8px;
    }

    .cart-summary {
        font-size: 13px;
    }

    .summary-amount {
        font-size: 14px;
    }

    .cart-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-dark,
    .btn-green {
        font-size: 15px;
        padding: 12px 0;
    }
}

@media screen and (max-width: 520px) {
    .modal-cart{
        max-width: 300px;
    }
}