/* NEXA Products — archive list + single product pages.
   Matches the site's industrial design: Sora type, paper/ink palette,
   terracotta accent, hairline borders. */

.nexa-products,
.nexa-product-single {
	--nx-ink: #0d1315;
	--nx-paper: #f0f3f1;
	--nx-panel: #dfe6e4;
	--nx-muted: #5d6869;
	--nx-accent: #a8613e;
	--nx-line: rgba(13, 19, 21, 0.16);
	box-sizing: border-box;
	width: 100%;
	padding-inline: 32px;
	background: var(--nx-paper);
	color: var(--nx-ink);
}

/* Match the homepage content container: full-bleed paper background, with the
   inner content capped and centered at the same 1440px width the homepage
   sections use. Keeps the section background going edge to edge. */
.nexa-products > *,
.nexa-product-single > * {
	max-width: 1440px;
	margin-inline: auto;
}

.nexa-products,
.nexa-product-single,
.nexa-products *,
.nexa-product-single * {
	box-sizing: border-box;
}

/* ---- Archive list page ---- */
.nexa-products {
	padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px);
}

.nexa-products__head {
	margin-bottom: clamp(36px, 5vw, 56px);
}

/* ---- Breadcrumb (product category archive) ---- */
.nexa-crumb {
	gap: 8px;
	margin-bottom: clamp(30px, 4vw, 44px);
	color: var(--nx-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.nexa-crumb__link,
.nexa-crumb__sep {
	margin: 0;
}

.nexa-crumb__link a {
	color: var(--nx-muted);
	text-decoration: none;
	transition: color 180ms ease;
}

.nexa-crumb__link a:hover {
	color: var(--nx-accent);
}

.nexa-section-index {
	margin: 0 0 18px;
	color: var(--nx-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nexa-products__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.01em;
}

.nexa-products__lede {
	max-width: 600px;
	margin: 0;
	color: var(--nx-muted);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 300;
	line-height: 1.6;
}

.nexa-products__grid {
	gap: clamp(20px, 2.5vw, 28px);
}

.nexa-product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.nexa-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(13, 19, 21, 0.12);
	border-color: rgba(13, 19, 21, 0.28);
}

.nexa-product-card__media {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: radial-gradient(120% 120% at 50% 18%, #ffffff 0%, #eceff0 62%, #e1e6e5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.nexa-product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	padding: 18px;
	mix-blend-mode: multiply;
	transition: transform 260ms ease;
}

.nexa-product-card:hover .nexa-product-card__media img {
	transform: scale(1.045);
}

.nexa-product-card__cat {
	margin: 0;
	padding: 18px 20px 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nexa-product-card__cat .wp-block-post-terms {
	display: block;
}

.nexa-product-card__cat a {
	color: var(--nx-accent);
	text-decoration: none;
}

.nexa-product-card__cat a:hover {
	text-decoration: underline;
}

.nexa-product-card__title {
	margin: 0;
	padding: 6px 20px 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.nexa-product-card__title a {
	color: var(--nx-ink);
	text-decoration: none;
}

.nexa-product-card__title a:hover {
	color: var(--nx-accent);
}

.nexa-product-card__excerpt {
	margin: 0;
	padding: 10px 20px 0;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.55;
}

.nexa-product-card .nexa-product-card__more {
	margin: auto 20px 22px;
	align-self: flex-start;
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--nx-ink);
	border-radius: 999px;
	background: var(--nx-ink);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nexa-product-card .nexa-product-card__more:hover {
	background: var(--nx-accent);
	border-color: var(--nx-accent);
	color: #ffffff;
}

/* Empty state */
.nexa-products__empty {
	max-width: 480px;
	padding: 48px;
	border: 1px dashed var(--nx-muted);
	border-radius: 10px;
	text-align: center;
}

.nexa-products__empty-title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 500;
}

.nexa-products__empty-text {
	margin: 0;
	color: var(--nx-muted);
	font-size: 16px;
	font-weight: 300;
}

/* ---- Products list (archive) ---- */
.nexa-products__filters {
	gap: 10px;
	margin-bottom: clamp(32px, 4vw, 48px);
}

.nexa-products__filter {
	margin: 0;
}
.nexa-products__filter a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--nx-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--nx-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.nexa-products__filter a:hover {
	color: var(--nx-accent);
	border-color: var(--nx-accent);
}
.nexa-products__filter--active a {
	background: var(--nx-ink);
	border-color: var(--nx-ink);
	color: #ffffff;
}

.nexa-products__list {
	display: flex;
	flex-direction: column;
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--nx-line);
}
.nexa-products__list > li {
	margin: 0;
	width: 100%;
}

.nexa-product-row {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 36px);
	width: 100%;
	padding: clamp(20px, 3vw, 30px) 0;
	border-bottom: 1px solid var(--nx-line);
	transition: background 180ms ease, padding-inline 180ms ease;
}
.nexa-product-row:hover {
	background: #ffffff;
	padding-inline: clamp(8px, 1.5vw, 16px);
}

.nexa-product-row__media {
	width: clamp(84px, 10vw, 120px);
	aspect-ratio: 1 / 1;
	flex: 0 0 auto;
	border-radius: 12px;
	overflow: hidden;
	background: radial-gradient(120% 120% at 50% 0%, #e7ede9 0%, var(--nx-panel) 72%);
	border: 1px solid var(--nx-line);
}
.nexa-product-row__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
	mix-blend-mode: multiply;
}

.nexa-product-row__body {
	flex: 1 1 auto;
	min-width: 0;
}

.nexa-product-row__cat {
	margin: 0 0 8px;
}
.nexa-product-row__cat .wp-block-post-terms {
	margin: 0;
}
.nexa-product-row__cat a {
	color: var(--nx-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.nexa-product-row__cat a:hover {
	text-decoration: underline;
}

.nexa-product-row__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
}
.nexa-product-row__title a {
	color: var(--nx-ink);
	text-decoration: none;
}
.nexa-product-row__title a:hover {
	color: var(--nx-accent);
}

.nexa-product-row__excerpt {
	max-width: 60ch;
	margin: 0;
	color: var(--nx-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}

.nexa-product-row__arrow {
	flex: 0 0 auto;
	margin: 0;
	font-size: 22px;
	color: var(--nx-muted);
	transition: color 180ms ease, transform 180ms ease;
}
.nexa-product-row:hover .nexa-product-row__arrow {
	color: var(--nx-accent);
	transform: translateX(4px);
}

@media (max-width: 700px) {
	.nexa-product-row {
		gap: 14px;
	}
	.nexa-product-row__excerpt {
		display: none;
	}
}

/* ---- Single product page ---- */
.nexa-product-single {
	padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px);
}

/* ---- Product single: breadcrumbs + crumbs ---- */
.nexa-product-single__crumbs {
	gap: 12px;
	align-items: baseline;
	margin-bottom: clamp(28px, 4vw, 40px);
	padding-bottom: 18px;
	border-bottom: 1px solid var(--nx-line);
}

.nexa-product-single__crumbs .nexa-section-index {
	margin: 0;
}

.nexa-crumb__back {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.nexa-crumb__back a {
	color: var(--nx-accent);
	text-decoration: none;
}
.nexa-crumb__back a:hover {
	text-decoration: underline;
}

/* ---- Product single: hero (image + info) ---- */
.nexa-product-single__hero {
	gap: clamp(28px, 4vw, 56px);
	align-items: flex-start;
	margin-bottom: clamp(36px, 5vw, 56px);
}

.nexa-product-single__media-col {
	position: sticky;
	top: 104px;
}

.nexa-product-single__media {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid var(--nx-line);
	background: radial-gradient(120% 120% at 50% 0%, #e7ede9 0%, var(--nx-panel) 72%);
}

.nexa-product-single__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: clamp(22px, 3vw, 40px);
	mix-blend-mode: multiply;
}

.nexa-product-single__info {
	padding-top: 8px;
}

.nexa-product-single__cat {
	margin: 0 0 20px;
}
.nexa-product-single__cat .wp-block-post-terms {
	margin: 0;
}
.nexa-product-single__cat a {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--nx-line);
	border-radius: 999px;
	background: #ffffff;
	color: var(--nx-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.nexa-product-single__cat a:hover {
	color: var(--nx-accent);
	border-color: var(--nx-accent);
}

.nexa-product-single__title {
	margin: 0 0 clamp(18px, 2.5vw, 26px);
	font-size: clamp(36px, 5vw, 60px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.nexa-product-single__cta-note {
	max-width: 46ch;
	margin: 0;
	color: var(--nx-muted);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.6;
}

.nexa-product-cta--ghost .wp-block-button__link {
	background: transparent;
	color: var(--nx-ink);
	border: 1px solid var(--nx-line);
}
.nexa-product-cta--ghost .wp-block-button__link:hover {
	background: var(--nx-panel);
	color: var(--nx-ink);
}

/* ---- Product single: overview ---- */
.nexa-product-single__overview {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	padding-block: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--nx-line);
}

.nexa-product-single__overview-title {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.nexa-product-single__content {
	max-width: 72ch;
}
.nexa-product-single__content > * {
	margin-block-start: 0;
}
.nexa-product-single__content p,
.nexa-product-single__content li {
	color: var(--nx-ink);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.7;
}
.nexa-product-single__content h2,
.nexa-product-single__content h3 {
	margin-block: 1.5em 0.6em;
	font-weight: 500;
	line-height: 1.2;
}
.nexa-product-single__content ul {
	padding-left: 1.15em;
}
.nexa-product-single__content li {
	margin-block: 0.4em;
}
.nexa-product-single__content li::marker {
	color: var(--nx-accent);
}

/* ---- Product single: more products ---- */
.nexa-product-single__more {
	padding-block: clamp(40px, 5vw, 64px);
}

.nexa-product-single__more-head {
	align-items: baseline;
	gap: 16px;
	margin-bottom: clamp(28px, 4vw, 40px);
}
.nexa-product-single__more-title {
	margin: 0;
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 500;
	letter-spacing: -0.01em;
}
.nexa-product-single__more-link {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}
.nexa-product-single__more-link a {
	color: var(--nx-accent);
	text-decoration: none;
}
.nexa-product-single__more-link a:hover {
	text-decoration: underline;
}

/* ---- Product single: CTA band ---- */
.nexa-product-single__cta {
	width: 100vw;
	margin-inline: calc(50% - 50vw) !important;
	padding: clamp(56px, 8vw, 96px) var(--wp--style--root--padding-left);
	background: var(--nx-ink);
	color: #ffffff;
	text-align: center;
}
.nexa-product-single__cta > * {
	max-width: 620px;
	margin-inline: auto;
}
.nexa-product-single__cta-title {
	margin: 0 0 18px;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: #ffffff;
}
.nexa-product-single__cta-text {
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.65;
}
.nexa-product-single__cta-actions {
	justify-content: center;
	margin: 0;
}

/* ---- Product specifications (dynamic block) ---- */
.nexa-specs {
	margin-top: clamp(28px, 4vw, 44px);
}

.nexa-specs__title {
	margin: 0 0 22px;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.nexa-specs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	border: 1px solid var(--nx-line);
	border-radius: 10px;
	background: var(--nx-line);
	overflow: hidden;
}

.nexa-specs__field {
	padding: 20px 22px;
	background: #ffffff;
}

.nexa-specs__label {
	display: block;
	margin-bottom: 8px;
	color: var(--nx-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nexa-specs__value {
	display: block;
	color: var(--nx-ink);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.35;
}

/* ---- Get a Quote CTA ---- */
.nexa-product-cta-row {
	margin-top: clamp(30px, 4vw, 44px);
}

.nexa-product-cta .wp-block-button__link {
	padding: 16px 36px;
	border-radius: 6px;
	background: var(--nx-accent);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease;
}

.nexa-product-cta .wp-block-button__link:hover {
	background: #8d5230;
}

@media (max-width: 820px) {
	.nexa-products,
	.nexa-product-single {
		padding-inline: 18px;
	}

	.nexa-product-single__hero {
		flex-direction: column;
	}

	.nexa-product-single__media-col {
		position: static;
	}

	.nexa-product-single__media {
		aspect-ratio: 4 / 3;
	}

	.nexa-product-single__overview {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nexa-product-single__crumbs {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nexa-product-card {
		transition: none;
	}
	.nexa-product-card:hover {
		transform: none;
		box-shadow: none;
	}
	.nexa-product-cta .wp-block-button__link {
		transition: none;
	}
}

/* ---- Product overview: technical specifications table ---- */
.nexa-product-single__overview .wp-block-table {
	margin: 0;
	border: 0;
}
.nexa-product-single__overview .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}
.nexa-product-single__overview .wp-block-table th,
.nexa-product-single__overview .wp-block-table td {
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--nexa-line);
	text-align: left;
	font-size: 15px;
	line-height: 1.4;
	vertical-align: top;
}
.nexa-product-single__overview .wp-block-table thead th {
	border-bottom: 2px solid var(--nexa-ink);
	color: var(--nexa-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nexa-product-single__overview .wp-block-table td:first-child {
	color: var(--nexa-muted);
	font-weight: 500;
}
.nexa-product-single__overview .wp-block-table tr:last-child td {
	border-bottom: 0;
}

/* ---- Product overview: image gallery ---- */
.nexa-product-single__overview .nexa-product-gallery {
	gap: 12px;
	margin-top: 8px;
}
.nexa-product-single__overview .nexa-product-gallery figure.wp-block-image {
	margin: 0;
}
.nexa-product-single__overview .nexa-product-gallery img {
	border-radius: 10px;
}

/* ---- Taobao-style product viewer (main image + thumbnail strip) ---- */
.nexa-viewer__main {
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--nexa-line);
	background: #f4f6f4;
}
.nexa-viewer__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nexa-viewer__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.nexa-viewer__thumb {
	padding: 0;
	border: 1px solid var(--nexa-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	aspect-ratio: 1 / 1;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nexa-viewer__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nexa-viewer__thumb:hover {
	border-color: var(--nexa-accent);
}
.nexa-viewer__thumb.is-active {
	border-color: var(--nexa-accent);
	box-shadow: 0 0 0 2px var(--nexa-accent);
}

/* ---- Product overview: generated technical specifications table ---- */
.nexa-product-single__specs {
	margin-top: clamp(28px, 4vw, 44px);
}
.nexa-product-single__specs-title {
	margin: 0 0 clamp(16px, 2vw, 22px);
	font-size: clamp(20px, 2vw, 22px);
	font-weight: 500;
	letter-spacing: -0.01em;
}
.nexa-product-single__specs .nexa-table {
	margin: 0;
	border: 0;
}
.nexa-product-single__specs .nexa-table table {
	width: 100%;
	border-collapse: collapse;
}
.nexa-product-single__specs .nexa-table th,
.nexa-product-single__specs .nexa-table td {
	padding: 13px 16px;
	border: 0;
	border-bottom: 1px solid var(--nexa-line);
	text-align: left;
	font-size: 15px;
	line-height: 1.4;
	vertical-align: top;
}
.nexa-product-single__specs .nexa-table thead th {
	border-bottom: 2px solid var(--nexa-ink);
	color: var(--nexa-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.nexa-product-single__specs .nexa-table td:first-child {
	color: var(--nexa-muted);
	font-weight: 500;
}
.nexa-product-single__specs .nexa-table tr:last-child td {
	border-bottom: 0;
}
