/* หัวเว็บของงานหยอดหอยแคมป์ 2 สำหรับหน้าอื่นนอกหน้าแรก (เข้าสู่ระบบ/ซื้อบัตร/บัญชี ฯลฯ)
   markup มาจาก includes/yokhoy-ui.php → ykSiteHeader() ตัวเดียวกับหน้าแรก — ค่าตรงกับ yokhoy.css */
:root { --yk-red: #e3262f; --yk-gold: #ffd21f; --yk-pink: #ff4fa3; }
.yk-ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.yk-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(18, 9, 32, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: Kanit, system-ui, sans-serif; color: #fff; line-height: 1.5; }
.yk-header * { box-sizing: border-box; }
.yk-header a { color: inherit; text-decoration: none; }
.yk-header img { display: block; max-width: 100%; height: auto; }
.yk-header button { font: inherit; color: inherit; cursor: pointer; }
.yk-header-in { margin: 0 auto; height: 50px; padding: 0 16px; display: flex; align-items: center; gap: 22px; }
.yk-brand { flex: none; }
.yk-brand img { width: clamp(115px, 15vw, 180px); height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.yk-nav { display: flex; gap: 4px; margin: 0 auto; }
.yk-nav a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .86); border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; }
.yk-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.yk-nav a.is-active { color: #fff; }
.yk-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px; background: var(--yk-red); box-shadow: 0 0 10px var(--yk-red); }
.yk-nav-login { display: none !important; }
.yk-header-cta { display: flex; align-items: center; gap: 10px; }
.yk-login { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 99px; font-size: 13px; white-space: nowrap; transition: background .15s; }
.yk-login:hover, .yk-cart:hover { background: rgba(255, 255, 255, .1); }
.yk-cart { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.yk-cart-n { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--yk-red); font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.yk-auth { display: inline-flex; align-items: center; padding: 2px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; font-size: 13px; white-space: nowrap; }
.yk-auth-in { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; }
.yk-auth-in:hover { color: #ffd0dc; }
.yk-auth-up { padding: 5px 14px; border-radius: 99px; background: linear-gradient(180deg, #f2343f, #b30d1d); font-weight: 600; box-shadow: 0 0 10px #e3262f99; }
.yk-auth-up:hover { filter: brightness(1.15); }
.yk-menu-btn { display: none; }
@media (max-width: 1150px) {
  .yk-header-in { gap: 10px; }
  .yk-brand img { width: 110px; }
  .yk-nav { gap: 0; }
  .yk-nav a { padding: 8px 7px; font-size: 13.5px; }
  .yk-auth-in span { display: none; }
  .yk-auth-up { padding: 5px 10px; font-size: 12.5px; }
}
/* มือถือ: แถบบนเล็ก (โลโก้ · เข้าสู่ระบบ · ตะกร้า · เมนู) เมนูเปิดเป็นแผ่นจากด้านล่างแบบหน้าแรก */
@media (max-width: 860px) {
  /* backdrop-filter ทำให้เมนู position:fixed ข้างในยึดกับหัวเว็บแทนหน้าจอ (เมนูโผล่ค้างใต้หัวเว็บ) — มือถือปิดเบลอ ใช้พื้นทึบแทน */
  .yk-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 9, 32, .97); }
  .yk-header-in { height: 56px; padding: 0 12px; }
  .yk-brand img { width: 118px; }
  .yk-header-cta { margin-left: auto; gap: 8px; }
  .yk-cart { width: 34px; height: 34px; }
  .yk-menu-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); }
  .yk-menu-btn .yk-ic { width: 22px; height: 22px; }
  .yk-nav { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 2px; background: #160c28; border-radius: 22px 22px 0 0; border-top: 2px solid var(--yk-pink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .yk-nav.is-open { transform: none; }
  .yk-nav a { padding: 12px 14px; font-size: 17px; }
  .yk-nav a.is-active::after { display: none; }
  .yk-nav a.is-active { background: rgba(227, 38, 47, .18); color: var(--yk-gold); }
  .yk-nav-login { display: flex !important; align-items: center; gap: 8px; margin-top: 6px; border: 1px solid rgba(255, 255, 255, .3); }
  .yk-nav-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .5); }
}
@media (max-width: 400px) { .yk-auth-up { display: none; } }
