/* ============================================================
   V28 HEADER — v28-header.css
   Target: Elementor header widget (ID 7992) custom HTML
   Palette: charcoal #363030 · lime #C1E53E · coral #E63946
   Fonts : Outfit · JetBrains Mono
   ============================================================ */

/* ---------- CSS VARIABLES (scoped) ---------- */
:root {
    --v28-primary: #363030;
    --v28-primary-light: #4a4444;
    --v28-ink: #363030;
    --v28-ink-soft: #4a4545;
    --v28-ink-muted: #7a7575;
    --v28-coral: #E63946;
    --v28-gold: #FFC107;
    --v28-white: #fff;
    --v28-paper: #fafafa;
    --v28-paper-warm: #f5f4f4;
    --v28-border: #e0dede;
    --v28-border-light: #eeecec;
    --v28-radius: 10px;
    --v28-radius-sm: 8px;
    --v28-radius-btn: 6px;
    --v28-shadow-sm: 0 1px 3px rgba(54,48,48,.06), 0 1px 2px rgba(54,48,48,.04);
    --v28-transition: .25s cubic-bezier(.4,0,.2,1);
    --v28-navbar-h: 72px;
}

/* ============================================================
   1. EXPRESS TOP BAR
   ============================================================ */
.express-top-bar {
    background: var(--v28-primary);
    color: #fff;
    padding: 6px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
}

.express-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    white-space: nowrap;
}

.express-top-hicon {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.express-top-hicon img.emoji {
    width: 14px !important;
    height: 14px !important;
}

.express-top-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}

.express-top-text strong {
    font-weight: 700;
}

.express-sub-text {
    font-size: 13px;
    font-weight: 400;
}

.express-top-divider {
    color: rgba(255,255,255,.2);
    margin: 0 4px;
}

.express-top-timer {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .5px;
}

.express-top-timer .timer-lbl {
    font-size: 11px;
    margin-right: 8px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .6;
}

#topCountdown {
    color: var(--v28-gold);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
}

/* ============================================================
   2. NAVBAR
   ============================================================ */
.navbar {
    background: var(--v28-white);
    border-bottom: 1px solid var(--v28-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--v28-shadow-sm);
    height: var(--v28-navbar-h);
    min-height: var(--v28-navbar-h);
}

/* Override Hello Elementor / Elementor constraints */
[data-elementor-type="header"] .elementor-widget-wrap,
[data-elementor-type="header"] .elementor-widget-container,
[data-elementor-type="header"] .elementor-section,
[data-elementor-type="header"] .elementor-container,
[data-elementor-type="header"] .elementor-column,
[data-elementor-type="header"] .elementor-column-wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

[data-elementor-type="header"] .elementor-section {
    margin-bottom: 0 !important;
}

.navbar .container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--v28-navbar-h);
    box-sizing: border-box;
}

/* ---------- Logo ---------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--v28-ink);
    text-decoration: none;
    flex-shrink: 0;
    height: 100%;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Nav Links ---------- */
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links a {
    color: var(--v28-ink);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 22px;
    border-radius: var(--v28-radius-btn);
    transition: all var(--v28-transition);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    letter-spacing: .1px;
}

.nav-links a:hover {
    background: var(--v28-paper-warm);
    color: var(--v28-coral);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--v28-coral);
}

/* Shop dropdown indicator */
.nav-links a.mega-indicator::after {
    content: '▾';
    margin-left: 4px;
    font-size: 13px;
    opacity: .5;
}

/* ---------- Express 24H — V4 Split Badge (Desktop) ---------- */
.nav-links a.nav-express {
    background: var(--v28-primary);
    color: var(--v28-white);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 8px 7px 16px;
    letter-spacing: .2px;
    text-decoration: none;
    transition: background .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-links a.nav-express:hover {
    background: #2a2525;
    color: var(--v28-white);
    box-shadow: 0 4px 16px rgba(54,48,48,.25);
}

/* Gold "24h" chip inside the badge */
.nav-links a.nav-express .express-chip {
    background: var(--v28-gold);
    color: var(--v28-primary);
    padding: 5px 12px;
    border-radius: 7px;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .3px;
}

/* ============================================================
   3. NAV RIGHT (icons, lang, cart)
   ============================================================ */
.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 100%;
}

