/*
 * RS CUSTOM CSS: personalización que antes estaba en Apariencia > Personalizar > CSS adicional.
 * Se carga justo antes del hueco del personalizador (ver functions.php). Copia original: css-adicional.css
 */
/* ============================================================================
   RS CUSTOM CSS INDEX
   Buscar por estas etiquetas para encontrar bloques rápido:
   - RS PRODUCT: producto individual, CTA, tabs, IVA, quick view
   - RS BLOG: estilo noticias / posts editoriales
   - RS FILTERS: sidebar WooCommerce y filtros de bloques
   - RS HEADER: switcher, menús de tienda, lupa, topbar y móvil
   - RS MOBILE: ajustes responsive específicos
   - RS COLLECTIONS: grids de product collection en móvil
   ============================================================================ */

/* RS TYPOGRAPHY: subir ligeramente el tamaño base de texto en toda la web */
html {
  font-size: 106.25% !important; /* 16px -> 17px aprox. */
}

@media (max-width: 768px) {
  html {
    font-size: 103.125% !important; /* ajuste suave en móvil */
  }
}

/* RS PRODUCT: CTA secundario en la descripción corta */
.woocommerce div.product .rs-short-cta{
  margin: 10px 0 0;
}

.woocommerce div.product .rs-short-cta .rs-scroll{
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(31,122,58,.35) !important;
  color: #1f7a3a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.woocommerce div.product .rs-short-cta .rs-scroll:hover{
  background: rgba(31,122,58,.08) !important;
}
/* Ajustar tamaño imagen principal del producto */
.woocommerce div.product div.images img {
  max-width: 60%;
  margin: 0 auto;
  display: block;
}
/* ==============================
   RS BLOG: estilo noticias blog / editorial
   ============================== */
/* Ocultar meta del post (autor, categoría, comentarios) */
.post-meta,
.entry-meta,
.post-meta-wrapper,
.meta,
.blog-meta,
.single-post .post-info {
  display: none !important;
}

/* RS BLOG: en artículo individual mostrar solo la sección (categoría) */
.single-post .entry-meta{
  display: block !important;
  margin: 0 0 12px !important;
  font-size: 0 !important;          /* oculta separadores "/" y texto residual */
  line-height: 1 !important;
  color: transparent !important;
}

.single-post .entry-meta .ast-terms-link{
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.single-post .entry-meta .ast-terms-link a{
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #eef5f1 !important;
  border: 1px solid #bfd2c6 !important;
  color: #2f5c49 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.single-post .entry-meta .ast-terms-link a:hover{
  background: #e2efe9 !important;
}

/* ocultar resto de meta (autor/fecha/comentarios) en single */
.single-post .entry-meta .posted-on,
.single-post .entry-meta .posted-by,
.single-post .entry-meta .comments-link{
  display: none !important;
}

@media (max-width: 768px){
  .single-post .entry-meta{
    margin-bottom: 10px !important;
  }

  .single-post .entry-meta .ast-terms-link a{
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
}

.post-noticia {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  color: #2b2b2b;
}

/* Header */
.post-noticia header p {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b6b6b;
}

.post-noticia h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f3d2b;
}

/* Titulares */
.post-noticia h2 {
  font-size: 1.5rem;
  margin: 32px 0 12px;
  color: #2f5d3a;
  position: relative;
}

.post-noticia h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #7fb069;
  margin-top: 6px;
}

/* Texto */
.post-noticia p {
  margin-bottom: 16px;
}

/* Listas */
.post-noticia ul,
.post-noticia ol {
  margin: 16px 0 24px 22px;
}

.post-noticia li {
  margin-bottom: 10px;
}

/* Blockquote */
.post-noticia blockquote {
  border-left: 4px solid #7fb069;
  background: #f4f8f5;
  padding: 18px 20px;
  font-style: italic;
  color: #355e43;
}

/* Separadores */
.post-noticia hr {
  border: none;
  height: 1px;
  background: #e4e4e4;
}

/* Footer */
.post-noticia footer {
  margin-top: 30px;
  font-size: 14px;
  color: #6b6b6b;
}

/* Responsive */
@media (max-width: 768px) {
  .post-noticia h1 {
    font-size: 1.8rem;
  }

  .post-noticia h2 {
    font-size: 1.3rem;
  }
}

.agri-header h2{
  text-decoration:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

.agri-header h2::before,
.agri-header h2::after{
  display:none !important;
  content:none !important;
}

/* =====================================
   RS FILTERS: categorías y filtros Woo
   ===================================== */

.wc-block-product-categories-list{
  list-style:none;
  margin:0;
  padding-left:0;
}

/* enlaces base */
.wc-block-product-categories-list-item > a{
  display:block;
  padding:6px 0;
  text-decoration:none;
  color:#2b2b2b;
  line-height:1.4;
}

/* hover sutil */
.wc-block-product-categories-list-item > a:hover{
  color:#2e7d32;
}

/* ===== JERARQUÍA ===== */

/* Nivel 0 – Categorías padre */
.wc-block-product-categories-list--depth-0
> .wc-block-product-categories-list-item > a{
  font-weight:700;
  font-size:15px;
  padding:8px 0 6px;
  border-bottom:1px solid rgba(0,0,0,.12);
  margin-bottom:4px;
}

/* Nivel 1 */
.wc-block-product-categories-list--depth-1{
  padding-left:12px;
  margin:6px 0 10px;
}
.wc-block-product-categories-list--depth-1
> .wc-block-product-categories-list-item > a{
  font-size:14px;
  font-weight:500;
}

/* Nivel 2 */
.wc-block-product-categories-list--depth-2{
  padding-left:12px;
}
.wc-block-product-categories-list--depth-2
> .wc-block-product-categories-list-item > a{
  font-size:13px;
  opacity:.85;
}

/* Nivel 3+ */
.wc-block-product-categories-list--depth-3{
  padding-left:10px;
}
.wc-block-product-categories-list--depth-3
> .wc-block-product-categories-list-item > a{
  font-size:12.5px;
  opacity:.75;
}

/* quitar subrayados forzados */
.wc-block-product-categories-list-item a{
  text-decoration:none !important;
}

/* Ajuste  sticky Astra */
.ast-sticky-header-active #masthead{
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
}

/* CARTEL AVISO */
.price-locked-msg{
  margin: 10px 0;
  padding: 12px 14px;
  background: #f4f7f5;
  border: 1px solid #d6e3da;
  border-radius: 8px;
  font-size: 14px;
  color: #2f4f3a;
}

.price-locked-msg.small{
  font-size: 13px;
  padding: 8px 10px;
}

.price-locked-msg .btn-login{
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #2e7d32;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.price-locked-msg .btn-login:hover{
  background: #256428;
}

/* BLOQUEAR TIENDA */
.wc-store-locked{
  margin: 12px 0;
  padding: 12px 14px;
  background: #fff7e6;
  border: 1px solid #f2d7a0;
  border-radius: 8px;
  color: #5a3b00;
  font-size: 14px;
}

/* Espacio superior antes del footer */
.woocommerce-pagination{
  margin-bottom: 120px;
}

