/**
 * V28 Header — v28-header.css
 * T-Shirt Planet — mytshirt.be
 *
 * Covers: express top bar, navbar, nav links, language switcher,
 * search overlay + autocomplete, mobile sidebar + overlay,
 * mobile hamburger button.
 */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */

: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;
}


/* ─── EXPRESS TOP BAR ────────────────────────────────────────── */

.express-top-bar {
    background-color: 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;
    height: 14px;
}

.express-top-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.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: 0.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;
}


/* ─── 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);
}

/* Elementor header overrides */
[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%;
    padding: 0;
    margin: 0;
}

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

.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;
}

body.admin-bar .navbar {
    top: 32px;
}

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


/* ─── 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;
}


/* ─── DESKTOP 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-sm);
    transition: background var(--v28-transition), color var(--v28-transition);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    letter-spacing: 0.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);
}

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

.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: 0.2px;
    text-decoration: none;
    transition: background .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.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: 0.3px;
}


/* ─── NAV RIGHT (icons row) ──────────────────────────────────── */

.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: 1px solid var(--v28-border);
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--v28-ink);
    transition: all .2s ease;
    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;
}

.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: rgba(54,48,48,.1) 0 12px 40px, rgba(54,48,48,.06) 0 4px 12px;
    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 ease;
}

.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;
}

/* Checkmark — only visible on the active language */
.lang-option .check {
    display: none;
    margin-left: auto;
    font-size: 13px;
    color: var(--v28-coral);
}

.lang-option.active .check {
    display: inline;
}

.lang-option.active {
    font-weight: 700;
}


/* ─── NAV ICONS (search, account, cart) ──────────────────────── */

.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--v28-radius-sm);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--v28-ink);
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
    transition: background var(--v28-transition);
}

.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;
}


/* ─── MOBILE HAMBURGER BUTTON ─────────────────────────────────
   FIX: base rule must exist so desktop gets display:none and
   the hello-elementor reset.css pink border/color is overridden.
   ──────────────────────────────────────────────────────────── */

.mobile-menu-btn {
    display: none;               /* hidden on desktop by default */
    border: none;                /* override reset.css pink border */
    background: transparent;
    color: #363030;              /* override reset.css pink text */
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}


/* ─── 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: rgba(230,57,70,.25) 0 1px 3px;
}


/* ─── SEARCH OVERLAY ─────────────────────────────────────────── */

.v28-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,17,17,.75);
    backdrop-filter: blur(18px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 72px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

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

.v28-search-overlay::before {
    content: 'SEARCH';
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,.35);
    margin-bottom: 20px;
}

.v28-search-overlay .close-search {
    position: absolute;
    top: 20px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.75);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    line-height: 1;
    padding: 0;
    z-index: 1;
}

.v28-search-overlay .close-search:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    transform: rotate(90deg);
}

.v28-search-overlay .search-overlay-inner {
    width: min(720px, 92vw);
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0;
    box-shadow:
        rgba(193,229,62,.55) 0 0 0 1.5px,
        rgba(0,0,0,.08) 0 8px 16px,
        rgba(0,0,0,.28) 0 32px 80px;
    transform: translateY(-20px) scale(.97);
    transition: transform .32s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}

.v28-search-overlay.open .search-overlay-inner {
    transform: translateY(0) scale(1);
}

.v28-search-overlay .search-overlay-inner form {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    margin: 0;
    padding: 0;
}

.v28-search-overlay .search-overlay-inner form::after {
    content: '';
    width: 1px;
    height: 30px;
    background: rgba(54,48,48,.12);
    flex-shrink: 0;
}

.v28-search-overlay input[type="search"] {
    flex: 1;
    border: none;
    outline: none;
    font-family: Outfit, sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #1a1717;
    background: transparent;
    padding: 22px 0 22px 28px;
    letter-spacing: -.02em;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
}

.v28-search-overlay input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.v28-search-overlay input[type="search"]::placeholder {
    color: rgba(54,48,48,.28);
    font-weight: 300;
}

