/*
Theme Name: North Red
Author: North Red
Description: Block theme for North Red, a clothing brand in the spirit of the True North. Built for WooCommerce and used by the North Red demo store: black, white and one red, with squared corners and uppercase headings.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northred
*/

/* -------------------------------------------------------------------------
   Tokens (colours, fonts and spacing come from theme.json)
   ------------------------------------------------------------------------- */
:root {
	--nr-ink: var(--wp--preset--color--contrast);
	--nr-muted: var(--wp--preset--color--contrast-2);
	--nr-cream: var(--wp--preset--color--base);
	--nr-sand: var(--wp--preset--color--base-2);
	--nr-white: var(--wp--preset--color--white);
	--nr-panel: #f4f4f4;
	--nr-line: var(--wp--preset--color--line);
	--nr-carrot: var(--wp--preset--color--accent);
	--nr-carrot-dark: var(--wp--preset--color--accent-2);
	--nr-radius-s: var(--wp--custom--radius--small);
	--nr-radius-m: var(--wp--custom--radius--medium);
	--nr-radius-l: var(--wp--custom--radius--large);
	--nr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.wp-block-site-title,
.has-heading-font-family {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

::selection {
	background: var(--nr-carrot);
	color: #fff;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--nr-carrot-dark);
	outline-offset: 2px;
}

img {
	height: auto;
	max-width: 100%;
}

p:empty {
	display: none;
}

.wp-site-blocks > footer,
.wp-site-blocks > main {
	margin-block-start: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.nr-announcement a {
	color: inherit;
}

.nr-announcement p {
	margin: 0;
	letter-spacing: 0.02em;
}

.nr-header {
	border-bottom: 1px solid var(--nr-line);
}

.nr-header__row {
	gap: 1rem;
}

.nr-logo {
	margin: 0;
}

.nr-nav .wp-block-navigation-item__content {
	padding-block: 0.35rem;
}

.nr-nav .wp-block-navigation__submenu-container {
	min-width: 13.5rem;
	padding: 0.5rem;
	border: 1px solid var(--nr-line);
	border-radius: var(--nr-radius-m);
	background: var(--nr-cream);
	box-shadow: var(--wp--preset--shadow--soft);
}

.nr-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 0.75rem;
	border-radius: var(--nr-radius-s);
}

.nr-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--nr-sand);
}

/* Mobile menu overlay */
.wp-block-navigation.nr-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1.125rem, 4vw, 2.75rem) 2rem;
	background-color: var(--nr-cream);
	color: var(--nr-ink);
}

.nr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.35rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.6rem;
}

.nr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	min-width: 0;
	padding: 0.25rem 0 0.5rem 1rem;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
}

.nr-header__tools {
	flex: none;
}

.nr-header__tools .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 0.35rem;
}

.nr-header__tools .wp-block-search__input {
	min-width: 0;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--nr-line);
	border-radius: 0;
	background: var(--nr-white);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.nr-header__tools .wp-block-search__button,
.nr-header__tools .wp-block-search__button:hover,
.nr-header__tools .wp-block-search__button:focus {
	margin: 0;
	padding: 0.45rem;
	border-radius: 0;
	background: transparent;
	color: var(--nr-ink);
}

.nr-header__tools .wp-block-search__button svg {
	width: 1.6rem;
	height: 1.6rem;
}

.nr-header__tools .wc-block-mini-cart__button,
.nr-header__tools .wp-block-woocommerce-customer-account a {
	padding: 0.45rem;
	color: var(--nr-ink);
}

.nr-header__tools .wp-block-woocommerce-customer-account a:hover,
.nr-header__tools .wc-block-mini-cart__button:hover,
.nr-header__tools .wp-block-search__button:hover {
	color: var(--nr-carrot-dark);
	opacity: 1;
}

.wc-block-mini-cart__badge {
	background: var(--nr-carrot);
	color: #fff;
	font-weight: 700;
}

