/* RS VISUAL: tabs de producto, documentos, precio por unidad, IVA y relacionados */
.single-product .woocommerce-tabs ul.tabs {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	border: 0 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
	display: inline-flex !important;
	align-items: center !important;
	padding: 9px 14px !important;
	border-radius: 999px !important;
	border: 1px solid #d5e3db !important;
	background: #f7faf8 !important;
	color: #2f5c49 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	line-height: 1 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	background: #6f9f8d !important;
	border-color: #6f9f8d !important;
	color: #fff !important;
}

.single-product .woocommerce-tabs .panel {
	border: 1px solid #e4ece8;
	border-radius: 14px;
	padding: 16px;
	margin: 0 0 14px !important;
}

.single-product .woocommerce-tabs.rs-tabs-ready .panel {
	display: none;
}

.single-product .woocommerce-tabs.rs-tabs-ready .panel.rs-tab-active {
	display: block;
}



/* Astra Addon tabs fallback (when template is accordion/distributed) */
.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .ast-tab-header {
	display: none !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav li {
	margin: 0 !important;
	padding: 0 !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav button {
	display: inline-flex !important;
	align-items: center !important;
	padding: 9px 14px !important;
	border-radius: 999px !important;
	border: 1px solid #d5e3db !important;
	background: #f7faf8 !important;
	color: #2f5c49 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav li.is-active button {
	background: #6f9f8d !important;
	border-color: #6f9f8d !important;
	color: #fff !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .ast-distributed-content,
.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .ast-accordion-content {
	display: none !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .ast-distributed-content.rs-tab-active,
.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .ast-accordion-content.rs-tab-active {
	display: block !important;
}

.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .wc-tab.panel {
	display: block;
}

.rs-product-docs {
	margin: 8px 0 0;
	padding: 0;
}

.rs-product-docs--tab {
	margin: 0;
}

.rs-product-docs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rs-product-docs__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid #c7d8ce;
	background: #fff;
	color: #275943;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
}

.rs-product-docs__item:hover {
	background: #eef6f1;
}

.rs-product-docs__icon {
	font-size: 14px;
	line-height: 1;
}

.rs-unit-price {
	display: inline-block;
	margin-left: 6px;
	color: #4f6b5f;
	font-size: .82em;
	font-weight: 600;
	white-space: nowrap;
	opacity: .92;
}

.rs-vat-note {
	display: block;
	margin-top: 4px;
	color: #5f7568;
	font-size: .8em;
	font-weight: 600;
}



/* Better spacing for "Informacion adicional" table */
.single-product .woocommerce table.shop_attributes,
.single-product .woocommerce-product-attributes {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.single-product .woocommerce table.shop_attributes th,
.single-product .woocommerce table.shop_attributes td,
.single-product .woocommerce-product-attributes th,
.single-product .woocommerce-product-attributes td {
	padding: 12px 14px !important;
	line-height: 1.55;
	vertical-align: top;
	border-top: 0 !important;
}

.single-product .woocommerce table.shop_attributes tr+tr th,
.single-product .woocommerce table.shop_attributes tr+tr td,
.single-product .woocommerce-product-attributes tr+tr th,
.single-product .woocommerce-product-attributes tr+tr td {
	border-top: 1px solid #e8efeb !important;
}

.rs-related-more-wrap {
	margin: 10px 0 28px;
	text-align: center;
}

.rs-related-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 999px;
	background: #eef5f1;
	border: 1px solid #bfd2c6;
	color: #2f5c49;
	text-decoration: none !important;
	font-weight: 700;
}

.rs-related-more-btn:hover {
	background: #e2efe9;
}

/* RS MENU: submenús del menú de tienda en escritorio */
@media (min-width: 1366px) {
	ul.rs-storemenu li.menu-item-has-children {
		position: relative;
	}

	ul.rs-storemenu li.menu-item-has-children>.sub-menu {
		display: none;
	}

	ul.rs-storemenu li.menu-item-has-children:hover>.sub-menu,
	ul.rs-storemenu li.menu-item-has-children.focus>.sub-menu,
	ul.rs-storemenu li.menu-item-has-children.ast-submenu-expanded>.sub-menu {
		display: block;
	}
}

/* RS SEARCH: modal de Ivory Search y barra sticky móvil */
/* Oculta buscador inline de Ivory en header */
#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,
#ast-hf-menu-2>li.astm-search-menu>.search-close,
#ast-hf-menu-2-sticky>li.astm-search-menu>.search-close,
#ast-hf-menu-2>li.astm-search-menu>.is-ajax-search-result,
#ast-hf-menu-2-sticky>li.astm-search-menu>.is-ajax-search-result {
	display: none !important;
}

/* Buscador de escritorio: si la barra no cabe en el menú, menu.js añade rs-compact-search y queda solo la lupa,
   que abre el buscador en ventana (search.js). Gana a las reglas de custom.css que muestran la barra desde 1240px. */
html body.rs-compact-search #ast-hf-menu-2>li.astm-search-menu>form.is-search-form,
html body.rs-compact-search #ast-hf-menu-2-sticky>li.astm-search-menu>form.is-search-form {
	display: none !important;
}

html body.rs-compact-search #ast-hf-menu-2>li.astm-search-menu>a,
html body.rs-compact-search #ast-hf-menu-2-sticky>li.astm-search-menu>a {
	display: flex !important;
	align-items: center;
}

