/**
 * Brand Archive Page
 *
 * Layout: brand name, left description + right picture; then category sections
 * with product grid. Matches theme (Blocksy child) and product card styles.
 *
 * @package Blocksy_Child
 */

/* Hide Blocksy theme hero / entry-header (page-title + long page-description) on brand pages */
.archive.tax-product_brand .entry-header.ct-container-narrow,
.archive.tax-product_brand .hero-section[data-type="type-1"] {
	display: none !important;
}

/* ----- Page wrapper ----- */
.autohjul-brand-page {
	max-width: 100%;
	margin: 0 auto 2rem;
}

/* ----- Header: two columns (left: name + description, right: image) ----- */
.autohjul-brand-page__header {
	margin-bottom: 2.5rem;
}

.autohjul-brand-page__header-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: start;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
	.autohjul-brand-page__header-inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 1.5rem;
	}
}

.autohjul-brand-page__header-left {
	min-width: 0;
}

.autohjul-brand-page__title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 700;
	color: #2563eb;
	margin: 0 0 1rem 0;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.autohjul-brand-page__description {
	font-size: 15px;
	line-height: 1.65;
	color: #374151;
	margin: 0;
}

.autohjul-brand-page__description p {
	margin: 0 0 0.75em 0;
}

.autohjul-brand-page__description p:last-child {
	margin-bottom: 0;
}

.autohjul-brand-page__header-right {
	flex-shrink: 0;
}

.autohjul-brand-page__image {
	display: block;
	max-width: 280px;
	width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	background: #f9fafb;
	padding: 12px;
	border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
	.autohjul-brand-page__image {
		max-width: 100%;
		margin: 0 auto;
	}
}

/* ----- Product sections ----- */
.autohjul-brand-page__products {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.autohjul-brand-page__section {
	margin: 0;
}

.autohjul-brand-page__section-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: #111827;
	margin: 0 0 1.25rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e5e7eb;
	line-height: 1.3;
}

/* ----- Product grid (reuse WooCommerce .products layout) ----- */
.autohjul-brand-page__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.autohjul-brand-page__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 640px) {
	.autohjul-brand-page__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}
}

@media (max-width: 576px) {
	.autohjul-brand-page__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
}

/* Ensure product cards in brand page use same styling as shop */
.autohjul-brand-page__grid .autohjul-product-card--dack,
.autohjul-brand-page__grid .autohjul-product-card--falgar {
	width: 100%;
}

.autohjul-brand-page__grid .autohjul-product-card__inner {
	height: 100%;
}
