/* ============================================================
   VI Feerie — Header 3 tầng (tiện ích / logo + tìm kiếm / menu)
   ============================================================ */

.site-header {
  position: sticky;
  top: calc(-1 * (var(--topbar-h) + var(--midbar-h)));
  z-index: 200;
  background: #fff;
}

/* ---------------- Hàng 1: tiện ích ---------------- */
.topbar {
  height: var(--topbar-h);
  overflow: hidden;
  background: var(--brand-soft);
  color: var(--ink);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--topbar-h);
}

.topbar__info {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12.5px;
  white-space: nowrap;
}

.topbar__info li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar__info svg {
  width: 14px;
  height: 14px;
  fill: var(--brand-deep);
  stroke: none;
  flex-shrink: 0;
}

.topbar__info a {
  color: var(--brand-deeper);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.topbar__info a:hover {
  color: var(--ink);
}

/* Tra cứu đơn hàng */
.lookup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lookup__label {
  font-size: 12.5px;
  white-space: nowrap;
}

.lookup__input {
	width: 126px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--brand-light);
  border-radius: 999px 0 0 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.lookup__input--email {
	width: 142px;
}

.lookup__input::placeholder {
  color: var(--muted);
}

.lookup__input:focus {
  outline: none;
  border-color: var(--brand-deep);
  background: #fff;
}

.lookup__btn {
  height: 26px;
  margin-left: -10px;
  padding: 0 16px;
  white-space: nowrap;
  border-radius: 0 999px 999px 0;
  background: var(--brand-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: filter 0.25s var(--ease);
}

.lookup__btn:hover {
	background: var(--brand-deeper);
}

.lookup__results {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(460px, 90vw);
	max-height: 65vh;
	overflow: auto;
	padding: 14px;
	border: 1px solid var(--brand-light);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(44, 26, 39, .18);
	color: var(--ink);
	z-index: 600;
}

.lookup__results[hidden] { display: none; }
.topbar { overflow: visible; }
.topbar__inner { position: relative; }

.lookup__results .vifeerie-order-result dl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 12px;
}
.lookup__results .vifeerie-order-result dl div { min-width: 0; }
.lookup__results .vifeerie-order-result dt { color: var(--muted); font-size: 11px; }
.lookup__results .vifeerie-order-result dd { margin: 2px 0 0; font-weight: 600; }
.lookup__results .vifeerie-order-result__items { margin: 0; padding: 0; list-style: none; }
.lookup__results .vifeerie-order-result__items li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--brand-light);
}

.lang {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 20px;
  border-left: 1px solid var(--brand-light);
}

.lang__btn {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease);
}

.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--brand-deeper); }

.lang__sep {
  width: 1px;
  height: 11px;
  background: var(--brand-light);
}

/* ---------------- Hàng 2: logo + tìm kiếm ---------------- */
.midbar {
  height: var(--midbar-h);
  overflow: hidden;
  background: #fff;
}

.midbar__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--midbar-h);
}

/* Logo — chỉ dùng ảnh, cắt bỏ phần lề trong suốt của logo-main.png
   File gốc 4200×2269, vùng có hình nằm ở x 366–3834, y 94–2081.
   --logo-h là chiều cao phần hình thật, mọi số còn lại quy từ đó ra. */
.brand {
  --logo-h: 62px;
  display: block;
  flex-shrink: 0;
}

.brand__mark {
  position: relative;
  display: block;
  width: calc(var(--logo-h) * 1.74535);
  height: var(--logo-h);
  overflow: hidden;
}

.brand__mark img {
  position: absolute;
  width: calc(var(--logo-h) * 2.11374);
  height: calc(var(--logo-h) * 1.14192);
  max-width: none;
  left: calc(var(--logo-h) * -0.184197);
  top: calc(var(--logo-h) * -0.047308);
}

.brand--drawer {
  --logo-h: 44px;
  position: static;
  transform: none;
}

/* Ô tìm kiếm */
form.search {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.search__input {
  width: 100%;
  height: 48px;
  padding: 0 60px 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 14px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.search__input::placeholder {
  color: #a9a096;
}

.search__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 171, 189, 0.28);
}

