/* Chollos Deluxe - cabecera movil v1
   Cargar despues de los estilos originales. */
@media (max-width: 767.98px) {
  #app-header > .container-xl {
    flex-wrap: nowrap;
    align-items: center;
    padding-inline: 12px !important;
  }
  #app-header > .container-xl > .col {
    min-width: 0;
    padding-left: 0;
    align-items: center;
  }
  #app-header #app-menu-open {
    flex: 0 0 auto;
  }
  #app-header #app-a-logo {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    margin: 0 8px;
  }
  #app-header #app-logo {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    max-height: 38px;
    object-fit: contain;
  }
  #app-header > .container-xl > .col-auto.d-md-none {
    flex: 0 0 48px;
    width: 48px;
    padding: 0 !important;
  }
  #app-header #formSearchMo {
    position: relative;
    width: 48px;
    height: 48px;
  }
  #app-header #search,
  #app-header #search_submit {
    right: 0;
    top: 0;
    margin-right: 0;
    opacity: 1;
  }
  #app-header #search:not(:focus) {
    background-color: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.28);
    padding-left: 0;
    padding-right: 0;
    color: transparent;
  }
  #app-header #search:not(:focus)::placeholder {
    color: transparent;
  }
  #app-header #search {
    transition: width .4s cubic-bezier(0,.795,0,1),
                background-color .15s ease, border-color .15s ease;
  }
  #app-header #search:focus {
    width: min(81vw, calc(100vw - 24px));
  }
  #app-header #search_submit {
    background-size: 36px;
  }
  #app-header #search:not(:focus):active {
    background-color: rgba(255,255,255,.12);
  }
  #app-header #app-menu-open:focus-visible,
  #app-header #app-a-logo:focus-visible,
  #app-header #search_submit:focus-visible,
  #app-header #search:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  #app-header > .container-xl > .col-auto:last-child {
    padding-right: 0;
  }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  #app-header #search,
  #app-header #app-menu-open {
    transition: none;
  }
}

/* Chollos Deluxe - transiciones de cabecera movil */
@media (max-width: 767.98px) {
  #app-header.fixed-top.cd-mobile-scroll {
    transform: translateY(0);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  #app-header.fixed-top.cd-mobile-scroll.cd-header-hidden {
    transform: translateY(-100%);
    transition-duration: 180ms;
    pointer-events: none;
  }

}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  #app-header.fixed-top.cd-mobile-scroll {
    transition: none;
  }
}

/* Chollos Deluxe - correcciones del buscador V3 */
@media (max-width: 767.98px) {

  #app-header #search:focus {
    width: var(--cd-search-width, calc(100vw - 100px));
  }

  #app-header:has(#search:focus) #app-a-logo {
    visibility: hidden;
  }

  #app-header.fixed-top.cd-mobile-scroll.cd-header-hidden {
    transform: translateY(-100%);
    pointer-events: none;
  }

  #app-header.fixed-top.cd-mobile-scroll.cd-header-hidden:has(:focus-visible):not(:has(#search:focus)) {
    transform: translateY(0);
    pointer-events: auto;
  }

}

/* Chollos Deluxe - transiciones de escritorio V4 */

@media (min-width: 768px) {

  #app-header.fixed-top.cd-mobile-scroll {
    transform: translateY(0);
    transition: transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  #app-header.fixed-top.cd-mobile-scroll.cd-header-hidden {
    transform: translateY(-100%);
    transition-duration: 180ms;
    pointer-events: none;
  }

  #app-header.fixed-top.cd-mobile-scroll.cd-header-hidden:has(:focus-visible) {
    transform: translateY(0);
    pointer-events: auto;
  }

}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {

  #app-header.fixed-top.cd-mobile-scroll {
    transition: none;
  }

}

/* Chollos Deluxe - buscador escritorio V4.3 */

@media (min-width: 768px) {

  #app-header #formSearchEs input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    background-color: #464c52;
    border: 1px solid transparent;
    border-radius: 9999px !important;
    box-shadow: none;
    outline: none;
    transition: background-color 150ms ease;
  }

  #app-header #formSearchEs input[type="search"]:hover {
    background-color: #50565c;
  }

  #app-header #formSearchEs input[type="search"]:focus {
    background-color: #626970;
    border-color: transparent;
    box-shadow: none;
    outline: none;
  }

  #app-header #formSearchEs input[type="search"]::placeholder {
    color: #ddd !important;
    opacity: 1 !important;
  }

}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {

  #app-header #formSearchEs input[type="search"] {
    transition: none;
  }

}

@media (min-width: 768px) and (forced-colors: active) {

  #app-header #formSearchEs input[type="search"] {
    border: 1px solid ButtonText;
  }

  #app-header #formSearchEs input[type="search"]:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }

}

/* Chollos Deluxe - refinamiento buscador movil V4.4 */

@media (max-width: 767.98px) {

  #app-header #search {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 9999px;
    box-shadow: none;
    transition: width .4s cubic-bezier(0,.795,0,1),
                background-color 150ms ease;
  }

  #app-header #search:not(:focus) {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  #app-header #search:not(:focus):active {
    background-color: rgba(255,255,255,.08);
  }

  #app-header #search:focus {
    background-color: #626970 !important;
    border-color: transparent;
    box-shadow: none;
    outline: none;
    color: #fff;
    caret-color: #fff;
  }

  #app-header #search:focus::placeholder {
    color: #f5f5f5;
    opacity: 1;
  }

  #app-header #search:not(:focus)::placeholder {
    color: transparent;
  }

  #app-header #search_submit {
    background-size: 36px;
  }

}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {

  #app-header #search {
    transition: none;
  }

}

@media (max-width: 767.98px) and (forced-colors: active) {

  #app-header #search:focus {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }

}
