/* ===== Optimized header3.css ===== */
:root {
    --dark-bg: #1C2526;
    --accent-cyan: #33C1CF;
    --text-light: #D3D8D9;
    --border-color: #3F4E50;
}
* {
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #1C2526;
    color: #D3D8D9;
    min-height: 100vh;
    padding-bottom: 70px;
    overflow-x: hidden;
}
main {
    padding-top: 60px;
    padding-bottom: 70px;
}
/* ============================================ */
/* DESKTOP HEADER */
/* ============================================ */
#header-main-desktop {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #1C2526;
    border-bottom: 1px solid #3F4E50;
    padding: 15px 40px;
}
.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.left-section, .right-section {
    display: flex;
    align-items: center;
}
.logo {
    margin-right: 20px;
}
.logo a {
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    color: #33C1CF;
    letter-spacing: 0.5px;
}
.location-box {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: #2E3A3B;
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid #3F4E50;
}
.location-box i {
    margin-right: 4px;
    color: #D3D8D9;
    font-size: 16px;
}
.location-text span {
    font-size: 12px;
    font-weight: 600;
    color: #D3D8D9;
    text-transform: uppercase;
}
.nav-menu {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.nav-item {
    margin-right: 20px;
    font-size: 13px;
    font-weight: 600;
}
.nav-item a {
    color: #33C1CF;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.search-bar {
    width: 350px;
    display: flex;
    align-items: center;
    background: #2E3A3B;
    border-radius: 20px;
    padding: 8px 12px;
    margin-right: 30px;
    border: 1px solid #3F4E50;
}
.search-bar i {
    margin-right: 8px;
    color: #33C1CF;
    font-size: 14px;
}
.search-bar input {
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #D3D8D9;
    width: 100%;
    background: transparent;
}
.search-bar input::placeholder {
    color: rgba(211, 216, 217, 0.7);
}
.account-icon, .cart-icon, .message-icon {
    margin-right: 12px;
    cursor: pointer;
    color: #D3D8D9;
    font-size: 18px;
    text-decoration: none;
}
.message-icon {
    background: none;
    border: none;
    padding: 0;
}
.cart-icon {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: #940924;
    color: #FFFFFF;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 500;
    display: none;
}
.sell-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100px;
    height: 40px;
    background: #33C1CF;
    border-radius: 20px;
}
.sell-button-content {
    display: flex;
    align-items: center;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}
.sell-button-content i {
    margin-right: 6px;
    font-size: 16px;
}
/* ============================================ */
/* MOBILE HEADER */
/* ============================================ */
#mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #1C2526;
    padding: 8px 5%;
    border-bottom: 1px solid #3F4E50;
    height: 36px;
    align-items: center;
    justify-content: space-between;
}
.location-box-mobile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}
.location-box-mobile i {
    margin-right: 3px;
    font-size: 16px;
    color: #D3D8D9;
}
.location-box-mobile span {
    font-size: 11px;
    font-weight: 600;
    color: #D3D8D9;
    white-space: nowrap;
}
#mobile-top-bar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
#mobile-top-bar .logo span {
    font-size: 16px;
    font-weight: 600;
    color: #33C1CF;
    letter-spacing: 0.5px;
}
.right-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}
.right-icons a {
    text-decoration: none;
}
.right-icons i {
    font-size: 18px;
    color: #D3D8D9;
    cursor: pointer;
}
#mobile-search-bar {
    display: none;
    position: fixed;
    top: 36px;
    width: 100%;
    z-index: 999;
    background: #1C2526;
    padding: 4px 12px;
}
.mobile-search-container {
    display: flex;
    align-items: center;
    background: #2E3A3B;
    border-radius: 20px;
    padding: 10px 14px;
    width: 100%;
    max-width: 350px;
    border: 1px solid #3F4E50;
    margin: 0 auto;
}
.mobile-search-container i {
    margin-right: 6px;
    color: #33C1CF;
    font-size: 14px;
}
.mobile-search-container input {
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #D3D8D9;
    width: 100%;
    background: transparent;
}
.mobile-search-container input::placeholder {
    color: rgba(211, 216, 217, 0.7);
}
/* ============================================ */
/* MOBILE FOOTER MENU */
/* ============================================ */
#header-main-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background: #1C2526;
    padding: 10px 0;
    border-top: 1px solid #3F4E50;
}
#header-main-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}
#header-main-mobile li {
    text-align: center;
    flex: 1;
    position: relative;
}