.search__btn {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  transition: background 0.25s var(--ease);
}

.search__btn:hover {
  background: var(--brand-deeper);
}

.search__btn svg {
  width: 18px;
  height: 18px;
}

/* Tài khoản / yêu thích / giỏ hàng */
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.tool {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease);
}

.tool:hover {
  background: var(--brand-tint);
}

.tool__ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.tool:hover .tool__ico {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.tool__ico svg {
  width: 19px;
  height: 19px;
}

.tool__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--brand-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
}

.tool__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  white-space: nowrap;
}

.tool__txt b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.tool__txt em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
}

/* Nút tìm kiếm (mobile) — chỉ hiện ở màn hẹp */
.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

.search-toggle:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

/* Popup tìm kiếm — mở từ nút search-toggle */
.search-popup {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  transition: visibility 0.3s;
}

.search-popup.is-open {
  visibility: visible;
}

.search-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 23, 0.6);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.search-popup.is-open .search-popup__backdrop {
  opacity: 1;
}

.search-popup__bar {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 6px 24px -4px rgba(45, 35, 20, 0.22);
  transform: translateY(-100%);
  transition: transform 0.3s var(--ease);
}

.search-popup.is-open .search-popup__bar {
  transform: translateY(0);
}

.search-popup__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-popup__form {
  position: relative;
  flex: 1;
}

.search-popup__input {
  width: 100%;
  height: 48px;
  padding: 0 54px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.search-popup__input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(201, 171, 189, 0.28);
}

.search-popup__input::placeholder {
  color: #a9a096;
}

.search-popup__btn {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  transition: background 0.25s var(--ease);
}

.search-popup__btn:hover {
  background: var(--brand-deeper);
}

.search-popup__btn svg {
  width: 18px;
  height: 18px;
}

.search-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.search-popup__close:hover {
  border-color: var(--ink);
}

.search-popup__close svg {
  width: 18px;
  height: 18px;
}

/* Nút hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------------- Hàng 3: menu ---------------- */
.navbar {
  position: relative;
  height: var(--navbar-h);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-h);
}

.mainnav__list {
  display: flex;
  align-items: center;
}

.mainnav__list > li {
  position: relative;
}

.mainnav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: var(--navbar-h);
  padding: 0 17px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.mainnav__link::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}

.mainnav__list > li:hover .mainnav__link::after,
.mainnav__link.is-current::after {
  transform: scaleX(1);
}

.mainnav__list > li:hover .mainnav__link,
.mainnav__link.is-current {
  color: var(--brand-deep);
}

.caret {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

.mainnav__list > li:hover .caret {
  transform: rotate(180deg);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}

.navbar__note svg {
  width: 19px;
  height: 19px;
}

/* Nút giỏ hàng trên navbar — MẶC ĐỊNH ẨN */
.navbar__cart {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(143, 107, 132, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.navbar__cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.navbar__cart-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
}

.navbar__cart-badge {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-deep);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar__cart:hover {
  background: var(--brand-deeper);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(143, 107, 132, 0.38);
}

/* Dropdown thường */
.dropdown {
  position: absolute;
  top: 100%;
  left: 8px;
  min-width: 236px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 22px 40px -24px rgba(45, 35, 20, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Vài mục cuối nằm sát mép phải: mở dropdown canh theo mép phải để không
   thò ra ngoài khung, tránh cuộn ngang thừa ở màn hình hẹp. */
.mainnav__list > li:nth-last-child(-n+3) .dropdown {
  left: auto;
  right: 8px;
}

.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 14px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), padding 0.2s var(--ease);
}

.dropdown a:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
  padding-left: 25px;
}

/* Mega menu — trải hết chiều ngang, neo theo .navbar */
.mainnav__list > li.has-mega {
  position: static;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 44px -28px rgba(45, 35, 20, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.75fr;
  gap: 44px;
  padding-top: 34px;
  padding-bottom: 38px;
}

.mega__title {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mega__title--mt {
  margin-top: 26px;
}

.mega__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 14px;
}

.mega__swatches a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  transition: color 0.25s var(--ease);
}

.mega__swatches em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

.sw {
  display: block;
  width: 54px;
  height: 54px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.sw img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.mega__swatches a:hover {
  color: var(--brand-deep);
}

.mega__swatches a:hover .sw {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--brand), 0 10px 18px -10px rgba(45, 35, 20, 0.5);
}

.mega__links a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.mega__links a:hover {
  color: var(--brand-deep);
  transform: translateX(5px);
}

.mega-promo {
  position: relative;
  display: block;
  height: 100%;
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
}

.mega-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.mega-promo:hover img {
  transform: scale(1.05);
}

.mega-promo__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px 16px;
  background: rgba(29, 26, 23, 0.82);
  color: #fff;
}

