/* Responsive Sidebar Navigation - Modern Implementation */

/* Base Sidebar Styles */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #D4AF37;
    z-index: 1050;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-sidebar.show {
    transform: translateX(0);
    visibility: visible;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Body scroll prevention */
body.sidebar-open {
    overflow: hidden;
}

/* Hamburger button */
.hamburger-toggle {
    background: #D4AF37;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1100;
    position: relative;
}

.hamburger-toggle:hover {
    background: #c4a030;
    transform: scale(1.05);
}

.hamburger-toggle i {
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .hamburger-toggle {
        width: 45px;
        height: 45px;
    }
    .hamburger-toggle i {
        font-size: 1.2rem;
    }
}

/* Content stays in place */
.main-content,
.enhanced-header,
.top-contact-banner,
footer {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Sidebar Header */
.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #000;
    text-decoration: none;
}

.sidebar-logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #000;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.sidebar-brand-text p {
    font-size: 0.75rem;
    margin: 0;
    color: #000;
    font-weight: 500;
}

.sidebar-close-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #000;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: #000;
    color: #D4AF37;
    transform: rotate(90deg);
}

/* Search Bar */
.sidebar-search-form .input-group {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.sidebar-search-form .form-control {
    border: none;
    background: transparent;
    color: #000;
}

.sidebar-search-form .form-control::placeholder {
    color: #333;
}

.sidebar-search-form .btn-light {
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.sidebar-search-form .btn-light:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1.5rem 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    margin: 0.25rem 0;
}

.sidebar-nav-item:hover {
    background: rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    transform: translateX(5px);
}

.sidebar-nav-item.active {
    background: rgba(0, 0, 0, 0.15);
    border-left-color: #000;
    font-weight: 600;
}

/* Sidebar Actions */
.sidebar-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-action-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #000;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-action-item:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: #000;
    transform: translateX(5px);
}

.sidebar-action-item .cart-badge {
    margin-left: auto;
    background: #000;
    color: #D4AF37;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sidebar Contact */
.sidebar-contact {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 0.5rem;
}

.sidebar-whatsapp-btn,
.sidebar-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.sidebar-whatsapp-btn {
    background: #25D366;
    border: 2px solid #25D366;
}

.sidebar-whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
    transform: translateY(-2px);
}

.sidebar-contact-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #000;
}

.sidebar-contact-btn:hover {
    background: #000;
    color: #D4AF37;
    transform: translateY(-2px);
}

.sidebar-whatsapp-btn i,
.sidebar-contact-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .mobile-sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .mobile-sidebar.show {
        transform: translateX(0);
    }

    .bottom-navigation {
        display: flex !important;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 80px;
    }

    footer {
        margin-bottom: 80px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .mobile-sidebar {
        width: 300px;
    }

    .bottom-navigation {
        display: none !important;
    }
}

/* Desktop - hide sidebar */
@media (min-width: 1025px) {
    .mobile-sidebar {
        display: none !important;
    }
    
    .bottom-navigation {
        display: none !important;
    }
    
    .hamburger-toggle {
        display: none !important;
    }
}