/* Cart Styles */
.cart-dropdown-content {
    min-width: 300px;
    padding: 15px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4136;
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 11px;
}

.cart-list .total {
    padding: 15px;
    border-top: 1px solid #eee;
}

.cart-list .btn-cart {
    margin: 5px;
    padding: 8px 15px;
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sidebar Fixes */
.side {
    position: fixed;
    right: -380px;
    top: 0;
    width: 320px;
    max-width: 80%;
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
    transition: all 0.4s ease-in-out;
}

.side.on {
    right: 0;
}

.close-side {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
}

.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.overlay-screen.active {
    visibility: visible;
    opacity: 1;
}

/* Make sure mobile menu buttons always visible */
.navbar-toggle {
    display: block;
    margin-right: 0;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile navigation adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        padding: 30px 15px;
        transition: all 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse.show {
        left: 0;
    }
    
    .navbar-collapse img {
        display: block;
        margin: 0 auto 20px;
        max-width: 150px;
    }
    
    .navbar-collapse .navbar-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .navbar-brand-left {
        display: flex;
        align-items: center;
    }
    
    .navbar-nav {
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav > li > a {
        padding: 12px 15px;
        display: block;
        color: #333;
    }
}

/* Banner fixes */
.swiper-slide.banner-style-three {
    background-size: cover;
    background-position: center;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #49a760;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 