/* ==========================================================================
   FUKEI Floating Header
   ========================================================================== */

.fukei-fh,
.fukei-fh-overlay {
  display: none;
}

.added_to_cart.wc-forward {
  display: none !important;
}

@media (min-width: 981px) {

  .fukei-fh-desktop-toast {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition:
      max-height 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      margin-top 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.22s ease,
      transform 0.36s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh-desktop-toast.is-visible {
    max-height: 120px;
    margin-top: 16px;
    opacity: 1;
    transform: translateY(0);
  }

  .fukei-fh-desktop-toast__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #ffffff;
  }

  .fukei-fh-desktop-toast__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #DD6749;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  .fukei-fh-desktop-toast__message {
    flex: 1;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  .fukei-fh-desktop-toast__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #DD6749;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
      transform 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(221, 103, 73, 0.24);
  }

  .fukei-fh-desktop-toast__cta:hover,
  .fukei-fh-desktop-toast__cta:focus-visible {
    background: #c85639;
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
  }

  /* Desktop add-to-cart feedback adopts the same FUKEI Branding contract. */
  .fukei-fh-desktop-toast {
    font-family: var(--fukei-font-body, "Hanken Grotesk", Arial, sans-serif);
    --fukei-fh-text: var(--fukei-color-text, #000000);
    --fukei-fh-surface: var(--fukei-background-color, #F6F6F6);
    --fukei-fh-accent: var(--fukei-color-accent, #DD6749);
    --fukei-fh-on-accent: var(--fukei-color-on-accent, #000000);
    --fukei-fh-border: var(--fukei-border-width, 2px) solid var(--fukei-border-color, #000000);
    --fukei-fh-control-radius: var(--fukei-radius-control, 10px);
    --fukei-fh-surface-radius: var(--fukei-radius-surface, 16px);
    --fukei-fh-pill-radius: var(--fukei-radius-pill, 999px);
    --fukei-fh-control-shadow: var(--fukei-shadow-control, 4px 4px 0 0 var(--fukei-shadow-color, #000000));
    --fukei-fh-surface-shadow: var(--fukei-shadow-surface, 8px 8px 0 0 var(--fukei-shadow-color, #000000));
  }

  .fukei-fh-desktop-toast__row {
    border: var(--fukei-fh-border);
    border-radius: var(--fukei-fh-surface-radius);
    background: var(--fukei-fh-surface);
    box-shadow: var(--fukei-fh-surface-shadow);
  }

  .fukei-fh-desktop-toast__icon {
    border: var(--fukei-fh-border);
    border-radius: var(--fukei-fh-pill-radius);
    background: var(--fukei-fh-accent);
    color: var(--fukei-fh-on-accent);
    box-shadow: var(--fukei-fh-control-shadow);
  }

  .fukei-fh-desktop-toast__message {
    color: var(--fukei-fh-text);
    font-family: var(--fukei-font-body, "Hanken Grotesk", Arial, sans-serif);
  }

  .fukei-fh-desktop-toast__cta {
    border: var(--fukei-fh-border);
    border-radius: var(--fukei-fh-control-radius);
    background: var(--fukei-fh-accent);
    color: var(--fukei-fh-on-accent);
    box-shadow: var(--fukei-fh-control-shadow);
    font-family: var(--fukei-font-heading, "Darker Grotesque", Arial, sans-serif);
    font-weight: 800;
    transition: transform var(--fukei-motion-duration, 200ms) ease;
  }

  .fukei-fh-desktop-toast__cta:focus-visible {
    outline: 3px solid var(--fukei-fh-accent);
    outline-offset: 3px;
  }

  @media (hover: hover) and (pointer: fine) {
    .fukei-fh-desktop-toast__cta:hover {
      background: var(--fukei-fh-accent);
      color: var(--fukei-fh-on-accent);
      transform: scale(var(--fukei-motion-hover-scale, 1.07));
    }
  }

  .fukei-fh-desktop-toast__cta:active {
    transform: scale(var(--fukei-motion-press-scale, 0.98));
  }

  @media (prefers-reduced-motion: reduce) {
    .fukei-fh-desktop-toast__cta,
    .fukei-fh-desktop-toast__cta:hover,
    .fukei-fh-desktop-toast__cta:active {
      transform: none;
      transition-duration: 0.01ms;
    }
  }
}

@media (max-width: 980px) {

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  html.fukei-fh-search-dimmed::before {
    content: '';
    position: fixed;
    top: -18vh;
    left: 0;
    width: 100vw;
    height: 180vh;
    background:
      linear-gradient(
        180deg,
        rgba(16, 16, 16, 0.22) 0%,
        rgba(16, 16, 16, 0.34) 100%
      );
    opacity: 1;
    pointer-events: none;
    z-index: 99997;
  }

  @supports (height: 100lvh) {
    html.fukei-fh-search-dimmed::before {
      top: 0;
      height: 150lvh;
    }
  }

  /* ---------- OUTER CONTAINER ---------- */
  .fukei-fh {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px) + var(--fukei-fh-keyboard-offset, 0px));
    z-index: 99999;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333333;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    --fukei-fh-closed-width: 150px;
    --fukei-fh-open-width: min(calc(100vw - 28px), 520px);
    --fukei-fh-keyboard-offset: 0px;
  }

  /* ---------- WRAPPER (controla el ancho + anima expansión) ----------
     Ahora solo 2 iconos → pill compacto y centrado. Se expande al ancho
     grande cuando se abre el menú o aparece el toast. */
  .fukei-fh__wrapper {
    position: relative;
    width: var(--fukei-fh-closed-width);
    max-width: 100%;
    pointer-events: none;
    transform: translateZ(0);
    will-change: width, transform;
  }

  .fukei-fh:not(.is-ready) .fukei-fh__wrapper {
    width: max-content;
  }

  .fukei-fh.is-ready .fukei-fh__wrapper {
    transition:
      width 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh.is-opening .fukei-fh__wrapper,
  .fukei-fh.is-open .fukei-fh__wrapper,
  .fukei-fh.is-searching .fukei-fh__wrapper,
  .fukei-fh.has-toast .fukei-fh__wrapper {
    width: var(--fukei-fh-open-width);
  }

  .fukei-fh.is-navigating .fukei-fh__wrapper {
    width: var(--fukei-fh-closed-width);
    transition-duration: 0.14s;
  }

  .fukei-fh__bar,
  .fukei-fh__menu,
  .fukei-fh__search-panel,
  .fukei-fh__toast {
    pointer-events: auto;
  }

  /* ---------- BAR ----------
     2 iconos (acordeón + carrito) con space-between en un pill compacto. */
  .fukei-fh__bar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5px;
    padding: 8px 16px;
    border-radius: 34px;
    border: 0;
    /* Background más opaco (0.65) para compensar que el backdrop-filter
       pueda samplear pixeles del overlay suave detrás sin que se note. */
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.45) 100%
      );
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.08);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.08);
    /* Sin inset highlights blancos — solo sombra externa */
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.18),
      0 6px 18px rgba(0, 0, 0, 0.08);
    /* Stacking context propio — aísla el bar del overlay */
    isolation: isolate;
    transform: translateY(0) scale(1);
    will-change: transform, box-shadow;
  }

  .fukei-fh:not(.is-ready) .fukei-fh__bar {
    width: auto;
  }

  .fukei-fh.is-ready .fukei-fh__bar {
    transition:
      transform 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      box-shadow 0.28s cubic-bezier(0.23, 1, 0.32, 1),
      background 0.28s ease;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fukei-fh__bar {
      background: rgba(255, 255, 255, 0.96);
    }
  }

  .fukei-fh.is-opening .fukei-fh__bar,
  .fukei-fh.is-open .fukei-fh__bar {
    justify-content: flex-start;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.60) 100%
      );
    box-shadow:
      0 26px 60px rgba(0, 0, 0, 0.20),
      0 10px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px) scale(1.004);
  }

  .fukei-fh.is-searching .fukei-fh__bar,
  .fukei-fh.has-toast .fukei-fh__bar {
    justify-content: space-between;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.60) 100%
      );
    box-shadow:
      0 26px 60px rgba(0, 0, 0, 0.20),
      0 10px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px) scale(1.004);
  }

  .fukei-fh.is-navigating .fukei-fh__bar {
    transform: translateY(0) scale(1);
    transition-duration: 0.14s;
  }

  /* ---------- SEARCH TOGGLE ---------- */
  .fukei-fh__search-toggle {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #333333;
    flex-shrink: 0;
    transition:
      background 0.2s ease,
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh__search-toggle:focus { outline: none; }
  .fukei-fh__search-toggle:focus-visible {
    outline: none;
    background: rgba(0, 0, 0, 0.06);
  }

  .fukei-fh__search-icon-wrap,
  .fukei-fh__search-shell-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .fukei-fh__search-icon-wrap {
    transform: translateY(3px);
  }

  .fukei-fh__search-shell-icon {
    transform: translateY(1px);
  }

  .fukei-fh__search-icon-svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
  }

  .fukei-fh__search-shell {
    position: absolute;
    inset: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.985);
    transition:
      opacity 0.18s ease,
      transform 0.32s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0.32s;
    z-index: 2;
  }

  .fukei-fh__search-input {
    flex: 1;
    min-width: 0;
    min-height: 0;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin: 0;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(1px);
    appearance: none;
    -webkit-appearance: none;
  }

  .fukei-fh__search-input::-webkit-search-decoration,
  .fukei-fh__search-input::-webkit-search-cancel-button,
  .fukei-fh__search-input::-webkit-search-results-button,
  .fukei-fh__search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
  }

  .fukei-fh__search-input::placeholder {
    color: rgba(51, 51, 51, 0.52);
    font-weight: 500;
  }

  .fukei-fh__search-input:focus {
    outline: none;
  }

  .fukei-fh__search-close {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    flex-shrink: 0;
    transform: translateY(1px);
    transition: background 0.2s ease;
  }

  .fukei-fh__search-close:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  .fukei-fh__search-close:focus { outline: none; }
  .fukei-fh__search-close:focus-visible {
    outline: none;
    background: rgba(0, 0, 0, 0.05);
  }

  .fukei-fh__search-close-line {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    top: 50%;
    left: 50%;
    margin: -1px 0 0 -9px;
  }

  .fukei-fh__search-close-line:nth-child(1) {
    transform: rotate(45deg);
  }

  .fukei-fh__search-close-line:nth-child(2) {
    transform: rotate(-45deg);
  }

  .fukei-fh.is-searching .fukei-fh__search-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0s;
  }

  .fukei-fh.is-searching .fukei-fh__search-shell-icon {
    color: #DD6749;
  }

  .fukei-fh.is-searching .fukei-fh__search-toggle {
    color: #DD6749;
  }

  .fukei-fh.is-searching .fukei-fh__search-input {
    caret-color: #DD6749;
  }

  .fukei-fh.is-searching .fukei-fh__search-toggle,
  .fukei-fh.is-searching .fukei-fh__toggle,
  .fukei-fh.is-searching .fukei-fh__cart {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.92);
  }

  .fukei-fh.is-opening .fukei-fh__search-toggle,
  .fukei-fh.is-open .fukei-fh__search-toggle {
    display: none;
  }

  /* ---------- ACCORDION TOGGLE ---------- */
  .fukei-fh__toggle {
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #333333;
    flex-shrink: 0;
    transition:
      background 0.2s ease,
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh__toggle:focus { outline: none; }
  .fukei-fh__toggle:focus-visible {
    outline: none;
    background: rgba(0, 0, 0, 0.06);
  }

  .fukei-fh__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 14px;
    transform: translateY(4px);
  }

  .fukei-fh__icon-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform-origin: center;
    transition:
      top 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15),
      transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15),
      opacity 0.15s ease;
  }

  .fukei-fh__icon-line:nth-child(1) { top: 0; }
  .fukei-fh__icon-line:nth-child(2) { top: 6px; }
  .fukei-fh__icon-line:nth-child(3) { top: 12px; }

  .fukei-fh__toggle[aria-expanded="true"] .fukei-fh__icon-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }
  .fukei-fh__toggle[aria-expanded="true"] .fukei-fh__icon-line:nth-child(2) {
    opacity: 0;
  }
  .fukei-fh__toggle[aria-expanded="true"] .fukei-fh__icon-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  /* Spinner de carga — el icono se BORRA de la composición (display:none
     en las líneas) cuando `.is-loading` está activo. Así nunca puede
     superponerse con el spinner, ni siquiera en bfcache. */
  .fukei-fh__toggle.is-loading .fukei-fh__icon-line {
    display: none;
  }

  .fukei-fh__toggle.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: fukei-fh-spin 0.8s linear infinite;
  }

  @keyframes fukei-fh-spin {
    to { transform: rotate(360deg); }
  }

  /* ---------- CART BAG ---------- */
  .fukei-fh__cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none;
    color: #333333;
    padding: 0;
    overflow: visible;
    transition:
      background 0.2s ease,
      width 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      padding 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      gap 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .fukei-fh__cart:focus { outline: none; }
  .fukei-fh__cart:focus-visible {
    outline: none;
    background: rgba(0, 0, 0, 0.06);
  }

  .fukei-fh.is-opening .fukei-fh__cart,
  .fukei-fh.is-open .fukei-fh__cart {
    margin-left: auto;
    justify-content: flex-end;
    width: 148px;
    padding: 0 14px;
    gap: 18px;
  }

  .fukei-fh.is-navigating .fukei-fh__cart {
    justify-content: center;
    width: 46px;
    padding: 0;
    gap: 0;
    transition-duration: 0.14s;
  }

  .fukei-fh__cart-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #333333;
    transform: translateX(10px);
    transition:
      max-width 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.22s ease,
      transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh.is-opening .fukei-fh__cart-label,
  .fukei-fh.is-open .fukei-fh__cart-label {
    max-width: 88px;
    opacity: 1;
    transform: translateX(0);
  }

  .fukei-fh.is-navigating .fukei-fh__cart-label {
    max-width: 0;
    opacity: 0;
    transform: translateX(10px);
    transition-duration: 0.12s;
  }

  .fukei-fh__cart-visual {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .fukei-fh__bag {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
  }

  .fukei-fh__badge {
    position: absolute;
    top: -9px;
    left: auto;
    right: -17px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #DD6749;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    pointer-events: none;
    box-sizing: border-box;
  }

  .fukei-fh__badge.is-visible {
    transform: scale(1);
    opacity: 1;
  }

  .fukei-fh__badge.is-count-bumping {
    animation: fukei-fh-badge-bump 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .fukei-fh__cart.is-pulsing .fukei-fh__badge {
    animation: fukei-fh-pulse 0.55s ease;
  }

  @keyframes fukei-fh-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    100% { transform: scale(1); }
  }

  @keyframes fukei-fh-badge-bump {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.26); }
    55%  { transform: scale(0.94); }
    100% { transform: scale(1); }
  }

  /* ---------- SEARCH PANEL ---------- */
  .fukei-fh__search-panel {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: var(--fukei-fh-open-width);
    max-width: min(calc(100vw - 28px), 520px);
    min-width: 260px;
    border: 0;
    border-radius: 28px;
    padding: 12px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.56) 100%
      );
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.22),
      0 6px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.992);
    transform-origin: bottom center;
    clip-path: inset(18px 0 0 0 round 28px);
    visibility: hidden;
    transition:
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      clip-path 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0.34s;
    will-change: transform, opacity, clip-path;
  }

  .fukei-fh.is-searching .fukei-fh__search-panel[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 28px);
    transition:
      opacity 0.28s ease,
      transform 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      clip-path 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0s;
  }

  .fukei-fh__search-panel[aria-hidden="true"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fukei-fh__search-panel {
      background: rgba(255, 255, 255, 0.98);
    }
  }

  .fukei-fh__search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(46vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fukei-fh__search-state {
    min-height: 112px;
    padding: 26px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(51, 51, 51, 0.74);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
  }

  .fukei-fh__search-state.is-loading,
  .fukei-fh__search-state.is-error {
    color: #333333;
  }

  .fukei-fh__search-state.is-loading {
    font-size: 18.9px;
  }

  .fukei-fh__search-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }

  .fukei-fh__search-loading-label {
    display: inline-block;
    line-height: 1;
  }

  .fukei-fh__search-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 5px;
    transform: none;
  }

  .fukei-fh__search-loading-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.34;
    animation: fukei-fh-dot-wave 0.9s ease-in-out infinite;
  }

  .fukei-fh__search-loading-dot:nth-child(2) {
    animation-delay: 0.12s;
  }

  .fukei-fh__search-loading-dot:nth-child(3) {
    animation-delay: 0.24s;
  }

  @keyframes fukei-fh-dot-wave {
    0%, 60%, 100% {
      transform: translateY(0);
      opacity: 0.34;
    }
    30% {
      transform: translateY(-4px);
      opacity: 1;
    }
  }

  .fukei-fh__search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
    color: #333333;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    will-change: transform, opacity, background;
    transition:
      opacity 0.24s ease,
      transform 0.42s cubic-bezier(0.23, 1, 0.32, 1),
      background 0.2s ease,
      box-shadow 0.24s ease;
  }

  .fukei-fh__search-result.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .fukei-fh__search-result:nth-child(1) { transition-delay: 0.02s; }
  .fukei-fh__search-result:nth-child(2) { transition-delay: 0.06s; }
  .fukei-fh__search-result:nth-child(3) { transition-delay: 0.10s; }
  .fukei-fh__search-result:nth-child(4) { transition-delay: 0.14s; }
  .fukei-fh__search-result:nth-child(5) { transition-delay: 0.18s; }
  .fukei-fh__search-result:nth-child(6) { transition-delay: 0.22s; }
  .fukei-fh__search-result:nth-child(7) { transition-delay: 0.26s; }
  .fukei-fh__search-result:nth-child(8) { transition-delay: 0.30s; }

  .fukei-fh__search-result.is-visible:hover,
  .fukei-fh__search-result.is-visible:focus-visible {
    transition-delay: 0s;
  }

  .fukei-fh__search-result:hover,
  .fukei-fh__search-result:focus-visible {
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-1px);
    outline: none;
  }

  .fukei-fh__search-result-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .fukei-fh__search-result-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
    clip-path: inset(0 round 10px);
  }

  .fukei-fh__search-result-image-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(51, 51, 51, 0.1);
  }

  .fukei-fh__search-result-title {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .fukei-fh.is-search-focus-lock .fukei-fh__wrapper,
  .fukei-fh.is-search-focus-lock .fukei-fh__bar,
  .fukei-fh.is-search-focus-lock .fukei-fh__search-panel,
  .fukei-fh.is-search-focus-lock .fukei-fh__search-shell {
    transition: none !important;
  }

  .fukei-fh.is-search-focus-lock .fukei-fh__bar {
    transform: translateY(0) scale(1);
  }

  /* ---------- ACCORDION MENU ---------- */
  .fukei-fh__menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    width: var(--fukei-fh-open-width);
    max-width: min(calc(100vw - 28px), 520px);
    min-width: 260px;
    border: 0;
    border-radius: 28px;
    padding: 12px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.52) 100%
      );
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    /* Sin inset highlights — solo sombra externa */
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.22),
      0 6px 18px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.995);
    transform-origin: bottom center;
    clip-path: inset(16px 0 0 0 round 28px);
    visibility: hidden;
    transition:
      opacity 0.24s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      clip-path 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0.34s;
    will-change: transform, opacity, clip-path;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fukei-fh__menu {
      background: rgba(255, 255, 255, 0.98);
    }
  }

  .fukei-fh.is-opening .fukei-fh__menu,
  .fukei-fh.is-open .fukei-fh__menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round 28px);
    transition:
      opacity 0.30s ease,
      transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
      clip-path 0.38s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0s;
  }

  .fukei-fh.is-closing .fukei-fh__menu {
    opacity: 0;
    visibility: visible;
    transform: translateX(-50%) translateY(6px) scale(0.997);
    clip-path: inset(12px 0 0 0 round 28px);
    transition:
      opacity 0.18s ease,
      transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
      clip-path 0.22s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0s;
  }

  .fukei-fh.is-navigating .fukei-fh__menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px) scale(0.997);
    clip-path: inset(12px 0 0 0 round 28px);
    transition-duration: 0.12s;
  }

  .fukei-fh__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .fukei-fh__list li {
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.30s ease,
      transform 0.46s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .fukei-fh.is-opening .fukei-fh__list li,
  .fukei-fh.is-open .fukei-fh__list li {
    opacity: 1;
    transform: translateY(0);
  }

  .fukei-fh__list li:nth-child(1) { transition-delay: 0.02s; }
  .fukei-fh__list li:nth-child(2) { transition-delay: 0.14s; }
  .fukei-fh__list li:nth-child(3) { transition-delay: 0.11s; }
  .fukei-fh__list li:nth-child(4) { transition-delay: 0.08s; }
  .fukei-fh__list li:nth-child(5) { transition-delay: 0.05s; }
  .fukei-fh__list li:nth-child(6) { transition-delay: 0.02s; }

  .fukei-fh.is-closing .fukei-fh__list li {
    opacity: 0;
    transform: translateY(4px);
    transition-delay: 0s;
  }

  .fukei-fh__list a {
    display: block;
    padding: 14px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 16px;
    transition: background 0.2s ease;
  }

  .fukei-fh--menu-pokemon .fukei-fh__list > li:first-child a {
    text-align: center;
  }

  .fukei-fh__list a:hover,
  .fukei-fh__list a:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    outline: none;
  }

  .fukei-fh__list-item--dopamine {
    margin-top: 6px;
  }

  .fukei-fh__list-item--dopamine a {
    background: #DD6749;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(221, 103, 73, 0.35);
  }

  .fukei-fh__list-item--dopamine a:hover,
  .fukei-fh__list-item--dopamine a:focus-visible {
    background: #c85639;
  }

  /* ---------- TOAST ---------- */
  .fukei-fh__toast {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 12px);
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 22px;
    padding: 14px 18px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.52) 100%
      );
    -webkit-backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    backdrop-filter: blur(30px) saturate(200%) brightness(1.05);
    /* Sin inset highlights — solo sombra externa */
    box-shadow:
      0 22px 50px rgba(0, 0, 0, 0.22),
      0 6px 18px rgba(0, 0, 0, 0.08);
    color: #333333;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transform-origin: bottom center;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.34s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0.34s;
  }

  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fukei-fh__toast {
      background: rgba(255, 255, 255, 0.98);
    }
  }

  .fukei-fh.has-toast .fukei-fh__toast {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.28s ease,
      transform 0.36s cubic-bezier(0.23, 1, 0.32, 1),
      visibility 0s linear 0s;
  }

  .fukei-fh__toast-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #DD6749;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    border-radius: 999px;
    line-height: 1;
  }

  .fukei-fh__toast-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .fukei-fh__toast-text strong {
    font-weight: 700;
  }

  /* ---------- OVERLAY ----------
     Overlay clásico de pantalla completa. El header y el menú quedan por
     encima por z-index, así la página se oscurece sin recortes raros. */
  .fukei-fh-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      linear-gradient(
        180deg,
        rgba(16, 16, 16, 0.22) 0%,
        rgba(16, 16, 16, 0.34) 100%
      );
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99998;
    transition:
      opacity 0.18s ease,
      visibility 0s linear 0.18s;
    -webkit-tap-highlight-color: transparent;
    will-change: opacity;
  }

  .fukei-fh-overlay.is-search-mode {
    background: transparent;
  }

  @supports (height: 100lvh) {
    .fukei-fh-overlay.is-search-mode {
      top: 0;
      bottom: auto;
      height: 100lvh;
    }
  }

  .fukei-fh-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 0.20s ease,
      visibility 0s linear 0s;
  }

  /* ---------- FUKEI BRANDING: NEO-BRUTALIST VISUAL LAYER ----------
     Solo reemplaza la presentación. La estructura, estados y lógica del header
     siguen siendo los mismos para preservar menú, búsqueda, carrito y AJAX. */
  .fukei-fh,
  .fukei-fh-desktop-toast {
    --fukei-fh-text: var(--fukei-color-text, #000000);
    --fukei-fh-surface: var(--fukei-background-color, #F6F6F6);
    --fukei-fh-accent: var(--fukei-color-accent, #DD6749);
    --fukei-fh-on-accent: var(--fukei-color-on-accent, #000000);
    --fukei-fh-border: var(--fukei-border-width, 2px) solid var(--fukei-border-color, #000000);
    --fukei-fh-control-radius: var(--fukei-radius-control, 10px);
    --fukei-fh-surface-radius: var(--fukei-radius-surface, 16px);
    --fukei-fh-pill-radius: var(--fukei-radius-pill, 999px);
    --fukei-fh-control-shadow: var(--fukei-shadow-control, 4px 4px 0 0 var(--fukei-shadow-color, #000000));
    --fukei-fh-surface-shadow: var(--fukei-shadow-surface, 8px 8px 0 0 var(--fukei-shadow-color, #000000));
    --fukei-fh-motion: var(--fukei-motion-duration, 200ms);
    font-family: var(--fukei-font-body, "Hanken Grotesk", Arial, sans-serif);
    color: var(--fukei-fh-text);
  }

  .fukei-fh__bar,
  .fukei-fh__menu,
  .fukei-fh__search-panel,
  .fukei-fh__toast {
    border: var(--fukei-fh-border);
    border-radius: var(--fukei-fh-surface-radius);
    background: var(--fukei-fh-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--fukei-fh-surface-shadow);
  }

  .fukei-fh__menu,
  .fukei-fh__search-panel {
    clip-path: inset(18px 0 0 0 round var(--fukei-fh-surface-radius));
  }

  .fukei-fh.is-opening .fukei-fh__menu,
  .fukei-fh.is-open .fukei-fh__menu,
  .fukei-fh.is-searching .fukei-fh__search-panel[aria-hidden="false"] {
    clip-path: inset(0 0 0 0 round var(--fukei-fh-surface-radius));
  }

  .fukei-fh.is-closing .fukei-fh__menu,
  .fukei-fh.is-navigating .fukei-fh__menu {
    clip-path: inset(12px 0 0 0 round var(--fukei-fh-surface-radius));
  }

  .fukei-fh.is-opening .fukei-fh__bar,
  .fukei-fh.is-open .fukei-fh__bar,
  .fukei-fh.is-searching .fukei-fh__bar,
  .fukei-fh.has-toast .fukei-fh__bar {
    background: var(--fukei-fh-surface);
    box-shadow: var(--fukei-fh-surface-shadow);
    transform: translateY(-2px) scale(1);
  }

  .fukei-fh__search-toggle,
  .fukei-fh__toggle,
  .fukei-fh__cart,
  .fukei-fh__search-close {
    color: var(--fukei-fh-text);
    border-radius: var(--fukei-fh-control-radius);
    transition: background var(--fukei-fh-motion) ease, transform var(--fukei-fh-motion) ease, opacity var(--fukei-fh-motion) ease;
  }

  .fukei-fh__search-close {
    width: 44px;
    height: 44px;
  }

  .fukei-fh__search-toggle:focus-visible,
  .fukei-fh__toggle:focus-visible,
  .fukei-fh__cart:focus-visible,
  .fukei-fh__search-close:focus-visible,
  .fukei-fh__search-input:focus-visible,
  .fukei-fh__search-result:focus-visible,
  .fukei-fh__list a:focus-visible {
    outline: 3px solid var(--fukei-fh-accent);
    outline-offset: 3px;
  }

  @media (hover: hover) and (pointer: fine) {
    .fukei-fh__search-toggle:hover,
    .fukei-fh__toggle:hover,
    .fukei-fh__cart:hover,
    .fukei-fh__search-close:hover,
    .fukei-fh__list-item--dopamine a:hover {
      transform: scale(var(--fukei-motion-hover-scale, 1.07));
    }

    .fukei-fh__search-result.is-visible:hover {
      transform: translateY(0) scale(var(--fukei-motion-hover-scale, 1.03));
    }
  }

  .fukei-fh__search-toggle:active,
  .fukei-fh__toggle:active,
  .fukei-fh__cart:active,
  .fukei-fh__search-close:active,
  .fukei-fh__list-item--dopamine a:active,
  .fukei-fh__search-result:active {
    transform: scale(var(--fukei-motion-press-scale, 0.98));
  }

  .fukei-fh__search-input,
  .fukei-fh__cart-label,
  .fukei-fh__search-state,
  .fukei-fh__search-state.is-loading,
  .fukei-fh__search-state.is-error,
  .fukei-fh__search-result,
  .fukei-fh__list a,
  .fukei-fh__toast {
    color: var(--fukei-fh-text);
  }

  .fukei-fh__search-input::placeholder {
    color: color-mix(in srgb, var(--fukei-fh-text) 58%, transparent);
  }

  .fukei-fh.is-searching .fukei-fh__search-shell-icon,
  .fukei-fh.is-searching .fukei-fh__search-toggle {
    color: var(--fukei-fh-accent);
  }

  .fukei-fh.is-searching .fukei-fh__search-input {
    caret-color: var(--fukei-fh-accent);
  }

  .fukei-fh__badge,
  .fukei-fh__toast-check,
  .fukei-fh__list-item--dopamine a {
    border: var(--fukei-fh-border);
    background: var(--fukei-fh-accent);
    color: var(--fukei-fh-on-accent);
    box-shadow: var(--fukei-fh-control-shadow);
  }

  .fukei-fh__badge,
  .fukei-fh__toast-check {
    border-radius: var(--fukei-fh-pill-radius);
  }

  .fukei-fh__list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: var(--fukei-fh-control-radius);
    font-family: var(--fukei-font-heading, "Darker Grotesque", Arial, sans-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background var(--fukei-fh-motion) ease, color var(--fukei-fh-motion) ease, transform var(--fukei-fh-motion) ease;
  }

  .fukei-fh__list a:hover,
  .fukei-fh__list a:focus-visible,
  .fukei-fh__search-toggle:hover,
  .fukei-fh__toggle:hover,
  .fukei-fh__cart:hover,
  .fukei-fh__search-close:hover {
    background: var(--fukei-selected-background-color, #FFFFFF);
  }

  .fukei-fh__list-item--dopamine a {
    justify-content: center;
    font-family: var(--fukei-font-heading, "Darker Grotesque", Arial, sans-serif);
    font-size: 20px;
    font-weight: 800;
  }

  .fukei-fh__list-item--dopamine a:hover,
  .fukei-fh__list-item--dopamine a:focus-visible {
    background: var(--fukei-fh-accent);
    color: var(--fukei-fh-on-accent);
  }

  /* El acento pertenece al carrito solo mientras está visible y expandido.
     Al cerrar se corta de inmediato, antes de que el menú termine su salida. */
  .fukei-fh.is-opening .fukei-fh__cart,
  .fukei-fh.is-open .fukei-fh__cart {
    /* El fondo y el SVG cambian en el mismo paint; solo la geometría se anima. */
    background: var(--fukei-fh-accent);
    color: #FFFFFF;
    box-shadow: var(--fukei-fh-control-shadow);
    transition-property: width, padding, gap, opacity, transform;
  }

  .fukei-fh.is-opening .fukei-fh__cart-label,
  .fukei-fh.is-open .fukei-fh__cart-label,
  .fukei-fh.is-opening .fukei-fh__bag,
  .fukei-fh.is-open .fukei-fh__bag,
  .fukei-fh.is-opening .fukei-fh__bag *,
  .fukei-fh.is-open .fukei-fh__bag * {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
  }

  /* Inicio y Dopamine Collection se comportan como navegación limpia: sin
     superficie salmón ni estado seleccionado al tocar. El CTA independiente
     de esculturas conserva su acento. */
  #fukei-fh.fukei-fh .fukei-fh__list > li:not(.fukei-fh__list-item--dopamine) > a:active,
  #fukei-fh.fukei-fh .fukei-fh__list-item--dopamine a,
  #fukei-fh.fukei-fh .fukei-fh__list-item--dopamine a:hover,
  #fukei-fh.fukei-fh .fukei-fh__list-item--dopamine a:focus-visible,
  #fukei-fh.fukei-fh .fukei-fh__list-item--dopamine a:active {
    background: transparent !important;
    color: var(--fukei-fh-text) !important;
    box-shadow: none !important;
  }

  /* Cart tap/navigation uses the identical atomic color swap as accordion open:
     salmon background and white SVG are committed together; width may still move. */
  #fukei-fh.fukei-fh.is-cart-navigating .fukei-fh__cart,
  #fukei-fh.fukei-fh .fukei-fh__cart:hover,
  #fukei-fh.fukei-fh .fukei-fh__cart:active {
    background: var(--fukei-fh-accent) !important;
    color: #FFFFFF !important;
    box-shadow: var(--fukei-fh-control-shadow);
    transition-property: width, padding, gap, opacity, transform;
  }

  /* Nunca aplicar acento al botón del acordeón, ni siquiera durante tap/focus
     o si una regla global de Divi intenta pintar botones activos. */
  .fukei-fh__toggle,
  .fukei-fh__toggle:hover,
  .fukei-fh__toggle:active,
  .fukei-fh__toggle:focus,
  .fukei-fh__toggle:focus-visible {
    background: transparent !important;
  }

  /* El blanco se aplica únicamente en los mismos estados que poseen el fondo
     salmón. No hay estado anticipado o retrasado que pueda dejarlo blanco
     sobre una superficie clara. */
  #fukei-fh.fukei-fh.is-opening .fukei-fh__cart .fukei-fh__bag,
  #fukei-fh.fukei-fh.is-opening .fukei-fh__cart .fukei-fh__bag path,
  #fukei-fh.fukei-fh.is-open .fukei-fh__cart .fukei-fh__bag,
  #fukei-fh.fukei-fh.is-open .fukei-fh__cart .fukei-fh__bag path,
  #fukei-fh.fukei-fh.is-cart-navigating .fukei-fh__cart .fukei-fh__bag,
  #fukei-fh.fukei-fh.is-cart-navigating .fukei-fh__cart .fukei-fh__bag path,
  #fukei-fh.fukei-fh .fukei-fh__cart:hover .fukei-fh__bag,
  #fukei-fh.fukei-fh .fukei-fh__cart:hover .fukei-fh__bag path,
  #fukei-fh.fukei-fh .fukei-fh__cart:active .fukei-fh__bag,
  #fukei-fh.fukei-fh .fukei-fh__cart:active .fukei-fh__bag path {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    filter: none !important;
    transition: none !important;
  }

  /* Compact accents keep the brand shadow but with a shorter, tighter offset. */
  .fukei-fh__badge,
  .fukei-fh__toast-check {
    box-shadow: 2px 2px 0 0 var(--fukei-shadow-color, #000000);
  }

  #fukei-fh.fukei-fh .fukei-fh__toggle,
  #fukei-fh.fukei-fh .fukei-fh__toggle:hover,
  #fukei-fh.fukei-fh .fukei-fh__toggle:active,
  #fukei-fh.fukei-fh .fukei-fh__toggle:focus,
  #fukei-fh.fukei-fh .fukei-fh__toggle:focus-visible {
    background: transparent !important;
  }

  .fukei-fh.is-closing .fukei-fh__cart {
    background: transparent !important;
    color: var(--fukei-fh-text);
    box-shadow: none;
    transition-property: width, padding, gap, opacity, transform;
    transition-duration: 0.14s;
  }

  .fukei-fh.is-closing .fukei-fh__cart-label {
    color: var(--fukei-fh-text);
  }

  .fukei-fh.is-opening .fukei-fh__toggle,
  .fukei-fh.is-open .fukei-fh__toggle,
  .fukei-fh.is-closing .fukei-fh__toggle {
    background: transparent;
    color: var(--fukei-fh-text);
    box-shadow: none;
  }

  .fukei-fh__search-result {
    border: var(--fukei-fh-border);
    border-radius: var(--fukei-fh-control-radius);
    background: var(--fukei-selected-background-color, #FFFFFF);
    box-shadow: none;
  }

  .fukei-fh__search-result:hover,
  .fukei-fh__search-result:focus-visible {
    background: var(--fukei-selected-background-color, #FFFFFF);
  }

  /* Los resultados son superficies blancas legibles, no tarjetas de acento. */
  #fukei-fh.fukei-fh .fukei-fh__search-result,
  #fukei-fh.fukei-fh .fukei-fh__search-result:hover,
  #fukei-fh.fukei-fh .fukei-fh__search-result:focus-visible {
    background: #FFFFFF !important;
    color: var(--fukei-fh-text) !important;
    box-shadow: none;
  }

  .fukei-fh__search-result-image,
  .fukei-fh__search-result-image img {
    border-radius: var(--fukei-fh-control-radius);
  }

  .fukei-fh__toast {
    font-family: var(--fukei-font-body, "Hanken Grotesk", Arial, sans-serif);
    font-weight: 700;
  }

  /* ---------- REDUCED MOTION ---------- */
  @media (prefers-reduced-motion: reduce) {
    .fukei-fh__wrapper,
    .fukei-fh__bar,
    .fukei-fh__search-toggle,
    .fukei-fh__search-shell,
    .fukei-fh__search-panel,
    .fukei-fh__search-result,
    .fukei-fh__menu,
    .fukei-fh__toast,
    .fukei-fh-overlay,
    .fukei-fh__cart,
    .fukei-fh__cart-label,
    .fukei-fh__icon-line,
    .fukei-fh__badge,
    .fukei-fh__cart.is-pulsing .fukei-fh__badge,
    .fukei-fh__toggle.is-loading::before,
    .fukei-fh__search-loading-dot {
      transition-duration: 0.01ms !important;
      animation: none !important;
    }

    .fukei-fh__search-toggle,
    .fukei-fh__toggle,
    .fukei-fh__cart,
    .fukei-fh__search-close,
    .fukei-fh__list-item--dopamine a,
    .fukei-fh__search-result,
    .fukei-fh__search-toggle:hover,
    .fukei-fh__toggle:hover,
    .fukei-fh__cart:hover,
    .fukei-fh__search-close:hover,
    .fukei-fh__list-item--dopamine a:hover,
    .fukei-fh__search-result.is-visible:hover,
    .fukei-fh__search-toggle:active,
    .fukei-fh__toggle:active,
    .fukei-fh__cart:active,
    .fukei-fh__search-close:active,
    .fukei-fh__list-item--dopamine a:active,
    .fukei-fh__search-result:active {
      transform: none !important;
    }
  }
}

/* ---------- Final mobile menu corrections (after all state/media rules) ---------- */
@media (max-width: 980px) {
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(1) > a,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(1) > a:hover,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(1) > a:focus-visible,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(1) > a:active,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(2) > a,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(2) > a:hover,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(2) > a:focus-visible,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(2) > a:active {
    background: transparent !important;
    color: var(--fukei-fh-text) !important;
    box-shadow: none !important;
  }

  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(3) > a,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(3) > a:hover,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(3) > a:focus-visible,
  #fukei-fh.fukei-fh .fukei-fh__menu .fukei-fh__list > li:nth-child(3) > a:active {
    background: var(--fukei-fh-accent) !important;
    color: var(--fukei-fh-on-accent) !important;
    box-shadow: var(--fukei-fh-control-shadow) !important;
  }

  #fukei-fh.fukei-fh.is-opening .fukei-fh__cart-visual:has(.fukei-fh__badge.is-visible),
  #fukei-fh.fukei-fh.is-open .fukei-fh__cart-visual:has(.fukei-fh__badge.is-visible) {
    transform: translateX(-6px);
  }
}
