.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	float: none;
	margin: 0;
}

.woocommerce .woocommerce-ordering select,
.n19-select {
	appearance: none;
	height: 40px;
	min-width: 210px;
	padding: 0.5rem 2.1rem 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 0;
	background-color: var(--color-bg);
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: 0.88rem;
}

.n19-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--color-border);
}

.n19-shop-toolbar__left,
.n19-shop-toolbar__right {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.n19-shop-view-switch {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
}

.n19-shop-view-switch__btn {
	width: 34px;
	height: 34px;
	border: 1px solid var(--color-border);
	background: var(--fig-color-white);
	color: var(--color-text);
	font-size: 0.95rem;
	line-height: 1;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.n19-shop-view-switch__btn .header-icon {
	width: auto;
	height: 14px;
	max-width: none;
	stroke-width: 1.3;
	display: block;
	margin: 0 auto;
}

.n19-shop-view-switch__btn.is-active {
	background: var(--fig-color-off-white);
	border-color: var(--main_color);
	color: var(--main_color);
}

.woocommerce ul.products.columns-5 {
	--cols: 5;
}

/* Product card - unified across home featured & shop archive */
.n19-product-card {
	list-style: none;
	padding: 0;
	background: #ffffff;
	box-shadow: none;
	box-sizing: border-box;
}

.n19-product-card__inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.n19-product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 0;
	background: #ffffff;
}

.n19-product-card__media-link {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
}

.n19-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.35s ease;
}

.n19-product-card__content .added_to_cart,
.n19-product-card__content .added_to_cart.wc-forward {
	display: none !important;
}

.n19-product-card__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	padding: 16px 24px 24px;
}

.n19-product-card__top {
	width: 100%;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 0;
}

.n19-product-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.n19-product-card__sale,
.n19-product-card__sold-out {
	min-height: 22px;
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-ui);
	font-size: 11px;
	line-height: 1;
	font-weight: 400;
	text-transform: uppercase;
}

.n19-product-card__sale {
	background: #f4f4f4;
	color: #de4244;
}

.n19-product-card__sold-out {
	background: #f4f4f4;
	color: #666666;
}

.n19-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	color: #666666;
	font-family: var(--font-ui);
	font-size: 11px;
	line-height: 1;
	font-weight: 300;
}

.n19-product-card__meta-separator {
	color: #dddddd;
}

.n19-product-card__content h2 {
	width: 100%;
	margin: 0;
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.14;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: #202020;
}

.n19-product-card__content h2 a {
	color: inherit;
}

.n19-product-card__price {
	margin-top: 0;
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1;
	font-weight: 400;
	color: #444444;
}

.n19-product-card__price del,
.n19-product-card__price-note-value del {
	font-size: 0.75em;
	font-weight: 300;
	color: #b9b9b9;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
}

.n19-product-card__price del .woocommerce-Price-amount,
.n19-product-card__price del .amount,
.n19-product-card__price del bdi,
.n19-product-card__price-note-value del .woocommerce-Price-amount,
.n19-product-card__price-note-value del .amount,
.n19-product-card__price-note-value del bdi {
	color: #b9b9b9;
	font-weight: 300;
}

.n19-product-card__price.is-sale,
.n19-product-card__price.is-sale .woocommerce-Price-amount,
.n19-product-card__price.is-sale .amount,
.n19-product-card__price.is-sale bdi {
	color: #de4244;
}

.n19-product-card__price.is-sale del,
.n19-product-card__price.is-sale del .woocommerce-Price-amount,
.n19-product-card__price.is-sale del .amount,
.n19-product-card__price.is-sale del bdi {
	color: #b9b9b9;
}

.n19-product-card__price-notes {
	width: 100%;
	min-height: 36px;
	margin-top: 4px;
	display: grid;
	gap: 2px;
}

.n19-product-card__price-notes p {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 11px;
	line-height: 1.25;
	font-weight: 300;
	color: #666666;
}

.n19-product-card__price-note-label,
.n19-product-card__price-note-value {
	color: #666666;
}

.n19-product-card__price-note-discount {
	color: #de4244;
}

.n19-product-card__excerpt,
.n19-product-card__list-cta,
.n19-product-card__catalog-message {
	display: none;
}

.n19-product-card__list-cta {
	width: fit-content;
	margin-top: 12px;
}

.n19-catalog-mode-message {
	margin: 12px 0 0;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1.35;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #555555;
}

.n19-product-card:hover .n19-product-card__image.is-main,
.n19-product-card:focus-within .n19-product-card__image.is-main {
	transform: scale(1.02);
}

