/*
 * Tezhano — the store's own parts, on top of app.css (and commerce.css): the shop's lists and
 * filters, the product page and its photos, the bag, the menu drawer and the mega-menu, the
 * customer chat, the club, and the structure of the home page's sections.
 *
 * How it looks is decided in skin.css, which loads after this file: the palette (tile, steel, ink,
 * the flame blue for what can be acted on, an ember for what is urgent), the type and the radii
 * all come from there. The chat and the club are written against those names directly.
 */

/* Nothing may widen the page sideways (full-bleed parts, sliders). */
body {
	overflow-x: clip;
}

/* Prices read «۴٬۳۵۰٬۰۰۰ تومان»: WooCommerce's <bdi> takes its direction from the digits alone
   (the currency's own dir="auto" is skipped), falls back to left-to-right and put the currency
   first on the product page and in the bag. */
.woocommerce-Price-amount > bdi {
	direction: rtl;
	unicode-bidi: isolate;
}

/* Type and sections: lighter, calmer headings everywhere. --------------------------------- */

.section {
	padding-top: clamp(64px, 8vw, 128px);
}

.section-head {
	margin-bottom: clamp(24px, 3vw, 40px);
}

.section-title {
	font-size: clamp(28px, 3vw, 46px);
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.section-title em {
	color: var(--plum);
	font-style: normal;
}

.eyebrow {
	letter-spacing: 0.01em;
}

.shop-hero {
	padding-block: clamp(14px, 2vw, 26px) clamp(12px, 1.6vw, 20px);
}

.shop-hero__row {
	justify-content: flex-start;
	gap: 4px 14px;
	margin-top: 10px;
}

.shop-hero__title {
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 300;
	line-height: 1.3;
}

.shop-hero__count {
	font-size: 14px;
}

.shop-hero .term-description,
.shop-hero .page-description {
	max-width: 62ch;
	margin-top: 6px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.95;
}

.shop-hero .term-description p {
	margin: 0;
}

.blog-hero__title {
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 300;
}

/* Header: five items beside the centred logo; under 1200px the menu button. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.primary-nav {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
	}
}

.primary-nav__list {
	gap: clamp(14px, 1.7vw, 30px);
}

/* A page's own picture (template-parts/info/page.php): a soft rectangle. */
.arch {
	clip-path: none;
	border-radius: var(--r-panel);
}

/* What appears after the page has loaded (a sheet, a note, a line under the price) rises into place. */
@keyframes rise-in {
	from {
		opacity: 0;
		translate: 0 16px;
	}
}

/* Tabbed sliders (the home page's picks). -------------------------------------------------- */

.slider-tabs {
	display: flex;
	gap: clamp(18px, 2.6vw, 36px);
	margin: 0 0 clamp(22px, 3vw, 34px);
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
}

.slider-tabs::-webkit-scrollbar {
	display: none;
}

.slider-tab {
	position: relative;
	flex: none;
	padding: 0 0 14px;
	border: 0;
	background: none;
	color: var(--muted);
	font: inherit;
	font-size: 15px;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s;
}

.slider-tab::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: -1px;
	height: 2px;
	background: var(--ink);
	scale: 0 1;
	transition: scale 0.35s var(--ease);
}

.slider-tab[aria-selected="true"] {
	color: var(--ink);
	font-weight: 600;
}

.slider-tab[aria-selected="true"]::after {
	scale: 1 1;
}

@media (hover: hover) {
	.slider-tab:hover {
		color: var(--ink);
	}
}

.js .slider-panel[data-hidden] {
	display: none;
}

.no-js .slider-panel + .slider-panel {
	margin-top: 48px;
}

.slider-panel__more {
	margin-top: clamp(16px, 2vw, 24px);
}

.product-slider {
	margin-inline: calc(-1 * var(--gutter));
}

.products.product-slider__track {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: clamp(210px, 22.6%, 320px);
	gap: clamp(14px, 1.6vw, 24px);
	padding: 4px var(--gutter) 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.products.product-slider__track::-webkit-scrollbar {
	display: none;
}

.product-slider__track > li {
	scroll-snap-align: start;
}

@media (max-width: 760px) {
	.products.product-slider__track {
		grid-auto-columns: 64%;
	}
}

.slider-arrows {
	display: flex;
	gap: 8px;
}

.slider-arrow {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, opacity 0.2s;
}

.slider-arrow .icon {
	width: 18px;
	height: 18px;
}

[dir="rtl"] .slider-arrow[data-slider-prev] .icon {
	transform: scaleX(-1);
}

@media (hover: hover) {
	.slider-arrow:hover:not(:disabled, [aria-disabled="true"]) {
		border-color: var(--ink);
		background: var(--ink);
		color: var(--paper);
	}
}

.slider-arrow:disabled,
.slider-arrow[aria-disabled="true"] {
	opacity: 0.3;
	cursor: default;
}

@media (max-width: 760px) {
	.slider-arrows {
		display: none;
	}
}

/* Shop: categories as a hierarchy. ---------------------------------------------------------- */

.cat-nav {
	margin: 0 0 clamp(14px, 2vw, 26px);
}

/* position: the counts' hidden labels (absolutely placed) must be held by the rail; anchored to
   the page they sat far to the left and widened it, so Android opened the shop scrolled into
   blank space. */
.cat-rail {
	position: relative;
	display: flex;
	gap: clamp(12px, 1.6vw, 22px);
	margin: 0 calc(-1 * var(--gutter));
	padding: 8px var(--gutter) 6px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}

.cat-rail::-webkit-scrollbar {
	display: none;
}

.cat-rail > li {
	flex: none;
	scroll-snap-align: start;
}

.cat-rail__item {
	display: grid;
	justify-items: center;
	gap: 2px;
	width: 86px;
	text-align: center;
}

.cat-rail__media {
	display: block;
	width: 68px;
	height: 68px;
	margin-bottom: 6px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--paper-2);
	box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
	transition: box-shadow 0.3s var(--ease);
}

.cat-rail__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.6s var(--ease-out);
}

/* «همه»: the first four categories' photos as one quartered tile (a grid icon with fewer). */
.cat-rail__item--all .cat-rail__media {
	display: grid;
	place-items: center;
}

.cat-rail__media > .icon {
	width: 26px;
	height: 26px;
	color: var(--ink);
}

.cat-rail__item.is-active .cat-rail__media,
.cat-rail__item[aria-current="page"] .cat-rail__media {
	box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink);
}

@media (hover: hover) {
	.cat-rail__item:hover .cat-rail__media img {
		scale: 1.07;
	}
}

.cat-rail__name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

.cat-rail__item.is-active .cat-rail__name,
.cat-rail__item[aria-current="page"] .cat-rail__name {
	font-weight: 700;
}

.cat-rail__count {
	color: var(--muted);
	font-size: 11px;
}

/* Shop: the filters — a sidebar beside the list from 1024px, a sheet below that. ----------- */

.shop-layout {
	display: grid;
	grid-template-columns: 252px minmax(0, 1fr);
	align-items: start;
	gap: clamp(28px, 3vw, 52px);
	scroll-margin-top: calc(var(--header-h) + 12px);
}

/* A category's or brand's longer text below its products (inc/seo-fields.php): a readable column. */
.shop-bottom-text {
	max-width: 72ch;
	margin: 56px auto 8px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

/* The sidebar has no scroll box of its own (the wheel always scrolls the page): it stays under
   the header while it fits; a taller one moves with the page until its end shows (tezhano.js). */
.shop-sidebar {
	position: relative;
}

.js .shop-sidebar {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	will-change: translate;
}

.shop-results {
	position: relative;
	min-width: 0;
}

/* Three cards a row beside the sidebar; two with large photos. */
@media (min-width: 1024px) {
	.shop-layout .products:is(ul, ol) {
		--cols: 3;
	}
}

/* The form. */
.filters {
	display: grid;
}

.filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
}

.filters__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
}

.filters__clear {
	color: var(--muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.filters__clear[hidden] {
	display: none;
}

.facet {
	min-width: 0;
	margin: 0;
	padding: 14px 0 12px;
	border: 0;
	border-top: 1px solid var(--line);
}

/* A floated legend sits like a heading instead of breaking the fieldset's top line. */
.facet__title {
	float: inline-start;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

.facet__title + * {
	clear: both;
}

.facet__list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.facet__option,
.facet__switch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin-inline: -6px;
	padding: 4px 6px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.facet__option:not(.is-disabled):hover,
	.facet__switch:not(.is-disabled):hover {
		background: var(--paper-2);
	}
}

.facet__option.is-disabled,
.facet__switch.is-disabled {
	cursor: default;
	opacity: 0.42;
}

/* The real input stays in the page (keyboard, screen readers); the mark is what shows. */
.facet__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.facet__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid var(--line-field);
	border-radius: 5px;
	background: var(--card);
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.facet__mark--radio {
	border-radius: 50%;
}

.facet__input:checked + .facet__mark {
	border-color: var(--ink);
	background: var(--ink);
}

.facet__input:checked + .facet__mark--checkbox::after {
	content: "";
	width: 9px;
	height: 5px;
	border: solid var(--paper);
	border-width: 0 0 2px 2px;
	rotate: -45deg;
	translate: 0 -1px;
}

.facet__input:checked + .facet__mark--radio {
	background: var(--card);
}

.facet__input:checked + .facet__mark--radio::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ink);
}

