/* Fixed Footer Icons */
.fixed-footer-icons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    z-index: 10000;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .fixed-footer-icons {
        display: flex;
    }
}

@media (min-width: 769px) {
    .fixed-footer-icons {
        display: none; /* Hide on desktop */
    }
}

.fixed-footer-icons .cart-heart-icon {
    position: relative;
    font-size: 20px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.fixed-footer-icons .cart-count {
    background: red;
    color: white;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 100%;
    position: absolute;
    top: -13px;
    right: -13px;
}

.fixed-footer-icons .bag-icon-trigger {
    font-size: 22px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.fixed-footer-icons .user-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fixed-footer-icons .user-icon {
    font-size: 22px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Mobile slide-out cart */
#mobile-slideout-cart {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

#mobile-slideout-cart.open {
    left: 0;
}

/* Ensure modal is not affected by footer positioning */
.modal {
    z-index: 1050; /* Above the footer z-index (10000) */
}

/* Mobile slide-out overlay */
#mobile-slideout-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

#mobile-slideout-overlay.active {
    display: block;
}

#mobile-slideout-cart .cart-header {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mobile-slideout-cart .cart-contents {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

#mobile-slideout-cart .cart-buttons {
    padding: 15px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
}

#mobile-slideout-cart .cart-buttons a {
    display: block;
    margin-bottom: 10px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

#mobile-slideout-cart .cart-buttons a.view-cart-btn {
    background-color: #eee;
    color: #000;
}