/* Phase22 home-safe extract from wp-custom-css. Woo/shop/checkout rules intentionally excluded. */
/* source lines 1-250 */

/* Fix overflow y ancho completo */
#primary.primary, #main.site-main, .entry-content{ overflow-x: visible !important; }
.swiper-container, .swiper{ overflow: hidden !important; }

/* --- RESPONSIVE: TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

    .ucn-search-pill{
    min-width: 180px !important;
    max-width: 260px !important;
  }
    .ucn-search-results{
    min-width: 320px !important;
    right: -60px !important;
    left: auto !important;
  }

}

/* --- RESPONSIVE: MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    .ucn-search-pill{
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
  }
    .ucn-search-results{
    position: fixed !important;
    top: 60px !important;
    left: 8px !important;
    right: 8px !important;
    min-width: auto !important;
    max-height: 70vh !important;
  }

}

/* --- RESPONSIVE: SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

    .ucn-search-pill{
    height: 34px !important;
    padding: 0 4px 0 10px !important;
  }
    .ucn-search-pill input{
    font-size: 13px !important;
  }

}

/* === FIX: Dropdowns visibles en header === */

/* === FIX: Buscador header (widget 5a49e5f) === */

/* === FIX: Iconos user/cart (84b0b3e, d6cc8f6) === */

/* === Responsive: search widget === */

/* === FIX CRITICO: Dropdown hover (uael- prefix mismatch) === */

/* Submenu styling */

/* === STICKY HEADER + SHADOW ON SCROLL === */

/* === SEARCH PILL === */
.ucn-search-pill{
  display: flex !important;
  align-items: center !important;
  background: #f5f5f5 !important;
  border-radius: 50px !important;
  padding: 0 6px 0 16px !important;
  height: 42px !important;
  min-width: 260px !important;
  max-width: 360px !important;
  position: relative !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}
