/* ==========================================================================
   Nitushi — WooCommerce surfaces (shop, product, cart, checkout, account)
   Gallery-paper background, hairline structure, serif display type.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.nitushi-page .woocommerce-message,
.nitushi-page .woocommerce-info,
.nitushi-page .woocommerce-error,
.nitushi-page .wc-block-components-notice-banner {
	background: #fff;
	border: 1px solid var(--nt-hairline);
	border-left: 3px solid var(--nt-text);
	border-radius: 0;
	color: var(--nt-text);
	font-family: var(--nitushi-font-ui);
	font-size: 14px;
	padding: 16px 20px;
}

.nitushi-page .woocommerce-error,
.nitushi-page .wc-block-components-notice-banner.is-error {
	border-left-color: var(--nt-error);
}

.nitushi-page .woocommerce-message a,
.nitushi-page .woocommerce-info a,
.nitushi-page .woocommerce-error a {
	color: var(--nt-text);
}

.nitushi-form-notice {
	font-family: var(--nitushi-font-ui);
	font-size: 14.5px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--nt-hairline);
	border-left: 3px solid var(--nt-success);
	max-width: 640px;
}

.nitushi-form-notice--error {
	border-left-color: var(--nt-error);
}

/* --------------------------------------------------------------------------
   Product grid (archives, related, cross-sells)
   -------------------------------------------------------------------------- */

.nitushi-page ul.products li.product {
	text-align: left;
}

.nitushi-page ul.products li.product .woocommerce-loop-product__title,
.nitushi-page ul.products li.product .woocommerce-loop-category__title {
	font-family: var(--nitushi-font-display);
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--nt-text);
}

.nitushi-page ul.products li.product .price {
	font-family: var(--nitushi-font-ui);
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--nt-text-soft);
}

.nitushi-page ul.products li.product .price ins {
	text-decoration: none;
}

.nitushi-page ul.products li.product img {
	background: var(--nt-paper-2);
}

.nitushi-page .onsale {
	background: var(--nt-dark);
	color: var(--nitushi-ink);
	font-family: var(--nitushi-font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 0;
	padding: 6px 10px;
	min-width: 0;
	min-height: 0;
	line-height: 1;
}

/* Result count + ordering row */

.nitushi-page .woocommerce-result-count {
	font-family: var(--nitushi-font-ui);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nt-text-soft);
}

.nitushi-page .woocommerce-ordering select,
.nitushi-page .orderby {
	font-size: 13px;
	padding: 10px 14px;
}

/* Empty catalog / no results */

.nitushi-empty-catalog {
	text-align: center;
	padding: clamp(48px, 8vw, 96px) var(--nitushi-gutter);
}

.nitushi-empty-catalog__heading {
	font-size: clamp(24px, 3vw, 34px);
	margin: 0 0 14px;
}

