/*
Theme Name: Nesbytek Store
Theme URI: https://nesbytek.ir
Author: Nesbytek
Author URI: https://nesbytek.ir
Description: A simple, fast and beautiful WooCommerce block theme for any kind of product. Right-to-left ready, with Persian and English included. Edit everything in the Site Editor: no code needed.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nesbytek-store
Tags: e-commerce, block-patterns, block-styles, custom-colors, editor-style, full-site-editing, rtl-language-support, translation-ready, wide-blocks
*/

/*
 * Most styling lives in theme.json. This file only holds what theme.json cannot express.
 * Logical properties only (margin-inline, padding-inline, inset-inline, text-align: start), so the
 * same rules work left-to-right and right-to-left without a separate rtl.css.
 */

:root {
	/* Shapes follow theme.json (settings.custom.radius), so a style variation changes them everywhere. */
	--ns-radius: var(--wp--custom--radius--lg, 1.25rem);
	--ns-radius-md: var(--wp--custom--radius--md, 0.875rem);
	--ns-radius-sm: var(--wp--custom--radius--sm, 0.5rem);
	--ns-shadow: var(--wp--preset--shadow--card);
	--ns-topbar-height: 2.5rem;
}

/*
 * Typography. The sizes are in theme.json (a 1.25 scale on a 16px base, the usual web standard); two details belong here:
 * Persian needs a little more line height than Latin, and letter-spacing must never be applied to Persian because it
 * breaks the joining of the letters.
 */
html:lang(fa) body,
html:lang(fa) .wp-block-heading {
	line-height: 1.85;
}

html:lang(fa) .wp-block-heading {
	line-height: 1.5;
}

html:lang(fa) * {
	letter-spacing: 0 !important;
}

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

p {
	text-wrap: pretty;
}

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

/* Keyboard focus is always visible. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: var(--ns-radius-sm);
}

.screen-reader-text:focus {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	padding: 0.75rem 1.25rem;
	z-index: 100000;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
}

/* Language switcher (shown only when the site has two or more languages) */
.ns-lang ul {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0.2rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
}

.ns-lang a {
	display: block;
	padding: 0.2rem 0.75rem;
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
}

.ns-lang a[aria-current="true"] {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.ns-header .wp-block-shortcode {
	margin: 0;
}

/* Header: a slim announcement bar that scrolls away, and the main bar that stays on top */
.ns-header {
	position: sticky;
	/* The top bar is this tall; sticking this far up lets it scroll out of sight while the main bar stays. */
	inset-block-start: calc(var(--ns-topbar-height) * -1);
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.admin-bar .ns-header {
	inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) - var(--ns-topbar-height));
}

.ns-topbar {
	min-height: var(--ns-topbar-height);
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
}

.ns-topbar > .wp-block-group {
	width: 100%;
}

.ns-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	white-space: nowrap;
}

.ns-topbar__item .ns-icon {
	width: 1.125rem;
	height: 1.125rem;
}

@media (max-width: 781px) {
	/* On a phone only the first message is shown. */
	.ns-topbar__item:not(:first-child) {
		display: none;
	}
}

.ns-header .wp-block-site-title {
	margin: 0;
}

.ns-logo-mark {
	display: inline-flex;
	color: var(--wp--preset--color--primary);
}

.ns-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.4rem;
	border: 0;
}

.ns-header .wc-block-mini-cart__button,
.ns-header .wc-block-customer-account a {
	color: var(--wp--preset--color--contrast);
}

/* Icons from nesbytek_store_icon() */
.ns-icon {
	flex: none;
	vertical-align: middle;
}

/* The arrow points the other way in right-to-left. */
:dir(rtl) .ns-icon--arrow {
	transform: scaleX(-1);
}

.ns-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--primary);
}

/* Cards used by patterns */
.ns-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ns-radius);
	box-shadow: var(--ns-shadow);
	height: 100%;
}

