.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: 80px;
  border-bottom: 1px solid rgba(216, 231, 239, 0.7);
  background: rgba(244, 250, 255, 0.94);
  box-shadow: 0 2px 12px rgba(17, 29, 35, 0.035);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  width: min(var(--width-content), calc(100% - (var(--gutter) * 2)));
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--color-ink);
}

.site-brand__mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #fff0ed;
  color: var(--color-coral-dark);
  font-size: 12px;
  font-weight: 800;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  line-height: 1.15;
}

.site-brand__text strong {
  font-size: 11px;
  text-transform: uppercase;
}

.site-brand__text small {
  color: var(--color-green);
  font-size: 7px;
  font-weight: 700;
}

.site-brand__logo {
  width: auto;
  max-width: 200px;
  max-height: 58px;
  object-fit: contain;
}

.primary-navigation {
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
  background: var(--color-surface-blue-strong);
  color: var(--color-ink);
}

.nav-badge {
  padding: 2px 5px;
  border-radius: 999px;
  background: #ffd6d1;
  color: var(--color-coral-dark);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.header-login {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.header-search {
  display: flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
}

.header-search:focus-within {
  border-color: var(--color-coral);
}

.header-search input {
  width: 180px;
  min-width: 0;
  padding: 6px 4px 6px 14px;
  border: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 12px;
}

.header-search input:focus {
  outline: 0;
}

.header-search button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-green);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 600;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle__icon::before {
  top: -5px;
}

.menu-toggle__icon::after {
  top: 5px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.comparison-preview h2,
.promo-card h2,
.site-footer h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.22;
}

.section-heading p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.section-heading--split {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading--split > div {
  max-width: 700px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--compact {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading--compact h2 {
  font-size: 20px;
}

.section-heading--compact .eyebrow {
  margin-bottom: 2px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-coral-dark);
  font-size: 13px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--color-green-dark);
}

.chip-list,
.trending-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.chip--quiet {
  background: var(--color-surface-blue-strong);
  color: var(--color-muted);
}

.chip--selected {
  background: var(--color-brand);
  color: var(--color-white);
}

.chip--add {
  background: var(--color-surface);
  color: var(--color-muted);
}

.content-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 231, 239, 0.8);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: 0 3px 12px rgba(27, 62, 76, 0.035);
}

.content-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-blue-strong);
}

.content-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
}

.content-card__body .eyebrow {
  margin-bottom: 5px;
}

.content-card__body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.content-card__body h3 a:hover {
  color: var(--color-coral-dark);
}

.content-card__body > p:not(.eyebrow) {
  margin: 8px 0 14px;
  color: var(--color-muted);
  font-size: 12px;
}

.content-card__body .text-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
}

.image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-surface-blue-strong);
}

.site-footer {
  margin-top: 96px;
  background: var(--color-surface-blue);
}

.site-footer__inner {
  width: min(var(--width-content), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding-block: 54px 24px;
}

.site-footer__intro {
  max-width: 780px;
  margin-bottom: 34px;
}

.site-footer__intro h2 {
  font-size: 23px;
}

.site-footer__intro > p:last-child {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-links h3 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--color-coral-dark);
}

.site-footer__legal {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 10px;
  text-align: center;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal p:last-child {
  max-width: 560px;
}

@media (max-width: 1120px) {
  .site-header__inner {
    gap: 10px;
  }

  .nav-list a {
    padding-inline: 7px;
    font-size: 10px;
  }

  .site-header__actions .button {
    padding-inline: 12px;
  }
}

@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .has-js .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .primary-navigation {
    position: static;
    display: block;
    flex: 0 0 100%;
    padding: 0 0 10px;
  }

  .has-js .primary-navigation {
    position: absolute;
    top: calc(100% - 1px);
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-float);
  }

  .has-js .primary-navigation.is-open {
    display: block;
  }

  .has-js .primary-navigation:not(.is-open) {
    display: none;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-list a {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }

  .header-search input {
    width: 130px;
  }

  .header-login {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header__inner {
    min-height: 64px;
  }

  .site-header__actions {
    gap: 2px;
  }

  .site-header__actions .button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .site-brand__logo {
    max-width: 140px;
    max-height: 40px;
  }

  .has-js .menu-toggle {
    margin-left: 0;
    padding-inline: 9px;
    font-size: 0;
  }

  .menu-toggle__icon {
    margin-inline: 2px;
  }

  .section-heading--split {
    align-items: flex-start;
  }

  .section-heading--split > .text-link {
    margin-top: 22px;
    font-size: 11px;
  }

  .section-heading--compact {
    align-items: flex-start;
  }

  .search-panel__hint {
    display: none;
  }

  .section-heading h2,
  .comparison-preview h2,
  .promo-card h2 {
    font-size: 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .site-footer__legal {
    align-items: center;
    flex-direction: column;
    gap: 9px;
  }
}

@media (max-width: 430px) {
  .site-brand__text {
    max-width: 82px;
  }

  .site-header__inner {
    gap: 5px;
  }

  .site-header__actions .button {
    max-width: 105px;
    white-space: normal;
  }

  .section-heading--split {
    flex-direction: column;
    gap: 8px;
  }

  .section-heading--split > .text-link {
    margin-top: 0;
  }
}
/* Floating contact bar (Zalo, Messenger, phone) on the left edge. */
.contact-float {
  position: fixed;
  bottom: 96px;
  left: 12px;
  z-index: 50;
  display: flex;
  width: 76px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 8px 24px rgba(17, 29, 35, 0.12);
}

.contact-float__items {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-float__toggle {
  display: grid;
  width: 28px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface-blue);
  color: var(--color-muted);
  cursor: pointer;
}

.contact-float__toggle:hover {
  color: var(--color-coral-dark);
}

.contact-float__toggle svg {
  transition: transform 180ms ease;
}

.contact-float.is-collapsed {
  width: auto;
  padding: 6px 4px;
}

.contact-float.is-collapsed .contact-float__items {
  display: none;
}

.contact-float.is-collapsed .contact-float__toggle {
  width: 24px;
  height: 36px;
}

.contact-float.is-collapsed .contact-float__toggle svg {
  transform: rotate(180deg);
}

.contact-float__item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-ink);
  text-align: center;
}

