/**
 * New Wave Shop — WooCommerce front-end skin.
 *
 * Design tokens are mirrored from newwavetextiles.nl: Inter, 15px base,
 * near-black text, one green accent, square corners, hairline borders and
 * generous white space around the imagery.
 */

:root {
	--nws-accent: #2c622c;
	--nws-accent-dark: #234923;
	--nws-text: #222222;
	--nws-heading: #2f2f2f;
	--nws-muted: #6f6f6f;
	--nws-faint: #9a9a9a;
	--nws-line: #e6e6e6;
	--nws-line-strong: #d4d4d4;
	--nws-surface: #ffffff;
	--nws-surface-alt: #f6f6f6;
	--nws-radius: 0px;
	--nws-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--nws-gap: 12px;
	--nws-sidebar-width: 220px;
}

/* ---------------------------------------------------------------- base --- */

.nws-shop,
.nws-shop .nws-page {
	font-family: var(--nws-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--nws-text);
}

.nws-page {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px 80px;
	box-sizing: border-box;
}

.nws-page *,
.nws-page *::before,
.nws-page *::after {
	box-sizing: border-box;
}

.nws-page a {
	color: inherit;
	text-decoration: none;
}

.nws-page a:hover {
	color: var(--nws-accent-dark);
}

.nws-page__title {
	font-size: 36px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--nws-heading);
	margin: 28px 0 24px;
	letter-spacing: -0.01em;
}

.nws-page__intro {
	max-width: 62ch;
	color: var(--nws-muted);
	margin: -12px 0 24px;
}

.nws-breadcrumb {
	font-size: 13px;
	color: var(--nws-muted);
	padding-top: 20px;
}

.nws-breadcrumb a:hover {
	text-decoration: underline;
}

.nws-breadcrumb__sep {
	display: inline-block;
	padding: 0 8px;
	color: var(--nws-faint);
}

/* -------------------------------------------------------------- layout --- */

.nws-layout {
	display: block;
}

.nws-layout.has-sidebar {
	display: grid;
	grid-template-columns: var(--nws-sidebar-width) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.nws-layout.has-sidebar.is-collapsed {
	grid-template-columns: minmax(0, 1fr);
}

.nws-layout.has-sidebar.is-collapsed .nws-sidebar {
	display: none;
}

.nws-content {
	min-width: 0;
}

/* ------------------------------------------------------------- sidebar --- */

.nws-sidebar {
	position: sticky;
	top: 24px;
}

.nws-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--nws-line-strong);
	background: var(--nws-surface);
	margin-bottom: 28px;
}

.nws-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	color: inherit;
}

.nws-search input[type="search"]:focus {
	outline: 2px solid var(--nws-accent);
	outline-offset: -2px;
}

.nws-search button {
	flex: 0 0 auto;
	border: 0;
	border-left: 1px solid var(--nws-line);
	background: transparent;
	padding: 9px 12px;
	cursor: pointer;
	color: var(--nws-muted);
	line-height: 0;
}

.nws-search button:hover {
	color: var(--nws-accent);
}

.nws-filter {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--nws-line);
}

.nws-filter__title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nws-faint);
	margin: 0 0 12px;
}

.nws-filter__categories,
.nws-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nws-filter__categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
	color: var(--nws-text);
}

.nws-filter__categories a:hover {
	color: var(--nws-accent);
}

.nws-filter__categories svg {
	flex: 0 0 auto;
	color: var(--nws-faint);
}

.nws-check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
}

.nws-check__box {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 1px solid var(--nws-line-strong);
	background: var(--nws-surface);
	position: relative;
}

.nws-check.is-active .nws-check__box {
	background: var(--nws-accent);
	border-color: var(--nws-accent);
}

.nws-check.is-active .nws-check__box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.nws-filter__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nws-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--nws-surface-alt);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
	display: block;
}

.nws-swatch--light {
	box-shadow: inset 0 0 0 1px var(--nws-line-strong);
}

.nws-swatch.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nws-accent);
}

.nws-filters__reset {
	display: inline-block;
	font-size: 13px;
	color: var(--nws-accent);
	text-decoration: underline;
}

/* ------------------------------------------------------------- toolbar --- */