/* ==============================
   FIX SIDEBAR / FILTROS EN MOVIL
   ============================== */
@media (max-width: 768px){

  /* Que el layout pase a 1 columna */
  .woocommerce-page #primary,
  .woocommerce-page #secondary,
  .woocommerce #primary,
  .woocommerce #secondary{
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Quitar cualquier “sticky”/fijo que aplaste el contenido */
  #secondary,
  .widget-area.secondary,
  .ast-filter-wrap{
    position: static !important;
    top: auto !important;
  }

  /* Evitar scroll horizontal por widgets */
  .woocommerce-page,
  .woocommerce-page .site-content,
  .woocommerce-page .ast-container,
  .woocommerce-page #content{
    overflow-x: hidden !important;
  }

  /* El filtro de precio y widgets no deben desbordar */
  .widget,
  .wc-block-price-filter,
  .wc-block-price-filter *{
    max-width: 100% !important;
  }

  /* Inputs y botón de búsqueda del sidebar en móvil */
  #secondary input,
  #secondary select,
  #secondary button{
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* El slider de precio no debe salirse */
  .wc-block-price-filter__range-input,
  .wc-block-price-filter__controls,
  .wc-block-price-filter__range-text{
    width: 100% !important;
  }

  /* Evitar palabras partidas raras en categorías */
  .wc-block-product-categories-list-item > a{
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* ===== RS HEADER: tienda, switcher y navegación principal ===== */

/* Switcher base */
.rs-switcher-container{
  margin-left:0 !important;
  display:flex !important;
  align-items:center !important;
}
.rs-switcher{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  padding:4px !important;
  border-radius:999px !important;
  background:#eef3f0 !important;
  margin:0 !important;
  white-space:nowrap !important;
}
.rs-switcher > li{ list-style:none !important; margin:0 !important; padding:0 !important; }
.rs-switcher > li > a{
  display:inline-flex !important;
  align-items:center !important;
  padding:7px 11px !important;
  border-radius:999px !important;
  font-size:12px !important;
  font-weight:700 !important;
  text-transform:uppercase !important;
  letter-spacing:.02em !important;
  text-decoration:none !important;
  color:#6f9f8d !important;
  line-height:1 !important;
}
.rs-switcher > li.current-menu-item > a,
.rs-switcher > li.current_page_item > a{
  background:#6f9f8d !important;
  color:#fff !important;
}

.theme-sanidad .rs-switcher{ background:rgba(31,111,182,.10) !important; }
.theme-sanidad .rs-switcher > li > a{ color:#1f6fb6 !important; }
.theme-sanidad .rs-switcher > li.current-menu-item > a,
.theme-sanidad .rs-switcher > li.current_page_item > a{
  background:#1f6fb6 !important;
  color:#fff !important;
}

@media (min-width: 1366px){
  #masthead .ast-builder-grid-row-container,
  #ast-fixed-header .ast-builder-grid-row-container{
    max-width:1680px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .theme-agricultura #masthead .site-branding img,
  .theme-sanidad #masthead .site-branding img,
  .theme-agricultura #ast-fixed-header .site-branding img,
  .theme-sanidad #ast-fixed-header .site-branding img{
    max-width:128px !important;
    height:auto !important;
  }

  .theme-agricultura #masthead .site-branding,
  .theme-sanidad #masthead .site-branding,
  .theme-agricultura #ast-fixed-header .site-branding,
  .theme-sanidad #ast-fixed-header .site-branding{
    margin-right:10px !important;
  }

  .theme-agricultura #masthead .site-header-primary-section-right,
  .theme-sanidad #masthead .site-header-primary-section-right,
  .theme-agricultura #ast-fixed-header .site-header-primary-section-right,
  .theme-sanidad #ast-fixed-header .site-header-primary-section-right{
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) auto auto;
    align-items:center !important;
    column-gap:8px !important;
    min-width:0 !important;
  }

  .theme-agricultura .rs-switcher-container,
  .theme-sanidad .rs-switcher-container{
    grid-column:1 !important;
    margin:0 !important;
    min-width:max-content !important;
  }

  .theme-agricultura .rs-storemenu-container,
  .theme-sanidad .rs-storemenu-container,
  .theme-agricultura .ast-builder-menu-2,
  .theme-sanidad .ast-builder-menu-2{
    grid-column:2 !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  #ast-hf-menu-2.rs-storemenu,
  #ast-hf-menu-2-sticky.rs-storemenu{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    min-width:0 !important;
    overflow:visible !important;
    white-space:nowrap !important;
    position:relative !important;
  }

  .theme-agricultura #ast-hf-menu-2.rs-storemenu,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu{
    gap:8px !important;
  }

  .theme-sanidad #ast-hf-menu-2.rs-storemenu,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu{
    gap:6px !important;
  }

  #ast-hf-menu-2.rs-storemenu > li,
  #ast-hf-menu-2-sticky.rs-storemenu > li{
    flex:0 0 auto !important;
    position:relative !important;
  }

  .theme-agricultura #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu > li > a{
    letter-spacing:0 !important;
  }

  #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu,
  #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu{
    position:absolute !important;
top: 100% !important;
margin-top: 0 !important;
    left:0 !important;
    display:none !important;
    min-width:240px !important;
    max-width:320px !important;
    padding:10px 0 !important;
    background:#fff !important;
    border:1px solid rgba(0,0,0,.08) !important;
    box-shadow:0 12px 30px rgba(0,0,0,.12) !important;
    z-index:99999 !important;
    white-space:normal !important;
  }

  #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children:hover > .sub-menu,
  #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children.focus > .sub-menu,
  #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children.ast-submenu-expanded > .sub-menu,
  #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children:hover > .sub-menu,
  #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children.focus > .sub-menu,
  #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children.ast-submenu-expanded > .sub-menu{
    display:block !important;
  }

  #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu li a{
    display:block !important;
    padding:9px 16px !important;
    line-height:1.35 !important;
    white-space:normal !important;
  }

  #ast-hf-menu-2 > li.astm-search-menu,
  #ast-hf-menu-2-sticky > li.astm-search-menu{
    margin-left:auto !important;
    margin-right:0 !important;
    position:static !important;
  }

  .ast-header-woo-cart{
    grid-column:3 !important;
    margin:0 0 0 2px !important;
    position:relative !important;
  }

  .ast-header-account{
    grid-column:4 !important;
    margin:0 0 0 2px !important;
  }

  .ast-header-woo-cart .count{
    position:absolute !important;
    top:-7px !important;
    right:-8px !important;
    transform:none !important;
  }
}

#ast-hf-menu-2 > li.astm-search-menu > a,
#ast-hf-menu-2-sticky > li.astm-search-menu > a{
  width:36px !important;
  height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  background:#fff !important;
  border:1px solid rgba(15,31,22,.18) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.10) !important;
  color:#1f7a3a !important;
  opacity:1 !important;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#ast-hf-menu-2 > li.astm-search-menu > a:hover,
#ast-hf-menu-2-sticky > li.astm-search-menu > a:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.14) !important;
  background:#f6fbf8 !important;
}

