/**
 * AED Leader - Product Tabs
 * hello-elementor-child/assets/css/aedl-product-tabs.css
 *
 * Every rule is scoped under .aedl-tabs so nothing leaks into WooCommerce's
 * default tabs, Elementor widgets, or the rest of the theme.
 */

.aedl-tabs {
	--aedl-red: #e0242a;
	--aedl-red-dark: #a8151a;
	--aedl-text: #1a1a1a;
	--aedl-muted: #6b7280;
	--aedl-line: #e5e7eb;
	--aedl-card: #ffffff;
	--aedl-green: #27c26a;
	--aedl-radius: 14px;

	width: 100%;
	font-size: 16px;
	line-height: 1.6;
	color: var(--aedl-text);
}

.aedl-tabs *,
.aedl-tabs *::before,
.aedl-tabs *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------
 * Nav
 * ----------------------------------------------------------------- */

.aedl-tabs .aedl-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	margin: 0 0 28px;
	padding: 0;
	border-bottom: 1px solid var(--aedl-line);
}

/* Beat Hello Elementor / Woo button resets. */
.aedl-tabs .aedl-tabs__tab,
.aedl-tabs button.aedl-tabs__tab {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	background-color: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	box-shadow: none;
	padding: 0 0 14px;
	margin: 0 0 -1px;
	font: inherit;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: var(--aedl-muted);
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}

.aedl-tabs .aedl-tabs__tab:hover,
.aedl-tabs .aedl-tabs__tab:focus,
.aedl-tabs button.aedl-tabs__tab:hover,
.aedl-tabs button.aedl-tabs__tab:focus {
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: var(--aedl-text);
}

.aedl-tabs .aedl-tabs__tab.is-active,
.aedl-tabs button.aedl-tabs__tab.is-active {
	color: var(--aedl-red);
	border-bottom-color: var(--aedl-red);
}

.aedl-tabs .aedl-tabs__tab:focus-visible {
	outline: 2px solid var(--aedl-red);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ------------------------------------------------------------------
 * Panels
 * ----------------------------------------------------------------- */

.aedl-tabs .aedl-tabs__panel[hidden] {
	display: none;
}

.aedl-tabs .aedl-tab__heading {
	margin: 0 0 15px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--aedl-text);
}

.aedl-tabs .aedl-tab__wysiwyg > *:first-child {
	margin-top: 0;
}

.aedl-tabs .aedl-tab__wysiwyg > *:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------
 * Tab 2 - What's included
 * ----------------------------------------------------------------- */

.aedl-tabs .aedl-included {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aedl-tabs .aedl-included__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aedl-tabs .aedl-included__item::before {
	content: none;
}

.aedl-tabs .aedl-included__item::marker {
	content: none;
}

.aedl-tabs .aedl-included__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--aedl-green);
}

.aedl-tabs .aedl-included__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.aedl-tabs .aedl-included__text {
	flex: 1 1 auto;
}

/* ------------------------------------------------------------------
 * Tab 3 - Specifications
 * ----------------------------------------------------------------- */

.aedl-tabs .aedl-specs {
	background: var(--aedl-card);
	border: 1px solid var(--aedl-line);
	border-radius: var(--aedl-radius);
	overflow: hidden;
}

.aedl-tabs .aedl-specs__row {
	display: grid;
	grid-template-columns: minmax(180px, 30%) 1fr;
	gap: 20px;
	padding: 15px;
	border-bottom: 1px solid var(--aedl-line);
}

.aedl-tabs .aedl-specs__row:last-child {
	border-bottom: 0;
}

.aedl-tabs .aedl-specs__label {
	color: var(--aedl-muted);
}

.aedl-tabs .aedl-specs__value {
	color: var(--aedl-text);
}

/* Brochure download link */

.aedl-tabs a.aedl-brochure,
.aedl-tabs .aedl-brochure {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 24px;
	color: var(--aedl-red);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color .18s ease, text-decoration-color .18s ease;
}

.aedl-tabs a.aedl-brochure:hover,
.aedl-tabs a.aedl-brochure:focus,
.aedl-tabs a.aedl-brochure:focus-visible,
.aedl-tabs a.aedl-brochure:active {
	color: var(--aedl-red-dark);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.aedl-tabs a.aedl-brochure:focus-visible {
	outline: 2px solid var(--aedl-red);
	outline-offset: 4px;
	border-radius: 3px;
}

.aedl-tabs .aedl-brochure__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	transition: transform .18s ease;
}

/* Nudge the arrow down on hover - reads as "download". */
.aedl-tabs a.aedl-brochure:hover .aedl-brochure__icon,
.aedl-tabs a.aedl-brochure:focus-visible .aedl-brochure__icon {
	transform: translateY(2px);
}

.aedl-tabs .aedl-brochure__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (prefers-reduced-motion: reduce) {

	.aedl-tabs a.aedl-brochure,
	.aedl-tabs .aedl-brochure__icon {
		transition: none;
	}

	.aedl-tabs a.aedl-brochure:hover .aedl-brochure__icon,
	.aedl-tabs a.aedl-brochure:focus-visible .aedl-brochure__icon {
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * Mobile
 * ----------------------------------------------------------------- */

@media (max-width: 767px) {

	.aedl-tabs .aedl-tabs__nav {
		gap: 22px;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.aedl-tabs .aedl-tabs__nav::-webkit-scrollbar {
		display: none;
	}

	.aedl-tabs .aedl-tabs__tab,
	.aedl-tabs button.aedl-tabs__tab {
		font-size: 16px;
		white-space: nowrap;
	}

	.aedl-tabs .aedl-tab__heading {
		font-size: 22px;
	}

	.aedl-tabs .aedl-specs__row {
		grid-template-columns: 1fr;
		gap: 6px;
		padding: 18px 20px;
	}
}
