/*
 * Zhingo — the store layer, loaded last (on top of app.css, commerce.css and zhingo.css).
 *
 * The look of an established online cosmetics store: a white page and ink type, the rose of the ZH
 * mark only where it means something (buy, sale, what is active), bold headings, compact
 * sections, product photos on white in bordered cards, and a header with the search in view. The
 * one expressive moment is the banners: pastel panels with real packshots laid onto the colour.
 * The tokens are in docs/superpowers/specs/2026-10-21-zhingo-retail-ui.md.
 */

:root {
	--paper: #ffffff;
	--paper-2: #f6f4f5;
	--paper-3: #ece8ea;
	--ink: #1d1b20;
	--ink-2: #3f3b43;
	--muted: #6b6670;
	--line: #e8e4e6;
	--line-strong: #d3cdd0;
	--line-field: #a8a1a5;
	--plum-tint: #fdecf2;
	--max: 1320px;
	--gutter: max(clamp(16px, 2.6vw, 32px), env(safe-area-inset-left), env(safe-area-inset-right));
	--radius: 8px;
	--r-card: 12px;
	--r-panel: 16px;
	--header-h: 112px;
	--shadow: 0 1px 2px rgb(29 27 32 / 0.05), 0 12px 28px -16px rgb(29 27 32 / 0.28);

	--tone-blush: #fbe5ec;
	--tone-sky: #e2ecf6;
	--tone-sage: #e6efe1;
	--tone-lilac: #ece7f5;
	--tone-peach: #fcebe1;
}

@media (min-width: 1024px) {
	:root {
		--header-h: 124px;
	}
}

body {
	background: var(--paper);
	font-size: 15px;
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
}

/* Sections: a bold title at the start, its link (and slider arrows) at the end. ------------------- */

.section {
	padding-top: clamp(36px, 4.4vw, 56px);
}

.section-head {
	margin-bottom: clamp(14px, 1.6vw, 20px);
}

.section-head--split {
	align-items: center;
	gap: 8px 24px;
}

.section-title {
	margin: 0;
	font-size: clamp(19px, 0.9vw + 12px, 24px);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0;
}

.section-title em {
	color: inherit;
	font-weight: inherit;
}

.link-arrow {
	min-height: 40px;
	color: var(--plum);
	font-size: 14px;
	font-weight: 600;
}

.link-arrow .icon {
	width: 17px;
	height: 17px;
}

@media (hover: hover) {
	.link-arrow:hover {
		color: var(--plum-2);
	}
}

.shop-hero__title,
.blog-hero__title {
	font-size: clamp(22px, 1.4vw + 12px, 32px);
	font-weight: 800;
	line-height: 1.45;
}

/* Buttons: rectangles with soft corners; the main one in rose. ----------------------------------- */

.button,
a.button,
button.button,
input.button,
.wp-element-button,
.comment-form .submit {
	min-height: 48px;
	padding: 0 24px;
	border-color: var(--plum);
	border-radius: 10px;
	background: var(--plum);
	color: #fff;
	font-weight: 700;
}

@media (hover: hover) {
	.button:hover,
	.comment-form .submit:hover {
		border-color: var(--plum-2);
		background: var(--plum-2);
		color: #fff;
	}
}

.button--ghost,
a.button--ghost,
button.button--ghost {
	border-color: var(--line-strong);
	background: #fff;
	color: var(--ink);
}

@media (hover: hover) {
	.button--ghost:hover {
		border-color: var(--ink);
		background: #fff;
		color: var(--ink);
	}
}

.button--small,
a.button--small {
	min-height: 38px;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 13px;
}

.button.loading::after {
	border-color: #fff;
	border-inline-end-color: transparent;
}

/* Header: the logo, the search field, account and bag; the menu on a row of its own. -------------- */

.announcement {
	padding-block: 7px;
	font-size: 12.5px;
}

.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
}

.site-header[data-scrolled] {
	border-color: var(--line);
	box-shadow: 0 10px 24px -20px rgb(29 27 32 / 0.5);
}

.site-header__inner {
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	grid-template-areas:
		"start brand end"
		"search search search";
	gap: 10px 12px;
	height: auto;
	padding-block: 10px 12px;
}

.site-header__start {
	grid-area: start;
}

.site-header__inner > .brand {
	grid-area: brand;
}

.site-header__end {
	grid-area: end;
	gap: 4px;
}

.custom-logo,
.brand img {
	max-height: 40px;
}

.header-search {
	grid-area: search;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--paper-2);
	border-radius: 10px;
	background: var(--paper-2);
	color: var(--muted);
	font: inherit;
	font-size: 14px;
	text-align: start;
	cursor: text;
	transition: border-color 0.2s, background-color 0.2s;
}

