:root{
  --hbfs-blue:#003b63;
  --hbfs-pink:#e6005c;
  --hbfs-soft:#f6f8fb;
  --hbfs-border:#e4e9ef;
  --hbfs-muted:#9aa3b1;
}

/* Header: Logo | buscador flexible | menu, usando las clases ya aplicadas en Elementor. */
.header-main-row{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:14px;width:100%}
.header-logo{flex:0 0 auto!important;width:auto!important;min-width:0!important}
.header-search{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
.header-search .dgwt-wcas-search-wrapp,.header-search .dgwt-wcas-search-form,.header-search .dgwt-wcas-search-input{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.header-search .dgwt-wcas-search-wrapp{max-width:none!important}
.header-menu-mobile{flex:0 0 58px!important;width:58px!important;min-width:58px!important;max-width:58px!important;position:relative;z-index:10}

/* Tipografia */
.dgwt-wcas-search-wrapp,.dgwt-wcas-search-wrapp *,.dgwt-wcas-suggestions-wrapp,.dgwt-wcas-suggestions-wrapp *,.dgwt-wcas-details-wrapp,.dgwt-wcas-details-wrapp *{font-family:inherit!important}
.dgwt-wcas-search-input{color:var(--hbfs-blue)!important;font-weight:500!important}
.dgwt-wcas-search-input::placeholder{color:#8a8f98!important;opacity:1!important}

/* Dos paneles como una sola pieza visual. */
.dgwt-wcas-suggestions-wrapp{background:#fff!important;border:1px solid var(--hbfs-border)!important;border-right:0!important;border-radius:0 0 0 16px!important;box-shadow:-8px 16px 32px rgba(0,59,99,.08)!important}
.dgwt-wcas-details-wrapp{background:#fff!important;border:1px solid var(--hbfs-border)!important;border-radius:0 16px 16px 0!important;box-shadow:8px 16px 32px rgba(0,59,99,.08)!important;color:var(--hbfs-blue)!important}

/* Encabezados */
.dgwt-wcas-suggestion-headline,.dgwt-wcas-suggestion-headline span{color:var(--hbfs-blue)!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.dgwt-wcas-datails-title,.dgwt-wcas-details-title-tax{color:var(--hbfs-blue)!important;font-weight:800!important}

/* Resultados */
.dgwt-wcas-suggestion,.dgwt-wcas-suggestion *,.dgwt-wcas-suggestion a,.dgwt-wcas-details-wrapp a{cursor:pointer!important}
.dgwt-wcas-suggestion{color:var(--hbfs-blue)!important;transition:background-color .18s ease,color .18s ease}
.dgwt-wcas-suggestion:hover,.dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected{background:var(--hbfs-soft)!important}
.dgwt-wcas-st-title,.dgwt-wcas-st-title a,.dgwt-wcas-product-title,.dgwt-wcas-product-title a{color:var(--hbfs-blue)!important;font-weight:800!important;line-height:1.25!important;text-decoration:none!important}
.dgwt-wcas-st-title strong,.dgwt-wcas-product-title strong,.dgwt-wcas-suggestion strong{color:var(--hbfs-pink)!important;font-weight:800!important}
.dgwt-wcas-st-desc,.dgwt-wcas-st-breadcrumbs,.dgwt-wcas-suggestion .dgwt-wcas-st-desc{color:#8f98a6!important;font-size:11px!important;font-weight:500!important;line-height:1.3!important}
.dgwt-wcas-pd-price,.dgwt-wcas-tpd-price,.dgwt-wcas-sp{display:none!important}

/* Rejilla de productos dentro del detalle de categoria. */
.dgwt-wcas-products-in-cat{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-content:start!important}
.dgwt-wcas-products-in-cat>.dgwt-wcas-datails-title{grid-column:1/-1!important;display:block!important;margin:0 0 4px!important}
.dgwt-wcas-details-more-products{grid-column:1/-1!important;color:var(--hbfs-pink)!important;font-weight:800!important;text-decoration:none!important}
.hbfs-term-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;padding:10px!important;background:#fff!important;border:1.5px solid var(--hbfs-blue)!important;border-radius:16px!important;text-decoration:none!important;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important}
.hbfs-term-card:hover{transform:translateY(-2px);border-color:var(--hbfs-pink)!important;box-shadow:0 10px 22px rgba(0,59,99,.12)!important}
.hbfs-term-card__media{display:flex!important;align-items:center!important;justify-content:center!important;aspect-ratio:4/5!important;overflow:hidden!important;background:#fff!important;border-radius:12px!important}
.hbfs-term-card__media img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
.hbfs-term-card__title{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin-top:9px!important;color:var(--hbfs-blue)!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;text-align:center!important;text-transform:uppercase!important}

/* Ficha de producto estilo portada HB. */
.hbfs-card-wrap{padding:16px!important}
.hbfs-product-card{overflow:hidden!important;background:#fff!important;border:1.5px solid var(--hbfs-blue)!important;border-radius:20px!important;box-shadow:none!important}
.hbfs-product-card__media{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;aspect-ratio:4/5!important;padding:14px!important;background:#fff!important;text-decoration:none!important}
.hbfs-product-card__media img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.hbfs-product-card__body{display:flex!important;flex-direction:column!important;gap:12px!important;padding:16px!important;border-top:1px solid var(--hbfs-border)!important}
.hbfs-product-card__title{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;color:var(--hbfs-blue)!important;font-size:18px!important;font-weight:800!important;line-height:1.2!important;text-decoration:none!important;text-transform:uppercase!important}
.hbfs-product-card__sku{color:var(--hbfs-muted)!important;font-size:11px!important;font-weight:700!important}
.hbfs-product-card__desc{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;overflow:hidden!important;color:var(--hbfs-blue)!important;font-size:13px!important;line-height:1.55!important}
.hbfs-product-card__attributes{display:flex!important;flex-direction:column!important;gap:5px!important;color:var(--hbfs-blue)!important;font-size:12px!important}
.hbfs-product-card__button{align-self:center!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;padding:9px 24px!important;background:var(--hbfs-pink)!important;color:#fff!important;border-radius:999px!important;font-size:14px!important;font-weight:700!important;text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease!important}
.hbfs-product-card__button:hover{color:#fff!important;transform:translateY(-1px);box-shadow:0 8px 18px rgba(230,0,92,.2)!important}

/* Tablet */
@media (max-width:1024px){
  .header-main-row{gap:12px}
  .header-logo{flex:0 0 190px!important;width:190px!important;max-width:190px!important}
  .header-menu-mobile{flex-basis:56px!important;width:56px!important;min-width:56px!important;max-width:56px!important}
  .dgwt-wcas-products-in-cat{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mobile: una sola fila en header y Fibo mantiene su overlay mobile. */
@media (max-width:767px){
  .header-main-row{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;width:100%!important}
  .header-logo{flex:0 0 125px!important;width:125px!important;max-width:125px!important;min-width:125px!important}
  .header-logo img{width:100%!important;height:auto!important;max-width:125px!important}
  .header-search{flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
  .header-menu-mobile{flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important}
  .header-search .dgwt-wcas-search-input{font-size:13px!important;padding-left:38px!important;padding-right:10px!important}
  .dgwt-wcas-suggestions-wrapp,.dgwt-wcas-details-wrapp{border:1px solid var(--hbfs-border)!important;border-radius:14px!important;box-shadow:0 14px 30px rgba(0,59,99,.10)!important}
  .dgwt-wcas-products-in-cat{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .hbfs-card-wrap{padding:12px!important}
  .hbfs-product-card__title{font-size:15px!important}
}

@media (max-width:430px){
  .header-main-row{gap:6px!important}
  .header-logo{flex:0 0 110px!important;width:110px!important;max-width:110px!important;min-width:110px!important}
  .header-logo img{max-width:110px!important}
  .header-menu-mobile{flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important}
  .header-search .dgwt-wcas-search-input{font-size:12px!important;padding-left:34px!important;padding-right:8px!important}
  .dgwt-wcas-products-in-cat{grid-template-columns:1fr 1fr!important}
}


/* v1.0.2: titulos completos realmente bold y portada simplificada/centrada. */
.dgwt-wcas-st-title,
.dgwt-wcas-st-title *,
.dgwt-wcas-st-title a,
.dgwt-wcas-st-title a *,
.dgwt-wcas-product-title,
.dgwt-wcas-product-title *,
.dgwt-wcas-product-title a,
.dgwt-wcas-product-title a *{
  font-weight:900!important;
}
.dgwt-wcas-st-title strong,
.dgwt-wcas-product-title strong,
.dgwt-wcas-suggestion strong{
  font-weight:900!important;
}
.hbfs-product-card__body{
  align-items:center!important;
  text-align:center!important;
  gap:14px!important;
}
.hbfs-product-card__title{
  width:100%!important;
  text-align:center!important;
  font-weight:900!important;
  margin:0 auto!important;
}
.hbfs-product-card__button{
  margin:0 auto!important;
}
.hbfs-product-card__desc,
.hbfs-product-card__sku,
.hbfs-product-card__attributes{
  display:none!important;
}


/* v1.0.3: FiboSearch imprime las categorias directamente dentro de .dgwt-wcas-st,
   no dentro de .dgwt-wcas-st-title. Forzamos el peso completo de la categoria. */
.dgwt-wcas-suggestion-tax .dgwt-wcas-st,
.dgwt-wcas-suggestion-cat .dgwt-wcas-st{
  color:var(--hbfs-blue)!important;
  font-weight:900!important;
  line-height:1.25!important;
  text-decoration:none!important;
}
.dgwt-wcas-suggestion-tax .dgwt-wcas-st > :not(.dgwt-wcas-st-breadcrumbs),
.dgwt-wcas-suggestion-cat .dgwt-wcas-st > :not(.dgwt-wcas-st-breadcrumbs){
  font-weight:900!important;
}
.dgwt-wcas-suggestion-tax .dgwt-wcas-st strong,
.dgwt-wcas-suggestion-cat .dgwt-wcas-st strong{
  color:var(--hbfs-pink)!important;
  font-weight:900!important;
}
.dgwt-wcas-suggestion-tax .dgwt-wcas-st-breadcrumbs,
.dgwt-wcas-suggestion-cat .dgwt-wcas-st-breadcrumbs,
.dgwt-wcas-suggestion-tax .dgwt-wcas-st-breadcrumbs *,
.dgwt-wcas-suggestion-cat .dgwt-wcas-st-breadcrumbs *{
  color:#8f98a6!important;
  font-weight:500!important;
}


/* v1.0.4: portada mas compacta y texto del buscador mas legible. */
.dgwt-wcas-search-input{
  font-size:16px!important;
  line-height:1.3!important;
}

/* Quitar divisor visual entre imagen y titulo. */
.hbfs-product-card__body{
  border-top:0!important;
  padding-top:10px!important;
}

/* Reducir altura/aire de la imagen manteniendo la proporcion de portada. */
.hbfs-product-card__media{
  aspect-ratio:1/1!important;
  padding:10px 14px 4px!important;
}

.hbfs-product-card__title{
  margin-top:0!important;
  margin-bottom:0!important;
}

@media (max-width:767px){
  .header-search .dgwt-wcas-search-input,
  .dgwt-wcas-search-input{
    font-size:15px!important;
  }
}

@media (max-width:430px){
  .header-search .dgwt-wcas-search-input,
  .dgwt-wcas-search-input{
    font-size:14px!important;
  }
}


/* v1.0.5: busqueda y visualizacion de SKU en resultados. */
.dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
  display:block!important;
  width:100%!important;
  margin-right:0!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-sku{
  display:block!important;
  width:100%!important;
  margin-top:4px!important;
  color:var(--hbfs-muted)!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-sku strong{
  color:var(--hbfs-pink)!important;
  font-weight:900!important;
}
@media (max-width:767px){
  .dgwt-wcas-suggestion-product .dgwt-wcas-sku{
    font-size:10.5px!important;
  }
}


/* v1.0.18: encabezado de resultados realmente compacto. */
body.search.search-results h1,
body.search h1,
body.search .elementor-widget-theme-post-title .elementor-heading-title,
body.search .page-header .entry-title,
body.search .entry-title,
body.search .page-title{
  font-size:18px!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
body.search.search-results h1 *,
body.search h1 *,
body.search .elementor-widget-theme-post-title .elementor-heading-title *,
body.search .page-header .entry-title *,
body.search .entry-title *,
body.search .page-title *{
  font-size:inherit!important;
  line-height:inherit!important;
}
@media (max-width:767px){
  body.search.search-results h1,
  body.search h1,
  body.search .elementor-widget-theme-post-title .elementor-heading-title,
  body.search .page-header .entry-title,
  body.search .entry-title,
  body.search .page-title{
    font-size:16px!important;
  }
}


/* v1.0.20: resultados con mas aire y miniaturas legibles. */
.dgwt-wcas-suggestion-product{
  min-height:102px!important;
  padding-top:8px!important;
  padding-bottom:8px!important;
  align-items:center!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-si{
  width:86px!important;
  min-width:86px!important;
  max-width:86px!important;
  height:86px!important;
  min-height:86px!important;
  max-height:86px!important;
  flex:0 0 86px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin-right:14px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-si img{
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  display:block!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-st{
  flex:1 1 auto!important;
  min-width:0!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
  font-size:15px!important;
  line-height:1.3!important;
}
.dgwt-wcas-suggestion-product .dgwt-wcas-sku{
  margin-top:6px!important;
  font-size:12px!important;
}

/* Escritorio: recupera la composicion amplia anterior. */
@media (min-width:1025px){
  .dgwt-wcas-suggestions-wrapp{
    width:700px!important;
    max-width:700px!important;
  }
  .dgwt-wcas-details-wrapp{
    width:360px!important;
    max-width:360px!important;
  }
}

/* Tablet: un poco mas grande que desktop para conservar lectura tactil. */
@media (min-width:768px) and (max-width:1024px){
  .dgwt-wcas-suggestion-product{
    min-height:108px!important;
  }
  .dgwt-wcas-suggestion-product .dgwt-wcas-si{
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    height:92px!important;
    min-height:92px!important;
    max-height:92px!important;
    flex-basis:92px!important;
  }
  .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
    font-size:14px!important;
  }
}

@media (max-width:767px){
  .dgwt-wcas-suggestion-product{
    min-height:116px!important;
  }
  .dgwt-wcas-suggestion-product .dgwt-wcas-si{
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:100px!important;
    min-height:100px!important;
    max-height:100px!important;
    flex-basis:100px!important;
  }
}

@media (max-width:430px){
  .dgwt-wcas-suggestion-product{
    min-height:112px!important;
  }
  .dgwt-wcas-suggestion-product .dgwt-wcas-si{
    margin-right:10px!important;
  }
  .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
    font-size:13px!important;
  }
}


/* v1.0.22: grilla real para PRODUCTOS del panel izquierdo. FiboSearch no crea
   un wrapper propio para este grupo, por eso JS agrupa solo los items producto. */
.hbfs-left-product-grid{
  width:100%!important;
  box-sizing:border-box!important;
}

@media (min-width:768px){
  .hbfs-left-product-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 14px!important;
    padding:8px 12px 12px!important;
    align-items:stretch!important;
  }
  .hbfs-left-product-grid > .dgwt-wcas-suggestion-product{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:8px!important;
    box-sizing:border-box!important;
  }
  .hbfs-left-product-grid > .dgwt-wcas-suggestion-product .dgwt-wcas-si{
    margin-right:12px!important;
  }
  .hbfs-left-product-grid > .dgwt-wcas-suggestion-product .dgwt-wcas-st-title{
    font-size:14px!important;
    line-height:1.25!important;
  }
}

@media (max-width:767px){
  .hbfs-left-product-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    padding:6px 8px 10px!important;
  }
  .hbfs-left-product-grid > .dgwt-wcas-suggestion-product{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }
}

/* Oculta el enlace al listado completo solo en el panel izquierdo. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more-products,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more{
  display:none!important;
}


/* v1.0.23: miniaturas del panel izquierdo refinadas por breakpoint:
   86px desktop, 92px tablet y 100px mobile. */
