/* 
   Mobile Menu Styles - Separate file for easier maintenance
*/

/* Hide mobile elements by default (for desktop) */
.mobile-toggle, .hamburger, .mobile-menu, .overlay {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile Toggle Button */
    .mobile-toggle {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        background-color: transparent;
        color: #fff;
        cursor: pointer;
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        font-size: 18px;
        padding: 5px;
        pointer-events: all;
    }
    
    /* Hamburger icon */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 35px;
        height: 35px;
        cursor: pointer;
        position: relative;
        background-color: #111;
        padding: 8px;
        border-radius: 4px;
        border: 1px solid rgba(255, 102, 0, 0.5);
        box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
        pointer-events: all;
    }
    
    .hamburger span {
        display: block !important;
        width: 22px;
        height: 3px;
        background-color: #ff6600;
        transition: all 0.3s ease;
        border-radius: 2px;
        pointer-events: none;
    }
    
    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Menu */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background-color: #f5f5f5;
        z-index: 1000;
        padding: 20px;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
    
    .mobile-menu-logo {
        height: 40px;
    }
    
    .mobile-menu-logo img {
        height: 100%;
        width: auto;
    }
    
    .mobile-menu-close {
        color: #333;
        font-size: 22px;
        cursor: pointer;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .mobile-menu-close:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* Mobile Menu Items */
    .mobile-menu-items {
        width: 100%;
    }
    
    .mobile-menu-items a {
        display: flex;
        align-items: center;
        padding: 14px 10px;
        color: #333;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #e0e0e0;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-items a i {
        margin-right: 15px;
        width: 24px;
        text-align: center;
        color: #666;
        font-size: 18px;
    }
    
    .mobile-menu-items a:hover {
        background-color: rgba(0, 0, 0, 0.03);
        padding-left: 15px;
        color: #ff6600;
    }
    
    .mobile-menu-items a:hover i {
        color: #ff6600;
    }
    
    .mobile-menu-items a:active {
        background-color: rgba(255, 102, 0, 0.1);
    }
    
    /* Hide regular navigation and show mobile navigation */
    .nav-list, .store-actions {
        display: none;
    }
    
    .main-nav .container {
        flex-direction: row;
        justify-content: flex-end;
    }
    
    /* Adjust header content for mobile */
    .header-content {
        position: relative;
        justify-content: space-between;
        padding: 10px 5px;
        gap: 10px;
    }
    
    /* Logo positioning for mobile */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 50;
    }
    
    .logo img {
        height: 50px;
        width: auto;
    }
    
    /* Hide user actions in mobile view */
    .user-actions {
        display: none;
    }
    
    /* Adjust search bar for mobile */
    .search-bar {
        display: none;
    }
    
    /* Additional mobile styles for products page */
    .product-filter {
        padding: 15px 0;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-banner {
        padding: 40px 15px;
    }
    
    .page-banner h1 {
        margin-bottom: 10px;
        font-size: 32px;
        padding-bottom: 10px;
    }
    
    .page-banner h1::after {
        width: 60px;
        height: 2px;
    }
    
    .breadcrumb {
        font-size: 14px;
        margin-top: 15px;
    }
    
    /* Product cards styling for mobile */
    .product-card {
        margin-bottom: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .buy-now {
        margin-top: 10px;
        padding: 8px 15px;
    }
    
    /* Header adjustments for mobile */
    header {
        padding: 15px 0;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    /* Main nav for mobile */
    .main-nav {
        display: none;
    }
    
    /* About content mobile spacing */
    .about-content {
        padding: 40px 0;
    }
    
    .accordion-item {
        margin-bottom: 15px;
    }
    
    .accordion-header {
        font-size: 16px;
        padding: 15px 18px;
    }
    
    .accordion-header i {
        font-size: 14px;
    }
    
    .accordion-content p,
    .accordion-content ol,
    .accordion-content .rashi-grid,
    .accordion-content .health-benefits {
        padding: 15px 18px;
    }
    
    /* Benefits section mobile */
    .benefits-section {
        padding: 40px 0;
    }
    
    .benefits-grid {
        gap: 20px;
        padding: 0 10px;
    }
    
    .benefit-card {
        padding: 30px 20px;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-icon i {
        font-size: 28px;
    }
    
    .benefit-card h3 {
        font-size: 18px;
        margin: 15px 0 10px;
    }
    
    .benefit-card p {
        font-size: 13px;
    }
}