/* Dropdown Cart Styling */
.dropdown-menu {
    max-width: 420px; /* Adjust width as needed */
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    left: 50%; /* Position the dropdown to the center of its parent */
    transform: translateX(-60%); /* Move the dropdown to the left */
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Show dropdown on hover */
.navbar-nav li:hover .dropdown-menu {
    display: block;
}

/* Dropdown Cart Styling */
.cart-items {
    overflow: hidden; /* Ensure no scrollbars */
}


.cart-item-name {
    display: block;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
}


.cart-item-controls .btn {
    margin: 0 5px;
    width: 30px; /* Reduced width */
    height: 30px; /* Reduced height */
    padding: 0; /* Remove padding */
    font-size: 1rem; /* Adjust font size if needed */
}

.cart-item-controls input {
    margin: 0 5px;
    width: 40px; /* Reduced width */
    height: 30px; /* Reduced height */
    text-align: right; /* Align text to the right */
    padding-right: 5px; /* Add some padding to the right */
}


.cart-item-cost {
    margin-left: auto; /* Push the cost to the right */
    margin-right: 10px; /* Space between cost and trash button */
}

.cart-item .fas.fa-trash {
    margin: 0 10px; /* Space between cost and trash button */
}

.cart-total {
    padding: 10px 20px 10px 10px;
    font-weight: bold;
    font-size: 1.6rem;
    text-align: right;
}

/* ... existing styles ... */

.cart-item {
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item-image {
    width: 80px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    margin-right: 10px; /* Space between image and product name */
    object-fit: cover; /* Ensure the image covers the entire space without distortion */
}

.cart-item-details {
    flex: 1; /* Take up the remaining space */
    display: flex;
    flex-direction: column; /* Stack the name and controls vertically */
}

#navbarResponsive > ul > li:nth-child(2) > div > div.d-flex.justify-content-around {
    padding-bottom: 10px;
}

#cart-content {
    width: 418px;
}

#empty-cart-message {
    margin-left: 30px;
    margin-right: 30px;
    width: max-content;
}

body.no-scroll {
    overflow: hidden;
}

#base-cart-total-quantity-wrapper {
    position: relative;
}

#base-cart-total-quantity {
    position: absolute;
    top: -10px;
    background-color: red;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    display: none; /* Initially hidden */
}

/* Show the quantity if it's not zero */
#base-cart-total-quantity:not(:empty) {
    display: block;
}

#cart-content > div.d-flex.justify-content-around {
    margin-bottom: 15px;
}

/*Make footer display bottom*/
.flex-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content {
    flex: 1;
}

/* Footer Social Media Icons */
.footer-social-icons a {
    font-size: 22px; /* Make icons larger */
    margin-right: 24px; /* Add spacing between icons */
}

/* Footer Inscriptions */
.footer-inscriptions p {
    margin: 0;
    font-size: 14px;
}

@media (min-width: 993px) {
    /* For screens larger than 992px */
    #base-cart-total-quantity {
        right: 60px;
    }
}

/* Center-align dropdowns for mobile */
@media (max-width: 992px) {
    /* Bootstrap's breakpoint for large devices */
    #base-cart-total-quantity {
        right: 20px;
        top: 0;
    }

    .navbar-nav .dropdown-menu {
        position: fixed; /* Make the dropdown fixed */
        top: 170px; /* Adjust based on the height of your navbar */
        bottom: 0;
        left: 50%; /* Center the dropdown */
        transform: translateX(-50%); /* Adjust for exact centering */
        width: 99%; /* Set a width for the dropdown */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow for better visibility */
        max-height: calc(100vh - 170px); /* Adjust this value based on your preference */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    #cart-content {
        width: 100%;
    }

    .user-menu {
        height: 131px;
    }
}

/* messages */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert-success {
    background-color: #dff0d8;
    color: #3c763d;
    border-color: #d6e9c6;
}

/* sticky */
.sticky-image {
    position: sticky;
    top: 80px;
}

#logo-image {
    width: 26px;
}
