/* Main theme color */
:root {
    --theme-color: #870E85;
}

/* Modal and Header Styling */
.modal-header {
    background-color: var(--theme-color);
    color: #fff;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Table Styling */
.table {
    border: 1px solid var(--theme-color);
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.table thead {
    background-color: var(--theme-color);
    color: #fff;
    border-top: 1px solid var(--theme-color);
    border-bottom: 1px solid var(--theme-color);
}

.table thead th {
    padding: 12px;
    font-weight: bold;
    text-align: center;
}

.table tbody td {
    padding: 10px;
    border: 1px solid var(--theme-color);
    vertical-align: middle;
    text-align: center;
}

/* Product image styling */
.table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 5px;
}

/* Button Styling */
.btn-info, .btn-success, .btn-danger {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.btn-info:hover, .btn-success:hover, .btn-danger:hover {
    background-color: #6a0c6b;
    border-color: #6a0c6b;
    color: #fff;
}

/* Responsive Adjustments for Mobile */
@media (max-width: 576px) {
    .delete-btn-responsive {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    .quantity-input {
        width: 50px;
        text-align: center;
    }

    /* Stack table for better readability on mobile */
    .table-responsive-sm {
        overflow-x: auto;
    }

    .table th, .table td {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* Total and Delivery Option Styling */
.d-flex.justify-content-between {
    /* border-top: 2px solid var(--theme-color); */
    /* padding-top: 10px;
    font-weight: bold; */
}

.form-check-label {
    color: var(--theme-color);
    font-weight: bold;
}

/* RTL Support */
.modal-content {
    direction: rtl;
    text-align: right;
}

/* Table Header RTL */
.table thead th {
    text-align: center;
}

/* Modal Footer RTL */
.modal-footer {
    display: flex;
    justify-content: flex-start; /* Align buttons to the right in RTL */
}

/* Align download and total in cart modal */
.d-flex.justify-content-between {
    justify-content: space-between;
}

/* Checkbox Label RTL */
.form-check-label {
    text-align: right;
    padding-left: 1rem;
    padding-right: 0;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    direction: rtl; /* Ensure RTL direction */
}

.modal-title {
    flex: 1; /* Makes the title take available space to center itself */
    text-align: center; /* Center-aligns the text */
    margin: 0; /* Removes any default margin for perfect centering */
}

.close {
    font-size: 1.5em; /* Increase size */
    font-weight: bold; /* Make it thicker */
    color: #333; /* Darker color for visibility, adjust as needed */
    opacity: 1; /* Make it fully opaque */
    line-height: 1; /* Adjust line-height to center it better */
    cursor: pointer; /* Show pointer cursor for interactivity */
    transition: transform 0.2s ease, color 0.2s ease; /* Smooth hover effect */
}

.close:hover {
    color: #c18cc1; /* Accent color on hover */
    transform: scale(1.2); /* Slightly enlarge on hover */
}