/* ---------- Language switcher ---------- */
.lang-switch {
    position: relative;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1.5px solid var(--v28-border);
    background: var(--v28-white);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--v28-ink);
    transition: .2s;
    white-space: nowrap;
    line-height: 1;
}

.lang-current:hover {
    border-color: #2D7FF9;
}

.lang-current .flag-img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-current .arrow {
    font-size: 10px;
    opacity: .5;
    margin-left: -2px;
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--v28-white);
    border: 1px solid var(--v28-border-light);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(54,48,48,.1), 0 4px 12px rgba(54,48,48,.06);
    min-width: 180px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 200;
}

.lang-switch.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--v28-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.lang-option:hover {
    background: var(--v28-paper-warm);
    text-decoration: none;
}

.lang-option .flag-img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* ---------- Icon buttons (account, search, cart) ---------- */
.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--v28-radius-btn);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--v28-ink);
    transition: all var(--v28-transition);
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}

.nav-icon:hover {
    background: var(--v28-paper-warm);
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--v28-ink);
    stroke-width: 2.25;
    flex-shrink: 0;
}

/* ---------- Cart badge ---------- */
.cart-badge {
    position: absolute;
    top: 6px;
    right: 4px;
    background: var(--v28-coral);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(230,57,70,.25);
}

/* ============================================================
   4. SEARCH OVERLAY
   ============================================================ */
.v28-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(54,48,48,.6);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.v28-search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.v28-search-overlay .search-inner {
    background: var(--v28-white);
    border-radius: 16px;
    padding: 20px 24px;
    max-width: 600px;
    width: 90%;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(54,48,48,.15);
}

.v28-search-overlay .search-icon {
    font-size: 22px;
    color: var(--v28-ink-muted);
    flex-shrink: 0;
}

.v28-search-overlay input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--v28-ink);
    background: transparent;
    padding: 12px 0;
}

.v28-search-overlay input[type="search"]::placeholder {
    color: var(--v28-ink-muted);
}

.v28-search-overlay button[type="submit"] {
    background: var(--v28-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

.v28-search-overlay button[type="submit"]:hover {
    background: var(--v28-primary-light);
}

.v28-search-overlay .close-search {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--v28-ink-muted);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color .2s;
}

.v28-search-overlay .close-search:hover {
    color: var(--v28-coral);
}

/* ============================================================
   5. MOBILE MENU BUTTON (injected by JS)
   ============================================================ */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 26px;
    background: none;
    border: 0;
    color: var(--v28-ink);
    cursor: pointer;
    order: 10;
    z-index: 200;
}

/* ============================================================
   6. MOBILE SIDEBAR
   ============================================================ */
.v28-mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--v28-white);
    z-index: 10000;
    box-shadow: -8px 0 30px rgba(54,48,48,.15);
    transition: right .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;
}

.v28-mobile-sidebar.open {
    right: 0;
}

.v28-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(54,48,48,.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}

.v28-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.v28-mobile-sidebar .mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--v28-ink);
    cursor: pointer;
    padding: 4px 8px;
    margin-bottom: 16px;
}

.v28-mobile-sidebar .mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.v28-mobile-sidebar .mobile-sidebar-header .mobile-close {
    margin-bottom: 0;
}

.v28-mobile-sidebar .mobile-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 16px;
    border-top: 1px solid var(--v28-border-light);
    margin-top: 16px;
}

.v28-mobile-sidebar .mobile-sidebar-footer a {
    color: var(--v28-ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
}

.v28-mobile-sidebar .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v28-mobile-sidebar .mobile-nav-links a {
    display: block;
    padding: 14px 16px;
    color: var(--v28-ink);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--v28-radius-btn);
    transition: background .15s;
}

.v28-mobile-sidebar .mobile-nav-links a:hover,
.v28-mobile-sidebar .mobile-nav-links a.active {
    background: var(--v28-paper-warm);
    color: var(--v28-coral);
}

