/* header.css — หัวเว็บ เมนู ปุ่มภาษา เมนูมือถือ (ทุกหน้า) */

/* หัวเว็บลอยตามตลอดตอนเลื่อน ความสูง --hd-h ตั้งใน base.css ใช้เว้นที่ให้ของที่ลอยตามกับลิงก์ # */
.hd { background: var(--black); color: #EEE8DB; position: sticky; top: 0; z-index: 30; box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .75); }
.hd .s-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; min-height: 48px; }
.logo-s { display: block; height: 44px; width: auto; flex: none; }
.logo-t { display: grid; line-height: 1.15; }
.logo-t b { font-family: var(--f-serif); font-weight: 600; letter-spacing: .06em; font-size: 18px; color: #F6EFDF; }
.logo-t small { font-family: var(--f-serif); font-size: 10.5px; color: #CFC6B4; }

.hd-nav { display: flex; gap: 6px; margin-inline: auto; }
.hd-nav a { font-size: 13.5px; font-weight: 500; text-decoration: none; padding: 23px 13px 21px; color: #D9D2C2; border-bottom: 2px solid transparent; white-space: nowrap; }
.hd-nav a.on { color: #fff; border-bottom-color: var(--gold); }
.lang-my .hd-nav a, .lang-th .hd-nav a { font-family: var(--f-th); font-size: 14px; }
/* ตัวพม่าสูงกว่า หัวเว็บเคยสูง 71 แทน 68 เปลี่ยนภาษาแล้วหน้าขยับ (27 พ.ย. 69) */
.lang-my .hd-nav a { padding-top: 22px; padding-bottom: 19px; }
.lang-th .hd-nav a { padding-top: 22px; }
@media (hover: hover) and (pointer: fine) { .hd-nav a:hover { color: #fff; } }

.hd-tools { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid rgba(201, 165, 92, .22); }
.ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: transparent; border: 0; color: #EDE6D6; position: relative; text-decoration: none; }
.ic svg { width: 20px; height: 20px; }
.ic:active { background: var(--ink3); }
@media (hover: hover) and (pointer: fine) { .ic:hover { background: var(--ink3); } }
.badge { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--gold); color: #111; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.lang-w { position: relative; }
.lang { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #D9D2C2; background: none; border: 0; padding: 8px 10px; margin-right: 6px; min-height: 46px; }
.lang svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; right: 0; top: 100%; margin-top: 4px; background: #15130F; border: 1px solid var(--line-d); border-radius: 8px; padding: 6px; display: grid; min-width: 160px; z-index: 40; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.lang-menu a { color: #E6DFCF; text-decoration: none; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.lang-menu a[aria-current="true"] { color: var(--gold-l); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .lang-menu a:hover { background: var(--ink3); } }
[lang="my"] { font-family: "Noto Sans Myanmar", "Myanmar Text", var(--f-body); }

.burger { display: none; }
.drawer { display: none; background: var(--ink2); border-top: 1px solid var(--line-d); }
.drawer[hidden] { display: none !important; }
.drawer.open { display: block; max-height: calc(100dvh - var(--hd-h)); overflow-y: auto; overscroll-behavior: contain; }
/* เมนูมือถือ: หน้าที่อยู่สีทองมีขีดซ้าย ลูกศรท้ายแถว ภาษาเป็นปุ่มกลม */
.drawer > a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 var(--s-pad); color: #E6DFCF; text-decoration: none; border-bottom: 1px solid var(--line-d); border-left: 3px solid transparent; font-family: var(--f-th); font-size: 16px; }
.drawer > a svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.drawer > a[aria-current="page"] { color: var(--gold-l); font-weight: 600; border-left-color: var(--gold); background: rgba(201, 165, 92, .06); }
.drawer > a:active { background: var(--ink3); }
.drawer > a.dr-more { min-height: 50px; font-size: 14.5px; color: #CFC6B4; }
@media (max-width: 760px) { .drawer > a.dr-main { display: none; } }
.drawer-lang { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px var(--s-pad) 18px; }
.drawer-lang a { display: inline-flex; align-items: center; min-height: 46px; color: #E6DFCF; text-decoration: none; padding: 0 18px; border: 1px solid var(--line-d); border-radius: 999px; font-size: 14px; }
.drawer-lang a[aria-current="true"] { color: #17120A; background: linear-gradient(180deg, #E3C88E, #C9A55C); border-color: var(--gold); font-weight: 600; }
.drawer-lang a:active { background: var(--ink3); }

@media (max-width: 1150px) {
  .hd-nav a { padding-inline: 9px; font-size: 13px; }
  .lang span { display: none; }
}
@media (max-width: 1050px) {
  .hd-nav a { padding-inline: 7px; }
}
@media (max-width: 1000px) {
  .hd-nav, .lang-w { display: none; }
  .burger { display: grid; }
  .hd-tools { margin-left: auto; padding-left: 0; border-left: 0; gap: 2px; }
}
@media (max-width: 480px) {
  /* 27 พ.ย. 69 เดิมไอคอนขวาสุดเหลือขอบ 3px ที่จอ 390 เบราว์เซอร์คอมที่มีแถบเลื่อนจึงล้น 12px เว้นช่องโลโก้กับไอคอนแคบลง */
  .hd .s-in { gap: 8px; }
  .logo-t small { display: none; }
  .logo-t b { font-size: 15px; }
  .logo-s { height: 38px; }
  .ic { width: 42px; }
}
@media (max-width: 389px) {
  .hd .s-in { gap: 12px; }
  .logo-s { height: 32px; }
  .logo-t b { font-size: 13px; }
}
/* บัญชีของฉัน: เข้าระบบอยู่ ไอคอนเป็นสีทองมีจุดทอง (site.js ใส่ .in) */
.ic-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--black); display: none; }
.ic-acct.in { color: var(--gold-l); }
.ic-acct.in .ic-dot { display: block; }
/* จอแคบกว่า 390 หัวเว็บไม่พอใส่ไอคอนบัญชีเพิ่ม เอาปุ่มค้นหาออก (หน้าสินค้ามีช่องค้นหา แถบล่างมีปุ่มสินค้าทั้งหมด) */
@media (max-width: 389px) { .ic-search { display: none; } }
/* จอเล็กมาก ซ่อนปุ่มค้นหา หน้าสินค้ามีช่องค้นหาอยู่แล้ว */
@media (max-width: 350px) {
  .ic-search { display: none; }
}
