/*
 * Product catalogue: products overview (page-urunler.php), group and
 * subcategory pages (template-product-category.php) and product pages
 * (template-product.php + template-parts/product/*). Loaded on those pages only.
 */

/* Product grid (cards from layout.css). */
.product-grid {
	display: grid;
	gap: 2rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-grid .product-card {
	min-height: 0;
}

.product-grid .product-card__media {
	height: 15rem;
}

.product-grid .product-card__title {
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}

.product-grid .product-card__text {
	font-size: 1rem;
}

/* Subcategory cards: product image, title, text, product count. */
.subcategory-grid {
	display: grid;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.subcategory-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--myco-color-primary);
	border-radius: var(--myco-radius-xl);
	background: var(--myco-color-bg);
}

.subcategory-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 13rem;
	margin: 0;
	padding: 2rem 1.5rem 1rem;
}

.subcategory-card__media img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	transition: transform 400ms ease;
}

.subcategory-card:hover .subcategory-card__media img {
	transform: scale(1.08);
}

.subcategory-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.5rem 1.75rem 1.75rem;
}

.subcategory-card__title {
	margin: 0;
	font-family: var(--myco-font-sans);
	font-size: clamp(1.25rem, 1.6vw, 1.4375rem);
	font-weight: 700;
	line-height: 1.25;
}

.subcategory-card__title a {
	color: var(--myco-color-primary);
	text-decoration: none;
}

/* The whole card opens the subcategory. */
.subcategory-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.subcategory-card__text {
	margin: 0;
	color: var(--myco-color-body);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.subcategory-card__count {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
	font-weight: 600;
}

.subcategory-card:hover .myco-pill__icon,
.subcategory-card:focus-within .myco-pill__icon {
	background: var(--myco-accent, var(--myco-color-accent));
}

.subcategory-card:has(a:focus-visible) {
	outline: 2px solid var(--myco-color-accent);
	outline-offset: 3px;
}

/* Products overview: one block per group. */
.product-group__head {
	align-items: flex-end;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.product-group__head h2 {
	margin: 0.5rem 0 0;
}

.product-group__head p {
	max-width: 46rem;
	margin: 0.75rem 0 0;
	font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
	line-height: 1.55;
}

.product-group__label {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-group__label::before {
	content: "";
	width: 2.5rem;
	height: 4px;
	border-radius: var(--myco-radius-pill);
	background: var(--myco-accent, var(--myco-color-accent));
}

/* Subcategory page: one section per product family. */
.product-family__head {
	align-items: baseline;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.product-family__head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.product-family__count {
	color: var(--myco-color-muted);
	font-weight: 600;
	white-space: nowrap;
}

/* Product hero: navy band; the gallery below overlaps its lower edge. */
.product-hero {
	padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(6rem, 11vw, 9.5rem);
	background: var(--myco-color-primary);
	color: var(--myco-color-on-dark);
}

.product-hero .breadcrumbs {
	margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
	font-size: 0.875rem;
}

.product-hero__grid {
	display: grid;
	gap: 1.25rem 4rem;
}

.product-hero__brand {
	margin-bottom: 1rem;
	color: var(--myco-color-on-dark);
	text-decoration: none;
}

/* Doubled class: beats the generic `.myco-dark a:hover` text colour. */
.product-hero .product-hero__brand:hover,
.product-hero .product-hero__brand:focus-visible {
	background: var(--myco-color-on-dark);
	color: var(--myco-color-primary);
}

.product-hero__title {
	margin: 0;
	color: var(--myco-color-on-dark);
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.1;
}

.myco-dark .product-hero__lead {
	max-width: 40rem;
	margin: 0;
	color: var(--myco-color-on-dark-muted);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
}

/* Overview: gallery | facts, actions, panels. */
.product-overview {
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.product-overview__grid {
	display: grid;
	gap: 2.5rem 4rem;
	align-items: start;
}

/* Gallery: scroll-snap slider (product.js) whose slides open in the lightbox. */
.product-gallery {
	min-width: 0;
	margin-top: calc(-1 * clamp(4.5rem, 9vw, 7.5rem));
}

.product-gallery__stage {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--myco-color-primary);
	border-radius: var(--myco-radius-xl);
	background: var(--myco-color-bg);
}

.product-gallery__track {
	position: relative;
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.product-gallery__track::-webkit-scrollbar {
	display: none;
}

.product-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 1;
	scroll-snap-align: start;
}

.product-gallery__link,
.product-gallery__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.product-gallery__link {
	position: absolute;
	inset: 0;
	border-radius: var(--myco-radius-xl);
	cursor: zoom-in;
}

.product-gallery__link:focus-visible {
	outline: 2px solid var(--myco-color-accent);
	outline-offset: -6px;
}

.product-gallery__placeholder {
	aspect-ratio: 1;
}

.product-gallery__image {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	transition: transform 400ms ease;
}

.product-gallery__link:hover .product-gallery__image {
	transform: scale(1.04);
}

/* Zoom hint (top right), prev / next (sides) and counter (bottom). */
.product-gallery__zoom {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--myco-color-surface);
	color: var(--myco-color-primary);
	pointer-events: none;
	transition: background-color var(--myco-transition), color var(--myco-transition);
}

.product-gallery__zoom .myco-icon {
	width: 1.25rem;
	height: 1.25rem;
	stroke-width: 1.75;
}

.product-gallery__stage:hover .product-gallery__zoom {
	background: var(--myco-color-primary);
	color: var(--myco-color-white);
}

.product-gallery__prev,
.product-gallery__next {
	position: absolute;
	top: 50%;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--myco-color-bg);
	transform: translateY(-50%);
}

.product-gallery__prev {
	left: 0.75rem;
}

.product-gallery__next {
	right: 0.75rem;
}

.product-gallery__count {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	margin: 0;
	padding: 0.25rem 0.75rem;
	border-radius: var(--myco-radius-pill);
	background: var(--myco-color-surface);
	color: var(--myco-color-primary);
	font-size: var(--myco-font-size-xs);
	font-weight: 700;
	line-height: 1.4;
	transform: translateX(-50%);
	font-variant-numeric: tabular-nums;
}

/* Without JavaScript the slider still swipes / scrolls; the buttons need the script. */
html:not(.js) .product-gallery__prev,
html:not(.js) .product-gallery__next,
html:not(.js) .product-gallery__count {
	display: none;
}

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.product-gallery__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.375rem;
	overflow: hidden;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-md);
	background: var(--myco-color-bg);
	aspect-ratio: 1;
	transition: border-color var(--myco-transition);
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-gallery__thumb:hover,
.product-gallery__thumb[aria-current="true"] {
	border-color: var(--myco-color-primary);
	box-shadow: inset 0 0 0 1px var(--myco-color-primary);
}

/* Key facts with thin dividers. */
.product-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.5rem;
	margin: 0;
}