@media (max-width: 599px) {
	.nr-header__row {
		gap: 0.25rem;
	}

	/* Hamburger first, logo centred, tools on the right. */
	.nr-header__row .nr-nav {
		order: -1;
		flex: 0 0 auto;
	}

	/* "Season's Greetings" and the three icons have to fit a 320px phone:
	   the name scales with the screen and the icons sit closer together. */
	.nr-header__row .nr-logo {
		flex: 1 1 auto;
		min-width: 0;
		font-size: clamp(0.8rem, 4.2vw, 1.3rem);
	}

	.nr-header__row .nr-header__tools {
		gap: 0.1rem;
	}

	.nr-header__tools .wp-block-search__button,
	.nr-header__tools .wp-block-search__button:hover,
	.nr-header__tools .wp-block-search__button:focus,
	.nr-header__tools .wc-block-mini-cart__button,
	.nr-header__tools .wp-block-woocommerce-customer-account a {
		padding: 0.3rem;
	}
}

/* -------------------------------------------------------------------------
   Buttons and form controls
   ------------------------------------------------------------------------- */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link) {
	transition: background-color 0.2s var(--nr-ease), color 0.2s var(--nr-ease), transform 0.2s var(--nr-ease);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	background: transparent;
	color: var(--nr-ink);
	padding: calc(0.95em - 1.5px) calc(1.75em - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--nr-ink);
	color: var(--nr-cream);
	border-color: var(--nr-ink);
}

:where(.woocommerce, .wc-block-components-form, .wp-block-woocommerce-checkout, .wp-block-woocommerce-cart, .nr-page) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select) {
	border: 1px solid #c8c8c8;
	border-radius: var(--nr-radius-s);
	background: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
}

/* -------------------------------------------------------------------------
   Product grids (shop, collections, home, related)
   ------------------------------------------------------------------------- */
.wc-block-product-template {
	row-gap: clamp(1.75rem, 3vw, 2.75rem);
}

.wc-block-product .wc-block-components-product-image,
.wc-block-product .wp-block-woocommerce-product-image {
	margin: 0;
	overflow: hidden;
	border-radius: var(--nr-radius-m);
	background: var(--nr-sand);
}

.wc-block-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	transition: transform 0.6s var(--nr-ease);
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.035);
}

.wc-block-product .wp-block-post-title {
	font-weight: 500;
}

.wc-block-product .wp-block-post-title a {
	color: var(--nr-ink);
	text-decoration: none;
}

.wc-block-product .wp-block-post-title a:hover {
	color: var(--nr-carrot-dark);
}

.wc-block-product .wp-block-woocommerce-product-price,
.wc-block-product .wc-block-components-product-price {
	color: var(--nr-muted);
}

.nr-price-from {
	font-size: 0.9em;
	font-weight: 400;
	color: var(--nr-muted);
}

.wc-block-components-product-sale-badge,
.onsale {
	border: 0;
	border-radius: 0;
	background: var(--nr-carrot);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
}

.nr-shop__intro {
	max-width: 46rem;
	color: var(--nr-muted);
	font-size: var(--wp--preset--font-size--large);
}

.nr-shop__intro p {
	margin: 0;
}

.nr-shop__toolbar {
	margin-top: var(--wp--preset--spacing--40);
	padding-bottom: 0.25rem;
	color: var(--nr-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nr-shop__toolbar .woocommerce-result-count,
.nr-shop__toolbar .woocommerce-ordering {
	margin: 0;
}

.nr-shop__toolbar select.orderby {
	padding: 0.5rem 2.2rem 0.5rem 0.9rem;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background-color: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	font-weight: 500;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	padding: 0.35rem 0.75rem;
	border-radius: 0;
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--nr-ink);
	color: var(--nr-cream);
}

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--nr-muted);
}