.nitushi-empty-catalog__text {
	font-family: var(--nitushi-font-ui);
	font-size: 15px;
	color: var(--nt-text-soft);
	max-width: 52ch;
	margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */

.nitushi-page.single-product div.product .product_title {
	font-family: var(--nitushi-font-display);
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.15;
}

.nitushi-page.single-product div.product p.price {
	font-family: var(--nitushi-font-ui);
	font-size: 17px;
	letter-spacing: 0.04em;
	color: var(--nt-text);
}

.nitushi-page.single-product div.product p.price ins {
	text-decoration: none;
}

.nitushi-page.single-product div.product form.cart .button {
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* The quantity control stays off the product page (default of 1; the
   cart still allows changes) and the button takes the full row. The
   hidden input keeps submitting qty=1. !important because Woo's
   variation JS re-shows .quantity with an inline display on
   found_variation. */
.nitushi-page.single-product div.product form.cart .quantity {
	display: none !important;
}

.nitushi-product-assurance {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--nt-hairline);
}

.nitushi-product-assurance__item {
	margin: 0 0 8px;
	font-family: var(--nitushi-font-ui);
	font-size: 13.5px;
	color: var(--nt-text-soft);
}

.nitushi-product-assurance__item a {
	color: var(--nt-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Tabs → quiet hairline style */

.nitushi-page .woocommerce-tabs ul.tabs li a {
	font-family: var(--nitushi-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--nt-text-soft);
}

.nitushi-page .woocommerce-tabs ul.tabs li.active a {
	color: var(--nt-text);
}

/* Related products heading */

.nitushi-page .related > h2,
.nitushi-page .related.products > h2,
.nitushi-page .up-sells > h2,
.nitushi-page .cross-sells > h2 {
	font-family: var(--nitushi-font-display);
	font-size: clamp(22px, 2.6vw, 30px);
	margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Cart
   -------------------------------------------------------------------------- */

.nitushi-page .woocommerce-cart-form table.shop_table {
	border: 0;
	border-top: 1px solid var(--nt-hairline);
	border-radius: 0;
	font-family: var(--nitushi-font-ui);
}

.nitushi-page .woocommerce-cart-form table.shop_table th {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nt-text-soft);
}

.nitushi-page .woocommerce-cart-form table.shop_table td {
	border-top: 1px solid var(--nt-hairline);
	padding: 18px 12px;
}

.nitushi-page .woocommerce-cart-form .product-name a {
	font-family: var(--nitushi-font-display);
	font-size: 16px;
	color: var(--nt-text);
	text-decoration: none;
}

.nitushi-page .cart_totals h2 {
	font-size: 22px;
}

.nitushi-page .cart_totals table.shop_table {
	border: 1px solid var(--nt-hairline);
	border-radius: 0;
}

.nitushi-page .wc-proceed-to-checkout .checkout-button {
	width: 100%;
}

.nitushi-page .cart-empty.woocommerce-info,
.nitushi-page .wc-empty-cart-message .cart-empty {
	border: 0;
	background: transparent;
	text-align: center;
	font-family: var(--nitushi-font-display);
	font-size: clamp(22px, 3vw, 30px);
	color: var(--nt-text);
	padding: clamp(32px, 6vw, 64px) 0 8px;
}

.nitushi-page .return-to-shop {
	text-align: center;
	padding-bottom: clamp(32px, 6vw, 64px);
}

/* --------------------------------------------------------------------------
   Checkout
   -------------------------------------------------------------------------- */

.nitushi-page .woocommerce-checkout h3 {
	font-family: var(--nitushi-font-display);
	font-size: 21px;
	margin-bottom: 18px;
}

.nitushi-page .woocommerce-checkout .form-row label {
	margin-bottom: 6px;
}

.nitushi-page #order_review table.shop_table {
	border: 1px solid var(--nt-hairline);
	border-radius: 0;
	font-family: var(--nitushi-font-ui);
}

.nitushi-page #place_order {
	width: 100%;
}

.nitushi-page .woocommerce-checkout #payment {
	background: var(--nt-paper-2);
	border-radius: 0;
}

.nitushi-page .woocommerce-checkout #payment div.payment_box {
	background: #fff;
	color: var(--nt-text);
}

/* --------------------------------------------------------------------------
   Block cart & checkout (wp-block-woocommerce-cart / -checkout)
   -------------------------------------------------------------------------- */

.nitushi-page .wc-block-components-button,
.nitushi-page .wc-block-cart__submit-button,
.nitushi-page .wc-block-components-checkout-place-order-button {
	font-family: var(--nitushi-font-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nt-paper);
	background: var(--nt-text);
	border: 1px solid var(--nt-text);
	border-radius: 0;
	padding: 16px 30px;
	transition: background-color 0.25s ease;
}

.nitushi-page .wc-block-components-button:hover,
.nitushi-page .wc-block-components-button:focus {
	background: #000;
	color: var(--nt-paper);
}

.nitushi-page .wc-block-components-product-name {
	font-family: var(--nitushi-font-display);
	font-size: 16px;
	color: var(--nt-text);
	text-decoration: none;
}

.nitushi-page .wc-block-cart-item__prominent-price,
.nitushi-page .wc-block-components-totals-item,
.nitushi-page .wc-block-components-totals-footer-item {
	font-family: var(--nitushi-font-ui);
}

.nitushi-page .wc-block-components-sidebar .wc-block-components-panel,
.nitushi-page .wc-block-components-totals-wrapper {
	border-color: var(--nt-hairline);
}