.product-facts__item {
	padding: 1rem 0;
	border-top: 1px solid var(--myco-color-border);
}

.product-facts dt {
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-facts dd {
	margin: 0.25rem 0 0;
	color: var(--myco-color-primary);
	font-family: var(--myco-font-heading);
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-stretch: var(--myco-heading-stretch);
	font-weight: 600;
	line-height: 1.2;
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0 2rem;
}

/* The phone button matches the pill height (icon 3.25rem + padding + border). */
.product-actions .myco-circle {
	width: calc(3.75rem + 2px);
	height: calc(3.75rem + 2px);
}

/* Description / advantages / downloads: native disclosure panels. */
.product-panel {
	border-bottom: 1px solid var(--myco-color-primary);
}

.product-panel summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 0;
	cursor: pointer;
	list-style: none;
}

.product-panel summary::-webkit-details-marker {
	display: none;
}

.product-panel summary h2 {
	margin: 0;
	font-family: var(--myco-font-sans);
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.3;
}

.product-panel summary .myco-icon {
	flex: none;
	width: 2rem;
	height: 2rem;
	padding: 0.375rem;
	border: 1px solid var(--myco-color-primary);
	border-radius: 50%;
	transition: transform var(--myco-transition);
}

.product-panel[open] summary .myco-icon {
	transform: rotate(180deg);
}

.product-panel summary:focus-visible {
	outline: 2px solid var(--myco-color-accent);
	outline-offset: 2px;
}

.product-panel__body {
	padding-bottom: 1.5rem;
}

.product-panel__body > :first-child {
	margin-top: 0;
}

.product-panel__body p {
	margin: 0 0 1rem;
	line-height: 1.65;
}

.product-panel__body > :last-child,
.product-panel__body .entry-content > :last-child {
	margin-bottom: 0;
}

.product-downloads {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-downloads a {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--myco-color-primary);
	font-weight: 600;
	text-decoration: none;
}

.product-downloads a:hover,
.product-downloads a:focus-visible {
	text-decoration: underline;
}

.product-downloads .myco-icon {
	color: var(--myco-color-accent-text);
}