/* Make sure the center item (camera) has enough space */
#header-main-mobile li.sell-button-container {
    flex: 0 0 80px !important; /* Fixed width for camera button area */
}

#header-main-mobile a {
    color: #33C1CF;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
    padding: 5px;
}
#header-main-mobile i {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
    color: #FFFFFF;
}

/* ===== CAMERA BUTTON - LARGE WITH BORDER (NO BACKGROUND) ===== */
.sell-button-mobile {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 65px !important;
    height: 65px !important;
    background: transparent !important;
    border: 3px solid #33C1CF !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: -30px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(51, 193, 207, 0.3) !important;
}

.sell-button-mobile i {
    color: #33C1CF !important;
    font-size: 38px !important;
    margin-bottom: 0 !important;
    transition: all 0.3s ease !important;
}

.sell-button-mobile:active,
.sell-button-mobile:hover {
    border-color: #FFFFFF !important;
    box-shadow: 0 6px 25px rgba(51, 193, 207, 0.6) !important;
    transform: translateX(-50%) scale(1.08) !important;
    background: transparent !important;
}

.sell-button-mobile:active i,
.sell-button-mobile:hover i {
    color: #FFFFFF !important;
}

/* ===== Enhanced Mobile More Menu ===== */
/* Overlay for better UX */
.more-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.more-menu-overlay.show {
    display: block;
}

/* Enhanced Sub-menu */
#header-main-mobile .sub-menu {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #2E3A3B 0%, #1C2526 100%);
    border-radius: 20px 20px 0 0;
    padding: 20px 0 10px 0;
    border: 1px solid #3F4E50;
    border-bottom: none;
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
#header-main-mobile .sub-menu.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Menu Header */
.sub-menu-header {
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #3F4E50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sub-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #33C1CF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sub-menu-close {
    background: none;
    border: none;
    color: #D3D8D9;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* Section Groups */
.menu-section {
    padding: 15px 0;
    border-bottom: 1px solid rgba(63, 78, 80, 0.5);
}
.menu-section:last-child {
    border-bottom: none;
}
.menu-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #33C1CF;
}
.menu-section-label i {
    font-size: 14px;
}
.menu-section.seller .menu-section-label {
    color: #FFB347;
}

/* Menu Items */
#header-main-mobile .sub-menu li {
    border-bottom: none;
    width: 100%;
}
#header-main-mobile .sub-menu a {
    padding: 12px 20px;
    font-size: 14px;
    color: #D3D8D9;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    background: transparent;
}
#header-main-mobile .sub-menu a i {
    width: 24px;
    font-size: 16px;
    color: #33C1CF;
    margin-bottom: 0;
}
.menu-section.seller a i {
    color: #FFB347;
}
#header-main-mobile .sub-menu a:hover,
#header-main-mobile .sub-menu a:active {
    background: rgba(51, 193, 207, 0.1);
    color: #FFFFFF;
    padding-left: 25px;
}
.menu-section.seller a:hover,
.menu-section.seller a:active {
    background: rgba(255, 179, 71, 0.1);
}
.menu-item-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.menu-item-title {
    font-size: 14px;
    font-weight: 500;
}
.menu-item-desc {
    font-size: 11px;
    color: #A0A8A9;
    font-weight: 400;
}

/* Scrollbar styling */
#header-main-mobile .sub-menu::-webkit-scrollbar {
    width: 4px;
}
#header-main-mobile .sub-menu::-webkit-scrollbar-track {
    background: #1C2526;
}
#header-main-mobile .sub-menu::-webkit-scrollbar-thumb {
    background: #3F4E50;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-height: 600px) {
    #header-main-mobile .sub-menu {
        max-height: 60vh;
    }
}

