/*
 Theme Name:   Astra Child
 Description:  Tema hijo para el proyecto de Lican Trade.
 Author:       Ciro Cirino
 Template:     astra
 Version:      1.0.0
*/

/* ─── ELEMENTOR WRAPPERS ─── */
.elementor-location-header,
.elementor-location-header .elementor-container,
.elementor-location-header .e-con,
.elementor-location-header .e-con-inner,
.elementor-location-header .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ─── HEADER ─── */
.lt-header {
  background: #0D3F5F;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  font-family: 'Poppins', sans-serif;
}

.lt-header__inner {
  width: 100%;
  margin: 0;
  padding: 10px 15px;
  height: 75px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* ─── LOGO ─── */
.lt-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 16px;
}
.lt-logo img { height: 48px; width: auto; display: block; object-fit: contain; }
.lt-logo__fallback {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 600;
}

/* ─── DEPARTMENTS ─── */
.lt-departments {
  flex: 0 0 auto;
  position: relative;
  margin-right: 12px;
}
.lt-departments__btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.lt-departments__btn:hover,
.lt-departments--open .lt-departments__btn {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  color: #fff !important;
}
.lt-departments__btn svg {
  width: 14px; height: 14px;
  transition: transform 0.25s; flex-shrink: 0;
}
.lt-departments--open .lt-departments__btn svg { transform: rotate(180deg); }