.facet__input:focus-visible + .facet__mark,
.facet__input:focus-visible ~ .facet__track {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.facet__label {
	flex: 1;
	min-width: 0;
	line-height: 1.5;
}

.facet__label small {
	margin-inline-start: 4px;
	color: var(--muted);
	font-size: 12px;
}

.facet__count {
	flex: none;
	min-width: 2.2em;
	color: var(--muted);
	font-size: 12px;
	text-align: end;
}

.facet__more > summary {
	display: inline-flex;
	padding: 8px 0 2px;
	color: var(--plum);
	font-size: 13px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.facet__more > summary::-webkit-details-marker {
	display: none;
}

.facet__more-hide,
.facet__more[open] .facet__more-show {
	display: none;
}

.facet__more[open] .facet__more-hide {
	display: inline;
}

.facet__more[open] > summary {
	padding-bottom: 6px;
}

/* «Only products in stock»: a switch. */
.facet--stock {
	padding-block: 12px;
}

.facet__switch .facet__label {
	font-weight: 500;
}

.facet__track {
	position: relative;
	flex: none;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: rgb(23 32 43 / 0.55);
	transition: background-color 0.2s var(--ease);
}

.facet__track::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
	transition: inset-inline-start 0.2s var(--ease);
}

.facet__input:checked ~ .facet__track {
	background: var(--ink);
}

.facet__input:checked ~ .facet__track::after {
	inset-inline-start: 19px;
}

.filters__actions {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.filters__actions .button {
	min-height: 50px;
	padding-inline: 20px;
}

.filters__apply[disabled] {
	opacity: 0.5;
	cursor: default;
}

.filters__apply.is-loading {
	opacity: 0.75;
}

/* Beside the list the choices apply as they are made: no buttons. */
.js .shop-sidebar .filters__actions {
	display: none;
}

/* In the sheet: its own title; the buttons stay at the bottom. */
.filters-drawer .filters__head {
	display: none;
}

.filters-drawer .facet:first-of-type {
	border-top: 0;
}

.filters-drawer .facet__option,
.filters-drawer .facet__switch {
	min-height: 46px;
}

.filters-drawer .drawer__body {
	padding-bottom: 0;
}

.filters-drawer .filters__actions {
	position: sticky;
	bottom: 0;
	z-index: 1;
	margin-inline: -24px;
	padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
	background: var(--paper);
}

/* The toolbar: the count, the order and the grid size; on narrower screens «Filters» first. */
.shop-toolbar--tezhano {
	margin-bottom: 18px;
}

.shop-toolbar__count {
	min-width: 0;
}

.filters-button,
.filters-fab {
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.filters-button {
	display: none;
}

.filters-button .icon,
.filters-fab .icon {
	width: 18px;
	height: 18px;
}

.filters-button__badge {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-size: 12px;
	line-height: 1;
}

.filters-button__badge:empty {
	display: none;
}

/* Further down the list on a phone, «Filters» floats above the tab bar. */
.filters-fab {
	position: fixed;
	z-index: 44;
	bottom: calc(24px + env(safe-area-inset-bottom));
	left: 50%;
	display: inline-flex;
	border-color: var(--ink);
	background: var(--ink);
	color: var(--paper);
	box-shadow: 0 16px 34px -14px rgb(23 32 43 / 0.6);
	translate: -50% 0;
	animation: rise-in 0.4s var(--ease-out);
}

.filters-fab .filters-button__badge {
	background: var(--paper);
	color: var(--ink);
}

.filters-fab[hidden] {
	display: none;
}

@media (max-width: 900px) {
	.filters-fab {
		bottom: calc(10px + 66px + 14px + env(safe-area-inset-bottom));
	}
}

.shop-chips:empty {
	display: none;
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.chip--remove {
	height: 34px;
	border-color: transparent;
	background: var(--plum-tint);
	color: var(--plum);
	font-size: 13px;
	white-space: nowrap;
}

.chip--remove .icon {
	width: 14px;
	height: 14px;
}

.active-filters__clear {
	padding: 0 6px;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* While a new list is on its way: the old one fades, a thin line runs above it. */
.shop-list {
	transition: opacity 0.25s var(--ease);
}

[data-shop].is-loading .shop-list {
	opacity: 0.45;
	pointer-events: none;
}

[data-shop].is-loading .shop-results::before {
	content: "";
	position: absolute;
	top: -2px;
	inset-inline: 0;
	z-index: 2;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--plum), transparent) no-repeat;
	background-size: 40% 100%;
	animation: shop-loading 1s linear infinite;
}

@keyframes shop-loading {
	from {
		background-position: -40% 0;
	}

	to {
		background-position: 140% 0;
	}
}

@media (max-width: 1023px) {
	.shop-layout {
		display: block;
	}

	.js .shop-sidebar {
		display: none;
	}

	.no-js .shop-sidebar {
		position: static;
		max-height: none;
		margin-bottom: 24px;
	}

	.js .filters-button {
		display: inline-flex;
		flex: none;
		padding-inline: 14px;
	}

	/* «Filters», the order and the grid size in one row. */
	.shop-toolbar--tezhano {
		flex-wrap: nowrap;
		gap: 8px;
	}

	.shop-toolbar__count {
		display: none;
	}

	.shop-toolbar--tezhano .shop-toolbar__actions {
		flex: 1;
		justify-content: flex-end;
		gap: 8px;
		width: auto;
		min-width: 0;
	}

	.shop-toolbar__order {
		flex: 0 1 220px;
		min-width: 0;
	}

	.shop-toolbar__order :is(.sort-form, .select-wrap, select) {
		width: 100%;
		min-width: 0;
	}

	.shop-toolbar__order select {
		min-height: 44px;
		text-overflow: ellipsis;
	}

	.shop-toolbar--tezhano .grid-toggle {
		flex: none;
	}

	.shop-toolbar--tezhano .grid-toggle button {
		width: 36px;
		height: 36px;
	}

	/* On a phone the chips scroll sideways in one row. */
	.active-filters {
		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}
}

@media (min-width: 1024px) {
	.filters-fab {
		display: none !important;
	}
}

@media (max-width: 600px) {
	.shop-toolbar--tezhano .sort-form__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.filters-fab,
	[data-shop].is-loading .shop-results::before {
		animation: none;
	}
}

/* Blog: a few stories side by side; more get the wide first one. ------------------------- */

@media (min-width: 600px) {
	.blog-grid--few {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-width: 1040px;
		margin-inline: auto;
	}
}

/* Product page: the spec line right under the name (on phones too, where the theme moves
   everything it doesn't know after the buy button), the code as a quiet tag beside it. */
.product-spec__code {
	padding: 0 10px;
	border-radius: 999px;
	background: var(--paper-2);
	font-size: 12px;
	line-height: 2;
	white-space: nowrap;
}

@media (max-width: 899px) {
	.product-summary > .product-spec {
		order: 0;
		gap: 8px 10px;
		margin: 2px 0 14px;
		font-size: 14.5px;
		line-height: 1.9;
	}
}

/* Search suggestions: the spec under the name, as on the cards. */
.search-hit__spec {
	display: block;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
}

/* An out-of-stock product's page: the closest products that can be bought, under the price. */
.similar-now {
	margin: 4px 0 22px;
	padding: 18px;
	border-radius: var(--r-card);
	background: var(--paper-2);
}

.similar-now__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}

.similar-now__text {
	margin: 2px 0 12px;
	color: var(--muted);
	font-size: 13px;
}

.similar-now__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.similar-now__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 12px;
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow 0.25s var(--ease);
}

@media (hover: hover) {
	.similar-now__item:hover {
		box-shadow: var(--shadow);
	}
}

.similar-now__media img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
}

.similar-now__body {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.similar-now__name {
	font-size: 14px;
	font-weight: 500;
}

.similar-now__spec {
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.similar-now__price {
	font-size: 13px;
	font-weight: 600;
}

.similar-now__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 13px;
}

.similar-now__more .icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 899px) {
	.product-summary > .similar-now {
		order: 1;
	}
}

/* Product cards: a clean photo, the words under it. ----------------------------------------- */

.product-card__media {
	border-radius: var(--r-card);
}

/* «ناموجود», «اول برای اعضا»: a quiet line above the name instead of a badge on the photo, with how
   many are in stock at its other end (the product page's green dot). */
.product-card__tag {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2px 10px;
	margin: 0;
	color: var(--plum);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
}

.product-card__stock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--ink-2);
	font-weight: 500;
	white-space: nowrap;
}

.product-card__stock::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--success);
}

.product-card__tag--off {
	color: var(--muted);
}

.product-card__body {
	gap: 2px;
	padding-top: 12px;
}