/* ============================================ */
/* LOCATION DROPDOWN */
/* ============================================ */
.location-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2E3A3B;
    border-radius: 6px;
    padding: 8px;
    z-index: 1001;
    width: 250px;
    border: 1px solid #3F4E50;
    margin-top: 5px;
}
.location-dropdown.show {
    display: block;
}
.location-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 12px;
    color: #D3D8D9;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
}
.location-dropdown select {
    width: 100%;
    padding: 8px;
    margin-top: 6px;
    font-size: 12px;
    border: 1px solid #3F4E50;
    border-radius: 4px;
    background: #1C2526;
    color: #D3D8D9;
}
.location-form {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.location-form input {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #3F4E50;
    border-radius: 4px;
    background: #1C2526;
    color: #D3D8D9;
}
.location-form button {
    background: #33C1CF;
    color: #FFFFFF;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.footer-cities {
    display: none;
}
/* ============================================ */
/* SEARCH SUGGESTIONS DROPDOWN */
/* ============================================ */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2E3A3B;
    border: 1px solid #3F4E50;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.search-suggestions.show {
    display: block;
}
.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #3F4E50;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-suggestion-item:last-child {
    border-bottom: none;
}
.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #3A4749;
}
.suggestion-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3F4E50;
    border-radius: 6px;
    font-size: 18px;
    color: #33C1CF;
}
.suggestion-content {
    flex: 1;
    min-width: 0;
}
.suggestion-title {
    font-weight: 500;
    font-size: 14px;
    color: #D3D8D9;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.suggestion-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.suggestion-author {
    font-size: 12px;
    color: #A0A8A9;
}
.suggestion-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}
.badge-rent {
    background: #1E88E5;
    color: #BBDEFB;
}
.badge-2nd-hand {
    background: #F57C00;
    color: #FFE0B2;
}
.badge-new {
    background: #388E3C;
    color: #C8E6C9;
}
.suggestion-price {
    font-size: 12px;
    font-weight: 600;
    color: #66BB6A;
    margin-left: auto;
}
.no-suggestions,
.search-loading {
    padding: 16px;
    text-align: center;
    color: #A0A8A9;
    font-size: 14px;
}
/* Search container positioning */
.search-bar,
.mobile-search-container {
    position: relative;
}
/* Mobile specific styles */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 300px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    }
  
    .search-suggestion-item {
        padding: 10px 12px;
        gap: 10px;
    }
  
    .suggestion-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
  
    .suggestion-title {
        font-size: 13px;
    }
  
    .suggestion-author,
    .suggestion-badge,
    .suggestion-price {
        font-size: 11px;
    }
}
/* Scrollbar styling */
.search-suggestions::-webkit-scrollbar {
    width: 6px;
}
.search-suggestions::-webkit-scrollbar-track {
    background: #3F4E50;
}
.search-suggestions::-webkit-scrollbar-thumb {
    background: #5C6D70;
    border-radius: 3px;
}
.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #7A8B8E;
}
/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    #header-main-desktop {
        padding: 12px 20px;
    }
    .logo a {
        font-size: 18px;
    }
    .nav-menu {
        margin-left: 10px;
    }
    .nav-item {
        margin-right: 12px;
        font-size: 11px;
    }
    .search-bar {
        width: 200px;
        margin-right: 15px;
    }
    .sell-button {
        width: 80px;
        height: 35px;
    }
}
@media (max-width: 767px) {
    #header-main-desktop {
        display: none;
    }
    #mobile-top-bar,
    #mobile-search-bar {
        display: flex;
    }
    #header-main-mobile {
        display: block;
    }
    main {
        padding-top: 72px;
    }
}
@media (min-width: 768px) {
    #mobile-top-bar,
    #mobile-search-bar,
    #header-main-mobile {
        display: none;
    }
}