/* ─── CALL US ─── */
.lt-callus {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: #29ABE2; color: #fff !important;
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
  line-height: 1;
  margin-right: 15;
}
.lt-callus:hover { background: #1A7DAB; }
.lt-callus svg { width: 15px; height: 15px; flex-shrink: 0; }
.lt-callus__label { line-height: 1.2; min-width: 0; }
.lt-callus__label span { display: block; font-size: 10px; font-weight: 400; opacity: 0.85; }
.lt-callus__label strong { display: block; font-size: 13px; font-weight: 600; }

/* ─── SEARCH — proporcion 5/12 como DollarDays ─── */
.lt-search {
  flex: 1 1 auto;
  min-width: 200px;
  padding: 0;
  box-sizing: border-box;
}
.lt-search .dgwt-wcas-search-wrapp,
.lt-search .dgwt-wcas-search-form {
  width: 100% !important;
  max-width: 100% !important;
}
.lt-search .dgwt-wcas-sf-wrapp {
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  height: 40px !important;
  padding: 0 !important;
  gap: 0 !important;
  width: 100% !important;
}
.lt-search .dgwt-wcas-search-input {
  flex: 1 !important;
  height: 40px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border-radius: 24px 0 0 24px !important;
  background: transparent !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  color: #333 !important;
  width: 100% !important;
  min-width: 0 !important;
}
.lt-search .dgwt-wcas-search-submit {
  position: relative !important;
  top: 0 !important; right: 0 !important;
  bottom: auto !important; left: auto !important;
  height: 40px !important;
  width: 48px !important;
  min-width: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #29ABE2 !important;
  border: none !important;
  border-radius: 0 24px 24px 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.lt-search .dgwt-wcas-search-submit:hover { background: #1A7DAB !important; }
.lt-search .dgwt-wcas-ico-magnifier,
.lt-search .dgwt-wcas-search-submit svg {
  fill: #fff !important;
  width: 16px !important; height: 16px !important;
  position: static !important;
}
.lt-search .dgwt-wcas-preloader,
.lt-search .dgwt-wcas-voice-search { display: none !important; }

/* ─── NAV (About Us / FAQs) ─── */
.lt-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
}
.lt-nav__link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.lt-nav__link:hover { color: #fff !important; }

/* ─── ACTIONS ─── */
.lt-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 15px;
}

.lt-login {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff !important; text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 500;
  transition: opacity 0.2s; white-space: nowrap;
}
.lt-login:hover { opacity: 0.75; }
.lt-login svg { width: 20px; height: 20px; }

.lt-quote {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #fff !important; text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 11px; font-weight: 500;
  position: relative; transition: opacity 0.2s; white-space: nowrap;
}
.lt-quote:hover { opacity: 0.75; }
.lt-quote svg { width: 22px; height: 22px; }
.lt-quote__count {
  position: absolute; top: -6px; right: -8px;
  background: #29ABE2; color: #fff;
  font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ─── MEGA MENU ─── */
.lt-megamenu {
  position: fixed !important;
  top: 75px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  margin: 0 !important;
  background: #fff !important;
  border-top: 3px solid #29ABE2 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
  z-index: 999999 !important;
  display: none;
}
.lt-megamenu--visible { display: block !important; }

.lt-megamenu__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 24px 36px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.lt-megamenu__col {
  padding: 0 20px;
  border-right: 1px solid #f0f0f0;
}
.lt-megamenu__col:first-child { padding-left: 0; }
.lt-megamenu__col:last-child { border-right: none; padding-right: 0; }

.lt-megamenu__heading {
  font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 600; color: #0D3F5F !important;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid #29ABE2;
  display: block; text-decoration: none; transition: color 0.2s;
}
.lt-megamenu__heading:hover { color: #29ABE2 !important; }

.lt-megamenu__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex; flex-direction: column; gap: 8px;
}
.lt-megamenu__list li {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.lt-megamenu__list a {
  font-family: 'Poppins', sans-serif;
  font-size: 12px; color: #555 !important;
  text-decoration: none; font-weight: 400;
  transition: color 0.15s, padding-left 0.15s;
  display: block; line-height: 1.4;
  padding-left: 0 !important;
}
.lt-megamenu__list a:hover { color: #29ABE2 !important; padding-left: 4px !important; }

/* ─── OVERLAY ─── */
.lt-overlay {
  display: none;
  position: fixed !important;
  top: 75px !important; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 999990 !important;
  cursor: pointer;
}
.lt-overlay--visible { display: block !important; }


/* ============================================================
 * LICAN TRADE - HEADER RESPONSIVE (bloque único consolidado)
 * Reemplaza todos los parches previos (Grid 768px original,
 * ajuste extra ≤360px, fix de min-width de search, object-fit
 * del logo) que estaban sueltos y pisándose entre sí.
 *
 * CAUSA RAÍZ de los desbordes en distintos dispositivos: los
 * elementos dentro de un Grid, por default, tienen
 * "min-width: auto" -- nunca se achican más chico que su propio
 * contenido, sin importar cuán angosto sea el espacio disponible.
 * La regla "min-width: 0" en TODOS los hijos del grid soluciona
 * esto de raíz, en vez de agregar un breakpoint nuevo cada vez
 * que aparece un dispositivo distinto que rompe.
 * ============================================================ */
@media (max-width: 1200px) {
  .lt-search { flex: 0 0 35%; max-width: 35%; }
  .lt-callus__label span { display: none; }
}

@media (max-width: 1024px) {
  .lt-search { flex: 0 0 30%; max-width: 30%; }
  .lt-callus { padding: 8px 10px; }
}

@media (max-width: 768px) {
  .lt-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo    dept    call"
      "search  search  actions";
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: auto;
    padding: 10px 12px;
  }

  /* LA REGLA CLAVE: permite que cada celda se achique de verdad */
  .lt-header__inner > * {
    min-width: 0;
  }

  .lt-logo {
    grid-area: logo;
    margin: 0;
  }
  .lt-logo img {
    height: 36px;
    width: auto;
    max-width: 100%;
  }

  .lt-departments {
    grid-area: dept;
    justify-self: start;
    margin: 0;
    min-width: 0;
  }
  .lt-departments__btn {
    padding: 6px 8px;
    font-size: 11px;
    gap: 4px;
    white-space: nowrap;
  }
  .lt-departments__btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .lt-callus {
    grid-area: call;
    justify-self: end;
    padding: 6px 8px;
    gap: 5px;
  }
  .lt-callus__label span { display: none; }
  .lt-callus__label strong {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
  }
  .lt-callus svg {
    width: 13px;
    height: 13px;
  }

  .lt-nav { display: none; }

  .lt-search {
    grid-area: search;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .lt-search .dgwt-wcas-sf-wrapp {
    width: 100%;
    margin: 0;
  }

  .lt-actions {
    grid-area: actions;
    justify-self: end;
    gap: 10px;
    margin: 0;
    padding: 0;
  }
  .lt-login {
    font-size: 10px;
    gap: 2px;
  }
  .lt-login svg { width: 20px; height: 20px; }
  .lt-quote {
    font-size: 10px;
    gap: 2px;
  }
  .lt-quote svg { width: 22px; height: 22px; }
  .lt-quote__count {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -6px;
    right: -8px;
  }

  .lt-megamenu { top: auto; }
  .lt-megamenu__inner {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 15px;
  }
  .lt-megamenu__col { border-right: none; padding: 0 0 20px; }
  .lt-overlay { top: 0; }
}

/* Último recurso para pantallas extremas (~320-380px): ocultamos
   "Login" para dar aire, ya que "Quote" es la acción prioritaria
   del negocio y Login sigue accesible desde otras partes del sitio.
   También ocultamos el NÚMERO de teléfono (dejando solo el ícono,
   que sigue funcionando como link tel: clickeable) -- esto libera
   el espacio que "Departments" necesita para mostrarse completo
   con su flecha, en vez de competir por el mismo ancho angosto. */
@media (max-width: 380px) {
  .lt-login { display: none; }

  .lt-callus {
    padding: 8px !important;
  }
  .lt-callus__label { display: none; }
}

@media (max-width: 480px) {
  .lt-megamenu__inner { grid-template-columns: 1fr; }
  .lt-departments__btn { font-size: 12px; padding: 6px 10px; }
}

#p-9328.add-request-quote-button.button {
    border: none !important;
    box-shadow: none !important;
}
/* ═══ RELATED PRODUCTS ═══ */

/* Alinear tarjeta completa en columna */
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

/* Limitar titulo a 3 lineas, con "..." si se corta */
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 5em !important;
}

/* Empujar boton al fondo de la tarjeta */
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product a.button,
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product .yith-ywraq-add-to-quote {
    margin-top: auto !important;
}

/* Estilo del boton: fondo solido en vez de link con subrayado */
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product a.button,
.elementor-7867 .elementor-element.elementor-element-3501ca1b.elementor-wc-products ul.products li.product .yith-ywraq-add-to-quote a {
    background-color: #0D3F5F !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 16px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}
/* ============================================================
   HUSKY FILTERS - SIDEBAR PROFESIONAL B2B (v3)
   CSS ID del widget Sidebar en Elementor = lican-filtros
   ============================================================ */

#lican-filtros {
    background: #ffffff;
    border: 1px solid #E4E4E4;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 !important;
    box-shadow: 0 1px 4px rgba(13, 63, 95, 0.06);
}

#lican-filtros * {
    box-sizing: border-box;
}

#lican-filtros .widget-title,
#lican-filtros .widget_title {
    background: #0D3F5F;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 16px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
}

#lican-filtros h2:not(.widget-title):not(.widget_title),
#lican-filtros h3:not(.widget-title):not(.widget_title),
#lican-filtros h4,
#lican-filtros h5,
#lican-filtros h6 {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #6B6B6B !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 !important;
    padding: 14px 20px 8px !important;
}

