/*
 * Elementor Shop Brand Detail — mirrors the xsmokehub BrandDetail.tsx design
 * (DM Serif Display headings + Jost body, ink #222 / muted #888 / line
 * #E5E5E5 / surface #F5F5F5 palette, rounded-2xl cards).
 *
 * @package Elementor_Shop_Brand_Detail
 */

.esbd-page {
	width: 100%;
	box-sizing: border-box;
}

.esbd-container {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---- Breadcrumb ---- */
.esbd-breadcrumb {
	border-bottom: 1px solid #e5e5e5;
	background: #ffffff;
}
.esbd-breadcrumb .esbd-container {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	color: #888888;
}
.esbd-breadcrumb a {
	color: #888888;
	text-decoration: none;
	transition: color 0.2s ease;
}
.esbd-breadcrumb a:hover {
	color: #222222;
}
.esbd-breadcrumb-sep {
	color: #cccccc;
}
.esbd-breadcrumb-current {
	color: #222222;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Hero ---- */
.esbd-hero {
	position: relative;
	height: 288px;
	overflow: hidden;
	background: #222222;
}
@media (min-width: 1024px) {
	.esbd-hero {
		height: 384px;
	}
}
.esbd-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
}
.esbd-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}
.esbd-hero-inner {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 40px;
}
.esbd-hero-meta {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.esbd-hero-title {
	margin: 0 0 12px;
	color: #ffffff;
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 48px;
	font-weight: 400;
	line-height: 1.1;
}
@media (min-width: 1024px) {
	.esbd-hero-title {
		font-size: 60px;
	}
}
.esbd-hero-tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 16px;
	font-style: italic;
}

/* ---- Stat strip ---- */
.esbd-stats {
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
}
.esbd-stats-row {
	display: flex;
	flex-wrap: wrap;
}
.esbd-stat {
	flex: 1 1 0;
	min-width: 0;
	padding: 20px 16px;
	text-align: center;
	border-right: 1px solid #e5e5e5;
}
.esbd-stat:last-child {
	border-right: 0;
}
.esbd-stat-value {
	margin: 0 0 4px;
	font-family: 'Jost', sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	color: #222222;
}
.esbd-stat-label {
	margin: 0;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888888;
}
@media (max-width: 640px) {
	.esbd-stat {
		flex: 1 1 50%;
		border-bottom: 1px solid #e5e5e5;
	}
	.esbd-stat:nth-child(2n) {
		border-right: 0;
	}
}

/* ---- Products / About / More shared layout ---- */
.esbd-products,
.esbd-about,
.esbd-more {
	padding: 56px 0 0;
}

.esbd-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.esbd-eyebrow {
	margin: 0 0 4px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #888888;
}
.esbd-section-title {
	margin: 0;
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: #222222;
}
.esbd-items-count {
	flex-shrink: 0;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	color: #888888;
}

/* ---- Category pills ---- */
.esbd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.esbd-pill {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #ffffff;
	color: #666666;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.esbd-pill:hover {
	border-color: #222222;
	color: #222222;
}
.esbd-pill.is-active {
	background: #222222;
	border-color: #222222;
	color: #ffffff;
}

/* ---- Product grid + cards ---- */
.esbd-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 1024px) {
	.esbd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (max-width: 640px) {
	.esbd-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}
}

.esbd-hidden {
	display: none !important;
}

.esbd-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}
.esbd-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.esbd-card-image {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}
.esbd-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}
.esbd-card:hover .esbd-card-image img {
	transform: scale(1.05);
}
.esbd-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: #222222;
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
}
.esbd-view-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.esbd-card:hover .esbd-view-overlay {
	opacity: 1;
}

.esbd-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px;
}
.esbd-card-cat {
	margin: 0 0 4px;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #888888;
}
.esbd-card-title {
	margin: 0 0 6px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #222222;
}
.esbd-card-title a {
	color: inherit;
	text-decoration: none;
}
.esbd-card-title a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.esbd-card-info {
	margin: 0 0 12px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #888888;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.esbd-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}
.esbd-stars {
	display: inline-flex;
	gap: 2px;
}
.esbd-stars svg {
	display: block;
	width: 13px !important;
	height: 13px !important;
	flex-shrink: 0;
}
.esbd-stars svg polygon {
	fill: inherit !important;
	stroke: inherit !important;
	stroke-width: inherit !important;
}
.esbd-card-rating span {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	color: #888888;
}
.esbd-card-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.esbd-card-price {
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #222222;
}
.esbd-card-price .amount,
.esbd-card-price bdi,
.esbd-card-price .woocommerce-Price-currencySymbol {
	color: inherit !important;
}

.esbd-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	padding: 9px 16px;
	border-radius: 8px;
	background: #222222;
	color: #ffffff;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.esbd-add:hover {
	background: #000000;
	color: #ffffff;
}
.esbd-add.is-added {
	background: #4caf50 !important;
	color: #ffffff !important;
}
.esbd-add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
.esbd-add-variable {
	background: #ffffff;
	color: #222222;
	border: 1px solid #222222;
}
.esbd-add-variable:hover {
	background: #222222;
	color: #ffffff;
}
.esbd-add-disabled {
	background: #f5f5f5;
	color: #bbbbbb;
	cursor: default;
}

/* ---- Empty + pagination ---- */
.esbd-empty {
	text-align: center;
	padding: 48px 0;
}
.esbd-empty-emoji {
	margin: 0 0 8px;
	font-size: 32px;
	line-height: 1;
}
.esbd-empty-text {
	margin: 0;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	color: #888888;
}
.esbd-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.esbd-pagination:not(:empty) {
	margin-top: 40px;
}
.esbd-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #ffffff;
	color: #666666;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.esbd-page-btn:hover {
	border-color: #222222;
	color: #222222;
}
.esbd-page-btn.is-active {
	background: #222222;
	border-color: #222222;
	color: #ffffff;
}
.esbd-page-btn:disabled {
	opacity: 0.4;
	cursor: default;
}
.esbd-page-dots {
	min-width: 20px;
	text-align: center;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	color: #888888;
}

/* ---- About ---- */
.esbd-about {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
	padding-top: 72px;
}
@media (min-width: 1024px) {
	.esbd-about {
		grid-template-columns: 1fr 1fr;
	}
}
.esbd-about-text {
	margin: 20px 0 0;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	line-height: 1.9;
	color: #555555;
}
.esbd-about-media {
	aspect-ratio: 1 / 1;
	border-radius: 16px;
	overflow: hidden;
	background: #f5f5f5;
}
.esbd-about-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Other brands ---- */
.esbd-more {
	padding-bottom: 64px;
}
.esbd-more-link {
	flex-shrink: 0;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #222222;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.esbd-more-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.esbd-more-chip {
	flex-shrink: 0;
	width: 144px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 24px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	background: #ffffff;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.esbd-more-chip:hover {
	border-color: #222222;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.esbd-more-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #f5f5f5;
	color: #222222;
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.esbd-more-chip:hover .esbd-more-avatar {
	background: #222222;
	color: #ffffff;
}
.esbd-more-avatar--logo {
	padding: 4px;
	background: #ffffff;
	overflow: hidden;
}
.esbd-more-avatar--logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.esbd-more-chip:hover .esbd-more-avatar--logo {
	background: #ffffff;
}
.esbd-more-name {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #222222;
	text-align: center;
	line-height: 1.3;
}
.esbd-more-meta {
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	color: #888888;
}

.esbd-missing {
	padding: 96px 0;
	text-align: center;
	font-family: 'Jost', sans-serif;
	font-size: 16px;
	color: #888888;
}
