/* Scoped styles for template-parts/header-layout.php on Flatsome Support pages. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.site-header,
.fs-nav-overlay {
  box-sizing: border-box;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.site-header *,
.site-header *::before,
.site-header *::after,
.fs-nav-overlay *,
.fs-nav-overlay *::before,
.fs-nav-overlay *::after {
  box-sizing: border-box;
}

.site-header a,
.fs-nav-overlay a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header input:focus-visible,
.fs-nav-overlay a:focus-visible,
.fs-nav-overlay button:focus-visible {
  outline: 2px solid #1769e8;
  outline-offset: 2px;
}

.site-header button,
.fs-nav-overlay button {
  font: inherit;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-header svg,
.fs-nav-overlay svg {
  display: block;
}

.site-header .icon,
.fs-nav-overlay .icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 68px;
  background: #ffffff;
  border: 1px solid transparent;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 0;
  box-shadow: 0 0 0 transparent;
  margin-inline: auto;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  will-change: width, top, height, border-radius, box-shadow;
  transition: width .32s cubic-bezier(.16, 1, .3, 1), top .32s cubic-bezier(.16, 1, .3, 1), height .32s cubic-bezier(.16, 1, .3, 1), border-radius .32s cubic-bezier(.16, 1, .3, 1), border-color .32s cubic-bezier(.16, 1, .3, 1), background-color .32s cubic-bezier(.16, 1, .3, 1), box-shadow .32s cubic-bezier(.16, 1, .3, 1);
}

.site-header.is-scrolled {
  top: 14px;
  width: min(90vw, 1400px);
  height: 62px;
  border-radius: 14px;
  border-color: rgba(226, 232, 240, .95);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, .08), 0 2px 6px -1px rgba(15, 23, 42, .04);
}

.site-header.is-scrolled .header-search {
  max-width: 330px;
}

.site-header .container::after {
  content: none;
  display: none;
}

.site-header .header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: min(1364px, 100%);
  margin-inline: auto;
  padding: 0 24px;
  box-sizing: border-box;
  transition: padding .32s cubic-bezier(.16, 1, .3, 1);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  flex: none;
}

.site-header .brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  filter: drop-shadow(0 2px 8px rgba(79, 70, 229, .35));
  flex: none;
}

.site-header .brand-mark svg {
  width: 30px;
  height: 30px;
}

.site-header .main-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  white-space: nowrap;
}

.site-header .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.1px;
  transition: background-color .15s ease, color .15s ease;
}

.site-header .nav-link:hover {
  background: rgba(15, 23, 42, .04);
  color: #0f172a;
}

.site-header .nav-link.active {
  background: transparent;
  color: #0f172a;
  font-weight: 650;
}

.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 11px;
  right: 11px;
  height: 2px;
  background: #1769e8;
  border-radius: 99px;
}

.site-header .nav-link .icon {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  transition: color .15s ease;
}

.site-header .nav-link:hover .icon,
.site-header .nav-link.active .icon {
  color: #0f172a;
}

.site-header .nav-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  margin-left: 6px;
  border-radius: 50%;
  background: transparent;
  border: none;
  flex: none;
  line-height: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 104, 255, .28));
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
  cursor: pointer;
}

.site-header .nav-zalo:hover {
  transform: translateY(-1px) scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(0, 104, 255, .42)) brightness(1.03);
}

.site-header .nav-zalo:active {
  transform: scale(.95);
}

.site-header .nav-zalo:focus-visible {
  outline: 2px solid #0068ff;
  outline-offset: 2px;
  border-radius: 50%;
}

.site-header .nav-zalo svg,
.site-header .nav-zalo-svg {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  stroke: none !important;
  stroke-width: 0 !important;
}

.site-header .nav-zalo-svg * {
  stroke: none !important;
  stroke-width: 0 !important;
}

.site-header .nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-header .nav-chevron-icon {
  width: 12px;
  height: 12px;
  color: #94a3b8;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), color .18s ease;
}

.site-header .nav-item-dropdown:hover .nav-chevron-icon,
.site-header .nav-item-dropdown.is-active .nav-chevron-icon {
  transform: rotate(180deg);
  color: #0f172a;
}

.site-header .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 440px;
  padding-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1), visibility .22s;
  z-index: 120;
}

.site-header .nav-item-dropdown:hover .nav-dropdown-menu,
.site-header .nav-item-dropdown.is-active .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.site-header .nav-dropdown-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, .09), 0 1px 3px rgba(15, 23, 42, .04);
}

.site-header .nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.site-header .nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color .18s ease;
}

.site-header .nav-dropdown-item:hover {
  background: #f8fafc;
}

.site-header .nav-dropdown-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f0f7ff;
  color: #1769e8;
  flex: none;
}

.site-header .nav-dropdown-icon .icon {
  width: 15px;
  height: 15px;
}

.site-header .nav-dropdown-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header .nav-dropdown-title {
  font-size: 13px;
  font-weight: 650;
  color: #0f172a;
  line-height: 1.25;
}

.site-header .nav-dropdown-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .nav-dropdown-footer {
  margin-top: 8px;
  padding: 8px 6px 2px;
  border-top: 1px solid #f1f5f9;
}

.site-header .nav-dropdown-all-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: #1769e8;
  text-decoration: none;
  transition: opacity .18s ease;
}

.site-header .nav-dropdown-all-link:hover {
  opacity: .85;
}

.site-header .header-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  margin: 0 0 0 auto;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
}

.site-header .header-search .icon {
  color: #64748b;
  width: 18px;
  height: 18px;
}

.site-header .header-search input[type="search"],
.site-header .header-search input {
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  color: #111827;
  font: inherit;
  font-size: 13px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.site-header .header-search input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
  -webkit-box-shadow: none;
  background: transparent;
  color: #111827;
}

.site-header .header-search input::placeholder {
  color: #64748b;
  opacity: 1;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header .icon-button {
  position: relative;
  min-width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  padding: 0;
  margin: 0;
  text-decoration: none;
  box-shadow: none;
}

.site-header .icon-button:hover {
  color: #1769e8;
  background: transparent;
}

.site-header .cart-count {
  position: absolute;
  right: -6px;
  top: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: #1769e8;
  box-shadow: 0 2px 6px rgba(23, 105, 232, .35);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
}

.site-header .mobile-menu {
  display: none;
}

/* Full-Screen Mobile Navigation Overlay */
.fs-nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fs-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fs-nav-overlay .fs-nav-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(10px);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.fs-nav-overlay.is-open .fs-nav-container {
  transform: translateY(0);
}