#lican-filtros input[type="text"],
#lican-filtros input[type="search"] {
    width: calc(100% - 40px) !important;
    height: 38px;
    border: 1px solid #D8D8D8;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    margin: 16px 20px 12px !important;
}

#lican-filtros select {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    display: block;
    margin: 0 20px 4px !important;
    height: 40px;
    border: 1px solid #D8D8D8;
    border-radius: 6px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    color: #0D3F5F !important;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230D3F5F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

#lican-filtros h4,
#lican-filtros h5,
#lican-filtros h6 {
    border-top: 1px solid #EFEFEF;
    margin-top: 8px !important;
}

#lican-filtros ul:not(.chosen-choices):not(.chosen-results) {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 12px 16px !important;
}

#lican-filtros ul:not(.chosen-choices):not(.chosen-results) > li {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 9px 8px !important;
    margin: 0 !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

#lican-filtros ul:not(.chosen-choices):not(.chosen-results) > li:hover {
    background: #F6F4EF;
}

#lican-filtros ul li label,
#lican-filtros ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    flex: 1;
    font-size: 14px;
    color: #0D3F5F;
    text-decoration: none;
    line-height: 1.3;
    margin: 0 !important;
    padding: 0 !important;
}

#lican-filtros ul li span:not(.count):not(.item-count) {
    display: inline-flex;
    align-items: center;
}