/* En móvil ocultamos lupa del drawer para no duplicar */
@media (max-width:768px) {

	/* Al mostrar la barra sticky, ocultar header movil normal */
	#ast-mobile-header .ast-main-header-wrap {
		max-height: 180px;
		overflow: hidden;
		transition: max-height .22s ease, opacity .22s ease, transform .22s ease;
	}

	body.rs-mobile-search-visible #ast-mobile-header .ast-main-header-wrap {
		max-height: 0 !important;
		opacity: 0 !important;
		transform: translateY(-8px) !important;
		pointer-events: none !important;
	}

	#ast-mobile-header #ast-hf-menu-2-mobile>li.astm-search-menu,
	#ast-mobile-header #ast-hf-mobile-menu>li.astm-search-menu {
		display: none !important;
	}
}

/* Modal desktop */
body.rs-ivory-open {
	overflow: hidden;
}

.rs-ivory-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	background: rgba(7, 13, 18, .55);
	backdrop-filter: blur(6px);
	padding: 20px;
}

body.rs-ivory-open .rs-ivory-modal {
	display: block;
}

.rs-ivory-modal__dialog {
	width: min(1240px, 96vw);
	height: min(86vh, 900px);
	margin: 3vh auto 0;
	background: #fff;
	border: 1px solid #dbe5ec;
	border-radius: 20px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
	position: relative;
	overflow: hidden;
}

.rs-ivory-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #d6e1e9;
	border-radius: 999px;
	background: #f8fbfa;
	color: #1f3b33;
	padding: 0;
	line-height: 1;
	cursor: pointer;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
	z-index: 30;
}

.rs-ivory-close:hover {
	transform: translateY(-1px);
	background: #fff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, .10);
}

.rs-ivory-close svg {
	width: 18px;
	height: 18px;
	display: block;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
}

.rs-ivory-modal__body {
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
}

.rs-ivory-modal .is-search-form {
	position: relative !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 46px !important;
	align-items: center !important;
	column-gap: 12px !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 72px 56px 12px !important;
	background: #fff !important;
}

.rs-ivory-modal .is-search-form>label {
	position: relative !important;
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
}

.rs-ivory-modal .is-search-input {
	height: 68px !important;
	width: 100% !important;
	border: 1px solid #d5e0e8 !important;
	border-radius: 16px !important;
	background: #f8fbfa !important;
	font-size: clamp(20px, 2.2vw, 32px) !important;
	color: #163a32 !important;
	padding: 0 20px !important;
	line-height: 1 !important;
	box-shadow: none !important;
}

.rs-ivory-modal .is-search-submit {
	position: static !important;
	transform: none !important;
	width: 46px !important;
	height: 46px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: #1f7a3a !important;
	box-shadow: 0 10px 20px rgba(31, 122, 58, .22) !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	z-index: 10 !important;
}

.rs-ivory-modal .is-search-submit:hover {
	background: #185f2d !important;
}

