.ffc-config-wrap {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 20px;
	background: #fafafa;
}
.ffc-config-wrap h4 {
	margin-top: 0;
}
.ffc-tabla-variedades th,
.ffc-tabla-variedades td {
	padding: 6px 8px;
	border-bottom: 1px solid #eee;
}
.ffc-resumen {
	font-weight: 600;
}
.ffc-add-to-cart-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
.ffc-boton-ecommerce {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
}
.ffc-boton-ecommerce.ffc-boton-activo {
	background: #2e7d32;
	color: #fff;
}
.ffc-boton-ecommerce.ffc-boton-verificar {
	background: #1565c0;
	color: #fff;
	border: none;
	cursor: pointer;
}
.ffc-boton-ecommerce.ffc-boton-no-disponible {
	background: #eee;
	color: #666;
	font-weight: 400;
	cursor: default;
}
.ffc-solo-muestrario {
	font-style: italic;
	color: #777;
	font-size: 0.9em;
}

/* ---------- Armador de caja: contadores +/- y grilla de variedades ---------- */

.ffc-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ffc-stepper button {
	width: 28px;
	height: 28px;
	border: 1px solid #ccc;
	background: #f6f7f7;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1.1em;
	line-height: 1;
}
.ffc-stepper button:hover {
	background: #e8e8e8;
}
.ffc-stepper input {
	width: 40px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 4px;
}
.ffc-armador-otras-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 14px;
	margin-top: 10px;
}
.ffc-otra-variedad {
	text-align: center;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 8px;
}
.ffc-otra-variedad img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 6px;
}
.ffc-otra-variedad-nombre {
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 6px;
	min-height: 2.2em;
}
.ffc-otra-variedad select.ffc-otra-talla {
	width: 100%;
	margin-bottom: 6px;
	font-size: 0.85em;
}
.ffc-armador-modo-eleccion {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0;
}
.ffc-armador-botones-final {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.ffc-armador-nota-finca {
	background: #eef7ee;
	border-left: 4px solid #2e7d32;
	padding: 8px 12px;
	font-size: 0.9em;
}

/* ---------- Mayoristas: enlace, modal y rollover ---------- */

.ffc-mayorista-abrir-modal {
	font-weight: 600;
	text-decoration: underline;
}
.ffc-mayorista-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ffc-mayorista-modal {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 90%;
	max-width: 420px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}
.ffc-mayorista-cerrar {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.2em;
	cursor: pointer;
}
.ffc-mayorista-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}
.ffc-mayorista-tab {
	flex: 1;
	padding: 8px;
	border: 1px solid #ccc;
	background: #f6f7f7;
	cursor: pointer;
	border-radius: 4px;
}
.ffc-mayorista-tab.activa {
	background: #2e7d32;
	color: #fff;
	border-color: #2e7d32;
}
.ffc-mayorista-panel input[type="email"],
.ffc-mayorista-panel input[type="password"],
.ffc-mayorista-panel select {
	display: block;
	width: 100%;
	margin-bottom: 10px;
	padding: 8px;
}
.ffc-mayorista-captcha {
	background: #f6f7f7;
	padding: 8px;
	border-radius: 4px;
}
.ffc-mayorista-trigger {
	font-weight: 600;
	text-decoration: underline dotted;
	cursor: pointer;
}
.ffc-mayorista-precio-flotante {
	display: inline-block;
	margin-left: 8px;
	padding: 4px 10px;
	background: #2e7d32;
	color: #fff;
	border-radius: 4px;
	font-weight: 600;
}

/* ---------- Catálogo con filtros [sobella_catalogo] ---------- */

.ffc-catalogo-barra {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 14px;
}
.ffc-catalogo-general {
	flex: 0 0 auto;
	min-width: 180px;
	padding: 8px 10px;
}
.ffc-catalogo-abrir-filtros {
	flex: 0 0 auto;
}
.ffc-catalogo-filtros-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ffc-catalogo-filtros-modal {
	background: #fff;
	border-radius: 8px;
	padding: 24px;
	width: 90%;
	max-width: 520px;
	max-height: 85vh;
	overflow-y: scroll; /* siempre visible (no "auto"), para que el usuario note que hay más contenido más abajo */
	position: relative;
	scrollbar-width: auto;
	scrollbar-color: #999 #f0f0f0;
}
.ffc-catalogo-filtros-modal::-webkit-scrollbar {
	width: 12px;
}
.ffc-catalogo-filtros-modal::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 6px;
}
.ffc-catalogo-filtros-modal::-webkit-scrollbar-thumb {
	background: #999;
	border-radius: 6px;
}
.ffc-catalogo-filtros-botones-derecha {
	display: flex;
	gap: 8px;
}
.ffc-catalogo-filtros-generales label,
.ffc-catalogo-filtros-tipos label,
.ffc-catalogo-filtros-colores label {
	display: inline-block;
	margin: 0 12px 8px 0;
	font-size: 0.92em;
}
.ffc-catalogo-filtros-botones {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	border-top: 1px solid #eee;
	padding-top: 14px;
}
.ffc-catalogo-tipo {
	flex: 0 0 auto;
	min-width: 200px;
	padding: 8px 10px;
	font-size: 1em;
}
.ffc-catalogo-buscar {
	flex: 1 1 240px;
	min-width: 200px;
	padding: 8px 10px;
	font-size: 1em;
}

/* Fila de botones de color: se acomodan uno junto a otro, ancho mínimo
   utilizable como botón, y saltan de línea automáticamente si no caben. */
.ffc-catalogo-colores {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* así la última fila queda centrada y no pegada a la izquierda */
	gap: 0;
	width: 100%;
	margin-bottom: 18px;
}
.ffc-color-btn {
	height: 46px;
	min-height: 0;
	box-sizing: border-box;
	overflow: hidden;
	padding: 2px 8px;
	border: none;
	border-radius: 0;
	font-weight: 600;
	font-size: 0.85em;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: inset 0 0 0 2px transparent;
	transition: box-shadow 0.15s ease;
}
.ffc-color-btn:hover {
	box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25);
}
.ffc-color-btn.activo {
	box-shadow: inset 0 0 0 3px #000;
}

.ffc-catalogo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--ffc-catalogo-gap, 18px);
}
.ffc-catalogo-tarjeta {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.ffc-catalogo-tarjeta:hover {
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ffc-catalogo-tarjeta-img img {
	width: 100%;
	height: auto;
	display: block;
}
.ffc-catalogo-tarjeta-info {
	padding: 10px 12px;
}
.ffc-catalogo-tarjeta-info h3 {
	font-size: 1em;
	margin: 0 0 6px 0;
}
.ffc-catalogo-precio {
	font-weight: 600;
}
.ffc-catalogo-tarjeta-minimal {
	border: none !important;
	box-shadow: none !important;
}
.ffc-catalogo-tarjeta-bordered {
	border: 2px solid #2e7d32 !important;
}
.ffc-catalogo-no-disponible {
	text-align: center;
	color: #777;
	padding: 30px 0;
}
.ffc-catalogo-sin-resultados {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 30px 0;
}
.ffc-catalogo-paginacion {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 20px;
}
.ffc-catalogo-pagina-btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
}
.ffc-catalogo-pagina-btn.activa {
	background: #2e7d32;
	color: #fff;
	border-color: #2e7d32;
}