.product-card__title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.product-card__spec {
	display: -webkit-box;
	margin: 0 0 4px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

.product-card__price {
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
}

/* Out-of-stock products stay in the list (after the ones that can be bought) but step back. */
.product-card.outofstock .product-card__media {
	opacity: 0.7;
	filter: grayscale(0.35);
}

.product-card.outofstock .product-card__price {
	color: var(--muted);
	font-weight: 400;
}

/* The heart: on wide screens when the card is pointed at, focused or the product is saved. */
@media (hover: hover) {
	.card-wish {
		opacity: 0;
		translate: 0 -4px;
		transition: opacity 0.25s var(--ease), translate 0.35s var(--ease-out), background-color 0.2s, color 0.2s;
	}

	.product-card:hover .card-wish,
	.product-card:focus-within .card-wish,
	.card-wish.is-saved {
		opacity: 1;
		translate: 0 0;
	}
}

/* On phones: a smaller heart, and no «+» on the photo (products are chosen on their page). */
@media (hover: none) {
	.card-wish {
		top: 6px;
		inset-inline-end: 6px;
		width: 34px;
		height: 34px;
		background: rgb(251 249 246 / 0.85);
	}

	.card-wish .icon {
		width: 17px;
		height: 17px;
	}

	.card-plus {
		display: none !important;
	}
}

@media (max-width: 760px) {
	.product-card__title {
		font-size: 14px;
	}
}

/* Cards in a row: the body fills the card and the price sits at its bottom, so a row's prices
   line up whatever the names and specs above them. */
.product-card {
	display: flex;
	flex-direction: column;
}

.product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.product-card__body > .product-card__price {
	margin-top: auto;
}

/* «Show more» under the list; the page links stay below it. */
.shop-tail {
	display: grid;
	justify-items: center;
	gap: 22px;
	margin-top: clamp(40px, 4.4vw, 64px);
}

.load-more {
	display: grid;
	justify-items: center;
	gap: 8px;
}

.load-more__button {
	min-width: min(280px, 80vw);
}

.load-more__button.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.load-more__note {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 760px) {
	.cat-rail__item {
		width: 76px;
	}

	.cat-rail__media {
		width: 60px;
		height: 60px;
	}

	.shop-hero__title {
		font-size: 28px;
	}

	.shop-hero .term-description,
	.shop-hero .page-description {
		font-size: 14px;
	}
}

/* Product page: calmer type sizes. ---------------------------------------------------------- */

.product_title {
	font-size: clamp(26px, 1.6rem + 0.8vw, 36px);
	font-weight: 400;
	line-height: 1.45;
}

.related > h2,
.up-sells > h2,
.cross-sells > h2,
.recently-viewed > h2 {
	font-size: clamp(22px, 1.25rem + 0.9vw, 32px);
	font-weight: 300;
}

/* Photos full screen: on the page's own ground, the photo as large as it fits, zoom into the detail. */
.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--paper);
	color: var(--ink);
}

.lightbox[open] {
	display: block;
	animation: rise-in 0.35s var(--ease-out);
}

.lightbox::backdrop {
	background: var(--paper);
}

/* One cell the size of the stage, so the photo's max-height has something to measure against (on
   wide screens a tall photo ran past the stage and lost its bottom). */
.lightbox__stage {
	position: absolute;
	inset: 64px 0;
	display: grid;
	grid-template: 100% / 100%;
	place-items: center;
	overflow: hidden;
	touch-action: none;
}

.lightbox__image {
	max-width: min(100% - 32px, 1400px);
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	cursor: zoom-in;
	user-select: none;
	-webkit-user-drag: none;
	transform-origin: 0 0;
	transition: transform 0.35s var(--ease-out);
}

/* While fingers or the mouse move it, the photo follows without easing. */
.lightbox.is-moving .lightbox__image {
	transition: none;
}

.lightbox.is-zoomed .lightbox__image {
	cursor: zoom-out;
}

/* Said once, the first time the photos open: how to zoom. */
.lightbox__hint {
	position: absolute;
	z-index: 2;
	bottom: 76px;
	left: 50%;
	margin: 0;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgb(38 34 31 / 0.88);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	opacity: 0;
	translate: -50% 8px;
	pointer-events: none;
	transition: opacity 0.3s var(--ease), translate 0.4s var(--ease-out);
}

.lightbox__hint.is-shown {
	opacity: 1;
	translate: -50% 0;
}

.lightbox__count {
	position: absolute;
	bottom: 22px;
	inset-inline: 0;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	pointer-events: none;
}

.lightbox__button {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	background: var(--card);
	color: var(--ink);
	cursor: pointer;
	transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

@media (hover: hover) {
	.lightbox__button:hover {
		border-color: var(--ink);
	}
}

.lightbox__button .icon {
	width: 20px;
	height: 20px;
}

.lightbox__close {
	top: 10px;
	inset-inline-end: 12px;
}

.lightbox__prev,
.lightbox__next {
	top: 50%;
	translate: 0 -50%;
}

.lightbox__prev {
	inset-inline-start: 16px;
}

.lightbox__next {
	inset-inline-end: 16px;
}

.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next {
	display: none;
}

/* On phones the arrows sit at the bottom, beside the count, out of the photo's way; the photo
   takes the whole width. */
@media (max-width: 760px) {
	.lightbox__stage {
		inset: 56px 0 72px;
	}

	.lightbox__image {
		max-width: 100%;
	}

	.lightbox__hint {
		bottom: 84px;
	}

	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 12px;
		translate: none;
	}
}

.woocommerce-product-gallery__image > a {
	cursor: zoom-in;
}

/* Product details: the attributes and the code and category rows read as one list (the table's
   cells took the page text's padding and bold, the rows under it had neither): the label in muted
   text at the reading edge, the value beside it, a hairline between rows. */
.product-accordion__panel .woocommerce-product-attributes {
	margin: 0;
}

.product-accordion__panel .woocommerce-product-attributes :is(th, td) {
	padding: 11px 0;
	font-weight: 400;
}

.product-accordion__panel .woocommerce-product-attributes th {
	width: 38%;
	font-weight: 500;
}

.product-accordion__panel .product_meta {
	margin-top: 0;
}

/* Today's deals: the section's clock, the line under a product's price, the cards' tag. */
.deals__clock {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-variant-numeric: tabular-nums;
}

.deals__clock-time {
	direction: ltr;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.deals__clock-label {
	color: rgb(243 245 246 / 0.75);
	font-size: 13px;
}

.deal-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: -4px 0 14px;
	color: #b42318;
	font-size: 14px;
}

.deal-line__clock {
	color: var(--ink-2);
	font-size: 13px;
}

.deal-line__clock [data-deal-end] {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.deals__notify-row {
	margin: clamp(18px, 2.4vw, 28px) 0 0;
	text-align: center;
}

.deals__notify[hidden] {
	display: none;
}

.deals__notify .icon {
	width: 18px;
	height: 18px;
}

.deals.is-over,
.deal-line.is-over {
	opacity: 0.55;
}

/* Honest urgency: what is in the bag is held for no one until paid; other visitors' bags. */
.bag-note,
.demand-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	color: var(--ink-2);
	font-size: 12.5px;
	line-height: 1.7;
}

.demand-note {
	margin: -8px 0 14px;
	font-size: 13.5px;
	animation: rise-in 0.4s var(--ease-out);
}

.bag-note.is-wanted,
.demand-note {
	color: var(--plum);
	font-weight: 500;
}

.bag-note.is-wanted::before,
.demand-note::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c2410c;
}

/* The slide-out bag: the remove button and the steppers get 44px to hit (34 and 32 before); a
   removed product can be put back for a few seconds. The remove button stays absolute (pinned to
   the item's corner), which already anchors its larger hit area. */
.mini-cart .qty-stepper__btn {
	position: relative;
}

.mini-cart__remove::after,
.mini-cart .qty-stepper__btn::after {
	content: "";
	position: absolute;
	inset: -6px;
}

.mini-cart__undo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin: 0 0 10px;
	padding: 8px 14px;
	border-radius: 12px;
	background: var(--paper-2);
	color: var(--ink-2);
	font-size: 13.5px;
	animation: rise-in 0.3s var(--ease-out);
}

/* The bag page while it updates: WooCommerce's white overlay (z-index 1000) stays inside the
   list and the totals instead of flashing over the header, the bars and the contact button. */
.woocommerce-cart-form,
.cart_totals,
.cart-collaterals {
	isolation: isolate;
}

.cart-item__qty-fixed {
	color: var(--ink-2);
	font-size: 13.5px;
	white-space: nowrap;
}

.cart-item__qty-note {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
}

/* Sold: the price quietly (at full weight it looked buyable). */
.product-card.outofstock .product-card__price,
.product.outofstock .product-summary > .price {
	color: var(--muted);
	font-weight: 400;
}

/* A product already in the bag: how many, and «دیدن سبد», under the buy row, and
   at the maximum the button itself opens the bag (outlined, with a tick). */
.in-bag-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin: 10px 0 0;
	color: var(--ink-2);
	font-size: 13.5px;
}