.nws-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-bottom: 14px;
}

.nws-toolbar__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	background: transparent;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--nws-text);
	cursor: pointer;
}

.nws-toolbar__toggle:hover {
	color: var(--nws-accent);
}

.nws-toolbar__toggle-icon {
	width: 16px;
	height: 10px;
	position: relative;
	display: inline-block;
}

.nws-toolbar__toggle-icon::before,
.nws-toolbar__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	height: 2px;
	background: currentColor;
}

.nws-toolbar__toggle-icon::before {
	top: 0;
	width: 16px;
}

.nws-toolbar__toggle-icon::after {
	bottom: 0;
	width: 10px;
}

.nws-toolbar__right {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.nws-toolbar__count {
	font-size: 14px;
	color: var(--nws-muted);
	white-space: nowrap;
}

.nws-shop .woocommerce-ordering select {
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--nws-line-strong);
	background: var(--nws-surface);
	padding: 8px 10px;
	border-radius: var(--nws-radius);
	color: var(--nws-text);
}

/* ---------------------------------------------------------------- grid --- */

.nws-shop ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--nws-gap);
}

.nws-shop ul.products::before,
.nws-shop ul.products::after {
	content: none;
}

.nws-shop ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
	clear: none;
}

.nws-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--nws-surface);
	border: 1px solid var(--nws-line);
	border-radius: var(--nws-radius);
	transition: border-color 0.15s ease;
}

.nws-card__inner:hover {
	border-color: var(--nws-line-strong);
}

.nws-card__media {
	position: relative;
	padding: 12px;
}

.nws-card__image {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.nws-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	mix-blend-mode: multiply;
}

.nws-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.nws-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 5px 7px;
	border-radius: var(--nws-radius);
	letter-spacing: 0.01em;
}

.nws-badge--solid {
	background: #111111;
	color: #ffffff;
}

.nws-badge--outline {
	background: #ffffff;
	color: var(--nws-accent);
	box-shadow: inset 0 0 0 1px var(--nws-accent);
}

.nws-card__body {
	padding: 0 14px 10px;
	flex: 1 1 auto;
}

.nws-card__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	margin: 0 0 2px;
	color: var(--nws-heading);
}

.nws-card__meta {
	font-size: 12px;
	color: var(--nws-faint);
	margin-bottom: 8px;
}

.nws-card__colours {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 8px;
	min-height: 14px;
}

.nws-dot {
	width: 13px;
	height: 13px;
	border-radius: 50%;
	display: inline-block;
	background: var(--nws-surface-alt);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.nws-dot--light {
	box-shadow: inset 0 0 0 1px var(--nws-line-strong);
}

.nws-card__colours-more {
	font-size: 12px;
	color: var(--nws-muted);
	margin-left: 2px;
}

.nws-shop .nws-card .price {
	font-size: 13px;
	color: var(--nws-text);
	font-weight: 400;
	margin: 0;
	display: block;
}

.nws-shop .nws-card .price del {
	color: var(--nws-faint);
	margin-right: 6px;
}

.nws-price__label {
	color: var(--nws-muted);
}

.nws-card__footer {
	margin: 0 12px 12px;
	border-top: 1px solid var(--nws-line);
	padding-top: 8px;
}

.nws-card__action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px;
	color: var(--nws-muted);
	background: var(--nws-surface-alt);
}

.nws-card__action:hover {
	color: #ffffff;
	background: var(--nws-accent);
}

/* ------------------------------------------------------- single product --- */

.nws-page--single .nws-single__brand {
	margin-bottom: 6px;
}

.nws-page--single .nws-single__brand img {
	max-height: 26px;
	width: auto;
	display: block;
}

.nws-shop .product_title {
	font-size: 38px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--nws-heading);
	margin: 0 0 4px;
	letter-spacing: -0.01em;
}

.nws-single__sku {
	font-size: 13px;
	color: var(--nws-faint);
	margin-bottom: 10px;
}

.nws-single__badges {
	display: flex;
	gap: 6px;
	margin: 14px 0;
}

.nws-shop .summary .price {
	font-size: 15px;
	color: var(--nws-text);
	margin-bottom: 16px;
}

