/* ================================================================
   TRADEPRINT THEME — HEADER.CSS
   Promo bar · Desktop header · Mobile header · VAT toggle ·
   Brand · Search · Nav links · Header dropdowns
   ================================================================ */

/* ----------------------------------------------------------------
   PROMO BAR
   ---------------------------------------------------------------- */
.promo-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #f0f5ff 0%, #eef3ff 50%, #e8f0fe 100%);
    border-bottom: 1px solid rgba(21, 101, 192, 0.15);
    padding: 9px 56px 9px 16px;
}

.promo-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.promo-bar__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(21, 101, 192, 0.10);
    border: 1px solid rgba(21, 101, 192, 0.22);
    color: var(--tp-green);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 11px;
    border-radius: 50px;
    flex-shrink: 0;
    white-space: nowrap;
}

.promo-bar__text {
    color: var(--tp-text);
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

.promo-bar__text strong {
    color: var(--tp-dark);
    font-weight: 700;
}

.promo-bar__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--tp-green, #1565C0);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.2px;
}

.promo-bar__cta:hover {
    background: var(--tp-green-dark, #0D47A1);
    color: #fff;
    transform: translateY(-1px);
}

.promo-bar__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--tp-text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
    border-radius: 50%;
}

.promo-bar__close:hover {
    color: var(--tp-dark);
    background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .promo-bar__badge { display: none; }
    .promo-bar__text { font-size: 12px; }
    .promo-bar__cta { font-size: 11px; padding: 6px 14px; }
}

@media (max-width: 480px) {
    .promo-bar { padding: 8px 48px 8px 12px; }
    .promo-bar__inner { gap: 8px; }
    .promo-bar__cta { display: none; }
}

/* ----------------------------------------------------------------
   SITE HEADER
   ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1041;
    background: #fff;
    border-bottom: 1px solid var(--tp-border, #e5e7eb);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------------------
   LAYOUT ROWS
   ---------------------------------------------------------------- */
.header-desktop {
    display: none;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
}

@media (min-width: 992px) { .header-desktop { display: flex !important; } }

.header-mobile { display: block; }
@media (min-width: 992px) { .header-mobile { display: none !important; } }

/* Mobile: single top row */
.hm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
}

/* Mobile: right-side icons cluster */
.hm-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile: full-width search bar row */
.hm-search {
    padding: 0 0 10px;
}