#ast-hf-menu-2 > li.astm-search-menu > a:focus-visible,
#ast-hf-menu-2-sticky > li.astm-search-menu > a:focus-visible{
  outline:2px solid rgba(31,122,58,.45);
  outline-offset:2px;
}

#ast-hf-menu-2 > li.astm-search-menu .search-icon,
#ast-hf-menu-2-sticky > li.astm-search-menu .search-icon{
  width:17px !important;
  height:17px !important;
  display:block;
}

#ast-hf-menu-2 > li.astm-search-menu .search-icon-path,
#ast-hf-menu-2-sticky > li.astm-search-menu .search-icon-path{
  fill:currentColor !important;
}

.theme-sanidad #ast-hf-menu-2 > li.astm-search-menu > a,
.theme-sanidad #ast-hf-menu-2-sticky > li.astm-search-menu > a{
  color:#1f6fb6 !important;
}

/* RS HEADER: buscador desktop alineado + icono moderno */
@media (min-width: 1240px) {
  #ast-hf-menu-2,
  #ast-hf-menu-2-sticky {
    display: flex !important;
    align-items: center !important;
  }

  #ast-hf-menu-2 > li.astm-search-menu,
  #ast-hf-menu-2-sticky > li.astm-search-menu {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 0 0 10px !important;
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu > a,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu > a {
    display: none !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form {
    display: block !important;
    position: relative !important;
    width: clamp(200px, 16vw, 300px) !important;
    min-width: 200px !important;
    max-width: 300px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 1 !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form > label,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form > label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-input,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-input {
    width: 100% !important;
    height: 44px !important;
    border: 1px solid #7c8581 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #2d382e !important;
    padding: 0 46px 0 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-input::placeholder,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-input::placeholder {
    color: #8a9490 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-submit,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-submit {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d7dfdb !important;
    border-radius: 999px !important;
    background: #f3f7f5 !important;
    color: #5d6a64 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    z-index: 2 !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-submit .is-search-icon,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-submit .is-search-icon {
    display: none !important;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-submit::before,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-submit::before {
    content: "";
    width: 11px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    position: absolute;
    left: 8px;
    top: 7px;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu .is-search-submit::after,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu .is-search-submit::after {
    content: "";
    width: 6px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    left: 17px;
    top: 17px;
    transform: rotate(45deg);
    transform-origin: left center;
  }

  html body #ast-hf-menu-2 > li.astm-search-menu > .search-close,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu > .search-close {
    display: none !important;
  }

  body.home #masthead .site-header-primary-section-right,
  body.home #ast-fixed-header .site-header-primary-section-right {
    align-items: center !important;
  }
}

/* Desktop medio: reducir buscador para no forzar menú */
@media (min-width: 1240px) and (max-width: 1500px) {
  html body #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form,
  html body #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form {
    width: clamp(186px, 14vw, 248px) !important;
    min-width: 186px !important;
  }
}

/* Agricultura: usar icono para evitar solape con categorías largas */
@media (min-width: 1240px) {
  .theme-agricultura #ast-hf-menu-2 > li.astm-search-menu > a,
  .theme-agricultura #ast-hf-menu-2-sticky > li.astm-search-menu > a {
    display: inline-flex !important;
  }

  .theme-agricultura #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form,
  .theme-agricultura #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form {
    display: none !important;
  }
}

/* Menor ancho: volver a lupa para mantener responsive limpio */
@media (max-width: 1239px) {
  #ast-hf-menu-2 > li.astm-search-menu > a,
  #ast-hf-menu-2-sticky > li.astm-search-menu > a {
    display: inline-flex !important;
  }

  #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form,
  #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form {
    display: none !important;
  }
}

/* RS SEARCH: en Sanidad ocultar solo el campo, mantener botón/lupa */
body.theme-sanidad #ast-hf-menu-2 > li.astm-search-menu > form.is-search-form,
body.theme-sanidad #ast-hf-menu-2-sticky > li.astm-search-menu > form.is-search-form,
body.theme-sanidad #ast-hf-menu-2-mobile > li.astm-search-menu > form.is-search-form,
body.theme-sanidad #ast-hf-mobile-menu > li.astm-search-menu > form.is-search-form {
  display: none !important;
}

body.theme-sanidad #ast-hf-menu-2 > li.astm-search-menu > a,
body.theme-sanidad #ast-hf-menu-2-sticky > li.astm-search-menu > a,
body.theme-sanidad #ast-hf-menu-2-mobile > li.astm-search-menu > a,
body.theme-sanidad #ast-hf-mobile-menu > li.astm-search-menu > a {
  display: inline-flex !important;
}

/* Ocultar la barra sticky de búsqueda móvil en Sanidad */
body.theme-sanidad .rs-mobile-sticky-search {
  display: none !important;
}

/* Evita que en Sanidad el JS del sticky-search esconda el header móvil */
@media (max-width: 768px) {
  body.theme-sanidad.rs-mobile-search-visible #ast-mobile-header .ast-main-header-wrap {
    max-height: 180px !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* RS HEADER: tipografía de categorías más legible y responsive */
@media (min-width: 1366px) {
  .theme-agricultura #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu > li > a {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    padding: 9px 6px !important;
  }

  .theme-agricultura #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-sanidad #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu li a {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

@media (min-width: 1240px) and (max-width: 1365px) {
  .theme-agricultura #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2.rs-storemenu > li > a,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu > li > a {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 8px 5px !important;
  }

  .theme-agricultura #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-agricultura #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-sanidad #ast-hf-menu-2.rs-storemenu > li.menu-item-has-children > .sub-menu li a,
  .theme-sanidad #ast-hf-menu-2-sticky.rs-storemenu > li.menu-item-has-children > .sub-menu li a {
    font-size: 14px !important;
  }
}

@media (max-width: 1239px) {
  #ast-hf-menu-2-mobile > li > a,
  #ast-hf-mobile-menu > li > a {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
}

/* RS HEADER: si el menú no cabe, forzar cabecera móvil */
body.rs-force-mobile-menu #masthead #ast-desktop-header,
body.rs-force-mobile-menu #ast-fixed-header #ast-desktop-header{
  height:0 !important;
  overflow:hidden !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

body.rs-force-mobile-menu #masthead #ast-mobile-header,
body.rs-force-mobile-menu #ast-fixed-header #ast-mobile-header{
  display:block !important;
}

body.rs-force-mobile-menu #masthead .ast-mobile-header-wrap,
body.rs-force-mobile-menu #ast-fixed-header .ast-mobile-header-wrap{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

body.rs-force-mobile-menu #masthead .ast-main-header-wrap,
body.rs-force-mobile-menu #ast-fixed-header .ast-main-header-wrap{
  max-height:none !important;
  overflow:visible !important;
  transform:none !important;
  pointer-events:auto !important;
  padding-left:14px !important;
  padding-right:14px !important;
  box-sizing:border-box !important;
}

body.rs-force-mobile-menu #masthead .ast-builder-grid-row-container,
body.rs-force-mobile-menu #ast-fixed-header .ast-builder-grid-row-container{
  align-items:center !important;
  grid-template-rows:auto !important;
  height:auto !important;
  min-height:0 !important;
}