.nws-shop .woocommerce-product-details__short-description {
	max-width: 60ch;
	color: var(--nws-text);
}

/* --------------------------------------------------------------- matrix --- */

.nws-matrix {
	margin-top: 28px;
	border-top: 1px solid var(--nws-line);
	padding-top: 20px;
}

.nws-matrix__scroll {
	overflow-x: auto;
	border: 1px solid var(--nws-line);
}

.nws-matrix__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: var(--nws-surface);
}

.nws-matrix__table th,
.nws-matrix__table td {
	border: 1px solid var(--nws-line);
	padding: 0;
	text-align: center;
	vertical-align: middle;
}

.nws-matrix__table thead th {
	background: var(--nws-surface-alt);
	font-weight: 600;
	padding: 9px 6px;
	white-space: nowrap;
}

.nws-matrix__corner {
	min-width: 130px;
}

.nws-matrix__rowhead {
	text-align: left;
	font-weight: 400;
	padding: 8px 10px;
	white-space: nowrap;
	background: var(--nws-surface-alt);
}

.nws-matrix__rowhead .nws-dot {
	vertical-align: middle;
	margin-right: 8px;
}

.nws-matrix__rowname {
	vertical-align: middle;
}

.nws-matrix__cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	padding: 4px 6px;
	cursor: text;
}

.nws-matrix__cell input {
	width: 44px;
	border: 1px solid transparent;
	background: transparent;
	font: inherit;
	font-size: 13px;
	text-align: center;
	padding: 5px 2px;
	color: var(--nws-text);
	-moz-appearance: textfield;
}

.nws-matrix__cell input::placeholder {
	color: #c9c9c9;
}

.nws-matrix__cell input::-webkit-outer-spin-button,
.nws-matrix__cell input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nws-matrix__cell input:focus {
	outline: none;
	border-color: var(--nws-accent);
	background: #ffffff;
}

.nws-matrix__cell input:not(:placeholder-shown) {
	font-weight: 600;
	border-color: var(--nws-accent);
}

.nws-matrix__stock {
	font-size: 11px;
	color: var(--nws-faint);
	white-space: nowrap;
}

.nws-matrix__na {
	display: block;
	padding: 9px 6px;
	color: var(--nws-faint);
}

.nws-matrix__bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.nws-matrix__summary {
	font-size: 14px;
	color: var(--nws-muted);
	margin-right: auto;
}

.nws-matrix__message {
	margin-top: 10px;
	font-size: 14px;
	min-height: 1.4em;
}

.nws-matrix__message.is-error {
	color: #b3261e;
}

.nws-matrix__message.is-success {
	color: var(--nws-accent);
}

.nws-matrix__message a {
	text-decoration: underline;
}

/* -------------------------------------------------------------- buttons --- */

.nws-button,
.nws-shop .woocommerce a.button,
.nws-shop .woocommerce button.button,
.nws-shop .woocommerce input.button,
.nws-shop .woocommerce a.button.alt,
.nws-shop .woocommerce button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	border: 1px solid var(--nws-accent);
	border-radius: var(--nws-radius);
	background: var(--nws-accent);
	color: #ffffff;
	padding: 11px 20px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nws-button:hover,
.nws-shop .woocommerce a.button:hover,
.nws-shop .woocommerce button.button:hover,
.nws-shop .woocommerce input.button:hover,
.nws-shop .woocommerce a.button.alt:hover,
.nws-shop .woocommerce button.button.alt:hover {
	background: var(--nws-accent-dark);
	border-color: var(--nws-accent-dark);
	color: #ffffff;
}

.nws-button[disabled],
.nws-button.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* ------------------------------------------------------------ utilities --- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 1200px) {
	.nws-shop ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.nws-page {
		padding: 0 20px 60px;
	}

	.nws-layout.has-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.nws-sidebar {
		position: static;
	}

	.nws-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nws-page__title {
		font-size: 28px;
	}

	.nws-shop .product_title {
		font-size: 28px;
	}
}

@media (max-width: 560px) {
	.nws-shop ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.nws-matrix__bar {
		flex-direction: column;
		align-items: stretch;
	}

	.nws-matrix__summary {
		margin-right: 0;
	}
}
