/* =========================================================
   AL ASIF TRADERS
   PREMIUM MIDDLE BAR + MOBILE SIDEBAR
   =========================================================

   File:
   includes/css/middlebar.css

   Includes:
   - Desktop main header
   - Logo
   - Desktop navigation
   - Search
   - Cart
   - Account dropdown
   - Mobile header
   - Mobile menu button
   - Mobile off-canvas sidebar
   - Mobile search
   - Mobile navigation
   - Mobile categories
   - Nested categories
   - Mobile account
   - Overlay
   - Responsive design
   - Accessibility
   ========================================================= */


/* =========================================================
   MIDDLE BAR
   ========================================================= */

.middle-bar {

    width: 100%;

    min-height: var(--middlebar-height, 82px);

    background: #ffffff;

    border-bottom: 1px solid var(--border-light, #eef1f4);

    position: relative;

    z-index: 100;

}


/* =========================================================
   MIDDLE WRAPPER
   ========================================================= */

.middle-wrapper {

    width: 100%;

    min-height: var(--middlebar-height, 82px);

    display: flex;

    align-items: center;

    gap: 22px;

}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-toggle {

    display: none;

    width: 46px;
    height: 46px;

    min-width: 46px;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: 1px solid var(--border, #e5e7eb);

    border-radius: 10px;

    background: #f8fafc;

    color: var(--black, #111827);

    cursor: pointer;

    font-size: 23px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;

}


.mobile-toggle:hover {

    background: var(--primary, #16a34a);

    border-color: var(--primary, #16a34a);

    color: #ffffff;

}


.mobile-toggle:active {

    transform: scale(0.95);

}


/* =========================================================
   SITE LOGO
   ========================================================= */

.site-logo {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;

    min-width: 235px;

    color: var(--black, #111827);

    text-decoration: none;

}


.site-logo img {

    width: auto;

    height: 58px;

    max-width: 90px;

    object-fit: contain;

    flex-shrink: 0;

    transition: transform 0.3s ease;

}


.site-logo:hover {

    color: var(--black, #111827);

}


.site-logo:hover img {

    transform: scale(1.04);

}


/* =========================================================
   LOGO CONTENT
   ========================================================= */

.logo-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

}


.logo-content h2,
.logo-content h4 {

    margin: 0;

    color: var(--black, #111827);

    font-size: 21px;

    font-weight: 800;

    line-height: 1.15;

    white-space: nowrap;

}


.logo-content small {

    display: block;

    margin-top: 4px;

    color: var(--text-light, #6b7280);

    font-size: 11px;

    font-weight: 500;

    line-height: 1.2;

    white-space: nowrap;

}


/* =========================================================
   DESKTOP MAIN NAVIGATION
   ========================================================= */

.middle-nav {

    flex-shrink: 0;

}


.middle-nav ul {

    display: flex;

    align-items: center;

    gap: 2px;

    margin: 0;

    padding: 0;

    list-style: none;

}


.middle-nav li {

    margin: 0;

    padding: 0;

}


.middle-nav li a {

    min-height: 46px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 0 12px;

    border-radius: 9px;

    color: var(--text, #374151);

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease;

}


.middle-nav li a i {

    color: var(--primary, #16a34a);

    font-size: 16px;

    transition: transform 0.25s ease;

}


.middle-nav li a:hover {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


.middle-nav li a:hover i {

    transform: translateY(-1px);

}


/* =========================================================
   ACTIVE DESKTOP NAVIGATION
   ========================================================= */

.middle-nav li a.active {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


.middle-nav li a.active i {

    color: var(--primary, #16a34a);

}


/* =========================================================
   SEARCH AREA
   ========================================================= */

.middle-search {

    flex: 1;

    min-width: 160px;

    max-width: 520px;

}


/* =========================================================
   SEARCH FORM

   IMPORTANT:
   PHP uses:
   <form class="search-box">
   ========================================================= */

.middle-search .search-box {

    width: 100%;

    height: 48px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    margin: 0;

    border: 2px solid #e9ecef;

    border-radius: 50px;

    background: #ffffff;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;

}


.middle-search .search-box:focus-within {

    border-color: var(--primary, #16a34a);

    box-shadow:
        0 0 0 4px rgba(22, 163, 74, 0.10);

}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.middle-search .search-box input {

    width: 100%;

    height: 100%;

    min-width: 0;

    padding: 0 58px 0 19px;

    border: none;

    outline: none;

    background: transparent;

    color: var(--black, #111827);

    font-family: inherit;

    font-size: 13px;

}


.middle-search .search-box input::placeholder {

    color: #a1a7af;

}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.middle-search .search-box .search-btn {

    position: absolute;

    top: 4px;

    right: 4px;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: var(--primary, #16a34a);

    color: #ffffff;

    cursor: pointer;

    font-size: 16px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


.middle-search .search-box .search-btn:hover {

    background: var(--primary-dark, #15803d);

    transform: scale(1.05);

}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.middle-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;

}


.action-item {

    position: relative;

    flex-shrink: 0;

}


/* =========================================================
   ACTION BUTTON
   ========================================================= */

.action-btn {

    position: relative;

    width: 46px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: 1px solid var(--border, #e5e7eb);

    border-radius: 50%;

    background: #f8fafc;

    color: var(--black, #111827);

    text-decoration: none;

    font-size: 20px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.action-btn:hover {

    background: var(--primary, #16a34a);

    border-color: var(--primary, #16a34a);

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);

}


.action-btn i {

    line-height: 1;

}


/* =========================================================
   CART BADGE
   ========================================================= */

.middle-actions .cart-count {

    position: absolute;

    top: -5px;

    right: -4px;

    min-width: 21px;

    height: 21px;

    padding: 0 5px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #ef4444;

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    z-index: 5;

    animation: cartBadgePulse 2s infinite;

}


@keyframes cartBadgePulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================================================
   ACCOUNT DROPDOWN
   ========================================================= */

.middle-actions .dropdown {

    position: relative;

}


.middle-actions .account-btn {

    cursor: pointer;

}


/* =========================================================
   ACCOUNT DROPDOWN MENU
   ========================================================= */

.middle-actions .dropdown-menu {

    min-width: 220px;

    margin-top: 10px !important;

    padding: 8px;

    border: 1px solid var(--border, #e5e7eb);

    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

}


.middle-actions .dropdown-header {

    padding: 9px 11px;

    color: var(--text-light, #6b7280);

    font-size: 12px;

    font-weight: 600;

}


.middle-actions .dropdown-item {

    display: flex;

    align-items: center;

    min-height: 40px;

    padding: 9px 11px;

    border-radius: 8px;

    color: var(--text, #374151);

    font-size: 13px;

    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.middle-actions .dropdown-item:hover {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


.middle-actions .dropdown-item.text-danger:hover {

    background: #fef2f2;

    color: #dc2626;

}


.middle-actions .dropdown-divider {

    margin: 6px 0;

    border-color: var(--border, #e5e7eb);

}


/* =========================================================
   =========================================================
   MOBILE SIDEBAR
   =========================================================
   ========================================================= */


/* =========================================================
   SIDEBAR
   ========================================================= */

.mobile-sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;

    background: #ffffff;

    z-index: 99999;

    overflow-x: hidden;
    overflow-y: auto;

    transform: translateX(-100%);

    visibility: hidden;

    opacity: 0;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        visibility 0.3s ease;

    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.18);

    display: flex;
    flex-direction: column;
}

/* =========================================================
   SIDEBAR OPEN
   ========================================================= */

.mobile-sidebar.show,
.mobile-sidebar.active,
body.mobile-menu-open .mobile-sidebar {

    transform: translateX(0);

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}


/* =========================================================
   MOBILE SIDEBAR HEADER
   ========================================================= */

.mobile-header {

    flex-shrink: 0;

    padding: 15px 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fff8 100%
        );

    border-bottom: 1px solid #edf0f2;

}


/* =========================================================
   MOBILE BRAND
   ========================================================= */

.mobile-brand {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.mobile-logo {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 11px;

    color: var(--black, #111827);

    text-decoration: none;

}


.mobile-logo:hover {

    color: var(--black, #111827);

}


.mobile-logo img {

    width: 52px;

    height: 52px;

    flex-shrink: 0;

    object-fit: contain;

    border-radius: 10px;

}


.mobile-logo > div {

    min-width: 0;

    display: flex;

    flex-direction: column;

}


.mobile-logo strong {

    overflow: hidden;

    color: var(--black, #111827);

    font-size: 15px;

    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.mobile-logo small {

    margin-top: 3px;

    overflow: hidden;

    color: var(--text-light, #6b7280);

    font-size: 10px;

    font-weight: 500;

    line-height: 1.2;

    white-space: nowrap;

    text-overflow: ellipsis;

}


/* =========================================================
   MOBILE CLOSE BUTTON
   ========================================================= */

.btn-close-mobile {
    position: relative;

    z-index: 100001;

    width: 42px;

    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #f8fafc;

    color: #111827;

    cursor: pointer;

    font-size: 17px;

    line-height: 1;

    padding: 0;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn-close-mobile:hover {
    background: var(--primary, #16a34a);

    border-color: var(--primary, #16a34a);

    color: #ffffff;

    transform: rotate(90deg);
}

.btn-close-mobile:active {
    transform: scale(0.94);
}




/* =========================================================
   MOBILE SEARCH
   ========================================================= */

.mobile-search {

    flex-shrink: 0;

    padding: 12px 14px;

    background: #ffffff;

    border-bottom: 1px solid #f0f2f4;

}


.mobile-search-form {

    width: 100%;

    height: 44px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid #e3e7eb;

    border-radius: 12px;

    background: #f8fafc;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

}


.mobile-search-form:focus-within {

    border-color: var(--primary, #16a34a);

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.09);

}


.mobile-search-form input {

    width: 100%;

    height: 100%;

    min-width: 0;

    padding: 0 48px 0 14px;

    border: none;

    outline: none;

    background: transparent;

    color: var(--black, #111827);

    font-family: inherit;

    font-size: 13px;

}


.mobile-search-form input::placeholder {

    color: #9ca3af;

}


.mobile-search-form button {

    position: absolute;

    top: 4px;

    right: 4px;

    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 9px;

    background: var(--primary, #16a34a);

    color: #ffffff;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


.mobile-search-form button:hover {

    background: var(--primary-dark, #15803d);

}


.mobile-search-form button:active {

    transform: scale(0.94);

}


/* =========================================================
   MOBILE MAIN NAVIGATION
   ========================================================= */

.mobile-navigation {

    flex-shrink: 0;

    padding: 8px 12px;

    background: #ffffff;

    border-bottom: 1px solid #eef0f2;

}


.mobile-main-menu {

    margin: 0;

    padding: 0;

    list-style: none;

}


.mobile-main-menu li {

    margin: 0;

    padding: 0;

}


.mobile-main-menu li a {

    min-height: 46px;

    display: flex;

    align-items: center;

    padding: 0 12px;

    border-radius: 10px;

    color: #374151;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.mobile-main-menu li a span {

    display: flex;

    align-items: center;

    gap: 11px;

}


.mobile-main-menu li a i {

    width: 22px;

    text-align: center;

    color: var(--primary, #16a34a);

    font-size: 17px;

}


.mobile-main-menu li a:hover,
.mobile-main-menu li a.active {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


/* =========================================================
   MOBILE CATEGORY SECTION
   ========================================================= */

.mobile-category-section {

    padding: 0 12px 10px;

    background: #ffffff;

}


.mobile-section-title {

    min-height: 45px;

    display: flex;

    align-items: center;

    padding: 0 10px;

    color: #111827;

    border-bottom: 1px solid #eef0f2;

}


.mobile-section-title span {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #111827;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;

    text-transform: uppercase;

}


.mobile-section-title i {

    color: var(--primary, #16a34a);

    font-size: 16px;

}


/* =========================================================
   MOBILE CATEGORY LIST
   ========================================================= */

.mobile-category-list {

    margin: 0;

    padding: 0;

    list-style: none;

}


.mobile-category-item {

    margin: 0;

    padding: 0;

    border-bottom: 1px solid #f0f2f4;

}


.mobile-category-item:last-child {

    border-bottom: none;

}


/* =========================================================
   CATEGORY ROW
   ========================================================= */

.mobile-category-row {

    min-height: 50px;

    display: flex;

    align-items: center;

}


.mobile-category-link {

    min-width: 0;

    flex: 1;

    min-height: 50px;

    display: flex;

    align-items: center;

    padding: 0 8px;

    color: #374151;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;

}


.mobile-category-link:hover {

    color: var(--primary, #16a34a);

}


.mobile-category-title {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 11px;

}


.mobile-category-title i {

    width: 23px;

    flex-shrink: 0;

    text-align: center;

    color: var(--primary, #16a34a);

    font-size: 16px;

}


.mobile-category-title span {

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

}


/* =========================================================
   CATEGORY TOGGLE
   ========================================================= */

.mobile-category-toggle {

    width: 40px;

    height: 40px;

    min-width: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 2px;

    padding: 0;

    border: none;

    border-radius: 9px;

    background: transparent;

    color: #6b7280;

    cursor: pointer;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.25s ease;

}


.mobile-category-toggle:hover {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


.mobile-category-toggle i {

    transition: transform 0.25s ease;

}


/* =========================================================
   OPEN CATEGORY
   ========================================================= */

.mobile-category-item.opened > .mobile-category-row
.mobile-category-toggle i {

    transform: rotate(180deg);

}


.mobile-category-item.opened > .mobile-category-row
.mobile-category-link {

    color: var(--primary, #16a34a);

}


/* =========================================================
   MOBILE SUBCATEGORY
   ========================================================= */

.mobile-subcategory {

    max-height: 0;

    overflow: hidden;

    background: #f8fafc;

    transition:
        max-height 0.3s ease;

}


.mobile-category-item.opened > .mobile-subcategory {

    max-height: 1000px;

}


/* =========================================================
   NESTED CATEGORY
   ========================================================= */

.mobile-subcategory .mobile-category-list {

    padding-left: 12px;

    border-left: 2px solid #dcfce7;

    margin-left: 13px;

}


.mobile-subcategory .mobile-category-row {

    min-height: 45px;

}


.mobile-subcategory .mobile-category-link {

    min-height: 45px;

    font-size: 12px;

    font-weight: 500;

}


.mobile-subcategory .mobile-category-title i {

    font-size: 14px;

}


/* =========================================================
   EMPTY CATEGORY
   ========================================================= */

.mobile-empty-category {

    padding: 25px 10px;

    text-align: center;

    color: #9ca3af;

}


.mobile-empty-category i {

    display: block;

    margin-bottom: 8px;

    font-size: 28px;

}


.mobile-empty-category p {

    margin: 0;

    font-size: 12px;

}


/* =========================================================
   MOBILE ACCOUNT SECTION
   ========================================================= */

.mobile-account-section {

    margin-top: 4px;

    padding: 10px 12px 18px;

    border-top: 7px solid #f5f7f8;

    background: #ffffff;

}


.mobile-account-section > a {

    min-height: 46px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 0 11px;

    border-radius: 10px;

    color: #374151;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.mobile-account-section > a:hover {

    background: var(--primary-soft, #f0fdf4);

    color: var(--primary, #16a34a);

}


.mobile-account-section > a i {

    width: 22px;

    text-align: center;

    color: var(--primary, #16a34a);

    font-size: 17px;

}


/* =========================================================
   MOBILE ACCOUNT USER
   ========================================================= */

.mobile-account-user {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 8px;

    padding: 12px;

    border: 1px solid #e9f5ed;

    border-radius: 12px;

    background: #f7fff8;

}


.mobile-account-user > i {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #dcfce7;

    color: var(--primary, #16a34a);

    font-size: 19px;

}


.mobile-account-user > div {

    min-width: 0;

    display: flex;

    flex-direction: column;

}


.mobile-account-user strong {

    overflow: hidden;

    color: #111827;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;

    text-overflow: ellipsis;

}


.mobile-account-user small {

    margin-top: 2px;

    color: #6b7280;

    font-size: 10px;

}


/* =========================================================
   MOBILE LOGOUT
   ========================================================= */

.mobile-account-section .mobile-logout {

    margin-top: 5px;

    color: #dc2626;

}


.mobile-account-section .mobile-logout i {

    color: #dc2626;

}


.mobile-account-section .mobile-logout:hover {

    background: #fef2f2;

    color: #dc2626;

}


/* =========================================================
   MOBILE OVERLAY
   ========================================================= */

.mobile-overlay {

    position: fixed;

    inset: 0;

    background: rgba(15, 23, 42, 0.52);

    backdrop-filter: blur(2px);

    -webkit-backdrop-filter: blur(2px);

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    z-index: 1900;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

}


/* =========================================================
   OVERLAY OPEN
   ========================================================= */

.mobile-overlay.show,
.mobile-overlay.active,
body.mobile-menu-open .mobile-overlay {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}


/* =========================================================
   PREVENT PAGE SCROLL WHEN SIDEBAR OPEN
   ========================================================= */

body.mobile-menu-open {

    overflow: hidden;

}


/* =========================================================
   =========================================================
   RESPONSIVE DESKTOP
   =========================================================
   ========================================================= */


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (max-width: 1300px) {

    .middle-wrapper {

        gap: 15px;

    }


    .site-logo {

        min-width: 205px;

    }


    .middle-nav li a {

        padding: 0 9px;

        font-size: 12px;

    }


    .middle-search {

        max-width: 430px;

    }

}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1100px) {

    .middle-wrapper {

        gap: 10px;

    }


    .site-logo {

        min-width: 190px;

        gap: 9px;

    }


    .site-logo img {

        height: 52px;

        max-width: 75px;

    }


    .logo-content h2,
    .logo-content h4 {

        font-size: 18px;

    }


    .logo-content small {

        font-size: 10px;

    }


    .middle-nav li a {

        padding: 0 7px;

        gap: 5px;

        font-size: 11px;

    }


    .middle-nav li a i {

        font-size: 14px;

    }


    .middle-search {

        max-width: 340px;

    }


    .action-btn {

        width: 43px;

        height: 43px;

        font-size: 18px;

    }

}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 992px) {

    /* -----------------------------------------------
       Main header
       ----------------------------------------------- */

    .middle-bar {

        min-height: 0;

        padding: 10px 0 12px;

    }


    .middle-wrapper {

        min-height: 0;

        display: flex;

        flex-wrap: wrap;

        align-items: center;

        gap: 10px;

    }


    /* -----------------------------------------------
       Mobile menu
       ----------------------------------------------- */

    .mobile-toggle {

        display: flex;

        order: 1;

    }


    /* -----------------------------------------------
       Logo
       ----------------------------------------------- */

    .site-logo {

        order: 2;

        flex: 1;

        min-width: 0;

        max-width: none;

    }


    .site-logo img {

        height: 48px;

        max-width: 75px;

    }


    .logo-content {

        display: none;

    }


    /* -----------------------------------------------
       Desktop navigation hidden
       ----------------------------------------------- */

    .middle-nav {

        display: none;

    }


    /* -----------------------------------------------
       Actions
       ----------------------------------------------- */

    .middle-actions {

        order: 3;

        gap: 7px;

    }


    .action-btn {

        width: 43px;

        height: 43px;

        font-size: 18px;

    }


    /* -----------------------------------------------
       Search
       ----------------------------------------------- */

    .middle-search {

        order: 4;

        flex: 0 0 100%;

        width: 100%;

        max-width: none;

        min-width: 0;

    }


    .middle-search .search-box {

        height: 46px;

    }


    /* -----------------------------------------------
       Sidebar available on mobile
       ----------------------------------------------- */

    .mobile-sidebar {

        display: flex;

    }


    .mobile-overlay {

        display: block;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .middle-bar {

        padding: 9px 0 11px;

    }


    .middle-wrapper {

        gap: 8px;

    }


    .mobile-toggle {

        width: 42px;

        height: 42px;

        min-width: 42px;

        font-size: 21px;

    }


    .site-logo img {

        height: 44px;

        max-width: 70px;

    }


    .middle-actions {

        gap: 6px;

    }


    .action-btn {

        width: 41px;

        height: 41px;

        font-size: 17px;

    }


    .middle-actions .cart-count {

        top: -4px;

        right: -4px;

        min-width: 19px;

        height: 19px;

        font-size: 9px;

    }


    .middle-search .search-box {

        height: 44px;

    }


    .middle-search .search-box input {

        padding-left: 15px;

        padding-right: 55px;

        font-size: 12px;

    }


    .middle-search .search-box .search-btn {

        width: 36px;

        height: 36px;

        top: 3px;

        right: 3px;

        font-size: 14px;

    }


    .mobile-sidebar {

        width: min(360px, 90vw);

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .middle-bar {

        padding: 8px 0 10px;

    }


    .middle-wrapper {

        gap: 7px;

    }


    .mobile-toggle {

        width: 40px;

        height: 40px;

        min-width: 40px;

        border-radius: 9px;

        font-size: 20px;

    }


    .site-logo img {

        height: 40px;

        max-width: 62px;

    }


    .middle-actions {

        gap: 5px;

    }


    .action-btn {

        width: 39px;

        height: 39px;

        font-size: 16px;

    }


    .middle-actions .dropdown-menu {

        position: absolute;

        right: 0;

        min-width: 195px;

    }


    .mobile-sidebar {

        width: min(340px, 92vw);

    }


    .mobile-header {

        padding: 13px 13px;

    }


    .mobile-logo img {

        width: 46px;

        height: 46px;

    }


    .mobile-logo strong {

        font-size: 14px;

    }


    .mobile-logo small {

        font-size: 9px;

    }


    .btn-close-mobile {

        width: 38px;

        height: 38px;

        min-width: 38px;

    }


    .mobile-search {

        padding: 10px 12px;

    }


    .mobile-search-form {

        height: 42px;

    }


    .mobile-search-form button {

        width: 34px;

        height: 34px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .mobile-toggle {

        width: 38px;

        height: 38px;

        min-width: 38px;

    }


    .site-logo img {

        height: 37px;

        max-width: 56px;

    }


    .action-btn {

        width: 37px;

        height: 37px;

        font-size: 15px;

    }


    .middle-actions {

        gap: 3px;

    }


    .mobile-sidebar {

        width: 94vw;

    }


    .mobile-logo img {

        width: 42px;

        height: 42px;

    }


    .mobile-category-link {

        font-size: 12px;

    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.mobile-toggle:focus-visible,
.action-btn:focus-visible,
.btn-close-mobile:focus-visible,
.mobile-search-form input:focus-visible,
.mobile-search-form button:focus-visible,
.mobile-main-menu a:focus-visible,
.mobile-category-link:focus-visible,
.mobile-category-toggle:focus-visible,
.mobile-account-section a:focus-visible {

    outline: 3px solid rgba(22, 163, 74, 0.25);

    outline-offset: 2px;

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mobile-sidebar,
    .mobile-overlay,
    .mobile-category-toggle i,
    .mobile-subcategory,
    .mobile-toggle,
    .action-btn,
    .middle-nav li a,
    .mobile-main-menu li a,
    .mobile-category-link,
    .mobile-account-section a,
    .search-btn {

        transition: none !important;

    }


    .middle-actions .cart-count {

        animation: none;

    }

}