/* General Styles */

.cart {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
}

.product-details {
    padding: 10px;
    margin-right: 30px;
}

/* Payment Info Section */
.payment-info {
    background: #8f1bdc;
    padding: 20px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    margin-left: 30px;
}

/* Typography and Text Styles */
.type, 
.credit-card-label,
.information span,
.subtotal,
.total,
.radio span {
    font-weight: 400;
}

.credit-card-label,
.type,
.radio span {
    font-size: 16px;
}

.information span,
.subtotal,
.total {
    font-size: 16px;
}

/* Adjusting input fields */
.credit-inputs {
    font-weight: 400;
    background: #B59ECE;
    color: var(--white) !important;
    border-color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.credit-inputs::placeholder {
    color: var(--white);
    font-size: 14px;
}

.form-control.credit-inputs:focus {
    background: #B59ECE;
    border: var(--text-light);
}

/* Checkout Button Styles */
.payment-info button {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #B59ECE;
    border: none;
    border-radius: 5px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: background-color 0.3s ease;
}

.payment-info button span.total {
    margin-right: 10px;
}

.payment-info button:hover {
    background-color: #f9218d;
}

/* Layout and Spacing */
.table-shadow {
    -webkit-box-shadow: 5px 5px 15px -2px rgba(0, 0, 0, 0.42);
    box-shadow: 5px 5px 15px -2px rgba(0, 0, 0, 0.42);
}

.items {
    -webkit-box-shadow: 5px 5px 4px -1px rgba(0, 0, 0, 0.25);
    box-shadow: 5px 5px 4px -1px rgba(0, 0, 0, 0.08);
}

.items img {
    max-width: 60px;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    margin-right: 10px;
}

.line {
    border-bottom: 1px solid var(--text-light);
}

.mb-4 {
    margin-bottom: 20px !important;
}

/* Icon and Button Styles */
.delete-item {
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    color: var(--primary-color);
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

.delete-item:hover {
    color: darkred;
}

.d-flex.flex-row.align-items-center a {
    color: var(--text-dark);
    font-size: 14px;
    transition: color 0.3s ease;
}

.d-flex.flex-row.align-items-center a:hover {
    color: var(--primary-color);
}

.d-flex.flex-row.align-items-center i {
    font-size: 16px;
}

/* Sort Button Styles */
.price {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #8f1bdc;
    color: var(--white);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.price:hover {
    background-color: var(--text-light);
}

.price i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.price:hover i {
    transform: rotate(180deg);
}

.dropdown-toggle {
    background-color: #8f1bdc;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    background-color: #f9218d;
    color: var(--white);
}

.dropdown-menu {
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    z-index: 1050;
}

.items .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
}

.items .d-flex.flex-row {
    align-items: center;
}

.items .ml-2 {
    margin-left: 10px;
    flex: 1;
}

.items .ml-2 .font-weight-bold {
    display: block;
    margin-bottom: 5px;
}

.items .spec {
    margin-left: 0;
    display: block;
    margin-top: 2px;
}

.items .d-flex.flex-row.align-items-center {
    justify-content: flex-end;
}

.items .d-flex.flex-row.align-items-center .font-weight-bold {
    margin-right: 10px;
}

/* Cart Count Styles */
#cart-count {
    font-size: 15px;
    margin-top: 15px;
}

/* Style for quantity controls */
.quantity-controls {
    flex: 1;
    justify-content: center;
}

.quantity-controls .btn {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 2px 6px;
    font-size: 14px;
    color: #333;
}

.quantity-controls .btn:hover {
    background-color: #e2e6ea;
}

.quantity-controls span {
    font-size: 14px;
    color: #333;
}

/* Responsive Styles for the cart section */
@media (max-width: 992px) {
    .product-details,
    .payment-info {
        margin-right: 0;
        margin-left: 0;
        padding: 15px;
    }

    .row.no-gutters {
        flex-direction: column;
    }

    .product-details {
        margin-bottom: 20px;
    }

    .cart-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cart-item .d-flex.flex-row {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .cart-item .ml-2 {
        margin-left: 10px;
    }

    .cart-item .font-weight-bold {
        font-size: 14px;
    }

    .cart-item .spec {
        font-size: 12px;
    }

    .cart-item img {
        margin-bottom: 0;
    }

    .cart-item .d-flex.flex-row.align-items-center {
        justify-content: space-between;
        width: 100%;
    }

    .quantity-controls {
        justify-content: space-between;
        margin-top: 10px;
        width: 100%;
    }

    .quantity-controls .btn {
        padding: 4px 8px;
        font-size: 14px;
        flex: 1;
    }

    .quantity-controls span {
        font-size: 14px;
        flex: 0 0 auto;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .product-details,
    .payment-info {
        padding: 15px;
        margin: 0;
        width: 100%;
    }

    .product-details {
        margin-bottom: 30px;
    }

    .cart {
        padding: 15px;
    }

    .payment-info button {
        font-size: 14px;
    }

    .d-flex.flex-row.align-items-center a {
        font-size: 16px;
        display: inline-block;
        margin-bottom: 10px;
    }

    .delete-item {
        font-size: 16px;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .cart-item .d-flex.flex-row {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .cart-item .ml-2 {
        margin-left: 0;
    }

    .cart-item .font-weight-bold {
        font-size: 14px;
    }

    .cart-item .spec {
        font-size: 12px;
    }

    .cart-item img {
        margin-bottom: 10px;
    }

    .cart-item .d-flex.flex-row.align-items-center {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .product-details,
    .payment-info {
        padding: 10px;
        margin: 0;
    }

    .product-details {
        margin-bottom: 40px;
    }

    .cart {
        padding: 10px;
    }

    .payment-info button {
        font-size: 12px;
        padding: 8px;
    }

    .d-flex.flex-row.align-items-center a {
        font-size: 14px;
        display: block;
        margin-bottom: 15px;
    }

    .delete-item {
        font-size: 14px;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .cart-item .d-flex.flex-row {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .cart-item .ml-2 {
        margin-left: 0;
    }

    .cart-item .font-weight-bold {
        font-size: 12px;
    }

    .cart-item .spec {
        font-size: 10px;
    }

    .cart-item img {
        margin-bottom: 10px;
    }

    .cart-item .d-flex.flex-row.align-items-center {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #cart-count {
        font-size: 13px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    #cart-count {
        font-size: 12px;
        margin-top: 10px;
    }
}