.woocommerce-breadcrumb a,
.wc-block-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover,
.wc-block-breadcrumbs a:hover {
	color: var(--nr-carrot-dark);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Single product
   ------------------------------------------------------------------------- */
.nr-product__summary > * {
	margin-block: 0;
}

.nr-product__summary > * + * {
	margin-block-start: 1rem;
}

.nr-eyebrow {
	color: var(--nr-carrot-dark);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nr-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.nr-product__summary .wp-block-post-title {
	margin-block-start: 0.5rem;
}

.nr-product__summary .wp-block-post-excerpt {
	color: var(--nr-muted);
}

.nr-product__summary .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Gallery */
.nr-product .wc-block-product-gallery {
	gap: 0.85rem;
}

.nr-product .wc-block-product-gallery-large-image {
	border-radius: var(--nr-radius-l);
	background: var(--nr-sand);
}

.nr-product .wc-block-product-gallery-large-image__container {
	list-style: none;
}

.nr-product .wc-block-next-previous-buttons {
	box-sizing: border-box;
	padding: 0 0.6rem;
}

.nr-product .wc-block-next-previous-buttons__button {
	display: grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--nr-white);
	color: var(--nr-ink);
	box-shadow: var(--wp--preset--shadow--soft);
	cursor: pointer;
	transition: opacity 0.2s var(--nr-ease), transform 0.2s var(--nr-ease);
}

.nr-product .wc-block-next-previous-buttons__button:hover {
	transform: scale(1.06);
}

.nr-product .wc-block-next-previous-buttons__button[aria-disabled="true"] {
	opacity: 0;
	pointer-events: none;
}

.nr-product .wc-block-product-gallery-thumbnails__scrollable {
	gap: 0.75rem;
}

.nr-product .wc-block-product-gallery-thumbnails__thumbnail__image {
	border-radius: var(--nr-radius-s);
	background: var(--nr-sand);
	opacity: 0.6;
	transition: opacity 0.2s var(--nr-ease);
}

.nr-product .wc-block-product-gallery-thumbnails__thumbnail__image:hover,
.nr-product .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	opacity: 1;
	filter: none;
}

.nr-product .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	outline: 2px solid var(--nr-ink);
	outline-offset: -2px;
}

/* Add to cart (WooCommerce's standard form) */
.nr-product .wp-block-add-to-cart-form {
	margin-top: 1.5rem;
}

.nr-product form.cart {
	margin: 0;
}

.nr-product form.cart table.variations {
	width: 100%;
	margin: 0 0 1rem;
	border: 0;
	border-collapse: collapse;
}