/* A section title with a small label above and an optional link on the other side */
.ns-section-head {
	align-items: end;
}

.ns-eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.ns-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	text-decoration: none;
}

.ns-link-arrow:hover {
	text-decoration: underline;
}

.ns-hero {
	background:
		radial-gradient(52rem 26rem at 90% -10%, color-mix(in srgb, var(--wp--preset--color--secondary) 28%, transparent), transparent 62%),
		radial-gradient(44rem 22rem at 4% 12%, color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent), transparent 60%),
		var(--wp--preset--color--base);
}

.ns-hero .wp-block-group.alignwide > :not(.alignleft):not(.alignright):not(.alignfull) {
	/* Start-aligned in both directions: left in English, right in Persian. */
	margin-inline-start: 0 !important;
	margin-inline-end: auto !important;
}

/* Buttons: one consistent shape, in the content and in WooCommerce */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* Product grids (product collection block) */
/* The gap must equal the one WooCommerce subtracts when it sizes the columns (1.25em), or the last column wraps. */
.wc-block-product-template,
.wp-block-woocommerce-product-template {
	gap: 1.25em;
}

.wc-block-product-template > li,
.wp-block-woocommerce-product-template > li {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ns-radius);
	padding: 0.75rem 0.75rem 1rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.wc-block-product-template > li:hover,
.wp-block-woocommerce-product-template > li:hover {
	box-shadow: var(--wp--preset--shadow--lift);
	transform: translateY(-3px);
}

.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: var(--ns-radius-md);
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: var(--wp--preset--color--surface-muted);
}

/* Product names: readable and compact, two lines at most */
.wc-block-product-template .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	line-height: 1.4;
	margin-block: 0.5rem 0.25rem;
}

.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--medium);
}

.wc-block-components-product-price del,
.wp-block-woocommerce-product-price del {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

.wc-block-components-product-price ins,
.wp-block-woocommerce-product-price ins {
	text-decoration: none;
}

.wp-block-woocommerce-product-button .wp-block-button__link,
.wc-block-components-product-button .wp-block-button__link {
	padding: 0.55rem 1.1rem;
	font-size: var(--wp--preset--font-size--small);
}

.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	padding-inline: 0.75rem;
}

/* Category list: friendly pills instead of bullets */
.wc-block-product-categories-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	padding: 0;
	margin: 0;
}

.wc-block-product-categories-list-item {
	margin: 0;
}

.wc-block-product-categories-list-item a {
	display: inline-block;
	padding: 0.55rem 1.25rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.wc-block-product-categories-list-item a:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

/* The "Sale!" badge on the product page: the same pill as in the product grids, inside the image */
.wp-block-woocommerce-product-image-gallery,
.woocommerce div.product div.images {
	position: relative;
}

.woocommerce span.onsale,
.woocommerce .wp-block-woocommerce-product-image-gallery span.onsale.onsale,
span.onsale {
	inset: 0.75rem auto auto auto;
	inset-inline-start: 0.75rem;
	min-width: 0;
	min-height: 0;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1.6;
	z-index: 2;
}

/* Product tabs (the selectors match WooCommerce's own, which are more specific than a plain class) */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--40);
	padding: 0;
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--ns-radius-sm) var(--ns-radius-sm) 0 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.7rem 1.25rem;
	color: var(--wp--preset--color--muted);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--wp--preset--color--surface-muted);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--primary);
}

/*
 * WooCommerce markup we have to adjust for accessibility:
 * - the closed mini cart drawer is marked aria-hidden but its links stay focusable, so hide it for real until it opens;
 * - the "show password" button must be at least 24 by 24 px (WCAG 2.2 target size).
 */
.wc-block-mini-cart__drawer[aria-hidden="true"] {
	visibility: hidden;
}

.show-password-input {
	min-width: 2rem;
	min-height: 2rem;
}

