/*
Theme Name:   astra-child
Template:     astra
Version:      1.0.0
*/


/* HEADER */
/* 1. Header fijo */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;           /* Ajusta al color de tu header */
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: padding .25s ease, box-shadow .25s ease;
}

/* 2. Espacio para que el contenido no quede tapado */
body {
  padding-top: 110px;
}





/* Carrousel Padding Bottomy */
.elementor-element.elementor-pagination-position-outside .swiper {
  padding-bottom: 0 !important;
}



/* 3. Efecto “shrink” al hacer scroll
   — elimina esta parte si no lo quieres */
body.scrolled .site-header {
  padding: 10px 0 !important;  /* reduce altura */
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}



/* MIERDA MOVEDIZA */
.banda-scroll {
  width: 100vw;
  overflow: hidden;
  background-color: #111;
  color: #f9f9f9;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 999;
  white-space: nowrap;
}

.contenido-scroll {
  display: flex;
  width: calc(200% + 4rem); /* Ancho doble + espacio extra */
  animation: scroll-loop 24s linear infinite;
}

.texto-scroll {
  flex-shrink: 0;
  white-space: nowrap;
  padding-right: 4rem; /* Espacio visible entre bloques */
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 2rem)); /* Mover exacto al ancho del primer bloque */
  }
}

/* Mobile ajustes */
@media screen and (max-width: 768px) {
  .banda-scroll {
    font-size: 13px;
  }

  .contenido-scroll {
    animation-duration: 16s;
  }
}


/* Fix Astra paddings */
.ast-above-header-bar {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#masthead .ast-above-header .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  overflow: hidden;
}







 /* BARRA LATERAL */
/* Hace sticky la barra lateral */
#secondary .sidebar-main {
  position: sticky;
  top: 250px; /* Ajustalo según la altura de tu header */
  z-index: 10;
}

/* Espaciado vertical reducido entre categorías */
ul.product-categories li.cat-item {
  margin-bottom: 4px; /* podés bajarlo más si querés, por ejemplo 2px */
}

/* También reducimos padding interno si existe */
ul.product-categories li.cat-item a {
  padding: 2px 0;
  display: block;
  font-size: 14px; /* opcional: más compacto */
  line-height: 1.2;
}


/* padding excesivo en barra lateral */
/* Reduce espacio entre widgets en el sidebar */
#secondary .ast-woo-sidebar-widget.widget {
  margin-bottom: 15px;
  padding: 0;
}

/* Reduce margen entre títulos y contenido */
#secondary .widget-title,
#secondary h2,
#secondary h3 {
  margin-bottom: 8px;
}

/* Ajuste general del bloque de filtros */
.wp-block-woocommerce-product-filters,
.wp-block-woocommerce-filter-wrapper,
.wc-blocks-filter-wrapper,
.wp-block-woocommerce-product-filter-price,
.wp-block-woocommerce-attribute-filter,
.wp-block-woocommerce-product-filter-price-slider {
  padding: 0 !important;
  margin-bottom: 15px;
}

/* Reduce separación interna entre sliders, inputs y selects */
#secondary input[type="range"],
#secondary input[type="text"],
#secondary select,
#secondary .components-form-token-field__input {
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Compacta el botón "Filtrar productos" */
.wc-block-product-filters__open-overlay {
  padding: 6px 10px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* Reduce espacio debajo del botón aplicar */
.wc-block-product-filters__apply {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 14px;
}

/* Reduce margen entre secciones internas del overlay */
.wc-block-product-filters__overlay-content > div {
  margin-bottom: 15px;
}

#secondary .widget {
  margin-bottom: 20px !important;
}

#secondary {
  margin: 0 !important;
}

.ast-separate-container.ast-two-container #secondary .widget {
    padding: 0;
}

.widget-title {
  font-size: 1.5rem;
}






/* Permitir que el iframe en el popup ocupe bien el alto */
/* Eliminar márgenes de los p en popups */
.pum-content p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Asegurar que el p no limite la altura */
.pum-content p {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
}

/* Asegurar que el iframe dentro del popup se vea correctamente */
.pum-content iframe {
    display: block !important;
    width: 100% !important;
    height: 80vh !important;
    border: none !important;
}






.woocommerce-js ul.products li.product .woocommerce-loop-category__title, .woocommerce-page ul.products li.product .woocommerce-loop-category__title {
    bottom: -0.6em;
    font-size: 0.8em;
    border-radius: 10px;
}

/* imagen categoria */
.woocommerce-js ul.products li.product.product-category a img {
    border-radius: 19px;
}
/* imagen producto */
.woocommerce-js ul.products li.product a img {
    border-radius: 19px;
}

/* Titulo Producto */
h1, .entry-content h1 {
    font-size: 3.5rem;
    line-height: 0.6em;
}

    .woocommerce .woocommerce-ordering {
    margin-bottom: 0.5em;
}




/* quita mayusculas de la categoria */
.woocommerce-loop-category__title .count {
  text-transform: none !important;
}