.mega-promo__body em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.mega-promo__body strong {
  font-size: 17px;
  font-weight: 600;
}

/* ---------------- Trạng thái khi cuộn ---------------- */

.site-header.is-stuck .navbar {
  box-shadow: 0 10px 24px -18px rgba(45, 35, 20, 0.55);
}

.site-header.is-stuck .navbar__note {
  display: none;
}

.site-header.is-stuck .navbar__cart {
  display: inline-flex;
  animation: navbarCartIn 0.3s var(--ease);
}

@keyframes navbarCartIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateX(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

/* ---------------- Menu di động ---------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  transition: visibility 0.45s;
}

.drawer.is-open {
  visibility: visible;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 23, 0.5);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.drawer.is-open .drawer__scrim {
  opacity: 1;
}

.drawer__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(92%, 400px);
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.is-open .drawer__panel {
  transform: none;
}

/* Nút đóng — nổi trên nền tím */
.drawer__x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(56, 34, 19, 0.15);
}

.drawer__x svg {
  width: 20px;
  height: 20px;
}

/* ---------- Khối trên: tài khoản + lối tắt (nền tím) ---------- */
.drawer__top {
  background: var(--brand);
  padding: 52px 20px 26px;
}

/* VI / EN switcher đặt trên drawer__auth — chỉ hiện ở mobile vì topbar ẩn */
.drawer__lang {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0;
  border-left: 0;
}

.drawer__lang .lang__btn {
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: color 0.22s var(--ease), background 0.22s var(--ease);
}

.drawer__lang .lang__btn:hover {
  color: #ffffff;
}

.drawer__lang .lang__btn.is-active {
  color: var(--brand-deep);
  background: #ffffff;
}

.drawer__lang .lang__sep {
  background: rgba(255, 255, 255, 0.4);
}

.drawer__auth {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.drawer__auth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s var(--ease);
}

.drawer__auth-btn--outline {
  border: 1.5px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

.drawer__auth-btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.drawer__auth-btn--fill {
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(56, 34, 19, 0.12);
}

.drawer__auth-btn--fill:hover {
  color: var(--brand-deeper);
}

/* Lưới 8 lối tắt */
.drawer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 8px;
}

.drawer__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.drawer__tile-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(56, 34, 19, 0.12);
  transition: transform 0.22s var(--ease);
}

.drawer__tile:hover .drawer__tile-ic {
  transform: translateY(-3px);
}

.drawer__tile-ic img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.drawer__tile-lb {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.25;
}

/* ---------- Menu danh mục 2 cột ---------- */
.drawer__cats {
  display: grid;
  grid-template-columns: 45% 55%;
  background: #ffffff;
}

.drawer__cats-left {
  background: var(--brand-soft);
  padding: 0;
}

.drawer__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 15px 14px 15px 20px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.drawer__cat svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.drawer__cat:hover {
  background: #fbdce8;
}

.drawer__cat.is-active {
  background: #ffffff;
  color: var(--brand-deep);
}

.drawer__cat--promo {
  color: var(--brand-deep);
}

.drawer__cats-right {
  background: #ffffff;
  padding: 10px 0;
}

