:root {
    --hdr-primary: #1a2b4a;
    --hdr-primary-light: #2d4a7c;
    --hdr-accent: #e63946;
    --hdr-accent-hover: #c1121f;
    --hdr-surface: #ffffff;
    --hdr-text: #1a1a2e;
    --hdr-muted: #64748b;
    --hdr-border: #e2e8f0;
    --hdr-height: 72px;
}

/* ── Utility bar ── */
.header-utility {
    background: var(--hdr-primary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 0.4rem 0;
    display: none;
}

@media (min-width: 768px) {
    .header-utility {
        display: block;
    }
}

.header-utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.header-utility a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.header-utility a:hover {
    color: #fff;
}

.header-utility-left,
.header-utility-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-utility i {
    margin-right: 0.35rem;
    opacity: 0.8;
}

/* ── Main header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--hdr-surface);
    border-bottom: 1px solid var(--hdr-border);
    box-shadow: 0 2px 16px rgba(26, 43, 74, 0.06);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: var(--hdr-height);
}

@media (min-width: 768px) {
    .header-main {
        padding: 0 1.25rem;
    }
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--hdr-text);
    flex-shrink: 0;
}

.header-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 56px;
    }
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-logo-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--hdr-primary);
    letter-spacing: -0.02em;
}

.header-logo-tagline {
    font-size: 0.7rem;
    color: var(--hdr-muted);
    font-weight: 500;
    display: none;
}

@media (min-width: 992px) {
    .header-logo-tagline {
        display: block;
    }
}

/* Desktop nav */
.header-nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 992px) {
    .header-nav-links {
        display: flex;
    }
}

.header-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hdr-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--hdr-primary);
    background: #f0f4ff;
}

.header-nav-link i {
    margin-right: 0.35rem;
    font-size: 0.85rem;
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

@media (min-width: 992px) {
    .header-actions {
        gap: 0.625rem;
    }
}

/* Admin pills — desktop */
.header-admin-group {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding-right: 0.75rem;
    margin-right: 0.25rem;
    border-right: 1px solid var(--hdr-border);
}

@media (min-width: 992px) {
    .header-admin-group {
        display: flex;
    }
}

.header-admin-link {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hdr-primary-light);
    text-decoration: none;
    background: #f0f4ff;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-admin-link:hover {
    background: var(--hdr-primary);
    color: #fff;
}

/* Icon buttons */
.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--hdr-border);
    background: var(--hdr-surface);
    color: var(--hdr-muted);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.header-icon-btn:hover {
    border-color: var(--hdr-primary-light);
    color: var(--hdr-primary);
    background: #f0f4ff;
}

/* Cart pill */
.header-cart {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 50px;
    background: var(--hdr-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    position: relative;
}

@media (min-width: 768px) {
    .header-cart {
        display: inline-flex;
    }
}

.header-cart:hover {
    background: var(--hdr-primary-light);
    color: #fff;
    transform: translateY(-1px);
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50px;
    background: var(--hdr-accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hdr-surface);
}

.header-cart-total {
    font-weight: 700;
}

/* Mobile cart icon */
.header-cart-mobile {
    display: inline-flex;
}

@media (min-width: 768px) {
    .header-cart-mobile {
        display: none;
    }
}

/* Burger */
.header-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hdr-border);
    border-radius: 10px;
    background: var(--hdr-surface);
    color: var(--hdr-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.header-burger:hover {
    background: #f0f4ff;
    border-color: var(--hdr-primary-light);
}

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

/* ── Mobile offcanvas overrides ── */
.header-offcanvas.offcanvas {
    border-left: 1px solid var(--hdr-border);
    max-width: 320px;
}

.header-offcanvas .offcanvas-header {
    background: var(--hdr-primary);
    color: #fff;
    padding: 1.25rem;
}

.header-offcanvas .offcanvas-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.header-offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.header-mobile-nav {
    padding: 0.75rem;
}

.header-mobile-section {
    margin-bottom: 1rem;
}

.header-mobile-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hdr-muted);
    padding: 0.5rem 0.75rem 0.35rem;
}

.header-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--hdr-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.header-mobile-link:hover {
    background: #f0f4ff;
    color: var(--hdr-primary);
}

.header-mobile-link i {
    width: 20px;
    text-align: center;
    color: var(--hdr-muted);
}

.header-mobile-link .badge-count {
    margin-left: auto;
    background: var(--hdr-accent);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-weight: 700;
}

.header-mobile-cta {
    display: block;
    margin: 1rem 0.75rem 0;
    padding: 0.85rem;
    border-radius: 12px;
    background: var(--hdr-accent);
    color: #fff;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.header-mobile-cta:hover {
    background: var(--hdr-accent-hover);
    color: #fff;
}

.header-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    color: var(--hdr-muted);
    font-size: 0.9rem;
}

.header-mobile-phone a {
    color: var(--hdr-primary);
    font-weight: 700;
    text-decoration: none;
}