.ucn-search-pill:focus-within{
  background: #fff !important;
  border-color: #cc0000 !important;
  box-shadow: 0 0 0 4px rgba(204,0,0,0.08) !important;
}
.ucn-search-pill .ucn-sp-icon{
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  color: #999 !important;
  margin-right: 10px !important;
}
.ucn-search-pill input{
  flex: 1 !important;
  border: none !important;
  background: none !important;
  outline: none !important;
  font-size: 14px !important;
  color: #333 !important;
  padding: 0 !important;
  height: 100% !important;
  font-family: inherit !important;
}
.ucn-search-pill input::placeholder{ color: #aaa !important; }
.ucn-search-pill .ucn-sp-mic{
  flex-shrink: 0 !important;
  width: 32px !important;
  height: 32px !important;
  border: none !important;
  background: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #999 !important;
  transition: all 0.2s !important;
  padding: 0 !important;
}
.ucn-search-pill .ucn-sp-mic:hover{ color: #cc0000 !important; background: rgba(204,0,0,0.06) !important; }
.ucn-search-pill .ucn-sp-mic.ucn-listening{ color: #cc0000 !important; animation: ucn-pulse 1s infinite !important; }
@keyframes ucn-pulse {
   0%, 100%{transform:scale(1)}   50%{transform:scale(1.15)}
}

/* === SEARCH RESULTS DROPDOWN === */
.ucn-search-results{
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  min-width: 400px !important;
  max-height: 480px !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
  z-index: 99999 !important;
  display: none !important;
  padding: 8px !important;
}
.ucn-search-results.ucn-visible{ display: block !important; }
.ucn-search-results .ucn-sr-item{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #333 !important;
  transition: background 0.15s !important;
}
.ucn-search-results .ucn-sr-item:hover{ background: #f8f8f8 !important; }
.ucn-sr-item img{
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  background: #f9f9f9 !important;
  flex-shrink: 0 !important;
}
.ucn-sr-info{ flex: 1 !important; min-width: 0 !important; }
.ucn-sr-name{
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #222 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
}
.ucn-sr-meta{
  font-size: 11px !important;
  color: #999 !important;
  margin-top: 2px !important;
}
.ucn-sr-price{
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #cc0000 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.ucn-sr-cat{
  display: inline-block !important;
  background: #f0f0f0 !important;
  color: #666 !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
  border-radius: 20px !important;
  margin-top: 3px !important;
}
.ucn-sr-empty{
  text-align: center !important;
  padding: 24px !important;
  color: #999 !important;
  font-size: 14px !important;
}
.ucn-sr-loading{
  text-align: center !important;
  padding: 20px !important;
  color: #aaa !important;
}
.ucn-sr-viewall{
  display: block !important;
  text-align: center !important;
  padding: 12px !important;
  color: #cc0000 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border-top: 1px solid #eee !important;
  margin-top: 4px !important;
}
.ucn-sr-viewall:hover{ background: #fafafa !important; }

/* === HIDE OLD SEARCH (replaced by pill) === */
.ucn-search-input, .ucn-v11-bar, #ucn-search-trigger{ display: none !important; }

/* === LAYOUT FIX: ast-container + overflow === */
.site-content .ast-container{
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html, body{ overflow-x: hidden !important; }

/* === ALINEACION GLOBAL - 1200px centrado === */

/* Hero: full width sin restriccion */

#colophon .ast-builder-grid-row-container{
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* source lines 273-305 */
/* === FIX doble pill en header-native.php (2026-04-16) === */
/* El outer .ucn-search-pill es solo wrapper estructural en el child theme nuevo. */
/* El pill visible debe ser .ucn-search-pill__field. Neutralizar legacy styles. */
.ucn-search-pill{
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
}
.ucn-search-pill:focus-within{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* === FIX width del pill inner = full wrapper (match homepage Next.js) === */
.ucn-search-pill__field{
  width: 100% !important;
  box-sizing: border-box !important;
  background: #f5f5f5 !important;
  border-radius: 9999px !important;
  height: 40px !important;
  padding: 0 16px !important;
  border: 0 !important;
}
.ucn-search-pill__field:focus-within{
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(204,0,0,0.15) !important;
}

/* source lines 771-866 */
/* === MOBILE HEADER: compact icon row (2026-04-17) === */
@media (max-width: 1023px) {

  /* Hide desktop-only UI */
    .ucn-nav-desktop{ display: none !important; }
    .ucn-search-pill{ display: none !important; }

  /* Show mobile search trigger */
    .ucn-search__mobile-trigger{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    background: transparent !important;
    color: #1a1a1a !important;
    padding: 0 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
  }
    .ucn-search__mobile-trigger:hover{ background: #f3f4f6 !important; }

  /* Show user icon on mobile */
    .ucn-action-btn--user{ display: inline-flex !important; }

  /* Navbar compact layout */
    .ucn-navbar__inner{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 12px !important;
    height: 64px !important;
  }
    .ucn-logo{
    flex-shrink: 0 !important;
    margin-right: auto !important;
  }
    .ucn-logo__img{
    width: 96px !important;
    height: auto !important;
  }
    .ucn-search{
    flex-shrink: 0 !important;
    width: auto !important;
    margin: 0 !important;
  }
    .ucn-actions{
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
  }
    .ucn-action-btn{
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #1a1a1a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    position: relative !important;
    cursor: pointer !important;
  }
    .ucn-action-btn:hover{ background: #f3f4f6 !important; }
    .ucn-action-btn .ucn-icon{ width: 20px !important; height: 20px !important; }
    .ucn-cart-badge{
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    line-height: 16px !important;
    padding: 0 4px !important;
    background: #cc0000 !important;
    color: #fff !important;
    border-radius: 999px !important;
    text-align: center !important;
    font-weight: 600 !important;
  }
    .ucn-cart-badge--hidden{ display: none !important; }

}

@media (max-width: 480px) {

    .ucn-navbar__inner{ padding: 0 8px !important; gap: 2px !important; }
    .ucn-logo__img{ width: 84px !important; }
    .ucn-action-btn, .ucn-search__mobile-trigger{ width: 34px !important; height: 34px !important; }

}

/* source lines 1066-1075 */
/* Force cuenta icon at any mobile size */
@media (max-width: 1024px) {

    a.ucn-action-btn.ucn-action-btn--user, .ucn-actions .ucn-action-btn--user{
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

}