.drawer__catpanel {
  display: none;
  flex-direction: column;
  animation: drawerFade 0.28s var(--ease);
}

.drawer__catpanel.is-active {
  display: flex;
}

@keyframes drawerFade {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

.drawer__catpanel a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--ink);
  text-align: center;
  transition: color 0.2s var(--ease);
}

.drawer__catpanel a:hover {
  color: var(--brand-deep);
}

/* ---------- Chân menu ---------- */
.drawer__foot {
  padding: 22px 20px 28px;
  background: #ffffff;
  margin-top: auto;
}

.drawer__hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(201, 171, 189, 0.4);
  transition: background 0.22s var(--ease);
}

.drawer__hotline:hover {
  background: var(--brand-deep);
}

.drawer__info {
  margin: 18px 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}

.drawer__foot .slsocials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.drawer__foot .slsocial {
  width: 36px;
  height: 36px;
}

.drawer__foot .slsocial img {
  width: 36px;
  height: 36px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 1300px) {
  .mainnav__link {
    padding: 0 13px;
    font-size: 12.5px;
  }
  .mainnav__link::after { left: 13px; right: 13px; }
  .midbar__inner { gap: 22px; }
  .tool__txt { display: none; }
  .tool { padding: 8px; }
  /* Menu đã 8 mục, chật chỗ — ẩn dòng freeship phụ để nav không tràn ngang */
  .navbar__note { display: none; }
}

@media screen and (max-width: 1050px) {
  :root {
    --midbar-h: 78px;
  }
  .site-header {
    top: calc(-1 * var(--topbar-h));
  }
  .site-header.is-stuck .midbar {
    box-shadow: 0 10px 24px -18px rgba(45, 35, 20, 0.55);
  }
  .navbar {
    display: none;
  }
  .burger {
    display: flex;
  }
  .topbar__info .topbar__hide-md {
    display: none;
  }
  .lookup__input {
    width: 170px;
  }
  .brand {
    --logo-h: 54px;
  }
  .tool--hide-md {
    display: flex;
    padding: 4px;
  }
  .tool--hide-md .tool__ico {
    width: 34px;
    height: 34px;
  }
  .tool--hide-md .tool__ico svg {
    width: 17px;
    height: 17px;
  }
  .tools {
    gap: 4px;
  }
}

@media screen and (max-width: 820px) {
  .lookup__label {
    display: none;
  }
  .topbar__info {
    font-size: 12px;
  }
}

@media screen and (max-width: 640px) {
  :root {
    --topbar-h: 34px;
    --midbar-h: 56px;
  }
  .midbar__inner {
    position: relative;
    gap: 6px;
  }
  .brand {
    --logo-h: 38px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  form.search {
    display: none;
  }
  .search-toggle {
    display: flex;
  }
  .tool {
    padding: 2px;
  }
  .tool__ico {
    width: 32px;
    height: 32px;
    border: none;
  }
  .tool__ico svg {
    width: 17px;
    height: 17px;
  }
  .tool__count {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 13px;
    top: -3px;
    right: -3px;
  }
  .tools {
    gap: 0;
  }
  .burger {
    width: 36px;
    height: 36px;
  }
  .lookup {
    display: none;
  }
  .lang {
    padding-left: 0;
    border-left: 0;
  }
}

/* Mobile drawer reuses the same secure order tracker as the desktop topbar. */
@media screen and (max-width: 1050px) {
	.lookup.lookup--drawer {
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin: 0 0 20px;
		padding: 14px;
		border: 1px solid rgba(255, 255, 255, .32);
		border-radius: 16px;
		background: rgba(255, 255, 255, .1);
	}
	.lookup--drawer .lookup__label { display: block; color: #fff; font-weight: 600; }
	.lookup--drawer .lookup__input,
	.lookup--drawer .lookup__input--email { width: 100%; height: 42px; border-radius: 999px; }
	.lookup--drawer .lookup__btn { height: 42px; margin: 0; border-radius: 999px; }
	.lookup--drawer .lookup__results { position: static; width: 100%; max-height: 48vh; }
}