.v28-search-overlay button[type="submit"] {
    flex-shrink: 0;
    background: #C1E53E;
    border: none;
    border-radius: 0 20px 20px 0;
    width: 72px;
    height: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.v28-search-overlay button[type="submit"]:hover {
    background: #AFE02A;
}

.v28-search-overlay button[type="submit"] svg {
    width: 22px;
    height: 22px;
    stroke: #1a1717;
    flex-shrink: 0;
}

.v28-search-hint {
    margin-top: 18px;
    color: rgba(255,255,255,.3);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.v28-search-hint kbd {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 600px) {
    .v28-search-overlay { padding-top: 56px; }
    .v28-search-overlay .close-search { top: 14px; right: 16px; width: 36px; height: 36px; font-size: 16px; }
    .v28-search-overlay input[type="search"] { font-size: 18px; padding: 18px 0 18px 20px; }
    .v28-search-overlay button[type="submit"] { width: 58px; min-height: 56px; }
    .v28-suggest-item, .v28-suggest-all { padding: 12px 16px; font-size: 14px; }
}


/* ─── SEARCH AUTOCOMPLETE DROPDOWN ───────────────────────────── */

.v28-search-dropdown {
    width: min(720px, 92vw);
    margin-top: 10px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: rgba(0,0,0,.04) 0 4px 6px, rgba(0,0,0,.22) 0 24px 56px;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    pointer-events: none;
}

.v28-search-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.v28-suggest-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: #363030;
    font-family: Outfit, sans-serif;
    font-size: 15px;
    font-weight: 400;
    border-bottom: 1px solid rgba(54,48,48,.05);
    transition: background .12s ease;
}

.v28-suggest-item:hover {
    background: rgba(193,229,62,.1);
}

.v28-suggest-item:hover .suggest-arrow {
    transform: translateX(4px);
    color: #363030;
}

.suggest-icon {
    color: rgba(54,48,48,.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.suggest-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggest-text mark {
    background: none;
    color: #1a1717;
    font-weight: 700;
}

.suggest-arrow {
    color: rgba(54,48,48,.2);
    font-size: 15px;
    flex-shrink: 0;
    transition: transform .15s ease, color .15s ease;
}

.v28-suggest-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(54,48,48,.024);
    text-decoration: none;
    color: rgba(54,48,48,.55);
    font-family: Outfit, sans-serif;
    font-size: 14px;
    font-weight: 400;
    border-top: 1px solid rgba(54,48,48,.06);
    transition: background .12s ease, color .12s ease;
}

.v28-suggest-all:hover {
    background: rgba(193,229,62,.1);
    color: #363030;
}

.v28-suggest-all strong {
    font-weight: 600;
    color: #363030;
}


/* ─── 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: rgba(54,48,48,.15) -8px 0 30px;
    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 ease;
}

.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-sm);
    transition: background .15s ease;
}

.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);
}

.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: 0.3px;
    margin-left: auto;
}

.v28-mobile-sidebar .mobile-lang-section {
    padding: 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: 0.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-sm);
    color: var(--v28-ink);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease;
}

.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;
}


/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────────── */

/* Tablet: tighten nav spacing */
@media (max-width: 1100px) {
    :root { --v28-navbar-h: 64px; }

    .navbar .container { padding: 0 20px; }
    .logo-img { height: 32px; }

    .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; }

    .lang-current { padding: 5px 8px; }
    .nav-icon { width: 42px; height: 42px; }

    .express-top-inner { gap: 20px; }
}

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 860px) {
    :root { --v28-navbar-h: 60px; }

    .nav-links    { display: none !important; }
    .lang-switch  { display: none !important; }

    /* Show hamburger — flex so align/justify work */
    .mobile-menu-btn { display: flex !important; width: 46px; height: 46px; }

    .logo-img { height: 28px; }
    .nav-right { gap: 4px; }
    .nav-icon { width: 46px; height: 46px; }
    .nav-icon svg { width: 22px; height: 22px; }

    .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 */
@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 !important; height: 42px !important; }
    .express-top-bar { padding: 3px 0; }
}
