/**
 * Manum Shortcodes — Woodmart-compatible styles.
 *
 * All colors and visual tokens use Woodmart CSS custom properties
 * with safe fallbacks so these shortcodes blend perfectly into
 * the active Woodmart configuration.
 *
 * @since 1.1.0
 */

/* =================================================================
   SHARED / BASE
   ================================================================= */

.manum-shortcode {
	font-family: inherit;
	line-height: 1.6;
	color: var(--wd-text-color, #333);
}

.manum-shortcode-empty {
	padding: 20px;
	text-align: center;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius, 4px);
	color: var(--wd-text-color-light, #777);
}

/* Section headings */
.manum-section-title {
	font-size: 22px;
	margin: 0 0 20px;
	padding-left: 15px;
	border-left: 4px solid var(--wd-primary-color, #83b735);
	color: var(--wd-header-color, #333);
}

.manum-section-icon {
	margin-right: 8px;
	vertical-align: middle;
	color: var(--wd-primary-color, #83b735);
}

/* Buttons */
.manum-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border-radius: var(--wd-radius, 4px);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.manum-btn-primary {
	background-color: var(--wd-primary-color, #83b735);
	color: #fff;
}

.manum-btn-primary:hover {
	background-color: var(--wd-btn-color-hover, #6a9a2a);
	color: #fff;
}

.manum-btn-secondary {
	background-color: var(--wd-bg-color-light, #f7f7f7);
	color: var(--wd-link-color, #333);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
}

.manum-btn-secondary:hover {
	background-color: var(--wd-primary-color, #83b735);
	color: #fff;
	border-color: var(--wd-primary-color, #83b735);
}

/* Search input */
.manum-search-input {
	width: 100%;
	max-width: 400px;
	padding: 10px 15px;
	border: 1px solid var(--wd-form-brd-color, #ddd);
	border-radius: var(--wd-radius, 4px);
	font-size: 14px;
	color: var(--wd-text-color, #333);
	background: var(--wd-bg-color, #fff);
	transition: border-color 0.25s ease;
}

.manum-search-input:focus {
	outline: none;
	border-color: var(--wd-primary-color, #83b735);
	box-shadow: 0 0 0 2px rgba(131, 183, 53, 0.15);
}

/* Count badges */
.manum-errores-count,
.manum-averias-count,
.manum-recambios-count {
	font-size: 13px;
	color: var(--wd-text-color-light, #777);
	margin-bottom: 15px;
}

/* =================================================================
   FICHA CARD
   ================================================================= */

.manum-modelo-ficha-card {
	display: flex;
	flex-direction: column;
	background: var(--wd-bg-color, #fff);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-radius: var(--wd-radius, 4px);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.manum-modelo-ficha-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.manum-ficha-thumbnail {
	overflow: hidden;
	background: var(--wd-bg-color-light, #f7f7f7);
}

.manum-ficha-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.manum-modelo-ficha-card:hover .manum-ficha-thumbnail img {
	transform: scale(1.03);
}

.manum-ficha-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.manum-ficha-title {
	font-size: 18px;
	margin: 0 0 12px;
	color: var(--wd-header-color, #333);
}

.manum-ficha-title a {
	color: var(--wd-link-color, #333);
	text-decoration: none;
	transition: color 0.2s ease;
}

.manum-ficha-title a:hover {
	color: var(--wd-link-color-hover, var(--wd-primary-color, #83b735));
}

.manum-ficha-meta {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--wd-text-color-light, #777);
}

.manum-ficha-meta span {
	display: inline-block;
	margin-right: 15px;
	margin-bottom: 4px;
}

.manum-ficha-meta strong {
	color: var(--wd-text-color, #333);
}

.manum-ficha-desc {
	font-size: 14px;
	color: var(--wd-text-color-light, #666);
	margin-bottom: 15px;
	flex: 1;
}

.manum-ficha-actions {
	margin-top: auto;
	padding-top: 10px;
}

/* =================================================================
   SPECS TABLE
   ================================================================= */

h3.manum-specs-group-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--wd-header-color, #333);
	margin: 18px 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--wd-bordered-color, #e0e0e0);
}

h3.manum-specs-group-title:first-child {
	margin-top: 0;
}

.manum-tech-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.manum-tech-spec {
	padding: 15px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius-s, 3px);
	border-left: 3px solid #2271b1;
}

.manum-tech-spec dt {
	font-weight: 600;
	color: var(--wd-header-color, #333);
	margin-bottom: 4px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.manum-tech-spec dd {
	color: var(--wd-text-color, #555);
	margin: 0;
	font-size: 15px;
	font-weight: 500;
}

.manum-specs-obs-content {
	padding: 15px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius-s, 3px);
	color: var(--wd-text-color, #555);
	font-size: 14px;
}

/* =================================================================
   MANUALES
   ================================================================= */

.manum-manuals-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.manum-manual-item {
	padding: 18px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius, 4px);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: background-color 0.2s ease;
}

.manum-manual-item:hover {
	background: var(--wd-bg-color, #fff);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.manum-manual-icon svg {
	display: block;
}

.manum-manual-info {
	flex: 1;
}

.manum-manual-info h4 {
	margin: 0 0 4px;
	font-size: 15px;
	color: var(--wd-header-color, #333);
}

.manum-manual-langs {
	margin: 0 0 2px;
	color: var(--wd-text-color-light, #777);
	font-size: 13px;
}

.manum-manual-filename {
	margin: 0;
	color: var(--wd-text-color-light, #999);
	font-size: 12px;
	font-family: monospace;
}

.manum-manual-download {
	flex-shrink: 0;
}

/* =================================================================
   ERROR CODES
   ================================================================= */

.manum-errores-search {
	margin-bottom: 20px;
}

.manum-error-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.manum-error-item {
	padding: 20px;
	background: #fff5f5;
	border-left: 4px solid #d63638;
	border-radius: var(--wd-radius-s, 3px);
	margin-bottom: 15px;
	transition: opacity 0.2s ease;
}

.manum-error-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.manum-error-code {
	font-weight: 700;
	font-size: 18px;
	color: #d63638;
	font-family: monospace;
}

.manum-error-unidad {
	display: inline-block;
	padding: 2px 10px;
	background: var(--wd-bg-color-light, #f0f0f0);
	border-radius: var(--wd-radius-s, 3px);
	font-size: 12px;
	color: var(--wd-text-color-light, #666);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.manum-error-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--wd-header-color, #333);
	margin-bottom: 8px;
}

.manum-error-detail {
	color: var(--wd-text-color-light, #666);
	font-size: 14px;
	margin-bottom: 12px;
}

.manum-error-leds {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.manum-leds-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--wd-text-color-light, #777);
	text-transform: uppercase;
}

.manum-led-indicator {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--wd-bg-color, #fff);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-radius: var(--wd-radius-s, 3px);
	font-size: 12px;
}

.manum-led-color {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.manum-led-color.rojo     { background: #d63638; }
.manum-led-color.verde    { background: #00a32a; }
.manum-led-color.naranja  { background: #f0860a; }
.manum-led-color.amarillo { background: #dba617; }
.manum-led-color.azul     { background: #2271b1; }

.manum-led-text {
	color: var(--wd-text-color, #555);
}

.manum-errores-no-results {
	text-align: center;
	color: var(--wd-text-color-light, #777);
	padding: 20px;
}

/* Hide filtered-out errors */
.manum-error-item.manum-hidden {
	display: none;
}

/* =================================================================
   AVERIAS (FAILURES)
   ================================================================= */

.manum-failure-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.manum-failure-item {
	padding: 20px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius, 4px);
	margin-bottom: 0;
	position: relative;
}

.manum-failure-number {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 12px;
	font-weight: 700;
	color: var(--wd-text-color-light, #aaa);
	background: var(--wd-bg-color, #fff);
	padding: 2px 8px;
	border-radius: var(--wd-radius-s, 3px);
}

.manum-failure-symptoms h4 {
	font-size: 14px;
	font-weight: 600;
	color: #d63638;
	margin: 0 0 6px;
}

.manum-failure-cause h4,
.manum-failure-recommendations h4 {
	font-size: 14px;
	font-weight: 600;
	color: var(--wd-header-color, #333);
	margin: 12px 0 6px;
}

.manum-failure-symptoms p,
.manum-failure-cause p,
.manum-failure-recommendations p {
	margin: 0;
	font-size: 14px;
	color: var(--wd-text-color, #555);
}

.manum-failure-related-errors {
	margin-top: 12px;
}

.manum-failure-related-errors h4 {
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-header-color, #333);
	margin: 0 0 6px;
}

.manum-related-error-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.manum-error-tag {
	display: inline-block;
	padding: 3px 10px;
	background: #ffe4e4;
	color: #d63638;
	border-radius: var(--wd-radius-s, 3px);
	font-size: 12px;
	font-weight: 600;
	font-family: monospace;
}

/* =================================================================
   RECAMBIOS (SPARE PARTS) — Carousel cards + products panel
   ================================================================= */

/* Hint text */
.manum-recambios-hint {
	font-size: 12px;
	color: var(--wd-text-color-light, #999);
	font-style: italic;
}

/* --- Carousel container --- */
.manum-recambios-carousel {
	margin-top: 15px;
	margin-bottom: 0;
	position: relative;
}

/* Pagination dots: Woodmart primary color */
.manum-recambios-carousel .wd-swiper-pagination .swiper-pagination-bullet,
.manum-recambios-carousel .swiper-pagination-bullet {
	background: var(--wd-bordered-color, #ccc);
	opacity: 1;
}

.manum-recambios-carousel .wd-swiper-pagination .swiper-pagination-bullet-active,
.manum-recambios-carousel .swiper-pagination-bullet-active {
	background: var(--wd-primary-color, #83b735);
}

/* --- Recambio card (each slide) --- */
.manum-recambio-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	padding: 16px;
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-radius: var(--wd-radius, 4px);
	background: #e8e8e8;
	cursor: pointer;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	user-select: none;
	min-height: 110px;
	gap: 14px;
}

.manum-recambio-card:hover {
	border-color: var(--wd-primary-color, #83b735);
	box-shadow: 0 2px 12px rgba(131, 183, 53, 0.15);
}

.manum-recambio-card.is-active {
	border-color: var(--wd-primary-color, #83b735);
	box-shadow: 0 2px 12px rgba(131, 183, 53, 0.2);
	background: #e0ecce;
}

.manum-recambio-card:focus-visible {
	outline: 2px solid var(--wd-primary-color, #83b735);
	outline-offset: -2px;
}

/* Icon container */
.manum-recambio-icon {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.manum-recambio-icon-img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.manum-recambio-card:hover .manum-recambio-icon-img,
.manum-recambio-card.is-active .manum-recambio-icon-img {
	opacity: 1;
}

/* Info wrapper (right of icon) */
.manum-recambio-card-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Title */
.manum-recambio-card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--wd-header-color, #333);
	line-height: 1.3;
	transition: color 0.2s ease;
}

.manum-recambio-card.is-active .manum-recambio-card-title,
.manum-recambio-card:hover .manum-recambio-card-title {
	color: var(--wd-primary-color, #83b735);
}

/* Type badge inside card */
.manum-recambio-card .manum-part-type {
	background: var(--wd-header-color, #333);
	color: #fff;
	font-size: 11px;
}

.manum-recambio-card:hover .manum-part-type,
.manum-recambio-card.is-active .manum-part-type {
	background: var(--wd-primary-color, #83b735);
	color: #fff;
}

/* Refs area inside card — horizontal scroll if overflow */
.manum-recambio-card-refs {
	display: flex;
	gap: 4px;
	flex-wrap: nowrap;
	justify-content: flex-start;
	margin-top: 2px;
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	padding-bottom: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--wd-primary-color, #83b735) transparent;
}

.manum-recambio-card-refs::-webkit-scrollbar {
	height: 3px;
}

.manum-recambio-card-refs::-webkit-scrollbar-track {
	background: transparent;
}

.manum-recambio-card-refs::-webkit-scrollbar-thumb {
	background-color: var(--wd-primary-color, #83b735);
	border-radius: 2px;
}

.manum-recambio-card-refs .manum-ref-code {
	flex-shrink: 0;
	background: var(--wd-bg-color-light, #f0f0f0);
	color: var(--wd-text-color-light, #666);
	border-color: var(--wd-bordered-color, #ddd);
}

/* --- Products area below the carousel --- */
.manum-recambios-products-area {
	margin-top: 35px;
	padding-top: 25px;
	border-top: 1px solid var(--wd-bordered-color, #e0e0e0);
	min-height: 40px;
}

.manum-recambio-panel {
	display: none;
	animation: manumFadeIn 0.2s ease;
}

.manum-recambio-panel.is-visible {
	display: block;
}

@keyframes manumFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.manum-recambio-panel-header {
	margin-bottom: 20px;
}

.manum-recambio-panel-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wd-text-color-light, #999);
	margin-bottom: 4px;
}

.manum-recambio-panel-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--wd-header-color, #333);
	line-height: 1.3;
}

.manum-recambio-panel-title .manum-part-type {
	vertical-align: middle;
	margin-left: 8px;
	position: relative;
	top: -1px;
}

.manum-recambio-panel-refs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Type badge (shared) */
.manum-part-type {
	display: inline-block;
	padding: 2px 8px;
	background: var(--wd-primary-color, #83b735);
	color: #fff;
	border-radius: var(--wd-radius-s, 3px);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Ref codes (shared, inline) */
.manum-ref-code {
	display: inline-block;
	padding: 1px 6px;
	background: none;
	border: 1px solid var(--wd-bordered-color, #ddd);
	border-radius: var(--wd-radius-s, 3px);
	font-family: monospace;
	font-size: 11px;
	color: var(--wd-text-color-light, #777);
	white-space: nowrap;
	flex-shrink: 0;
}

.manum-part-no-refs {
	color: var(--wd-text-color-light, #999);
	font-size: 13px;
	font-style: italic;
	margin: 0;
}

/* =================================================================
   ARCHIVE FILTER BAR
   ================================================================= */

.manum-archive-filters {
	margin-bottom: 30px;
	padding: 20px 25px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border-radius: var(--wd-radius, 4px);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
}

.manum-filters-form {
	margin: 0;
}

.manum-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.manum-filter-item {
	flex: 1 1 180px;
	min-width: 0;
}

.manum-filter-item.manum-filter-search {
	flex: 1 1 200px;
}

.manum-filter-item.manum-filter-actions {
	flex: 0 0 auto;
}

.manum-filter-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wd-text-color-light, #777);
}

.manum-filter-select {
	width: 100%;
	height: var(--wd-form-height, 42px);
	padding: 0 32px 0 12px;
	border: var(--wd-form-brd-width, 1px) solid var(--wd-form-brd-color, #ddd);
	border-radius: var(--wd-form-brd-radius, 4px);
	background-color: var(--wd-form-bg, #fff);
	color: var(--wd-form-color, #333);
	font-size: 14px;
	line-height: var(--wd-form-height, 42px);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px;
	cursor: pointer;
	transition: border-color 0.25s ease;
}

.manum-filter-select:focus,
.manum-filter-select:hover {
	outline: none;
	border-color: var(--wd-primary-color, #83b735);
}

.manum-filter-input {
	width: 100%;
	height: var(--wd-form-height, 42px);
	padding: 0 12px;
	border: var(--wd-form-brd-width, 1px) solid var(--wd-form-brd-color, #ddd);
	border-radius: var(--wd-form-brd-radius, 4px);
	background-color: var(--wd-form-bg, #fff);
	color: var(--wd-form-color, #333);
	font-size: 14px;
	transition: border-color 0.25s ease;
	box-sizing: border-box;
}

.manum-filter-input:focus {
	outline: none;
	border-color: var(--wd-primary-color, #83b735);
}

.manum-filter-buttons {
	display: flex;
	gap: 8px;
}

.manum-filter-btn {
	height: var(--wd-form-height, 42px);
	padding: 0 20px;
	border: none;
	border-radius: var(--wd-form-brd-radius, 4px);
	background-color: var(--wd-primary-color, #83b735);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: opacity 0.25s ease;
	white-space: nowrap;
}

.manum-filter-btn:hover {
	opacity: 0.85;
}

.manum-filter-clear {
	height: var(--wd-form-height, 42px);
	display: inline-flex;
	align-items: center;
	padding: 0 16px;
	border: 1px solid var(--wd-bordered-color, #ddd);
	border-radius: var(--wd-form-brd-radius, 4px);
	background: var(--wd-bg-color, #fff);
	color: var(--wd-text-color-light, #777);
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.manum-filter-clear:hover {
	border-color: var(--wd-primary-color, #83b735);
	color: var(--wd-primary-color, #83b735);
}

/* Active filter tags */
.manum-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--wd-bordered-color, #e0e0e0);
}

.manum-active-filters-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--wd-text-color-light, #777);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.manum-active-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: var(--wd-primary-color, #83b735);
	color: #fff;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.manum-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s ease;
}

.manum-tag-remove:hover {
	background: rgba(255, 255, 255, 0.5);
	color: #fff;
}

/* =================================================================
   SHOP TOOLS — Overrides to enable native Woodmart components
   inside .manum-shop-tools on archive-modelos-tecnicos
   ================================================================= */

/* Match native Woodmart wd-shop-tools layout */
.manum-shop-tools.wd-shop-tools {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 30px;
	max-width: 100%;
	justify-content: space-between;
}

.manum-shop-tools.wd-shop-tools:not(:last-child) {
	padding-bottom: 15px;
    margin-bottom: 15px;
	border-bottom: 1px solid var(--brdcolor-gray-300, rgba(0,0,0,0.105));
}

/* Left / Right split inside shop-tools */
.manum-shop-tools-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 20px;
	flex: 1 1 auto;
	min-width: 0;
}

.manum-shop-tools-right {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	flex: 0 0 auto;
	margin-inline-start: auto;
}

/* Force visibility: Woodmart hides these outside WooCommerce pages */
.manum-shop-tools.wd-shop-tools .wd-products-per-page {
	--wd-link-color: var(--color-gray-500, #767676);
	--wd-link-color-hover: var(--color-gray-800, #333);
	--wd-link-decor: none;
	--wd-link-decor-hover: none;
	display: inline-flex !important;
	align-items: center;
	flex-wrap: wrap;
	color: var(--color-gray-500, #767676);
}

.manum-shop-tools.wd-shop-tools .wd-products-per-page a {
	padding: 0 7px;
	color: var(--wd-link-color, var(--color-gray-500, #767676));
	text-decoration: none;
}

.manum-shop-tools.wd-shop-tools .wd-products-per-page a:hover {
	color: var(--wd-link-color-hover, var(--color-gray-800, #333));
}

.manum-shop-tools.wd-shop-tools .wd-products-per-page a.current-variation {
	color: var(--wd-link-color-hover, var(--color-gray-800, #333));
	font-weight: 600;
}

.manum-shop-tools.wd-shop-tools .woocommerce-result-count {
	display: block !important;
	margin-bottom: 0;
}

/* Breadcrumbs: native Woodmart variables */
.manum-shop-tools .wd-breadcrumbs {
	--wd-link-color: var(--color-gray-500, #767676);
	--wd-link-color-hover: var(--color-gray-700, #555);
	--wd-bcrumb-color-active: var(--color-gray-900, #242424);
	--wd-link-decor: none;
	--wd-link-decor-hover: none;
}

.manum-shop-tools .wd-breadcrumbs > :is(span, a):last-child {
	font-weight: 600;
	color: var(--wd-bcrumb-color-active, var(--color-gray-900, #242424));
}

.manum-shop-tools .wd-breadcrumbs .wd-delimiter {
	margin-inline: 8px;
	color: var(--wd-bcrumb-delim-color, var(--color-gray-300, #bbb));
}

.manum-shop-tools .wd-breadcrumbs .wd-delimiter:after {
	content: "/";
}

.manum-shop-tools .wd-breadcrumbs .wd-delimiter:last-child {
	display: none;
}

/* Grid view icons: Woodmart uses woodmart-font, ensure correct display */
.manum-shop-tools .wd-products-shop-view {
	--wd-link-color: var(--color-gray-300, #bbb);
	--wd-link-color-hover: var(--color-gray-600, #666);
	--wd-link-decor: none;
	--wd-link-decor-hover: none;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px .9em;
	line-height: 1;
}

.manum-shop-tools .wd-products-shop-view a {
	display: inline-flex;
	align-items: center;
	line-height: 1;
	color: var(--wd-link-color, var(--color-gray-300, #bbb));
	text-decoration: none;
}

.manum-shop-tools .wd-products-shop-view a:hover {
	color: var(--wd-link-color-hover, var(--color-gray-600, #666));
}

.manum-shop-tools .wd-products-shop-view a.current-variation {
	color: var(--color-gray-800, #333);
	cursor: default;
}

.manum-shop-tools .wd-products-shop-view a:before {
	font-family: "woodmart-font";
	font-size: 180%;
	font-weight: 400;
	content: "\f12a";
}

.manum-shop-tools .wd-products-shop-view a svg {
	display: none;
}

.manum-shop-tools .wd-products-shop-view a.per-row-1:before { content: "\f13"; }
.manum-shop-tools .wd-products-shop-view a.per-row-2:before { content: "\f12b"; }
.manum-shop-tools .wd-products-shop-view a.per-row-3:before { content: "\f12c"; }
.manum-shop-tools .wd-products-shop-view a.per-row-4:before { content: "\f12d"; }

/* Per-page separator: native Woodmart uses :after with "/" */
.manum-shop-tools .per-page-border:after {
	content: "/";
}

.manum-shop-tools .per-page-border:last-child {
	display: none;
}

/* Ordering select: Woodmart underline style */
.manum-shop-tools .woocommerce-ordering.wd-style-underline select {
	padding-top: 5px;
	padding-bottom: 5px;
	height: auto;
	border-top-style: none;
	border-right-style: none;
	border-left-style: none;
	border-radius: 0;
	background-color: unset;
	background-position: right 0 top 50%;
	color: var(--color-gray-900, #242424);
	font-weight: 600;
	font-size: inherit;
	line-height: 1.2;
	padding-inline-start: 2px;
	padding-inline-end: 20px;
	cursor: pointer;
}

.manum-shop-tools .woocommerce-ordering.wd-style-underline select:focus {
	border-color: var(--wd-primary-color, #83b735);
}

/* =================================================================
   GRID
   ================================================================= */

.manum-modelo-grid-wrapper .manum-grid-title {
	font-size: 24px;
	margin-bottom: 20px;
	color: var(--wd-header-color, #333);
}

.manum-grid-search {
	margin-bottom: 25px;
}

.manum-grid-search-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.manum-models-grid {
	display: grid;
	grid-template-columns: repeat(var(--manum-grid-cols, 3), 1fr);
	gap: 25px;
	margin-bottom: 30px;
}

.manum-grid-item .manum-ficha-thumbnail img {
	aspect-ratio: 4/3;
	object-fit: cover;
}

.manum-grid-pagination {
	text-align: center;
	padding: 20px 0;
}

.manum-grid-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	margin: 0 3px;
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-radius: var(--wd-radius-s, 3px);
	background: var(--wd-bg-color, #fff);
	color: var(--wd-text-color, #333);
	text-decoration: none;
	font-size: 14px;
	transition: all 0.2s ease;
}

.manum-grid-pagination .page-numbers:hover {
	background: var(--wd-primary-color, #83b735);
	border-color: var(--wd-primary-color, #83b735);
	color: #fff;
}

.manum-grid-pagination .page-numbers.current {
	background: var(--wd-primary-color, #83b735);
	border-color: var(--wd-primary-color, #83b735);
	color: #fff;
	font-weight: 600;
}

/* =================================================================
   SINGLE (PRODUCT-LIKE LAYOUT)
   Top: Image (left) + Summary (right)
   Bottom: Woodmart native tabs
   ================================================================= */

.manum-single-product-layout {
	padding-top: 30px;
	padding-bottom: 30px;
}

/* --- Product image --- */
.manum-product-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--wd-radius, 4px);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	background: var(--wd-bg-color, #fff);
}

.manum-product-main-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* --- Summary --- */
.manum-summary-inner {
	padding-top: 5px;
}

/* --- Header nav: breadcrumbs + prev/next --- */
.manum-single-header-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 15px;
}

.manum-single-header-nav .wd-breadcrumbs {
	font-size: 13px;
	color: var(--wd-text-color-light, #777);
	line-height: 1.4;
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.manum-single-header-nav .wd-breadcrumbs a {
	color: var(--wd-text-color-light, #777);
	text-decoration: none;
	transition: color 0.2s ease;
}

.manum-single-header-nav .wd-breadcrumbs a:hover {
	color: var(--wd-primary-color, #83b735);
}

.manum-single-header-nav .wd-breadcrumbs .wd-delimiter {
	display: inline;
	margin: 0 6px;
	font-size: 10px;
	color: var(--wd-text-color-light, #bbb);
}

.manum-single-header-nav .wd-breadcrumbs .wd-delimiter::after {
	content: "/";
}

.manum-single-header-nav .wd-breadcrumbs .wd-delimiter:last-child {
	display: none;
}

/* Prev/next nav — always pinned right */
.manum-modelos-nav.wd-products-nav {
	flex-shrink: 0;
}

.manum-product-title {
	font-size: 28px;
	line-height: 1.3;
	margin-bottom: 15px;
	color: var(--wd-header-color, #333);
}

/* Meta rows */
.manum-product-meta {
	margin-bottom: 20px;
	padding: 15px 0;
	border-top: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-bottom: 1px solid var(--wd-bordered-color, #e0e0e0);
}

.manum-meta-row {
	display: flex;
	align-items: baseline;
	padding: 6px 0;
}

.manum-meta-label {
	flex: 0 0 100px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-text-color-light, #777);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.manum-meta-value {
	flex: 1;
	font-size: 15px;
	color: var(--wd-header-color, #333);
	font-weight: 500;
}

.manum-meta-value small {
	color: var(--wd-text-color-light, #999);
	font-weight: 400;
}

/* Description */
.manum-product-description {
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--wd-text-color, #555);
}

.manum-read-more-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-primary-color, #83b735);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.manum-read-more-link:hover {
	color: var(--wd-link-color-hover, #6a9a2a);
	text-decoration: underline;
}

/* Count badges */
.manum-product-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.manum-count-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	background: var(--wd-bg-color-light, #f7f7f7);
	border: 1px solid var(--wd-bordered-color, #e0e0e0);
	border-radius: 20px;
	font-size: 13px;
	color: var(--wd-text-color-light, #666);
}

.manum-count-badge strong {
	color: var(--wd-primary-color, #83b735);
	font-size: 14px;
}

/* --- Tabs (Woodmart native structure handles styling) --- */
.manum-product-tabs {
	margin-top: 40px;
	clear: both;
}

/* Ensure our tab panels get proper padding like Woodmart product tabs */
.manum-product-tabs .wc-tab-inner {
	padding-top: 20px;
}

/* Contain Woodmart grids inside tabs */
.manum-product-tabs .wc-tab-inner .wd-products-element,
.manum-product-tabs .wc-tab-inner .products.wd-products,
.manum-product-tabs .wc-tab-inner .wd-carousel-container {
	max-width: 100%;
}

/* Make sure shortcodes inside tabs have no extra margins */
.manum-product-tabs .wc-tab-inner > .manum-shortcode {
	margin: 0;
}

/*
 * Mobile fallback: if Woodmart's JS hasn't converted tabs→accordion yet,
 * ensure the accordion titles are visible so the user sees something.
 * Woodmart CSS hides .wd-accordion-title inside .tabs-layout-tabs,
 * and hides .wd-nav-wrapper inside .tabs-layout-accordion.
 * We need a safety net in our wrapper.
 */
@media screen and (max-width: 1024px) {
	/* Hide the desktop tab bar in our tabs on mobile */
	.manum-product-tabs .tabs-layout-tabs .wd-nav-wrapper {
		display: none;
	}

	/* Force accordion titles visible in our tabs on mobile,
	   even if still technically tabs-layout-tabs (before JS converts) */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		padding: 15px 20px;
		cursor: pointer;
		border-bottom: 1px solid var(--wd-bordered-color, #e8e8e8);
		font-weight: 600;
		font-size: 15px;
		color: var(--wd-header-color, #333);
		transition: all .25s ease;
	}

	/* Title text inherits transition */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title-text {
		transition: color .25s ease;
	}

	/* Hover & active: title text turns primary color */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title:hover .wd-accordion-title-text,
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title.wd-active .wd-accordion-title-text {
		color: var(--wd-primary-color, #83b735);
	}

	/* Opener arrow — visible, positioned right */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-opener {
		display: block !important;
		position: relative;
		color: var(--color-gray-300, #bbb);
		font-size: 10px;
		line-height: 1;
		transition: all .25s ease;
	}

	/* Arrow icon via Woodmart font (fallback if wd-opener-style-arrow isn't applied yet) */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-opener:before {
		content: "\f129";
		font-family: "woodmart-font";
	}

	/* Hover & active: arrow turns primary color */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title:hover .wd-accordion-opener,
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title.wd-active .wd-accordion-opener {
		color: var(--wd-primary-color, #83b735);
	}

	/* Active: rotate arrow 180° */
	.manum-product-tabs .woocommerce-tabs .wd-accordion-title.wd-active .wd-accordion-opener {
		transform: rotate(180deg);
	}

	/* Active accordion content must be visible */
	.manum-product-tabs .woocommerce-tabs .entry-content.wd-active {
		display: block !important;
	}
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media screen and (max-width: 1024px) {
	/* --- Archive filter bar: tablet --- */
	.manum-archive-filters {
		padding: 15px 18px;
	}

	.manum-filters-row {
		gap: 12px;
	}

	.manum-filter-item {
		flex: 1 1 45%;
	}

	.manum-filter-item.manum-filter-search {
		flex: 1 1 100%;
	}

	.manum-filter-item.manum-filter-actions {
		flex: 1 1 100%;
	}

	.manum-filter-buttons {
		justify-content: flex-start;
	}

	.manum-models-grid {
		grid-template-columns: repeat(var(--manum-grid-cols-tablet, 2), 1fr);
	}

	/* --- Shop tools: tablet --- */
	.manum-shop-tools-left {
		flex: 1 1 auto;
		gap: 4px 15px;
	}

	.manum-shop-tools-right {
		gap: 8px 12px;
	}

	.manum-shop-tools.wd-shop-tools .wd-products-per-page {
		display: none !important;
	}

	.manum-shop-tools.wd-shop-tools .wd-products-shop-view {
		display: none !important;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon {
		position: relative;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon select {
		position: absolute;
		inset: 0;
		padding: 0;
		height: inherit;
		border: none;
		background: none;
		color: transparent !important;
		font-weight: 400;
		font-size: 16px;
		-webkit-appearance: none;
		-moz-appearance: none;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon select option {
		font-size: 14px;
		color: var(--color-gray-900, #242424);
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon:after {
		position: relative;
		color: var(--color-gray-900, #242424);
		font-size: 120%;
		z-index: 2;
		pointer-events: none;
		content: "\f119";
		font-family: "woodmart-font";
	}

	/* --- Specs: compact for tablet/mobile --- */
	h3.manum-specs-group-title {
		font-size: 16px;
		margin: 14px 0 8px;
		padding-bottom: 5px;
	}

	h3.manum-specs-group-title:first-child {
		margin-top: 0;
	}

	.manum-tech-specs {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		margin-bottom: 16px;
	}

	.manum-tech-spec {
		padding: 10px 12px;
		border-left-width: 2px;
	}

	.manum-tech-spec dt {
		font-size: 11px;
		margin-bottom: 2px;
		letter-spacing: 0.2px;
	}

	.manum-tech-spec dd {
		font-size: 13px;
	}

	.manum-specs-obs-content {
		padding: 10px 12px;
		font-size: 13px;
	}

	/* --- Manuales: compact for tablet --- */
	.manum-manual-item {
		padding: 14px;
		gap: 12px;
		margin-bottom: 10px;
	}

	.manum-manual-icon svg {
		width: 32px;
		height: 32px;
	}

	.manum-manual-info h4 {
		font-size: 14px;
	}

	.manum-manual-langs {
		font-size: 12px;
	}

	.manum-manual-filename {
		font-size: 11px;
	}

	.manum-manual-download .manum-btn {
		padding: 8px 14px;
		font-size: 13px;
	}

	/* --- Errores: compact for tablet --- */
	.manum-errores-search {
		margin-bottom: 14px;
	}

	.manum-search-input {
		padding: 8px 12px;
		font-size: 13px;
	}

	.manum-errores-count,
	.manum-averias-count,
	.manum-recambios-count {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.manum-error-item {
		padding: 14px;
		border-left-width: 3px;
		margin-bottom: 10px;
	}

	.manum-error-header {
		gap: 8px;
		margin-bottom: 6px;
	}

	.manum-error-code {
		font-size: 15px;
	}

	.manum-error-unidad {
		padding: 2px 8px;
		font-size: 11px;
	}

	.manum-error-title {
		font-size: 13px;
		margin-bottom: 5px;
	}

	.manum-error-detail {
		font-size: 12px;
		margin-bottom: 8px;
	}

	.manum-error-leds {
		gap: 6px;
	}

	.manum-leds-label {
		font-size: 11px;
	}

	.manum-led-indicator {
		padding: 3px 7px;
		font-size: 11px;
		gap: 4px;
	}

	.manum-led-color {
		width: 8px;
		height: 8px;
	}

	/* --- Averías: compact for tablet --- */
	.manum-failure-list {
		grid-template-columns: 1fr;
		gap: 1px;
	}

	.manum-failure-item {
		padding: 14px;
	}

	.manum-failure-number {
		top: 10px;
		right: 10px;
		font-size: 11px;
		padding: 2px 6px;
	}

	.manum-failure-symptoms h4 {
		font-size: 13px;
		margin-bottom: 4px;
	}

	.manum-failure-cause h4,
	.manum-failure-recommendations h4 {
		font-size: 13px;
		margin: 8px 0 4px;
	}

	.manum-failure-symptoms p,
	.manum-failure-cause p,
	.manum-failure-recommendations p {
		font-size: 12px;
	}

	.manum-failure-related-errors {
		margin-top: 8px;
	}

	.manum-failure-related-errors h4 {
		font-size: 12px;
		margin-bottom: 4px;
	}

	.manum-error-tag {
		padding: 2px 8px;
		font-size: 11px;
	}
}

@media screen and (max-width: 768px) {
	/* --- Archive filter bar: mobile --- */
	.manum-archive-filters {
		padding: 12px 14px;
	}

	.manum-filters-row {
		flex-direction: column;
		gap: 10px;
	}

	.manum-filter-item,
	.manum-filter-item.manum-filter-search,
	.manum-filter-item.manum-filter-actions {
		flex: 1 1 100%;
		width: 100%;
	}

	.manum-filter-label {
		font-size: 11px;
		margin-bottom: 4px;
	}

	.manum-filter-select,
	.manum-filter-input {
		height: 38px;
		font-size: 13px;
	}

	.manum-filter-btn {
		height: 38px;
		font-size: 12px;
		padding: 0 16px;
		flex: 1;
	}

	.manum-filter-clear {
		height: 38px;
		font-size: 12px;
		padding: 0 12px;
	}

	.manum-filter-buttons {
		display: flex;
		gap: 8px;
		width: 100%;
	}

	.manum-active-filters {
		margin-top: 10px;
		padding-top: 10px;
		gap: 6px;
	}

	.manum-active-tag {
		font-size: 11px;
		padding: 3px 8px;
	}

	.manum-models-grid {
		grid-template-columns: repeat(var(--manum-grid-cols-mobile, 1), 1fr);
	}

	/* --- Shop tools: mobile --- */
	.manum-shop-tools-left {
		flex: 1 1 100%;
		gap: 2px 10px;
	}

	.manum-shop-tools-right {
		flex: 1 1 100%;
		justify-content: flex-end;
		gap: 8px 10px;
	}

	.manum-shop-tools.wd-shop-tools .wd-products-per-page {
		display: none !important;
	}

	.manum-shop-tools.wd-shop-tools .wd-products-shop-view {
		display: none !important;
	}

	.manum-shop-tools.wd-shop-tools {
		gap: 8px 15px;
	}

	.manum-shop-tools .wd-breadcrumbs {
		font-size: 12px;
	}

	.manum-shop-tools.wd-shop-tools .woocommerce-result-count {
		font-size: 12px;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon {
		position: relative;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon select {
		position: absolute;
		inset: 0;
		padding: 0;
		height: inherit;
		border: none;
		background: none;
		color: transparent !important;
		font-weight: 400;
		font-size: 16px;
		-webkit-appearance: none;
		-moz-appearance: none;
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon select option {
		font-size: 14px;
		color: var(--color-gray-900, #242424);
	}

	.manum-shop-tools .woocommerce-ordering.wd-ordering-mb-icon:after {
		position: relative;
		color: var(--color-gray-900, #242424);
		font-size: 120%;
		z-index: 2;
		pointer-events: none;
		content: "\f119";
		font-family: "woodmart-font";
	}

	/* --- Specs compact mobile --- */
	h3.manum-specs-group-title {
		font-size: 15px;
		margin: 12px 0 6px;
		padding-bottom: 4px;
	}

	h3.manum-specs-group-title:first-child {
		margin-top: 0;
	}

	.manum-tech-specs {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-bottom: 14px;
	}

	.manum-tech-spec {
		padding: 8px 10px;
		border-left-width: 2px;
	}

	.manum-tech-spec dt {
		font-size: 10px;
	}

	.manum-tech-spec dd {
		font-size: 12px;
	}

	/* Recambios mobile */
	.manum-recambios-hint {
		display: none;
	}

	.manum-recambio-card {
		padding: 12px;
		gap: 10px;
		min-height: 90px;
	}

	.manum-recambio-icon {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
	}

	.manum-recambio-icon-img {
		width: 36px;
		height: 36px;
	}

	.manum-recambio-card-title {
		font-size: 12px;
	}

	.manum-recambio-card .manum-part-type {
		font-size: 10px;
	}

	.manum-recambio-card-refs .manum-ref-code {
		font-size: 9px;
		padding: 1px 4px;
	}


	.manum-recambio-panel-header {
		flex-wrap: wrap;
	}

	.manum-recambio-panel-title {
		font-size: 14px;
	}

	/* Manuales ultra-compact */
	.manum-manual-item {
		padding: 10px;
		gap: 8px;
	}

	.manum-manual-icon svg {
		width: 24px;
		height: 24px;
	}

	.manum-manual-info h4 {
		font-size: 12px;
	}

	.manum-manual-filename {
		display: none;
	}

	.manum-manual-download .manum-btn {
		padding: 5px 10px;
		font-size: 11px;
		gap: 4px;
	}
}

/* =====================================================
   MODELO SEARCH — Header compact search widget
   =====================================================
   This widget lives inside the Woodmart header which typically
   uses color-scheme-light (dark background). We force a "dark on
   white" colour scheme so everything stays readable regardless
   of the parent container's colour scheme variables.
   ===================================================== */

.manum-modelo-search-wrapper {
	position: relative;
	width: 100%;
}

/* ── Form bar ── */
.manum-modelo-search-form {
	display: flex;
	align-items: center;
	gap: 0;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: var(--wd-form-brd-radius, 5px);
	background-color: #fff;
	overflow: hidden;
	height: var(--wd-form-height, 42px);
}

.manum-msearch-field {
	display: flex;
	align-items: center;
	height: 100%;
}

.manum-msearch-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
	border-right: 1px solid rgba(0,0,0,0.1);
	background: transparent;
	padding: 0 28px 0 12px;
	height: 100%;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	min-width: 0;
	white-space: nowrap;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNSIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2U9IiNiYmIiPjxwYXRoIGQ9Ik02IDlsNiA2IDYtNiIvPjwvc3ZnPg==");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: auto 16px;
}

.manum-msearch-select option {
	color: #333;
	background: #fff;
}

.manum-msearch-select:focus {
	outline: none;
	color: #242424;
}

.manum-msearch-text {
	flex: 1;
	position: relative;
}

.manum-msearch-input {
	border: none !important;
	padding: 0 30px 0 12px !important;
	height: 100% !important;
	width: 100% !important;
	font-size: 13px;
	color: #333 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.manum-msearch-input::placeholder {
	color: #999;
}

.manum-msearch-input:focus {
	outline: none;
	border: none !important;
}

.manum-msearch-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #a5a5a5;
	font-size: 18px;
	line-height: 1;
	transition: color 0.2s;
	z-index: 2;
}

.manum-msearch-clear:hover {
	color: #333;
}

.manum-msearch-clear.manum-hidden {
	display: none !important;
}

.manum-msearch-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: var(--wd-form-height, 42px);
	min-width: var(--wd-form-height, 42px);
	height: var(--wd-form-height, 42px);
	border: none !important;
	border-radius: 0;
	background-color: var(--btn-accented-bgcolor, var(--wd-primary-color, #83b735)) !important;
	color: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: opacity 0.2s ease;
	padding: 0 !important;
	min-height: unset !important;
	font-size: 0 !important;
	font-weight: 400;
	text-transform: none;
}

.manum-msearch-btn:hover {
	opacity: 0.8;
	background-color: var(--btn-accented-bgcolor-hover, var(--btn-accented-bgcolor, var(--wd-primary-color, #83b735))) !important;
	color: #fff !important;
}

.manum-msearch-btn::after {
	font-size: calc(var(--wd-form-height, 42px) / 2.3) !important;
	line-height: 1;
	color: #fff !important;
	content: "\f130";
	font-family: "woodmart-font" !important;
	font-weight: 400;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: opacity .2s ease;
}

.manum-msearch-btn:hover::after {
	opacity: .7;
}

.manum-msearch-btn span {
	display: none !important;
}

/* ── Results dropdown ──
   Force a white/dark-text scheme so it's readable even when
   the parent has color-scheme-light (dark header). */

.manum-msearch-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 500;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.105);
	border-radius: var(--wd-brd-radius, 5px);
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	max-height: 400px;
	overflow-y: auto;
}

.manum-msearch-results-inner {
	padding: 8px 0;
}

/* Single result item */
.manum-msearch-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	text-decoration: none !important;
	color: #333;
	transition: background 0.15s;
}

.manum-msearch-item:hover {
	background: #f7f7f7;
}

.manum-msearch-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: var(--wd-brd-radius, 3px);
	object-fit: cover;
	background: #f1f1f1;
}

.manum-msearch-thumb-placeholder {
	display: block;
}

.manum-msearch-item-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
	min-width: 0;
}

.manum-msearch-item-title {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	color: #242424;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.manum-msearch-item:hover .manum-msearch-item-title {
	color: var(--wd-primary-color, #83b735);
}

.manum-msearch-item-meta {
	font-size: 11px;
	color: #767676;
	line-height: 1.2;
}

/* Loader */
.manum-msearch-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	font-size: 13px;
	color: #767676;
}

.manum-msearch-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0,0,0,0.1);
	border-left-color: var(--wd-primary-color, #83b735);
	border-radius: 50%;
	animation: wd-rotate 450ms infinite linear;
}

/* No results */
.manum-msearch-no-results {
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #767676;
}

/* View more link */
.manum-msearch-view-more {
	display: block;
	padding: 10px 14px;
	border-top: 1px solid rgba(0,0,0,0.075);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--wd-primary-color, #83b735);
	text-decoration: none !important;
	transition: background 0.15s;
}

.manum-msearch-view-more:hover {
	background: #f7f7f7;
	color: var(--wd-primary-color, #83b735);
}

.manum-msearch-total {
	font-weight: 400;
	color: #767676;
}

/* ── Responsive: tablet ── */
@media screen and (max-width: 1024px) {
	.manum-msearch-select {
		font-size: 12px;
		padding: 0 24px 0 10px;
	}

	.manum-msearch-input {
		font-size: 12px;
	}
}

/* ── Responsive: mobile ── */
@media screen and (max-width: 768px) {
	.manum-modelo-search-form {
		flex-wrap: wrap;
		height: auto;
		border-radius: var(--wd-form-brd-radius, 5px);
	}

	.manum-msearch-familia,
	.manum-msearch-marca {
		flex: 1 1 50%;
	}

	.manum-msearch-select {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid rgba(0,0,0,0.1);
		font-size: 12px;
		height: 36px;
	}

	.manum-msearch-familia .manum-msearch-select {
		border-right: 1px solid rgba(0,0,0,0.1);
	}

	.manum-msearch-text {
		flex: 1 1 calc(100% - 42px);
	}

	.manum-msearch-input {
		height: 36px !important;
		font-size: 13px;
	}

	.manum-msearch-btn {
		width: 42px;
		min-width: 42px;
		height: 36px !important;
		min-height: 36px !important;
	}

	.manum-msearch-results {
		max-height: 300px;
	}

	.manum-msearch-item {
		padding: 6px 10px;
		gap: 8px;
	}

	.manum-msearch-thumb {
		flex: 0 0 36px;
		width: 36px;
		height: 36px;
	}

	.manum-msearch-item-title {
		font-size: 12px;
	}

	.manum-msearch-item-meta {
		font-size: 10px;
	}
}

/* ============================================================
   BRAND PAGE SHORTCODE — [manum_brand_page]
   ============================================================ */

.manum-brand-page {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 40px;
	padding: 30px 0;
	align-items: start;
}

/* Left Column: Logo + Description */
.manum-brand-page-left {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.manum-brand-page-logo {
	max-width: 200px;
}

.manum-brand-page-logo-img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.manum-brand-page-name {
	margin: 0;
	font-size: 22px;
	font-weight: var(--wd-title-font-weight, 600);
	color: var(--wd-title-color, #242424);
	font-family: var(--wd-title-font, inherit);
	line-height: 1.3;
}

.manum-brand-page-description {
	font-size: 14px;
	line-height: 1.7;
	color: var(--wd-text-color, #767676);
}

.manum-brand-page-description p:last-child {
	margin-bottom: 0;
}

.manum-brand-page-stats {
	margin-top: 4px;
}

.manum-brand-page-count {
	display: inline-block;
	padding: 5px 14px;
	background: var(--bgcolor-gray-200, #f7f7f7);
	border-radius: var(--wd-brd-radius, 3px);
	font-size: 13px;
	font-weight: 600;
	color: var(--color-gray-700, #555);
}

/* Right Column: Model Cards */
.manum-brand-page-right {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.manum-brand-page-models-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	text-transform: uppercase;
	letter-spacing: .3px;
}

.manum-brand-page-models {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.manum-brand-page-model-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px;
	background: var(--bgcolor-gray-100, #f7f7f7);
	border-radius: var(--wd-brd-radius, 3px);
	text-decoration: none !important;
	transition: background .25s ease, box-shadow .25s ease;
	border: 1px solid var(--brdcolor-gray-200, rgba(0,0,0,.075));
}

.manum-brand-page-model-card:hover {
	background: #fff;
	box-shadow: 0 2px 12px rgba(0,0,0,.08);
	border-color: var(--brdcolor-gray-300, rgba(0,0,0,.105));
}

.manum-brand-page-model-thumb {
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	border-radius: var(--wd-brd-radius, 3px);
	overflow: hidden;
	background: #fff;
}

.manum-brand-page-model-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.manum-brand-page-model-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.manum-brand-page-model-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--wd-title-color, #242424);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.manum-brand-page-model-card:hover .manum-brand-page-model-title {
	color: var(--wd-primary-color, #83b735);
}

.manum-brand-page-model-meta {
	font-size: 12px;
	color: var(--color-gray-500, #767676);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.manum-brand-page-view-all {
	align-self: flex-start;
	margin-top: 4px;
}

.manum-brand-page-no-models {
	padding: 20px;
	background: var(--bgcolor-gray-100, #f7f7f7);
	border-radius: var(--wd-brd-radius, 3px);
	text-align: center;
	color: var(--color-gray-500, #767676);
	font-size: 14px;
}

.manum-brand-page-no-models p {
	margin: 0;
}

/* ── Tablet ── */
@media screen and (max-width: 1024px) {
	.manum-brand-page {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		padding: 20px 0;
	}

	.manum-brand-page-logo {
		max-width: 160px;
	}

	.manum-brand-page-name {
		font-size: 20px;
	}
}

/* ── Mobile ── */
@media screen and (max-width: 768px) {
	.manum-brand-page {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 16px 0;
	}

	.manum-brand-page-left {
		align-items: center;
		text-align: center;
	}

	.manum-brand-page-logo {
		max-width: 140px;
	}

	.manum-brand-page-name {
		font-size: 18px;
	}

	.manum-brand-page-description {
		font-size: 13px;
	}

	.manum-brand-page-models-title {
		font-size: 14px;
		text-align: center;
	}

	.manum-brand-page-model-card {
		padding: 12px;
		gap: 12px;
	}

	.manum-brand-page-model-thumb {
		flex: 0 0 56px;
		width: 56px;
		height: 56px;
	}

	.manum-brand-page-model-title {
		font-size: 13px;
	}

	.manum-brand-page-model-meta {
		font-size: 11px;
	}

	.manum-brand-page-view-all {
		align-self: center;
	}
}
