/* Buscador API — chrome del shortcode. Las cards las estiliza el theme. */

.pvs-root {
	max-width: 1360px;
	margin: 0 auto;
	padding: 8px 20px 32px;
}

.pvs-title {
	font-size: clamp(22px, 3vw, 32px);
	margin: 0 0 16px;
}

.pvs-form {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--pv-borde, #e6e6e6);
	border-radius: 999px;
	padding: 6px 6px 6px 18px;
	background: #fff;
	max-width: 720px;
}

.pvs-form .pvs-input {
	flex: 1 1 auto;
	border: 0;
	outline: none;
	background: transparent;
	font-size: 15px;
	font-family: inherit;
	color: var(--pv-texto, #222);
	min-width: 0;
}

.pvs-form .pvs-input::placeholder {
	color: #9a9a9a;
}

.pvs-form .pvs-submit {
	border: 0;
	border-radius: 999px;
	background: var(--pv-primario, #111);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	padding: 10px 22px;
	cursor: pointer;
	white-space: nowrap;
}

.pvs-form .pvs-submit:hover {
	opacity: .9;
}

.pvs-status {
	min-height: 20px;
	margin: 10px 0 0;
	font-size: 13px;
	color: #6b6b6b;
}

.pvs-results {
	margin-top: 8px;
}

.pvs-results .pvs-list {
	margin-top: 16px;
}

.pvs-notice {
	margin: 12px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: #f4f4f4;
	color: #444;
	font-size: 14px;
}

.pvs-notice-error {
	background: #fdecea;
	color: #8a1f11;
}

.pvs-missing,
.pvs-gap {
	background: transparent;
	color: #6b6b6b;
	padding: 8px 0 0;
	font-size: 13px;
}

.pvs-lane-head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 22px 0 0;
}

.pvs-lane-head h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.pvs-lane-note {
	margin: 0;
	font-size: 13px;
	color: #6b6b6b;
}

.pvs-lane-ledman {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--pv-borde, #e6e6e6);
}

.pvs-lane-ledman[hidden] {
	display: none;
}

.pvs-search-stack {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	margin: 0 0 28px;
}

.pvs-lane-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	box-sizing: border-box;
}

.pvs-search-lane .pvs-lane-bar {
	background: #f4f7fb;
	border: 1px solid #e4ebf5;
}

.pvs-catalog-lane .pvs-lane-bar {
	background: #fff;
	border: 1px solid var(--pv-borde, #e6e6e6);
}

.pvs-lane-bar h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.2;
}

.pvs-search-lane,
.pvs-catalog-lane {
	width: 100%;
	min-width: 0;
}

.pv-body .pv-shop .pvs-search-lane ul.products,
.pv-body .pv-shop .pvs-catalog-lane ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--pv-space-5, 20px);
	width: 100%;
	margin: 0;
}

.pv-body .pv-shop .pvs-search-lane ul.products:has(> li:only-child) .pv-card,
.pv-body .pv-shop .pvs-catalog-lane ul.products:has(> li:only-child) .pv-card {
	flex-direction: row;
	align-items: stretch;
	min-height: 220px;
}

.pv-body .pv-shop .pvs-search-lane ul.products:has(> li:only-child) .pv-card-media,
.pv-body .pv-shop .pvs-catalog-lane ul.products:has(> li:only-child) .pv-card-media {
	flex: 0 0 240px;
	width: 240px;
	aspect-ratio: 1;
}

.pv-body .pv-shop .pvs-search-lane ul.products:has(> li:only-child) .pv-card-body,
.pv-body .pv-shop .pvs-catalog-lane ul.products:has(> li:only-child) .pv-card-body {
	justify-content: center;
	border-top: 0;
	border-left: 1px solid var(--pv-borde, #e6e6e6);
}

.pvs-pages {
	display: flex;
	gap: 8px;
	margin-top: 18px;
}

.pvs-pages a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	text-decoration: none;
	color: inherit;
}