.link-button {
	padding: 8px 2px;
	border: 0;
	background: none;
	color: var(--plum);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.single_add_to_cart_button.is-in-bag {
	border-color: var(--ink);
	background: var(--card);
	color: var(--ink);
}

.buy-row .quantity[hidden],
.checkout-steps[hidden] {
	display: none;
}

/* Contact: the channels are cards, not an article's list (its 1.4em indent put them out of line
   with the form), and the address is a card beside them. */
.entry-content ul.contact__channels {
	padding: 0;
}

.contact__address {
	align-items: center;
	min-height: 76px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
}

/* Directions, at the card's end. */
.contact__map {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-inline-start: auto;
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}

/* Shop on phones: the categories' row no taller than two lines of name (one long name made every
   tile tall and left a band under the row); no «خانه / فروشگاه» on the shop itself (the tab bar
   says it), so the products start higher. */
.cat-rail__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

@media (max-width: 760px) {
	.cat-nav {
		margin-bottom: 4px;
	}

	.woocommerce-shop:not(.search) .shop-hero :is(.breadcrumb, .woocommerce-breadcrumb) {
		display: none;
	}
}

/* Fingers: 44px to hit for the cards' heart, the grid toggle and «پاک کردن» (34, 36 and 20 before),
   without changing how they look. */
.card-wish::after,
.grid-toggle button::after,
.filters__clear::after,
.active-filters__clear::after {
	content: "";
	position: absolute;
	inset: -6px;
}

.grid-toggle button,
.filters__clear,
.active-filters__clear {
	position: relative;
}

.filters__clear::after,
.active-filters__clear::after {
	inset: -12px -6px;
}

/* The grid toggle's pictures: two or four per row on wide screens, one or two on phones. */
.grid-icon--narrow {
	display: none;
}

@media (max-width: 760px) {
	.grid-icon--wide {
		display: none;
	}

	.grid-icon--narrow {
		display: inline-block;
	}
}

/* An empty search: the message right under the title, ways on, the newest products; the toolbar,
   the categories' row, the sidebar and the floating filter button step aside (an empty list of
   filters keeps them: they are how to widen it). */
.shop-main:has(.empty-state--search) :is(.cat-nav, .shop-toolbar, #shop-sidebar),
body:has(.empty-state--search) .filters-fab {
	display: none !important;
}

.shop-layout:has(.empty-state--search) {
	grid-template-columns: minmax(0, 1fr);
}

.empty-state__kinds {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.empty-state__ask {
	display: inline-flex;
	gap: 8px;
	margin-top: 18px;
}

.empty-state__ask .icon {
	width: 18px;
	height: 18px;
}

.empty-state__new {
	margin-top: clamp(36px, 5vw, 64px);
}

.empty-state__new-title {
	margin: 0 0 16px;
	font-size: clamp(20px, 1.1rem + 0.6vw, 26px);
	font-weight: 300;
}

/* The bag's suggestions are a slider that already reaches the screen's edges (the phone rule for
   suggestion rows pulled it out a second time, past them). */
.cart-suggestions .products.product-slider__track {
	margin-inline: 0;
}

/* Footer: closer to the page above it; the floating contact button gets room at the very end so
   it never covers the last line (the credit). */
.site-footer {
	margin-top: clamp(48px, 6vw, 72px);
}

.site-footer__bottom {
	padding-bottom: calc(22px + 80px + env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
	.has-dock .site-footer__bottom {
		padding-bottom: calc(100px + 64px + env(safe-area-inset-bottom));
	}
}

/* Short screens (landscape phones, zoomed in): the header scrolls away instead of covering it. */
@media (max-height: 420px) {
	.site-header {
		position: relative;
	}
}

/* The header and the phone's tab bar: no cut shadows. ------------------------------------------
   They stay out of the page-change snapshot (Safari cuts a captured element's shadow to its box);
   the page's own cross-fade carries them, the same on both pages. The header is opaque (no text
   showing through it) and gets a soft shadow once the page is scrolled; tucked away, it takes its
   line and shadow along (they stayed behind as a strip at the top of the screen). */
.site-header,
.dock {
	view-transition-name: none;
}

.site-header {
	background: var(--paper);
	transition: translate 0.45s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.site-header[data-scrolled] {
	border-color: transparent;
	box-shadow: 0 1px 0 var(--line), 0 12px 24px -20px rgb(23 32 43 / 0.4);
}

.site-header[data-hidden] {
	translate: 0 calc(-100% - 24px);
}

/* The tab bar is opaque (the cards' text showed through at 97%) and is not itself clipped: its
   rounded clip is the inner .dock__clip, so its shadow is never cut, and the shadow ends inside the
   10px between the bar and the screen's edge. */
@media (max-width: 900px) {
	.dock {
		overflow: visible;
		background: var(--ink);
		box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 -10px 26px -16px rgb(23 32 43 / 0.4), 0 4px 10px -6px rgb(23 32 43 / 0.45);
	}

	.dock__clip {
		position: absolute;
		inset: 0;
		overflow: hidden;
		border-radius: inherit;
	}

	.filters-fab {
		box-shadow: 0 8px 20px -10px rgb(23 32 43 / 0.6);
	}
}

/* The customer chat («گفت‌وگو با قسط تجهیز»: inc/tezhano-contact.php, tezhano.js) -----------------------
   A launcher at the bottom of every page, the sheet with the ways to reach the store, the chat window
   and the invitation beside the launcher. The store's side is the flame blue with white text, the
   visitor's is white with a steel line; whatever can be pressed is at least 44px. Nothing moves by
   itself except the dots while someone is writing. */
.talk {
	position: fixed;
	z-index: 44;
	bottom: calc(24px + env(safe-area-inset-bottom));
	inset-inline-end: 24px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 320px;
	height: 60px;
	padding-block: 0;
	padding-inline: 8px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--flame);
	color: #fff;
	font: inherit;
	text-align: start;
	box-shadow: 0 8px 20px rgb(23 32 43 / 0.16);
	cursor: pointer;
	transition: max-width 0.45s var(--ease-out), padding 0.45s var(--ease-out), gap 0.45s var(--ease-out), translate 0.4s var(--ease-out), opacity 0.3s var(--ease), background-color 0.2s var(--ease);
	-webkit-tap-highlight-color: transparent;
	animation: talk-in 0.5s 1.2s var(--ease-out) backwards;
}

@keyframes talk-in {
	from {
		opacity: 0;
	}
}

/* Sheets, bubbles and notes arrive with one short rise. */
@keyframes talk-rise {
	from {
		opacity: 0;
		translate: 0 10px;
	}
}

@media (hover: hover) {
	.talk:hover {
		background: var(--flame-deep);
	}
}

.talk__avatar {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.16);
}

.talk__avatar .icon {
	width: 26px;
	height: 26px;
	color: #fff;
}

/* Shown only while someone at the store is online. */
.talk__dot,
.talk-start__avatar i {
	position: absolute;
	bottom: 0;
	inset-inline-end: 0;
	display: none;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--success);
}

.talk__dot.is-online,
.talk-start__avatar i.is-online {
	display: block;
}

.talk__text {
	display: grid;
	min-width: 0;
	max-width: 220px;
	overflow: hidden;
	transition: opacity 0.3s var(--ease), max-width 0.45s var(--ease-out);
}

.talk__label {
	overflow: hidden;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.talk__sub {
	overflow: hidden;
	color: rgb(255 255 255 / 0.88);
	font-size: 12.5px;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Answers waiting to be read. */
.talk__badge {
	position: absolute;
	top: -4px;
	inset-inline-start: -4px;
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border: 2px solid var(--tile);
	border-radius: 999px;
	background: var(--ember);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
}

/* Once the page has been scrolled, and while «فیلترها» floats beside it: only the round button. */
.talk.is-compact,
body:has(.filters-fab:not([hidden])) .talk {
	gap: 0;
	padding-inline: 8px;
}

.talk.is-compact .talk__text,
body:has(.filters-fab:not([hidden])) .talk__text {
	max-width: 0;
	opacity: 0;
}

/* Wide screens: once round, the name comes back while pointed at or focused. */
@media (hover: hover) and (min-width: 901px) {
	.talk.is-compact:hover,
	.talk.is-compact:focus-visible {
		gap: 10px;
		padding-inline: 8px 22px;
	}

	.talk.is-compact:hover .talk__text,
	.talk.is-compact:focus-visible .talk__text {
		max-width: 220px;
		opacity: 1;
	}
}

.talk[aria-expanded="true"] {
	opacity: 0;
	pointer-events: none;
}

/* Out of the way while typing (the on-screen keyboard), and while a note («به سبد اضافه شد») has
   the bottom of the screen to itself. */
body.is-typing .talk,
body:has(.toast.is-visible) .talk,
body:has(.toast.is-visible) .talk-nudge {
	opacity: 0;
	pointer-events: none;
}

/* While the «install the app» card is up (phones), the button and its invitation wait above it. */
body:has(.install-card.is-visible) .talk,
body:has(.install-card.is-visible) .talk-nudge {
	translate: 0 calc(-1 * (var(--install-card-h, 76px) + 12px));
}

/* Phones: always the round button, above the tab bar; on the bag page, which has its own bar and
   its prices at that side, none at all. */
@media (max-width: 900px) {
	.talk {
		bottom: calc(10px + 66px + 14px + env(safe-area-inset-bottom));
		inset-inline-end: 12px;
		gap: 0;
		height: 56px;
		padding-inline: 6px;
	}

	.talk__avatar {
		background: none;
	}

	.talk__avatar .icon {
		width: 28px;
		height: 28px;
	}

	.talk__dot {
		bottom: 3px;
		inset-inline-end: 3px;
	}

	.talk .talk__text {
		max-width: 0;
		opacity: 0;
	}

	.talk.is-compact,
	body:has(.filters-fab:not([hidden])) .talk {
		padding-inline: 6px;
	}

	.woocommerce-cart .talk {
		display: none;
	}
}

/* The sheet: the ways to reach the store. Above the launcher on wide screens, from the bottom on
   phones. */
.talk-sheet {
	position: fixed;
	inset: auto 24px calc(96px + env(safe-area-inset-bottom)) auto;
	width: min(384px, calc(100vw - 32px));
	max-height: min(640px, calc(100dvh - 140px));
	margin: 0;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: var(--r-panel);
	background: var(--tile);
	color: var(--ink);
	box-shadow: 0 0 0 1px var(--steel-2), var(--shadow);
}

[dir="rtl"] .talk-sheet {
	inset: auto auto calc(96px + env(safe-area-inset-bottom)) 24px;
}

.talk-sheet[open] {
	animation: talk-rise 0.3s var(--ease-out);
}

.talk-sheet::backdrop {
	background: rgb(23 32 43 / 0.24);
}

.talk-sheet__home[hidden],
.tchat[hidden] {
	display: none;
}

.talk-sheet__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 18px 12px 8px 18px;
}

[dir="rtl"] .talk-sheet__head {
	padding: 18px 18px 8px 12px;
}

.talk-sheet__mark .wordmark {
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
}

.talk-sheet__head > div {
	flex: 1;
	min-width: 0;
}

.talk-sheet__title {
	margin: 0;
	font-family: var(--display);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.6;
}

.talk-sheet__lead {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.8;
}

.talk-sheet__close {
	flex: none;
	margin-top: -6px;
	border-radius: var(--radius);
	color: var(--ink-2);
}

/* The chat itself comes first, in the working colour. */
.talk-start {
	display: flex;
	align-items: center;
	gap: 12px;
	width: calc(100% - 32px);
	min-height: 68px;
	margin: 8px 16px 0;
	padding: 12px 14px;
	border: 0;
	border-radius: var(--r-card);
	background: var(--flame);
	color: #fff;
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

@media (hover: hover) {
	.talk-start:hover {
		background: var(--flame-deep);
	}
}

.talk-start:last-child {
	margin-bottom: 16px;
}

.talk-start__avatar {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.16);
}

.talk-start__avatar .icon {
	width: 26px;
	height: 26px;
	color: #fff;
}

.talk-start__text {
	display: grid;
	flex: 1;
	min-width: 0;
}

.talk-start__text strong {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.6;
}

.talk-start__text span {
	color: rgb(255 255 255 / 0.88);
	font-size: 13px;
	line-height: 1.7;
}

.talk-sheet__or {
	margin: 16px 18px 0;
	color: var(--muted);
	font-size: 13px;
}

.talk-sheet__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 10px 16px 16px;
	list-style: none;
}

.talk-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px 14px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow 0.2s var(--ease);
}

@media (hover: hover) {
	.talk-option:hover {
		box-shadow: 0 0 0 1.5px var(--flame);
	}
}

.talk-option__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--flame-tint);
	color: var(--flame);
}

