/* ================================================================
   HEADER — Web/Desktop CSS
   ================================================================ */

:root {
    --header-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --dropdown-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

header {
    position: sticky;
    top: 0;
    z-index: 2000;
    font-family: 'Nunito Sans', sans-serif;
}

/* Hide mobile-only elements on desktop */
.burger-btn { display: none; }
.mob-user-icon { display: none; }
.logged-in-dot { display: none; }

/* ── Top Bar ── */
.header-top {
    background: var(--header-top-bg, #232f3e);
    color: #fff;
    padding: 8px 0;
    font-size: 0.75rem;
}
.top-container {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.top-container a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: 0.3s;
}
.top-container a:hover { color: #fff; }

/* ── Main Header ── */
.header-main {
    background: var(--header-bg, #ffffff);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
}
.main-container {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Logo ── */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.logo img {
    max-height: 45px;
    width: auto;
    border-radius: 4px;
}
.logo h1 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color, #1a1a1a);
    margin: 0;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* ── Search Bar ── */
.search-container {
    flex: 1;
    display: flex;
    position: relative;
    max-width: 600px;
}
.search-container input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid var(--border-color, #eee);
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
    background: var(--card-bg, #fff);
    color: var(--text-color, #333);
}
.search-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.header-main .search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 55px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Header Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}
.action-item {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}
.action-item .label {
    font-size: 0.7rem;
    opacity: 0.7;
}
.action-item .val {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Dropdowns ── */
.pro-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--dropdown-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 3000;
}
.action-item:hover > .pro-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-color, #444);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}
.dropdown-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}
.dropdown-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.dropdown-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 8px 0;
}
.dropdown-signin {
    padding: 10px;
    text-align: center;
}
.dropdown-signin .search-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
    height: auto;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}
.dropdown-signin p {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
}
.dropdown-signin a {
    color: var(--primary-color);
}

/* ── Cart Count ── */
.cart-count {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50px;
    position: absolute;
    top: -10px;
    right: -12px;
}

/* ── Bottom Nav Bar (Categories) ── */
.header-bottom {
    background: var(--header-bottom-bg, #fff);
    border-bottom: 1px solid var(--border-color, #eee);
}
.bottom-container {
    display: flex;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
    overflow-x: auto;
}
.bottom-container::-webkit-scrollbar { display: none; }
.nav-link {
    text-decoration: none;
    color: var(--nav-link-color, #444);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.2s;
}
.nav-link:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* ── Search Dropdown Results ── */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg, #fff);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid var(--border-color, #e8eaed);
    border-top: none;
}
.search-dropdown.show { display: block; }
.sd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-color, #333);
    transition: .15s;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color, #f1f5f9);
}
.sd-item:last-child { border: none; }
.sd-item:hover { background: rgba(0,0,0,.03); }
.sd-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--border-color, #eee);
}
.sd-info { flex: 1; min-width: 0; }
.sd-name {
    font-weight: 700;
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sd-meta { font-size: .7rem; color: #94a3b8; }
.sd-price {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: .85rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.sd-empty { padding: 20px; text-align: center; color: #94a3b8; font-size: .85rem; }
.sd-all {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: .82rem;
    color: var(--primary-color);
    text-decoration: none;
    border-top: 1px solid var(--border-color, #e8eaed);
}
.sd-all:hover { background: rgba(0,0,0,.03); }

/* ── Dropdown Extras ── */
.dropdown-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 8px 0;
}
.dropdown-logout { color: #e74c3c !important; }
.dropdown-logout:hover { background: #fef2f2; }
.dropdown-signin {
    padding: 10px;
    text-align: center;
}
.dropdown-signin-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}
.dropdown-signin-btn:hover { opacity: 0.9; color: #fff; }
.dropdown-signin p {
    font-size: 0.75rem;
    color: var(--text-muted, #888);
    margin: 0;
}
.dropdown-signin a { color: var(--primary-color); }

/* ── Chevron & Cart Icons ── */
.chevron-icon { font-size: 0.6rem !important; }
.cart-icon { font-size: 1.4rem !important; }
.cart-action { position: relative; }

/* ── Search Discount Badge ── */
.sd-disc {
    color: #ef4444;
    font-size: .65rem;
    font-weight: 700;
}

/* ── Announcement Bar ── */
.announcement-bar {
    background: var(--primary-color, #3498db);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
        