/**
 * Al Aweer product catalogue helpers.
 *
 * Brand values inherit Flatsome's Customizer tokens. Fallbacks mirror the
 * current staging source and apply only when the theme token is unavailable.
 */
.alaweer-products {
	--alaweer-primary: var(--fs-color-primary, var(--primary-color, #0ca0db));
	--alaweer-secondary: var(--fs-color-secondary, #f89d27);
	--alaweer-link: var(--fs-experimental-link-color, currentColor);
	--alaweer-text: currentColor;
	--alaweer-muted: #596775;
	--alaweer-surface: #fff;
	--alaweer-surface-soft: #f5f7f8;
	--alaweer-border: rgba(17, 24, 39, 0.16);
	--alaweer-primary-dark: #075b7d;
	--alaweer-primary-dark: color-mix(in srgb, var(--alaweer-primary) 58%, #000);
	--alaweer-focus: #7a4300;
	--alaweer-focus: color-mix(in srgb, var(--alaweer-secondary) 50%, #000);

	color: var(--alaweer-text);
	font-family: inherit;
}

.alaweer-products *,
.alaweer-products *::before,
.alaweer-products *::after {
	box-sizing: border-box;
}

.alaweer-products__intro,
.alaweer-product-detail__heading {
	background: var(--alaweer-surface-soft);
	border-bottom: 1px solid var(--alaweer-border);
	padding: clamp(2.75rem, 6vw, 5.75rem) 0;
}

.alaweer-products__eyebrow {
	color: var(--alaweer-primary-dark);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.7rem;
	text-transform: uppercase;
}

.alaweer-products__title,
.alaweer-product-detail__title {
	font: inherit;
	font-family: inherit;
	font-size: clamp(2.15rem, 5vw, 4.25rem);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin: 0;
	max-width: 18ch;
}

.alaweer-products__lead,
.alaweer-product-detail__subtitle {
	color: var(--alaweer-muted);
	font-size: clamp(1rem, 1.35vw, 1.18rem);
	line-height: 1.65;
	margin-top: 1.1rem;
	max-width: 68ch;
}

.alaweer-products__lead > :last-child {
	margin-bottom: 0;
}

.alaweer-category-intro {
	align-items: center;
	display: flex;
	gap: clamp(1.25rem, 4vw, 3.5rem);
	justify-content: space-between;
	margin-top: 1.25rem;
	max-width: 78rem;
	padding: 1.1rem 0 0 1.25rem;
	position: relative;
}

.alaweer-category-intro::before {
	background: var(--alaweer-primary);
	content: "";
	height: calc(100% - 1.1rem);
	left: 0;
	position: absolute;
	top: 1.1rem;
	width: 4px;
}

.alaweer-category-intro .alaweer-products__lead {
	margin-top: 0;
}

.alaweer-category-intro__body {
	flex: 1 1 auto;
}

.alaweer-category-intro__cta {
	align-items: center;
	background-color: var(--alaweer-primary-dark);
	border-color: var(--alaweer-primary-dark);
	color: #fff;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.35rem;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.15rem;
	text-decoration: none;
}

.alaweer-category-intro__cta:hover {
	background-color: var(--alaweer-primary-dark);
	border-color: var(--alaweer-secondary);
	color: #fff;
}

.alaweer-category-intro__cta:focus-visible {
	outline: 3px solid var(--alaweer-focus);
	outline-offset: 3px;
}

.alaweer-products__catalog,
.alaweer-product-detail__content {
	padding: clamp(2.25rem, 5vw, 4.75rem) 0;
}

.alaweer-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0 0 clamp(1.8rem, 4vw, 3.25rem);
	scrollbar-color: var(--alaweer-primary-dark) transparent;
	scrollbar-width: thin;
}

.alaweer-filter::-webkit-scrollbar {
	height: 6px;
}

.alaweer-filter::-webkit-scrollbar-thumb {
	background: var(--alaweer-primary-dark);
	border-radius: 999px;
}

.alaweer-filter__link {
	align-items: center;
	background: var(--alaweer-surface);
	border: 1px solid var(--alaweer-border);
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.25;
	min-height: 44px;
	padding: 0.65rem 1rem;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.alaweer-filter__link:hover {
	border-color: var(--alaweer-primary);
	color: var(--alaweer-primary-dark);
}

.alaweer-filter__link.is-current {
	background: var(--alaweer-primary-dark);
	border-color: var(--alaweer-primary-dark);
	color: #fff;
}

.alaweer-category-children {
	margin: 0 0 clamp(2rem, 4vw, 3.25rem);
}

.alaweer-category-children__label {
	color: var(--alaweer-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.alaweer-category-children__links {
	display: grid;
	gap: 0.7rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.alaweer-category-children__link {
	align-items: center;
	background: var(--alaweer-surface-soft);
	border: 1px solid var(--alaweer-border);
	color: inherit;
	display: flex;
	font-weight: 700;
	gap: 0.75rem;
	justify-content: space-between;
	min-height: 50px;
	padding: 0.75rem 1rem;
	text-decoration: none;
	transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.alaweer-category-children__link:hover {
	border-color: var(--alaweer-primary);
	color: var(--alaweer-primary-dark);
	transform: translateY(-2px);
}

.alaweer-category-children__link:focus-visible {
	outline: 3px solid var(--alaweer-focus);
	outline-offset: 3px;
}

.alaweer-filter__link:focus-visible,
.alaweer-product-card:focus-visible,
.alaweer-product-detail__back:focus-visible,
.alaweer-product-detail__terms a:focus-visible,
.alaweer-product-detail__download:focus-visible {
	outline: 3px solid var(--alaweer-focus);
	outline-offset: 3px;
}

.alaweer-product-grid {
	align-items: stretch;
}

.alaweer-product-grid__item {
	display: flex;
	margin-bottom: 1.75rem;
}

.alaweer-product-grid__item > .col-inner {
	display: flex;
	width: 100%;
}

.alaweer-product-card {
	background: var(--alaweer-surface);
	border: 1px solid var(--alaweer-border);
	color: inherit;
	cursor: pointer;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}

.alaweer-product-card:hover {
	border-color: var(--alaweer-primary);
	color: inherit;
	transform: translateY(-3px);
}

.alaweer-product-card__media {
	aspect-ratio: 4 / 3;
	background: var(--alaweer-surface-soft);
	overflow: hidden;
	width: 100%;
}

.alaweer-product-card__image {
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.alaweer-product-card:hover .alaweer-product-card__image {
	transform: scale(1.025);
}

.alaweer-product-card__placeholder {
	align-items: center;
	background: var(--alaweer-surface-soft);
	color: var(--alaweer-muted);
	display: flex;
	font-size: 0.86rem;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	width: 100%;
}

.alaweer-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 1.25rem;
	text-align: left;
}

.alaweer-product-card__tag,
.alaweer-product-detail__terms a {
	color: var(--alaweer-primary-dark);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.alaweer-product-card__title {
	font-family: inherit;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.25;
	margin: 0.65rem 0 0;
}

.alaweer-product-card__subtitle {
	color: var(--alaweer-muted);
	font-size: 0.97rem;
	line-height: 1.6;
	margin: 0.75rem 0 0;
}

.alaweer-product-card__action {
	color: var(--alaweer-primary-dark);
	font-size: 0.9rem;
	font-weight: 700;
	margin-top: auto;
	padding-top: 1.25rem;
}

.alaweer-store-card__price {
	color: var(--alaweer-primary-dark);
	display: block;
	font-size: 1rem;
	font-weight: 700;
	margin-top: 0.85rem;
}

.alaweer-store-card__price del {
	color: var(--alaweer-muted);
	font-size: 0.88em;
	font-weight: 400;
	margin-right: 0.3rem;
}

.alaweer-products__empty {
	background: var(--alaweer-surface-soft);
	border-left: 4px solid var(--alaweer-primary);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.alaweer-products__empty > :last-child {
	margin-bottom: 0;
}

.alaweer-products .navigation.pagination {
	margin-top: 1.5rem;
}

.alaweer-product-detail__back {
	color: var(--alaweer-primary-dark);
	display: inline-flex;
	font-weight: 700;
	gap: 0.4rem;
	margin-bottom: 1.5rem;
	min-height: 44px;
	align-items: center;
}

.alaweer-product-detail__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	margin-bottom: 0.85rem;
}

.alaweer-product-detail__terms a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.alaweer-product-detail__back:hover,
.alaweer-product-detail__terms a:hover {
	color: var(--alaweer-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

.alaweer-product-gallery {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alaweer-product-gallery__item {
	aspect-ratio: 4 / 3;
	background: var(--alaweer-surface-soft);
	margin: 0;
	overflow: hidden;
}

.alaweer-product-gallery__item--primary {
	aspect-ratio: 16 / 10;
	grid-column: 1 / -1;
}

.alaweer-product-gallery__image {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.alaweer-product-detail__description {
	font-size: 1rem;
	line-height: 1.7;
	margin-top: clamp(1.75rem, 4vw, 3.25rem);
	max-width: 72ch;
}

.alaweer-product-detail__panel {
	background: var(--alaweer-surface-soft);
	border-top: 4px solid var(--alaweer-primary);
	padding: clamp(1.4rem, 3vw, 2.25rem);
	position: sticky;
	top: 96px;
}

.alaweer-product-detail__panel h2 {
	font-family: inherit;
	font-size: 1.45rem;
	margin: 0 0 1.25rem;
}

.alaweer-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.alaweer-feature-list li {
	border-bottom: 1px solid var(--alaweer-border);
	line-height: 1.55;
	padding: 0.8rem 0 0.8rem 1.5rem;
	position: relative;
}

.alaweer-feature-list li::before {
	background: var(--alaweer-secondary);
	border-radius: 50%;
	content: "";
	height: 0.55rem;
	left: 0;
	position: absolute;
	top: 1.27rem;
	width: 0.55rem;
}

.alaweer-product-detail__download {
	background-color: var(--alaweer-primary-dark);
	border-color: var(--alaweer-primary-dark);
	color: #fff;
	display: inline-flex;
	gap: 0.45rem;
	justify-content: center;
	margin: 1.5rem 0 0;
	min-height: 44px;
	white-space: normal;
	width: 100%;
}

.alaweer-product-detail__download:hover {
	background-color: var(--alaweer-primary-dark);
	border-color: var(--alaweer-secondary);
	color: #fff;
}

@media (max-width: 849px) {
	.alaweer-product-detail__panel {
		position: static;
		top: auto;
	}
}

@media (max-width: 549px) {
	.alaweer-products__intro,
	.alaweer-product-detail__heading {
		padding: 2.5rem 0;
	}

	.alaweer-filter {
		flex-wrap: nowrap;
		margin-left: -15px;
		margin-right: -15px;
		overflow-x: auto;
		padding: 0 15px 0.5rem;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.alaweer-filter__link {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.alaweer-product-gallery {
		grid-template-columns: 1fr;
	}

	.alaweer-product-gallery__item--primary {
		grid-column: auto;
	}

	.alaweer-category-intro {
		align-items: stretch;
		flex-direction: column;
		gap: 1.1rem;
	}

	.alaweer-category-intro__cta {
		align-self: flex-start;
	}

	.alaweer-category-children__links {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.alaweer-product-card,
	.alaweer-product-card__image,
	.alaweer-filter__link,
	.alaweer-category-children__link {
		scroll-behavior: auto;
		transition: none;
	}

	.alaweer-product-card:hover,
	.alaweer-product-card:hover .alaweer-product-card__image {
		transform: none;
	}
}