.pvs-pages a.is-on {
	background: var(--pv-secundario, #001f5f);
	color: #fff;
}

body.pvs-ts-on .pv-shop-main > ul.products,
body.pvs-ts-on .pv-shop-toolbar,
body.pvs-ts-on .pv-shop nav.woocommerce-pagination,
body.pvs-ts-on .woocommerce-no-products-found,
body.pvs-ts-on .pv-shop-main > .woocommerce-info {
	display: none !important;
}

.pv-body .pv-shop ul.products {
	overflow: visible;
}

.pv-body .pv-shop ul.products li.product {
	overflow: visible;
}

.pv-body .pv-shop .pv-card:hover {
	z-index: 3;
}

.pv-body .pv-shop .pv-card .pv-card-media img.pv-card-img-hover {
	position: absolute !important;
	inset: 16px !important;
	width: calc(100% - 32px) !important;
	height: calc(100% - 32px) !important;
	max-width: none !important;
	max-height: none !important;
	margin: auto !important;
	object-fit: contain !important;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
}

.pv-body .pv-shop .pv-card:hover .pv-card-media:has( .pv-card-img-hover ) img.pv-card-img {
	opacity: 0;
}

.pv-body .pv-shop .pv-card:hover .pv-card-media img.pv-card-img-hover {
	opacity: 1;
}

.pvs-ledman-mark {
	align-items: center;
}

.pvs-ledman-avatar {
	width: 72px;
	height: 96px;
	object-fit: contain;
	object-position: center top;
	border-radius: 18px;
	background: transparent;
	flex: 0 0 auto;
	transform-origin: 50% 100%;
}

.pvs-ledman-avatar.is-thinking {
	animation: pvs-ledman-bob 0.9s ease-in-out infinite;
}

.pvs-ledman-dots::after {
	content: '';
	animation: pvs-ledman-dots 1.2s steps(4, end) infinite;
}

@keyframes pvs-ledman-bob {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-6px) rotate(3deg); }
}

@keyframes pvs-ledman-dots {
	0% { content: ''; }
	25% { content: '.'; }
	50% { content: '..'; }
	75% { content: '...'; }
}

.pvs-ac {
	position: fixed;
	z-index: 420;
	background: #fff;
	border: 1px solid var(--pv-borde, #e6e6e6);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(0, 31, 95, 0.14);
	max-height: min(70vh, 520px);
	overflow: auto;
	padding: 8px;
}

.pvs-ac[hidden] {
	display: none;
}

.pvs-ac-ledman {
	display: block;
	padding: 8px;
	margin-bottom: 6px;
	border-radius: 12px;
	background: #f6f7fb;
}

.pvs-ac-ledman-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pvs-ac-ledman[hidden] {
	display: none;
}

.pvs-ac-ledman .pvs-ledman-avatar {
	width: 56px;
	height: 72px;
}

.pvs-ac-kicker,
.pvs-ac-name {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--pv-texto, #172033);
}

.pvs-ac-status,
.pvs-ac-gap,
.pvs-ac-empty {
	margin: 2px 0 0;
	font-size: 12px;
	color: #6b6b6b;
}

.pvs-ac-hits {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	width: 100%;
	min-width: 0;
}

.pvs-ac-hit {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 8px;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
}

.pvs-ac a.pvs-ac-hit,
.pvs-ac a.pvs-ac-hit:hover,
.pvs-ac a.pvs-ac-hit:focus,
.pvs-ac a.pvs-ac-hit:hover .pvs-ac-hit-name,
.pvs-ac a.pvs-ac-hit:focus .pvs-ac-hit-name,
.pvs-ac a.pvs-ac-hit:hover .pvs-ac-hit-price,
.pvs-ac a.pvs-ac-hit:focus .pvs-ac-hit-price,
.pvs-ac a.pvs-ac-hit:hover .woocommerce-Price-amount,
.pvs-ac a.pvs-ac-hit:hover .woocommerce-Price-currencySymbol {
	color: #24303f !important;
}

.pvs-ac a.pvs-ac-hit:hover,
.pvs-ac a.pvs-ac-hit:focus {
	background: #e8eef8;
	outline: none;
}

.pvs-ac-ledman .pvs-ac-hit:hover,
.pvs-ac-ledman .pvs-ac-hit:focus {
	background: #fff;
	color: #24303f !important;
}

.pvs-ac-hit img {
	width: 52px !important;
	height: 52px !important;
	max-width: 52px !important;
	max-height: 52px !important;
	min-width: 0;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
	display: block;
}

.pvs-ac-hit-name {
	min-width: 0;
	font-size: 14px;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pvs-ac-hit-price {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.pvs-ac-hit-price .screen-reader-text,
.pvs-ac-hit-price small,
.pvs-ac-hit-price .woocommerce-price-suffix,
.pvs-ac-hit-price .precio-sin-iva {
	display: none;
}

.pvs-ac-catalog {
	padding: 4px 8px 8px;
}

.pvs-ac-all {
	display: block;
	margin: 4px 8px 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.pvs-ledman-avatar.is-thinking,
	.pvs-ledman-dots::after {
		animation: none;
	}
}