#lican-filtros input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    border: 1.5px solid #C4C4C4;
    border-radius: 4px;
    margin: 0 !important;
    position: relative;
    cursor: pointer;
}

#lican-filtros input[type="checkbox"]:checked {
    background: #C9A96E;
    border-color: #C9A96E;
}

#lican-filtros input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #0D3F5F;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#lican-filtros ul li:has(input[type="checkbox"]:checked) {
    background: #FBF7EF;
}
#lican-filtros ul li:has(input[type="checkbox"]:checked) label,
#lican-filtros ul li:has(input[type="checkbox"]:checked) a {
    font-weight: 500;
}

#lican-filtros .lican-search-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #0c0c0c !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 20px 0 !important;
    margin: 0 !important;
    display: block;
    line-height: 1.2 !important;
}

#lican-filtros .lican-search-label + input[type="text"] {
    margin-top: 2px !important;
}

#lican-filtros .count,
#lican-filtros .item-count,
#lican-filtros ul li > span:last-child {
    font-size: 12px !important;
    color: #8A8A8A !important;
    background: #F1F1F1;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 400 !important;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

#lican-filtros ul li.is-empty {
    opacity: 0.45;
    pointer-events: none;
}

.woof_search_is_going nav.woocommerce-breadcrumb {
    display: block !important;
}

#lican-titulo .elementor-shortcode {
    font-size: 34px !important;
    font-weight: 500 !important;
    color: #0D3F5F !important;
    line-height: 1.3 !important;
    margin: 0 0 20px !important;
}

#lican-filtros ul.product_list_widget {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 20px !important;
}

#lican-filtros ul.product_list_widget li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #F0F0F0;
}

#lican-filtros ul.product_list_widget li:last-child {
    border-bottom: none;
}

#lican-filtros ul.product_list_widget li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #0D3F5F !important;
    text-decoration: none !important;
    min-width: 0;
}

#lican-filtros ul.product_list_widget li a img {
    position: static !important;
    top: auto !important;
    transform: none !important;
    width: 48px !important;
    height: 48px !important;
    object-fit: contain !important;
    flex-shrink: 0;
    margin: 0 !important;
}

#lican-filtros .widget-woof-recently-viewed ul.product_list_widget,
#lican-filtros ul.product_list_widget.product_list_widget {
    padding: 16px 20px !important;
}

#lican-filtros ul.product_list_widget li a .product-title {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
}
.lican-category-description {
    color: #6B6B6B !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.lican-category-description p {
    margin: 0 !important;
}
/* ============================================================
   CHOSEN EN MODO MULTI-SELECT (Brands con selección múltiple)
   ============================================================ */

#lican-filtros .chosen-container-multi {
    width: calc(100% - 40px) !important;
    margin: 0 20px 12px !important;
}

#lican-filtros .chosen-choices {
    border: 1px solid #D8D8D8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 32px 0 10px !important;
    min-height: 38px !important;
    height: 38px !important;
    overflow-y: auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
    position: relative;
}

#lican-filtros .chosen-choices::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230D3F5F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
}

#lican-filtros .chosen-choices .search-choice {
    background: #FBF3E3 !important;
    border: 1px solid #C9A96E !important;
    color: #0D3F5F !important;
    border-radius: 20px !important;
    padding: 4px 26px 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    position: relative;
    margin: 0 !important;
    line-height: 1.4 !important;
}

#lican-filtros .chosen-choices .search-choice-close {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%);
}

#lican-filtros .chosen-choices .search-field input {
    font-size: 14px !important;
    color: #0D3F5F !important;
    height: 28px !important;
    padding: 0 4px !important;
}

#lican-filtros .chosen-choices .search-field input::placeholder {
    color: #9A9A9A !important;
}