.talk-option__icon .icon {
	width: 22px;
	height: 22px;
}

/* The product asked about: its own photo, as on the cards. */
.talk-option__icon:has(img) {
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--steel-1);
}

.talk-option__icon img {
	width: 100%;
	height: 100%;
	padding: 3px;
	object-fit: contain;
}

.talk-option__text {
	display: grid;
	flex: 1;
	min-width: 0;
}

.talk-option__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
}

.talk-option__note {
	overflow: hidden;
	color: var(--muted);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.talk-sheet,
	[dir="rtl"] .talk-sheet {
		inset: auto 0 0;
		width: 100%;
		max-width: none;
		max-height: 88dvh;
		padding-bottom: env(safe-area-inset-bottom);
		border-radius: var(--r-panel) var(--r-panel) 0 0;
	}

	.talk-sheet[open] {
		animation: talk-up 0.35s var(--ease-out);
	}
}

@keyframes talk-up {
	from {
		translate: 0 100%;
	}
}

/* The chat window: the sheet becomes a header, the conversation and the line to write. */
.talk-sheet.is-chat {
	display: flex;
	flex-direction: column;
	height: min(620px, calc(100dvh - 140px));
	overflow: hidden;
}

.tchat {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.tchat__head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px;
	border-bottom: 1px solid var(--steel-1);
	background: var(--white);
}

.tchat__back,
.tchat__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
}

.tchat__back .icon,
.tchat__close .icon {
	width: 20px;
	height: 20px;
}

@media (hover: hover) {
	.tchat__back:hover,
	.tchat__close:hover {
		background: var(--tile);
		color: var(--ink);
	}
}

.tchat__avatar {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	margin-inline-end: 6px;
}

.tchat__avatar .wordmark {
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
}

.tchat__head.is-online .tchat__avatar::after {
	content: "";
	position: absolute;
	bottom: -3px;
	inset-inline-end: -3px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: var(--success);
}

.tchat__who {
	flex: 1;
	min-width: 0;
}

.tchat__name {
	margin: 0;
	font-family: var(--display);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
}

.tchat__state {
	margin: 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.tchat__head.is-online .tchat__state {
	color: var(--success);
}

.tchat__thread {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-height: 0;
	margin: 0;
	padding: 16px 14px 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--tile);
	list-style: none;
}

/* Messages: the store's in the working colour at the end side, the visitor's on white at the start. */
.talk-msg {
	display: grid;
	gap: 2px;
	max-width: 84%;
	padding: 9px 14px 7px;
	border-radius: var(--r-card);
	animation: talk-rise 0.25s var(--ease-out);
}

.talk-msg--agent {
	align-self: flex-end;
	border-end-end-radius: 4px;
	background: var(--flame);
	color: #fff;
}

.talk-msg--visitor {
	align-self: flex-start;
	border-end-start-radius: 4px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--steel-2);
	color: var(--ink);
}

.talk-msg__text {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.85;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.talk-msg__meta {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.talk-msg--agent .talk-msg__meta {
	color: rgb(255 255 255 / 0.88);
}

.talk-msg--hello .talk-msg__meta {
	display: none;
}

.talk-msg.is-sending {
	opacity: 0.6;
}

.talk-msg.is-failed {
	background: var(--danger-tint);
	box-shadow: inset 0 0 0 1px var(--danger);
	color: var(--danger);
}

.talk-msg__error {
	font-size: 12.5px;
	line-height: 1.6;
}

/* Someone is writing: three dots, in the window and in the invitation. */
.tchat__typing {
	align-self: flex-end;
}

.tchat__typing[hidden] {
	display: none;
}

.talk-nudge__typing {
	display: inline-flex;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 999px;
	background: var(--steel-1);
}

.talk-nudge__typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--muted);
	animation: talk-dot 1s ease-in-out infinite;
}

.talk-nudge__typing i:nth-child(2) {
	animation-delay: 0.15s;
}

.talk-nudge__typing i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes talk-dot {
	0%,
	60%,
	100% {
		opacity: 0.35;
		translate: 0 0;
	}

	30% {
		opacity: 1;
		translate: 0 -3px;
	}
}

/* Questions ready to send. */
.tchat__chips,
.talk-nudge__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tchat__chips {
	padding: 0 14px 12px;
	background: var(--tile);
}

.tchat__chips[hidden] {
	display: none;
}

.talk-chat__chip {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--steel-2);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

@media (hover: hover) {
	.talk-chat__chip:hover {
		box-shadow: inset 0 0 0 1.5px var(--flame);
		color: var(--flame);
	}
}

.tchat__compose {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--steel-1);
	background: var(--white);
}

.tchat__compose textarea {
	flex: 1;
	min-height: 44px;
	max-height: 120px;
	padding: 9px 14px;
	border: 1.5px solid var(--line-field);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	resize: none;
}

.tchat__compose textarea:focus {
	border-color: var(--flame);
	outline: none;
}

.tchat__send {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: var(--flame);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

@media (hover: hover) {
	.tchat__send:hover {
		background: var(--flame-deep);
	}
}

.tchat__send .icon {
	width: 20px;
	height: 20px;
}

[dir="rtl"] .tchat__send .icon {
	scale: -1 1;
}

@media (max-width: 600px) {
	.talk-sheet.is-chat {
		height: 92dvh;
	}

	.talk-msg {
		max-width: 88%;
	}
}

/* «خودتان را معرفی کنید» (optional): a card in the conversation. */
.talk-me-holder {
	align-self: stretch;
	margin: 4px 0;
}

.talk-me {
	display: grid;
	gap: 10px;
	padding: 6px 14px 14px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--steel-2);
}

.talk-me__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-inline-end: -8px;
}

.talk-me__title {
	margin: 0;
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 700;
}

.talk-me__skip {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.talk-me__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.talk-me__fields label {
	display: grid;
	gap: 4px;
	color: var(--ink-2);
	font-size: 13px;
}

.talk-me__fields input {
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--line-field);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-size: 16px;
}

.talk-me__fields input:focus {
	border-color: var(--flame);
	outline: none;
}

.talk-me__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-block: 4px;
	color: var(--ink-2);
	font-size: 13px;
	line-height: 1.8;
	cursor: pointer;
}

.talk-me__consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--flame);
}

.talk-me__error {
	margin: 0;
	color: var(--danger);
	font-size: 13px;
}

.talk-me__error[hidden] {
	display: none;
}

.talk-me__save {
	min-height: 44px;
	justify-self: start;
	padding-inline: 24px;
}

@media (max-width: 340px) {
	.talk-me__fields {
		grid-template-columns: 1fr;
	}
}

/* A line the window says itself («ممنون؛ مشخصاتتان ثبت شد»). */
.talk-note {
	align-self: center;
	margin: 4px 0;
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.8;
	text-align: center;
}

/* «وقتی پاسخ آمد خبرم کنید». */
.talk-push {
	align-self: center;
	margin: 2px 0;
}

.talk-push__ask,
.talk-nudge__bag,
.talk-nudge__ask,
.talk-nudge__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: inset 0 0 0 1px var(--steel-2);
	color: var(--ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.2s var(--ease);
}

@media (hover: hover) {
	.talk-push__ask:not(:disabled):hover,
	.talk-nudge__bag:hover,
	.talk-nudge__ask:hover,
	.talk-nudge__more:hover {
		box-shadow: inset 0 0 0 1.5px var(--ink);
	}
}

