﻿:root {
    --accent: #00b0a3;
    --accent-dark: #009488;
    --nav-bg: #1a1a1a;
    --nav-h: 44px;
    --search-h: 60px;
    --radius: 10px;
}

.site-header {
    width: 100%;
    font-family: inherit;
}

.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    margin-right: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

    .site-logo img {
        display: block;
    }

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .nav-links .nav-link {
        display: block;
        padding: 8px 12px;
        border-radius: 6px;
        color: #fff;
        text-decoration: none;
        transition: color 0.2s;
    }

        .nav-links .nav-link:hover,
        .nav-links .nav-link.active {
            color: var(--accent);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
}

.lang-pill {
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}

.dark-theme .lang-pill {
    color: #cbd5e0;
}

.lang-pill.active {
    background: #e2e8f0;
    color: #1a202c;
}

.dark-theme .lang-pill.active {
    background: #2d3748;
    color: #edf2f7;
}

.lang-pill:hover {
    background: #e2e8f0;
}

.dark-theme .lang-pill:hover {
    background: #2d3748;
}
.icon-btn {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

    .icon-btn:hover {
        color: var(--accent);
    }

.login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

    .login-btn:hover {
        background: transparent;
        color: #00b0a3;
    }

.burger-btn {
    display: none;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.header-search-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-search-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px;
}

.categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: var(--radius);
    background-color: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

    .categories-btn:hover {
        background-color: #007d74;
    }

.categories-icon {
    height: 18px;
    filter: brightness(0) invert(1);
}

.search-form {
    min-width: 0;
    flex: 1 1 auto;
}

.search-pill {
    display: flex;
    align-items: center;
    height: 38px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.search-input {
    height: 100%;
    padding: 0 16px;
    border: none;
    background: #fff;
    font-size: 15px;
    outline: none;
    flex: 1 1 auto;
}

.search-btn {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

    .search-btn:hover {
        background-color: var(--accent-dark);
    }

.regions-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

    .regions-btn:hover {
        color: var(--accent);
        opacity: 0.8;
    }

.regions-icon {
    height: 18px;
    filter: brightness(100);
}

.header-post-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 20px;
    background: var(--background-color, #00b0a3);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

    .header-post-btn:hover {
        color: #fff;
        opacity: 0.85;
    }

.user-menu-wrap {
    position: relative;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-menu-toggle {
    padding: 0 4px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 8px 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 1000;
}

    .user-dropdown.open {
        display: block;
    }

.user-dropdown-name {
    padding: 10px 16px;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
}

.user-dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: #f0f0f0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.1s;
}

    .user-dropdown-item:hover {
        background: #f5f5f5;
        color: #1a1a1a;
    }

    .user-dropdown-item .msg-nav-badge {
        position: static;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: #e53935;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        transform: none;
    }

.user-dropdown-logout {
    color: #cc0000;
}

    .user-dropdown-logout:hover {
        color: #cc0000;
    }
.user-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

    .user-dropdown-header .user-dropdown-name {
        padding: 0;
    }

    .user-dropdown-header .notif-bell-btn {
        padding: 4px;
        border-radius: 6px;
        color: #333;
        transition: background-color 0.2s, color 0.2s;
    }

        .user-dropdown-header .notif-bell-btn:hover {
            background-color: #f5f5f5;
            color: var(--accent, #00b0a3);
        }

    .user-dropdown-header .notif-wrap {
    }
.notif-wrap {
    position: relative;
}

.notif-bell-btn {
    position: relative;
    padding: 4px 8px;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}

/* ── Notification Modal ── */
.notif-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
}

    .notif-overlay.open {
        display: block;
    }

.notif-modal {
    display: none;
    position: fixed;
    top: 54px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 1051;
    flex-direction: column;
    overflow: hidden;
}

    .notif-modal.open {
        display: flex;
    }

.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.notif-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.notif-mark-all-btn {
    font-size: 12px;
    color: #00b0a3;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

    .notif-mark-all-btn:hover {
        background: #f0faf9;
    }

.notif-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

    .notif-modal-close:hover {
        background: #eee;
    }

/* Tabs */
.notif-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding: 0 18px;
}

.notif-tab {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .notif-tab:hover {
        color: #1a1a1a;
    }

.notif-tab-active {
    color: #1a1a1a;
    border-bottom-color: #00b0a3;
    font-weight: 700;
}

.notif-tab-count {
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* List */
.notif-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
}

    .notif-modal-list::-webkit-scrollbar {
        width: 5px;
    }

    .notif-modal-list::-webkit-scrollbar-thumb {
        background: #e0e0e0;
        border-radius: 3px;
    }

.notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-bottom: 1px solid #f8f8f8;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: #fafafa;
    }

    .notif-item.unread {
        background: #f0faf9;
    }

        .notif-item.unread:hover {
            background: #e6f7f5;
        }

        /* Unread dot */
        .notif-item.unread::after {
            content: '';
            position: absolute;
            top: 16px;
            right: 14px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #00b0a3;
            flex-shrink: 0;
        }

.notif-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
}

.notif-item-msg {
    font-size: 13px;
    color: #333;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item.unread .notif-item-msg {
    font-weight: 600;
    color: #1a1a1a;
}

.notif-item-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.notif-item-product {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 5px 8px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

    .notif-item-product img {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        object-fit: cover;
    }

.notif-modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Bell button */
.notif-bell-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    cursor: pointer;
    color: #fff;
    transition: border-color 0.15s;
}

    .notif-bell-btn:hover {
        border-color: rgba(255,255,255,0.4);
    }

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

/* Dark theme */
.dark-theme .notif-modal {
    background: #252525;
    border-color: #333;
}

.dark-theme .notif-modal-header {
    border-bottom-color: #333;
}

.dark-theme .notif-modal-title {
    color: #e8e8e8;
}

.dark-theme .notif-modal-close {
    background: #333;
    color: #aaa;
}

    .dark-theme .notif-modal-close:hover {
        background: #444;
    }

.dark-theme .notif-tabs {
    border-bottom-color: #333;
}

.dark-theme .notif-tab {
    color: #666;
}

    .dark-theme .notif-tab:hover {
        color: #e0e0e0;
    }

.dark-theme .notif-tab-active {
    color: #e8e8e8;
}

.dark-theme .notif-item {
    border-bottom-color: #2a2a2a;
    color: #e0e0e0;
}

    .dark-theme .notif-item:hover {
        background: #2e2e2e;
    }

    .dark-theme .notif-item.unread {
        background: #1a2e2d;
    }

        .dark-theme .notif-item.unread:hover {
            background: #1f3533;
        }

.dark-theme .notif-item-msg {
    color: #ccc;
}

.dark-theme .notif-item.unread .notif-item-msg {
    color: #e8e8e8;
}

.dark-theme .notif-item-product {
    background: #2a2a2a;
    color: #aaa;
}

.dark-theme .notif-modal-list::-webkit-scrollbar-thumb {
    background: #444;
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 700;
}

.notif-mark-all {
    border: none;
    background: none;
    color: #00b0a3;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s;
}

    .notif-item:hover {
        background: #fafafa;
    }

    .notif-item.unread {
        background: #f0faf9;
    }

.notif-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f0f0f0;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-item-body {
    min-width: 0;
    flex: 1;
}

.notif-item-msg {
    display: -webkit-box;
    overflow: hidden;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-time {
    margin-top: 3px;
    color: #aaa;
    font-size: 11px;
}

.notif-empty {
    padding: 32px;
    color: #aaa;
    font-size: 14px;
    text-align: center;
}

#settingsModal {
    position: fixed;
    top: 50%;
    left: 50%;
    height: auto !important;
    min-height: unset !important;
    max-height: fit-content !important;
    transform: translate(-50%, -50%);
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.search-chip-remove {
    margin-left: 2px;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
}

    .search-chip-remove:hover {
        color: #fff;
    }

.region-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.region-search {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.region-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.region-pill {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

    .region-pill:hover {
        border-color: #aaa;
    }

.region-pill-active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.dark-theme .notif-dropdown {
    background: #252525;
    border-color: #333;
}

.dark-theme .notif-header {
    border-bottom-color: #333;
    color: #e8e8e8;
}

.dark-theme .notif-item {
    border-bottom-color: #2a2a2a;
    color: #e0e0e0;
}

    .dark-theme .notif-item:hover {
        background: #2e2e2e;
    }

    .dark-theme .notif-item.unread {
        background: #1f2e2d;
    }

.dark-theme .notif-item-msg {
    color: #ccc;
}

@media (max-width: 768px) {
    .burger-btn {
        display: block;
    }

    .header-search-inner {
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        padding: 10px 12px;
    }

    .site-logo img {
        width: 120px;
    }


    .categories-btn,
    .regions-btn {
        padding: 0 10px;
        font-size: 13px;
    }

    .search-form {
        order: 10;
        flex: 1 1 100%;
    }
}