#lican-filtros .chosen-choices li.search-field {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    cursor: text !important;
    flex: 1 1 auto;
    height: 28px !important;
    line-height: 28px !important;
}

#lican-filtros .chosen-choices li.search-field:hover {
    background: none !important;
}

#lican-filtros .chosen-choices li.search-field input,
#lican-filtros .chosen-choices .search-field input::placeholder {
    color: #0D3F5F !important;
}

#lican-filtros .chosen-choices .search-field input {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
/* ============================================================
   GRID DE PRODUCTOS - TARJETAS ESTANDARIZADAS
   ============================================================ */

ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    padding: 12px !important;
    border: 1px solid #EEEEEE;
    border-radius: 10px;
    transition: border-color 0.15s ease;
}

ul.products li.product:hover {
    border-color: #C9A96E;
}

ul.products li.product img {
    height: 140px !important;
    width: 100% !important;
    object-fit: contain !important;
    margin-bottom: 10px !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 0 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

ul.products li.product .posted_in,
ul.products li.product .product-category {
    font-size: 12px !important;
    color: #8A8A8A !important;
    margin: 0 0 10px !important;
}

ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.button {
    margin-top: auto !important;
}

@media (max-width: 480px) {
    ul.products li.product img {
        height: 110px !important;
    }
}

ul.products li.product .add_to_cart_button.ajax_add_to_cart,
ul.products li.product a[data-tip] {
    display: none !important;
}

ul.products li.product .button,
ul.products li.product a.add_to_cart_button,
ul.products li.product a.button {
    border-radius: 6px !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}
/* ============================================================
   ARCHIVE DESCRIPTION - texto de categoría junto al título
   ============================================================ */
.elementor-widget-woocommerce-archive-description p,
.elementor-widget-theme-archive-description p {
    color: #6B6B6B !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.lican-category-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
    display: block;
    border-radius: 12px;
    margin: 0 0 24px !important;
}

@media (max-width: 768px) {
    .lican-category-image {
        height: 160px !important;
    }
}
ul.products li.product .add-request-quote-button {
    background: #0D3F5F !important;
    color: #ffffff !important;
    border: none !important;
}
ul.products li.product img[src*="ajax-loader"] {
    width: 24px !important;
    height: 24px !important;
    margin: 8px auto !important;
    display: block !important;
}
/* ============================================================
   ESTADO POST-CLICK DE "ADD TO QUOTE"
   ============================================================ */

.yith_ywraq_add_item_product_message {
    background: #F3F8F1 !important;
    border: 1px solid #8BAE7A !important;
    border-radius: 6px !important;
    padding: 10px 12px 10px 34px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2F4A24 !important;
    position: relative;
    margin-top: 8px !important;
}

.yith_ywraq_add_item_product_message::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #5C8A47 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%23fff' d='M3.5 6.5L0.5 3.5l1-1L3.5 4.5 8.5 -0.5l1 1z'/%3E%3C/svg%3E") no-repeat center;
}

.yith_ywraq_add_item_response_message {
    background: #FBF7EF !important;
    border: 1px solid #C9A96E !important;
    border-radius: 6px !important;
    padding: 10px 12px 10px 34px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0D3F5F !important;
    position: relative;
    margin-top: 8px !important;
}

.yith_ywraq_add_item_response_message::before {
    content: "i";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #C9A96E;
    color: #0D3F5F;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    text-align: center;
    line-height: 16px;
}

.yith_ywraq_add_item_browse_message {
    margin-top: 4px !important;
}
.yith_ywraq_add_item_browse_message a {
    font-size: 12px !important;
    color: #0D3F5F !important;
    text-decoration: underline !important;
}

.lican-remove-link {
    display: block !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #A94442 !important;
    text-decoration: none !important;
    cursor: pointer;
}
.lican-remove-link:hover {
    text-decoration: underline !important;
}
/* ============================================================
   FILTROS EN MOBILE: panel deslizante (off-canvas)
   ============================================================ */