.header-search .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--ink-2);
}

.header-search__text {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (hover: hover) {
	.header-search:hover {
		border-color: var(--line-strong);
		background: #fff;
	}
}

.header-account {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.header-account .icon {
	flex: none;
	width: 22px;
	height: 22px;
}

/* Phones and tablets: the account's words are for screen readers only. */
.header-account__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bag-button .icon,
.menu-toggle .icon {
	width: 23px;
	height: 23px;
}

@media (min-width: 1024px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "brand search end";
		gap: 0 clamp(20px, 2.6vw, 40px);
		padding-block: 14px;
	}

	.site-header__start {
		display: none;
	}

	.header-search {
		max-width: 640px;
	}

	.header-account {
		width: auto;
		padding: 0 14px;
		border: 1px solid var(--line);
	}

	.header-account__label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip-path: none;
	}

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

/* The menu row (wide screens; the menu button opens it on smaller ones). */
.primary-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.primary-nav__list {
	gap: 0 clamp(18px, 2vw, 32px);
}

.primary-nav a {
	padding-block: 12px;
	font-size: 14.5px;
	font-weight: 500;
}

.primary-nav__list > li > a::after {
	width: auto;
	height: 2px;
	margin: 0;
	border-radius: 2px;
	scale: 0 1;
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav a[aria-current="page"]::after {
	scale: 1 1;
}

@media (hover: hover) {
	.primary-nav__list > li > a:hover::after {
		scale: 1 1;
	}
}

.primary-nav .sub-menu {
	border-radius: 12px;
}

.primary-nav .primary-nav__phone {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.primary-nav .primary-nav__phone::after {
	display: none;
}

.primary-nav__phone bdi {
	color: var(--ink);
	font-size: 14.5px;
	font-weight: 700;
}

@media (min-width: 1024px) {
	.primary-nav {
		border-top: 1px solid var(--line);
	}
}

@media (max-width: 1199px) {
	.primary-nav .primary-nav__phone {
		display: none;
	}
}

/* Home: the banners. ---------------------------------------------------------------------------- */

.home-banners {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin: clamp(12px, 1.4vw, 20px) auto 0;
}

.home-banners__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 16px;
	height: clamp(340px, 29vw, 420px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-banners__item {
	display: flex;
	min-width: 0;
	min-height: 0;
}

.home-banners__item:first-child {
	grid-row: span 2;
}

.home-banners__grid--1 {
	grid-template-columns: minmax(0, 1fr);
}

.home-banners__grid--2 {
	grid-template-rows: minmax(0, 1fr);
}

.home-banners__grid--2 .home-banners__item:first-child {
	grid-row: auto;
}

.banner {
	--tone: var(--paper-2);
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 100%;
	padding: clamp(18px, 2.2vw, 32px);
	overflow: hidden;
	border-radius: var(--r-panel);
	background: var(--tone);
	color: var(--ink);
	text-decoration: none;
}

.banner--blush {
	--tone: var(--tone-blush);
}

.banner--sky {
	--tone: var(--tone-sky);
}

.banner--sage {
	--tone: var(--tone-sage);
}

.banner--lilac {
	--tone: var(--tone-lilac);
}

.banner--peach {
	--tone: var(--tone-peach);
}

.banner__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	max-width: 54%;
}

.banner__title {
	margin: 0;
	font-size: clamp(17px, 0.8vw + 10px, 22px);
	font-weight: 800;
	line-height: 1.5;
}

.banner__text {
	color: var(--ink-2);
	font-size: 13.5px;
	line-height: 1.85;
}

.banner__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	margin-top: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--ink);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.5;
	transition: background-color 0.2s;
}

.banner__button .icon {
	width: 17px;
	height: 17px;
	transition: translate 0.3s var(--ease);
}

.banner__media {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46%;
	padding: 6px;
	pointer-events: none;
}

/* Packshots on white: multiplied, the white takes the banner's colour (nothing between the photo
   and the banner may start a stacking context: no z-index, transform or opacity on .banner__media). */
.banner__image {
	display: block;
	width: 100%;
	max-height: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: scale 0.5s var(--ease-out);
}

.banner--main .banner__copy {
	gap: 10px;
	max-width: 44%;
	padding-inline-start: clamp(4px, 1.2vw, 20px);
}

.banner--main .banner__title {
	font-size: clamp(26px, 2vw + 8px, 40px);
	line-height: 1.4;
}

.banner--main .banner__text {
	max-width: 32ch;
	font-size: clamp(14px, 0.4vw + 10px, 16px);
}

.banner--main .banner__button {
	margin-top: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	font-size: 15px;
}

.banner--main .banner__media {
	width: 60%;
	align-items: flex-end;
	padding: 0 2% 6%;
}

/* Two or three packshots side by side: the squares overlap (their white melts away), the products
   themselves do not; the middle one a little larger. */
.banner__media--2 .banner__image,
.banner__media--3 .banner__image {
	width: 50%;
	margin-inline: -7%;
}

.banner__media--3 .banner__image {
	width: 46%;
	margin-inline: -9%;
}

.banner__media--3 .banner__image:nth-child(2) {
	width: 54%;
}

/* The floor under the main banner's products. */
@media (min-width: 768px) {
	.banner--main .banner__media::after {
		content: "";
		position: absolute;
		inset-inline: 14%;
		bottom: 8%;
		z-index: -1;
		height: 28px;
		border-radius: 50%;
		background: radial-gradient(closest-side, rgb(120 24 60 / 0.16), transparent);
	}
}

@media (hover: hover) {
	.banner:hover .banner__button {
		background: var(--plum);
	}

	.banner:hover .banner__button .icon {
		translate: calc(3px * var(--dir)) 0;
	}

	.banner:hover .banner__image {
		scale: 1.04;
	}
}

@media (max-width: 1023px) {
	.home-banners__grid {
		height: clamp(300px, 40vw, 380px);
		gap: 12px;
	}

	.banner__copy {
		max-width: 64%;
	}

	.banner__media {
		width: 40%;
	}

	.banner__text {
		display: none;
	}

	.banner--main .banner__text {
		display: block;
	}
}

@media (max-width: 767px) {
	.home-banners__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 10px;
		height: auto;
	}

	.home-banners__item:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.banner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px 14px 0;
	}

	.banner__copy,
	.banner--main .banner__copy {
		max-width: none;
		padding: 0;
	}

	.banner__media,
	.banner--main .banner__media {
		position: static;
		width: 100%;
		margin-top: auto;
		padding: 4px 0 0;
	}

	.banner__image {
		width: 72%;
	}

	.banner--main {
		padding: 20px 18px 0;
	}

	.banner--main .banner__title {
		font-size: 24px;
	}

	.banner--main .banner__text {
		font-size: 13.5px;
	}

	.banner--main .banner__button {
		margin-top: 6px;
		padding: 9px 16px;
		font-size: 14px;
	}

	.banner__title {
		font-size: 16px;
	}

	.banner__button {
		margin-top: 2px;
		padding: 6px 12px;
		font-size: 12.5px;
	}
}

