html {
  background: var(--bfx-color-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bfx-color-bg);
  color: var(--bfx-color-text);
  font-family: var(--bfx-font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.021) 1px, transparent 1px);
  background-size: 100% 8rem;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

::selection {
  background: var(--bfx-color-accent);
  color: #03110c;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bfx-color-accent);
}

:focus-visible {
  outline: 2px solid var(--bfx-color-accent);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--bfx-color-text);
  font-family: var(--bfx-font-display);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.bfx-shell {
  margin-inline: auto;
  max-width: var(--bfx-container);
  padding-inline: clamp(1.2rem, 3vw, 2.4rem);
  width: 100%;
}

.bfx-skip-link {
  background: var(--bfx-color-accent);
  color: #03110c;
  font-weight: 750;
  left: 0;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10001;
}

.bfx-skip-link:focus {
  top: 0;
}

.bfx-utility-bar {
  background: #050709;
  border-bottom: 1px solid var(--bfx-color-border);
  color: var(--bfx-color-subtle);
  font-family: var(--bfx-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bfx-utility-bar .bfx-shell {
  display: flex;
  justify-content: space-between;
  padding-block: 0.45rem;
}

.bfx-site-header {
  backdrop-filter: blur(18px);
  background: rgba(7, 10, 13, 0.92);
  border-bottom: 1px solid var(--bfx-color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-bar .bfx-site-header {
  top: 32px;
}

.bfx-site-header__inner {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  grid-template-columns: auto minmax(13rem, 0.7fr) auto;
  min-height: 5.25rem;
}

.bfx-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.bfx-brand:hover {
  color: var(--bfx-color-text);
}

.bfx-brand__mark {
  align-items: center;
  background: var(--bfx-color-text);
  color: var(--bfx-color-bg);
  display: inline-flex;
  font-family: var(--bfx-font-display);
  font-size: 1.05rem;
  font-weight: 850;
  height: 2.55rem;
  justify-content: center;
  width: 2.55rem;
}

.bfx-brand__copy {
  display: grid;
  line-height: 1;
}

.bfx-brand__copy strong {
  font-family: var(--bfx-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bfx-brand__copy small {
  color: var(--bfx-color-subtle);
  font-family: var(--bfx-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  margin-top: 0.32rem;
  text-transform: uppercase;
}

.bfx-header-search {
  align-items: center;
  border-bottom: 1px solid var(--bfx-color-border-strong);
  display: flex;
  max-width: 24rem;
  min-width: 0;
}

.bfx-header-search input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--bfx-color-text);
  font-size: 0.82rem;
  min-height: 2.65rem;
  min-width: 0;
  outline: 0;
  padding: 0.55rem 0;
  width: 100%;
}

.bfx-header-search input[type="search"]::placeholder {
  color: var(--bfx-color-subtle);
}

.bfx-header-search button {
  background: transparent;
  border: 0;
  color: var(--bfx-color-accent);
  cursor: pointer;
  font-size: 1.05rem;
  padding: 0.5rem 0 0.5rem 0.8rem;
}

.bfx-header-search--mobile,
.bfx-site-nav--mobile,
.bfx-site-menu {
  display: none;
}

.bfx-site-nav__list,
.bfx-footer-links__list,
.bfx-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bfx-site-nav__list {
  align-items: center;
  display: flex;
  gap: clamp(0.7rem, 1.4vw, 1.35rem);
}

.bfx-site-nav__item a,
.bfx-site-nav .menu-item a {
  color: var(--bfx-color-muted);
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.bfx-site-nav__item a:hover,
.bfx-site-nav .menu-item a:hover {
  color: var(--bfx-color-text);
}

.bfx-site-nav__item--utility a {
  border: 1px solid var(--bfx-color-border-strong);
  padding: 0.55rem 0.75rem;
}

.bfx-site-nav__item--utility:last-child a {
  background: var(--bfx-color-text);
  border-color: var(--bfx-color-text);
  color: var(--bfx-color-bg);
}

.bfx-eyebrow {
  color: var(--bfx-color-premium);
  display: inline-flex;
  font-family: var(--bfx-font-mono);
  font-size: var(--bfx-text-xs);
  font-weight: 600;
  gap: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bfx-eyebrow::before {
  background: currentColor;
  content: "";
  height: 1px;
  margin-top: 0.55em;
  width: 2rem;
}

.bfx-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.elementor-button {
  align-items: center;
  background: var(--bfx-color-accent);
  border: 1px solid var(--bfx-color-accent);
  border-radius: var(--bfx-radius-sm);
  color: #03110c;
  display: inline-flex;
  font-family: var(--bfx-font-body);
  font-size: 0.84rem;
  font-weight: 760;
  gap: 0.6rem;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.82rem 1.3rem;
  text-decoration: none;
  transition: background var(--bfx-transition), border-color var(--bfx-transition), color var(--bfx-transition), transform var(--bfx-transition);
}

.bfx-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.elementor-button:hover {
  background: var(--bfx-color-text);
  border-color: var(--bfx-color-text);
  color: var(--bfx-color-bg);
  transform: translateY(-2px);
}

.bfx-button--secondary,
.bfx-button--ghost {
  background: transparent;
  border-color: var(--bfx-color-border-strong);
  color: var(--bfx-color-text);
}

.bfx-button--secondary:hover,
.bfx-button--ghost:hover {
  background: var(--bfx-color-surface-raised);
  border-color: var(--bfx-color-text);
  color: var(--bfx-color-text);
}

.bfx-risk-note {
  border-top: 1px solid rgba(199, 169, 107, 0.34);
  color: #c8bda4;
  font-size: var(--bfx-text-sm);
  padding-top: var(--bfx-space-5);
}

.bfx-site-footer {
  background: #050709;
  border-top: 1px solid var(--bfx-color-border);
  margin-top: clamp(5rem, 10vw, 9rem);
  padding-top: clamp(4rem, 7vw, 6.5rem);
}

.bfx-site-footer__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
}

.bfx-site-footer__brand > p {
  color: var(--bfx-color-muted);
  margin: 1.8rem 0 0;
  max-width: 34rem;
}

.bfx-site-footer__risk {
  border-left: 1px solid var(--bfx-color-premium);
  color: #c8bda4 !important;
  font-size: var(--bfx-text-sm);
  padding-left: 1rem;
}

.bfx-site-footer__navigation {
  display: grid;
  gap: var(--bfx-space-10);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bfx-footer-links h2 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.bfx-footer-links__list {
  display: grid;
  gap: 0.75rem;
}

.bfx-footer-links__list a,
.bfx-footer-menu a {
  color: var(--bfx-color-muted);
  font-size: var(--bfx-text-sm);
  text-decoration: none;
}

.bfx-site-footer__bottom {
  border-top: 1px solid var(--bfx-color-border);
  color: var(--bfx-color-subtle);
  display: flex;
  font-family: var(--bfx-font-mono);
  font-size: var(--bfx-text-xs);
  justify-content: space-between;
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-block: 1.4rem;
}

.woocommerce div.product,
.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation {
  color: var(--bfx-color-text);
}

.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  background: var(--bfx-color-surface);
  border-color: var(--bfx-color-border);
  border-radius: var(--bfx-radius-md);
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.select2-container--default .select2-selection--single {
  background: var(--bfx-color-bg-soft);
  border: 1px solid var(--bfx-color-border-strong);
  border-radius: var(--bfx-radius-sm);
  color: var(--bfx-color-text);
  min-height: 3rem;
}

.bfx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bfx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .bfx-site-header__inner {
    grid-template-columns: auto minmax(12rem, 1fr) auto;
  }

  .bfx-site-nav--desktop {
    display: none;
  }

  .bfx-site-menu {
    display: block;
    position: relative;
  }

  .bfx-site-menu > summary {
    align-items: center;
    border: 1px solid var(--bfx-color-border-strong);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
  }

  .bfx-site-menu > summary::-webkit-details-marker {
    display: none;
  }

  .bfx-site-menu > summary i,
  .bfx-site-menu > summary i::before,
  .bfx-site-menu > summary i::after {
    background: currentColor;
    content: "";
    display: block;
    height: 1px;
    transition: transform var(--bfx-transition);
    width: 1rem;
  }

  .bfx-site-menu > summary i {
    position: relative;
  }

  .bfx-site-menu > summary i::before,
  .bfx-site-menu > summary i::after {
    position: absolute;
  }

  .bfx-site-menu > summary i::before { transform: translateY(-0.3rem); }
  .bfx-site-menu > summary i::after { transform: translateY(0.3rem); }
  .bfx-site-menu[open] > summary i { background: transparent; }
  .bfx-site-menu[open] > summary i::before { transform: rotate(45deg); }
  .bfx-site-menu[open] > summary i::after { transform: rotate(-45deg); }

  .bfx-site-menu[open] {
    background: var(--bfx-color-bg-soft);
    border: 1px solid var(--bfx-color-border-strong);
    padding: 0.75rem;
    position: absolute;
    right: clamp(1.2rem, 3vw, 2.4rem);
    top: calc(100% - 0.5rem);
    width: min(26rem, calc(100vw - 2.4rem));
  }

  .bfx-site-menu[open] > summary {
    margin-left: auto;
  }

  .bfx-site-menu[open] .bfx-header-search--mobile,
  .bfx-site-menu[open] .bfx-site-nav--mobile {
    display: flex;
  }

  .bfx-site-menu[open] .bfx-header-search--mobile {
    margin: 1rem 0;
    max-width: none;
  }

  .bfx-site-menu[open] .bfx-site-nav--mobile {
    display: block;
  }

  .bfx-site-menu .bfx-site-nav__list {
    align-items: stretch;
    display: grid;
    gap: 0;
  }

  .bfx-site-menu .bfx-site-nav__item a,
  .bfx-site-menu .menu-item a {
    border-bottom: 1px solid var(--bfx-color-border);
    display: block;
    padding: 0.8rem 0.25rem;
  }
}

@media (max-width: 760px) {
  .admin-bar .bfx-site-header { top: 46px; }
  .bfx-utility-bar { display: none; }

  .bfx-site-header__inner {
    display: flex;
    min-height: 4.6rem;
  }

  .bfx-header-search--desktop {
    display: none;
  }

  .bfx-brand__copy small {
    display: none;
  }

  .bfx-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .bfx-site-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bfx-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .bfx-reveal {
    opacity: 1;
    transform: none;
  }
}
