.site-shell-header {
    --site-shell-surface: rgba(255, 255, 255, .88);
    --site-shell-text: #242735;
    --site-shell-border: rgba(89, 110, 159, .18);
    position: sticky;
    inset-block-start: 0;
    z-index: 1100;
    width: 100%;
    padding: 0;
    color: var(--site-shell-text);
    background: var(--site-shell-surface);
    border-bottom: 1px solid var(--site-shell-border);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dark-mode .site-shell-header {
    --site-shell-surface: rgba(27, 27, 31, .92);
    --site-shell-text: #f5f5f7;
    --site-shell-border: rgba(255, 255, 255, .16);
    background: var(--site-shell-surface);
}
.site-shell-header *, .site-shell-header *::before, .site-shell-header *::after { box-sizing: border-box; }
.site-shell-container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: clamp(12px, 2vw, 40px); }
.site-shell-bar { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 76px; }
.site-shell-logo { flex: 0 1 180px; min-width: 80px; }
.site-shell-logo img { display: block; width: 100%; max-width: 180px; max-height: 48px; object-fit: contain; }
.site-shell-primary { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.site-shell-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; flex-shrink: 0; }
.site-shell-header a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.site-shell-header button { font: inherit; cursor: pointer; color: inherit; }
.site-shell-header summary { cursor: pointer; list-style: none; }
.site-shell-header summary::-webkit-details-marker { display: none; }
.site-shell-header summary:focus-visible, .site-shell-header button:focus-visible, .site-shell-header a:focus-visible { outline: 3px solid #597fc8; outline-offset: 3px; }
.site-shell-dropdown { position: relative; }
.site-shell-dropdown > summary, .site-shell-theme, .site-shell-menu-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; }
.site-shell-dropdown > summary:hover, .site-shell-header button:hover, .site-shell-menu a:hover { background: rgba(89, 110, 159, .12); }
.site-shell-popover { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; width: 280px; max-width: calc(100vw - 24px); max-height: min(72vh, 640px); max-height: min(72dvh, 640px); overflow-y: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid var(--site-shell-border); border-radius: 18px; background: var(--site-shell-surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 16px 48px rgba(0, 0, 0, .16); }
.site-shell-actions .site-shell-popover { inset-inline-start: auto; inset-inline-end: 0; }
.site-shell-popover p { margin: 0 0 10px; padding: 8px 10px; }
.site-shell-popover > a { display: block; padding: 10px; border-radius: 10px; }
.site-shell-header .site-shell-avatar { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--site-shell-border); background: #596e9f; color: #fff; font-weight: 700; overflow: hidden; }
.site-shell-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-shell-account-name { font-weight: 600; overflow-wrap: anywhere; }
.site-shell-cart > summary { padding: 10px 4px; }
.site-shell-cart [data-site-cart-count] { font-size: 12px; min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.site-shell-menu { list-style: none; padding: 0; margin: 0; }
.site-shell-menu .site-shell-menu { padding-inline-start: 12px; border-inline-start: 1px solid var(--site-shell-border); }
.site-shell-menu a, .site-shell-menu button, .site-shell-menu summary { display: block; width: 100%; min-height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: start; }
.site-shell-menu summary::after, .site-shell-primary > details > summary::after { content: "⌄"; margin-inline-start: 8px; }
.site-shell-menu-button { border-color: var(--site-shell-border); }
.site-shell-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, calc(100vw - 24px)); height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; color: var(--site-shell-text); background: var(--site-shell-surface); border: 0; border-inline-start: 1px solid var(--site-shell-border); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.site-shell-drawer[open] { display: flex; flex-direction: column; }
.site-shell-drawer::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); }
.site-shell-drawer-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-shrink: 0; padding-bottom: 16px; border-bottom: 1px solid var(--site-shell-border); }
.site-shell-drawer-heading h2 { font-size: 18px; margin: 0; }
.site-shell-drawer-heading button { min-height: 44px; border: 0; border-radius: 10px; padding: 8px; background: transparent; }
.site-shell-drawer-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding-block: 12px max(12px, env(safe-area-inset-bottom)); }
.site-shell-drawer-scroll > details > summary { min-height: 44px; padding: 10px; font-weight: 600; }
.site-shell-drawer-footer { flex-shrink: 0; padding: 14px 4px 2px; border-top: 1px solid var(--site-shell-border); margin-top: 10px; font-size: 13px; opacity: .8; overflow-wrap: anywhere; }
.site-auth-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; overflow-y: auto; overscroll-behavior: contain; color: var(--site-shell-text); background: var(--site-shell-surface); border: 1px solid var(--site-shell-border); border-radius: 20px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.site-auth-dialog::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(4px); }
.site-auth-dialog [hidden] { display: none !important; }
.site-auth-dialog [data-site-auth-status] { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-auth-dialog label { display: block; margin: 12px 0; }
.site-auth-dialog input:not([type="checkbox"]):not([type="hidden"]) { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 10px; border: 1px solid var(--site-shell-border); border-radius: 10px; color: inherit; background: transparent; font: inherit; }
.site-auth-dialog button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--site-shell-border); border-radius: 10px; background: transparent; }
.site-auth-dialog button[aria-pressed="true"], .site-auth-dialog button[type="submit"] { background: #596e9f; color: #fff; }
.site-auth-tabs { display: flex; gap: 8px; margin-top: 16px; }
.site-auth-dialog .site-auth-consent { display: flex; gap: 8px; align-items: flex-start; }
.site-auth-dialog .site-auth-honeypot { position: absolute; left: -10000px; }
@media (max-width: 1100px) { .site-shell-primary { display: none; } .site-shell-logo { flex-basis: 150px; } }
@media (max-width: 480px) { .site-shell-bar { min-height: 64px; gap: 8px; } .site-shell-logo { flex-basis: 90px; } .site-shell-actions { gap: 6px; } .site-shell-actions > .site-shell-theme { display: none; } .site-shell-menu-button { padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .site-shell-header *, .site-shell-header *::before, .site-shell-header *::after { scroll-behavior: auto; transition: none; } }