/* Home: what buying here promises. --------------------------------------------------------------- */

.services {
	width: min(100% - 2 * var(--gutter), var(--max));
	margin: 16px auto 0;
}

.services__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
}

.service {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 16px 20px;
}

.service + .service {
	border-inline-start: 1px solid var(--line);
}

.service__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--plum-tint);
	color: var(--plum);
}

.service__icon .icon {
	width: 23px;
	height: 23px;
}

.service__body {
	display: grid;
	min-width: 0;
}

.service__title {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.6;
}

.service__text {
	color: var(--muted);
	font-size: 12.5px;
	line-height: 1.6;
}

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

	.service:nth-child(odd) {
		border-inline-start: 0;
	}

	.service:nth-child(n + 3) {
		border-top: 1px solid var(--line);
	}
}

@media (max-width: 480px) {
	.service {
		gap: 10px;
		padding: 12px;
	}

	.service__icon {
		width: 36px;
		height: 36px;
	}

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

	.service__title {
		font-size: 13px;
	}

	.service__text {
		font-size: 11.5px;
	}
}

/* Home: the categories as circles. --------------------------------------------------------------- */

.home-cats__list {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-bubble {
	display: grid;
	justify-items: center;
	gap: 2px;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.cat-bubble__media {
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 132px;
	aspect-ratio: 1;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--paper-2);
	transition: background-color 0.25s;
}

.cat-bubble__media img {
	width: 72%;
	height: 72%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: scale 0.4s var(--ease-out);
}

.cat-bubble__name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.cat-bubble__count {
	color: var(--muted);
	font-size: 12px;
}

@media (hover: hover) {
	.cat-bubble:hover .cat-bubble__media {
		background: var(--plum-tint);
	}

	.cat-bubble:hover .cat-bubble__media img {
		scale: 1.06;
	}
}

@media (max-width: 767px) {
	.home-cats__list {
		grid-auto-columns: 88px;
		gap: 12px;
		margin-inline: calc(-1 * var(--gutter));
		padding: 2px var(--gutter) 4px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.home-cats__list::-webkit-scrollbar {
		display: none;
	}

	.cat-bubble__name {
		font-size: 13px;
	}
}

/* Product cards: a white card with a hairline border; the photo on white. ------------------------- */

.product-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}

@media (hover: hover) {
	.product-card:hover {
		border-color: var(--line-strong);
		box-shadow: var(--shadow);
	}

	.product-card:hover .product-card__image {
		scale: 1.03;
	}
}

.product-card__media {
	border-radius: 0;
	background: #fff;
}

.product-card.outofstock .product-card__media {
	opacity: 0.62;
	filter: grayscale(0.5);
}

.product-card__body {
	gap: 3px;
	padding: 8px 14px 14px;
}

.product-card__brand {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.product-card__title {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.8;
}

.product-card__title a {
	color: var(--ink);
}

.product-card__price,
.product-card .price {
	gap: 0 8px;
	margin-top: 4px;
	color: var(--ink);
	font-size: 15px;
	font-weight: 800;
}

.product-card .price del {
	font-size: 12.5px;
	font-weight: 400;
}

.product-card .price ins {
	color: var(--plum);
	font-weight: 800;
}

.product-card.outofstock .product-card__price {
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}

/* «فقط ۲ عدد باقی مانده»: in rose, only when few are left. */
.product-card__stock {
	color: var(--plum);
	font-weight: 600;
}

.product-card__stock::before {
	background: var(--plum);
}

.badge {
	padding: 2px 9px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
}

.badge--sale {
	background: var(--plum);
}

@media (max-width: 760px) {
	.product-card__body {
		padding: 6px 10px 12px;
	}

	.product-card__title {
		font-size: 13px;
	}

	.product-card__price,
	.product-card .price {
		font-size: 14px;
	}
}

/* Grids of bordered cards sit closer together; four across beside the shop's filters on wide
   screens. */
.products:is(ul, ol) {
	gap: 16px;
}

@media (min-width: 1280px) {
	.shop-layout .products:is(ul, ol) {
		--cols: 4;
	}
}

@media (max-width: 760px) {
	.products:is(ul, ol) {
		gap: 10px;
	}
}

/* Sliders: five cards across on wide screens, two and a bit on phones. */
.products.product-slider__track {
	grid-auto-columns: clamp(196px, calc((100% - 4 * 16px) / 5), 260px);
	gap: 16px;
}

@media (max-width: 1100px) {
	.products.product-slider__track {
		grid-auto-columns: clamp(190px, 30%, 260px);
	}
}

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

.slider-arrow {
	width: 40px;
	height: 40px;
	border-color: var(--line);
	background: #fff;
}

/* Tabs as chips. */
.slider-tabs {
	gap: 8px;
	margin-bottom: 18px;
	border-bottom: 0;
}

.slider-tab {
	padding: 7px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.slider-tab::after {
	display: none;
}

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

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

	.slider-tab[aria-selected="true"]:hover {
		color: #fff;
	}
}

.slider-panel__more {
	margin-top: 10px;
}

/* Home: two more banners. ------------------------------------------------------------------------ */

.campaigns__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.campaigns__list > li {
	display: flex;
}

.campaigns .banner {
	min-height: clamp(200px, 17vw, 240px);
}

.campaigns .banner__title {
	font-size: clamp(19px, 1vw + 10px, 26px);
}

.campaigns .banner__text {
	display: block;
	max-width: 30ch;
}

@media (max-width: 767px) {
	.campaigns__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.campaigns .banner {
		flex-direction: row;
		align-items: center;
		min-height: 170px;
		padding: 18px;
	}

	.campaigns .banner__copy {
		max-width: 58%;
	}

	.campaigns .banner__media {
		position: absolute;
		width: 44%;
		margin: 0;
		padding: 8px;
	}

	.campaigns .banner__image {
		width: 100%;
	}
}

/* Home: shop by skin need. ----------------------------------------------------------------------- */

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

.need-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0 12px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: #fff;
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}

.need-card__icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--plum-tint);
	color: var(--plum);
}

