:root {
  --orange: #ee0033;
  --orange-dark: #c5002b;
  --orange-soft: #fff0f3;
  --ink: #161616;
  --ink-soft: #4e4e4e;
  --muted: #777777;
  --line: #e9e7e4;
  --paper: #ffffff;
  --soft: #f8f7f5;
  --dark: #171717;
  --shadow: 0 20px 50px rgba(33, 27, 23, 0.1);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Be Vietnam Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 999; background: #fff; padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 20px; }

.announcement { background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.announcement__inner { height: 34px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.announcement a { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(20,20,20,.07); backdrop-filter: blur(16px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.07); }
.site-header .header__inner.container { width: min(1400px, calc(100% - 40px)); }
.header__inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__logo { width: 38px; height: 38px; display: block; object-fit: contain; flex: 0 0 auto; }
.brand__name { color: var(--orange); font-size: 23px; font-weight: 800; letter-spacing: -.04em; }
.desktop-nav { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.desktop-nav > * { flex: 0 0 auto; }
.desktop-nav a { position: relative; font-size: 13px; font-weight: 600; color: #343434; white-space: nowrap; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--orange); transition: right .2s; }
.desktop-nav a:hover::after { right: 0; }
.header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.login-link { font-size: 13px; font-weight: 700; }
.icon-button, .menu-button { border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.icon-button:hover { background: var(--soft); }
.icon-button svg, .search-field svg, .hero-search svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px 11px 11px 3px; padding: 0 21px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--orange); box-shadow: 0 10px 22px rgba(238,0,51,.22); }
.button--primary:hover { background: var(--orange-dark); box-shadow: 0 13px 26px rgba(238,0,51,.28); }
.header__buy { min-width: 104px; white-space: nowrap; }
.button--dark { color: #fff; background: var(--dark); }
.button--white { color: var(--ink); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.menu-button { width: 40px; height: 40px; display: none; padding: 9px; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: .25s; }
.menu-button[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; }

/* Header menu lấy cảm hứng từ cổng dịch vụ viễn thông, giữ nhận diện Hallo. */
.nav-menu-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #343434;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.nav-menu-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--orange);
  transition: right .2s;
}
.nav-menu-trigger:hover::after,
.nav-menu-trigger.is-active::after { right: 0; }
.nav-menu-trigger i {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s, margin .2s;
}
.nav-menu-trigger.is-active i { margin-top: 4px; transform: rotate(225deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: min(760px, calc(100% - 40px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 24px 45px rgba(24, 17, 18, .14);
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dropdown.is-open { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-dropdown.is-products { width: min(var(--container), calc(100% - 40px)); padding: 20px; }
.nav-dropdown__panel { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nav-dropdown__panel.is-active { display: grid; }
.nav-dropdown__panel[data-nav-panel='products'] { grid-template-columns: repeat(var(--mega-columns, 4), minmax(0, 1fr)); gap: 18px; }
.nav-dropdown__panel a { padding: 16px; border-radius: 12px; transition: background .18s, color .18s; }
.nav-dropdown__panel a:hover { color: var(--orange); background: var(--orange-soft); }
.nav-dropdown__panel strong, .nav-dropdown__panel small { display: block; }
.nav-dropdown__panel strong { font-size: 13px; }
.nav-dropdown__panel small { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.mega-category { min-width: 0; padding: 0 15px 12px; border-right: 1px solid var(--line); }
.mega-category:last-child { border-right: 0; }
.nav-dropdown__panel .mega-category__head { display: grid; gap: 12px; padding: 0 0 12px; border-radius: 0; }
.nav-dropdown__panel .mega-category__head:hover { background: transparent; }
.mega-category__head > span { height: 91px; display: grid; place-items: center; overflow: hidden; border-radius: 15px 15px 15px 5px; color: #fff; font-size: 32px; font-weight: 800; }
.mega-category__head > span { background: var(--mega-accent, #ee0033); background: linear-gradient(135deg, var(--mega-accent, #ee0033), color-mix(in srgb, var(--mega-accent, #ee0033) 62%, #000)); }
.mega-category__head > span.has-image { background-position: center; background-size: cover; color: transparent; }
.mega-category__head > span.has-image img { width: 100%; height: 100%; object-fit: cover; }
.mega-category__head strong { min-height: 37px; font-size: 12px; line-height: 1.45; }
.mega-category__links { display: grid; }
.nav-dropdown__panel .mega-category__links a { padding: 7px 0; border-radius: 0; color: #4c4c4c; font-size: 9px; }
.nav-dropdown__panel .mega-category__links a:hover { padding-left: 5px; color: var(--orange); background: transparent; }
.mega-category__eyebrow { margin-bottom: 5px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.mega-menu-state { grid-column: 1 / -1; margin: 0; padding: 35px; color: var(--muted); text-align: center; font-size: 10px; }
