/* ============================================================
   LoQuiero — Header CSS v3 (Liquid Glass & App-like)
   ============================================================ */

/* Importar la base del header para no duplicar código estructural */
@import url("./header.css");

/* ============================================================
   1) TRUST BAR V3
   ============================================================ */
@media (max-width: 1023.98px) {
  .loq-trust-bar--v3 {
    display: none !important;
    /* Ahorra 34px de espacio vertical en mobile */
  }
}

/* ============================================================
   2) HEADER WRAPPER V3 (Non-sticky en mobile)
   ============================================================ */
@media (max-width: 1023.98px) {
  .loq-header-wrap--v3 {
    position: relative !important;
    /* Desactiva el sticky en móvil, fluye con la página */
    top: 0 !important;
    --lqh-mobile-h: 50px;
    --lqh-mobile-search-h: 44px;
  }
}

/* ============================================================
   3) HEADER SURFACE V3 (Liquid Glass Effect & Gradient)
   ============================================================ */
.loq-header--v3 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(620px 220px at 10% -30%, rgb(var(--loq-primary-rgb) / 0.055), transparent 62%),
    linear-gradient(180deg, #f5f6f8 0%, #eef0f4 100%) !important;
  box-shadow: inset 0 -1px 0 rgb(17 19 22 / 0.06) !important;
  color: var(--loq-text);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.loq-header--v3::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: var(--loq-premium-texture-size);
  opacity: var(--loq-premium-texture-opacity);
}

.loq-header--v3 > * {
  position: relative;
  z-index: 1;
}

.loq-header-wrap--v3::after {
  content: none;
}

.loq-header--v3 .loq-header__logo-img {
  filter: none;
}

.loq-header--v3 .loq-searchbar--inline .loq-searchbar__inner,
.loq-header--v3 .loq-search-panel .loq-searchbar__inner {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.84), rgb(255 255 255 / 0.6)),
    rgb(255 255 255 / 0.54) !important;
  border: 1px solid rgb(17 19 22 / 0.08) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.82) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.loq-header--v3 .loq-searchbar__input {
  color: var(--loq-text) !important;
}

.loq-header--v3 .loq-searchbar__input::placeholder {
  color: rgb(17 19 22 / 0.42) !important;
}

.loq-header--v3 .loq-searchbar__submit {
  color: rgb(17 19 22 / 0.58) !important;
}

.loq-header--v3 .loq-header__icon {
  color: rgb(17 19 22 / 0.76);
}

.loq-header--v3 .loq-header__icon:hover,
.loq-header--v3 .loq-header__icon:focus-visible {
  color: var(--loq-text);
}

.loq-header--v3 .loq-header__nav {
  border-top-color: rgb(17 19 22 / 0.055);
  border-bottom-color: rgb(17 19 22 / 0.07);
}

.loq-header--v3 .loq-header__nav a,
.loq-header--v3 .loq-mainmenu a {
  color: rgb(17 19 22 / 0.62) !important;
}

.loq-header--v3 .loq-header__nav a:hover,
.loq-header--v3 .loq-header__nav a:focus-visible,
.loq-header--v3 .loq-mainmenu a:hover,
.loq-header--v3 .loq-mainmenu a:focus-visible {
  color: var(--loq-text) !important;
}

/* ============================================================
   4) MOBILE TOP ACTIONS V3
   ============================================================ */
@media (max-width: 1023.98px) {
  .loq-header--v3 .loq-header__top .loq-header__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 34px 16px;
    column-gap: 10px;
    row-gap: 2px;
    height: auto;
    min-height: 58px;
    padding: 7px 18px 5px;
  }

  .loq-header--v3 .loq-header__top {
    height: auto;
    overflow: visible;
  }

  .loq-header--v3 .loq-header__brand {
    display: contents;
  }

  .loq-header--v3 .loq-header__logo {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
  }

  .loq-header--v3 .loq-context-trigger--v3 {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    max-width: 100%;
    margin-top: 0;
  }

  .loq-header--v3 .loq-header__actions {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    gap: 8px;
    margin-left: 0;
  }

  .loq-header--v3 .loq-header__icon--wishlist,
  .loq-header--v3 .loq-header__icon-wrap {
    display: none !important;
  }

  .loq-header--v3 .loq-header__icon--search,
  .loq-header--v3 .loq-header__icon--menu {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--loq-radius-pill, 999px);
    background: transparent;
    color: rgb(17 19 22 / 0.76);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .loq-header--v3 .loq-header__icon--search:hover,
  .loq-header--v3 .loq-header__icon--search:focus-visible,
  .loq-header--v3 .loq-header__icon--menu:hover,
  .loq-header--v3 .loq-header__icon--menu:focus-visible {
    background: rgb(17 19 22 / 0.055);
    color: var(--loq-text);
  }

  .loq-header--v3 .loq-context-trigger--v3 .loq-context-trigger__label {
    max-width: min(100%, 240px);
  }
}

/* ============================================================
   5) CONTEXT SELECTOR V3 (Compact Pill Capsule)
   ============================================================ */
.loq-context-trigger--v3 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--loq-radius-pill, 999px) !important;
  background: transparent !important;
  color: rgb(17 19 22 / 0.58) !important;
  font-size: 11px !important;
  font-weight: var(--loq-font-medium, 500) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform var(--loq-motion, 0.2s ease), background var(--loq-motion, 0.2s ease) !important;
  cursor: pointer;
  white-space: nowrap;
}

.loq-context-trigger--v3:hover,
.loq-context-trigger--v3:focus-visible {
  background: rgb(17 19 22 / 0.045) !important;
  color: var(--loq-text) !important;
}