.need-card__icon svg {
	width: 24px;
	height: 24px;
}

.need-card__name {
	align-self: end;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.6;
}

.need-card__count {
	align-self: start;
	color: var(--muted);
	font-size: 12.5px;
}

@media (hover: hover) {
	.need-card:hover {
		border-color: var(--line-strong);
		box-shadow: var(--shadow);
	}
}

@media (max-width: 560px) {
	.needs__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.need-card {
		gap: 0 10px;
		padding: 10px 12px;
	}

	.need-card__icon {
		width: 38px;
		height: 38px;
	}

	.need-card__icon svg {
		width: 20px;
		height: 20px;
	}

	.need-card__name {
		font-size: 13px;
	}
}

/* Home: the brands as a wall of logos. ----------------------------------------------------------- */

.brand-wall__list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-tile {
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 2px;
	height: 100%;
	padding: 16px 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	background: #fff;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}

.brand-tile__mark {
	display: grid;
	place-items: center;
	width: 100%;
	height: 60px;
	margin-bottom: 6px;
}

.brand-tile__mark img {
	width: auto;
	height: auto;
	max-width: 78%;
	max-height: 52px;
	object-fit: contain;
}

.brand-tile__word {
	color: var(--ink);
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.brand-tile__name {
	font-size: 13.5px;
	font-weight: 700;
}

.brand-tile__count {
	color: var(--muted);
	font-size: 12px;
}

@media (hover: hover) {
	.brand-tile:hover {
		border-color: var(--line-strong);
		box-shadow: var(--shadow);
	}
}

@media (max-width: 1100px) {
	.brand-wall__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.brand-wall__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	/* Three rows on phones; «همهٔ برندها» has the rest. */
	.brand-wall__list > li:nth-child(n + 10) {
		display: none;
	}

	.brand-tile {
		padding: 12px 6px 10px;
	}

	.brand-tile__mark {
		height: 48px;
	}

	.brand-tile__mark img {
		max-height: 40px;
	}

	.brand-tile__word {
		font-size: 13px;
	}

	.brand-tile__name {
		font-size: 12.5px;
	}
}

/* Home: the store itself — about, and the shop in Shiraz. ---------------------------------------- */

.section.home-info {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 16px;
	padding-bottom: clamp(36px, 4.4vw, 56px);
}

.about-z,
.visit {
	display: block;
	padding: clamp(20px, 2.6vw, 32px);
	border-radius: var(--r-panel);
	background: var(--paper-2);
}

.about-z .section-title,
.visit .section-title {
	margin-bottom: 10px;
}

.about-z__text {
	max-width: 72ch;
	margin: 0 0 18px;
	color: var(--ink-2);
	font-size: 14.5px;
	line-height: 2.05;
}

.about-z__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 36px;
	margin: 0 0 6px;
	padding: 0;
	list-style: none;
}

.about-z__fact {
	display: grid;
}

.about-z__fact-number {
	color: var(--plum);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.35;
	font-variant-numeric: tabular-nums;
}

.about-z__fact-label {
	color: var(--muted);
	font-size: 13px;
}

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

.visit__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.9;
}

