:root {
    --header-paper: #f4f2ed;
    --header-ink: #0a0a0a;
    --header-line: #dcd9d1;
    --header-purple: #6747ff;
    --header-yellow: #f2c441
}

.trustbar {
    height: 32px;
    background: #080808;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 0 20px;
    font: 600 10px/1 Inter, Arial, sans-serif;
    position: relative;
    z-index: 102
}

.trustbar i {
    width: 3px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--header-yellow)
}

.site-header {
    height: 78px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
    align-items: center;
    padding: 0 clamp(24px, 5vw, 80px);
    background: rgba(244, 242, 237, .96);
    border-bottom: 1px solid rgba(10, 10, 10, .1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px)
}

.header-logo,
.nav-drawer-logo {
    display: flex;
    align-items: center;
    width: max-content
}

.header-logo img,
.nav-drawer-logo img {
    display: block;
    width: 210px;
    height: 60px;
    object-fit: contain;
    object-position: left center
}

.desktop-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 1.65vw, 32px);
    white-space: nowrap
}

.desktop-navigation a {
    font: 600 12px/1 Inter, Arial, sans-serif;
    transition: opacity .2s
}

.desktop-navigation a:hover {
    opacity: .52
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px
}

.header-icon,
.nav-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: var(--header-ink);
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer
}

.header-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.account-status {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    border: 1px solid var(--header-paper)
}

.cart-count,
#mobileCartCount {
    display: grid;
    place-items: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--header-purple);
    color: #fff;
    font: 700 9px/1 Inter, Arial, sans-serif
}

.cart-count {
    position: absolute;
    right: 0;
    top: 0
}

.cart-count[hidden],
#mobileCartCount[hidden],
.account-status[hidden] {
    display: none !important
}

.nav-toggle {
    display: none
}

.nav-toggle span {
    position: absolute;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform .25s ease
}

.nav-toggle span:first-child {
    transform: translateY(-3px)
}

.nav-toggle span:last-child {
    transform: translateY(3px)
}

.nav-drawer {
    position: fixed;
    z-index: 104;
    top: 0;
    right: 0;
    width: min(390px, 92vw);
    height: 100dvh;
    padding: 20px 24px 24px;
    background: var(--header-paper);
    box-shadow: -22px 0 60px rgba(0, 0, 0, .18);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility 0s linear .28s
}

.nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--header-line)
}

.nav-drawer-logo img {
    width: 180px;
    height: 52px
}

.nav-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--header-ink);
    font: 300 30px/1 Inter, Arial, sans-serif;
    cursor: pointer
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    padding: 18px 0
}

.nav-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(10, 10, 10, .07);
    font: 600 15px/1.2 "Space Grotesk", Inter, sans-serif
}

.nav-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 18px 0;
    border-top: 1px solid var(--header-line);
    font: 600 12px/1 Inter, Arial, sans-serif
}

.nav-user-badge {
    width: 100%;
    font-family: "IBM Plex Mono", monospace;
    color: var(--header-purple)
}

.nav-account,
.nav-logout {
    padding: 11px 14px;
    border: 1px solid var(--header-ink);
    background: transparent;
    color: var(--header-ink);
    font: 600 12px/1 Inter, Arial, sans-serif;
    cursor: pointer
}

.nav-drawer-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    color: #6e6b65;
    font: 500 10px/1.3 "IBM Plex Mono", monospace
}

.nav-overlay {
    position: fixed;
    z-index: 103;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, visibility 0s linear .25s
}

body.nav-open {
    overflow: hidden
}

body.nav-open .nav-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s
}

body.nav-open .nav-toggle span:first-child {
    transform: rotate(45deg)
}

body.nav-open .nav-toggle span:last-child {
    transform: rotate(-45deg)
}

@media(max-width:1180px) {
    .site-header {
        grid-template-columns: auto 1fr auto
    }

    .desktop-navigation {
        gap: 15px
    }

    .desktop-navigation a:nth-child(6) {
        display: none
    }

    .header-logo img {
        width: 185px
    }
}

@media(max-width:900px) {
    .desktop-navigation {
        display: none
    }

    .nav-toggle {
        display: grid
    }

    .site-header {
        height: 68px;
        padding: 0 20px
    }

    .header-logo img {
        width: 180px;
        height: 54px
    }
}

@media(max-width:640px) {
    .trustbar {
        height: 29px;
        justify-content: flex-start;
        overflow: hidden;
        white-space: nowrap;
        padding: 0 16px
    }

    .trustbar span:nth-of-type(n+3),
    .trustbar i:nth-of-type(n+2) {
        display: none
    }

    .site-header {
        grid-template-columns: 1fr auto;
        padding: 0 14px
    }

    .header-logo img {
        width: 166px
    }

    .header-actions {
        gap: 0
    }

    .nav-drawer {
        padding: 16px 20px 20px
    }
}

@media(prefers-reduced-motion:reduce) {

    .nav-drawer,
    .nav-overlay,
    .nav-toggle span {
        transition: none
    }
}

/* =========================================================
   LOGOUT NO HEADER — CLUBE404
   Cole este bloco no FINAL de /css/header.css
   ========================================================= */

.header-actions .header-logout {
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.header-actions .header-logout[hidden] {
  display: none !important;
}

.header-actions .header-logout:not([hidden]) {
  display: inline-grid;
}

.header-actions .header-logout:hover {
  color: #ff4d00;
}

.header-actions .header-logout:disabled {
  cursor: wait;
  opacity: 0.45;
}

@media (max-width: 900px) {
  .header-actions .header-logout {
    display: none !important;
  }
}