.full-height {
    min-height: 55vh;
}

.modal-footer .more-btn,
.modal-footer .cancel-btn {
    border: none;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.modal-footer .more-btn:hover {
    background: #4a58bf;
}

.modal-footer .cancel-btn:hover {
    background-color: #c8c8c8;
}

.cart-total .c-btn {
    font-size: 18px;
    border: none;
}

.cart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
}

.cart-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.cart-item {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.product-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.product-brand {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 5px 0;
    text-transform: capitalize;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #747474;
}

.qty-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.qty-input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-weight: 600;
}

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

.qty-input[type=number] {
    -moz-appearance: textfield;
}

.remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #f8d7da;
    color: #721c24;
}

.cart-total {
    background: #f8f9fa;
    padding: 20px;
    text-align: right;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #dee2e6;
}

.modal {
    display: none;
    position: fixed;  
    inset: 0;         
    z-index: 1050;
    width: 100%;
    overflow: hidden;   
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin:  auto;
    max-width: 600px;
    height: 100%;
    align-content: center;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
    font-weight: 500;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #000;
    cursor: pointer;
    opacity: 0.6;
    display: flex;
}

.btn-close:hover {
    opacity: 0.75;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.form-label { 
    font-weight: 500; 
    margin-bottom: 0.25rem;
    display: block;
    color: #000;
}

.form-control, .form-select {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    line-height: 1;
    height: 40px;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.empty-cart h4 {
    font-weight: 600;
    font-family: "Montserrat", sans-serif !important;
    color: #333;
}

.cart-title {
    font-weight: 600;
    color: #333;
}

.c-btn {
    backface-visibility: hidden;
    border-radius: 0;
    color: #ffffff;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    padding: 15px 30px;
    position: relative;
    text-align: center;
    text-transform: capitalize;
    transform: translateZ(0px);
    transition: 0.3s;
    transition-property: color;
    background: #4e97fd;
    font-weight: 700;
    transition: 0.3s;
    text-transform: uppercase;
    background: #dd242e;
    border-radius: 7px;
}

.c-btn:hover {
    background: #e4573d;
}

.cart-message {
    display: none;
    margin: 15px 0;
    padding: 12px;
    border-radius: 5px;
    font-weight: 500;
}

.cart-message.success {
    background-color: #d4edda;
    color: #155724;
}

.cart-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

@media (min-width: 768px) and (max-width: 991px) {
    .cart-item {
        padding: 17px;
    }

    .cart-img {
        width: 70px;
        height: 70px;
    }

    .qty-btn {
        width: 33px;
        height: 33px;
    }

    .qty-input {
        width: 55px;
        height: 33px;
    }
}

@media (min-width: 992px) {
    .quantity-controls {
        justify-content: center;
    }
}

@media (max-width: 767.98px) { 
    .modal-dialog {
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 767px) {
    .quantity-controls {
        gap: 5px;
        justify-content: flex-start;
        margin-left: 96px;
    }

    .cart-total .c-btn {
        font-size: 14px;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-total {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .cart-item {
        padding: 15px 10px;
    }

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

    .product-info h5 {
        font-size: 15px;
    }

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

    .qty-btn {
        width: 32px;
        height: 32px;
    }

    .qty-input {
        width: 50px;
        height: 32px;
        font-size: 14px;
    }

    .remove-btn {
        font-size: 17px;
    }

    .quantity-controls {
        margin-left: 76px;
    }
}