.visit__row > .icon {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	color: var(--plum);
}

.visit__row a {
	color: var(--ink);
	font-weight: 700;
}

.visit__address {
	font-style: normal;
}

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

.visit__actions .icon {
	width: 17px;
	height: 17px;
}

@media (max-width: 860px) {
	.section.home-info {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}

/* Page and product titles: bold, as the section titles. ----------------------------------------- */

.product_title,
.commerce-page__title,
.order-complete__title,
.auth__title,
.auth-hero__title,
.entry__title,
.info-hero__title,
.page-hero__title,
.not-found__title,
.post-article__title,
.blog-related__title,
.empty-state__new-title,
.club-info h2 {
	font-weight: 800;
	letter-spacing: 0;
}

.product_title {
	font-size: clamp(22px, 1vw + 14px, 30px);
	line-height: 1.55;
}

.page-hero__title,
.info-hero__title,
.entry__title,
.post-article__title,
.commerce-page__title {
	font-size: clamp(24px, 1.4vw + 14px, 36px);
	line-height: 1.45;
}

.related > h2,
.up-sells > h2,
.cross-sells > h2,
.recently-viewed > h2 {
	font-size: clamp(19px, 0.9vw + 12px, 24px);
	font-weight: 800;
	letter-spacing: 0;
}

.drawer-nav > ul > li > a {
	font-weight: 600;
}

.search-sheet__form input[type="search"] {
	font-weight: 500;
}

/* Product page: the brand as a chip, the product type beside it. */
.product-summary > .product-brand {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 10px;
	padding: 3px 10px;
	border-radius: 6px;
	background: var(--paper-2);
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
}

.product-summary > .product-brand + .product-eyebrow {
	margin-inline-start: 10px;
	color: var(--muted);
	font-size: 13px;
}

/* The description's own headings (from the store's copy) stay below the product's name. */
.product-accordion__panel :is(h2, h3, h4) {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.7;
}

/* Footer: quieter. ------------------------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--line);
}