/* ---------- Express 24H — V4 Split Badge (Mobile Sidebar) ---------- */
.v28-mobile-sidebar .mobile-nav-links a.nav-express {
    background: var(--v28-primary);
    color: var(--v28-white);
    font-weight: 700;
    font-size: 18px;
    text-align: left;
    border-radius: 12px;
    margin-top: 12px;
    padding: 10px 10px 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.v28-mobile-sidebar .mobile-nav-links a.nav-express:hover {
    background: #2a2525;
    color: var(--v28-white);
}

.v28-mobile-sidebar .mobile-nav-links a.nav-express .express-chip {
    background: var(--v28-gold);
    color: var(--v28-primary);
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: .3px;
    margin-left: auto;
}

/* ── Mobile sidebar lang section ── */
.v28-mobile-sidebar .mobile-lang-section {
    padding: 16px 16px;
    border-top: 1px solid var(--v28-border-light);
    margin-top: 12px;
}

.v28-mobile-sidebar .mobile-lang-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--v28-ink-muted);
    margin-bottom: 10px;
}

.v28-mobile-sidebar .mobile-lang-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v28-mobile-sidebar .mobile-lang-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--v28-radius-btn);
    color: var(--v28-ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.v28-mobile-sidebar .mobile-lang-list a:hover {
    background: var(--v28-paper-warm);
}

.v28-mobile-sidebar .mobile-lang-list a.active {
    background: var(--v28-paper-warm);
    font-weight: 700;
    color: var(--v28-coral);
}

.v28-mobile-sidebar .mobile-lang-list a .flag-img {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

.v28-mobile-sidebar .mobile-lang-list a .check {
    margin-left: auto;
    font-size: 14px;
    color: var(--v28-coral);
    display: none;
}

.v28-mobile-sidebar .mobile-lang-list a.active .check {
    display: inline;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */

/* ---------- Tablet (≤ 1100px) ---------- */
@media (max-width: 1100px) {
    :root {
        --v28-navbar-h: 64px;
    }
    .nav-links a { padding: 8px 16px; }
    .nav-links a.nav-express { padding: 6px 6px 6px 14px; }
    .nav-links a.nav-express .express-chip { padding: 4px 10px; font-size: 13px; }
    .navbar .container {
        padding: 0 20px;
    }
    .logo-img {
        height: 32px;
    }
    .lang-current { padding: 5px 8px; }
    .nav-icon {
        width: 42px;
        height: 42px;
    }
    .express-top-inner {
        gap: 20px;
    }
}

/* ---------- Mobile nav breakpoint (≤ 860px) ---------- */
@media (max-width: 860px) {
    :root {
        --v28-navbar-h: 60px;
    }
    .nav-links {
        display: none !important;
    }
    .lang-switch {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .logo-img {
        height: 28px;
    }
    .nav-right {
        gap: 4px;
    }
    .nav-icon {
        width: 46px;
        height: 46px;
    }
    .nav-icon svg {
        width: 22px;
        height: 22px;
    }
    .mobile-menu-btn { width: 46px; height: 46px; }
    .express-top-bar {
        padding: 4px 0;
    }
    .express-sub-text {
        display: none;
    }
    .express-top-inner {
        gap: 12px;
    }
    .express-top-timer .timer-lbl {
        display: none;
    }
    .cart-badge { width: 18px; height: 18px; top: 4px; right: 4px; }
}

/* ---------- Small mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
    :root {
        --v28-navbar-h: 54px;
    }
    .navbar .container {
        padding: 0 12px;
    }
    .logo-img {
        height: 24px;
    }
    .nav-right {
        gap: 2px;
    }
    .nav-icon {
        width: 42px;
        height: 42px;
    }
    .nav-icon svg {
        width: 20px;
        height: 20px;
    }
    .mobile-menu-btn { width: 42px; height: 42px; }
    .express-top-bar {
        padding: 3px 0;
    }
}

/* ============================================================
   8. HIDE WP ADMIN BAR gap on sticky
   ============================================================ */
body.admin-bar .navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

/* ============================================================
   9. SUPPRESS DUPLICATE / CONFLICTING ELEMENTS
   ============================================================ */
/* Hide WPML footer-style switcher if it appears near header */
body .wpml-ls-statics-footer {
    /* Keep in footer but ensure it doesn't appear in header zone */
}

/* Remove any Hello Elementor default nav styling conflicts */
.site-header .site-branding,
.site-header .site-navigation {
    display: none !important;
}
