/* ==========================================================================
   RigelSphere Header – Standalone Component Stylesheet
   ========================================================================== */

:root {
    --gold: #ffd700;
    --gold-hover: #e6c200;
    --dark: #000000;
    --dark-alt: #111111;
    --text-light: #dddddd;
    --text-muted: #aaaaaa;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border-light: #dddddd;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-dropdown: 0 15px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --transition: 0.25s ease;
    --font-base: Arial, Helvetica, sans-serif;
}

.site-header,
.site-header *,
.mobile-drawer,
.mobile-drawer *,
.modal,
.modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-header {
    position: relative;
    z-index: 1100;
    font-family: var(--font-base);
    width: 100%;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2%;
}

.utility-bar {
    background: var(--dark);
    color: var(--text-light);
    font-size: 13px;
    padding: 6px 0;
}

.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2%;
}

.utility-left span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-right: 25px;
}

.utility-left span i,
.utility-link i {
    color: #f4b400;
}

.utility-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.utility-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.utility-link:hover { color: #f4b400; }

.main-header {
    background: var(--dark);
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    gap: 16px;
    position: relative;
}

@media (min-width: 1025px) {
    .mobile-drawer {
        display: none !important;
    }

    .shop-categories-btn {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
    }

    .location-overlay-head,
    .location-overlay-backdrop {
        display: none !important;
    }

    .search-location-wrapper {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .location-selector {
        order: 1;
        flex: 0 0 auto;
    }

    .search-wrapper {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 52px;
    width: auto;
    max-width: 220px;
    display: block;
}

.search-location-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.search-wrapper {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.search-form {
    display: flex;
    width: 100%;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-form:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}

.search-form input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 14px;
    font-family: var(--font-base);
    font-size: 14.5px;
    color: #333;
    background: transparent;
}

.search-form input::placeholder { color: #999; opacity: 1; }

.search-btn {
    flex: 0 0 48px;
    width: 48px;
    height: 40px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.search-btn:hover { background: var(--gold-hover); }

/* Desktop compact location control — blends into black header */
.location-selector {
    position: static;
    flex: 0 0 auto;
    width: auto;
    max-width: 280px;
    min-width: 0;
}

.location-selector-btn {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 280px;
    height: 40px;
    margin: 0;
    padding: 6px 10px;
    gap: 8px;
    appearance: none;
    background: transparent;
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: none;
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
}

.location-selector-btn:hover,
.location-selector-btn:focus,
.location-selector.open .location-selector-btn {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    box-shadow: none;
}

.location-selector-btn .location-icon {
    flex: 0 0 16px;
    color: var(--gold);
    font-size: 15px;
    pointer-events: none;
}

.location-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    overflow: hidden;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

.location-chevron {
    flex: 0 0 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    pointer-events: none;
    transition: transform var(--transition);
}

.location-selector.open .location-chevron {
    transform: rotate(180deg);
}

/* Desktop: existing dropdown under the control — NOT a modal */
.location-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 5%;
    right: auto;
    width: 360px;
    max-width: min(360px, calc(100vw - 24px));
    max-height: 420px;
    margin: 0;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    z-index: 1500;
    display: none;
    overflow: hidden;
}

.location-selector.open .location-dropdown {
    display: block;
}

.location-overlay-head {
    display: none;
}

.location-search-wrap {
    width: 100%;
    padding: 10px 0 8px;
}

.location-search-input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
    appearance: none;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    color: #333;
    font-family: var(--font-base);
    font-size: 14.5px;
    line-height: 40px;
}

.location-search-input::placeholder { color: #999; }

.location-list {
    width: 100%;
    max-height: 320px;
    margin: 0;
    padding: 0 0 10px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

.location-group-title {
    width: calc(100% - 32px) !important;
    margin: 0 16px !important;
    padding: 10px 0 6px !important;
    background: #fafafa;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.location-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: calc(100% - 32px) !important;
    min-height: 58px;
    margin: 0 16px !important;
    padding: 9px 0 !important;
    appearance: none !important;
    background: transparent;
    border: 0 !important;
    border-bottom: 1px solid #f1f1f1 !important;
    color: #333;
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 14px;
    text-align: left;
}

.location-option:hover,
.location-option:focus { background: #f5f7fa; }
.location-option.selected { background: #fffbeb; }

.location-option-name {
    display: block;
    width: 100%;
    color: #333;
    font-size: 14.5px;
    font-weight: 500;
}

.location-option-meta {
    display: block;
    width: 100%;
    margin: 3px 0 0;
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-empty {
    padding: 24px 16px;
    color: #888;
    text-align: center;
}

.location-overlay-backdrop {
    display: none;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1200;
    margin-top: 6px;
    display: none;
}

.suggestions-dropdown.show,
.suggestions-dropdown[style*="display: block"] { display: block; }

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #333;
}

.cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.cart a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    padding: 4px;
}

.cart-icon { font-size: 22px; color: var(--white); }
.cart a:hover .cart-icon { color: var(--gold); }

#counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.guest-account,
.user-account { position: relative; flex: 0 0 auto; }

.guest-account-btn,
.account-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 500;
}

.guest-account-btn:hover,
.account-btn:hover { background: rgba(255, 255, 255, 0.08); }

.guest-account-btn i.fa-user-circle,
.account-icon { color: var(--gold); font-size: 1.35rem; }

.guest-account-label,
.user-name { color: var(--white); white-space: nowrap; }

.guest-account-dropdown,
.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 270px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dropdown);
    z-index: 1300;
    display: none;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.guest-account.open .guest-account-dropdown,
.user-account.open .account-dropdown,
.guest-account:hover .guest-account-dropdown,
.user-account:hover .account-dropdown { display: block; }

.guest-account-header,
.dropdown-header {
    padding: 16px 18px;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    border-bottom: 1px solid #eee;
}

.guest-account-dropdown a,
.account-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14.5px;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.seller-centre-link {
    background: #fffbeb !important;
    margin: 4px 10px 8px;
    padding: 10px 12px !important;
    border-radius: 10px;
    border: 1px solid #f3e4a0;
    gap: 10px !important;
}

.seller-centre-link:hover {
    background: #fff3c4 !important;
}

.seller-centre-icon-wrap {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #111;
    color: #ffd700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seller-centre-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.seller-centre-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.seller-centre-copy strong {
    font-size: 13.5px;
    color: #111;
    line-height: 1.2;
}

.seller-centre-copy small {
    color: #888;
    font-size: 11.5px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-verified {
    color: #1f8a4c;
    font-size: 13px;
}

.main-nav {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1200;
    overflow: visible;
}

.nav-content {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}

.shop-categories-btn {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0 0 0 28px;
    flex: 1;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 0;
    display: inline-block;
}

.nav-menu a:hover { color: var(--gold); }

.hot-link,
.nav-item.has-dropdown { position: relative; }

.hot-badge {
    position: absolute;
    top: 4px;
    right: -28px;
    background: var(--gold);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    display: none;
    z-index: 1400;
    border: 1px solid #eee;
}

.has-dropdown.open > .dropdown-menu { display: block; }

@media (min-width: 1025px) {
    .has-dropdown:hover > .dropdown-menu:not(.category-dropdown-menu) {
        display: block;
    }
}

.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.feature-strip { background: #333; padding: 10px 0; }
.feature-inner {
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    gap: 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-light);
    flex: 1;
}
.feature-item i { color: #f4b400; font-size: 26px; }

/* ==========================================================================
   Mobile Navigation Drawer – Premium e-commerce style
   ========================================================================== */

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer.open .mobile-drawer-overlay {
    opacity: 1;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 88vw;
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-content {
    transform: translateX(0);
}

/* Sticky dark header bar */
.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #111111;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.4px;
    line-height: 1;
}

.mobile-logo:visited,
.mobile-logo:hover,
.mobile-logo:active {
    color: var(--gold);
    text-decoration: none;
}

.close-drawer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-drawer:hover,
.close-drawer:active {
    background: rgba(255, 255, 255, 0.18);
}

.close-drawer:active {
    transform: scale(0.94);
}

/* Main nav body */
.mobile-nav {
    flex: 1 1 auto;
    padding: 4px 0 32px;
    background: #ffffff;
}

.mobile-section-label {
    margin: 20px 20px 6px;
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    line-height: 1.2;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.mobile-item {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2px;
}

/* Primary category / menu links */
.mobile-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-link,
.mobile-link:visited,
.mobile-link:hover,
.mobile-link:active,
.mobile-link:focus {
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-link span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.mobile-link i {
    width: 20px;
    color: #222;
    text-align: center;
    font-size: 15px;
}

.mobile-link:active,
.mobile-link:hover {
    background: #f5f5f5;
}

.mobile-hot-badge {
    background: var(--gold);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* Nested submenu (Categories accordion) */
.submenu {
    display: none;
    list-style: none;
    margin: 0 0 4px;
    padding: 4px 0 6px;
    background: #f7f8fa;
    border-radius: 10px;
    overflow: hidden;
}

.has-submenu.open > .submenu {
    display: block;
}

.submenu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 12px 46px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    min-height: 44px;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.submenu a,
.submenu a:visited,
.submenu a:hover,
.submenu a:active,
.submenu a:focus {
    color: #333333;
    text-decoration: none;
}

.submenu a:active,
.submenu a:hover {
    background: #eceef1;
    color: #111111;
}

.submenu a small {
    color: #999;
    font-weight: 400;
}

/* Popular subcategory direct links inside mobile-menu */
.mobile-menu > li > a {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu > li > a,
.mobile-menu > li > a:visited,
.mobile-menu > li > a:hover,
.mobile-menu > li > a:active,
.mobile-menu > li > a:focus {
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-menu > li > a:active,
.mobile-menu > li > a:hover {
    background: #f5f5f5;
}

/* Nested category rows (nav-mob-*) */
.nav-mob-cat-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mob-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.nav-mob-cat-row:active,
.nav-mob-cat-row:hover {
    background: #f5f5f5;
}

.nav-mob-cat-link {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 8px 12px 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
}

.nav-mob-cat-link,
.nav-mob-cat-link:visited,
.nav-mob-cat-link:hover,
.nav-mob-cat-link:active,
.nav-mob-cat-link:focus {
    color: #1a1a1a;
    text-decoration: none;
}

.nav-mob-cat-link span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.nav-mob-cat-link small {
    color: #999;
    font-weight: 400;
    font-size: 12.5px;
}

.nav-mob-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-mob-toggle:hover,
.nav-mob-toggle:active {
    background: #eceef1;
    color: #111;
}

.nav-mob-toggle i {
    font-size: 12px;
    transition: transform 0.22s ease;
}

.nav-mob-cat-item.subs-open .nav-mob-toggle i {
    transform: rotate(180deg);
}

.nav-mob-sub-list {
    display: none;
    list-style: none;
    margin: 0 0 4px;
    padding: 2px 0 6px 8px;
    background: #f7f8fa;
    border-radius: 0 0 10px 10px;
}

.nav-mob-cat-item.subs-open > .nav-mob-sub-list {
    display: block;
}

.nav-mob-sub-list li {
    margin: 0;
    padding: 0;
}

.nav-mob-sub-list a {
    display: block;
    padding: 11px 14px 11px 28px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    min-height: 42px;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-mob-sub-list a,
.nav-mob-sub-list a:visited,
.nav-mob-sub-list a:hover,
.nav-mob-sub-list a:active,
.nav-mob-sub-list a:focus {
    color: #333333;
    text-decoration: none;
}

.nav-mob-sub-list a:active,
.nav-mob-sub-list a:hover {
    background: #eceef1;
    color: #111111;
}

/* Seller panel */
.mobile-seller-panel {
    margin: 12px 14px 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.mobile-seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #111111;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    min-height: 64px;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-seller-card,
.mobile-seller-card:visited,
.mobile-seller-card:hover,
.mobile-seller-card:active,
.mobile-seller-card:focus {
    color: #ffffff;
    text-decoration: none;
}

.mobile-seller-card:active {
    background: #1a1a1a;
    transform: scale(0.985);
}

.mobile-seller-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gold);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 42px;
    font-size: 16px;
}

.mobile-seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-seller-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.mobile-seller-copy strong {
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

.mobile-seller-copy small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-seller-arrow {
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
}

/* Utility links (Track, Help, Phone, Become Vendor) */
.mobile-utility {
    margin: 12px 14px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-utility a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 10px;
    min-height: 48px;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-utility a,
.mobile-utility a:visited,
.mobile-utility a:hover,
.mobile-utility a:active,
.mobile-utility a:focus {
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-utility a i {
    width: 20px;
    color: #333;
    text-align: center;
    font-size: 15px;
}

.mobile-utility a:active,
.mobile-utility a:hover {
    background: #f5f5f5;
}

/* Kill any residual browser link styling inside the drawer */
.mobile-drawer a {
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer a:visited {
    color: inherit;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 24px;
}
.modal.show { display: flex; }
.modal-content {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .header-content { gap: 10px; padding: 0 2.5%; }
    .location-selector { max-width: 200px; }
    .location-selector-btn { max-width: 200px; }
    .guest-account-label,
    .user-name { display: none; }
}

@media (min-width: 1025px) {
    .mobile-drawer,
    .shop-categories-btn { display: none !important; }
    .nav-menu { display: flex !important; }
    .location-overlay-head,
    .location-overlay-backdrop { display: none !important; }
}

/* Mobile only: compact header chip + account-modal overlay */
@media (max-width: 1024px) {
    body.location-overlay-open { overflow: hidden; }
    body.location-overlay-open .site-header { z-index: 2600; }

    .header-content {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 0 2%;
    }

    .search-location-wrapper { display: contents; }

    .logo { order: 1; flex: 0 0 auto; }

	.location-selector {
		order: 2;
		flex: 0 1 auto;
		width: auto;
		min-width: 0;
		max-width: 220px;
	}

	.guest-account,
	.user-account {
		order: 3;
		flex: 0 0 auto;
		margin-left: auto; /* this is what parks account+cart on the right */
	}

	.cart {
		order: 4;
		flex: 0 0 auto;
	}

    .search-wrapper {
        order: 5;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }

    .search-form {
        height: 42px;
        align-items: stretch;
        overflow: hidden;
    }

    .search-form input {
        height: 100%;
        line-height: normal;
    }

    .search-btn {
        flex: 0 0 48px;
        width: 48px;
        height: 100% !important;
        min-height: 100%;
        align-self: stretch;
        border-radius: 0;
        margin: 0;
        padding: 0;
        line-height: 0;
    }

	.location-selector-btn {
		width: 100%;
		max-width: 100%;
		height: 36px;
		padding: 4px 8px;
		background: transparent;
		color: #fff;
		border: none;
		box-shadow: none;
		overflow: hidden;
		min-width: 0;
	}

	.location-text {
		color: #fff;
		font-size: 13px;
		font-weight: 600;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		min-width: 0;
	}

    .location-selector-btn .location-icon { color: var(--gold); }
    .location-chevron { color: rgba(255,255,255,0.7); }

    .guest-account-btn,
    .account-btn {
        gap: 4px;
        padding: 4px 6px;
    }

    .guest-account-chevron,
    .chevron-icon {
        display: inline-block !important;
        color: rgba(255, 255, 255, 0.75);
        font-size: 10px;
        line-height: 1;
        transition: transform var(--transition);
    }

    .guest-account.open .guest-account-chevron,
    .user-account.open .chevron-icon {
        transform: rotate(180deg);
    }

    .guest-account-dropdown,
    .account-dropdown {
        overflow: visible;
    }

    .guest-account-dropdown::before,
    .account-dropdown::before {
        content: "";
        position: absolute;
        top: -7px;
        right: 18px;
        width: 12px;
        height: 12px;
        background: #fff;
        border-left: 1px solid #e5e5e5;
        border-top: 1px solid #e5e5e5;
        transform: rotate(45deg);
        z-index: 1;
    }

    .location-overlay-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 2550;
        padding: 24px;
        align-items: flex-start;
        justify-content: center;
    }

    body.location-overlay-open .location-overlay-backdrop {
        display: flex;
    }

    .location-dropdown {
        position: fixed !important;
        top: 24px;
        left: 50%;
        right: auto;
        bottom: auto;
        width: calc(100% - 36px);
        max-width: 460px;
        max-height: calc(100vh - 48px);
        transform: translateX(-50%);
        display: none;
        flex-direction: column;
        z-index: 2700;
        overflow: hidden;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
        animation: modalPopIn 0.22s cubic-bezier(0.23, 1, 0.32, 1);
        pointer-events: auto;
        align-self: flex-start;
        margin-top: 0;
    }

    .location-selector.open .location-dropdown {
        display: flex !important;
    }

    .location-overlay-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 24px;
        border-bottom: 1px solid #f0f0f0;
        flex: 0 0 auto;
    }

    .location-overlay-head strong {
        font-size: 20px;
        letter-spacing: 0;
        text-transform: none;
        color: #222;
    }

    .location-overlay-close {
        appearance: none;
        border: none;
        background: transparent;
        color: #aaa;
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
        padding: 0 4px;
    }

    .location-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        pointer-events: auto;
    }

    .nav-menu { display: none !important; }
    .shop-categories-btn { display: flex; padding: 10px 18px; font-size: 12.5px; }
}

@keyframes modalPopIn {
    from { transform: translateX(-50%) translateY(24px) scale(0.96); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .utility-left span:not(:first-child),
    .utility-right .utility-link span,
    .utility-right .utility-link:not(:first-child) { display: none; }

    .main-header { padding: 8px 0; }
    .header-content { gap: 6px 8px; padding: 0 12px; }
    .logo img {
        height: 42px;
        max-width: 180px;
    }

    .guest-account-label,
    .user-name { display: none; }

    .guest-account-chevron,
    .chevron-icon {
        display: inline-block !important;
        color: rgba(255, 255, 255, 0.75);
        font-size: 10px;
    }

    .search-form { height: 42px; align-items: stretch; overflow: hidden; }
    .search-btn {
        height: 100% !important;
        min-height: 100%;
        align-self: stretch;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    .location-selector-btn { height: 34px; }
    .location-text { font-size: 12.5px; }

    .shop-categories-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        border-radius: 0;
    }

    .feature-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 12px;
    }

    .location-overlay-backdrop { padding: 18px; }
}

@media (max-width: 480px) {
    .utility-bar { display: none; }
    .main-header { padding: 6px 0; }
    .header-content { padding: 0 10px; gap: 5px 6px; }
    .logo img {
        height: 38px;
        max-width: 160px;
    }
    .search-form { height: 40px; align-items: stretch; overflow: hidden; }
    .search-btn {
        height: 100% !important;
        min-height: 100%;
        align-self: stretch;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    .location-selector-btn { height: 32px; }
    .location-text { font-size: 12px; }
    .location-dropdown { width: calc(100% - 28px); max-height: calc(100vh - 28px); }
}
/* ==========================================================================
   Category → Subcategory nested navigation (desktop + mobile)
   ========================================================================== */

.category-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-width: min(280px, calc(100vw - 24px));
    max-height: min(360px, calc(100vh - 140px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 6px 0;
    margin: 0;
    z-index: 1500;
    box-sizing: border-box;
}

.category-menu-item {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-menu-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1.3;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    appearance: none;
}

.category-menu-link > span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-arrow {
    flex: 0 0 auto;
    font-size: 11px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.category-menu-item:hover > .category-menu-link {
    background: #f5f5f5;
}

.category-menu-item.subcategories-open > .category-menu-link {
    background: #f0f0f0;
}

.category-menu-item.subcategories-open > .category-menu-link .category-arrow {
    transform: rotate(180deg);
}

.subcategory-dropdown {
    display: none;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    background: #fafafa;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: auto;
}

.category-menu-item.subcategories-open > .subcategory-dropdown {
    display: block;
}

.subcategory-dropdown li {
    margin: 0;
    padding: 0;
}

.subcategory-dropdown li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 16px 8px 28px;
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.subcategory-dropdown li a:hover {
    background: #f0f0f0;
    color: #000;
}

.subcategory-dropdown li a.subcategory-view-all {
    font-weight: 600;
    color: #111;
    border-bottom: 1px solid #eee;
    margin-bottom: 2px;
    padding-top: 9px;
    padding-bottom: 9px;
}

/* Legacy mobile-category classes kept for compatibility – aligned with premium drawer */
.mobile-category-item {
    position: relative;
}

.mobile-category-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
}

.mobile-category-link {
    flex: 1;
    display: flex !important;
    align-items: center;
    min-width: 0;
    padding: 12px 14px 12px 14px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
}

.mobile-category-link,
.mobile-category-link:visited,
.mobile-category-link:hover,
.mobile-category-link:active,
.mobile-category-link:focus {
    color: #1a1a1a;
    text-decoration: none;
}

.mobile-category-link > span {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-subcategory-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.mobile-subcategory-toggle:active {
    background: #eceef1;
}

.mobile-subcategory-toggle i {
    transition: transform 0.22s ease;
    font-size: 12px;
}

.mobile-category-item.subcategories-open .mobile-subcategory-toggle i {
    transform: rotate(180deg);
}

.mobile-subcategory-list {
    display: none;
    margin: 0 0 4px;
    padding: 2px 0 6px 8px;
    list-style: none;
    background: #f7f8fa;
    border-radius: 0 0 10px 10px;
}

.mobile-category-item.subcategories-open .mobile-subcategory-list {
    display: block;
}

.mobile-subcategory-list li a {
    display: block;
    padding: 11px 14px 11px 28px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    min-height: 42px;
}

.mobile-subcategory-list li a,
.mobile-subcategory-list li a:visited,
.mobile-subcategory-list li a:hover,
.mobile-subcategory-list li a:active,
.mobile-subcategory-list li a:focus {
    color: #333333;
    text-decoration: none;
}

.mobile-subcategory-list li a:hover,
.mobile-subcategory-list li a:active {
    background: #eceef1;
    color: #111111;
}