body.rs-force-mobile-menu #masthead .ast-primary-header-bar,
body.rs-force-mobile-menu #ast-fixed-header .ast-primary-header-bar,
body.rs-force-mobile-menu #masthead .site-header-primary-section-left,
body.rs-force-mobile-menu #ast-fixed-header .site-header-primary-section-left,
body.rs-force-mobile-menu #masthead .site-header-primary-section-right,
body.rs-force-mobile-menu #ast-fixed-header .site-header-primary-section-right{
  height:auto !important;
  min-height:0 !important;
  align-items:center !important;
}

body.rs-force-mobile-menu #masthead .site-header-primary-section-right,
body.rs-force-mobile-menu #ast-fixed-header .site-header-primary-section-right{
  gap:10px !important;
}

body.rs-force-mobile-menu #masthead .site-header-primary-section-right > *,
body.rs-force-mobile-menu #ast-fixed-header .site-header-primary-section-right > *{
  align-self:center !important;
}

body.rs-force-mobile-menu .ast-mobile-menu-trigger-outline{
  display:inline-flex !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  padding:0 !important;
  margin:0 !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:10px !important;
  border:1px solid rgba(31, 62, 52, .22) !important;
  background:#fff !important;
  box-shadow:0 2px 8px rgba(0, 0, 0, .08) !important;
}

body.rs-force-mobile-menu .ast-mobile-menu-trigger-outline .ast-icon,
body.rs-force-mobile-menu .ast-mobile-menu-trigger-outline .ast-icon svg{
  width:18px !important;
  height:18px !important;
}

body.rs-force-mobile-menu #masthead .ast-primary-header-bar,
body.rs-force-mobile-menu #ast-fixed-header .ast-primary-header-bar{
  padding-left:0 !important;
  padding-right:0 !important;
}

body.rs-force-mobile-menu #masthead .ast-header-woo-cart,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 2px !important;
  margin:0 !important;
  align-self:center !important;
  position:relative !important;
}

body.rs-force-mobile-menu #masthead .ast-header-woo-cart .ast-site-header-cart,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart .ast-site-header-cart,
body.rs-force-mobile-menu #masthead .ast-header-woo-cart .ast-site-header-cart-li,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart .ast-site-header-cart-li,
body.rs-force-mobile-menu #masthead .ast-header-woo-cart a,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart a{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  line-height:1 !important;
  padding:0 !important;
  margin:0 !important;
  overflow:visible !important;
}

body.rs-force-mobile-menu #masthead .ast-header-woo-cart .ast-addon-cart-wrap,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart .ast-addon-cart-wrap,
body.rs-force-mobile-menu #masthead .ast-header-woo-cart i.astra-icon,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart i.astra-icon{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  height:34px !important;
  width:34px !important;
  padding:0 !important;
  margin:0 !important;
}

body.rs-force-mobile-menu #masthead .ast-header-woo-cart svg,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart svg{
  display:block !important;
  width:22px !important;
  height:22px !important;
}

body.rs-force-mobile-menu #masthead .ast-header-woo-cart .count,
body.rs-force-mobile-menu #ast-fixed-header .ast-header-woo-cart .count{
  top:-6px !important;
  right:-8px !important;
}