/* Technical data tables. */
.spec-table__title {
	margin: 2.5rem 0 1rem;
	font-family: var(--myco-font-sans);
	font-size: 1.25rem;
	font-weight: 700;
}

.page-section__head + .spec-table__title {
	margin-top: 0;
}

.spec-table {
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-md);
	background: var(--myco-color-bg);
}

.spec-table + .spec-table__title,
.spec-table + .spec-table,
.spec-table__note + .spec-table__title {
	margin-top: 2.5rem;
}

.spec-table:focus-visible {
	outline: 2px solid var(--myco-color-accent);
	outline-offset: 2px;
}

.spec-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.spec-table thead th {
	padding: 0.875rem 1rem;
	background: var(--myco-color-primary);
	color: var(--myco-color-on-dark);
	font-size: var(--myco-font-size-xs);
	font-weight: 700;
	text-align: left;
	vertical-align: bottom;
}

.spec-table tbody th,
.spec-table tbody td {
	padding: 0.6875rem 1rem;
	border-top: 1px solid var(--myco-color-border);
	text-align: left;
	vertical-align: top;
}

.spec-table tbody th {
	color: var(--myco-color-primary);
	font-weight: 700;
	white-space: nowrap;
}

.spec-table tbody td {
	color: var(--myco-color-body);
}

.spec-table tbody tr {
	background: var(--myco-color-bg);
}

.spec-table tbody tr:nth-child(even) {
	background: var(--myco-color-surface);
}

/* The model column stays in view while a wide table scrolls sideways. */
.spec-table thead th:first-child,
.spec-table tbody th[scope="row"] {
	position: sticky;
	z-index: 1;
	left: 0;
	background: inherit;
	box-shadow: inset -1px 0 0 var(--myco-color-border);
}

.spec-table thead th:first-child {
	background: var(--myco-color-primary);
	box-shadow: inset -1px 0 0 var(--myco-color-navy-line);
}

/* Wide screens: short values stay on one line, long text wraps at a readable
   width; tables with ten or more columns get tighter cells. */
@media (min-width: 48rem) {
	.spec-table tbody td {
		white-space: nowrap;
	}

	.spec-table tbody td.is-text {
		min-width: 14rem;
		white-space: normal;
	}

	.spec-table--compact thead th,
	.spec-table--compact tbody th,
	.spec-table--compact tbody td {
		padding-right: 0.625rem;
		padding-left: 0.625rem;
	}

	.spec-table--compact thead th:first-child,
	.spec-table--compact tbody th[scope="row"] {
		padding-left: 1rem;
	}
}

/* Column labels repeated in each cell, shown only in the phone card layout. */
.spec-table__label {
	display: none;
}

.spec-table .spec-table__section th {
	background: var(--myco-color-line);
	color: var(--myco-color-primary);
	font-size: var(--myco-font-size-sm);
}

.spec-table__note {
	margin: 0.75rem 0 0;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
}

/* Phones: tables with four or more columns (.spec-table--stack) become one
   card per row — first cell as a navy title, the other cells as labelled
   values in two columns. Desktop keeps the table above untouched. */