.nr-product form.cart table.variations :where(tbody, tr, th, td) {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

.nr-product form.cart table.variations th.label {
	margin-bottom: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.4;
}

.nr-product form.cart table.variations select {
	width: 100%;
	min-height: 3.2rem;
	padding: 0 1rem;
	border: 1px solid #c8c8c8;
	border-radius: var(--nr-radius-s);
	background-color: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
}

.nr-product form.cart .reset_variations {
	display: none !important;
}

.nr-product .woocommerce-variation {
	margin-bottom: 1.25rem;
}

.nr-product .woocommerce-variation-description p {
	margin: 0;
	color: var(--nr-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nr-product .woocommerce-variation-price {
	margin-top: 0.75rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.nr-product .woocommerce-variation-availability {
	display: none;
}

.nr-product .woocommerce-variation-add-to-cart,
.nr-product form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
}

.nr-product form.cart .quantity {
	flex: none;
	margin: 0;
}

.nr-product form.cart .quantity input.qty {
	box-sizing: border-box;
	width: 5rem;
	height: 100%;
	min-height: 3.4rem;
	padding: 0 0.5rem;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
	font-weight: 600;
	text-align: center;
}

.nr-product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-height: 3.4rem;
	margin: 0;
	font-size: 1rem;
}

.nr-product form.cart .single_add_to_cart_button.disabled,
.nr-product form.cart .single_add_to_cart_button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

/* Size buttons, built from the dropdown by assets/js/product.js */
.nr-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nr-pill {
	min-width: 5.75rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s var(--nr-ease), color 0.2s var(--nr-ease), border-color 0.2s var(--nr-ease);
}

.nr-pill:hover {
	border-color: var(--nr-ink);
}

.nr-pill[aria-pressed="true"] {
	border-color: var(--nr-ink);
	background: var(--nr-ink);
	color: var(--nr-cream);
}

.nr-pill:disabled {
	cursor: not-allowed;
	opacity: 0.4;
	text-decoration: line-through;
}

.nr-has-pills select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0 !important;
}

/* Selected-size price, shown in place of the "From" price */
.nr-live-price {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.nr-has-live-price > .wp-block-woocommerce-product-price,
.nr-has-live-price .woocommerce-variation-price {
	display: none;
}

/*
 * The rules below style WooCommerce's newer "Add to Cart + Options" block,
 * which is still labelled Beta. The product template uses the standard form
 * above; these keep the page looking right if you switch blocks later.
 */
/* Size chips, quantity and add to cart */
.nr-product .wc-block-add-to-cart-with-options {
	margin-top: 1.5rem;
}

.nr-product .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute-name {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.nr-product .wc-block-product-filter-chips__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nr-product .wc-block-product-filter-chips__item {
	min-width: 5.75rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s var(--nr-ease), color 0.2s var(--nr-ease), border-color 0.2s var(--nr-ease);
}

.nr-product .wc-block-product-filter-chips__item:hover {
	border-color: var(--nr-ink);
}

.nr-product .wc-block-product-filter-chips__item[aria-checked="true"] {
	border-color: var(--nr-ink);
	background: var(--nr-ink);
	color: var(--nr-cream);
}

.nr-product .wc-block-product-filter-chips__item:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.nr-product .wp-block-woocommerce-add-to-cart-with-options-variation-description {
	color: var(--nr-muted);
	font-size: var(--wp--preset--font-size--small);
}

.nr-product .wp-block-woocommerce-add-to-cart-with-options-variation-description p {
	margin: 0;
}

.nr-product .wc-block-components-product-stock-indicator:empty,
.nr-product .wc-block-components-product-stock-indicator--in-stock {
	display: none;
}

.nr-product .wc-block-add-to-cart-with-options .wp-block-group:has(> .wc-block-components-product-button) {
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-quantity-selector {
	box-sizing: border-box;
	width: 7.25rem;
	height: 3.4rem;
	margin: 0;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background: var(--nr-white);
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-quantity-selector::after {
	border: 0;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-quantity-selector__input {
	font-weight: 600;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-quantity-selector__button {
	color: var(--nr-ink);
	opacity: 1;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.35;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-product-button {
	flex: 1 1 auto;
	margin: 0;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-product-button__button {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.4rem;
	justify-content: center;
	font-size: 1rem;
	text-align: center;
}

.nr-product .wc-block-add-to-cart-with-options .wc-block-components-product-button__button[aria-disabled="true"],
.nr-product .wc-block-add-to-cart-with-options .wc-block-components-product-button__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

/* Reassurance ticks */
.nr-ticks {
	display: grid;
	gap: 0.4rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--nr-muted);
}

.nr-ticks li {
	position: relative;
	padding-left: 1.7em;
}

.nr-ticks li::before {
	content: "";
	position: absolute;
	top: 0.28em;
	left: 0;
	width: 1.05em;
	height: 1.05em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1B1B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5.2 5.2L20 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Fact accordions */
.nr-product__facts {
	margin-top: 1.75rem !important;
	border-top: 1px solid var(--nr-line);
}

.nr-product__facts details {
	margin: 0;
}

.nr-product__facts summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.nr-product__facts summary::-webkit-details-marker {
	display: none;
}

.nr-product__facts summary::after {
	content: "+";
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1;
}

.nr-product__facts details[open] summary::after {
	content: "\2212";
}

.nr-product__facts details p {
	margin: 0.75rem 0 0.25rem;
	color: var(--nr-muted);
}

/* Description / reviews tabs */
.nr-product .wp-block-woocommerce-product-details {
	margin-top: var(--wp--preset--spacing--60);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2rem;
	margin: 0 0 1.75rem;
	padding: 0;
	border-bottom: 1px solid var(--nr-line);
	list-style: none;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	margin-bottom: -1px;
	padding: 0.85rem 0;
	border-bottom: 2px solid transparent;
	color: var(--nr-muted);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a {
	border-color: var(--nr-ink);
	color: var(--nr-ink);
}

.woocommerce-tabs .woocommerce-Tabs-panel {
	max-width: 46rem;
}

.woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

.woocommerce-tabs table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-tabs table.shop_attributes :where(th, td) {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--nr-line);
	text-align: left;
	font-style: normal;
}

.woocommerce-tabs table.shop_attributes th {
	width: 9rem;
	font-weight: 600;
}

.woocommerce-tabs table.shop_attributes td p {
	margin: 0;
}

.nr-related {
	margin-top: var(--wp--preset--spacing--70);
}

.nr-related > .wp-block-heading {
	margin-bottom: var(--wp--preset--spacing--40);
}

@media (min-width: 782px) {
	.nr-product__summary {
		position: sticky;
		top: 2rem;
		align-self: flex-start;
	}
}

/* -------------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------------- */
.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--nr-radius-m);
}

.wc-block-components-notice-banner a,
.woocommerce-message a {
	font-weight: 600;
}

/* -------------------------------------------------------------------------
   Cart, checkout, mini cart
   ------------------------------------------------------------------------- */
.wc-block-cart .wc-block-cart-items .wc-block-cart-item__image img,
.wc-block-mini-cart__drawer .wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	border-radius: var(--nr-radius-s);
	background: var(--nr-sand);
}

.wc-block-components-product-name {
	color: var(--nr-ink);
	font-weight: 600;
	text-decoration: none;
}

.wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block {
	border-radius: var(--nr-radius-m);
}

.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	background: var(--nr-cream);
}

.wc-block-mini-cart__title,
.wc-block-cart__totals-title,
.wc-block-components-title.wc-block-components-title {
	font-family: var(--wp--preset--font-family--heading);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-weight: 700;
}

/* Cart rows already show the size; the longer size note is not needed there. */
.wc-block-components-product-metadata__description {
	display: none;
}

.nr-header--checkout {
	border-bottom: 1px solid var(--nr-line);
}

.nr-secure {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
	color: var(--nr-muted);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nr-secure::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A6A6A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nr-checkout-footer {
	border-top: 1px solid var(--nr-line);
	color: var(--nr-muted);
}

.nr-checkout-footer p {
	margin: 0;
}

.nr-checkout-footer a {
	color: inherit;
}

.nr-cart .wp-block-post-title {
	margin-bottom: var(--wp--preset--spacing--40);
}

/* -------------------------------------------------------------------------
   My account (classic markup)
   ------------------------------------------------------------------------- */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

@media (min-width: 782px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 14rem minmax(0, 1fr);
	}
}

.woocommerce-MyAccount-navigation ul {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: var(--nr-radius-s);
	text-decoration: none;
	font-weight: 500;
}

.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover {
	background: var(--nr-sand);
}

.woocommerce form .form-row {
	margin: 0 0 1rem;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.woocommerce form .form-row :where(input.input-text, textarea, select) {
	width: 100%;
	padding: 0.8rem 1rem;
	box-sizing: border-box;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password {
	max-width: 30rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--nr-line);
	border-radius: var(--nr-radius-m);
	background: var(--nr-white);
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce table.shop_table :where(th, td) {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid var(--nr-line);
	text-align: left;
}

/* -------------------------------------------------------------------------
   Content pages
   ------------------------------------------------------------------------- */
.nr-page .wp-block-post-title {
	margin-bottom: var(--wp--preset--spacing--40);
}

.nr-page .wp-block-post-content :where(h2) {
	margin-top: var(--wp--preset--spacing--50);
}

.nr-page .wp-block-post-content :where(h3) {
	margin-top: var(--wp--preset--spacing--40);
}

.nr-page .wp-block-post-content :where(ul, ol) {
	padding-left: 1.25rem;
}

.nr-page .wp-block-post-content :where(li + li) {
	margin-top: 0.35rem;
}

.nr-page .wp-block-details {
	border-bottom: 1px solid var(--nr-line);
}

.nr-page .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
	list-style: none;
}

.nr-page .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.nr-page .wp-block-details summary::after {
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.5rem;
	line-height: 1;
}

.nr-page .wp-block-details[open] summary::after {
	content: "\2212";
}

.nr-page .wp-block-details > :not(summary) {
	color: var(--nr-muted);
}

/* A table wider than a phone scrolls sideways inside itself, not the page. */
.nr-table {
	overflow-x: auto;
}

.nr-table table {
	width: 100%;
	border-collapse: collapse;
}

@media (max-width: 599px) {
	.nr-table :where(th, td) {
		padding: 0.7rem 0.5rem;
	}
}

.nr-table :where(th, td) {
	padding: 0.8rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--nr-line);
	text-align: left;
}

.nr-table thead th {
	border-bottom: 2px solid var(--nr-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.nr-note {
	padding: 1rem 1.25rem;
	border-radius: var(--nr-radius-m);
	background: var(--nr-sand);
}

/* -------------------------------------------------------------------------
   Home page sections (built by inc/home.php)
   ------------------------------------------------------------------------- */
.nr-container {
	width: min(calc(100% - 2rem), 1240px);
	margin-inline: auto;
}

/* The white buttons on photographs. */
.nr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0 1.4rem;
	border: 1px solid transparent;
	background: var(--nr-white);
	color: var(--nr-ink);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 0.2s var(--nr-ease), background-color 0.2s var(--nr-ease), color 0.2s var(--nr-ease);
}

.nr-button:hover {
	color: var(--nr-ink);
	transform: translateY(-1px);
}

.nr-button--ghost {
	border-color: rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #fff;
}

.nr-button--ghost:hover {
	background: var(--nr-white);
	color: var(--nr-ink);
}

.nr-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.nr-kicker {
	margin: 0 0 1.1rem;
	color: inherit;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Hero */
.nr-hero,
.nr-mission {
	position: relative;
	margin-block: 0 !important;
	overflow: hidden;
	background: var(--nr-ink);
	color: #fff;
}

.nr-hero {
	display: grid;
	align-items: end;
	min-height: min(84vh, 56rem);
}

.nr-hero__image,
.nr-mission__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nr-hero::after,
.nr-mission::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 28%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.74));
	pointer-events: none;
}

.nr-hero__copy,
.nr-mission__copy {
	position: relative;
	z-index: 1;
}

.nr-hero__copy {
	padding: 5.5rem 0 4.5rem;
}

.nr-hero h1 {
	max-width: 12ch;
	margin: 0;
	color: #fff;
	font-size: clamp(2.625rem, 8vw, 5.875rem);
	line-height: 1.02;
}

.nr-hero__lead {
	max-width: 56ch;
	margin: 1.1rem 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.125rem;
}

.nr-hero__caption {
	margin: 0.75rem 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8125rem;
}

/* The white panel: two editorial pictures, then the featured tees. */
.nr-section {
	margin-block: 0 !important;
	padding: 4.5rem 0;
}

.nr-shell {
	border: 1px solid var(--nr-line);
	background: var(--nr-white);
	box-shadow: var(--wp--preset--shadow--soft);
}

.nr-strip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nr-slide {
	position: relative;
	min-height: 20rem;
	overflow: hidden;
	background: var(--wp--preset--color--sage);
}

.nr-slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.nr-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
}

.nr-slide__copy {
	position: absolute;
	right: 1.5rem;
	bottom: 1.5rem;
	left: 1.5rem;
	z-index: 2;
	color: #fff;
}

.nr-slide__copy h3 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
	line-height: 1.2;
}

.nr-slide__copy p {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.9;
}

.nr-shell__body {
	padding: 2.6rem 2rem;
}

.nr-section-head {
	margin-bottom: 2.1rem;
}

.nr-section-head h2 {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.625rem);
}

.nr-section-head p {
	max-width: 60ch;
	margin: 0.75rem 0 0;
	color: var(--nr-muted);
}

.nr-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.nr-card {
	margin: 0;
}

.nr-card__link {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: inherit;
	text-decoration: none;
}

.nr-card__image {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid var(--nr-line);
	background: var(--nr-panel);
}

.nr-card__image img {
	position: absolute;
	inset: 0;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.6s var(--nr-ease);
}

.nr-card__link:hover .nr-card__image img {
	transform: scale(1.035);
}

.nr-card__label {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.5rem 0.65rem;
	background: rgba(28, 27, 27, 0.8);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
}

.nr-card__meta {
	display: block;
}

.nr-card__meta h3 {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.3;
}

.nr-card__link:hover h3 {
	color: var(--nr-carrot-dark);
}

.nr-card__line {
	display: block;
	margin-top: 0.5rem;
	color: var(--nr-muted);
	font-size: 0.875rem;
}

/* Mission */
.nr-mission {
	display: flex;
	align-items: center;
	min-height: 33.75rem;
}

.nr-mission__copy {
	padding: 4rem 0;
}

.nr-mission h2 {
	max-width: 10ch;
	margin: 0;
	color: #fff;
	font-size: clamp(1.75rem, 5vw, 3.625rem);
}

.nr-mission__text {
	max-width: 40rem;
	margin: 1.1rem 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.125rem;
}

@media (max-width: 980px) {
	.nr-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nr-strip {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.nr-hero__copy {
		padding: 4.5rem 0 3rem;
	}

	.nr-section {
		padding: 3.25rem 0;
	}

	.nr-shell__body {
		padding: 1.75rem 1.1rem;
	}

	.nr-slide {
		min-height: 15rem;
	}
}

@media (max-width: 440px) {
	.nr-cards {
		grid-template-columns: 1fr;
	}
}

/* Notes that say "this is a demo" (checkout, order confirmation, policy pages) */
.nr-demo-note,
.nr-note {
	padding: 0.95rem 1.15rem;
	border-left: 4px solid var(--nr-carrot);
	background: var(--nr-white);
}

.nr-demo-note p {
	margin: 0;
}

.nr-checkout .nr-demo-note {
	margin-bottom: 1.5rem;
}

.nr-order-received .nr-demo-note {
	margin-block: 1.25rem;
}

/* -------------------------------------------------------------------------
   "Coming soon" page (shown to visitors before launch)
   ------------------------------------------------------------------------- */
.nr-coming-soon {
	box-sizing: border-box;
	margin: 0;
	padding-inline: clamp(1.125rem, 4vw, 2.75rem);
	text-align: center;
}

.nr-coming-soon > * {
	max-width: 44rem;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.nr-footer {
	border-top: 1px solid rgba(28, 27, 27, 0.08);
}

.nr-footer a {
	color: inherit;
	text-decoration: none;
}

.nr-footer a:hover {
	color: var(--nr-carrot-dark);
	text-decoration: underline;
}

.nr-footer__heading {
	margin: 0 0 0.9rem;
	letter-spacing: 0.12em;
}

.nr-footer__blurb,
.nr-footer__demo,
.nr-footer__links {
	color: var(--nr-muted);
}

.nr-footer__blurb {
	max-width: 24rem;
	margin: 0;
}

.nr-footer__demo {
	margin: 0.9rem 0 0;
}

.nr-footer__demo strong {
	color: var(--nr-ink);
}

.nr-footer__links {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nr-footer__bottom {
	border-top: 1px solid var(--nr-line);
	color: var(--nr-muted);
}

.nr-footer__bottom p {
	margin: 0;
}

/* The mailing-list box (it saves nothing: see inc/home.php) */
.nr-signup-box {
	margin-top: 1rem;
}

.nr-signup {
	display: flex;
	gap: 0.6rem;
}

.nr-signup__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 2.9rem;
	padding: 0 0.9rem;
	border: 1px solid #c8c8c8;
	border-radius: 0;
	background: var(--nr-white);
	color: var(--nr-ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
}

.nr-signup__input::placeholder {
	color: var(--nr-muted);
}

.nr-signup__button {
	flex: none;
	min-height: 2.9rem;
	padding: 0 1.1rem;
	border: 1px solid var(--nr-ink);
	border-radius: 0;
	background: var(--nr-ink);
	color: #fff;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s var(--nr-ease), border-color 0.2s var(--nr-ease);
}

.nr-signup__button:hover {
	border-color: var(--nr-carrot-dark);
	background: var(--nr-carrot-dark);
}

.nr-signup__note {
	margin: 0.6rem 0 0;
	color: var(--nr-muted);
	font-size: 0.8125rem;
}

@media (max-width: 420px) {
	.nr-signup {
		flex-direction: column;
	}
}

/* -------------------------------------------------------------------------
   The North Red look: squared corners, uppercase headings, black, white and
   one red. These rules come last so they win over the base styles above.
   ------------------------------------------------------------------------- */

/* Announcement bar */
.nr-announcement p {
	max-width: none !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 699px) {
	.nr-announcement__extra {
		display: none;
	}
}

.nr-announcement strong {
	display: inline-block;
	margin-right: 0.45em;
	padding: 0.1em 0.5em;
	background: var(--nr-carrot);
	color: #fff;
	font-weight: 700;
}

/* Header: white, and it stays at the top while the page scrolls. The header
   template part is two bars (announcement, then this one); display: contents
   lets this bar stick for the whole page while the announcement scrolls away. */
.wp-site-blocks > header.wp-block-template-part {
	display: contents;
}

.nr-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 30;
	border-bottom: 1px solid rgba(28, 27, 27, 0.08);
}

/* The frosted background is a layer of its own: a blur on the header itself
   would trap the phone menu (a full-screen overlay) inside the header. */
.nr-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.nr-header__row .nr-nav {
	margin-left: auto;
}

/* The logo is the North Red box logo; the site name stays in the page for
   screen readers. */
.nr-logo {
	flex: none;
	line-height: 0;
}

.nr-logo a {
	display: block;
	width: clamp(8.5rem, 16vw, 11.5rem);
	aspect-ratio: 449.8 / 110.6;
	overflow: hidden;
	background: url(assets/img/logo.svg) left center / contain no-repeat;
	color: transparent;
	font-size: 1rem;
	text-indent: -200vw;
	white-space: nowrap;
}

.nr-logo a:hover {
	color: transparent;
}

.nr-coming-soon .nr-logo a {
	width: 12rem;
}

.nr-header__tools .wc-block-mini-cart__button {
	padding: 0.45rem;
}

.wp-block-navigation.nr-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--nr-white);
}

.nr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0.6rem;
	font-size: 1.25rem;
	font-weight: 700;
}