@media (max-width: 768px) {

    #lican-filtros {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 999995;
        border-radius: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    #lican-filtros.lican-filtros-open {
        left: 0;
    }

    #lican-filtros-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999990;
        display: none;
        cursor: pointer;
    }
    #lican-filtros-overlay.open {
        display: block;
    }

    #lican-filtros-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999980;
        background: #0D3F5F;
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 12px 20px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        cursor: pointer;
    }

    #lican-filtros .woof {
        display: block !important;
    }

    #lican-filtros .woof_show_mobile_filter {
        display: none !important;
    }

    #lican-filtros-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 50%;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        position: absolute;
        top: 12px;
        right: 12px;
    }
}
@media (max-width: 767px) {
    .woocommerce-product-gallery {
        margin-bottom: 0 !important;
    }
}
@media (min-width: 768px) {
    #lican-filtros-close {
        display: none !important;
    }
}
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image a {
    display: block !important;
    height: 400px !important;
    overflow: hidden !important;
}

.elementor-widget-woocommerce-product-images .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
@media (min-width: 1024px){
#lican-filtros-btn {
	display:none;
}}

/* ─── ASTRA INTERFERENCE ─── */
.astra-megamenu { display: none !important; }
/* ============================================================
   YITH REQUEST A QUOTE - Overrides de alta especificidad
   ============================================================ */

.ywraq_number_items a {
    color: #ffffff !important;
}
.ywraq_number_items a,
.ywraq_number_items span {
    color: white;
}

html body .yith-ywraq-add-to-quote a.add-request-quote-button.button {
    background-color: rgb(13, 63, 95) !important;
    border: 1px solid rgb(13, 63, 95) !important;
    color: #ffffff !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

html body .yith-ywraq-add-to-quote a.add-request-quote-button.button:hover {
    background-color: rgb(26, 125, 171) !important;
    border: 1px solid rgb(13, 63, 95) !important;
    color: #ffffff !important;
}
/* ============================================================
 * LICAN TRADE - Estilo de los datos rápidos (Tipo/Size/SKU/GTIN)
 * ============================================================ */
.woocommerce-js ul.products li.product ul.lican-card-meta {
    list-style: none;
    margin: 8px 0 10px 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5A6B7A;
}

.lican-card-meta-item {
    display: block;
}

.lican-card-meta-label {
    font-weight: 600;
    color: #0D3F5F;
}

.lican-card-meta-value {
    font-weight: 400;
}
/* ============================================================
 * LICAN TRADE - Restyle página "Request a Quote" (BLOQUE COMPLETO)
 * Estructura real (confirmada con diagnósticos en consola):
 * .lican-quote-page > .lican-quote-header + .lican-quote-columns + .lican-quote-trust
 * .lican-quote-columns > #yith-ywraq-form (tabla) + #ywraq-other-form (form CF7)
 * ============================================================ */

.lican-quote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lican-quote-title {
    font-size: 26px;
    font-weight: 600;
    color: #0D3F5F;
    margin: 0;
}

.lican-quote-return-btn {
    background: #29ABE2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.lican-quote-return-btn:hover {
    background: #1A7DAB !important;
}

.ywraq-before-form .return_to_shop_url,
.ywraq-before-form .yith-ywraq-before-table-wc-backward {
    display: none !important;
}

.lican-quote-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.lican-quote-columns #yith-ywraq-form {
    flex: 1.4 1 0;
    min-width: 320px;
    background: #ffffff;
    border: 0.5px solid #E3E6E8;
    border-radius: 12px;
    padding: 16px;
}

.lican-quote-columns #ywraq-other-form {
    flex: 1 1 0;
    min-width: 280px;
    background: #ffffff;
    border: 0.5px solid #E3E6E8;
    border-radius: 12px;
    padding: 20px;
}

#yith-ywrq-table-list thead th {
    background: #F7F8FA;
    color: #0D3F5F;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 10px;
    border-bottom: 1px solid #E3E6E8;
}

#yith-ywrq-table-list tbody tr {
    border-bottom: 1px solid #F1EFE8;
}

#yith-ywrq-table-list tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}

.lican-quote-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0D3F5F;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 20px;
}

.lican-quote-trust-icon {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #7ACFE8;
}