/* Mobile burger button */
.hm-burger {
    width: 38px;
    height: 38px;
    border-radius: var(--radius, 6px);
    border: 1.5px solid var(--tp-border-dark, #d1d5db);
    background: none;
    color: var(--tp-text, #2b2b2b);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.hm-burger:hover,
.hm-burger[aria-expanded="true"] {
    border-color: var(--tp-green, #1565C0);
    color: var(--tp-green, #1565C0);
}

/* ----------------------------------------------------------------
   BRAND LOGO + TEXT
   ---------------------------------------------------------------- */
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tp-green, #1565C0) 0%, var(--tp-green-light, #42A5F5) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    letter-spacing: -0.5px;
}

.brand-text {
    font-weight: 800;
    color: var(--tp-dark, #111827);
    letter-spacing: -1px;
    font-size: 1.75rem;
    text-transform: uppercase;
}

@media (max-width: 575px) {
    .brand-text { font-size: 1.3rem; letter-spacing: -0.5px; }
    .brand-logo { width: 34px; height: 34px; font-size: 12px; border-radius: 8px; }
}

/* ----------------------------------------------------------------
   SEARCH
   ---------------------------------------------------------------- */
.search-container {
    max-width: 500px;
    width: 100%;
    position: relative;
}

.search-input {
    border: 1.5px solid var(--tp-border-dark, #d1d5db);
    border-radius: 50px;
    padding: 9px 46px 9px 20px;
    outline: none !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--tp-text, #2b2b2b);
    background: var(--tp-bg, #f9fafb);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    width: 100%;
}

.search-input:focus {
    border-color: var(--tp-green, #1565C0);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1) !important;
}

.search-input::placeholder { color: var(--tp-text-light, #9ca3af); }

.search-btn {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--tp-text-muted, #6b7280);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    transition: color 0.2s;
    line-height: 1;
}

.search-btn:hover { color: var(--tp-green, #1565C0); }

/* ----------------------------------------------------------------
   DESKTOP HEADER RIGHT SECTION
   ---------------------------------------------------------------- */
.hdr-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.hdr-gst {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdr-divider {
    display: inline-block;
    width: 1px;
    height: 30px;
    background: var(--tp-border, #e5e7eb);
    flex-shrink: 0;
}

.hdr-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hdr-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-md, 8px);
    border: none;
    background: none;
    color: var(--tp-text, #2b2b2b);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-base);
    transition: background 0.15s, color 0.15s;
    line-height: 1.2;
    white-space: nowrap;
}

.hdr-action-btn i {
    font-size: 1.3rem;
    display: block;
}

.hdr-action-btn:hover {
    background: var(--tp-bg, #f9fafb);
    color: var(--tp-green, #1565C0);
}

/* ----------------------------------------------------------------
   VAT TOGGLE
   ---------------------------------------------------------------- */
.vat-label {
    color: var(--tp-text, #2b2b2b);
    font-size: 13px;
    font-weight: 700;
}

.vat-toggle { opacity: 0; position: absolute; width: 0; height: 0; pointer-events: none; }

#vat-toggle, #vat-toggle-mobile { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.vat-toggle-label {
    background-color: var(--tp-dark, #111827);
    position: relative;
    width: 60px;
    height: 28px;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.vat-toggle:checked + .vat-toggle-label { background-color: var(--tp-green, #1565C0); }

.vat-toggle-label .toggle-off,
.vat-toggle-label .toggle-on { color: #fff; font-size: 11px; font-weight: 700; }

.vat-toggle-label .toggle-handle {
    background-color: #fff;
    position: absolute;
    width: 22px;
    height: 22px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vat-toggle:checked + .vat-toggle-label .toggle-handle { transform: translateX(31px); }

/* ----------------------------------------------------------------
   NAV LINKS (Account, Basket, Contact, Help)
   ---------------------------------------------------------------- */
.nav-link-tp {
    color: var(--tp-text, #2b2b2b);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.18s;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    gap: 3px;
}

.nav-link-tp i { font-size: 1.35rem; }
.nav-link-tp:hover { color: var(--tp-green, #1565C0); }

.dropdown-arrow { font-size: 0.75rem !important; margin-left: 2px; color: var(--tp-text-muted, #6b7280); }

/* ----------------------------------------------------------------
   MOBILE ACTION BUTTONS
   ---------------------------------------------------------------- */
.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--tp-text, #2b2b2b);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-base);
    cursor: pointer;
    padding: 4px 6px;
    min-width: 44px;
    transition: color 0.15s;
    line-height: 1.2;
}

.header-action-btn i { font-size: 1.2rem; display: block; }
.header-action-btn:hover { color: var(--tp-green, #1565C0); }

@media (max-width: 374px) {
    .header-action-btn { min-width: 36px; padding: 4px 2px; font-size: 9px; }
    .header-action-btn i { font-size: 1.05rem; }
}

/* ----------------------------------------------------------------
   BURGER (legacy support)
   ---------------------------------------------------------------- */
.nav-burger-btn {
    background: none;
    border: 1.5px solid var(--tp-border-dark, #d1d5db);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-text, #2b2b2b);
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.nav-burger-btn:hover { border-color: var(--tp-green, #1565C0); color: var(--tp-green, #1565C0); }

.header-burger-wrap { display: flex !important; }
@media (min-width: 992px) { .header-burger-wrap { display: none !important; } }