.nitushi-page .wc-block-components-text-input input,
.nitushi-page .wc-block-components-textarea,
.nitushi-page .wc-block-components-combobox .components-combobox-control__input,
.nitushi-page .wc-block-components-form .wc-block-components-text-input input {
	border: 1px solid var(--nt-hairline-strong);
	border-radius: 0;
	background: #fff;
	color: var(--nt-text);
}

.nitushi-page .wc-block-components-checkout-step__title,
.nitushi-page .wc-block-components-title {
	font-family: var(--nitushi-font-display);
	color: var(--nt-text);
}

.nitushi-page .wc-block-components-quantity-selector {
	border: 1px solid var(--nt-hairline-strong);
	border-radius: 0;
}

.nitushi-page .wp-block-woocommerce-empty-cart-block h2 {
	font-family: var(--nitushi-font-display);
}

.nitushi-page .wc-block-grid__product-title {
	font-family: var(--nitushi-font-display);
	font-size: 15px;
	color: var(--nt-text);
}

.nitushi-page .wc-block-components-notice-banner {
	border-radius: 0;
}

/* --------------------------------------------------------------------------
   Variation tile swatches (variation-swatches.js)
   --------------------------------------------------------------------------
   Visual tiles built from the real per-variation mockups: product type
   and frame tiles show the artwork itself; size tiles show it at true
   relative proportions. Native selects stay hidden underneath.
   -------------------------------------------------------------------------- */

.nt-has-swatches .variations select {
	display: none;
}

.nitushi-page.single-product div.product table.variations,
.nitushi-page.single-product div.product table.variations tbody,
.nitushi-page.single-product div.product table.variations tr,
.nitushi-page.single-product div.product table.variations th,
.nitushi-page.single-product div.product table.variations td {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
}

.nitushi-page.single-product div.product table.variations tr {
	margin-bottom: 26px;
}

.nitushi-page.single-product div.product table.variations th.label {
	margin-bottom: 12px;
}

.nitushi-page.single-product div.product table.variations th.label label {
	font-family: var(--nitushi-font-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nt-text);
}

.nt-swatches__current {
	font-family: var(--nitushi-font-ui);
	font-weight: 600;
	color: var(--nt-text);
	text-transform: none;
	letter-spacing: 0.03em;
	font-size: 12px;
	margin-left: 2px;
}

/* Reference layout: horizontal product cards (close-up left, name
   beside), image-only frame tiles (the name lives in the row label),
   text-only size buttons. Desktop wraps; mobile scrolls each row. */

.nt-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nt-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--nitushi-font-ui);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.25;
	color: var(--nt-text);
	background: #fff;
	border: 1px solid var(--nt-hairline-strong);
	border-radius: 0;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nt-swatch:hover,
.nt-swatch:focus-visible {
	border-color: var(--nt-text);
}

.nt-swatch.is-selected {
	border-color: var(--nt-text);
	box-shadow: inset 0 0 0 1.5px var(--nt-text);
}

.nt-swatch.is-selected .nt-swatch__label {
	font-weight: 700;
}

.nt-swatch.is-unavailable {
	opacity: 0.35;
}

.nt-swatch.is-unavailable .nt-swatch__media img {
	filter: grayscale(1);
}

/* Frame values that don't belong to the selected product type. */
.nt-swatch.is-hidden {
	display: none;
}

.nt-swatch:disabled {
	cursor: default;
}

.nt-swatch__label {
	text-align: center;
}

.nt-swatch__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nt-paper-2);
	overflow: hidden;
}

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

/* Product: horizontal card — close-up left, name beside it */

.nt-swatches--product .nt-swatch {
	flex: 1 1 0;
	min-width: 150px;
	height: 64px;
	justify-content: flex-start;
}

.nt-swatches--product .nt-swatch__media {
	flex: 0 0 62px;
	width: 62px;
	height: 100%;
}

.nt-swatches--product .nt-swatch__label {
	flex: 1 1 auto;
	padding: 0 10px;
}

/* Frame: image-only tiles */

.nt-swatches--style .nt-swatch {
	width: 118px;
	height: 94px;
}