.fs-nav-overlay .fs-nav-header {
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  flex: none;
}

.fs-nav-overlay .fs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 750;
  font-size: 16.5px;
  letter-spacing: -0.2px;
}

.fs-nav-overlay .fs-brand-mark {
  width: 26px;
  height: 26px;
  color: #1769e8;
  display: grid;
  place-items: center;
  flex: none;
}

.fs-nav-overlay .fs-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.fs-nav-overlay .fs-close-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  background: #292524;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.fs-nav-overlay .fs-close-btn:hover {
  background: #1c1917;
}

.fs-nav-overlay .fs-close-btn:active {
  transform: scale(0.95);
}

.fs-nav-overlay .fs-close-btn svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.fs-nav-overlay .fs-nav-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #E5E5E5;
}

.fs-nav-overlay .fs-nav-item {
  border-bottom: 1px solid #E5E5E5;
}

.fs-nav-overlay .fs-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  text-decoration: none;
  color: #111111;
  cursor: pointer;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  font: inherit;
  text-transform: none;
  box-sizing: border-box;
}

.fs-nav-overlay .fs-nav-label {
  font-size: clamp(17px, 4.3vw, 22px);
  font-weight: 450;
  letter-spacing: -0.3px;
  color: #111111;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.fs-nav-overlay .fs-nav-row.is-current .fs-nav-label {
  font-weight: 600;
  color: #1769e8;
}

.fs-nav-overlay .fs-control-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F0F0F0;
  color: #111111;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.fs-nav-overlay .fs-nav-row:hover .fs-control-arrow {
  background: #E5E5E5;
  transform: translateX(2px);
}

.fs-nav-overlay .fs-control-arrow svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fs-nav-overlay .fs-control-expand {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #292524;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 150ms ease;
}

.fs-nav-overlay .fs-control-expand svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.fs-nav-overlay .fs-nav-item.is-expanded .fs-control-expand svg {
  transform: rotate(180deg);
}

.fs-nav-overlay .fs-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease, padding 200ms ease;
  padding: 0;
}

.fs-nav-overlay .fs-nav-item.is-expanded .fs-submenu {
  max-height: 520px;
  opacity: 1;
  padding: 4px 0 16px 0;
}

.fs-nav-overlay .fs-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding-top: 2px;
}

@media (max-width: 360px) {
  .fs-nav-overlay .fs-sub-grid {
    grid-template-columns: 1fr;
  }
}