.contact-float__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: transform 160ms ease;
}

.contact-float__item:hover .contact-float__icon {
  transform: scale(1.08);
}

.contact-float__icon--zalo,
.contact-float__icon--messenger {
  background: #0068ff;
}

.contact-float__icon--phone {
  background: #1aa34a;
}

.contact-float__label {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}

.zalo-toast {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 51;
  max-width: min(320px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-ink, #111d23);
  color: #fff;
  font-size: 13px;
}

.zalo-toast[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .contact-float {
    bottom: 80px;
    left: 6px;
    width: 60px;
    gap: 8px;
    padding: 8px 4px;
  }

  .contact-float__icon {
    width: 38px;
    height: 38px;
  }

  .contact-float__label {
    font-size: 9px;
  }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--color-coral-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
}

.section-heading h2 a {
  color: inherit;
}

.section-heading h2 a:hover {
  color: var(--color-coral-dark);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-social__link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-green);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-social__link:hover {
  border-color: var(--color-coral);
  color: var(--color-coral-dark);
  transform: translateY(-2px);
}

.footer-social__link--zalo {
  border-color: #0068ff;
  background: #0068ff;
  color: #fff;
}

.footer-social__link--zalo:hover {
  border-color: #0057d9;
  background: #0057d9;
  color: #fff;
}

.footer-social__zalo {
  font-size: 12px;
  font-weight: 700;
}

/* Phones: logo and menu on the first row, the search bar on its own full-width row. */
@media (max-width: 760px) {
  .site-header__inner {
    min-height: 0;
    padding-block: 8px;
    row-gap: 8px;
  }

  .site-header__actions {
    order: 5;
    flex: 0 0 100%;
  }

  .header-search {
    width: 100%;
    min-height: 40px;
  }

  .header-search input {
    width: 100%;
    flex: 1 1 auto;
    font-size: 14px;
  }

  .header-search button {
    height: 38px;
  }
}

.contact-float__item--sms {
  display: none;
}

.contact-float__icon--sms {
  background: #6b7c93;
}
/* Collapsed-menu widths: a direct link to the products page sits next to the menu button. */
@media (max-width: 960px) {
  .site-brand {
    order: 1;
  }

  .has-js .menu-toggle {
    order: 3;
    margin-left: auto;
  }

  .primary-navigation {
    order: 4;
  }

  .site-header__actions {
    order: 5;
  }
}

[data-ajax-region="list"] {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

[data-ajax-region="list"].is-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.catalog-results {
  scroll-margin-top: calc(var(--header-offset) + 12px);
}

/* Collapsed by default on every screen: a "Liên hệ" button opens the bar. */
.contact-float:not(.is-collapsed) .contact-float__toggle-label {
  display: none;
}

.contact-float.is-collapsed {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-float.is-collapsed .contact-float__toggle {
  display: flex;
  width: auto;
  height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: var(--color-brand);
  box-shadow: 0 6px 16px rgba(140, 111, 31, 0.3);
  color: #fff;
}

.contact-float.is-collapsed .contact-float__toggle:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.contact-float.is-collapsed .contact-float__toggle-label {
  display: inline;
  font-size: 13px;
  font-weight: 700;
}

.footer-links h3 a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
