/* ============================================
   DESKTOP: Horizontal Dropdown Menu
   ============================================ */

.ag-desktop-nav .ag-desktop-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.ag-desktop-menu .menu-item {
    position: relative;
}

.ag-desktop-menu .menu-item a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    padding: 10px 0;
    white-space: nowrap;
}

/* The Arrow for Desktop */
.ag-desktop-menu .menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 5px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.ag-desktop-menu .menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

/* Submenu background white */
.ag-desktop-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: 4px;
}

.ag-desktop-menu .menu-item:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ag-desktop-menu .sub-menu .menu-item a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
}

.ag-desktop-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -15px;
}


/* ============================================
   MOBILE BURGER BUTTON (left side)
   ============================================ */

.ag-mobile-burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    float: left;
    /* Align to the left in context of some headers */
}

.ag-burger-icon {
    width: 28px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ag-burger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #192b4b;
    border-radius: 2px;
    transition: all 0.35s ease;
}

/* Burger Animation to X */
.ag-mobile-burger-btn.active .ag-burger-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.ag-mobile-burger-btn.active .ag-burger-icon span:nth-child(2) {
    opacity: 0;
}

.ag-mobile-burger-btn.active .ag-burger-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   MOBILE SIDEBAR (Left Slide, Blue)
   ============================================ */

.ag-mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.ag-mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw !important;
    /* User specified 90% of screen */
    max-width: 90vw !important;
    height: 100%;
    background: #192b4b;
    /* User specified blue background */
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    color: #fff;
}

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

.ag-mobile-sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.ag-mobile-sidebar-content {
    padding: 60px 25px;
}

.ag-sidebar-section {
    margin-bottom: 35px;
}

.ag-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ag-category-list,
.ag-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ag-category-list li,
.ag-brand-list li {
    margin-bottom: 12px;
}

.ag-category-list li a,
.ag-brand-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
}

.ag-category-list li a:hover,
.ag-brand-list li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Body lock when sidebar open */
body.ag-sidebar-open {
    overflow: hidden;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .ag-desktop-menu-container {
        display: none !important;
    }

    .ag-mobile-burger-btn {
        display: block;
    }
}