/* Shopping Cart */
.shopping-cart-wrapper {
    position: relative;
    display: inline-block;
}

.shopping-cart-icon {
    width: 24px;
    vertical-align: middle;
    background-color: none;
    z-index: +1;
}

.cart-quantity {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -35%);
    font-size: 14px;
    color: black;
    z-index: 0;
}

/* Shopping Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background-color: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.cart-overlay-content {
    max-width: 100%;
    height: 96vh;
    position: relative;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2vh;
}

.cart-item img {
    width: 50px;
    height: auto;
    margin-right: 10px;
    border-radius: 1.5vh;
    box-shadow: 0 0 3px lightgrey;
}

.cart-item-price {
    margin-left: auto;
}

.cart-total-price {
    margin-top: 20px;
    font-weight: bold;
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    text-align: left;
}

.view-full-cart-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: black;
    color: white;
    border-radius: 1.5vh;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hidden {
    display: none;
}

/* Business Section Dropdown */
/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    color: #222222;
    text-decoration: none;
}

.dropdown-toggle:hover {
    text-decoration: underline;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #FFFDF5;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-marker {
    width: 2vw;
    margin-left: 0px;
    z-index: 1;
}

.dropdown-menu .dropdown-item {
    color: #222222;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #ddd;
    text-decoration: underline;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown .dropdown-marker {
    font-size: 0.6em;
    vertical-align: middle;
}

.dropdown:hover .dropdown-toggle {
    opacity: 50%;
}

/* Chagning Icons */
body.dark-mode .shopping-cart-icon {
    src: url("shoppingcarticon2.png");
}

body.dark-mode .dropdown-marker {
    src: url("dropdownmarker2.png");
}
