/**
 * Brands Shortcode Styles
 *
 * @package Blocksy_Child
 */

.autohjul-brands-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 2rem 0;
	position: relative;
}

.autohjul-brands-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	color: #2563eb;
	cursor: pointer;
	transition: color 0.2s, opacity 0.2s;
	flex-shrink: 0;
}

.autohjul-brands-nav:hover {
	color: #1d4ed8;
	opacity: 0.8;
}

.autohjul-brands-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.autohjul-brands-track-container {
	flex: 1;
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}

.autohjul-brands-track {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 2rem;
	flex-wrap: nowrap;
	width: max-content;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.autohjul-brands-track--transition-fade {
	transition: opacity 0.3s ease;
}

.autohjul-brands-item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 60px;
	padding: 0.5rem 1rem;
	text-decoration: none;
	color: #374151;
	transition: opacity 0.2s, transform 0.2s;
}

.autohjul-brands-item:hover {
	opacity: 0.8;
}

.autohjul-brands-img {
	max-width: 100%;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Mobile: 2 visible, larger logos */
@media (max-width: 767px) {
	.autohjul-brands-item {
		height: 90px;
		padding: 0.75rem 1.25rem;
	}
	.autohjul-brands-img {
		max-height: 90px;
	}
}

.autohjul-brands-name {
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	word-break: break-word;
}

.autohjul-brands-empty {
	text-align: center;
	padding: 2rem;
	color: #6b7280;
}