.talk-push__ask .icon {
	width: 18px;
	height: 18px;
	color: var(--flame);
}

.talk-push__ask:disabled {
	color: var(--muted);
	cursor: default;
}

/* The invitation beside the launcher: who writes, the dots, then the message and one way to answer. */
.talk-nudge {
	position: fixed;
	z-index: 44;
	bottom: calc(24px + 60px + 12px + env(safe-area-inset-bottom));
	inset-inline-end: 24px;
	width: min(328px, calc(100vw - 32px));
	padding: 14px 16px 16px;
	border-radius: var(--r-card);
	background: var(--white);
	color: var(--ink);
	box-shadow: 0 0 0 1px var(--steel-2), var(--shadow);
	animation: talk-rise 0.3s var(--ease-out);
}

.talk-nudge.is-leaving {
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}

.talk-nudge__close {
	position: absolute;
	top: 2px;
	inset-inline-end: 2px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--muted);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.talk-nudge__from {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	padding-inline-end: 34px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 700;
}

.talk-nudge__avatar .wordmark {
	width: 24px;
	height: 24px;
	border-radius: 6px;
}

.talk-nudge__name {
	flex: 1;
}

.talk-nudge__online {
	color: var(--success);
	font-size: 12.5px;
	font-weight: 600;
}

.talk-nudge__online::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-inline-end: 5px;
	border-radius: 50%;
	background: var(--success);
}

.talk-nudge__text {
	min-height: 26px;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.9;
}

.talk-nudge__buttons,
.talk-nudge__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.talk-nudge__buttons:has(> :not([hidden])) {
	margin-top: 12px;
}

.talk-nudge__reply,
.talk-nudge__compose button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--radius);
	background: var(--flame);
	color: #fff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s var(--ease);
}

@media (hover: hover) {
	.talk-nudge__reply:hover,
	.talk-nudge__compose button:hover {
		background: var(--flame-deep);
	}
}

.talk-nudge__reply[hidden],
.talk-nudge__bag[hidden],
.talk-nudge__ask[hidden],
.talk-nudge__more[hidden],
.talk-nudge__body[hidden],
.talk-nudge__compose[hidden] {
	display: none;
}

.talk-nudge__body {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.talk-nudge__compose {
	display: flex;
	gap: 8px;
}

.talk-nudge__compose input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--line-field);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-size: 16px;
}

.talk-nudge__compose input:focus {
	border-color: var(--flame);
	outline: none;
}

@media (max-width: 900px) {
	.talk-nudge {
		bottom: calc(10px + 66px + 14px + 56px + 12px + env(safe-area-inset-bottom));
		inset-inline-end: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.talk,
	.talk-sheet[open],
	.talk-msg,
	.talk-nudge,
	.talk-nudge__typing i {
		animation: none;
	}
}

/* The menu drawer: a search, the menu as rows that open in place, account and help, a call. -- */
.m-drawer .drawer__title {
	gap: 10px;
}

.m-menu {
	display: grid;
	gap: 18px;
	padding: 6px 20px 28px;
}

.m-menu__search {
	position: relative;
	display: flex;
	align-items: center;
}

.m-menu__search input {
	width: 100%;
	height: 48px;
	padding-inline: 16px 48px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	font-size: 16px;
}

.m-menu__search-go {
	position: absolute;
	inset-inline-end: 4px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
}

.m-menu__search-go .icon {
	width: 18px;
	height: 18px;
}

.m-menu__list,
.m-menu__sub,
.m-menu__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-menu__list > li {
	border-bottom: 1px solid var(--line);
}

.m-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	color: var(--ink);
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	list-style: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.m-menu__link::-webkit-details-marker {
	display: none;
}

.m-menu__link[aria-current="page"] {
	color: var(--plum);
}

/* The icon itself turns for RTL (.icon--dir): it points forward, to the left. */
.m-menu__chevron {
	width: 18px;
	height: 18px;
	color: var(--muted);
}

/* «+» that turns into «−» when the group is open. */
.m-menu__toggle {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
}

.m-menu__toggle::before,
.m-menu__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 2px;
	right: 2px;
	height: 1.6px;
	border-radius: 2px;
	background: var(--ink);
	transition: rotate 0.3s var(--ease);
}

.m-menu__toggle::after {
	rotate: 90deg;
}

.m-menu__group[open] .m-menu__toggle::after {
	rotate: 0deg;
}

.m-menu__group[open] > .m-menu__link {
	color: var(--plum);
}

.m-menu__sub {
	display: grid;
	gap: 2px;
	padding: 0 0 14px;
	animation: rise-in 0.35s var(--ease-out);
}

.m-menu__sublink {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 4px 6px;
	border-radius: 12px;
	color: var(--ink-2);
	font-size: 15px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.m-menu__sublink:active {
	background: var(--paper-2);
}

.m-menu__sublink[aria-current="page"] {
	background: var(--paper-2);
	color: var(--ink);
	font-weight: 600;
}

.m-menu__sublink--all {
	color: var(--plum);
	font-weight: 600;
}

.m-menu__subname {
	flex: 1;
	min-width: 0;
}

.m-menu__count {
	flex: none;
	color: var(--muted);
	font-size: 12px;
}

.m-menu__rows {
	display: grid;
	gap: 2px;
	padding: 6px;
	border-radius: var(--r-card);
	background: var(--paper-2);
}

.m-menu__row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
	text-align: start;
	text-decoration: none;
	cursor: pointer;
}

.m-menu__row[hidden] {
	display: none;
}

.m-menu__row:active {
	background: var(--card);
}

.m-menu__row .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--plum);
}

.m-menu__row .wish-count {
	margin-inline-start: auto;
}

.m-menu__talk {
	display: grid;
	gap: 10px;
}

.m-menu__talk-title {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.m-menu__talk-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.m-menu__talk-actions .button {
	min-height: 50px;
	padding-inline: 14px;
}

.m-menu__talk-actions .icon {
	width: 18px;
	height: 18px;
}

.m-menu__whatsapp .icon {
	color: #1f7a4d;
}

.m-menu__insta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	color: var(--ink-2);
	font-size: 14px;
	text-decoration: none;
}

.m-menu__insta .icon {
	width: 18px;
	height: 18px;
}

@media (prefers-reduced-motion: reduce) {
	.m-menu__sub {
		animation: none;
	}
}

/* Live search: the categories most of the matches are in, under the results' heading; the match
   marked with the arrow keys looks like a hovered one, with a ring. */
.search-results__kinds {
	margin: 0 0 14px;
}

