:root {
	--mo-bg: var(--wp--preset--color--base, #f8f6f0);
	--mo-ink: var(--wp--preset--color--contrast, #0f1a14);
	--mo-green: var(--wp--preset--color--accent-5, #1a2b20);
	--mo-green-soft: var(--wp--preset--color--accent-6, #2d4a35);
	--mo-muted: var(--wp--preset--color--accent-4, #5c6f57);
	--mo-gold: var(--wp--preset--color--accent-3, #d4a017);
	--mo-line: color-mix(in srgb, var(--mo-ink) 16%, transparent);
	--mo-radius: 18px;
	--mo-content: 1180px;
}

.mo-product-hero,
.mo-product-story {
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--inter, Manrope, sans-serif);
	color: var(--mo-ink);
}

.mo-product-hero *,
.mo-product-story * { box-sizing: border-box; }

.mo-product-hero {
	position: relative;
	min-height: clamp(440px, 58vh, 620px);
	overflow: hidden;
	background: var(--mo-green);
	color: #fff;
}

.mo-product-hero__image,
.mo-product-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.mo-product-hero__image { object-fit: cover; }
.mo-product-hero__shade { background: linear-gradient(90deg, rgba(4, 12, 8, .82) 0%, rgba(4, 12, 8, .38) 48%, rgba(4, 12, 8, .08) 76%); }

.mo-product-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	min-height: inherit;
	width: min(calc(100% - 40px), var(--mo-content));
	margin-inline: auto;
	padding-block: clamp(64px, 10vw, 128px);
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
}

.mo-product-hero__eyebrow {
	margin: 0 0 10px;
	font-size: .82rem;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mo-gold);
}

.mo-product-hero__title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2rem, 5vw, 4.5rem);
	font-weight: 650;
	line-height: 1.03;
	letter-spacing: -.035em;
}

.mo-product-hero__subtitle {
	margin: 16px 0 0;
	font-size: clamp(1rem, 1.8vw, 1.3rem);
	font-weight: 650;
}

.mo-quick-specs { margin-block: 22px; }
.mo-quick-specs__list { display: grid; gap: 0; margin: 0; }
.mo-quick-specs__item { display: grid; grid-template-columns: minmax(120px, .72fr) 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--mo-line); }
.mo-quick-specs__item:first-child { border-top: 1px solid var(--mo-line); }
.mo-quick-specs dt { font-size: .82rem; font-weight: 700; color: var(--mo-muted); }
.mo-quick-specs dd { margin: 0; font-weight: 700; color: var(--mo-ink); }
.mo-contact-offer { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--mo-gold); background: color-mix(in srgb, var(--mo-gold) 10%, #fff); }
.mo-contact-offer strong { flex-basis: 100%; }
.mo-contact-offer a { color: var(--mo-ink); font-weight: 700; }

.mo-product-story { background: var(--mo-bg); padding-block: clamp(28px, 5vw, 70px); }
.mo-product-story__inner,
.mo-video-story__inner { width: min(calc(100% - 40px), var(--mo-content)); margin-inline: auto; }
.mo-story-section { margin-block: clamp(24px, 4vw, 56px); }
.mo-story-section--compact { max-width: 980px; margin-inline: auto; }

.mo-accordion { border-top: 1px solid var(--mo-line); }
.mo-accordion:last-child { border-bottom: 1px solid var(--mo-line); }
.mo-accordion summary {
	display: flex;
	min-height: 70px;
	padding: 20px 4px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	cursor: pointer;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	font-weight: 750;
	list-style: none;
}
.mo-accordion summary::-webkit-details-marker { display: none; }
.mo-accordion__icon { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.mo-accordion__icon::before,
.mo-accordion__icon::after { content: ""; position: absolute; top: 8px; left: 2px; width: 14px; height: 2px; background: currentColor; }
.mo-accordion__icon::after { transform: rotate(90deg); transition: transform .18s ease; }
.mo-accordion[open] .mo-accordion__icon::after { transform: rotate(0); }
.mo-accordion__content { padding: 2px 4px 30px; line-height: 1.7; }
.mo-accordion__content > :first-child { margin-top: 0; }
.mo-accordion__content > :last-child { margin-bottom: 0; }

.mo-takeaway {
	margin-top: 24px;
	padding: 20px 22px;
	border-left: 4px solid var(--mo-gold);
	background: color-mix(in srgb, var(--mo-gold) 10%, #fff);
}
.mo-takeaway p { display: inline; }

.mo-comparison-table-wrap,
.mo-spec-table-wrap { overflow-x: auto; border-radius: var(--mo-radius); outline-offset: 3px; }
.mo-comparison-table,
.mo-spec-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; background: var(--mo-green); color: #fff; }
.mo-comparison-table th,
.mo-comparison-table td,
.mo-spec-table th,
.mo-spec-table td { padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); text-align: left; vertical-align: top; }
.mo-comparison-table thead th,
.mo-spec-table thead th { background: color-mix(in srgb, var(--mo-green) 86%, #000); }
.mo-comparison-table tbody th,
.mo-spec-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--mo-green); }
.mo-spec-table__group th { background: var(--mo-gold); color: var(--mo-ink); font-weight: 800; }
.mo-comparison-cards { display: none; }

.mo-video-story {
	padding-block: clamp(46px, 7vw, 92px);
	background: var(--mo-green);
	color: #fff;
}
.mo-video-story__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.mo-video-story h2,
.mo-test-gallery h2 { margin: 0 0 20px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; }
.mo-video-story a { color: var(--mo-gold); }
.mo-video-facade { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--mo-radius); background: #06100b; }
.mo-video-facade__poster,
.mo-video-facade iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.mo-video-facade__play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; padding: 0; border: 0; border-radius: 50%; background: var(--mo-gold); color: var(--mo-ink); cursor: pointer; font-size: 1.5rem; box-shadow: 0 10px 35px rgba(0,0,0,.35); }

.mo-test-gallery { padding-top: clamp(44px, 7vw, 90px); background: #07100b; color: #fff; }
.mo-test-gallery__heading { width: min(calc(100% - 40px), var(--mo-content)); margin: 0 auto 28px; text-align: center; }
.mo-test-gallery__viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mo-test-gallery__viewport::-webkit-scrollbar { display: none; }
.mo-test-gallery__slide { position: relative; flex: 0 0 min(82vw, 1100px); margin: 0; scroll-snap-align: center; background: #000; }
.mo-test-gallery__slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.mo-test-gallery__slide figcaption { position: absolute; inset: auto 18px 16px; padding: 8px 12px; background: rgba(0,0,0,.72); border-radius: 8px; font-size: .9rem; }
.mo-test-gallery__controls { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 20px; }
.mo-test-gallery__controls button { display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }

.mo-spec-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 18px; padding: 0; border: 0; }
.mo-spec-filters legend { width: 100%; margin-bottom: 8px; font-weight: 750; }
.mo-spec-filters label { display: inline-flex; align-items: center; gap: 7px; }
.mo-spec-filters input { width: 18px; height: 18px; }

.mo-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; }
.mo-faq__item { padding-bottom: 20px; border-bottom: 1px solid var(--mo-line); }
.mo-faq__item h3 { margin: 0 0 10px; font-size: 1.05rem; }
.mo-faq__item p { margin: 0; }

.mo-product-story button:focus-visible,
.mo-product-story a:focus-visible,
.mo-product-story summary:focus-visible,
.mo-product-story [tabindex="0"]:focus-visible { outline: 3px solid var(--mo-gold); outline-offset: 3px; }

/* Klase jāpiešķir galvenajai WooCommerce produkta grupai single-product.html veidnē. */
.single-product .mo-product-main { width: min(calc(100% - 40px), var(--mo-content)); margin-inline: auto; }
.single-product .mo-product-main {
	padding-block: clamp(34px, 6vw, 80px);
}
.single-product .mo-product-main .wp-block-post-title,
.single-product .mo-product-main .product_title {
	margin-top: 0;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.08;
	letter-spacing: -.035em;
}
.single-product .mo-product-main .price {
	color: var(--mo-ink);
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	font-weight: 750;
}
.single-product .mo-product-main .wp-block-woocommerce-product-gallery,
.single-product .mo-product-main .woocommerce-product-gallery {
	min-width: 0;
	border-radius: var(--mo-radius);
	background: #fff;
}
.single-product .mo-product-main .single_add_to_cart_button,
.single-product .mo-product-main .wp-block-woocommerce-add-to-cart-with-options button[type="submit"] {
	min-height: 52px;
	width: 100%;
	border: 0;
	border-radius: 999px;
	background: var(--mo-green);
	color: #fff;
	font-weight: 800;
}
.single-product .mo-product-main select,
.single-product .mo-product-main input,
.single-product .mo-product-main button,
.single-product .mo-product-main [role="radio"] {
	min-height: 44px;
}
@media (min-width: 900px) {
	.single-product .mo-product-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); gap: clamp(38px, 6vw, 84px); align-items: start; }
	.single-product .mo-product-main__summary { position: sticky; top: 24px; }
}