/* Notices, forms and tables of WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--ns-radius-sm);
	border: 1px solid var(--wp--preset--color--border);
	border-inline-start-width: 4px;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--surface);
	list-style: none;
}

.woocommerce-error {
	border-inline-start-color: #b91c1c;
}

.woocommerce-message {
	border-inline-start-color: var(--wp--preset--color--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ns-radius-sm);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	padding: 0.7rem 0.9rem;
	font-family: inherit;
	max-width: 100%;
}

/* Numbers and codes stay left-to-right inside right-to-left text */
.ns-ltr,
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="number"] {
	direction: ltr;
	text-align: start;
}

/* Footer */
.ns-footer {
	background: var(--wp--preset--color--footer-bg);
	color: var(--wp--preset--color--footer-text);
}

.ns-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ns-footer li + li {
	margin-block-start: 0.5rem;
}

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

.ns-footer a:hover {
	text-decoration: underline;
}

.ns-footer h3 {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	margin-block-end: 0.75rem;
}

.ns-footer .has-muted-color,
.ns-footer__note {
	color: color-mix(in srgb, var(--wp--preset--color--footer-text) 78%, transparent) !important;
}

.ns-footer h3,
.ns-footer .wp-block-site-title,
.ns-footer .wp-block-site-title a {
	color: inherit;
}

.ns-pay-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ns-pay-list li {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--footer-text) 25%, transparent);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--small);
}


/* ---------------------------------------------------------------------------------------------
 * Landing sections (the "Boutique" home page). Colors, radii and fonts all come from theme.json,
 * so a style variation restyles them without touching this file.
 * ------------------------------------------------------------------------------------------- */

.ns-accent {
	font-family: var(--wp--preset--font-family--fraunces);
	font-style: italic;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.ns-hero-split {
	background:
		radial-gradient(40rem 22rem at 100% 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 22%, transparent), transparent 70%),
		var(--wp--preset--color--base);
	overflow: clip;
}

.ns-hero-split h1 {
	margin-block: 0.5rem 1rem;
	line-height: 1.15;
}

.ns-hero-split__art img {
	display: block;
	width: 100%;
	max-width: 30rem;
	height: auto;
	margin-inline: auto;
	border-radius: 0;
}

.ns-promises {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.5rem;
	margin: 2rem 0 0;
	padding: 0;
}

.ns-promises li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--wp--preset--color--primary);
}

.ns-promises span {
	display: flex;
	flex-direction: column;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.ns-promises strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* Round category pictures */
.ns-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 1.5rem;
}

.ns-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.ns-cat img {
	width: min(100%, 10rem);
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-cat:hover img {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--lift);
}

.ns-cat:hover {
	color: var(--wp--preset--color--primary);
}

/* Promo banner */
.ns-promo {
	border-radius: var(--ns-radius);
	overflow: hidden;
	margin-block: 0;
}

.ns-promo__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ns-promo__art {
	position: relative;
	display: flex;
	align-items: stretch;
}

.ns-promo__art .wp-block-image {
	margin: 0;
	width: 100%;
}

.ns-promo__art img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	object-fit: cover;
	border-radius: 0;
}

.ns-promo__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	opacity: 0.9;
}

.ns-promo__text .wp-block-heading {
	margin-block: 0 0.5rem;
}

.ns-promo__badge {
	position: absolute;
	inset-block-end: 1.5rem;
	inset-inline-end: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 6.5rem;
	height: 6.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast);
	line-height: 1.1;
	text-align: center;
	box-shadow: var(--wp--preset--shadow--lift);
}

.ns-promo__badge strong {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.75rem;
}

.ns-promo__badge span {
	font-size: 0.75rem;
	font-weight: 700;
}

@media (max-width: 781px) {
	.ns-promo__art img {
		min-height: 12rem;
		max-height: 16rem;
	}
}

/* New arrivals: quiet cards, no buttons */
.ns-arrivals .wp-block-woocommerce-product-template > li {
	padding: 0.5rem 0.5rem 0.75rem;
}

/* Newsletter */
.ns-newsletter {
	border-radius: var(--ns-radius);
}

