/* Botón de marcas en el header */
.site-tools .header-brand-icon {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 24px;
	position: relative;
	white-space: nowrap;
}

.site-tools .header-brand-icon .woostify-svg-icon svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.site-tools .header-brand-label {
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
}

/* Popup de marcas (basado en el diálogo de búsqueda de Woostify) */
.dialog-brand-open {
	overflow: hidden;
}

.dialog-brand-open .site-dialog-brand {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.dialog-brand-open .dialog-brand-content {
	animation-name: anim-open;
}

.dialog-brand-close .dialog-brand-content {
	animation-name: anim-close;
}

.dialog-brand-open .dialog-brand-content,
.dialog-brand-close .dialog-brand-content {
	animation-duration: 0.4s;
	animation-fill-mode: forwards;
}

.site-dialog-brand {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	position: fixed;
	z-index: 200;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	background-color: rgba(55, 58, 71, 0.9);
	transition-duration: 0.4s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog-brand-content {
	opacity: 0;
	width: 50%;
	max-width: 650px;
	min-width: 290px;
	background-color: #fff;
	position: relative;
	z-index: 5;
	border-radius: 4px;
	overflow: hidden;
}

.dialog-brand-header {
	padding-left: 20px;
	font-weight: 700;
	position: relative;
	z-index: 10;
	box-shadow: 0 -3px 15px 6px rgba(0, 0, 0, 0.03);
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 50px;
}

.dialog-brand-title {
	flex-grow: 1;
	text-transform: uppercase;
}

.dialog-brand-close-icon {
	cursor: pointer;
	font-weight: 700;
	height: 50px;
	width: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dialog-brand-close-icon:hover {
	color: firebrick;
}

.dialog-brand-main {
	padding: 16px 20px 20px;
}

.brand-search-field {
	width: 100%;
	height: 48px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 0 14px;
	font-size: 16px;
	background: #f1f3f5;
}

.brand-search-field:focus {
	outline: none;
	border-color: #1346af;
	box-shadow: 0 0 0 2px rgba(19, 70, 175, 0.15);
}

.brand-search-results {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
}

.brand-search-result-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	border-bottom: 1px solid #f1f3f5;
}

.brand-search-result-item:last-child {
	border-bottom: 0;
}

.brand-search-result-item:hover,
.brand-search-result-item.is-active {
	background: #f8fafc;
}

.brand-search-result-name {
	font-weight: 600;
	color: #1f2937;
}

.brand-search-result-count {
	font-size: 13px;
	color: #6b7280;
	white-space: nowrap;
}

.brand-search-status {
	margin: 10px 0 0;
	font-size: 14px;
	color: #6b7280;
	min-height: 20px;
}

.brand-search-results.is-featured {
	border-style: dashed;
}

/* Desktop: al lado de la lupa */
@media (min-width: 992px) {
	.site-tools .header-brand-icon {
		margin-left: 15px;
	}
}

/* Mobile: debajo de la lupa */
@media (max-width: 991px) {
	.site-tools {
		flex-direction: column;
		align-items: flex-end;
		justify-content: center;
		gap: 4px;
	}

	.site-tools .header-brand-icon {
		display: flex !important;
		margin-left: 0;
		font-size: 20px;
		gap: 4px;
	}

	.site-tools .header-brand-icon .woostify-svg-icon svg {
		width: 20px;
		height: 20px;
	}

	.site-tools .header-brand-label {
		font-size: 12px;
	}

	.site-tools .header-search-icon {
		margin-left: 0;
	}

	.dialog-brand-content {
		max-width: 80%;
		width: 100%;
	}
}
