.bims-header-slot { position: sticky; top: 0; z-index: 50; }
.bims-header { background: var(--bg, #0a1224); border-bottom: 1px solid var(--line, #22304e); color: var(--ink, #f1f5f9); font-family: 'Athiti', sans-serif; }
.bims-header-inner { width: min(1240px, calc(100% - 40px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.bims-header-logo { display: inline-flex; width: 44px; height: 44px; align-items: center; }
.bims-header-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.bims-header-nav, .bims-header-actions { display: flex; align-items: center; }
.bims-header-nav { gap: 30px; position: static; border: 0; background: transparent; backdrop-filter: none; }
.bims-header-nav a, .bims-header-products summary { color: var(--muted, #cbd5e1); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.bims-header-nav a:hover, .bims-header-products summary:hover, .bims-header-nav .current { color: var(--ink, #fff); }
.bims-header-products { position: relative; }
.bims-header-products summary { list-style: none; }
.bims-header-products summary::-webkit-details-marker { display: none; }
.bims-header-products summary span[aria-hidden] { margin-left: 4px; }
.bims-header-dropdown, .bims-header-mobile-links { position: absolute; top: calc(100% + 17px); background: var(--surface, #101a30); border: 1px solid var(--line, #22304e); border-radius: 14px; box-shadow: 0 16px 36px #0003; padding: 10px; min-width: 220px; }
.bims-header-dropdown a, .bims-header-mobile-links a { display: block; padding: 8px 10px; border-radius: 8px; }
.bims-header-dropdown a:hover, .bims-header-mobile-links a:hover { background: var(--surface-2, #17233d); }
.bims-header-actions { justify-content: flex-end; gap: 12px; min-width: 0; }
.bims-header-facebook { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #1877f2; color: #fff; font: 700 24px/1 Arial, sans-serif; text-decoration: none; }
.bims-header-facebook:hover { background: #0b66d8; }
.bims-header-theme { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 1px solid var(--line, #22304e); border-radius: 50%; background: var(--surface, #101a30); color: var(--muted, #cbd5e1); cursor: pointer; }
.bims-header-theme svg { width: 18px; height: 18px; }
.bims-header-theme .bims-sun { display: none; }
html[data-theme="light"] .bims-header-theme .bims-moon { display: none; }
html[data-theme="light"] .bims-header-theme .bims-sun { display: block; }
.bims-header-language { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line, #22304e); border-radius: 999px; background: var(--surface, #101a30); }
.bims-header-language button { border: 0; border-radius: 999px; padding: 4px 10px; background: transparent; color: var(--muted, #cbd5e1); font: 600 13px/1.3 'Athiti', sans-serif; cursor: pointer; }
.bims-header-language button.active { background: #2563eb; color: white; }
.bims-header [data-site-en] { display: none; }
html[lang="en"] .bims-header [data-site-th] { display: none; }
html[lang="en"] .bims-header [data-site-en] { display: inline; }
.bims-header-mobile { display: none; position: relative; }
.bims-header-mobile summary { list-style: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line, #22304e); border-radius: 50%; cursor: pointer; }
.bims-header-mobile summary::-webkit-details-marker { display: none; }
.bims-header-mobile-links { right: 0; top: calc(100% + 10px); min-width: 190px; }
@media (max-width: 1050px) { .bims-header-inner { grid-template-columns: auto 1fr; } .bims-header-nav { display: none; } .bims-header-mobile { display: block; } }
@media (max-width: 580px) { .bims-header-inner { width: calc(100% - 24px); gap: 8px; } .bims-header-actions { gap: 6px; } .bims-header-facebook, .bims-header-theme { width: 34px; height: 34px; flex-basis: 34px; } .bims-header-language button { padding: 3px 6px; } .bims-header .site-login-button { max-width: 100px; font-size: 12px; } }