.ns-newsletter .wp-block-heading {
	margin-block: 0.75rem 0.25rem;
}

.ns-icon-badge--solid {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

.ns-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ns-newsletter__form input {
	flex: 1 1 14rem;
	min-width: 0;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	padding: 0.75rem 1.25rem;
	font: inherit;
}

.ns-newsletter__form button {
	border: 0;
	cursor: pointer;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--primary);
	color: #fff;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-weight: 600;
}

.ns-newsletter__form button:hover {
	background: var(--wp--preset--color--primary-strong);
}

/* Trust row */
.ns-trust {
	border-block-start: 1px solid var(--wp--preset--color--border);
}

.ns-trust__item {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
}

.ns-trust__item strong {
	display: block;
	font-weight: 600;
}

.ns-trust__item div > span {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}


/* ---------------------------------------------------------------------------------------------
 * Landing sections of the "Modern" home page (hero card, feature strip, tiles, band, steps).
 * ------------------------------------------------------------------------------------------- */

.ns-modern-hero {
	overflow: clip;
}

.ns-modern-hero .wp-block-cover__inner-container {
	width: 100%;
}

/* The picture has its plant on the start side and the card sits on the end side; mirror it for right-to-left. */
:dir(rtl) .ns-modern-hero .wp-block-cover__image-background {
	transform: scaleX(-1);
}

.ns-hero-card {
	/* The cover block makes its text white; the card is pale, so use the normal text color. */
	color: var(--wp--preset--color--contrast);
	max-width: 28rem;
	border-radius: var(--ns-radius);
	margin-inline: 0;
}

.ns-hero-card h1 {
	margin-block: 0.25rem 0.75rem;
}

.ns-strip__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	color: var(--wp--preset--color--primary);
}

.ns-strip__item strong {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.ns-strip__item span {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.ns-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-block-start: 2rem;
}

.ns-tile {
	display: block;
	overflow: hidden;
	border-radius: var(--ns-radius);
	background: var(--wp--preset--color--surface-muted);
}

.ns-tile img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ns-tile:hover img {
	transform: scale(1.04);
}

@media (max-width: 781px) {
	.ns-tiles {
		grid-template-columns: 1fr;
	}

	.ns-tile img {
		aspect-ratio: 4 / 3;
	}
}

.ns-band__art img {
	display: block;
	width: 100%;
	max-width: 28rem;
	height: auto;
	margin-inline: auto;
	border-radius: var(--ns-radius);
}

.ns-range {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-block-start: 2rem;
}

.ns-range__item {
	display: block;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.ns-range__item img {
	display: block;
	width: 100%;
	height: auto;
	margin-block-end: 0.75rem;
	border-radius: var(--ns-radius);
	transition: transform 0.3s ease;
}

.ns-range__item:hover img {
	transform: translateY(-3px);
}

.ns-range__item:hover {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
	.ns-range {
		grid-template-columns: 1fr;
	}
}

.ns-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 2rem 0 0;
	padding: 0;
}

.ns-steps__item h3 {
	margin: 1.25rem 0 0.25rem;
	font-size: var(--wp--preset--font-size--large);
	text-align: center;
}

.ns-steps__item p {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.ns-steps__art {
	position: relative;
}

.ns-steps__art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ns-radius);
}

.ns-steps__num {
	position: absolute;
	inset-block-end: -1rem;
	inset-inline-start: 50%;
	translate: -50% 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
}

:dir(rtl) .ns-steps__num {
	translate: 50% 0;
}

@media (max-width: 781px) {
	.ns-steps {
		grid-template-columns: 1fr;
	}
}

.ns-mailing {
	text-align: center;
}

.ns-newsletter__form--center {
	max-width: 32rem;
	margin: 1.5rem auto 0;
}

/* Small screens */
@media (max-width: 781px) {
	.ns-hero .wp-block-buttons {
		justify-content: flex-start;
	}
}