.loq-context-trigger--v3:active {
  transform: scale(0.96) !important;
}

.loq-context-trigger--v3 .loq-context-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  color: var(--loq-primary, #5a38e5);
}

.loq-context-trigger--v3 .loq-context-trigger__icon svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  display: block;
}

.loq-context-trigger--v3 .loq-context-trigger__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.loq-context-trigger--v3 .loq-context-trigger__prefix,
.loq-context-trigger--v3 .loq-context-trigger__currency-label {
  color: rgb(17 19 22 / 0.44);
  font-weight: var(--loq-font-regular, 400);
}

.loq-context-trigger--v3 .loq-context-trigger__place {
  color: rgb(17 19 22 / 0.68);
  font-weight: var(--loq-font-medium, 500);
}

.loq-context-trigger--v3 .loq-context-trigger__currency {
  color: rgb(17 19 22 / 0.68);
  font-weight: var(--loq-font-medium, 500);
}

.loq-context-trigger--v3 .loq-context-trigger__currency::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.9;
}

.loq-context-trigger--v3 .loq-context-trigger__sep {
  color: rgb(17 19 22 / 0.24);
  font-weight: var(--loq-font-regular, 400);
}

@media (max-width: 380px) {
  .loq-context-trigger--v3 {
    max-width: 100%;
    padding: 0 4px;
  }

  .loq-context-trigger--v3 .loq-context-trigger__label {
    max-width: min(100%, 220px);
  }
}

/* ============================================================
   6) MOBILE SEARCH ROW V3 (Liquid Glass Input)
   ============================================================ */
@media (max-width: 1023.98px) {
  .loq-header__mobile-search--v3 {
    display: none !important;
  }

  .loq-header__mobile-search--v3 .loq-header__container {
    height: var(--lqh-mobile-search-h);
    padding: 4px 14px 6px;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__inner {
    flex-direction: row;
    gap: 9px;
    height: 40px;
    padding: 0 13px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
      rgba(6, 9, 16, 0.68) !important;
    border: 1px solid rgba(185, 171, 255, 0.26) !important;
    border-radius: 14px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(103, 82, 180, 0.06),
      0 10px 28px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__submit {
    order: -1;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: rgba(214, 207, 255, 0.82) !important;
    opacity: 1;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__submit:hover,
  .loq-header__mobile-search--v3 .loq-searchbar__submit:focus-visible {
    background: rgba(147, 112, 255, 0.14) !important;
    transform: none !important;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__submit i {
    color: currentColor !important;
    font-size: 15px;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__input {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13.5px;
    font-weight: 500;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__input::placeholder {
    color: rgba(214, 207, 255, 0.56) !important;
  }

  .loq-header__mobile-search--v3 .loq-searchbar__inner:focus-within {
    background: rgba(8, 11, 20, 0.86) !important;
    border-color: rgba(176, 153, 255, 0.62) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 0 0 3px rgba(120, 84, 255, 0.12),
      0 10px 28px rgba(0, 0, 0, 0.14) !important;
  }
}

/* ============================================================
   7) APP FILTER CHIPS V3
   ============================================================ */


.loq-header__app-filters .loq-header__container {
  gap: 0;
  overflow-x: auto;
  padding-block: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.loq-header__app-filters {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.24)),
    #eef0f4;
  border-top: 1px solid rgb(17 19 22 / 0.055);
  border-bottom: 1px solid rgb(17 19 22 / 0.07);
}

@media (max-width: 1023.98px) {
  .loq-header__app-filters {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .loq-header__app-filters .loq-header__container {
    justify-content: center;
    min-height: 48px;
  }
}

.loq-header__app-filters .loq-header__container::-webkit-scrollbar {
  display: none;
}

.loq-app-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(17 19 22 / 0.58);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: var(--loq-font-semibold, 600);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color var(--loq-motion, 0.2s ease),
    transform var(--loq-motion, 0.2s ease);
}

.loq-app-chip::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #7a55ff, #b6a0ff);
  opacity: 0;
  transform: scaleX(0.62);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.loq-app-chip + .loq-app-chip {
  box-shadow: inset 1px 0 0 rgb(17 19 22 / 0.07);
}

.loq-app-chip:hover,
.loq-app-chip:focus-visible {
  color: var(--loq-text);
}

.loq-app-chip:active {
  transform: translateY(1px) scale(0.98);
}

.loq-app-chip.is-active {
  color: var(--loq-primary, #5a38e5);
}

.loq-app-chip.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.loq-app-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  font-size: 15px;
  opacity: 0.88;
}

.loq-app-chip__icon i {
  display: block;
  line-height: 1;
}

.loq-app-chip--deals .loq-app-chip__icon {
  color: #d9ccff;
}

.site-main.is-app-filtering .loq-block--grid,
.loq-archive-modular.is-app-filtering .loq-block--grid {
  cursor: progress;
}

.site-main.is-app-filtering .loq-cards-grid,
.loq-archive-modular.is-app-filtering .loq-cards-grid {
  opacity: 0.42;
  transform: translateY(4px);
}

.loq-cards-grid {
  transition: opacity 180ms ease, transform 180ms ease;
}

.loq-app-filter-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 132px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgba(17, 19, 22, 0.08);
  border-radius: var(--loq-radius, 14px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--loq-text, #111316);
  text-align: center;
}

.loq-app-filter-empty strong {
  font-size: 15px;
  font-weight: var(--loq-font-semibold, 600);
}

.loq-app-filter-empty span {
  max-width: 28ch;
  color: var(--loq-muted, #6b7280);
  font-size: 13px;
  line-height: 1.35;
}