/* RS MOBILE POPUP: hacer usable el submenú en el drawer */
@media (max-width: 921px) {
  .ast-mobile-popup-drawer {
    background: rgba(14, 22, 19, .52) !important;
    backdrop-filter: blur(6px) !important;
  }

  .ast-mobile-popup-inner {
    width: min(94vw, 420px) !important;
    max-width: 420px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 28px 28px 0 !important;
    overflow: hidden !important;
    box-shadow: 18px 0 44px rgba(0, 0, 0, .18) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%) !important;
  }

  .ast-mobile-popup-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    padding: 16px 16px 12px !important;
    border-bottom: 1px solid #e6ece8 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%) !important;
  }

  .ast-mobile-popup-header .menu-toggle-close {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid #d7e1db !important;
    background: #f7faf8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ast-mobile-popup-header .menu-toggle-close .ast-close-svg {
    width: 18px !important;
    height: 18px !important;
  }

  .ast-mobile-popup-content {
    flex: 1 1 auto !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 6px 0 18px !important;
  }

  .ast-mobile-popup-content .ast-header-account {
    padding: 12px 16px 10px !important;
  }

  .ast-mobile-popup-content .ast-header-account-link {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: #f0f4f2 !important;
    border: 1px solid #d9e4df !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ast-mobile-popup-content .ast-header-account-link svg {
    width: 20px !important;
    height: 20px !important;
  }

  .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > a {
    width: calc(100% - 48px) !important;
    max-width: calc(100% - 48px) !important;
    padding-right: 8px !important;
    flex: 0 0 calc(100% - 48px) !important;
    min-width: 0 !important;
  }

  .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > button.ast-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    transform: none !important;
    margin-left: auto !important;
    border: 0 !important;
    background: transparent !important;
    z-index: 2 !important;
    flex: 0 0 48px !important;
  }

  .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > button.ast-menu-toggle .icon-arrow {
    width: 18px !important;
    height: 18px !important;
  }

  .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > a .icon-arrow,
  .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children > a .icon-arrow {
    display: none !important;
  }

  .ast-mobile-popup-content .main-header-menu,
  .ast-mobile-popup-content .main-header-menu .sub-menu {
    display: block !important;
    width: 100% !important;
  }

  .ast-mobile-popup-content .main-header-menu > li,
  .ast-mobile-popup-content .main-header-menu .sub-menu > li {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    position: relative !important;
  }

  .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children,
  .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu {
    position: static !important;
    inset: auto !important;
    margin: 6px 0 10px !important;
    padding: 0 0 0 14px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    flex-basis: 100% !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu .sub-menu {
    padding-left: 16px !important;
    margin-top: 4px !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu > li > a {
    display: block !important;
    width: auto !important;
    min-height: 42px !important;
    padding: 10px 8px 10px 0 !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    flex: 0 0 calc(100% - 40px) !important;
    min-width: 0 !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > a {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    padding-right: 8px !important;
    flex: 0 0 calc(100% - 40px) !important;
    min-width: 0 !important;
  }

  .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > button.ast-menu-toggle {
    position: static !important;
    margin-left: auto !important;
    width: 40px !important;
    height: 40px !important;
    transform: none !important;
    flex: 0 0 40px !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu {
    display: block !important;
    margin: 14px 16px 18px !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 14px 16px !important;
    border: 1px solid #d9e4df !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%) !important;
    box-shadow: 0 8px 18px rgba(31, 50, 40, .08) !important;
    color: #1f3e34 !important;
    text-decoration: none !important;
    overflow: hidden !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a::after {
    content: 'Buscar productos' !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
    color: #3e5a51 !important;
    margin-left: 2px !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .search-icon,
  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .is-search-icon {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 auto !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .search-icon-path {
    fill: #1f7a3a !important;
  }

  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > form.is-search-form,
  .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > .search-close {
    display: none !important;
  }
}

/* RS MOBILE POPUP: aplicar el mismo estilo cuando el menú móvil se fuerza en desktop */
body.rs-force-mobile-menu .ast-mobile-popup-drawer {
  background: rgba(14, 22, 19, .52) !important;
  backdrop-filter: blur(6px) !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-inner {
  width: min(94vw, 420px) !important;
  max-width: 420px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 0 28px 28px 0 !important;
  overflow: hidden !important;
  box-shadow: 18px 0 44px rgba(0, 0, 0, .18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%) !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 5 !important;
  padding: 16px 16px 12px !important;
  border-bottom: 1px solid #e6ece8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%) !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-header .menu-toggle-close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid #d7e1db !important;
  background: #f7faf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-header .menu-toggle-close .ast-close-svg {
  width: 18px !important;
  height: 18px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content,
body.rs-force-mobile-menu .ast-desktop-popup-content {
  flex: 1 1 auto !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 6px 0 18px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .ast-header-account {
  padding: 12px 16px 10px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .ast-header-account-link {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: #f0f4f2 !important;
  border: 1px solid #d9e4df !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .ast-header-account-link svg {
  width: 20px !important;
  height: 20px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > a {
  width: calc(100% - 48px) !important;
  max-width: calc(100% - 48px) !important;
  padding-right: 8px !important;
  flex: 0 0 calc(100% - 48px) !important;
  min-width: 0 !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > button.ast-menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 48px !important;
  height: 48px !important;
  transform: none !important;
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 2 !important;
  flex: 0 0 48px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > button.ast-menu-toggle .icon-arrow {
  width: 18px !important;
  height: 18px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > a .icon-arrow,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children > a .icon-arrow {
  display: none !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu {
  display: block !important;
  width: 100% !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu > li,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu > li {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu > li.menu-item-has-children,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu > li.menu-item-has-children {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu {
  position: static !important;
  inset: auto !important;
  margin: 6px 0 10px !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  flex-basis: 100% !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu .sub-menu,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu .sub-menu {
  padding-left: 16px !important;
  margin-top: 4px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li > a,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu > li > a {
  display: block !important;
  width: auto !important;
  min-height: 42px !important;
  padding: 10px 8px 10px 0 !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  flex: 0 0 calc(100% - 40px) !important;
  min-width: 0 !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > a,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > a {
  width: calc(100% - 40px) !important;
  max-width: calc(100% - 40px) !important;
  padding-right: 8px !important;
  flex: 0 0 calc(100% - 40px) !important;
  min-width: 0 !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > button.ast-menu-toggle,
body.rs-force-mobile-menu .ast-desktop-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > button.ast-menu-toggle {
  position: static !important;
  margin-left: auto !important;
  width: 40px !important;
  height: 40px !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 40px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu {
  display: block !important;
  margin: 14px 16px 18px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 14px 16px !important;
  border: 1px solid #d9e4df !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%) !important;
  box-shadow: 0 8px 18px rgba(31, 50, 40, .08) !important;
  color: #1f3e34 !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a::after {
  content: 'Buscar productos' !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  color: #3e5a51 !important;
  margin-left: 2px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .search-icon,
body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .is-search-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > a .search-icon-path {
  fill: #1f7a3a !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > form.is-search-form,
body.rs-force-mobile-menu .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu > .search-close {
  display: none !important;
}

/* RS MOBILE POPUP: cierre definitivo de los huecos en submenús */
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 40px !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 0 !important;
  position: relative !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children > a,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > a {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-right: 8px !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children > button.ast-menu-toggle,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > button.ast-menu-toggle {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: center !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  transform: none !important;
}

body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu > li.menu-item-has-children > .sub-menu,
body.rs-force-mobile-menu .ast-mobile-popup-content .main-header-menu .sub-menu > li.menu-item-has-children > .sub-menu {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: block !important;
  width: 100% !important;
  margin: 4px 0 10px !important;
  padding-left: 14px !important;
  position: static !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* RS SEARCH MODAL: limpiar línea lateral derecha del form/input */
.rs-ivory-modal .is-search-form,
.rs-ivory-modal .is-search-form > label {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

.rs-ivory-modal .is-search-form::before,
.rs-ivory-modal .is-search-form::after,
.rs-ivory-modal .is-search-form > label::before,
.rs-ivory-modal .is-search-form > label::after {
  content: none !important;
  display: none !important;
}

.rs-ivory-modal .is-search-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
}

.rs-ivory-modal .is-search-input::-webkit-search-decoration,
.rs-ivory-modal .is-search-input::-webkit-search-cancel-button,
.rs-ivory-modal .is-search-input::-webkit-search-results-button,
.rs-ivory-modal .is-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

/* RS MOBILE: overlay de filtros Woo Blocks */
@media (max-width: 768px){

  .wc-block-product-filters__overlay-dialog
  .wc-block-product-filter-checkbox-list__item
  > .wc-block-product-filter-checkbox-list__label{
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .wc-block-product-filters__overlay-dialog
  .wc-block-product-filter-checkbox-list__input-wrapper{
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  .wc-block-product-filters__overlay-dialog
  .wc-block-product-filter-checkbox-list__text-wrapper{
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  .wc-block-product-filters__overlay-dialog
  .wc-block-product-filter-checkbox-list__text{
    display: inline !important;
    margin: 0 !important;
  }
}

/* Fondo blanco en páginas de producto */
body.single-product,
body.single-product #page,
body.single-product .site-content,
body.woocommerce {
    background-color: #ffffff !important;
}

/* Por si hay un wrapper gris intermedio */
.woocommerce-page .site-content,
.single-product .entry-content {
    background-color: #ffffff !important;
}
	
.ast-quick-view-text {
    font-size: 0 !important;
}
.ast-quick-view-text::after {
    content: "Vista rápida";
    font-size: 14px;
}

.agri-topbar{
  border-bottom:1px solid rgba(0,0,0,.08);
  font-size:14px;
  line-height:1.2;
}
.agri-topbar__inner{
  max-width:1200px;
  margin:0 auto;
  padding:8px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.agri-topbar__phones a{ text-decoration:none; }
.agri-sep{ margin:0 6px; opacity:.6; }
.agri-topbar__hours-mobile{
  display:none;
}

@media (max-width:768px){
  .agri-topbar{
    font-size:12px;
  }

  .agri-topbar__inner{
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
    gap:10px !important;
    padding:6px 10px !important;
  }

  .agri-topbar__hours{
    flex:0 0 auto !important;
    position:relative !important;
  }

  .agri-topbar__hours-desktop{
    display:none !important;
  }

  .agri-topbar__hours-mobile{
    display:block;
    position:relative;
  }

  .agri-topbar__hours-mobile summary{
    list-style:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 10px;
    border:1px solid rgba(31,122,58,.18);
    border-radius:999px;
    background:#f7faf8;
    color:#2f4f3a;
    font-weight:600;
    white-space:nowrap;
  }

  .agri-topbar__hours-mobile summary::-webkit-details-marker{
    display:none;
  }

  .agri-topbar__hours-card{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    min-width:220px;
    max-width:260px;
    padding:12px 14px;
    border-radius:12px;
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 14px 28px rgba(0,0,0,.14);
    display:grid;
    gap:6px;
    z-index:1000;
    white-space:normal;
    line-height:1.35;
  }

  .agri-topbar__hours-card strong{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:#5c6d64;
  }

  .agri-topbar__phones{
    flex:0 0 auto !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    min-width:0 !important;
    white-space:nowrap !important;
  }

  .agri-sep{
    margin:0 2px !important;
  }
}

/* RS PRODUCT: tabs WooCommerce */
.single-product .woocommerce-tabs ul.tabs{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}

.single-product .woocommerce-tabs .panel{
  display:none !important;
}

.single-product .woocommerce-tabs .panel.rs-tab-active{
  display:block !important;
}

/* fallback si JS no engancha */
.single-product .woocommerce-tabs .panel#tab-description{
  display:block;
}

/* RS PRODUCT: ocultar "Informacion adicional" y "Valoraciones" */
.single-product .woocommerce-tabs ul.tabs li.additional_information_tab,
.single-product .woocommerce-tabs ul.tabs li.reviews_tab,
.single-product .woocommerce-tabs ul.tabs li a[href="#tab-additional_information"],
.single-product .woocommerce-tabs ul.tabs li a[href="#tab-reviews"],
.single-product .woocommerce-tabs #tab-additional_information,
.single-product .woocommerce-tabs #tab-reviews{
  display:none !important;
}

/* Astra tabs distributed/accordion */
.single-product .ast-woocommerce-tabs .woocommerce-Tabs-panel--additional_information,
.single-product .ast-woocommerce-tabs .woocommerce-Tabs-panel--reviews,
.single-product .ast-woocommerce-tabs #tab-additional_information,
.single-product .ast-woocommerce-tabs #tab-reviews{
  display:none !important;
}

/* Oculta el bloque completo cuando el navegador soporta :has */
.single-product .ast-woocommerce-tabs .ast-single-tab:has(#tab-additional_information),
.single-product .ast-woocommerce-tabs .ast-single-tab:has(#tab-reviews){
  display:none !important;
}

/* RS PRODUCT: nota de IVA */
.rs-iva-incluido{
	display:inline-block;
	margin-top:4px;
	font-size:12px;
	color:#5f6b66;
	font-weight:600;
}

/* RS PRODUCT: sugerencia de ahorro por pack */
.single-product .rs-pack-savings[hidden]{
  display:none !important;
}

.single-product .rs-pack-savings{
  margin:14px 0 10px;
}

.single-product .rs-pack-savings__title{
  margin:0 0 8px;
  font-size:13px;
  font-weight:700;
  color:#55695e;
}

.single-product .rs-pack-savings__offer{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto auto;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:1px solid #d8e1db;
  border-radius:14px;
  background:#f4f6f3;
  box-shadow:0 10px 24px rgba(31, 50, 40, .06);
  color:#20362b;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
}

.single-product .rs-pack-savings__offer:hover{
  border-color:#b8c9bf;
  background:#f7f8f6;
  box-shadow:0 14px 28px rgba(31, 50, 40, .10);
  transform:translateY(-1px);
}

.single-product .rs-pack-savings__offer:focus-visible{
  outline:2px solid rgba(47, 92, 73, .38);
  outline-offset:2px;
}

.single-product .rs-pack-savings__dot{
  width:18px;
  height:18px;
  border:2px solid #8b9d92;
  border-radius:999px;
  background:#fff;
  box-shadow:inset 0 0 0 4px #fff;
}

.single-product .rs-pack-savings__pack{
  min-width:0;
  font-size:15px;
  font-weight:600;
  color:#32483c;
}

.single-product .rs-pack-savings__price{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  background:#e8d25f;
  color:#2d382e;
  font-size:13px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}

.single-product .rs-pack-savings__save{
  font-size:14px;
  font-weight:700;
  color:#2f5c49;
  white-space:nowrap;
}

@media (max-width: 767px){
  .single-product .rs-pack-savings__offer{
    grid-template-columns:auto minmax(0, 1fr);
    align-items:flex-start;
  }

  .single-product .rs-pack-savings__price,
  .single-product .rs-pack-savings__save{
    grid-column:2;
    justify-self:flex-start;
  }

  .single-product .rs-pack-savings__pack{
    padding-top:1px;
  }
}

@media (max-width: 768px){
  .wp-block-woocommerce-product-collection > .wp-block-heading.has-large-font-size{
    font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
    line-height: 1.1 !important;
    padding-left: 16px;
    padding-right: 16px;
    text-wrap: balance;
  }

  .wp-block-woocommerce-product-collection .wp-block-post-template,
  .wp-block-woocommerce-product-collection ul.wc-block-product-template,
  .wp-block-woocommerce-product-collection ul.wc-block-grid__products{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:24px 18px !important;
    align-items:stretch !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 14px !important;
  }

  .wp-block-woocommerce-product-collection .wp-block-post-template > li,
  .wp-block-woocommerce-product-collection ul.wc-block-product-template > li,
  .wp-block-woocommerce-product-collection ul.wc-block-grid__products > li{
    width:auto !important;
    margin:0 !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    text-align:center !important;
  }

  .wp-block-woocommerce-product-collection .wc-block-components-product-image,
  .wp-block-woocommerce-product-collection .wc-block-grid__product-image{
    width:100% !important;
    min-height:170px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 0 12px !important;
  }

  .wp-block-woocommerce-product-collection .wc-block-components-product-image img,
  .wp-block-woocommerce-product-collection .wc-block-grid__product-image img{
    width:100% !important;
    max-width:170px !important;
    max-height:170px !important;
    object-fit:contain !important;
    margin:0 auto !important;
    display:block !important;
  }

  .wp-block-woocommerce-product-collection .wc-block-components-product-name,
  .wp-block-woocommerce-product-collection .wc-block-grid__product-title,
  .wp-block-woocommerce-product-collection .wp-block-post-title{
    width:100% !important;
    min-height:3.4em !important;
    margin-bottom:10px !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    text-wrap:balance;
  }

  .wp-block-woocommerce-product-collection .wc-block-components-product-price,
  .wp-block-woocommerce-product-collection .price{
    width:100% !important;
    min-height:2.6em !important;
    margin-bottom:12px !important;
  }

  .wp-block-woocommerce-product-collection .wp-block-button,
  .wp-block-woocommerce-product-collection .wc-block-components-product-button{
    margin-top:auto !important;
  }

  .wp-block-woocommerce-product-collection .wp-block-button__link,
  .wp-block-woocommerce-product-collection .add_to_cart_button,
  .wp-block-woocommerce-product-collection .wc-block-components-product-button__button{
    min-width:120px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px){
  body.page-id-2452 .wp-block-woocommerce-product-collection .wp-block-post-template,
  body.page-id-2452 .wp-block-woocommerce-product-collection ul.wc-block-product-template,
  body.page-id-2452 .wp-block-woocommerce-product-collection ul.wc-block-grid__products{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:26px 20px !important;
    align-items:stretch !important;
    list-style:none !important;
    margin:0 !important;
    padding:0 18px !important;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wp-block-post-template > li,
  body.page-id-2452 .wp-block-woocommerce-product-collection ul.wc-block-product-template > li,
  body.page-id-2452 .wp-block-woocommerce-product-collection ul.wc-block-grid__products > li{
    width:auto !important;
    min-width:0 !important;
    margin:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    text-align:center !important;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-components-product-image,
  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-grid__product-image{
    width:100% !important;
    min-height:180px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 0 12px !important;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-components-product-image img,
  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-grid__product-image img{
    width:100% !important;
    max-width:180px !important;
    max-height:180px !important;
    object-fit:contain !important;
    margin:0 auto !important;
    display:block !important;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-components-product-name,
  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-grid__product-title,
  body.page-id-2452 .wp-block-woocommerce-product-collection .wp-block-post-title{
    width:100% !important;
    min-height:3.6em !important;
    margin-bottom:10px !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    text-wrap:balance;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-components-product-price,
  body.page-id-2452 .wp-block-woocommerce-product-collection .price{
    width:100% !important;
    min-height:2.8em !important;
    margin-bottom:12px !important;
  }

  body.page-id-2452 .wp-block-woocommerce-product-collection .wp-block-button,
  body.page-id-2452 .wp-block-woocommerce-product-collection .wc-block-components-product-button{
    margin-top:auto !important;
  }
}
/* BENEFICIOS HOME */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.beneficios-grid > .wp-block-uagb-info-box {
  width: 100%;
  text-align: center;
  height: 100%;
}

.beneficios-grid .uagb-ifb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.beneficios-grid .uagb-ifb-icon-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.beneficios-grid .uagb-ifb-title,
.beneficios-grid .uagb-ifb-desc {
  text-align: center;
}

@media (max-width: 1024px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .beneficios-grid {
    grid-template-columns: 1fr;
  }
}

/* RS PRODUCT: flechas de navegación entre productos, pequeñas y a la derecha de las migas de pan */
.single-product .summary.entry-summary {
  position: relative;
}

.single-product .summary.entry-summary .ast-product-navigation-wrapper {
  position: absolute !important;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
}

.single-product .summary.entry-summary .ast-product-navigation-wrapper .product-links {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}

.single-product .summary.entry-summary .ast-product-navigation-wrapper .product-links a,
.single-product .summary.entry-summary .ast-product-navigation-wrapper .ast-product-icon-previous,
.single-product .summary.entry-summary .ast-product-navigation-wrapper .ast-product-icon-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

.single-product .summary.entry-summary .ast-product-navigation-wrapper .ast-product-icon-previous .ast-icon,
.single-product .summary.entry-summary .ast-product-navigation-wrapper .ast-product-icon-next .ast-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.single-product .summary.entry-summary .ast-product-navigation-wrapper svg {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 auto !important;
}

.single-product .summary.entry-summary .woocommerce-breadcrumb {
  min-height: 32px;
  padding-right: 80px;
}

/* RS PRODUCT: tamaño de título de producto responsive */
.single-product .product_title.entry-title {
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
}

/* Desktop grande */
@media (min-width: 1200px) {
  .single-product .product_title.entry-title {
    font-size: 34px !important;
  }
}

/* Tablet */
@media (max-width: 921px) {
  .single-product .product_title.entry-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }
}

/* Mobile */
@media (max-width: 544px) {
  .single-product .product_title.entry-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
}

/* RS CTA botón asesoramiento */
.rs-feature__btn {
  background-color: #6f9f8d;
  color: #ffffff;
}

/* Hover: #537c6e con texto blanco da 4,69:1 (WCAG AA pide 4,5:1; el #5a8777 anterior daba 4,06:1) */
.rs-feature__btn:hover {
  background-color: #537c6e;
  color: #ffffff;
}

/* Focus accesible */
.rs-feature__btn:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* RS PRODUCT: variaciones con estilo claro en todos los dispositivos */
.single-product .variations td.value {
  padding-top: 6px;
}

/* Activo (el resto del estilo de los swatches está en "estado visual robusto", más abajo) */
.single-product .cfvsw-swatches-option.cfvsw-selected,
.single-product .cfvsw-swatches-option.cfvsw-swatches-selected,
.single-product .cfvsw-swatches-option.selected {
  background: #2f5c49 !important;
  border-color: #2f5c49 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 92, 73, .18) !important;
}

.single-product .cfvsw-swatches-option.cfvsw-selected .cfvsw-swatch-inner,
.single-product .cfvsw-swatches-option.cfvsw-swatches-selected .cfvsw-swatch-inner,
.single-product .cfvsw-swatches-option.selected .cfvsw-swatch-inner {
  color: #ffffff !important;
}

/* Tablet */
@media (max-width: 921px) {
  .single-product .cfvsw-swatches-container {
    gap: 9px !important;
  }
}

/* Mobile */
@media (max-width: 544px) {
  .single-product .cfvsw-swatches-container {
    gap: 8px !important;
  }
}

/* RS PRODUCT: estado visual robusto para swatches en todos los dispositivos */
.single-product .cfvsw-swatches-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.single-product .cfvsw-swatches-option {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  min-width: 88px !important;
  padding: 10px 16px !important;
  border: 1px solid #bfd2c6 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #2f5c49 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.single-product .cfvsw-swatches-option .cfvsw-swatch-inner {
  color: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

.single-product .cfvsw-swatches-option:hover {
  border-color: #6f9f8d !important;
  background: #eef5f1 !important;
  color: #2f5c49 !important;
}

/* Activo: tanto clases del plugin como clase nuestra */
.single-product .cfvsw-swatches-option.cfvsw-selected,
.single-product .cfvsw-swatches-option.cfvsw-swatches-selected,
.single-product .cfvsw-swatches-option.selected,
.single-product .cfvsw-swatches-option.rs-swatch-active {
  background: #2f5c49 !important;
  border-color: #2f5c49 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 92, 73, .18) !important;
}

.single-product .cfvsw-swatches-option.cfvsw-selected .cfvsw-swatch-inner,
.single-product .cfvsw-swatches-option.cfvsw-swatches-selected .cfvsw-swatch-inner,
.single-product .cfvsw-swatches-option.selected .cfvsw-swatch-inner,
.single-product .cfvsw-swatches-option.rs-swatch-active .cfvsw-swatch-inner {
  color: #ffffff !important;
}

.single-product .cfvsw-swatches-option.cfvsw-swatches-disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

@media (min-width: 1200px) {
  .single-product .cfvsw-swatches-option {
    min-height: 46px !important;
    padding: 11px 18px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 921px) {
  .single-product .cfvsw-swatches-option {
    min-height: 42px !important;
    min-width: 82px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 544px) {
  .single-product .cfvsw-swatches-option {
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
  }
}

/* RS PRODUCT: bloque acceso profesionales (sanidad) */
.rs-pro-only-box{
  position:relative;
  overflow:hidden;
  margin:18px 0 20px;
  padding:22px 24px 22px 26px;
  border:1px solid rgba(47,95,80,.18);
  background:linear-gradient(135deg, #ffffff 0%, #f4faf7 52%, #fff8ea 100%);
  border-radius:14px;
  box-shadow:0 14px 34px rgba(26,49,42,.10);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.rs-pro-only-box::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg, #2f5f50, #d0a84f);
}

.rs-pro-only-box__title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.01em;
  color:#213b34;
  line-height:1.18;
  font-size:clamp(17px, 2vw, 21px);
}

.rs-pro-only-box__title::before{
  content:"!";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#2f5f50;
  color:#fff;
  font-size:18px;
  font-weight:900;
  line-height:1;
}

.rs-pro-only-box__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}

.rs-pro-only-box__btn.button{
  margin:0 !important;
  min-height:48px;
  border-radius:10px !important;
  font-weight:800;
  letter-spacing:.015em;
  text-transform:uppercase;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:12px 18px !important;
  width:auto;
  min-width:min(100%, 300px);
  max-width:100%;
  line-height:1.15;
  text-decoration:none !important;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.rs-pro-only-box__btn--registro.button{
  background:#2f5f50 !important;
  border-color:#2f5f50 !important;
  color:#fff !important;
  box-shadow:0 10px 22px rgba(47,95,80,.24);
}

.rs-pro-only-box__btn--registro.button:hover{
  background:#244d40 !important;
  border-color:#244d40 !important;
  color:#fff !important;
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(47,95,80,.30);
}

.rs-pro-only-box__btn--registro.button::after{
  content:"\2192";
  margin-left:10px;
  font-size:18px;
  line-height:1;
}

.rs-pro-only-box__btn--whatsapp.button{
  background:#25D366;
  border-color:#25D366;
  color:#fff;
}

.rs-pro-only-box__btn--llamar.button{
  background:#111;
  border-color:#111;
  color:#fff;
}

.rs-pro-only-box__note,
.rs-pro-only-box__subnote{
  max-width:720px;
  font-size:14px;
  line-height:1.45;
  color:#50645f;
}

.rs-pro-only-box__note{
  margin-top:2px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.025em;
  color:#46615a;
}

.rs-pro-only-box__subnote{
  margin-top:-6px;
}

@media (max-width: 921px){
  .rs-pro-only-box__actions{
    align-items:stretch;
  }

  .rs-pro-only-box__btn--registro.button{
    width:100%;
  }
}

@media (max-width: 544px){
  .rs-pro-only-box{
    margin:14px 0 18px;
    padding:18px 16px 18px 18px;
    border-radius:12px;
    gap:12px;
  }

  .rs-pro-only-box__title{
    align-items:flex-start;
    font-size:16px;
  }

  .rs-pro-only-box__title::before{
    flex-basis:24px;
    width:24px;
    height:24px;
    font-size:15px;
  }

  .rs-pro-only-box__actions{
    display:block;
  }

  .rs-pro-only-box__btn--registro.button{
    width:100%;
    min-width:0;
    min-height:46px;
    padding:11px 14px !important;
    font-size:13px;
  }

  .rs-pro-only-box__note,
  .rs-pro-only-box__subnote{
    font-size:13px;
  }
}

/* RS PRODUCT: breadcrumb más compacto en móvil */
@media (max-width: 768px) {
  .single-product .woocommerce-breadcrumb {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }
}

/* RS MOBILE: agricultura tablet, reducir hueco tras slider */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-2452 .rs-sols,
  body.theme-agricultura .rs-sols {
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
  }

  body.page-id-2452 .rs-sols + *,
  body.theme-agricultura .rs-sols + * {
    margin-top: 0 !important;
  }
}
/* Agricultura tablet: maximo 3 productos por fila */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-id-2452 ul.products,
  body.page-id-2452 .products.columns-4,
  body.page-id-2452 .wp-block-post-template,
  body.page-id-2452 ul.wc-block-product-template,
  body.page-id-2452 ul.wc-block-grid__products,
  body.theme-agricultura ul.products,
  body.theme-agricultura .products.columns-4,
  body.theme-agricultura .wp-block-post-template,
  body.theme-agricultura ul.wc-block-product-template,
  body.theme-agricultura ul.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px 20px !important;
  }

  body.page-id-2452 ul.products > li.product,
  body.page-id-2452 .wp-block-post-template > li,
  body.page-id-2452 ul.wc-block-product-template > li,
  body.page-id-2452 ul.wc-block-grid__products > li,
  body.theme-agricultura ul.products > li.product,
  body.theme-agricultura .wp-block-post-template > li,
  body.theme-agricultura ul.wc-block-product-template > li,
  body.theme-agricultura ul.wc-block-grid__products > li {
    width: auto !important;
    margin: 0 !important;
    min-width: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
  }

  body.page-id-2452 ul.products > li.product .button,
  body.page-id-2452 .wp-block-button,
  body.page-id-2452 .wc-block-components-product-button,
  body.theme-agricultura ul.products > li.product .button,
  body.theme-agricultura .wp-block-button,
  body.theme-agricultura .wc-block-components-product-button {
    margin-top: auto !important;
  }
}

/* RS MOBILE POPUP: override final para dejar cada submenú en una sola fila */
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > button.ast-menu-toggle,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > button.ast-menu-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 0 !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  align-items: center !important;
  justify-content: center !important;
}

body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > a .icon-arrow,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > a .icon-arrow {
  display: none !important;
}

/* RS MOBILE POPUP: versión compacta, sin huecos ni botones duplicados */
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > button.ast-menu-toggle,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > button.ast-menu-toggle {
  display: none !important;
}

body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > a,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > a {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 10px 16px 10px 14px !important;
  margin: 0 !important;
}

body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > .sub-menu,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > .sub-menu {
  display: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  clear: both !important;
  position: static !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children.ast-submenu-expanded > .sub-menu,
body.rs-force-mobile-menu #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children.ast-submenu-expanded > .sub-menu {
  display: block !important;
}

/* RS MOBILE POPUP: override final con selector por ID para eliminar huecos */
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu {
  display: block !important;
  width: 100% !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li > a.menu-link,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li > a.menu-link {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  flex: none !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > a.menu-link,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children > a.menu-link {
  padding: 12px 52px 12px 20px !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li:not(.menu-item-has-children) > a.menu-link,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li:not(.menu-item-has-children) > a.menu-link {
  padding: 12px 20px !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li > a.menu-link > .dropdown-menu-toggle,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li > a.menu-link > .dropdown-menu-toggle,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li > a.menu-link > .ast-icon.icon-arrow,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li > a.menu-link > .ast-icon.icon-arrow {
  display: none !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > button.ast-menu-toggle,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children > button.ast-menu-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 6px !important;
  right: 0 !important;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
  z-index: 2 !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li.menu-item-has-children > .sub-menu,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children > .sub-menu {
  display: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  position: static !important;
  clear: both !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#ast-mobile-popup .ast-mobile-popup-content .main-header-menu li.menu-item-has-children.ast-submenu-expanded > .sub-menu,
#ast-mobile-popup .ast-mobile-popup-content .main-header-menu .sub-menu li.menu-item-has-children.ast-submenu-expanded > .sub-menu {
  display: block !important;
}