.nt-swatches--style .nt-swatch__media {
	width: 100%;
	height: 100%;
}

/* Size: text-only buttons */

.nt-swatch--size {
	padding: 12px 16px;
	font-size: 12.5px;
	letter-spacing: 0.02em;
}

.nt-swatch--size .nt-swatch__label {
	white-space: nowrap;
}

/* Fallback color chip (only if no curated image or mockup resolves) */

.nt-swatch__chip {
	width: 26px;
	height: 26px;
	border: 1px solid var(--nt-hairline);
}

.nt-swatch__chip--none {
	background:
		linear-gradient(
			to top right,
			transparent calc(50% - 1px),
			var(--nt-hairline-strong) calc(50% - 1px),
			var(--nt-hairline-strong) calc(50% + 1px),
			transparent calc(50% + 1px)
		),
		#fff;
}

.nitushi-page.single-product div.product .reset_variations {
	font-family: var(--nitushi-font-ui);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nt-text-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Mobile: each row is a swipe rail with a hairline scroll track,
   cards bleeding off the screen edge to signal more options. */

@media (max-width: 760px) {
	.nt-swatches {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
		scrollbar-color: var(--nt-hairline-strong) transparent;
		padding-bottom: 8px;
		margin-right: calc(-1 * var(--nitushi-gutter));
		padding-right: var(--nitushi-gutter);
	}

	.nt-swatches::-webkit-scrollbar {
		height: 2px;
	}

	.nt-swatches::-webkit-scrollbar-track {
		background: transparent;
	}

	.nt-swatches::-webkit-scrollbar-thumb {
		background: var(--nt-hairline-strong);
	}

	.nt-swatch {
		flex: 0 0 auto;
	}

	.nt-swatches--product .nt-swatch {
		flex: 0 0 176px;
		min-width: 0;
		height: 64px;
	}

	.nt-swatches--style .nt-swatch {
		width: 112px;
		height: 90px;
	}
}

/* --------------------------------------------------------------------------
   Thank you
   -------------------------------------------------------------------------- */

.nitushi-thankyou-intro {
	text-align: center;
	padding: clamp(16px, 3vw, 40px) 0 clamp(24px, 4vw, 48px);
	border-bottom: 1px solid var(--nt-hairline);
	margin-bottom: clamp(28px, 4vw, 48px);
}

.nitushi-thankyou-intro__heading {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.6vw, 44px);
}

.nitushi-thankyou-intro__text {
	font-family: var(--nitushi-font-ui);
	font-size: 15px;
	line-height: 1.7;
	color: var(--nt-text-soft);
	max-width: 56ch;
	margin: 0 auto 28px;
}

.nitushi-page .woocommerce-order-overview {
	font-family: var(--nitushi-font-ui);
	border: 1px solid var(--nt-hairline);
	padding: 20px;
}

/* --------------------------------------------------------------------------
   My Account
   -------------------------------------------------------------------------- */

.nitushi-page .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--nt-hairline);
}

.nitushi-page .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--nt-hairline);
}

.nitushi-page .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 14px 4px;
	font-family: var(--nitushi-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--nt-text-soft);
	transition: color 0.2s ease;
}

.nitushi-page .woocommerce-MyAccount-navigation li.is-active a,
.nitushi-page .woocommerce-MyAccount-navigation a:hover {
	color: var(--nt-text);
}

.nitushi-page .woocommerce-MyAccount-content h2,
.nitushi-page .woocommerce-MyAccount-content h3 {
	font-family: var(--nitushi-font-display);
}

.nitushi-page table.woocommerce-orders-table {
	font-family: var(--nitushi-font-ui);
	border: 1px solid var(--nt-hairline);
	border-radius: 0;
}

/* Login / register */

.nitushi-page .woocommerce form.login,
.nitushi-page .woocommerce form.register,
.nitushi-page .woocommerce-ResetPassword {
	border: 1px solid var(--nt-hairline);
	border-radius: 0;
	padding: clamp(24px, 4vw, 40px);
	background: #fff;
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.nitushi-contact-form {
	max-width: 640px;
}

.nitushi-contact-form .nitushi-field {
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nitushi-field--trap {
	position: absolute !important;
	left: -9999px !important;
}