.rs-ivory-modal .is-search-submit .is-search-icon {
	width: 18px !important;
	height: 18px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.rs-ivory-modal .is-search-submit .is-search-icon svg {
	width: 18px !important;
	height: 18px !important;
	display: block;
}

.rs-ivory-modal .is-search-submit .is-search-icon path {
	fill: #fff !important;
}

.rs-ivory-loader {
	position: absolute;
	right: 18px !important;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid #cfe0eb;
	border-top-color: #1f7a3a;
	border-radius: 50%;
	animation: rsIvorySpin .7s linear infinite;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 11 !important;
}

.rs-ivory-loader.is-visible {
	opacity: 1;
}

@keyframes rsIvorySpin {
	to {
		transform: rotate(360deg);
	}
}

.rs-ivory-modal .is-ajax-search-details {
	display: none !important;
}

.rs-ivory-modal .is-ajax-search-result,
.rs-ivory-modal .is-search-results {
	position: static !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	border: 0 !important;
	box-shadow: none !important;
	max-height: calc(86vh - 110px) !important;
	overflow: auto !important;
	padding: 6px 10px 14px !important;
	background: #fff !important;
}

/* Ajustes modal en móvil: X grande y sin solape con la lupa */
@media (max-width:768px) {
	.rs-ivory-modal {
		padding: 10px;
	}

	.rs-ivory-modal__dialog {
		width: 100%;
		height: 92vh;
		margin: 2vh auto 0;
		border-radius: 14px;
	}

	.rs-ivory-modal__body {
		border-radius: 14px;
	}

	.rs-ivory-close {
		top: 12px;
		right: 12px;
		width: 42px;
		height: 42px;
	}

	.rs-ivory-modal .is-search-form {
		grid-template-columns: minmax(0, 1fr) 42px !important;
		column-gap: 8px !important;
		padding: 56px 12px 8px !important;
	}

	.rs-ivory-modal .is-search-input {
		height: 58px !important;
		font-size: 19px !important;
		padding: 0 14px !important;
	}

	.rs-ivory-modal .is-search-submit {
		width: 42px !important;
		height: 42px !important;
		border-radius: 12px !important;
	}

	.rs-ivory-modal .is-search-submit .is-search-icon,
	.rs-ivory-modal .is-search-submit .is-search-icon svg {
		width: 17px !important;
		height: 17px !important;
	}

	.rs-ivory-loader {
		right: 12px !important;
		width: 16px;
		height: 16px;
		margin-top: -8px;
	}

	.rs-ivory-modal .is-ajax-search-result,
	.rs-ivory-modal .is-search-results {
		max-height: calc(92vh - 96px) !important;
	}
}


/* Barra sticky móvil (sale al hacer scroll) */
.rs-mobile-sticky-search {
	display: none;
}

@media (max-width:768px) {
	.rs-mobile-sticky-search {
		display: block !important;
		position: fixed !important;
		left: 0;
		right: 0;
		top: 0;
		z-index: 100001;
		background: #fff;
		border-bottom: 1px solid #e2e8ee;
		padding: 10px 12px;
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: transform .2s ease, opacity .2s ease;
	}

	body.admin-bar .rs-mobile-sticky-search {
		top: 0 !important;
	}

	body.rs-mobile-search-visible .rs-mobile-sticky-search {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.rs-mobile-sticky-search__form {
		position: relative;
		margin: 0;
		cursor: pointer;
	}

	.rs-mobile-sticky-search__input {
		height: 48px;
		width: 100%;
		border: 1px solid #d4e0e7;
		border-radius: 12px;
		padding: 0 58px 0 14px;
		font-size: 16px;
		background: #f8fbfa;
		pointer-events: none;
	}

	.rs-mobile-sticky-search__btn {
		position: absolute;
		right: 8px;
		top: 50%;
		transform: translateY(-50%);
		display: flex;
		align-items: center;
		justify-content: center;
		border: 0;
		background: #1f7a3a;
		border-radius: 10px;
		padding: 0;
		width: 34px;
		height: 34px;
		line-height: 1;
		pointer-events: none;
	}

	.rs-mobile-sticky-search__btn svg {
		width: 16px;
		height: 16px;
		display: block;
	}
}

/* RS PRECIO POR CAJA: la sugerencia es un <button>; sin las mayúsculas de los botones del tema */
.single-product .rs-pack-savings__offer,
.single-product .rs-pack-savings__offer span {
	text-transform: none !important;
	letter-spacing: normal;
}

/* RS PRECIO POR CAJA: sugerencia aplicada al llegar a la cantidad de caja */
.single-product .rs-pack-savings.is-active .rs-pack-savings__offer {
	border-color: #2f5c49;
	background: #eef5f0;
}

.single-product .rs-pack-savings.is-active .rs-pack-savings__dot {
	border-color: #2f5c49;
	background: #2f5c49;
}

/* RS ACCESS: aviso de fitosanitario (venta solo en tienda física) con contacto por WhatsApp y email */
.rs-pro-only-box--fito .rs-pro-only-box__note {
	margin-top: 0;
}

.rs-pro-only-box--fito .rs-pro-only-box__btn.button {
	min-width: min(100%, 240px);
}

.rs-pro-only-box--fito .rs-pro-only-box__btn--whatsapp.button {
	background: #1f7a46;
	border: 1px solid #1f7a46;
	color: #fff;
}

.rs-pro-only-box--fito .rs-pro-only-box__btn--whatsapp.button:hover {
	background: #18653a;
	border-color: #18653a;
	color: #fff;
}

.rs-pro-only-box--fito .rs-pro-only-box__btn--email.button {
	background: #fff;
	border: 1px solid #2f5f50;
	color: #2f5f50;
}

.rs-pro-only-box--fito .rs-pro-only-box__btn--email.button:hover {
	background: #2f5f50;
	color: #fff;
}

@media (max-width: 544px) {
	.rs-pro-only-box--fito .rs-pro-only-box__actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.rs-pro-only-box--fito .rs-pro-only-box__btn.button {
		width: 100%;
		min-width: 0;
	}
}

/* RS HOME: portada (inc/home.php). El contenido de la página no se toca; esto da estilo a lo que se añade
   alrededor y compacta la versión móvil. */

/* Ancho de las secciones añadidas: 100 % menos los márgenes, centradas. (Dentro del contenedor flexible de
   la página, width:auto se estiraba hasta el ancho del carrusel de productos.) */
.rs-home-products,
.rs-home-pro,
.rs-home-visit {
	box-sizing: border-box;
	width: 100% !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.rs-home-products {
	max-width: min(1240px, 100%) !important;
}

.rs-home-pro,
.rs-home-visit {
	max-width: min(1200px, calc(100% - 32px)) !important;
}

@media (max-width: 768px) {
	/* La sección de categorías original tenía width:100% y margen lateral: desbordaba la pantalla. */
	.rs-home .agri-section {
		box-sizing: border-box;
		width: auto !important;
		max-width: calc(100% - 32px) !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}
}

/* Buscador bajo la cabecera */
.rs-home-search {
	max-width: 760px;
	margin: 28px auto 8px;
	padding: 0 16px;
}

.rs-home-search__field {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	min-height: 58px !important;
	padding: 0 20px !important;
	border: 1px solid #d5e0da !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	box-shadow: 0 10px 28px rgba(20, 40, 30, .08) !important;
	color: #6b7a72 !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	text-transform: none !important;
	cursor: pointer;
}

.rs-home-search__field svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: #2f5c49;
}

.rs-home-search__field:hover {
	border-color: #2f5c49 !important;
}

/* Categorías: sin huecos cuando se oculta una vacía (rs-tiles-N = pequeñas que quedan) */
.cat-grid-5.rs-tiles-3 > .cat-tile:not(.large):last-child,
.cat-grid-4.rs-tiles-3 > .cat-tile:not(.large):last-child,
.cat-grid-5.rs-tiles-1 > .cat-tile:not(.large),
.cat-grid-4.rs-tiles-1 > .cat-tile:not(.large) {
	grid-column: span 2;
}

.cat-grid-5.rs-tiles-1 > .cat-tile:not(.large),
.cat-grid-4.rs-tiles-1 > .cat-tile:not(.large) {
	grid-row: span 2;
}

/* Productos destacados */
.rs-home-products {
	max-width: 1240px;
	margin: 48px auto;
	padding: 0 20px;
}

.rs-home-products__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rs-home-products__title {
	margin: 0 !important;
	font-size: clamp(24px, 2.4vw, 32px) !important;
}

.rs-home-products__all {
	color: #2f5c49 !important;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

.rs-home-products--san .rs-home-products__all {
	color: #1f6fb6 !important;
}

.rs-home-products ul.products,
.rs-home-products ul.products li.product {
	margin-bottom: 0 !important;
}

/* Llamada para profesionales y «Visítanos» */
.rs-home-pro,
.rs-home-visit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	max-width: 1200px;
	margin: 48px auto;
	padding: 32px 36px;
	border-radius: 22px;
}

.rs-home-pro {
	border: 1px solid #d3e3f3;
	background: linear-gradient(135deg, #f5f9fd 0%, #eaf2fb 100%);
}

.rs-home-visit {
	border: 1px solid #d5e5dc;
	background: linear-gradient(135deg, #f8faf9 0%, #eef5f0 100%);
}

.rs-home-pro__text,
.rs-home-visit__text {
	flex: 1 1 420px;
	min-width: 0;
}

.rs-home-pro__kicker,
.rs-home-visit__kicker {
	margin: 0 0 6px !important;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rs-home-pro__kicker {
	color: #1f6fb6;
}

.rs-home-visit__kicker {
	color: #2f5c49;
}

.rs-home-pro__title,
.rs-home-visit__title {
	margin: 0 0 8px !important;
	font-size: clamp(24px, 2.6vw, 32px) !important;
}

.rs-home-pro p,
.rs-home-visit p {
	margin: 0;
	color: #3d4f46;
	font-size: 16px;
	line-height: 1.55;
}

.rs-home-pro__btn,
.rs-home-visit__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}

.rs-home-pro__btn {
	background: #1f6fb6;
	color: #ffffff !important;
}

.rs-home-pro__btn:hover {
	background: #185a94;
}

.rs-home-pro__pending {
	color: #1f5f9a !important;
	font-weight: 700;
}

.rs-home-visit__list {
	margin: 14px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
	color: #2d3a33;
	font-size: 15px;
	line-height: 1.7;
}

.rs-home-visit__list a {
	color: #2f5c49 !important;
	font-weight: 700;
}

.rs-home-visit__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rs-home-visit__btn--map {
	background: #2f5c49;
	color: #ffffff !important;
}

.rs-home-visit__btn--whatsapp {
	background: #1f7a46;
	color: #ffffff !important;
}

.rs-home-visit__btn--call {
	border: 1px solid #2f5c49;
	background: #ffffff;
	color: #2f5c49 !important;
}

/* Blog: sin «No hay comentarios» y fecha en minúsculas normales */
.rs-home .uagb-post__comment {
	display: none !important;
}

.rs-home .uagb-post__date {
	text-transform: none !important;
}

/* Móvil: portada más compacta */
@media (max-width: 768px) {
	.rs-home .beneficios-grid {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 18px 12px !important;
	}

	.rs-home .beneficios-grid .uagb-ifb-desc {
		font-size: 13px !important;
	}

	.rs-home-products ul.products {
		display: flex !important;
		gap: 12px !important;
		margin: 0 -20px !important;
		padding: 0 20px 10px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.rs-home-products ul.products::before,
	.rs-home-products ul.products::after {
		display: none !important;
	}

	.rs-home-products ul.products li.product {
		flex: 0 0 62% !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}

	.rs-home-products {
		margin: 32px auto;
	}

	.rs-home-pro,
	.rs-home-visit {
		margin-top: 32px;
		margin-bottom: 32px;
		padding: 24px 20px;
	}

	.rs-home-pro__btn,
	.rs-home-visit__actions,
	.rs-home-visit__btn {
		width: 100%;
	}

	.rs-home-visit__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.rs-home-visit__btn--map {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.rs-home .cat-grid-5,
	.rs-home .cat-grid-4 {
		grid-template-columns: 1fr 1fr !important;
	}

	.rs-home .cat-tile.large {
		grid-column: 1 / -1 !important;
		min-height: 200px !important;
	}

	.rs-home .cat-tile:not(.large) {
		min-height: 140px !important;
	}
}

/* RS PRO REGISTRATION: solicitud de acceso profesional en el registro y en «Detalles de la cuenta» */
.rs-pro-request {
	margin: 18px 0 !important;
	padding: 16px 18px !important;
	border: 1px solid #d3e3f3 !important;
	border-radius: 14px;
	background: #f5f9fd;
}

.rs-pro-request legend {
	padding: 0 6px !important;
	color: #1f5f9a;
	font-size: 14px;
	font-weight: 700;
}

.rs-pro-request__toggle label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
	line-height: 1.4;
}

.rs-pro-request__toggle input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 1px 0 0 !important;
}

.rs-pro-request__fields {
	display: none;
	margin-top: 6px;
}

.rs-pro-request:has(#rs_is_pro:checked) .rs-pro-request__fields,
.rs-pro-request:has(input[type="hidden"][name="rs_is_pro"]) .rs-pro-request__fields {
	display: block;
}

.rs-pro-request .optional {
	color: #6b7a72;
	font-weight: 400;
}

.rs-pro-request__note,
.rs-pro-request__pending,
.rs-pro-request__ok {
	margin: 6px 0 0 !important;
	color: #3d4f46;
	font-size: 14px;
	line-height: 1.45;
}

.rs-pro-request__ok {
	color: #1e6b3e;
}

/* RS PRODUCT PAGE: ficha de producto (inc/product-page.php y la barra de compra de assets/js/product.js) */

/* Menos hueco entre la cabecera y la ficha */
.single-product #primary {
	margin-top: 20px !important;
}

.single-product .ast-woocommerce-container {
	padding-top: 12px !important;
}

/* Migas de pan (las flechas anterior / siguiente van a su derecha: custom.css) */
.single-product .summary .woocommerce-breadcrumb {
	margin: 0 0 10px !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
}

.single-product .summary .product_title {
	margin-bottom: 8px !important;
}

/* Documentos en el resumen */
.rs-summary-docs,
.rs-pdesc__docs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rs-summary-docs {
	margin: 14px 0 18px;
}

.rs-pdesc__docs {
	flex-direction: column;
}

.rs-doc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 7px 7px;
	border: 1px solid #dfe6e2;
	border-radius: 10px;
	background: #ffffff;
	color: #1f2a24 !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: border-color .15s ease, background-color .15s ease;
}

.rs-doc-btn:hover,
.rs-doc-btn:focus-visible {
	border-color: #2f5c49;
	background: #f4f7f5;
}

.rs-doc-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 26px;
	border-radius: 6px;
	background: #b42318;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
}

/* Bloque de confianza bajo la compra (sustituye al recuadro «Pago seguro») */
.single-product .summary .ast-single-product-payments {
	display: none !important;
}

.rs-trust {
	display: grid;
	gap: 10px;
	margin: 18px 0 16px !important;
	padding: 14px 16px !important;
	border: 1px solid #e3ebe6;
	border-radius: 14px;
	background: #f8faf9;
	list-style: none !important;
}

.rs-trust__item {
	position: relative;
	margin: 0 !important;
	padding-left: 30px;
	color: #2d3a33;
	font-size: 14px;
	line-height: 1.45;
}

.rs-trust__item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	background: no-repeat center / 20px 20px;
}

.rs-trust__item--card::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6.5 15h4'/%3E%3C/svg%3E"); }
.rs-trust__item--truck::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5h11v9h-11zM13.5 9.5h4l3 3v3h-7z'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.rs-trust__item--return::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); }
.rs-trust__item--chat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f5c49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 11.5a8.5 8.5 0 0 1-12.3 7.6L3.5 20.5l1.4-4.5a8.5 8.5 0 1 1 15.6-4.5z'/%3E%3C/svg%3E"); }

.rs-trust__link {
	color: #2f5c49 !important;
	font-weight: 700;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

.single-product .summary .product_meta {
	color: #6b7a72;
	font-size: 13px;
}

/* Descripción: texto + ficha técnica lateral, a todo el ancho y sin el marco antiguo */
html body.single-product .ast-woocommerce-tabs .ast-single-tab,
html body.single-product .ast-woocommerce-tabs .ast-distributed-content,
html body.single-product .ast-woocommerce-tabs .ast-distributed-wrap,
html body.single-product .ast-woocommerce-tabs .woocommerce-Tabs-panel {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.single-product .ast-woocommerce-tabs .ast-distributed-content,
.single-product .ast-woocommerce-tabs .ast-distributed-wrap,
.single-product .woocommerce-tabs .panel {
	width: 100% !important;
	max-width: none !important;
}

.rs-pdesc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
	align-items: start;
	margin: 0;
}

.rs-pdesc--single {
	grid-template-columns: minmax(0, 1fr);
}

.rs-pdesc__main {
	max-width: 780px;
	color: #33413a;
	font-size: 16px;
	line-height: 1.65;
}

.rs-pdesc__main > :first-child {
	margin-top: 0 !important;
}

.rs-pdesc__main h3 {
	margin: 26px 0 10px !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
}

.rs-pdesc__side {
	position: sticky;
	top: 130px;
	padding: 20px;
	border: 1px solid #e3ebe6;
	border-radius: 16px;
	background: #f8faf9;
}

.rs-pdesc__side-title {
	margin: 0 0 8px !important;
	color: #6b7a72 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rs-specs {
	margin: 0 0 20px !important;
}

.rs-specs__row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #e3ebe6;
	font-size: 14px;
	line-height: 1.4;
}

.rs-specs__row dt {
	margin: 0;
	color: #6b7a72;
	font-weight: 600;
}

.rs-specs__row dd {
	margin: 0;
	color: #1f2a24;
	font-weight: 600;
}

/* Pestañas: con una sola («Descripción») se muestra como título de sección */
html body.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav li:only-child,
html body.single-product .ast-woocommerce-tabs.rs-ast-tabs-ready .rs-ast-tabs-nav li.is-active:only-child button {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: #1f2a24 !important;
	font-size: 26px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: default;
}

@media (max-width: 921px) {
	.rs-pdesc {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.rs-pdesc__side {
		position: static;
	}
}

/* Listados: etiqueta cuando el precio no se ve o el producto no se vende online */
.rs-loop-tag {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.rs-loop-tag--pro {
	background: #eaf2fb;
	color: #1f5f9a;
}

.rs-loop-tag--fito {
	background: #fff4e0;
	color: #8a5300;
}

/* Tarjetas de producto en listados, relacionados y complementos: títulos legibles de 2–3 líneas */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 6px !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
}

.single-product section.related ul.products li.product .woocommerce-loop-product__title,
.single-product .rs-complements ul.products li.product .woocommerce-loop-product__title {
	-webkit-line-clamp: 2;
	font-size: 14px !important;
}

.woocommerce ul.products li.product .ast-woo-product-category {
	font-size: 12px !important;
	line-height: 1.35 !important;
}

/* Sin selector de formato en la tarjeta si solo hay uno o si el usuario no puede comprar el producto */
.woocommerce ul.products li.product.rs-pro-only .cfvsw_variations_form,
.woocommerce ul.products li.product .cfvsw_variations_form:not(:has(.cfvsw-swatches-option + .cfvsw-swatches-option)) {
	display: none !important;
}

/* «Complementa tu compra» (inc/catalog.php) */
.single-product .rs-complements {
	margin: 0 0 48px;
	padding: 24px;
	border: 1px solid #e3ebe6;
	border-radius: 18px;
	background: #f8faf9;
}

.single-product .rs-complements__title {
	margin: 0 0 16px !important;
	font-size: 24px !important;
}

.single-product .rs-complements ul.products {
	margin-bottom: 0 !important;
}

@media (max-width: 768px) {
	.single-product .rs-complements {
		padding: 18px 16px;
	}

	.single-product section.related ul.products,
	.single-product .rs-complements ul.products {
		display: flex !important;
		gap: 12px !important;
		margin: 0 -16px !important;
		padding: 0 16px 10px !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.single-product section.related ul.products::before,
	.single-product section.related ul.products::after,
	.single-product .rs-complements ul.products::before,
	.single-product .rs-complements ul.products::after {
		display: none !important;
	}

	.single-product section.related ul.products li.product,
	.single-product .rs-complements ul.products li.product {
		flex: 0 0 62% !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}
}

/* Barra de compra fija en móvil */
.rs-buybar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid #e3ebe6;
	background: #ffffff;
	box-shadow: 0 -8px 24px rgba(20, 40, 30, .08);
}

.rs-buybar[hidden] {
	display: none;
}

.rs-buybar__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.rs-buybar__name {
	overflow: hidden;
	color: #5d6d65;
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rs-buybar__price {
	color: #1f2a24;
	font-size: 16px;
	font-weight: 800;
}

.rs-buybar__price br,
.rs-buybar__price .rs-vat-note,
.rs-buybar__price .rs-unit-price {
	display: none !important;
}

.rs-buybar__btn {
	flex: 0 0 auto;
	height: 46px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #2f5c49 !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

body.rs-buybar-visible {
	padding-bottom: 72px;
}

/* RS SEARCH: buscador en ventana (accesos rápidos, resultados y móvil a pantalla completa).
   Los accesos rápidos vienen de inc/search.php y se ocultan al escribir (search.js añade rs-has-query).
   Ivory pinta los resultados fuera de la ventana (al final del body), por eso van con body.rs-ivory-open. */
.rs-search-suggest {
	padding: 6px 56px 32px;
}

.rs-ivory-modal.rs-has-query .rs-search-suggest {
	display: none;
}

.rs-search-suggest__title {
	margin: 18px 0 10px;
	color: #7a8a82;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rs-search-suggest__stores {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.rs-search-suggest__store {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 68px;
	padding: 12px 44px 12px 16px;
	border: 1px solid #d5e5dc;
	border-radius: 14px;
	background: #eef5f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%232f5c49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px;
	color: #2f5c49;
	text-decoration: none;
}

.rs-search-suggest__store--san {
	border-color: #d3e3f3;
	background-color: #eaf2fb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%231f6fb6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	color: #1f6fb6;
}

.rs-search-suggest__store strong {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.rs-search-suggest__store span {
	color: #5d6d65;
	font-size: 13px;
}

.rs-search-suggest__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rs-search-suggest__chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid #dfe6e2;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2a24;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}

.rs-search-suggest__chip:hover,
.rs-search-suggest__chip:focus-visible {
	border-color: #2f5c49;
	background: #eef5f0;
	color: #1f2a24;
}

/* Resultados mientras se escribe (sin el marco gris de Ivory) */
body.rs-ivory-open .is-ajax-search-result,
body.rs-ivory-open .is-ajax-search-result .is-ajax-search-items,
body.rs-ivory-open .is-ajax-search-result .is-ajax-search-posts,
body.rs-ivory-open .is-ajax-search-result .is-ajax-search-categories {
	padding: 0 !important;
	border: 0 !important;
	background: #ffffff !important;
	box-shadow: none !important;
}

body.rs-ivory-open .is-ajax-search-result .is-ajax-search-categories {
	padding: 10px 16px 4px !important;
}

body.rs-ivory-open .is-ajax-search-result .is-ajax-search-post {
	padding: 12px 16px !important;
	border-bottom: 1px solid #edf1ef !important;
	background: #ffffff !important;
}

body.rs-ivory-open .is-ajax-search-result .is-search-sections {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
}

body.rs-ivory-open .is-ajax-search-result .left-section {
	flex: 0 0 56px !important;
	width: 56px !important;
	margin: 0 !important;
}

body.rs-ivory-open .is-ajax-search-result .thumbnail img {
	display: block !important;
	width: 56px !important;
	height: 56px !important;
	object-fit: contain !important;
	border-radius: 10px !important;
	background: #f4f7f5 !important;
}

body.rs-ivory-open .is-ajax-search-result .right-section {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	margin: 0 !important;
}

body.rs-ivory-open .is-ajax-search-result .is-title a {
	color: #1f2a24 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}

body.rs-ivory-open .is-ajax-search-result .is-ajax-result-description {
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	margin-top: 2px !important;
	color: #5d6d65 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
}

/* Móvil: pantalla completa, campo arriba con «Cancelar» y resultados a todo el ancho */
@media (max-width: 768px) {
	.rs-ivory-modal {
		padding: 0;
		backdrop-filter: none;
	}

	.rs-ivory-modal__dialog {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.rs-ivory-modal__body {
		height: 100%;
		border-radius: 0;
		overflow-y: auto;
	}

	.rs-ivory-modal .is-search-form {
		grid-template-columns: minmax(0, 1fr) !important;
		padding: 14px 104px 12px 16px !important;
		border-bottom: 1px solid #edf1ef !important;
	}

	html body .rs-ivory-modal .is-search-form .is-search-input {
		height: 48px !important;
		padding: 0 14px 0 44px !important;
		border: 1px solid #dfe6e2 !important;
		border-radius: 12px !important;
		background: #f4f7f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f5c49' d='M10.5 4a6.5 6.5 0 1 1 0 13a6.5 6.5 0 0 1 0-13m0-2a8.5 8.5 0 1 0 5.33 15.12l4.52 4.53l1.42-1.42l-4.53-4.52A8.5 8.5 0 0 0 10.5 2z'/%3E%3C/svg%3E") no-repeat 14px center / 20px 20px !important;
		color: #1f2a24 !important;
		font-size: 16px !important;
	}

	.rs-ivory-modal .is-search-submit {
		display: none !important;
	}

	.rs-ivory-loader {
		right: 118px !important;
	}

	.rs-ivory-close {
		top: 14px;
		right: 8px;
		width: auto;
		height: 48px;
		padding: 0 12px;
		border: 0;
		border-radius: 10px;
		background: transparent;
		box-shadow: none;
		color: #2f5c49;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0;
		text-transform: none;
	}

	.rs-ivory-close:hover {
		transform: none;
		background: #eef5f0;
		box-shadow: none;
	}

	.rs-ivory-close svg {
		display: none;
	}

	.rs-ivory-close::after {
		content: 'Cancelar';
	}

	.rs-search-suggest {
		padding: 2px 16px 28px;
	}

	.rs-search-suggest__stores {
		grid-template-columns: minmax(0, 1fr);
	}

	body.rs-ivory-open .is-ajax-search-result {
		left: 0 !important;
		width: 100% !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
	}

	body.rs-ivory-open .is-ajax-search-result .is-ajax-search-items {
		max-height: calc(100vh - 76px) !important;
		max-height: calc(100dvh - 76px) !important;
	}
}


/* RS MOBILE POPUP: menú lateral (móvil y tablet con menú móvil forzado).
   Buscador arriba, tiendas como tarjetas, páginas o categorías en lista limpia, cuenta y ayuda al final.
   El buscador y la ayuda vienen de inc/menu.php (menu.js los coloca dentro del panel). */
html body #ast-mobile-popup .ast-mobile-popup-inner,
html body #ast-mobile-popup .ast-mobile-popup-header,
html body #ast-mobile-popup .ast-mobile-popup-content {
	background: #ffffff !important;
}

html body #ast-mobile-popup .ast-mobile-popup-header {
	padding: 14px 16px 6px !important;
	border-bottom: 0 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content {
	display: flex !important;
	flex-direction: column !important;
	padding: 4px 16px 28px !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content > * {
	flex-shrink: 0 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content > .rs-drawer-search { order: 0; }
html body #ast-mobile-popup .ast-mobile-popup-content > .ast-builder-menu-mobile { order: 1; }
html body #ast-mobile-popup .ast-mobile-popup-content > .ast-builder-menu-2 { order: 2; }
html body #ast-mobile-popup .ast-mobile-popup-content > .ast-header-account { order: 3; }
html body #ast-mobile-popup .ast-mobile-popup-content > .rs-drawer-help { order: 4; }

html body #ast-mobile-popup .ast-mobile-popup-content .ast-builder-menu,
html body #ast-mobile-popup .ast-mobile-popup-content .ast-main-header-bar-alignment,
html body #ast-mobile-popup .ast-mobile-popup-content .main-header-bar-navigation,
html body #ast-mobile-popup .ast-mobile-popup-content nav.site-navigation,
html body #ast-mobile-popup .ast-mobile-popup-content .main-navigation,
html body #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu > li,
html body #ast-mobile-popup .ast-mobile-popup-content ul.main-header-menu .sub-menu > li {
	width: 100% !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

/* Buscador: parece una caja de texto y abre el buscador en ventana */
html body #ast-mobile-popup .rs-drawer-search {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	height: 48px !important;
	margin: 2px 0 18px !important;
	padding: 0 16px !important;
	border: 1px solid #dfe6e2 !important;
	border-radius: 12px !important;
	background: #f4f7f5 !important;
	box-shadow: none !important;
	color: #6b7a72 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left !important;
	cursor: pointer;
}

html body #ast-mobile-popup .rs-drawer-search svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: #2f5c49;
}

html body.theme-sanidad #ast-mobile-popup .rs-drawer-search svg {
	fill: #1f6fb6;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.astm-search-menu {
	display: none !important;
}

/* Tiendas: tarjetas con color, subtítulo y flecha */
html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu {
	display: grid !important;
	gap: 10px !important;
	margin-bottom: 22px !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu > li > a.menu-link {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 2px !important;
	min-height: 68px !important;
	padding: 12px 44px 12px 16px !important;
	border: 1px solid #d5e5dc !important;
	border-radius: 14px !important;
	background: #eef5f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%232f5c49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px 18px !important;
	box-shadow: none !important;
	color: #2f5c49 !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.25 !important;
	letter-spacing: .01em !important;
	text-transform: uppercase !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu > li > a.menu-link[href*="sanidad-ambiental"] {
	border-color: #d3e3f3 !important;
	background-color: #eaf2fb !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%231f6fb6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	color: #1f6fb6 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu > li > a.menu-link::after {
	display: block !important;
	color: #5d6d65 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu > li > a.menu-link[href*="agricultura-huerto-jardin"]::after {
	content: 'Huerto, jardín, nutrición y sanidad vegetal' !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-mobile-menu > li > a.menu-link[href*="sanidad-ambiental"]::after {
	content: 'Control de plagas para profesionales' !important;
}

/* Páginas o categorías de la tienda: lista limpia con título de sección */
html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile::before {
	content: 'Más información';
	display: block;
	margin: 0 0 4px;
	color: #7a8a82;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

html body.theme-agricultura #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile::before,
html body.theme-sanidad #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile::before {
	content: 'Categorías';
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile > li > a.menu-link {
	display: flex !important;
	align-items: center !important;
	min-height: 52px !important;
	padding: 12px 40px 12px 2px !important;
	border-bottom: 1px solid #edf1ef !important;
	border-radius: 0 !important;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%239aa8a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center / 16px 16px !important;
	color: #1f2a24 !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.menu-item-has-children > a.menu-link {
	background-image: none !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.current-menu-item > a.menu-link,
html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile > li.current-menu-ancestor > a.menu-link {
	color: #2f5c49 !important;
	font-weight: 700 !important;
}

/* Subcategorías: sangradas con una línea guía */
html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile .sub-menu {
	margin: 4px 0 10px 4px !important;
	padding: 0 0 0 12px !important;
	border-left: 2px solid #e3ebe6 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content #ast-hf-menu-2-mobile .sub-menu li > a.menu-link {
	min-height: 44px !important;
	padding: 10px 40px 10px 4px !important;
	border: 0 !important;
	background: transparent !important;
	color: #4d5c55 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	text-transform: none !important;
}

/* Flecha de los submenús: centrada (Astra le da 15 px de margen superior) */
html body #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > button.ast-menu-toggle {
	top: 6px !important;
	right: 0 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content .sub-menu li.menu-item-has-children > button.ast-menu-toggle {
	top: 2px !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > button.ast-menu-toggle .ast-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 18px !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content li.menu-item-has-children > button.ast-menu-toggle .ast-icon svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	top: 0 !important;
}

/* Cuenta: fila con icono y texto */
html body #ast-mobile-popup .ast-mobile-popup-content > .ast-header-account {
	margin: 18px 0 0 !important;
	padding: 0 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content .ast-header-account-link {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	width: auto !important;
	height: auto !important;
	text-decoration: none !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #1f2a24 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

html body #ast-mobile-popup .ast-mobile-popup-content .ast-header-account-link::after {
	content: 'Mi cuenta';
}

/* Ayuda */
html body #ast-mobile-popup .rs-drawer-help {
	margin: 20px 0 0 !important;
	padding: 16px !important;
	border-radius: 16px !important;
	background: #f4f7f5 !important;
}

html body #ast-mobile-popup .rs-drawer-help__title {
	margin: 0 0 2px !important;
	color: #1f2a24 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
}

html body #ast-mobile-popup .rs-drawer-help__hours {
	margin: 0 0 12px !important;
	color: #5d6d65 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
}

html body #ast-mobile-popup .rs-drawer-help__actions {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 8px !important;
}

html body #ast-mobile-popup .rs-drawer-help__btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 44px !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}

html body #ast-mobile-popup .rs-drawer-help__btn--call {
	border: 1px solid #2f5c49 !important;
	background: #ffffff !important;
	color: #2f5c49 !important;
}

html body #ast-mobile-popup .rs-drawer-help__btn--whatsapp {
	border: 1px solid #1f7a46 !important;
	background: #1f7a46 !important;
	color: #ffffff !important;
}