.fs-nav-overlay .fs-sub-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  background: #F8F8F8;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  text-decoration: none;
  color: #333333;
  font-size: 11.5px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.fs-nav-overlay .fs-sub-link:hover {
  background: #EFEFEF;
  border-color: #DDDDDD;
  color: #111111;
}

.fs-nav-overlay .fs-sub-icon {
  width: 16px;
  height: 16px;
  color: #1769e8;
  display: grid;
  place-items: center;
  flex: none;
}

.fs-nav-overlay .fs-sub-icon .icon {
  width: 13px;
  height: 13px;
}

.fs-nav-overlay .fs-sub-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-nav-overlay .fs-sub-all-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 2px;
  color: #1769e8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.fs-nav-overlay .fs-sub-all-link:hover {
  text-decoration: underline;
}

.fs-nav-overlay .fs-cta-section {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  flex: none;
}

.fs-nav-overlay .fs-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  height: 52px;
  background: #292524;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  letter-spacing: -0.2px;
  transition: background-color 150ms ease, transform 150ms ease;
  box-sizing: border-box;
}

.fs-nav-overlay .fs-btn-primary:hover {
  background: #1c1917;
  color: #ffffff;
}

.fs-nav-overlay .fs-btn-primary:active {
  transform: scale(0.99);
}

.fs-nav-overlay .fs-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  height: 52px;
  background: #E7E7E7;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  letter-spacing: -0.2px;
  transition: background-color 150ms ease, transform 150ms ease;
  box-sizing: border-box;
}

.fs-nav-overlay .fs-btn-secondary:hover {
  background: #dedede;
  color: #111111;
}

.fs-nav-overlay .fs-btn-secondary:active {
  transform: scale(0.99);
}

.fs-nav-overlay .fs-cart-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 0;
  color: #4b5563;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 150ms ease;
}

.fs-nav-overlay .fs-cart-action:hover {
  color: #111111;
}

.fs-nav-overlay .fs-cart-pill {
  background: #F0F0F0;
  color: #111111;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
}

/* Header Responsive Breakpoints (matching home-layout.css source order) */
@media (pointer: coarse) {
  .site-header .nav-zalo {
    width: 36px;
    height: 36px;
  }

  .site-header .nav-zalo svg,
  .site-header .nav-zalo-svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1023px) {
  .site-header.is-scrolled {
    width: min(92vw, 1024px);
    top: 10px;
    height: 58px;
  }

  .site-header .header-inner {
    padding: 0 16px;
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .site-header.is-scrolled {
    width: calc(100% - 24px);
    top: 8px;
    height: 54px;
    border-radius: 12px;
  }

  .site-header .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .site-header .brand {
    font-size: 15px;
    gap: 6px;
  }

  .site-header .brand-mark,
  .site-header .brand-mark svg {
    width: 24px;
    height: 24px;
  }

  .site-header .header-search {
    height: 32px;
    padding: 0 8px;
    min-width: 0;
    flex: 1 1 70px;
  }

  .site-header .header-search input {
    font-size: 11px;
  }

  .site-header .header-actions {
    gap: 6px;
    flex: none;
  }

  .site-header .icon-button {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 1180px) {
  .site-header .header-inner {
    gap: 16px;
  }

  .site-header .main-nav {
    gap: 0;
    margin-left: 0;
  }

  .site-header .nav-link {
    padding: 0 11px;
  }

  .site-header .nav-zalo {
    margin-left: 4px;
  }
}

@media (max-width: 960px) {
  .site-header {
    height: 64px;
  }

  .site-header .header-inner {
    gap: 14px;
  }

  .site-header .main-nav {
    display: none;
  }

  .site-header .mobile-menu {
    display: grid;
  }

  .site-header .brand {
    font-size: 18px;
  }

  .site-header .header-search {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    gap: 10px;
  }

  .site-header .brand {
    font-size: 16px;
    gap: 6px;
  }

  .site-header .brand-mark,
  .site-header .brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .site-header .header-search {
    height: 36px;
    padding: 0 9px;
  }

  .site-header .header-search input {
    font-size: 11px;
  }

  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .icon-button {
    width: 25px;
  }
}

@media (min-width: 1024px) {
  .fs-nav-overlay {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .nav-link,
  .site-header .nav-dropdown-menu,
  .fs-nav-overlay,
  .fs-nav-overlay .fs-nav-container,
  .fs-nav-overlay .fs-control-expand svg,
  .fs-nav-overlay .fs-submenu {
    transition: none !important;
    animation: none !important;
  }
}