@media (max-width: 47.99rem) {
	.spec-table--stack {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.spec-table--stack:focus-visible {
		outline-offset: 4px;
	}

	.spec-table--stack table {
		display: block;
	}

	.spec-table--stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		white-space: nowrap;
		clip-path: inset(50%);
	}

	.spec-table--stack tbody {
		display: grid;
		gap: 0.75rem;
	}

	.spec-table--stack tbody tr,
	.spec-table--stack tbody tr:nth-child(even) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1px;
		overflow: hidden;
		border: 1px solid var(--myco-color-border);
		border-radius: var(--myco-radius-md);
		background: var(--myco-color-border);
	}

	.spec-table--stack tbody th[scope="row"] {
		position: static;
		grid-column: 1 / -1;
		padding: 0.75rem 1rem;
		border-top: 0;
		background: var(--myco-color-primary);
		box-shadow: none;
		color: var(--myco-color-on-dark);
		font-family: var(--myco-font-heading);
		font-size: 1.125rem;
		font-stretch: var(--myco-heading-stretch);
		font-weight: 600;
		white-space: normal;
	}

	.spec-table--stack tbody td {
		display: grid;
		align-content: space-between;
		gap: 0.125rem;
		padding: 0.625rem 1rem;
		border-top: 0;
		background: var(--myco-color-bg);
	}

	/* Empty values are left out; an odd last value spans the card (specs.php). */
	.spec-table--stack tbody td.is-empty {
		display: none;
	}

	.spec-table--stack tbody td.is-wide {
		grid-column: 1 / -1;
	}

	.spec-table--stack .spec-table__label {
		display: block;
		color: var(--myco-color-muted);
		font-size: var(--myco-font-size-xs);
		font-weight: 600;
		line-height: 1.35;
	}

	.spec-table--stack .spec-table__value {
		color: var(--myco-color-primary);
		font-weight: 700;
		overflow-wrap: anywhere;
	}

	.spec-table--stack tbody tr.spec-table__section,
	.spec-table--stack tbody tr.spec-table__section:nth-child(even) {
		display: block;
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.spec-table--stack .spec-table__section th {
		display: block;
		padding: 0.75rem 0 0;
		border-top: 0;
		background: none;
		color: var(--myco-color-primary);
		font-size: var(--myco-font-size-sm);
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
}

/* Videos: in-page YouTube player (video.js) beside the heading and the video
   list. The poster shows until a video starts; nothing loads from YouTube before. */
.product-videos__grid {
	display: grid;
	gap: 1.5rem 4rem;
	grid-template-areas: "head" "player" "aside";
}

.product-videos__head {
	grid-area: head;
}

.product-videos__head h2 {
	margin: 0;
}

.product-videos__head p {
	margin: 0.75rem 0 0;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.55;
}

.product-videos__aside {
	display: grid;
	grid-area: aside;
	gap: 1.5rem;
	align-content: start;
}

.video-player {
	grid-area: player;
	min-width: 0;
}

.video-player__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--myco-radius-xl);
	background: var(--myco-color-primary);
	aspect-ratio: 16 / 9;
	isolation: isolate;
}

.video-player__poster {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	color: var(--myco-color-on-dark);
	text-decoration: none;
	transition: opacity 300ms ease, visibility 300ms ease;
}

.video-player__poster:hover,
.video-player__poster:focus-visible {
	color: var(--myco-color-on-dark);
}

.video-player__poster:focus-visible {
	outline: 3px solid var(--myco-color-accent);
	outline-offset: -6px;
	border-radius: var(--myco-radius-xl);
}

.video-player__img {
	position: absolute;
	z-index: -2;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.video-player__poster::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(to top, color-mix(in srgb, var(--myco-color-primary) 88%, transparent) 0%, color-mix(in srgb, var(--myco-color-primary) 25%, transparent) 50%, color-mix(in srgb, var(--myco-color-primary) 15%, transparent) 100%);
}

.video-player__poster:hover .video-player__img,
.video-player__poster:focus-visible .video-player__img {
	transform: scale(1.04);
}

/* Big play button with a pulsing ring; a spinner while the player loads. */
.video-player__button {
	position: absolute;
	top: 40%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 3.75rem;
	height: 3.75rem;
	border-radius: 50%;
	background: var(--myco-color-accent);
	color: var(--myco-color-primary);
	transform: translate(-50%, -50%);
	transition: transform 300ms ease, background-color var(--myco-transition);
}

.video-player__button::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--myco-color-accent);
	border-radius: 50%;
	animation: myco-video-pulse 2.4s ease-out infinite;
}

.video-player__button .myco-icon {
	width: 38%;
	height: 38%;
	margin-left: 6%;
	fill: currentColor;
	transition: opacity var(--myco-transition);
}

.video-player__poster:hover .video-player__button,
.video-player__poster:focus-visible .video-player__button {
	background: var(--myco-color-white);
	transform: translate(-50%, -50%) scale(1.08);
}

.is-loading .video-player__button::before {
	opacity: 0;
	animation: none;
}

.is-loading .video-player__button .myco-icon {
	opacity: 0;
}

.is-loading .video-player__button::after {
	content: "";
	position: absolute;
	width: 38%;
	height: 38%;
	border: 3px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: myco-video-spin 800ms linear infinite;
}

@keyframes myco-video-pulse {
	from {
		opacity: 0.9;
		transform: scale(1);
	}

	to {
		opacity: 0;
		transform: scale(1.55);
	}
}

@keyframes myco-video-spin {
	to {
		transform: rotate(360deg);
	}
}

.video-player__meta {
	position: absolute;
	right: 1.25rem;
	bottom: 1.25rem;
	left: 1.25rem;
	display: grid;
	gap: 0.25rem;
}

.video-player__label {
	color: var(--myco-color-accent);
	font-size: var(--myco-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.video-player__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--myco-color-on-dark);
	font-family: var(--myco-font-heading);
	font-size: clamp(1rem, 2.2vw, 1.875rem);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-stretch: var(--myco-heading-stretch);
	font-weight: 600;
	line-height: 1.15;
}