@media (max-width: 599px) {
	/* Hamburger on the left, logo in the middle, cart on the right. */
	.nr-header__row .nr-nav {
		margin-left: 0;
	}

	.nr-header__row .nr-logo {
		display: flex;
		flex: 1 1 auto;
		justify-content: center;
		min-width: 0;
	}

	.nr-logo a {
		width: 8.25rem;
		background-position: center;
	}
}

/* Text */
h1,
h2,
h3 {
	text-wrap: balance;
}

.nr-page .wp-block-post-title,
.nr-cart .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.nr-page .wp-block-post-content :where(h2) {
	font-size: var(--wp--preset--font-size--large);
}

/* Questions in the FAQ read better in ordinary case. */
.nr-page .wp-block-details summary {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* Product grids */
.wc-block-product .wc-block-components-product-image,
.wc-block-product .wp-block-woocommerce-product-image {
	border: 1px solid var(--nr-line);
	background: var(--nr-panel);
}

.wc-block-product .wp-block-post-title {
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
}

.nr-shop .wp-block-query-title {
	margin-bottom: 0.5rem;
}

/* Product page */
.nr-product .wc-block-product-gallery-large-image {
	border: 1px solid var(--nr-line);
	background: var(--nr-panel);
}

.nr-product__summary .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
}