.search-results [role="option"].is-active .search-hit {
	background: var(--paper-2);
	box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Desktop menu: the small button beside a parent item that opens its sub-menu from the keyboard
   (and says there is one); hover opens it too. */
.primary-nav .menu-item-has-children {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Wishlist: each card's own «add to bag» under its price (phones have no «+» on cards). */
.product-card__add {
	align-self: stretch;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	min-height: 44px;
}

.product-card__add .icon {
	width: 17px;
	height: 17px;
}

.wishlist-page .page-hero__text a {
	color: var(--ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Customer club («باشگاه قسط تجهیز», Tezhano Commerce) -------------------------------------------------
   The tiers are the ranks of a kitchen brigade, and the member's card is the rating plate that every
   professional machine carries: brushed steel held by four rivets, engraved boxes with a small caption
   each, the rank stamped in beside three notches (one filled per rank). The steel deepens with the
   rank — satin, brushed, blackened — as a pan does with use. One count-up of the points and one line
   drawing in (tezhano.js); nothing else moves. */

.club {
	display: grid;
	gap: 22px;
}

.club-notes {
	display: grid;
	gap: 8px;
}

.club-note,
.club-debt,
.club-empty {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border-radius: var(--r-card);
	background: var(--flame-tint);
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.8;
}

/* Points owed after a return: the one place the club warns. */
.club-debt {
	background: var(--ember-tint);
}

.club-empty {
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
	color: var(--ink-2);
}

.club-note .icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 4px;
	color: var(--flame);
}

/* The plate. */
.club-card {
	--plate: #e4e8eb;
	--plate-light: #f8fafb;
	--plate-edge: #c9d0d6;
	--brushing: rgb(255 255 255 / 0.42);
	--stamp: #17202b;
	--caption: #3d4854;
	--groove: rgb(23 32 43 / 0.24);
	--lip: rgb(255 255 255 / 0.8);
	--rivet: radial-gradient(circle, #fff 0 20%, #dfe4e8 21% 48%, #a3adb7 49% 60%, rgb(23 32 43 / 0.3) 61% 68%, transparent 69%);
	position: relative;
	display: grid;
	gap: 14px;
	width: 100%;
	max-width: 480px;
	padding: 30px 30px 32px;
	border-radius: var(--r-card);
	background:
		var(--rivet) 10px 10px / 14px 14px no-repeat,
		var(--rivet) calc(100% - 10px) 10px / 14px 14px no-repeat,
		var(--rivet) 10px calc(100% - 10px) / 14px 14px no-repeat,
		var(--rivet) calc(100% - 10px) calc(100% - 10px) / 14px 14px no-repeat,
		repeating-linear-gradient(0deg, var(--brushing) 0 1px, transparent 1px 3px),
		linear-gradient(104deg, transparent 18%, var(--plate-light) 44%, transparent 72%),
		var(--plate);
	box-shadow: inset 0 0 0 1px var(--plate-edge), inset 0 2px 0 var(--lip);
	color: var(--stamp);
}

/* آشپز: steel that has been worked, a shade deeper. */
.club-card--silver {
	--plate: #c3cbd2;
	--plate-light: #e2e7eb;
	--plate-edge: #a9b3bc;
	--brushing: rgb(255 255 255 / 0.3);
	--caption: #2f3a46;
	--groove: rgb(23 32 43 / 0.3);
	--lip: rgb(255 255 255 / 0.6);
}

/* سرآشپز: blackened steel, the letters filled light. */
.club-card--gold {
	--plate: #17202b;
	--plate-light: #2b3745;
	--plate-edge: #0c1218;
	--brushing: rgb(255 255 255 / 0.035);
	--stamp: #f3f5f6;
	--caption: #c9d0d6;
	--groove: rgb(255 255 255 / 0.26);
	--lip: rgb(0 0 0 / 0.55);
	--rivet: radial-gradient(circle, #96a1ac 0 20%, #4d5967 21% 48%, #2a3440 49% 60%, rgb(0 0 0 / 0.65) 61% 68%, transparent 69%);
	box-shadow: inset 0 0 0 1px var(--plate-edge), inset 0 2px 0 rgb(255 255 255 / 0.08);
}

.club-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-inline: 4px;
}

.club-card__brand {
	color: var(--caption);
	font-family: var(--display);
	font-size: 15px;
	font-weight: 700;
}

/* The maker's badge, as on a machine. */
.club-card__maker {
	width: 34px;
	height: 34px;
	border-radius: 8px;
}

.club-card__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

/* An engraved box: a cut line, and the light catching its lower edge. */
.club-card__cell {
	display: grid;
	align-content: start;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 9px 14px 11px;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px var(--groove), 0 1px 0 var(--lip);
	list-style: none;
}

.club-card__label {
	color: var(--caption);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.7;
}

.club-card__rank,
.club-card__facts,
.club-card__progress,
.club-card__next--top,
.club-card__cell--wide {
	grid-column: 1 / -1;
}

.club-card__rank {
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 12px;
}

.club-card__rank .club-card__label {
	grid-column: 1 / -1;
}

/* Stamped in: the light sits on the lower edge of each letter. */
.club-card__tier,
.club-card__balance strong {
	text-shadow: 0 1px 0 var(--lip);
}

.club-card__tier {
	font-family: var(--display);
	font-size: clamp(30px, 8vw, 38px);
	font-weight: 800;
	line-height: 1.35;
}

/* Three notches; one more is punched through at each rank. */
.club-card__pips {
	display: inline-flex;
	gap: 5px;
}

.club-card__pips i,
.club-tier__pips i {
	width: 8px;
	height: 26px;
	border-radius: 2px;
	box-shadow: inset 0 0 0 1.5px var(--groove);
}

.club-card__pips i.is-on,
.club-tier__pips i.is-on {
	background: var(--stamp);
	box-shadow: 0 1px 0 var(--lip);
}

.club-card__balance strong {
	font-size: clamp(34px, 9vw, 42px);
	font-weight: 800;
	line-height: 1.2;
}

.club-card__value strong {
	align-self: end;
	font-size: clamp(15.5px, 4.2vw, 17px);
	font-weight: 700;
	line-height: 1.9;
}

.club-card__facts {
	gap: 4px;
	font-size: 13.5px;
	line-height: 1.8;
}

.club-card__facts li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.club-card__facts .icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 4px;
	color: var(--caption);
}

.club-card__next {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.8;
}

/* The way to the next rank: a milled slot that fills. */
.club-card__line {
	display: block;
	height: 6px;
	margin-top: 6px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px var(--groove), 0 1px 0 var(--lip);
	overflow: hidden;
}

.club-card__line > span {
	display: block;
	width: var(--progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: var(--stamp);
	transform-origin: right;
	animation: club-draw 0.9s 0.2s var(--ease-out) backwards;
}

[dir="ltr"] .club-card__line > span {
	transform-origin: left;
}

@keyframes club-draw {
	from {
		scale: 0 1;
	}
}

.club-card__since span:last-child,
.club-card__code {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.8;
}

.club-card__code {
	justify-self: start;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.1em;
}

.club-card__note {
	margin: -10px 0 0;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 420px) {
	.club-card {
		padding: 28px 22px 30px;
	}
}

/* The rest of «باشگاه من»: white cards on the tile, as everywhere in the store. */
.club-panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.club-panel {
	padding: 20px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
}

:is(.club-panel, .club-invite, .club-history) h3 {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
}

.club-panel p {
	margin: 0 0 8px;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.9;
}

.club-panel .club-panel__next {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 13.5px;
}

.club-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.club-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 1.8;
}

.club-list .icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 4px;
	color: var(--flame);
}

.club-list a {
	color: var(--flame);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.club-invite {
	padding: 20px;
	border-radius: var(--r-card);
	background: var(--flame-tint);
}

.club-invite p {
	margin: 0 0 12px;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.9;
}

.club-invite__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.club-invite__actions .button {
	gap: 8px;
}

.club-invite__actions .icon {
	width: 18px;
	height: 18px;
}

.club-invite .club-invite__count {
	font-weight: 600;
}

.club-invite .club-invite__note {
	margin: 0;
	color: var(--ink-2);
	font-size: 13px;
}

.club-history__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 10px;
}

.club-history__head h3 {
	margin: 0;
}

.club-history__filter {
	display: flex;
	gap: 8px;
}

.club-history__filter a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-2);
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.club-history__filter a[aria-current="page"] {
	background: var(--flame);
	box-shadow: none;
	color: #fff;
}

.club-history__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--steel-2);
	list-style: none;
}

.club-history__list li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "what points" "when points";
	gap: 2px 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--steel-1);
}

.club-history__what {
	grid-area: what;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.7;
}

.club-history__what small {
	display: block;
	color: var(--muted);
	font-size: 12.5px;
}

.club-history__when {
	grid-area: when;
	color: var(--muted);
	font-size: 13px;
}

.club-history__points {
	grid-area: points;
	align-self: center;
	color: var(--success);
	font-size: 15.5px;
	font-weight: 700;
}

.club-history__points.is-minus,
.club-history__list li.is-pending .club-history__points {
	color: var(--muted);
}

.club-history__pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 14px;
	color: var(--muted);
	font-size: 13.5px;
}

.club-history__empty {
	color: var(--muted);
	font-size: 14.5px;
}

.club-history__terms {
	margin: 14px 0 0;
	font-size: 13.5px;
}

.club-history__terms a,
.club-redeem__terms {
	color: var(--muted);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* /club/ and its rules. */
.club-info {
	display: grid;
	gap: 18px;
	font-size: 15.5px;
	line-height: 1.9;
}

.club-info h2 {
	margin: 18px 0 0;
	font-size: clamp(20px, 1.2rem + 0.6vw, 26px);
}

.club-info__intro {
	display: grid;
	justify-items: start;
	gap: 14px;
}

.club-info__lead {
	max-width: 60ch;
	margin: 0;
	color: var(--ink-2);
	font-size: clamp(16px, 1rem + 0.3vw, 18px);
	line-height: 2;
}

.club-info__me {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 10px 16px;
	border-radius: var(--r-card);
	background: var(--flame-tint);
	color: var(--ink);
	font-size: 14.5px;
	text-decoration: none;
}

.club-info__me .icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--flame);
}

/* On a page, links in the text are underlined; these two are a row and buttons. */
.entry-content .club-info a.club-info__me,
.entry-content .club-info__cta .button {
	text-decoration: none;
}

.club-info__steps,
.club-info__tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.club-info__steps li,
.club-tier {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 20px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
}

.club-info__step {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--radius);
	background: var(--flame-tint);
	color: var(--flame);
	font-size: 16px;
	font-weight: 800;
}

.club-info__steps strong,
.club-tier__name {
	font-family: var(--display);
	font-size: 17px;
	font-weight: 700;
}

.club-info__steps li > span:last-child {
	color: var(--ink-2);
	font-size: 14.5px;
}

/* A rank: its notches, as on the member's plate, then its name. */
.club-tier__pips {
	--stamp: var(--ink);
	--groove: var(--steel-2);
	--lip: transparent;
	display: inline-flex;
	gap: 5px;
	margin-bottom: 6px;
}

.club-tier__pips i {
	height: 22px;
}

.club-tier__from,
.club-info__note,
.club-terms__updated {
	margin: 0;
	color: var(--muted);
	font-size: 13.5px;
}

.club-tier .club-list {
	margin-top: 8px;
}

.club-info__perks {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.club-info__perks li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0 12px;
	padding: 16px 18px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
}

.club-info__perks .icon {
	grid-row: span 2;
	width: 20px;
	height: 20px;
	margin-top: 5px;
	color: var(--flame);
}

.club-info__perks span {
	color: var(--ink-2);
	font-size: 14.5px;
}

.club-info__faq {
	display: grid;
	gap: 8px;
}

.club-info__faq details {
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
}

.club-info__faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 52px;
	padding: 10px 18px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.club-info__faq summary::-webkit-details-marker {
	display: none;
}

.club-info__faq summary::after {
	content: "+";
	color: var(--muted);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.club-info__faq details[open] summary::after {
	content: "−";
}

.club-info__faq p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--ink-2);
	font-size: 14.5px;
}

.club-info__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 0;
}

.club-info__soon {
	padding: 20px;
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px var(--steel-1);
	color: var(--muted);
	text-align: center;
}

.club-terms__list {
	display: grid;
	gap: 12px;
	margin: 0 0 18px;
	padding-inline-start: 1.4em;
	color: var(--ink-2);
	font-size: 15.5px;
	line-height: 2;
}