.video-player__source {
	position: absolute;
	right: clamp(1.25rem, 3vw, 2.25rem);
	bottom: clamp(1.25rem, 3vw, 2rem);
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.875rem 0.375rem 0.625rem;
	border: 1px solid var(--myco-color-dark-line);
	border-radius: var(--myco-radius-pill);
	background: color-mix(in srgb, var(--myco-color-primary) 55%, transparent);
	font-size: var(--myco-font-size-xs);
	font-weight: 700;
}

.video-player__source .myco-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.is-playing .video-player__poster {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.video-player__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Video list (two or more videos). */
.video-list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.video-list__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.5rem 1rem 0.5rem 0.5rem;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-md);
	background: var(--myco-color-bg);
	color: var(--myco-color-primary);
	text-decoration: none;
	transition: border-color var(--myco-transition), box-shadow var(--myco-transition);
}

.video-list__item:hover,
.video-list__item:focus-visible {
	border-color: var(--myco-color-primary);
	color: var(--myco-color-primary);
}

.video-list__item[aria-current="true"] {
	border-color: var(--myco-color-primary);
	box-shadow: inset 0 0 0 1px var(--myco-color-primary);
}

.video-list__thumb {
	position: relative;
	flex: none;
	width: 8.5rem;
	overflow: hidden;
	border-radius: var(--myco-radius-sm);
	background: var(--myco-color-primary);
	aspect-ratio: 16 / 9;
}

.video-list__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-list__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: auto;
	border-radius: 50%;
	background: var(--myco-color-white);
	color: var(--myco-color-primary);
}

.video-list__play .myco-icon {
	width: 0.875rem;
	height: 0.875rem;
	margin-left: 2px;
	fill: currentColor;
}

.video-list__text {
	display: grid;
	gap: 0.25rem;
}

.video-list__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
}

.video-list__state {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
	font-weight: 600;
}

.video-list__state--now {
	display: none;
	color: var(--myco-color-accent-text);
}

.is-playing .video-list__item[aria-current="true"] .video-list__state--play {
	display: none;
}

.is-playing .video-list__item[aria-current="true"] .video-list__state--now {
	display: inline-flex;
}

/* "Now playing" equaliser; it stops while the video is paused. */
.video-list__bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 0.875rem;
}

.video-list__bars span {
	width: 3px;
	height: 100%;
	border-radius: 1px;
	background: currentColor;
	transform-origin: bottom;
	animation: myco-video-bars 900ms ease-in-out infinite alternate;
}

.video-list__bars span:nth-child(2) {
	animation-delay: -300ms;
}

.video-list__bars span:nth-child(3) {
	animation-delay: -600ms;
}

.is-paused .video-list__bars span {
	animation-play-state: paused;
}

@keyframes myco-video-bars {
	from {
		transform: scaleY(0.3);
	}

	to {
		transform: scaleY(1);
	}
}

.product-videos__note {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin: 0;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
	line-height: 1.5;
}

.product-videos__note .myco-icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.0625rem;
}

/* Similar products: navy band with white cards. */
.product-related {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
	background: var(--myco-color-primary);
}

.product-related .myco-head-row {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 37.5rem) {
	.product-grid,
	.subcategory-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.video-player__meta {
		right: 10rem;
		bottom: clamp(1.25rem, 3vw, 2rem);
		left: clamp(1.25rem, 3vw, 2.25rem);
	}

	.video-player__source {
		display: inline-flex;
	}

	.video-player__button {
		top: 50%;
		width: clamp(4.5rem, 8vw, 6.5rem);
		height: clamp(4.5rem, 8vw, 6.5rem);
	}
}

@media (min-width: 56.25rem) {
	.product-videos__grid {
		grid-template-areas: "head player" "aside player";
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		grid-template-rows: auto 1fr;
		align-items: start;
	}

	.product-hero__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: end;
	}

	.product-overview__grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.product-overview__body {
		padding-top: 2.5rem;
	}
}

@media (min-width: 62.5rem) {
	.product-grid,
	.subcategory-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Desktop: larger product images (gallery half the width, slim padding, 4 thumbnails a row). */
	.product-overview__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.product-gallery__link {
		padding: 1.25rem;
	}

	.product-gallery__thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1rem;
	}

	.product-gallery__thumb {
		padding: 0.625rem;
		border-radius: var(--myco-radius-lg);
	}
}

@media (max-width: 29.99rem) {
	.product-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}
