.cyrex-hf {
  --cyrex-hf-border: rgba(255, 208, 0, 0.16);
  --cyrex-hf-border-hover: rgba(255, 208, 0, 0.48);
  box-sizing: border-box;
  background: var(--cyrex-hf-bg, #050505);
  color: var(--cyrex-hf-text, #ffffff);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cyrex-hf *,
.cyrex-hf *::before,
.cyrex-hf *::after {
  box-sizing: border-box;
}

.cyrex-hf a {
  color: inherit;
  text-decoration: none;
}

.cyrex-hf-inner {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
}

.cyrex-hf-header {
  position: sticky;
  top: 0;
  z-index: var(--cyrex-hf-compact-z, 9999);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-bottom: 1px solid rgba(255, 208, 0, 0.08);
  background: var(--cyrex-hf-bg, #050505);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  transition: background var(--cyrex-hf-compact-transition, 250ms) ease, box-shadow var(--cyrex-hf-compact-transition, 250ms) ease, border-color var(--cyrex-hf-compact-transition, 250ms) ease;
}

.cyrex-hf-header.is-scrolled,
.cyrex-hf-header.cyrex-header-scrolled {
  background: var(--cyrex-hf-compact-bg, rgba(5, 5, 5, 0.92));
  backdrop-filter: blur(14px);
  border-bottom-color: var(--cyrex-hf-compact-border, rgba(255, 208, 0, 0.18));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.58);
}

.cyrex-hf-header-main {
  display: grid;
  grid-template-columns: minmax(160px, 230px) minmax(360px, 1fr) minmax(170px, 220px) minmax(130px, 180px);
  gap: 24px;
  min-height: 94px;
  align-items: center;
  transition: min-height 200ms ease;
}

.cyrex-hf-header.is-scrolled .cyrex-hf-header-main,
.cyrex-hf-header.cyrex-header-scrolled .cyrex-hf-header-main {
  min-height: 68px;
}

.cyrex-header-scrolled .cyrex-header-hide-on-scroll,
.is-scrolled .cyrex-header-hide-on-scroll {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
}

.cyrex-header-keep-on-scroll {
  opacity: 1 !important;
  visibility: visible !important;
}

.cyrex-hf-logo {
  display: inline-flex;
  width: min(var(--cyrex-hf-logo-width, 210px), 100%);
  align-items: center;
  gap: 8px;
  color: var(--cyrex-hf-accent, #ffd000);
  font-size: 21px;
  font-style: italic;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cyrex-hf-logo img {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.cyrex-hf-logo-icon {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50% 48% 44% 50%;
  background:
    radial-gradient(circle at 34% 64%, #050505 0 18%, transparent 19%),
    radial-gradient(circle at 65% 36%, #ffe45c 0 10%, transparent 11%),
    linear-gradient(135deg, #ffe45c, var(--cyrex-hf-accent, #ffd000) 48%, #c99800);
  filter: drop-shadow(0 0 12px rgba(255, 208, 0, 0.22));
  transform: rotate(-16deg);
}

.cyrex-hf-logo-icon::before {
  position: absolute;
  inset: 5px 10px 6px 4px;
  border-radius: 40% 60% 50% 45%;
  background: #050505;
  content: "";
}

.cyrex-hf-logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cyrex-hf-search {
  position: relative;
}

.cyrex-hf-search input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 208, 0, 0.22);
  border-bottom-color: rgba(255, 208, 0, 0.42);
  border-radius: 999px;
  outline: none;
  background: #0b0b0b;
  color: var(--cyrex-hf-text, #ffffff);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 0 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.cyrex-hf-search input::placeholder {
  color: #d8d8d8;
  opacity: 0.92;
}

.cyrex-hf-search input:focus {
  border-color: var(--cyrex-hf-accent, #ffd000);
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.1);
}

.cyrex-hf-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 90;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.24);
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.cyrex-hf-search.is-open .cyrex-hf-search-results {
  display: block;
}

.cyrex-hf-search-item,
.cyrex-hf-search-empty {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 11px 13px;
  color: var(--cyrex-hf-text, #ffffff);
}

.cyrex-hf-search-empty {
  display: block;
  min-height: auto;
  color: var(--cyrex-hf-muted, #b8b8b8);
}

.cyrex-hf-search-item:last-child {
  border-bottom: 0;
}

.cyrex-hf-search-item:hover {
  background: rgba(255, 208, 0, 0.08);
}

.cyrex-hf-search-thumb {
  display: grid;
  width: 54px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.16);
  border-radius: 10px;
  background: #151515;
  color: var(--cyrex-hf-accent, #ffd000);
  font-size: 12px;
  font-weight: 950;
}

.cyrex-hf-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cyrex-hf-search-title {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.cyrex-hf-search-category {
  color: var(--cyrex-hf-muted, #b8b8b8);
  font-size: 12px;
}

.cyrex-hf-search-price {
  color: var(--cyrex-hf-accent, #ffd000);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.cyrex-hf-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.cyrex-hf-info-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 2px solid #b7c2cf;
  border-radius: 50%;
}

.cyrex-hf-whatsapp::before {
  color: var(--cyrex-hf-accent, #ffd000);
  content: "☏";
  font-size: 23px;
}

.cyrex-hf-truck {
  border-radius: 10px;
}

.cyrex-hf-truck::before {
  color: #b7c2cf;
  content: "▰";
  font-size: 24px;
}

.cyrex-hf-info strong,
.cyrex-hf-info em {
  display: block;
  font-style: normal;
}

.cyrex-hf-info strong {
  color: #d8d8d8;
  font-size: 13px;
}

.cyrex-hf-info em {
  color: var(--cyrex-hf-text, #ffffff);
  font-size: 15px;
  font-weight: 950;
}

.cyrex-hf-nav-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 208, 0, 0.08);
  background: #050505;
}

.cyrex-hf-nav-inner {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cyrex-hf-menu,
.cyrex-hf-footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cyrex-hf-menu a,
.cyrex-hf-footer-links a {
  color: #a9a9a9;
  font-size: 14px;
  font-weight: 850;
  transition: color 180ms ease;
}

.cyrex-hf-menu a:hover,
.cyrex-hf-menu a.is-active,
.cyrex-hf-footer-links a:hover {
  color: var(--cyrex-hf-text, #ffffff);
}

.cyrex-hf-cart {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #b8b8b8;
}

.cyrex-hf-cart span::before {
  content: "◼";
  font-size: 18px;
}

.cyrex-hf-cart em {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.cyrex-hf-footer {
  border-top: 1px solid rgba(255, 208, 0, 0.14);
  background: linear-gradient(180deg, #090909, #050505);
}

.cyrex-hf-footer-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 26px 0 0;
}

.cyrex-hf-footer-trust div {
  border: 1px solid rgba(255, 208, 0, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 208, 0, 0.035);
}

.cyrex-hf-footer-trust strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyrex-hf-text, #ffffff);
}

.cyrex-hf-footer-trust span,
.cyrex-hf-footer p {
  color: var(--cyrex-hf-muted, #b8b8b8);
  font-size: 14px;
  line-height: 1.7;
}

.cyrex-hf-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 30px;
  padding: 34px 0;
}

.cyrex-hf-footer h3 {
  margin: 0 0 14px;
  color: var(--cyrex-hf-text, #ffffff);
  font-size: 16px;
}

.cyrex-hf-footer-links {
  display: grid;
  gap: 9px;
}

.cyrex-hf-whatsapp-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 211, 102, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(37, 211, 102, 0.12);
  color: #d9ffe5;
  font-weight: 900;
}

.cyrex-hf-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 208, 0, 0.1);
  padding: 16px 0;
  color: #7f7f7f;
  font-size: 13px;
}

@media (max-width: 980px) {
  .cyrex-hf-header-main,
  .cyrex-hf-footer-trust,
  .cyrex-hf-footer-grid {
    grid-template-columns: 1fr;
  }

  .cyrex-hf-header-main {
    gap: 14px;
    padding: 16px 0;
  }

  .cyrex-hf-logo {
    width: min(var(--cyrex-hf-logo-width, 210px), 70vw);
  }

  .cyrex-hf-info {
    width: 100%;
  }

  .cyrex-hf-nav-inner,
  .cyrex-hf-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .cyrex-hf-menu {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding: 3px 0;
    white-space: nowrap;
  }

  .cyrex-hf-search-results {
    position: static;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .cyrex-hf-header {
    overflow: visible;
  }

  .cyrex-hf-header-main {
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 10px;
    min-height: auto;
    max-height: var(--cyrex-hf-mobile-normal-max, 160px);
    padding: 10px 0;
  }

  .cyrex-hf-logo {
    width: min(var(--cyrex-hf-logo-width, 180px), 56vw);
  }

  .cyrex-hf-search {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .cyrex-hf-search input {
    height: 40px;
    font-size: 13px;
  }

  .cyrex-hf-advisor,
  .cyrex-hf-shipping,
  .cyrex-header-mobile-hide {
    display: none !important;
  }

  .cyrex-hf-nav-inner {
    min-height: 38px;
  }

  .cyrex-hf-menu {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .cyrex-hf-menu a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .cyrex-hf-header.cyrex-header-scrolled .cyrex-hf-header-main,
  .cyrex-hf-header.is-scrolled .cyrex-hf-header-main {
    grid-template-columns: minmax(92px, 120px) 1fr;
    max-height: var(--cyrex-hf-mobile-compact-max, 80px);
    padding: 7px 0;
  }

  .cyrex-hf-header.cyrex-header-scrolled .cyrex-hf-logo,
  .cyrex-hf-header.is-scrolled .cyrex-hf-logo {
    width: min(120px, 34vw);
  }

  .cyrex-hf-header.cyrex-header-scrolled .cyrex-hf-search,
  .cyrex-hf-header.is-scrolled .cyrex-hf-search {
    grid-column: auto;
  }

  .cyrex-hf-header.cyrex-header-scrolled .cyrex-hf-search input,
  .cyrex-hf-header.is-scrolled .cyrex-hf-search input {
    height: 36px;
    padding: 0 12px;
  }

  .cyrex-header-scrolled .cyrex-hf-nav-wrap,
  .is-scrolled .cyrex-hf-nav-wrap,
  .cyrex-header-scrolled .cyrex-header-mobile-hide-on-scroll,
  .is-scrolled .cyrex-header-mobile-hide-on-scroll {
    display: none !important;
  }

  .cyrex-header-mobile-show {
    display: block !important;
  }

  .cyrex-header-mobile-keep-on-scroll {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