/* Checkout: the box says why points can't be used yet (no button then), and links the rules. */
.club-redeem:is(.club-redeem--below, .club-redeem--pending, .club-redeem--personal) {
	grid-template-columns: auto minmax(0, 1fr);
	background: var(--tile);
}

.club-redeem__terms {
	display: inline-block;
	margin-top: 2px;
	font-size: 13px;
}

/* The thank-you page: what the order will bring, and the invitation. */
.club-thanks {
	display: grid;
	gap: 10px;
	margin: 18px 0;
	padding: 16px 18px;
	border-radius: var(--r-card);
	background: var(--flame-tint);
}

.club-thanks p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.8;
}

.club-thanks .icon {
	width: 18px;
	height: 18px;
	color: var(--flame);
}

.club-thanks__invite {
	justify-content: space-between;
}

.club-review-hint {
	margin: 10px 0 0;
	padding: 10px 14px;
	border-radius: var(--radius);
	background: var(--flame-tint);
	color: var(--ink);
	font-size: 14px;
}

/* Members first: the product says who may buy it now, and when everyone may. */
.club-early {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 12px 0;
	padding: 14px 16px;
	border-radius: var(--r-card);
	background: var(--flame-tint);
	color: var(--ink);
	font-size: 14.5px;
	line-height: 1.8;
}

.club-early .icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	color: var(--flame);
}

.club-early strong {
	display: block;
	font-size: 15.5px;
}

.club-early p {
	margin: 2px 0 6px;
	color: var(--ink-2);
}

.club-early a {
	color: var(--flame);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.club-early--member {
	padding: 10px 14px;
}

.product-card__early {
	color: var(--flame);
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.club-card__line > span {
		animation: none;
	}
}

/* Product page: the stock line and «in other bags» read as one short status under the price —
   the note right under the stock line (on phones it followed the buy button, half hidden by its
   edge), each dot on its first line when a line wraps, a little room after the club's chip. */
.product-summary > .stock,
.demand-note {
	align-items: flex-start;
}

.product-summary > .stock::before,
.demand-note::before {
	margin-top: 0.62em;
}

.product-summary > .club-hint {
	margin-bottom: 10px;
}

@media (max-width: 899px) {
	.product-summary > .demand-note {
		order: 1;
	}
}

/* The club's own lists sit on the page's edge (the page text indents its lists). */
.entry-content :is(.club-info__steps, .club-info__perks, .club-list) {
	margin-inline: 0;
	padding: 0;
}

.entry-content :is(.club-info__steps, .club-info__perks, .club-list) > li {
	margin: 0;
}

.entry-content .club-terms__list {
	padding-inline-start: 1.4em;
}

/* ==== Tezhano: structure for new parts (to be redesigned) ==== */

/* Header, wide screens: the mega-menu (inc/tezhano-menu.php, tezhano.js). The panel hangs under the
   whole header, so its item is not the positioning box. Closed unless .mega.is-open. */
.primary-nav li.mega {
	position: static;
}

.primary-nav .mega__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.mega__chevron {
	width: 14px;
	height: 14px;
	transition: rotate 0.2s var(--ease);
}

.mega.is-open .mega__chevron {
	rotate: 180deg;
}

.mega__panel {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline: 0;
	z-index: 40;
	max-height: calc(100vh - var(--header-h) - 24px);
	overflow: auto;
	overscroll-behavior: contain;
	border-block: 1px solid var(--line);
	background: var(--paper);
	box-shadow: var(--shadow);
}

.mega.is-open > .mega__panel:not([hidden]) {
	display: block;
}

.mega__inner {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: 32px;
	max-width: var(--max);
	margin-inline: auto;
	padding: 24px var(--gutter) 32px;
}

.mega__roots,
.mega__groups,
.mega__grandchildren {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega__roots {
	display: grid;
	align-content: start;
	gap: 2px;
}

.mega__root {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--radius);
	background: none;
	color: inherit;
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.mega__root[aria-expanded="true"] {
	background: var(--paper-2);
	font-weight: 600;
}

.mega__count {
	flex: none;
	color: var(--muted);
	font-size: 12px;
	font-weight: 400;
}

.mega__section[hidden] {
	display: none;
}

.mega__head {
	margin: 0 0 16px;
}

.primary-nav .mega__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.mega__all .icon {
	width: 16px;
	height: 16px;
}

.mega__groups {
	columns: 3 220px;
	column-gap: 32px;
}

.mega__group {
	break-inside: avoid;
	margin-bottom: 16px;
}

.primary-nav .mega__child {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-weight: 600;
}

.mega__grandchild {
	color: var(--ink-2);
	font-size: 14px;
}

.mega__panel a {
	padding-block: 4px;
	white-space: normal;
}

.mega__panel a::after {
	display: none;
}

.mega__panel a[aria-current="page"] {
	color: var(--plum);
}

/* The drawer on phones: the category tree as nested <details>. */
.m-menu__title {
	margin: 0 0 4px;
	color: var(--muted);
	font-size: 13px;
}

.m-menu__nav--links {
	margin-top: 8px;
	border-top: 1px solid var(--line);
}

.m-menu__link .m-menu__subname {
	flex: 1;
}

.m-menu__sublink--group {
	list-style: none;
	cursor: pointer;
}

.m-menu__sublink--group::-webkit-details-marker {
	display: none;
}

.m-menu__group--sub > .m-menu__sub {
	padding-inline-start: 14px;
	padding-bottom: 6px;
	border-inline-start: 1px solid var(--line);
}

/* «+» / «−» follows its own group, not the group around it. */
.m-menu__group:not([open]) > summary .m-menu__toggle::after {
	rotate: 90deg;
}

.m-menu__group[open] > summary .m-menu__toggle::after {
	rotate: 0deg;
}

/* Brand above the name: cards and the product page. */
.card__brand {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-bottom: 2px;
	color: var(--muted);
	font-size: 12px;
	text-decoration: none;
}

.product-brand {
	display: block;
	width: fit-content;
	margin-bottom: 6px;
	color: var(--plum);
	font-weight: 600;
	text-decoration: none;
}

/* «استعلام قیمت»: in a price's place, and in the buy form's place on the product page. */
.price-inquiry {
	font-weight: 600;
	white-space: nowrap;
}

.inquiry {
	display: grid;
	gap: 12px;
	margin-block: 16px 20px;
}

.inquiry__text {
	margin: 0;
}

.inquiry__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.inquiry__button {
	flex: 1 1 220px;
}

.inquiry__button,
.inquiry__phone,
.dock__cta--inquiry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
}

.inquiry__button .icon,
.inquiry__phone .icon,
.dock__cta--inquiry .icon {
	width: 18px;
	height: 18px;
}

@media (max-width: 899px) {
	.product-summary > .product-brand {
		order: 0;
	}

	.product-summary > .inquiry {
		order: 1;
	}
}

/* «مشخصات فنی»: a two-column table. */
.spec-table {
	width: 100%;
	border-collapse: collapse;
}

.spec-table__name,
.spec-table__value {
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	text-align: start;
	vertical-align: top;
}

.spec-table__name {
	width: 40%;
	padding-inline-end: 16px;
	color: var(--muted);
	font-weight: 500;
}

.spec-table__row:last-child > * {
	border-bottom: 0;
}

/* A category without a picture: a plain block with its first letter (never a broken image). */
.cover-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
	background: var(--paper-2);
	color: var(--muted);
}

.cover-placeholder__letter {
	font-size: 1.4em;
	font-weight: 600;
	opacity: 0.55;
}

/* Home: the root categories («sectors»). */
.sectors__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sector-tile {
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--card);
}

.sector-tile__main {
	display: grid;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.sector-tile__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
	font-size: 34px;
}

.sector-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sector-tile__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.sector-tile__name {
	font-size: 17px;
	font-weight: 600;
}

.sector-tile__count,
.sector-tile__link-count {
	flex: none;
	color: var(--muted);
	font-size: 12px;
}

.sector-tile__links {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sector-tile__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	color: var(--ink-2);
	font-size: 14px;
	text-decoration: none;
}

@media (max-width: 640px) {
	.sector-tile__media {
		aspect-ratio: 16 / 7;
	}
}

/* Home: the brands as a wall of names. */
.brand-wall__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-wall__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	min-height: 56px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: inherit;
	text-decoration: none;
}

.brand-wall__name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.brand-wall__count,
.brand-index__count {
	flex: none;
	color: var(--muted);
	font-size: 12px;
}

/* Home: the service lines. */
.why__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px 24px;
	margin: 0;
	padding: 20px 0;
	border-block: 1px solid var(--line);
	list-style: none;
}

.why__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.why__icon .icon {
	width: 24px;
	height: 24px;
}

/* /brands/: every brand, by first letter. */
.brands-page {
	padding-top: clamp(24px, 4vw, 48px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.brand-index__letters ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.brand-index__letters a {
	display: grid;
	place-items: center;
	min-width: 40px;
	min-height: 40px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: inherit;
	text-decoration: none;
}

.brand-index {
	display: grid;
	gap: 24px;
}

.brand-index__group {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	scroll-margin-top: calc(var(--header-h) + 20px);
}

.brand-index__letter {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
}

.brand-index__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 4px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-index__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	color: inherit;
	text-decoration: none;
}

/* Search sheet: matching brands, under the categories. */
.search-results__brands {
	margin-top: 8px;
}
