/* Hide horizontal category pills — navigation lives in the drawer */
.pro_category.category-navigation-wrapper,
.pro_category.fashion-category-nav,
nav.fashion-category-nav.pro_category {
    display: none !important;
}

/* Nav drawer overlay */
.nav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Side drawer */
.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #fff;
    z-index: 10051;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.nav-drawer.is-open {
    transform: translateX(0);
}

body.nav-drawer-open {
    overflow: hidden;
}

.nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-drawer__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    max-width: calc(100% - 44px);
}

.nav-drawer__logo {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.nav-drawer__brand-text {
    font-size: 16px;
    font-weight: 600;
}

.nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: #111;
}

.nav-drawer__close:hover {
    background: rgba(0, 0, 0, 0.06);
}

.nav-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 24px;
}

.nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-drawer__list--primary > li > .nav-drawer__link {
    font-size: 16px;
    font-weight: 500;
}

.nav-drawer__link {
    display: block;
    padding: 14px 20px;
    color: #111;
    text-decoration: none;
    transition: background 0.15s ease;
}

.nav-drawer__link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-drawer__link.is-active {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
}

.nav-drawer__section {
    margin-top: 4px;
}

.nav-drawer__section-label {
    display: block;
    padding: 12px 20px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
}

.nav-drawer__list--nested .nav-drawer__link {
    padding: 11px 20px 11px 28px;
    font-size: 15px;
    font-weight: 400;
}

.nav-drawer__footer {
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-drawer__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.nav-drawer__contact svg {
    color: #25D366;
}

.nav-drawer__copyright {
    margin: 0;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
}

/* Header: hamburger + centered logo layout */
.site-header .header-container--primary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-header .nav-drawer-toggle {
    grid-column: 1;
    justify-self: start;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--theme-color, #111);
    padding: 0;
}

.site-header .nav-drawer-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.site-header .nav-drawer-toggle svg {
    display: block;
}

.site-header .header-container--primary .header-logo {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.site-header .header-container--primary .header-logo h1 {
    margin: 0;
    min-width: 0;
    max-width: 100%;
}

.site-header .header-container--primary .header-logo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(200px, calc(100vw - 156px));
    min-width: 0;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
}

.site-header .header-container--primary .header-logo__img {
    display: block;
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.site-header .header-container--primary .header-text-logo {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.site-header .header-container--primary .header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.site-header .header-container--primary .header-icon-btn {
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.site-header .header-search-row {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 12px;
}

.site-header .header-search-row .header-search-desktop {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.site-header .header-container--primary:has(.location-trigger-btn) {
    grid-template-columns: 44px auto minmax(0, 1fr) auto;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) {
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
}

.site-header .header-container--primary:has(.location-trigger-btn) .nav-drawer-toggle {
    grid-column: 1;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .nav-drawer-toggle {
    grid-column: auto !important;
}

.site-header .header-container--primary:has(.location-trigger-btn) .location-trigger-btn {
    grid-column: 2;
    justify-self: start;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .location-trigger-btn {
    grid-column: 1 / -1 !important;
    justify-self: stretch;
}

.site-header .header-container--primary:has(.location-trigger-btn) .header-logo {
    grid-column: 3;
    justify-self: center;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .header-logo {
    grid-column: auto !important;
}

.site-header .header-container--primary:has(.location-trigger-btn) .header-actions {
    grid-column: 4;
    justify-self: end;
}

body[class*="theme1-v"] .food-app-shell .site-header .header-container--primary:has(.location-trigger-btn) .header-actions {
    grid-column: auto !important;
}

@media (max-width: 767px) {
    .site-header .header-container--primary {
        padding: 8px 12px !important;
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
        gap: 6px !important;
    }

    .site-header .header-container--primary:has(.location-trigger-btn) {
        grid-template-columns: 40px minmax(0, 1fr) auto !important;
    }

    .site-header .header-container--primary .location-trigger-btn {
        display: none;
    }

    .site-header .header-container--primary .header-logo {
        grid-column: 2 !important;
    }

    .site-header .header-container--primary .header-actions {
        grid-column: 3 !important;
        gap: 4px !important;
    }

    .site-header .header-container--primary .nav-drawer-toggle {
        grid-column: 1 !important;
        width: 36px;
        height: 36px;
    }

    .site-header .header-container--primary .header-logo__link {
        max-width: min(140px, calc(100vw - 132px));
    }

    .site-header .header-container--primary .header-logo__img {
        max-height: 32px !important;
    }

    .site-header .header-container--primary .header-text-logo {
        font-size: 13px;
    }

    .site-header .header-container--primary .header-icon-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .site-header .header-search-row {
        display: none;
    }
}

@media (min-width: 768px) {
    .site-header .header-container:not(.header-container--primary):not(.header-search-row) {
        display: none;
    }

    /* Hide desktop search row on all themes (fashion already hidden via fashion-shell) */
    .site-header .header-search-row {
        display: none !important;
    }
}

.fashion-shell .site-header .nav-drawer-toggle,
.fashion-shell .site-header .header-actions {
    color: #111;
}

body[class*="theme1-v"] .site-header .nav-drawer-toggle {
    color: #1a0f08;
}
