/* Site header (docs/design-trang-chu/trang-chu.html: .hdr, .nav, .menu-btn) + mobile drawer. */
.tsd-hdr { position: sticky; top: 0; z-index: 1001; background: var(--tsd-g900); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.admin-bar .tsd-hdr { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .tsd-hdr { top: 0; } }
.tsd-hdr__in { display: flex; align-items: center; gap: 16px; min-height: var(--tsd-header-height, 76px); }

/* Logo on a cream pill (.brand-logo); also used in the drawer and footer */
.tsd-brand { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none; }
.tsd-brand .brand-logo { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; border-radius: 10px; background: #fbf7ec; padding: 3px 8px; }
.tsd-brand .brand-text { display: flex; align-items: center; color: var(--tsd-g900); font-weight: 800; font-size: 18px; white-space: nowrap; }
.tsd-brand:focus-visible, .tsd-nav a:focus-visible, .tsd-sub-toggle:focus-visible, .tsd-menu-toggle:focus-visible,
.tsd-drawer a:focus-visible, .tsd-drawer button:focus-visible { outline: 3px solid var(--tsd-y400); outline-offset: 2px; }

/* Desktop menu */
.tsd-nav { flex: 0 1 auto; margin-left: auto; min-width: 0; }
.tsd-nav__list { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.tsd-nav__list > li { position: relative; display: flex; align-items: center; margin: 0; border-radius: 8px; transition: background-color .15s; }
.tsd-nav__list > li:hover { background: rgba(255, 255, 255, .08); }
.tsd-nav__list > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; color: #e7f2e2; white-space: nowrap; text-decoration: none; transition: background-color .15s, color .15s; }
.tsd-nav__list > li > a:hover { color: #fff; }
.tsd-nav__list > li.menu-item-has-children > a { padding-right: 0; }
.tsd-nav__list > li > a[aria-current], .tsd-nav__list > li.is-current-parent > a { color: var(--tsd-y400); box-shadow: inset 0 -3px 0 var(--tsd-y400); border-radius: 0; background: none; }
.tsd-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; min-height: 44px; margin: 0 4px 0 0; padding: 0; border: 0; border-radius: 6px; background: none; color: #e7f2e2; cursor: pointer; }
.tsd-sub-toggle .ic { width: 14px; height: 14px; transition: transform .2s; }
.tsd-nav__list > li.is-current-parent > .tsd-sub-toggle { color: var(--tsd-y400); }

/* Desktop dropdown: hover (mouse), focus-within (keyboard), .is-open (touch / toggle button) */
.tsd-nav .sub-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: var(--tsd-r-md); box-shadow: 0 16px 40px rgba(11, 48, 24, .22);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.tsd-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.tsd-nav__list > li.is-open > .sub-menu, .tsd-nav__list > li:focus-within:not(.is-shut) > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tsd-nav__list > li.is-open > .tsd-sub-toggle .ic { transform: rotate(180deg); }
@media (hover: hover) {
  .tsd-nav__list > li:hover:not(.is-shut) > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}
.tsd-nav .sub-menu li { margin: 0; }
.tsd-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--tsd-r-sm); font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--tsd-ink); text-decoration: none; }
.tsd-nav .sub-menu a:hover { background: var(--tsd-g50); color: var(--tsd-g800); }
.tsd-nav .sub-menu a[aria-current] { color: var(--tsd-g700); font-weight: 700; background: var(--tsd-g100); }

.tsd-hdr__cta { flex: none; }

/* Cart icon next to the CTA, with item-count badge (hidden when the cart is empty). */
.tsd-hdr__cart { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; color: #fff; text-decoration: none; }
.tsd-hdr__cart:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tsd-hdr__cart .ic { width: 24px; height: 24px; }
.tsd-hdr__cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tsd-y400); color: var(--tsd-g900); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.tsd-hdr__cart-count.is-empty { display: none; }
.tsd-drawer__cart { justify-content: center; }

/* Hamburger (.menu-btn) */
.tsd-menu-toggle { display: none; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }

/* Desktop menu sizing leaves room for the cart button (menu must still fit at 1280px wide). */
@media (min-width: 1181px) {
  .tsd-hdr__in { gap: 12px; }
  .tsd-nav__list > li > a { padding: 0 9px; font-size: 14px; }
}
/* Hamburger mode: <=1180px, or .is-compact (set by main.js when the menu does not fit). */
.tsd-hdr.is-compact .tsd-nav { display: none; }
.tsd-hdr.is-compact .tsd-hdr__cta { margin-left: auto; }
.tsd-hdr.is-compact .tsd-menu-toggle { display: inline-flex; }
@media (max-width: 1180px) {
  .tsd-nav { display: none; }
  .tsd-hdr__cta { margin-left: auto; }
  .tsd-menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .tsd-hdr__in { min-height: 64px; gap: 10px; }
  .tsd-brand .brand-logo { height: 40px; }
  .tsd-hdr__cta { min-height: 44px; padding: 0 14px; font-size: 14px; gap: 8px; }
  .tsd-hdr__cta .ic { width: 18px; height: 18px; }
  .tsd-menu-toggle { width: 44px; height: 44px; }
  .tsd-hdr__cart { width: 44px; height: 44px; }
  .tsd-hdr__cart .ic { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .tsd-hdr__in { gap: 8px; }
  .tsd-hdr__cta { padding: 0 12px; }
  .tsd-hdr__cta .ic { display: none; }
}

/* Mobile drawer (#main-menu, opened by .tsd-menu-toggle) */
.tsd-drawer[hidden] { display: none; }
.tsd-drawer { position: fixed; inset: 0; z-index: 10000; }
.tsd-drawer__overlay { position: absolute; inset: 0; background: rgba(11, 48, 24, .6); }
.tsd-drawer__panel { position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: 340px; max-width: 88vw; overflow-y: auto; overscroll-behavior: contain; background: #fff; box-shadow: -8px 0 30px rgba(0, 0, 0, .25); animation: tsd-drawer-in .2s ease-out; }
@keyframes tsd-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tsd-drawer__panel { animation: none; } }
.tsd-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 12px 0 16px; background: var(--tsd-g900); }
.tsd-drawer__head .brand-logo { height: 40px; }
.tsd-drawer__close { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.tsd-drawer__nav { flex: 1 0 auto; padding: 8px 0; }
.tsd-drawer__list, .tsd-drawer__list .sub-menu { margin: 0; padding: 0; list-style: none; }
.tsd-drawer__list > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; margin: 0; border-bottom: 1px solid var(--tsd-line); }
.tsd-drawer__list > li > a { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 52px; padding: 0 20px; font-size: 16px; font-weight: 600; color: var(--tsd-ink); text-decoration: none; }
.tsd-drawer__list > li > a[aria-current], .tsd-drawer__list > li.is-current-parent > a { color: var(--tsd-g700); box-shadow: inset 4px 0 0 var(--tsd-y400); }
.tsd-drawer .tsd-sub-toggle { width: 52px; min-height: 52px; margin: 0; border-left: 1px solid var(--tsd-line); border-radius: 0; color: var(--tsd-g700); }
.tsd-drawer .tsd-sub-toggle .ic { width: 18px; height: 18px; }
.tsd-drawer__list > li.is-open > .tsd-sub-toggle .ic { transform: rotate(180deg); }
.tsd-drawer__list .sub-menu { display: none; flex-basis: 100%; padding: 4px 0 10px; background: var(--tsd-g50); }
.tsd-drawer__list > li.is-open > .sub-menu { display: block; }
.tsd-drawer__list .sub-menu a { display: block; padding: 10px 20px 10px 36px; font-size: 15px; color: var(--tsd-muted); text-decoration: none; }
.tsd-drawer__list .sub-menu a[aria-current] { color: var(--tsd-g700); font-weight: 700; }
.tsd-drawer__foot { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px 24px; background: var(--tsd-g50); border-top: 1px solid var(--tsd-line); }
.tsd-drawer__tel { display: flex; align-items: center; gap: 10px; color: var(--tsd-ink); font-size: 15px; text-decoration: none; }
.tsd-drawer__tel .ic { color: var(--tsd-g700); }
.tsd-drawer__tel strong { color: var(--tsd-g800); }
.tsd-drawer__tel a { color: inherit; text-decoration: none; }
.tsd-drawer__foot .btn { width: 100%; }
body.tsd-drawer-open { overflow: hidden; }

/* Menu item duplicating the CTA button: drawer only. */
.tsd-nav .is-cta-dup { display: none; }