.lican-quote-trust .lican-quote-trust-text {
    font-size: 12px;
    color: #7ACFE8;
    line-height: 1.5;
    margin: 0;
}

.lican-form-subtitle {
    font-size: 13px;
    color: #5A6B7A;
    margin: -4px 0 16px 0;
}

#ywraq-other-form .ywraq-form-title {
    color: #0D3F5F;
    font-weight: 600;
    margin-top: 0;
}

#ywraq-other-form .lican-cf7-row {
    margin-bottom: 14px;
}

#ywraq-other-form .wpcf7-form-control:not([type="radio"]):not([type="checkbox"]):not([type="submit"]) {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D7DCE1;
    border-radius: 8px;
    font-size: 13px;
    color: #0D3F5F;
    background: #ffffff;
    box-sizing: border-box;
}

#ywraq-other-form .wpcf7-form-control:focus {
    outline: none;
    border-color: #29ABE2;
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}

#ywraq-other-form .wpcf7-form-control::placeholder {
    color: #9AA5AC;
}

#ywraq-other-form .lican-cf7-row-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

#ywraq-other-form .lican-cf7-row-phone {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

#ywraq-other-form .lican-cf7-row > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0D3F5F;
    margin-bottom: 8px;
}

#ywraq-other-form .wpcf7-radio,
#ywraq-other-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

#ywraq-other-form .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

#ywraq-other-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0D3F5F;
    font-weight: 400;
    cursor: pointer;
}

#ywraq-other-form .wpcf7-list-item input[type="radio"],
#ywraq-other-form .wpcf7-list-item input[type="checkbox"] {
    accent-color: #29ABE2;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

#ywraq-other-form input[type="submit"] {
    background: #F5A623 !important;
    color: #412402 !important;
    border: none !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 24px;
    width: 100%;
}

#ywraq-other-form input[type="submit"]:hover {
    background: #d88e14 !important;
}

#ywraq-other-form .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #A32D2D;
    margin-top: 4px;
}

#ywraq-other-form .wpcf7-response-output {
    border-radius: 8px;
    font-size: 12px;
    padding: 10px 14px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    #ywraq-other-form .lican-cf7-row-3col,
    #ywraq-other-form .lican-cf7-row-phone {
        grid-template-columns: 1fr;
    }
}

#ywraq-other-form div.lican-step-indicator {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto !important;
}

#ywraq-other-form .lican-step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D7DCE1;
    padding: 0;
    display: inline-block;
}

#ywraq-other-form .lican-step-dot.active {
    background: #29ABE2;
    width: 18px;
    border-radius: 3px;
}

#ywraq-other-form .lican-step-dot.completed {
    background: #7ACFE8;
}

#ywraq-other-form .lican-step-nav {
    gap: 12px;
    margin-top: 25px;
}

#ywraq-other-form .lican-step[data-step="4"] .lican-step-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#ywraq-other-form .lican-step[data-step="4"] .lican-step-back {
    order: 2;
}

#ywraq-other-form .lican-step[data-step="4"] input[type="submit"] {
    order: 1;
}

#ywraq-other-form .lican-step[data-step="5"] .lican-step-nav {
    margin-top: 20px !important;
}

#ywraq-other-form input.wpcf7-submit.has-spinner {
    margin-top: 8px !important;
}

/* CSS GRID STACK: técnica única para mostrar 1 paso a la vez sin
   saltos de altura. ÚNICA regla de visibilidad de pasos. */
#ywraq-other-form form.wpcf7-form {
    display: grid;
}

#ywraq-other-form .lican-step {
    grid-area: 1 / 1;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

#ywraq-other-form .lican-step.active {
    visibility: visible;
    pointer-events: auto;
}

#ywraq-other-form .lican-field-invalid {
    border-color: #A32D2D !important;
    background: #FCEBEB !important;
}

.lican-quote-page ~ .entry-header .entry-title,
body:has(.lican-quote-page) .entry-header .entry-title {
    display: none;
}