.nr-eyebrow a,
.nr-product__summary .nr-eyebrow {
	color: var(--nr-muted);
}

.nr-pill {
	min-width: 3.6rem;
	letter-spacing: 0.06em;
}

.nr-product form.cart table.variations th.label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nr-product form.cart .single_add_to_cart_button {
	font-size: 0.8125rem;
}

.woocommerce-tabs ul.tabs li a {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.woocommerce-tabs .woocommerce-Tabs-panel h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--small);
}

/* Cart, checkout, mini cart */
.wc-block-mini-cart__drawer .components-modal__content,
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	background: var(--nr-white);
}

.wc-block-mini-cart__title,
.wc-block-cart__totals-title,
.wc-block-components-title.wc-block-components-title {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wc-block-components-checkout-step__title.wc-block-components-title {
	font-size: 1rem;
}

.wc-block-components-button:not(.is-link) {
	border-radius: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wc-block-components-button:not(.is-link).contained {
	min-height: 3.4rem;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-totals-coupon__input input {
	border-radius: 0 !important;
}

.wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block {
	background: var(--nr-white);
}

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

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option,
.wc-block-checkout__payment-method .wc-block-components-radio-control {
	border-radius: 0 !important;
}

.wc-block-mini-cart__badge {
	border-radius: 999px;
}

/* Product page fold-outs: a little room around each row. */
.nr-product__facts details {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--nr-line);
}

/* A product with one tab (the description) needs no tab bar: show its
   heading as a small label instead. */
.woocommerce-tabs ul.tabs:has(> li:only-child) {
	display: none;
}

.woocommerce-tabs ul.tabs:has(> li:only-child) ~ .woocommerce-Tabs-panel > h2:first-child {
	display: block;
	margin: 0 0 1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--nr-line);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
}

/* Tables on content pages (size guide, shipping rates): rules, not boxes. */
.nr-table table th,
.nr-table table td {
	padding: 0.8rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--nr-line);
	text-align: left;
}

.nr-table table thead {
	border-bottom: 2px solid var(--nr-ink);
}

.nr-table table thead th {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

@media (max-width: 599px) {
	.nr-table table th,
	.nr-table table td {
		padding: 0.7rem 0.4rem;
	}
}

/* The checkout header says "Demo checkout" in plain words, with no padlock. */
.nr-secure::before {
	display: none;
}

/* WooCommerce's own boxes, squared to match. */
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector input,
.wc-block-components-order-summary,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-totals-wrapper,
.wc-block-order-confirmation-totals table,
.wc-block-order-confirmation-shipping-address,
.wc-block-order-confirmation-billing-address,
.wc-block-components-product-badge,
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	border-radius: 0 !important;
}

/* The phone menu lists its links from the left. */
.nr-nav .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
}
