/* ========================================
   Navbar & Mega Menu Styles
   ======================================== */

/* === Navbar Base === */
.lemira-navbar {
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 1030;
}

.lemira-navbar .navbar-brand {
    padding: 0;
}

/* === Navigation Links === */
.lemira-navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    font-size: 0.875rem;
}

.lemira-navbar .nav-link::after {
    display: none !important;
}

.lemira-navbar .nav-link:hover,
.lemira-navbar .nav-link:focus,
.lemira-navbar .nav-link:active {
    color: #121A2B;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.lemira-navbar .navbar-nav {
    gap: 0.5rem;
}

/* === Mega Menu === */
.megamenu-item {
    position: static;
}

.megamenu-item .megamenu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.megamenu-item:hover .megamenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.megamenu {
    width: 100%;
    left: 0;
    right: 0;
    border: none;
    border-top: 3px solid #121A2B;
    border-radius: 0;
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    position: absolute;
    background: #fff;
}

/* Megamenu Grid - No custom spacing, use Bootstrap only */

/* Megamenu Column */
.megamenu-column {
    margin-bottom: 0;
    padding: 0;
}

/* Parent Category Title */
.megamenu-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #121A2B;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #f0f0f0;
}

.megamenu-title a {
    color: #121A2B;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.megamenu-title a:hover {
    color: #B89B16;
}

.megamenu-title .count {
    font-size: 0.7rem;
    color: #999;
    font-weight: 400;
}

/* Child Categories List */
.megamenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-list li {
    margin-bottom: 0.2rem;
}

.megamenu-list li:last-child {
    margin-bottom: 0;
}

.megamenu-list a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    display: block;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 0.9rem;
}

.megamenu-list a::before {
    content: '←';
    position: absolute;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.megamenu-list a:hover {
    background: #f8f9fa;
    color: #121A2B;
    padding-right: 1.5rem;
}

.megamenu-list a:hover::before {
    opacity: 1;
}

/* Megamenu Footer */
.megamenu-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.megamenu-footer .btn {
    padding: 0.4rem 1.5rem;
    font-size: 0.85rem;
}

/* Remove old styles */
.megamenu-row {
    display: none;
}

.megamenu-parent {
    display: none;
}

.megamenu-children {
    display: none;
}

.parent-category-link {
    display: none;
}

.child-category-link {
    display: none;
}

.megamenu-view-all {
    display: none;
}

/* === Mobile Sidebar === */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-sidebar-header img {
    height:45px !important;
}

.mobile-sidebar-content {
    padding: 1.25rem;
}

.mobile-user-info {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu > li > a:hover {
    color: #121A2B;
    padding-right: 1rem;
}

.mobile-menu svg {
    transition: transform 0.3s ease;
}

.mobile-menu .has-submenu.active > a svg {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0 0 0 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu .has-submenu.active .mobile-submenu {
    max-height: 500px;
    padding-bottom: 1rem;
}

.mobile-submenu li {
    margin-bottom: 0.5rem;
}

.mobile-submenu a {
    display: block;
    padding: 0.5rem 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.mobile-submenu a:hover {
    background: #f8f9fa;
    color: #121A2B;
    padding-right: 1rem;
}

.mobile-submenu .view-all {
    color: #121A2B;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1040;
}

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

/* === Icon Buttons === */
.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-radius: 8px;
}


/* === Search Modal === */
#searchModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#searchModal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}

#searchModal .form-control:focus {
    border-color: #000000;
    box-shadow: none;
}

#searchModal .btn-dark {
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1.5rem;
    background-color: #000000;
}

/* === Cart Badge === */
.cart-count-badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.4rem !important;
}

/* Prevent body scroll when sidebar is open */
body.mobile-sidebar-open {
    overflow: hidden;
}