/* ============================================================
 * LICAN TRADE - Página "/all-categories/" (Intermediary Category Page)
 * Cada categoría padre con su círculo + nombre + subcategorías
 * reales debajo, organizadas en columnas CSS prolijas (en vez de
 * un grid/flex irregular que dejaba espaciados inconsistentes
 * según cuántas palabras tenía cada nombre de subcategoría).
 * ============================================================ */
.lican-all-cats {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0;
}

.lican-all-cats__block {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 28px 24px;
    border-radius: 12px;
    transition: background 0.15s ease;
}

.lican-all-cats__block:nth-child(even) {
    background: #F7F8FA;
}

.lican-all-cats__parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    width: 110px;
}

.lican-all-cats__circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #E8ECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(13, 63, 95, 0.12);
}

.lican-all-cats__circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lican-all-cats__circle--placeholder {
    background: #0D3F5F;
}

.lican-all-cats__name {
    font-size: 14px;
    font-weight: 600;
    color: #0D3F5F;
    text-align: center;
    line-height: 1.3;
}

/* Chips/píldoras para cada subcategoría, en vez de una lista de
   texto plano con columnas - más punch visual, con flecha celeste
   que da dirección y un fondo que contrasta con el bloque para
   que se lean como "botones", no como texto de párrafo. */
.lican-all-cats__sublist {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lican-all-cats__sublist li {
    margin: 0;
}

.lican-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0D3F5F;
    background: #ffffff;
    border: 0.5px solid #E3E6E8;
    padding: 7px 14px 7px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.lican-cat-chip::before {
    content: "›";
    color: #29ABE2;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.lican-cat-chip:hover {
    border-color: #29ABE2;
    background: #E6F1FB;
}

/* En los bloques con fondo gris (filas pares), los chips pasan a
   blanco para seguir contrastando contra su propio fondo */
.lican-all-cats__block:nth-child(even) .lican-cat-chip {
    background: #F7F8FA;
}
.lican-all-cats__block:nth-child(even) .lican-cat-chip:hover {
    background: #E6F1FB;
}

/* Mobile: círculo arriba, chips centrados debajo */
@media (max-width: 600px) {
    .lican-all-cats__block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 24px 16px;
    }
    .lican-all-cats__sublist {
        justify-content: center;
    }
}

/* ============================================================
 * LICAN TRADE - Estilo del dropdown de sugerencias de FiboSearch
 * Estructura real confirmada por inspección:
 * .dgwt-wcas-suggestions-wrapp > a.dgwt-wcas-suggestion-product
 *   > .dgwt-wcas-si (imagen) + .dgwt-wcas-content-wrapp
 *     > .dgwt-wcas-st-title / .dgwt-wcas-sku / .dgwt-wcas-sd
 * ============================================================ */

/* Contenedor del dropdown: bordes redondeados + sombra para que
   se sienta como una tarjeta flotante, no una caja blanca dura
   pegada abajo del buscador */
.dgwt-wcas-suggestions-wrapp {
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(13, 63, 95, 0.18) !important;
    border: 1px solid #E3E6E8 !important;
    overflow: hidden;
    padding: 6px !important;
}

/* Cada sugerencia de producto */
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-product {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 10px !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

/* Estado hover/seleccionado (con teclado): fondo celeste suave
   en vez del gris genérico que trae por default */
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-product:hover,
.dgwt-wcas-suggestion.dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected {
    background: #E6F1FB !important;
}

/* Imagen del producto: recuadro chico con esquinas redondeadas */
.dgwt-wcas-si {
    flex-shrink: 0;
}
.dgwt-wcas-si img {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #EFEFEF;
    background: #fff;
}

/* Título del producto */
.dgwt-wcas-st-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0D3F5F;
    line-height: 1.35;
    margin-bottom: 2px;
}

/* SKU: en gris, menos protagonismo que el título */
.dgwt-wcas-sku {
    display: block;
    font-size: 11px;
    color: #8A8A8A;
    margin-bottom: 2px;
}
.dgwt-wcas-sku strong {
    color: #5A6B7A;
    font-weight: 600;
}

/* Descripción corta: texto más chico y apagado */
.dgwt-wcas-sd {
    display: block;
    font-size: 11px;
    color: #9AA5AC;
    line-height: 1.4;
}