/* List mode (manual switch or 1-column desktop). */
.n19-shop-main.n19-products-view-list ul.products {
	grid-template-columns: minmax(0, 1fr);
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__inner {
	grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	display: grid;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__excerpt,
.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__list-cta,
.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__catalog-message {
	display: block;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__list-cta {
	display: inline-flex;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__excerpt {
	margin: 12px 0 0;
	color: #666666;
	font-size: 14px;
	line-height: 1.5;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__list-cta,
.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__catalog-message {
	margin-top: 12px;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__content {
	padding-top: 0;
	padding-right: 32px;
	padding-bottom: 0;
	justify-content: center;
}

.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__media {
	aspect-ratio: auto;
	min-height: 280px;
}

@media (min-width: 1024px) {
	.woocommerce-archive .woocommerce ul.products.columns-1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__inner {
		grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
		gap: 24px;
		align-items: center;
		display: grid;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__excerpt,
	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__list-cta,
	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__catalog-message {
		display: block;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__list-cta {
		display: inline-flex;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__excerpt {
		margin: 12px 0 0;
		color: #666666;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__list-cta,
	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__catalog-message {
		margin-top: 12px;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__content {
		padding-top: 0;
		padding-right: 32px;
		padding-bottom: 0;
		justify-content: center;
	}

	.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__media {
		aspect-ratio: auto;
		min-height: 280px;
	}
}

.n19-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.2rem;
}

.n19-product__media {
	display: grid;
	gap: 0.7rem;
	min-width: 0;
}

.n19-product__main {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	background: color-mix(in srgb, var(--color-bg) 85%, var(--color-border));
	overflow: hidden;
	max-width: 100%;
}

.n19-product__main img,
.n19-product__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.n19-product__main.is-changing .n19-product__image {
	opacity: 0.2;
	transform: scale(0.98);
	filter: blur(1px);
}

.n19-product__thumbs-wrap {
	display: grid;
	grid-template-columns: max-content minmax(0, max-content) max-content;
	align-items: center;
	gap: 0.15rem;
	justify-items: center;
	justify-content: center;
}

.n19-product__thumbs {
	display: inline-flex;
	gap: 0.5rem;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
	justify-self: center;
	width: calc((62px * 4) + 1.5rem);
	scroll-snap-type: x mandatory;
}

.n19-product__thumbs::-webkit-scrollbar {
	display: none;
}

.n19-product__thumb-nav {
	width: 28px;
	height: 28px;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-text);
	font-size: 1rem;
	line-height: 1;
	padding: 0;
}

.n19-product__thumb-nav[hidden] {
	display: none;
}

.n19-product__thumbs.is-limited {
	max-width: max-content;
}

.n19-product__thumb {
	border: 1px solid var(--color-border);
	background: transparent;
	padding: 0;
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	scroll-snap-align: start;
}

.n19-product__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.n19-product__thumb.is-active {
	border-color: var(--main_color);
}

.n19-product__content {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
}

.n19-product__content .n19-module-label {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--label-color-alt);
}

.n19-product__content h2 {
	margin: 0;
}

.n19-product__price {
	font-size: 2rem;
}



.n19-product__excerpt p {
	margin: 0;
}

.n19-product__actions form {
	display: grid;
	gap: 0.75rem;
	width: 100%;
}

.n19-product__variations {
	display: grid;
	gap: 0.65rem;
	margin-bottom: var(--space-lg);
}

.n19-product__variation-row {
	display: grid;
	gap: var(--space-sm);
}


.n19-product__variation-row select {
	width: 100%;
	height: 40px;
	padding: 0 0.65rem;
	border: 1px solid var(--color-border);
	background: transparent;
	color: var(--color-text);
}

.n19-product .single_variation_wrap {
	display: grid;
	gap: 0.7rem;
}

.n19-product .variations_button {
	display: grid;
	gap: 0.6rem;
	align-items: stretch;
}

.n19-product__purchase-row {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 0.6rem;
	align-items: stretch;
}


.n19-product__qty-wrap {
	width: 100%;
	max-width: 108px;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 32px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	overflow: hidden;
}

.n19-product__qty {
	width: 100%;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-text);
	text-align: center;
	appearance: textfield;
}

.n19-product__qty-btn {
	height: 42px;
	border: 0;
	background: transparent;
	color: var(--color-text);
	line-height: 1;
	padding: 0;
}

.n19-product__qty-btn:disabled {
	opacity: 0.45;
}


.n19-product__qty-message {
	margin: var(--space-xs) 0 0;
	font-size: 0.82rem;
	color: var(--main_color);
	min-height: 1.1em;
}

.n19-product__sold-out {
	margin: var(--space-xs) 0 0;
	font-size: 0.95rem;
	font-weight: 400;
	color: var(--color-muted);
}

@media (max-width: 640px) {
	.n19-product__purchase-row,
	.n19-product form[data-product-type="variable"] .n19-product__purchase-row {
		grid-template-columns: 1fr;
	}

	.n19-product__qty-wrap {
		width: 100%;
	}
}

.n19-product__meta p {
	margin: var(--space-sm) 0 0;
	font-size: 0.9rem;
}

@media (min-width: 1024px) {
	.n19-product {
		grid-template-columns: minmax(0, 52%) minmax(0, 48%);
		gap: 1.7rem;
		align-items: start;
	}
}

@media (max-width: 991px) {
	.n19-shop-toolbar {
		margin-top: var(--space-sm);
	}

	.n19-shop-view-switch {
		display: none;
	}

	.n19-shop-toolbar__left,
	.n19-shop-toolbar__right {
		width: 100%;
		justify-content: space-between;
	}

	.n19-shop-toolbar__right,
	.woocommerce .n19-shop-toolbar .woocommerce-ordering,
	.woocommerce .n19-shop-toolbar .woocommerce-ordering select {
		width: 100%;
	}

	.woocommerce .n19-shop-toolbar .woocommerce-ordering select {
		min-width: 0;
	}

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

	.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__inner {
		display: flex;
		grid-template-columns: none;
		gap: 0;
		align-items: stretch;
	}

	.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__excerpt,
	.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__list-cta {
		display: none;
	}

	.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__content {
		padding: 16px 24px 24px;
		justify-content: center;
	}

	.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__media {
		aspect-ratio: 1 / 1;
		min-height: 0;
	}
}

@media (max-width: 860px) {
	.n19-product {
		max-width: 100%;
		overflow-x: hidden;
	}

	.n19-product,
	.n19-product__media,
	.n19-product__main,
	.n19-product__content,
	.n19-product__actions,
	.n19-product__variations,
	.n19-product__variation-row {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.n19-product__variation-row select {
		max-width: 100%;
	}

	.n19-product__thumbs {
		width: min(100%, calc((62px * 4) + 1.5rem));
	}

	.n19-product__thumbs-wrap {
		width: 100%;
		grid-template-columns: 24px minmax(0, 1fr) 24px;
		max-width: 100%;
	}

	.n19-product__thumb-nav {
		width: 24px;
		height: 24px;
	}
}

@media (max-width: 480px) {
	.n19-shop-main.n19-products-view-list ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Design system alignment */
.n19-shop-view-switch__btn,
.n19-product-card,
.n19-product-card__inner,
.n19-product-card__media {
	background: var(--surface);
	color: var(--text-body);
}

.n19-shop-view-switch__btn.is-active {
	background: var(--surface-muted);
	border-color: var(--accent);
	color: var(--accent);
}

.n19-product-card__sale {
	background: var(--surface-muted);
	color: var(--price-sale);
}

.n19-product-card__sold-out {
	background: var(--surface-muted);
	color: var(--text-muted);
}

.n19-product-card__meta,
.n19-product-card__price-notes p,
.n19-product-card__price-note-label,
.n19-product-card__price-note-value,
.n19-shop-main.n19-products-view-list ul.products li.product .n19-product-card__excerpt,
.woocommerce-archive .woocommerce ul.products.columns-1 li.product .n19-product-card__excerpt {
	color: var(--text-muted);
}

.n19-product-card__meta-separator {
	color: var(--border-strong);
}

.n19-product-card__content h2 {
	color: var(--text-heading);
}

.n19-product-card__price,
.n19-product__price {
	color: var(--price-current);
}

.n19-product-card__price.is-sale,
.n19-product-card__price.is-sale .woocommerce-Price-amount,
.n19-product-card__price.is-sale .amount,
.n19-product-card__price.is-sale bdi,
.n19-product-card__price-note-discount {
	color: var(--price-sale);
}

.n19-product-card__price del,
.n19-product-card__price-note-value del,
.n19-product-card__price del .woocommerce-Price-amount,
.n19-product-card__price del .amount,
.n19-product-card__price del bdi,
.n19-product-card__price-note-value del .woocommerce-Price-amount,
.n19-product-card__price-note-value del .amount,
.n19-product-card__price-note-value del bdi {
	color: var(--price-regular) !important;
}

.n19-product__variation-row select {
	border-color: var(--input_border);
	background: var(--input_bg);
	color: var(--text-body);
}

.n19-product__variation-row select:focus {
	border-color: var(--input_focus);
	box-shadow: 0 0 0 1px var(--input_focus);
}

.n19-product__qty-wrap {
	grid-template-columns: var(--qty-size) minmax(42px, auto) var(--qty-size);
	border-color: var(--border-strong);
	border-radius: 0;
	background: var(--surface);
}

.n19-product__qty,
.n19-product__qty-btn {
	height: var(--qty-size);
	color: var(--text-heading);
}

.n19-product__qty-message {
	color: var(--accent);
}
