/* Shared header geometry. Keep this file small and synchronous: it prevents the
   header from changing size while the page stylesheet and web fonts load. */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 89px;
    padding: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.header, .header *, .header *::before, .header *::after { box-sizing: border-box; }
.header > .container { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; }
.header .header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 89px;
    padding: 22px 0;
    position: relative;
}
.header .header-left { display: flex; align-items: center; gap: 40px; justify-self: start; }
.header .header-center { display: flex; align-items: center; justify-content: center; justify-self: center; }
.header .header-right { display: flex; align-items: center; justify-content: flex-end; justify-self: end; }
.header .logo-wrapper { display: flex; flex-direction: column; align-items: flex-start; }
.header .logo { display: flex; align-items: center; gap: 12px; position: relative; }
.header .logo picture { display: block; width: 45px; height: 45px; flex: 0 0 45px; }
.header .logo-image { display: block; width: 45px; height: 45px; object-fit: contain; margin-top: -2px; }
.header .logo .logo-brand-name {
    display: inline;
    position: relative;
    margin: 0;
    padding: 0;
    color: #000;
    font: 700 24px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.header .logo-subtitle {
    margin: -6px 0 0 6px !important;
    color: #000;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.header .nav { display: flex; align-items: center; gap: 24px; }
.header .nav-link { white-space: nowrap; line-height: 1.25; }
.header .header-actions { display: flex; align-items: center; gap: 15px; }
.header .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    flex: 0 0 48px;
    padding: 10px 13px;
    border: 0;
    border-radius: 15px;
    background: #f5f5f5;
    color: #111;
    position: relative;
    line-height: 1;
}
.header .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 3px 7px;
    border-radius: 50%;
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}
/* Games used to repaint the shared header as a separate dark component. The
   navigation is now deliberately identical to the rest of Trust Store. */
body.games-world .header, body.games-world header.header {
    background: #fff !important;
    color: #111 !important;
    border-bottom: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
body.games-world .header .logo-brand-name,
body.games-world .header .logo-subtitle,
body.games-world .header .nav-link { color: #111 !important; text-shadow: none !important; }
body.games-world .header .btn-icon {
    background: #f5f5f5 !important;
    color: #111 !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.games-world .header .hamburger-line { background: #1a1a1a !important; }
/* Fixed vector icons replace font/emoji glyphs, whose metrics vary by page. */
.header .search-btn, .header .cart-btn { font-size: 0 !important; }
.header .search-btn::before, .header .cart-btn::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.header .search-btn::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m20 20-4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m20 20-4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.header .cart-btn::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 2-1.6L20 8H6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h2l2.2 10.2a2 2 0 0 0 2 1.6h7.6a2 2 0 0 0 2-1.6L20 8H6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
    .header { min-height: 72px; }
    .header > .container { padding-left: 16px; padding-right: 16px; }
    .header .header-content { display: flex; justify-content: space-between; min-height: 72px; padding: 14px 0; gap: 8px; }
    .header .header-left, .header .header-right { flex: 0 0 auto; }
    .header .header-center { position: fixed; visibility: hidden; opacity: 0; pointer-events: none; }
    .header .nav, .header .logo-subtitle, .header .theme-toggle-wrapper, .header .currency-toggle { display: none; }
    .header .logo picture, .header .logo-image { width: 40px; height: 40px; flex-basis: 40px; }
    .header .logo .logo-brand-name { font-size: 18px !important; }
    .header .header-actions { gap: 8px; }
    .header .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; flex: 0 0 44px; padding: 8px; border: 0; background: transparent; }
    .header .hamburger-line { display: block; width: 24px; height: 2px; background: #1a1a1a; border-radius: 2px; }
    .header .btn-icon { width: 44px; height: 44px; flex-basis: 44px; padding: 10px 12px; }
}
@media (max-width: 480px) {
    .header { min-height: 64px; }
    .header > .container { padding-left: 12px; padding-right: 12px; }
    .header .header-content { min-height: 64px; padding: 12px 0; }
    .header .logo picture, .header .logo-image { width: 36px; height: 36px; flex-basis: 36px; }
    .header .logo .logo-brand-name { font-size: 16px !important; }
}