@media (max-width: 767px) {
	.mo-product-hero { min-height: clamp(380px, 60vh, 540px); }
	.mo-product-hero__shade { background: linear-gradient(0deg, rgba(4,12,8,.84) 0%, rgba(4,12,8,.14) 62%); }
	.mo-product-hero__content { width: min(calc(100% - 30px), var(--mo-content)); padding-block: 42px; text-align: center; align-items: center; }
	.mo-product-hero__title { font-size: clamp(2rem, 10vw, 3.15rem); }
	.mo-product-story__inner,
	.mo-video-story__inner { width: min(calc(100% - 30px), var(--mo-content)); }
	.mo-quick-specs__item { grid-template-columns: 1fr; gap: 2px; }
	.mo-video-story__inner { grid-template-columns: 1fr; }
	.mo-video-story__copy { order: 1; }
	.mo-video-facade { order: 0; }
	.mo-comparison-table-wrap { display: none; }
	.mo-comparison-cards { display: grid; gap: 14px; }
	.mo-comparison-card { padding: 20px; border-radius: var(--mo-radius); background: var(--mo-green); color: #fff; }
	.mo-comparison-card h3 { margin: 0 0 8px; }
	.mo-comparison-card__price { margin: 0 0 16px; color: var(--mo-gold); }
	.mo-comparison-card dl { margin: 0; }
	.mo-comparison-card dl div { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.13); }
	.mo-comparison-card dt { color: rgba(255,255,255,.72); }
	.mo-comparison-card dd { margin: 0; font-weight: 700; }
	.mo-test-gallery__slide { flex-basis: 92vw; }
	.mo-faq { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.mo-product-story *,
	.mo-product-hero * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
