/* =========================================================
   GIA SƯ CẦN THƠ — HEADER (desktop + mobile)  |  brand XANH LÁ
   Prefix .gsh-  |  Icon = placeholder (THAY ICON SAU)
   Spec: docs/prompts/ui-header-update.md
   ========================================================= */
:root{
  --c-primary:#16A34A; --c-primary-d:#15803D; --c-secondary:#22C55E;
  --c-top:#1E3A8A;            /* nền top bar — giữ màu xanh dương cũ của site (var(--primary-dark) trong main.css) */
  --c-text:#1F2937; --c-muted:#6B7280; --c-border:#E5E7EB;
  --r-md:10px; --r-pill:999px;
  --maxw:1360px;
}
.gsh *,.gsh *::before,.gsh *::after{ box-sizing:border-box; }
.gsh{ font-family:"Inter",system-ui,-apple-system,sans-serif; color:var(--c-text); }
.gsh a{ text-decoration:none; color:inherit; }
.gsh button{ font-family:inherit; cursor:pointer; border:none; background:none; }
.gsh .ico{ width:1.05em; height:1.05em; flex:0 0 auto; vertical-align:-.15em; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ── TOP BAR ─────────────────────────────────────────── */
.gsh-top{ background:var(--c-top); color:#fff; font-size:.86rem; }
.gsh-top-in{ max-width:var(--maxw); margin:0 auto; padding:9px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.gsh-top-left{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.gsh-tc{ display:inline-flex; align-items:center; gap:7px; white-space:nowrap; color:rgba(255,255,255,.95); }
.gsh-tc .ico{ color:rgba(255,255,255,.85); }
.gsh-tc a{ color:inherit; }
.gsh-tc:hover{ color:#fff; }
.gsh-tsep{ width:1px; height:16px; background:rgba(255,255,255,.28); }
.gsh-zbadge{ background:#0068FF; color:#fff; font-size:.6rem; font-weight:800; padding:2px 5px; border-radius:4px; }
.gsh-top-right{ display:flex; align-items:center; gap:9px; flex:0 0 auto; }
/* THAY ICON SAU: social placeholder */
.gsh-soc{ width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.16); display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:.7rem; font-weight:700; }
.gsh-soc:hover{ background:rgba(255,255,255,.3); }

/* ── MAIN HEADER ─────────────────────────────────────── */
.gsh-main{ background:#fff; border-bottom:1px solid var(--c-border); position:sticky; top:0; z-index:50; }
.gsh-main-in{ max-width:var(--maxw); margin:0 auto; padding:12px 24px; display:flex; align-items:center; gap:28px; }

/* logo */
.gsh-logo{ display:flex; align-items:center; gap:11px; flex:0 0 auto; }
.gsh-logo-mark{ width:64px; height:64px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.gsh-logo-mark .ico{ width:36px; height:36px; }
.gsh-logo-mark img{ width:100%; height:100%; object-fit:contain; }
.gsh-logo-txt{ line-height:1.1; }
.gsh-logo-name{ font-size:1.32rem; font-weight:800; color:var(--c-primary); letter-spacing:.01em; }
.gsh-logo-tag{ font-size:.66rem; color:var(--c-muted); font-weight:500; margin-top:1px; }

/* nav */
.gsh-nav{ display:flex; align-items:center; gap:26px; margin:0 auto; position:relative; }
.gsh-nav > a,.gsh-nav > .gsh-drop > button{ display:inline-flex; align-items:center; gap:5px; font-size:.98rem; font-weight:600; color:var(--c-text); padding:8px 0; position:relative; }
.gsh-nav > a:hover,.gsh-drop:hover > button{ color:var(--c-primary); }
.gsh-nav a.active{ color:var(--c-primary); }
.gsh-nav a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-13px; height:2px; background:var(--c-primary); border-radius:2px; }
.gsh-drop > button .ico{ width:.9em; height:.9em; color:var(--c-muted); }
/* MEGA-MENU */
.gsh-mega{ position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(6px);
  background:#fff; border:1px solid var(--c-border); border-radius:16px; box-shadow:0 16px 44px rgba(0,0,0,.13);
  padding:22px 26px; display:flex; gap:34px; z-index:60;
  opacity:0; visibility:hidden; transition:opacity .16s, transform .16s; }
.gsh-drop:hover .gsh-mega{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
/* cầu nối hover (tránh menu đóng khi rê qua khe hở) */
.gsh-mega::before{ content:""; position:absolute; top:-16px; left:0; right:0; height:16px; }
.gsh-mega-col{ display:flex; flex-direction:column; gap:20px; min-width:158px; }
.gsh-mega-h{ font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--c-primary);
  margin:0 0 9px; padding-bottom:7px; border-bottom:1px solid var(--c-border); }
.gsh-mega-group a{ display:block; padding:6px 0; font-size:.9rem; font-weight:500; color:var(--c-text); transition:color .12s, padding .12s; }
.gsh-mega-group a:hover{ color:var(--c-primary); padding-left:5px; }

/* actions */
.gsh-actions{ display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.gsh-login{ display:inline-flex; align-items:center; gap:7px; font-size:.95rem; font-weight:600; color:var(--c-text); }
.gsh-login:hover{ color:var(--c-primary); }
.gsh-btn{ display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.94rem; padding:11px 18px; border-radius:var(--r-md); white-space:nowrap; }
.gsh-btn-outline{ color:var(--c-primary); border:1.5px solid var(--c-primary); background:#fff; }
.gsh-btn-outline:hover{ background:#F0FDF4; }
.gsh-btn-primary{ color:#fff; background:var(--c-primary); }
.gsh-btn-primary:hover{ background:var(--c-primary-d); }

/* hamburger (mobile) */
.gsh-burger{ display:none; width:44px; height:44px; border-radius:10px; align-items:center; justify-content:center; color:var(--c-text); margin-left:auto; cursor:pointer; }
.gsh-burger .ico{ width:24px; height:24px; }

/* ── MOBILE DRAWER (thuần CSS: checkbox hack, không JS) ── */
.gsh-nav-toggle{ position:absolute; width:0; height:0; opacity:0; pointer-events:none; }
.gsh-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.45); opacity:0; visibility:hidden; transition:opacity .25s, visibility .25s; z-index:90; }
.gsh-drawer{ position:fixed; top:0; right:0; bottom:0; width:min(86vw,360px); background:#fff; z-index:100;
  transform:translateX(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); overflow:hidden;
  display:flex; flex-direction:column; box-shadow:-8px 0 30px rgba(0,0,0,.16); }
.gsh-nav-toggle:checked ~ .gsh-overlay{ opacity:1; visibility:visible; }
.gsh-nav-toggle:checked ~ .gsh-drawer{ transform:translateX(0); }
:root:has(.gsh-nav-toggle:checked){ overflow:hidden; }   /* khóa cuộn nền khi mở menu */
/* Thanh nổi liên hệ nhanh (.mobile-cta-bar, .zalo-float, .phone-float trong main.css)
   có z-index:9998 — cao hơn .gsh-drawer (z-index:100) nên che mất nút trong drawer.
   Ẩn các thanh nổi này khi drawer đang mở. */
:root:has(.gsh-nav-toggle:checked) .mobile-cta-bar,
:root:has(.gsh-nav-toggle:checked) .zalo-float,
:root:has(.gsh-nav-toggle:checked) .phone-float{ display:none !important; }

.gsh-drawer-hd{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--c-border); flex:0 0 auto; }
.gsh-drawer-logo{ display:flex; align-items:center; gap:9px; font-weight:800; color:var(--c-primary); font-size:1.02rem; }
.gsh-drawer-logo .gsh-logo-mark{ width:44px; height:44px; }
.gsh-drawer-logo .gsh-logo-mark .ico{ width:26px; height:26px; }
.gsh-drawer-close{ width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:var(--c-text); cursor:pointer; }
.gsh-drawer-close:hover{ background:#F3F4F6; }

.gsh-drawer-nav{ padding:6px 0; flex:1; min-height:0; overflow-y:auto; }
.gsh-drawer-nav > a{ display:block; padding:13px 18px; font-size:1rem; font-weight:600; color:var(--c-text); }
.gsh-drawer-nav > a:hover,.gsh-drawer-nav > a.active{ color:var(--c-primary); }

/* accordion Gia Sư (details/summary — HTML thuần) */
.gsh-acc summary{ list-style:none; cursor:pointer; padding:13px 18px; font-size:1rem; font-weight:600; color:var(--c-text); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.gsh-acc summary::-webkit-details-marker{ display:none; }
.gsh-acc summary .ico{ width:1.1em; height:1.1em; color:var(--c-muted); transition:transform .2s; }
.gsh-acc[open] summary{ color:var(--c-primary); }
.gsh-acc[open] summary .ico{ transform:rotate(180deg); color:var(--c-primary); }
.gsh-acc-body{ padding:2px 18px 12px; }
.gsh-acc-group{ margin-top:12px; }
.gsh-acc-h{ font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--c-primary); margin-bottom:5px; }
.gsh-acc-group a{ display:block; padding:8px 0 8px 12px; font-size:.92rem; color:var(--c-text); border-left:2px solid var(--c-border); }
.gsh-acc-group a:hover{ color:var(--c-primary); border-left-color:var(--c-primary); }

.gsh-drawer-actions{ padding:16px; border-top:1px solid var(--c-border); display:flex; flex-direction:column; gap:10px; flex:0 0 auto; }
.gsh-drawer-actions .gsh-btn{ width:100%; justify-content:center; }
.gsh-drawer-login{ display:flex; align-items:center; justify-content:center; gap:7px; padding:11px; font-size:.96rem; font-weight:600; color:var(--c-text); }
.gsh-drawer-login:hover{ color:var(--c-primary); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width:1080px){
  .gsh-nav{ gap:18px; }
  .gsh-logo-tag{ display:none; }
  .gsh-actions .gsh-btn-outline{ display:none; }      /* gọn bớt nút phụ */
}
@media (max-width:900px){
  .gsh-top-in{ justify-content:center; }
  .gsh-top-left .gsh-tc:nth-child(n+5){ display:none; }  /* ẩn bớt info dài */
  .gsh-nav,.gsh-actions{ display:none; }
  .gsh-burger{ display:inline-flex; }
}
@media (max-width:560px){
  .gsh-top{ display:none; }               /* ẩn top bar trên điện thoại nhỏ */
  .gsh-main-in{ padding:10px 16px; }
}
