/* En caso de dudas, sigue la recomendacion en los archivos js*/
/*Checkout*/
.woocommerce-terms-and-conditions-wrapper {
  display: none !important;
}
#payment .wc_payment_method {
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: transparent;
  gap: 35px;
}
#payment .wc_payment_method label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: inline-block;
  margin-right: 55px;
  white-space: nowrap;
}
#payment .wc_payment_method img {
  max-width: 350px; 
  height: auto;
  object-fit: contain;
}

/*Producto de Archivo*/
.review-rating {
  margin-bottom: 1px !important;
  display: block !important;
  overflow: visible !important;
}
.star-rating {
  font-size: 15px !important;
  overflow: visible !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.star-rating::before {
  content: "★★★★★" !important;
  color: gold !important;
  letter-spacing: 0.5px !important;
  font-size: 13px !important;
}
.star-rating span::before {
  content: "★★★★★" !important;
  color: gold !important;
}
/* Asegura anclaje del badge dentro de la miniatura */
ul.products li.product .astra-shop-thumbnail-wrap { position: relative; }

/* Badge de oferta */
ul.products li.product .ast-onsale-card{
  background-color: #e60023 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 0 !important;
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  z-index: 10 !important;
  text-transform: none !important;
}

/* (Si existe) etiqueta de “sin stock” en el loop */
ul.products li.product .ast-shop-product-out-of-stock{
  background: #ff0000 !important;
  color: #fff !important;
}


/* Product template*/
.botom button{
background: linear-gradient(to right, #d4af37, #ffd700, #b8860b) !important;
color: #000 !important;
 box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}
.woocommerce-variation-availability .stock {
  visibility: hidden; opacity: 0;
  transition: opacity 0.2s ease, visibility 0s ease 0.2s;
}
.reset_variations{
  display: none !important;
}
.woocommerce-variation-availability .stock.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0s ease 0s;
	color: #Ff0000 !important;
}

/* Slider */
.premium-woo-products-carousel {
  margin-left: -15px;
}
.premium-woo-products-carousel .slick-track {
  margin-left: 15px;
}



/*header*/
/* === PANEL DEL MENÚ DESPLEGADO === */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  width: 80vw !important; /* más angosto */
  max-width: 380px !important;
  background: #f2e2c9 !important; /* color de fondo */
  border-top-right-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
  overflow: hidden !important;
  padding: 15px !important;
  box-shadow: 0 0 30px rgba(0,0,0,0.2) !important;
  transform: translateX(-100%) !important; /* escondido inicialmente */
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease !important;
}

/* Estado cuando el menú está abierto */
.ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

/* Overlay */
.ast-mobile-popup-overlay {
  background: rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(4px) !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.ast-mobile-popup-drawer.active + .ast-mobile-popup-overlay {
  opacity: 1 !important;
}

/* === ITEMS DEL MENÚ PRINCIPAL === */
.ast-builder-menu-mobile .menu-item > .menu-link {
  font-size: 15px !important;
  padding: 10px 6px !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  transition: all 0.2s ease !important;
}
.ast-builder-menu-mobile .menu-item > .menu-link:hover {
  padding-left: 12px !important;
  background: rgba(0,0,0,0.03) !important;
}

/* === SUBMENÚS === */
.ast-builder-menu-mobile .sub-menu .menu-link {
  font-size: 14px !important;
  padding: 8px 6px 8px 16px !important;
  color: #444 !important;
}
.ast-builder-menu-mobile .sub-menu .menu-link:hover {
  background: rgba(0,0,0,0.05) !important;
}

/* Flechas toggle submenús */
.ast-builder-menu-mobile .ast-menu-toggle {
  border-radius: 6px !important;
  background: rgba(0,0,0,0.04) !important;
}

/* === MENÚ INFORMATIVO DEL FINAL === */
.header-widget-area .widget_nav_menu ul li a {
  font-size: 13px !important;
  padding: 6px 0 !important;
  color: #6b6b6b !important;
  transition: color 0.2s ease !important;
}
.header-widget-area .widget_nav_menu ul li a:hover {
  color: #000 !important;
}

/* ===== SOLO EN MÓVIL (≤768px) ===== */
@media (max-width: 768px){
  /* Nuestra barra */
  .shop-toolbar-flex{
    display:flex;
    align-items:center;
    justify-content:space-between; /* izq ↔ der */
    gap:8px;
    flex-wrap:wrap;
    margin:0 0 10px;
  }

  /* Contenidos: orden visible dentro de la barra */
  .shop-toolbar-right .woocommerce-ordering{
    display:block !important;
    float:none !important;
    margin:0 !important;
    width:auto !important;
  }
  /* Botón annasta dentro de la barra */
  .shop-toolbar-left .awf-togglable-preset-btn{
    display:inline-flex !important;
    align-items:center;
    position:static !important;
    float:none !important;
    clear:none !important;
    margin:0 !important;
  }

  /* INVERTIR posiciones: orden a la IZQ, annasta a la DER */
  .shop-toolbar-right{ order:1; } /* ← Woo ordering */
  .shop-toolbar-left{  order:2; } /* → Botón annasta */

  /* Evitar duplicados: solo lo de la barra */
  .awf-togglable-preset-btn{ display:none !important; }
  .shop-toolbar-flex .awf-togglable-preset-btn{ display:inline-flex !important; }

  .woocommerce .woocommerce-ordering{ display:none !important; }
  .shop-toolbar-flex .woocommerce-ordering{ display:block !important; }
}

/* ===== EN DESKTOP (>768px): ocultar nuestra barra, dejar lo nativo ===== */
@media (min-width: 769px){
  .shop-toolbar-flex{ display:none !important; }
}
