/* ==========================================================================
   Attrap — beige and olive. The tokens below are the source of truth
   (see .claude/skills/attrap-brand/SKILL.md).
   ========================================================================== */

:root {
	--linen: #F3EDE2;
	--ivory: #FAF6EF;
	--sand: #E7DECF;
	--ink: #2B3121;
	--olive: #4A5733;
	--olive-deep: #2F3822;
	--muted: #5E6450;
	--brass: #A2844A;
	--brass-ink: #7E6531;
	--brass-light: #E2C98F;
	--clay: #A4502F;
	--line: rgba(62, 74, 44, .16);
	--line-strong: rgba(62, 74, 44, .3);
	--on-deep: #FAF6EF;
	--on-deep-2: #D9CDB5;

	--font-display: "Markazi Text", "Noto Naskh Arabic", serif;
	--font-text: "Noto Sans Arabic", system-ui, sans-serif;

	--radius: 4px;
	--radius-card: 10px;
	--shadow: 0 18px 40px -24px rgba(47, 56, 34, .38);
	--shadow-soft: 0 8px 24px -16px rgba(47, 56, 34, .3);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--head: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1000px) {
	:root { --head: 84px; }
}

/* Base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.85;
	color: var(--ink);
	background-color: var(--linen);
	/* A faint paper grain. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .2 0 0 0 0 .13 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--olive);
	margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

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

a { color: var(--olive); }

button { font: inherit; }

:focus-visible {
	outline: 2px solid var(--olive);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--olive);
	color: var(--ivory);
}

[hidden] { display: none !important; }

[id] { scroll-margin-top: calc(var(--head) + 24px); }

.sr,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip {
	position: absolute;
	inset-inline-start: 1rem;
	top: -100px;
	z-index: 100;
	padding: .6rem 1rem;
	background: var(--olive);
	color: var(--ivory);
	border-radius: var(--radius);
}

.skip:focus { top: 1rem; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--text { max-width: calc(820px + var(--gutter) * 2); }

.icon {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Labels, buttons, chips
   ========================================================================== */

.label {
	display: inline-flex;
	align-items: center;
	gap: .65em;
	margin: 0 0 .7rem;
	font-size: .84rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--brass-ink);
}

.label::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--brass);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	min-height: 50px;
	padding: .7em 1.7em;
	border: 1px solid var(--olive);
	border-radius: var(--radius);
	background: var(--olive);
	color: var(--ivory);
	font: 600 1rem/1.2 var(--font-text);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}

.btn:hover {
	background: var(--olive-deep);
	border-color: var(--olive-deep);
	transform: translateY(-1px);
	box-shadow: var(--shadow-soft);
}

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

.btn--line {
	background: transparent;
	color: var(--olive);
}

.btn--line:hover {
	background: var(--olive);
	color: var(--ivory);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line-strong);
	color: var(--olive);
}

.btn--ghost:hover {
	background: var(--sand);
	border-color: var(--sand);
	color: var(--olive-deep);
}

.btn--sm {
	min-height: 44px;
	padding: .5em 1.1em;
	font-size: .92rem;
}

.btn--wide { width: 100%; }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--olive);
	cursor: pointer;
	transition: background-color .2s;
}

.icon-btn:hover { background: var(--sand); }

.chips {
	display: flex;
	gap: .5rem;
	margin: 0;
	padding: 0 0 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	min-height: 42px;
	padding: .35em 1.1em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--ivory);
	color: var(--ink);
	font-size: .92rem;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

.chip:hover { border-color: var(--olive); }

.chip.is-on {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--ivory);
}

.chip .icon {
	width: 18px;
	height: 18px;
	color: var(--brass-ink);
}

.chip.is-on .icon { color: var(--brass-light); }

/* Top bar and header
   ========================================================================== */

.topbar {
	background: var(--olive-deep);
	color: var(--on-deep-2);
	font-size: .82rem;
}

.topbar__in {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2.4rem;
	min-height: 36px;
}

.topbar p {
	display: flex;
	align-items: center;
	gap: .5em;
	margin: 0;
}

.topbar .icon {
	width: 16px;
	height: 16px;
	color: var(--brass-light);
}

.topbar__more { display: none !important; }

.site-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--ivory);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s;
}

.site-head.is-stuck { box-shadow: 0 12px 30px -24px rgba(47, 56, 34, .55); }

.site-head__in {
	display: flex;
	align-items: center;
	gap: .5rem;
	min-height: var(--head);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	margin-inline: auto;
	color: var(--olive);
	text-decoration: none;
}

.brand__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line);
}

.brand__name {
	font: 600 1.7rem/1 var(--font-display);
	white-space: nowrap;
}

.site-nav { display: none; }

.site-head__tools {
	display: flex;
	gap: .15rem;
}

.basket-btn__count {
	position: absolute;
	top: 3px;
	inset-inline-end: 1px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 10px;
	background: var(--clay);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 1;
}

.basket-btn.is-bump { animation: bump .45s var(--ease); }

@keyframes bump {
	40% { transform: scale(1.18); }
}

@media (min-width: 900px) {
	.topbar__more { display: flex !important; }
}

@media (min-width: 1000px) {
	.site-head__menu { display: none; }
	.brand { margin-inline: 0; }
	.brand__logo { width: 52px; height: 52px; }
	.brand__name { font-size: 1.9rem; }

	.site-nav {
		display: block;
		margin-inline: auto;
	}

	.site-nav__list {
		display: flex;
		gap: 2rem;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.site-nav a {
		position: relative;
		display: block;
		padding: .4rem 0;
		color: var(--ink);
		font-size: .98rem;
		font-weight: 500;
		text-decoration: none;
	}

	.site-nav a::after {
		content: "";
		position: absolute;
		inset-inline: 0;
		bottom: 0;
		height: 1px;
		background: var(--brass);
		transform: scaleX(0);
		transition: transform .35s var(--ease);
	}

	.site-nav a:hover::after,
	.site-nav .current-menu-item a::after { transform: scaleX(1); }
}

/* Search panel
   ========================================================================== */

.search-panel {
	position: sticky;
	top: var(--head);
	z-index: 39;
	background: var(--ivory);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
}

.search-panel__form {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding-block: .9rem;
}

.search-panel__form > .icon { color: var(--brass-ink); }

.search-panel input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: .5em .2em;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	background: transparent;
	color: var(--ink);
	font: 500 1.15rem var(--font-text);
}

.search-panel input[type="search"]:focus {
	outline: none;
	border-bottom-color: var(--olive);
}

/* Drawers, scrim and toast
   ========================================================================== */

.drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 60;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	background: var(--ivory);
	box-shadow: 0 0 60px rgba(31, 37, 22, .25);
	transition: transform .45s var(--ease);
}

.drawer--nav {
	inset-inline-start: 0;
	width: min(360px, 88vw);
	transform: translateX(100%);
}

.drawer--basket {
	inset-inline-end: 0;
	transform: translateX(-100%);
}

.drawer.is-open { transform: none; }

/* Signed-in editors see WordPress's admin bar above everything. */
.admin-bar .drawer { top: 46px; }

@media (min-width: 601px) {
	.admin-bar .site-head { top: 46px; }
}

@media (min-width: 783px) {
	.admin-bar .drawer,
	.admin-bar .site-head { top: 32px; }
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--head);
	padding: 0 1.25rem;
	border-bottom: 1px solid var(--line);
}

.drawer__head .brand__name { color: var(--olive); }

.drawer__title {
	margin: 0;
	font-size: 1.8rem;
}

.drawer__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1.25rem;
}

.drawer__foot {
	padding: 1rem 1.25rem 1.25rem;
	border-top: 1px solid var(--line);
	background: var(--ivory);
}

.drawer-nav__list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.drawer-nav__list a {
	display: block;
	padding: .8rem 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font: 600 1.45rem/1.3 var(--font-display);
	text-decoration: none;
}

.drawer-nav__branches {
	display: grid;
	gap: .6rem;
}

.drawer-nav__branches a {
	display: flex;
	align-items: center;
	gap: .6rem;
	color: var(--olive);
	font-weight: 600;
	text-decoration: none;
}

.drawer-nav__branches .icon { color: var(--brass-ink); }

.scrim {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: rgba(31, 37, 22, .45);
	opacity: 0;
	transition: opacity .35s;
}

.scrim.is-on { opacity: 1; }

.toast {
	position: fixed;
	bottom: 1.5rem;
	left: 50%;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: calc(100vw - 2rem);
	padding: .8rem .8rem .8rem 1.2rem;
	padding-inline-start: 1.2rem;
	border-radius: var(--radius-card);
	background: var(--olive-deep);
	color: var(--ivory);
	font-size: .95rem;
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 20px);
	transition: opacity .3s, transform .4s var(--ease);
}

.toast.is-on {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.toast button {
	padding: .45em .9em;
	border: 1px solid rgba(250, 246, 239, .4);
	border-radius: var(--radius);
	background: transparent;
	color: var(--ivory);
	font-weight: 600;
	cursor: pointer;
}

/* Slider
   ========================================================================== */

.slider {
	position: relative;
	height: clamp(560px, calc(100svh - var(--head) - 36px), 820px);
	overflow: hidden;
	background: var(--sand);
	isolation: isolate;
	touch-action: pan-y;
}

.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s var(--ease), visibility 0s 1.1s;
}

.slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.1s var(--ease), visibility 0s;
}

/* A slow zoom while the slide shows; --px and --py follow the mouse (app.js). */
.slide__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	scale: 1.08;
	translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -12px);
	transition: scale 8s linear, translate 1.2s var(--ease);
}

.slide.is-active .slide__img { scale: 1; }

.slide__wrap {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding-bottom: 4.5rem;
}

.slide--end .slide__wrap { justify-content: flex-end; }

.slide__card,
.band__card {
	position: relative;
	max-width: 520px;
	padding: clamp(1.6rem, 3.4vw, 2.75rem);
	background: var(--ivory);
	box-shadow: var(--shadow);
}

/* The brass mount inside the card, like the prints in the shop's frames. */
.slide__card::before,
.band__card::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(162, 132, 74, .55);
	pointer-events: none;
}

.slide__card {
	translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 8px);
	transition: translate 1.2s var(--ease);
}

/* The card's lines come in one after another on the current slide. */
.slide__card > * {
	position: relative;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--ease), transform .8s var(--ease);
}

.slide.is-active .slide__card > * {
	opacity: 1;
	transform: none;
}

.slide.is-active .slide__card > :nth-child(1) { transition-delay: .35s; }
.slide.is-active .slide__card > :nth-child(2) { transition-delay: .5s; }
.slide.is-active .slide__card > :nth-child(3) { transition-delay: .65s; }
.slide.is-active .slide__card > :nth-child(4) { transition-delay: .8s; }

.slide__title {
	margin: 0 0 .4rem;
	font-size: clamp(2.8rem, 6vw, 4.8rem);
	line-height: 1.05;
	color: var(--olive-deep);
}

.slide__text {
	margin: 0 0 1.5rem;
	font-size: 1.1rem;
	color: var(--muted);
}

/* Under the shop's name, the slogan in the display face. */
h1.slide__title + .slide__text {
	font: 600 clamp(1.45rem, 2.6vw, 2rem)/1.35 var(--font-display);
	color: var(--brass-ink);
}

.slide__cta {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
}

.slider__ui {
	position: absolute;
	inset-inline: 0;
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	pointer-events: none;
}

.slider__ui > * { pointer-events: auto; }

.slider__dots {
	display: flex;
	gap: .4rem;
}

.slider__dot {
	position: relative;
	width: 56px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.slider__dot span {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 3px;
	margin-top: -1.5px;
	overflow: hidden;
	background: rgba(250, 246, 239, .7);
	box-shadow: 0 0 0 1px rgba(47, 56, 34, .14);
}

/* The current slide's bar fills with brass; when it is full the slider moves on (app.js). */
.slider__dot span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--brass);
	transform: scaleX(0);
	transform-origin: right;
}

.slider__dot[aria-current="true"] span::after { animation: fill var(--slide-time, 7s) linear forwards; }

.slider.is-paused .slider__dot span::after,
.slider.is-held .slider__dot span::after { animation-play-state: paused; }

@keyframes fill {
	to { transform: scaleX(1); }
}

.slider__nav {
	display: flex;
	gap: .5rem;
}

.slider__btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ivory);
	color: var(--olive);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	transition: background-color .25s, color .25s;
}

.slider__btn:hover {
	background: var(--olive);
	color: var(--ivory);
}

/* Right to left, «السابقة» points right. */
.slider__btn:first-child .icon { scale: -1 1; }

.slider__pause {
	width: 12px;
	height: 14px;
	border-right: 4px solid currentColor;
	border-left: 4px solid currentColor;
}

.slider.is-paused .slider__pause {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent currentColor;
}

@media (max-width: 767px) {
	.slider { height: clamp(600px, calc(100svh - var(--head)), 760px); }

	.slide__wrap,
	.slide--end .slide__wrap {
		align-items: flex-end;
		justify-content: stretch;
		padding-bottom: 5.25rem;
	}

	.slide__card {
		max-width: none;
		width: 100%;
		padding: 1.4rem 1.3rem;
	}

	.slide__title { font-size: 2.7rem; }
	.slide__text { margin-bottom: 1.1rem; font-size: 1rem; }
	.slider__dot { width: 40px; }
	.slider__btn { width: 42px; height: 42px; }
}

/* Marquee: the owner's three phrases and the shop's facts, moving slowly
   ========================================================================== */

.marquee {
	overflow: hidden;
	border-block: 1px solid rgba(162, 132, 74, .35);
	background: var(--olive-deep);
	color: var(--on-deep);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 50s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__list {
	display: flex;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.marquee__list li {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding-block: 1.05rem;
	white-space: nowrap;
	font: 600 1.3rem/1 var(--font-display);
}

/* A small brass diamond between the phrases. */
.marquee__list li::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-inline: 2rem;
	background: var(--brass);
	rotate: 45deg;
}

.marquee__list .icon {
	width: 20px;
	height: 20px;
	color: var(--brass-light);
}

/* Right to left the second copy sits on the left, so the row moves right by one copy. */
@keyframes marquee {
	to { transform: translateX(50%); }
}

/* Sections
   ========================================================================== */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section--sand { background: var(--sand); }
.section--ivory { background: var(--ivory); }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-title {
	margin: 0;
	font-size: clamp(2.2rem, 4.4vw, 3.2rem);
	line-height: 1.15;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--brass);
	color: var(--olive);
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.link-more .icon {
	width: 18px;
	height: 18px;
	transition: transform .3s var(--ease);
}

.link-more:hover .icon { transform: translateX(-4px); }

/* Circles: categories and occasions
   ========================================================================== */

.circles {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	gap: clamp(1rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.circles--occasions { gap: clamp(.75rem, 2vw, 1.5rem); }

.circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.circle__disc {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 210px;
	aspect-ratio: 1;
	margin-bottom: .75rem;
	border-radius: 50%;
	background: var(--sand);
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow .4s, translate .4s var(--ease);
}

/* --px and --py follow the pointer (app.js); --zoom comes from hover. */
.circle__disc img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -10px);
	scale: var(--zoom, 1);
	transition: translate .7s var(--ease), scale .8s var(--ease);
}

/* A dashed brass ring that turns while the pointer is on the circle. */
.circle__ring {
	position: absolute;
	inset: -8px;
	width: calc(100% + 16px);
	height: calc(100% + 16px);
	fill: none;
	stroke: var(--brass);
	stroke-width: .8;
	stroke-dasharray: 2 3.2;
	opacity: 0;
	transition: opacity .4s;
	pointer-events: none;
}

.circle:hover .circle__ring,
.circle:focus-visible .circle__ring {
	opacity: 1;
	animation: spin 16s linear infinite;
}

.circle:hover .circle__disc {
	--zoom: 1.08;
	box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
	translate: 0 -4px;
}

.circle__name {
	font: 600 1.35rem/1.2 var(--font-display);
	color: var(--olive);
}

.circle__count {
	font-size: .82rem;
	color: var(--muted);
}

.circle--icon .circle__disc {
	max-width: 118px;
	background: var(--ivory);
	color: var(--olive);
}

.circle__icon {
	width: 42%;
	height: 42%;
	stroke-width: 1.3;
	transition: scale .45s var(--ease), color .3s;
}

.circle--icon:hover .circle__icon {
	color: var(--brass-ink);
	scale: 1.14;
}

.circle--icon .circle__name { font-size: 1.12rem; }

.occasion-head {
	margin: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(1.5rem, 3vw, 2.25rem);
	text-align: center;
}

.occasion-head .label { justify-content: center; }

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Phones: each row scrolls sideways to the screen's edges. */
@media (max-width: 767px) {
	.circles {
		grid-auto-columns: 36%;
		margin-inline: calc(var(--gutter) * -1);
		padding: .6rem var(--gutter) .5rem;
		overflow-x: auto;
		scroll-padding-inline: var(--gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.circles::-webkit-scrollbar { display: none; }
	.circles > li { scroll-snap-align: start; }
	.circles--occasions { grid-auto-columns: 25%; }
	.circle__name { font-size: 1.15rem; }
	.circle--icon .circle__name { font-size: 1rem; }
}

/* Product grid and card
   ========================================================================== */

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(.75rem, 2.4vw, 1.5rem);
}

@media (min-width: 768px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--ivory);
	box-shadow: 0 0 0 1px var(--line);
	transition: box-shadow .4s, translate .4s var(--ease);
}

.card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--ivory);
	isolation: isolate;
}

/* A brass mount that closes in around the photo on hover. */
.card__media::after {
	content: "";
	position: absolute;
	inset: 10px;
	z-index: 1;
	border: 1px solid var(--brass);
	border-radius: 3px;
	opacity: 0;
	scale: 1.04;
	transition: opacity .45s, scale .6s var(--ease);
	pointer-events: none;
}

.card__photo {
	display: block;
	width: 100%;
	height: 100%;
}

/* --px and --py follow the pointer (app.js); --zoom comes from the card's hover. */
.card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -22px);
	scale: var(--zoom, 1);
	transition: translate .7s var(--ease), scale .9s var(--ease);
}

.card__badge {
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	z-index: 2;
	padding: .2em .8em;
	border-radius: 999px;
	background: var(--clay);
	color: var(--ivory);
	font-size: .78rem;
	font-weight: 700;
	line-height: 1.6;
}

/* Touch screens: a round basket button on the photo's corner. */
.card__add {
	position: absolute;
	bottom: 10px;
	inset-inline-end: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--olive);
	color: var(--ivory);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	transition: background-color .25s, translate .45s var(--ease), opacity .3s;
}

.card__add .icon {
	width: 22px;
	height: 22px;
}

.card__add-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.card__add:hover,
.card__add.is-done { background: var(--olive-deep); }

.card__add.is-done { animation: bump .45s var(--ease); }

.card__quick { display: none; }

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: .2rem;
	padding: .9rem 1.05rem 1.05rem;
	border-top: 1px solid var(--line);
}

.card__cat {
	margin: 0;
	font-size: .78rem;
	font-weight: 600;
	color: var(--brass-ink);
}

.card__title {
	margin: 0;
	font: 600 1.3rem/1.3 var(--font-display);
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
	transition: color .25s;
}

.card__title a:hover { color: var(--olive); }

.card__price {
	margin-top: auto;
	padding-top: .4rem;
}

/* With a mouse: the card lifts, the mount closes in, and the two buttons slide in. */
@media (hover: hover) and (pointer: fine) {
	.card:hover {
		--zoom: 1.07;
		box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
		translate: 0 -4px;
	}

	.card:hover .card__media::after,
	.card:has(:focus-visible) .card__media::after {
		opacity: .6;
		scale: 1;
	}

	.card__add {
		inset-inline: 10px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .5em;
		width: auto;
		height: 48px;
		border-radius: var(--radius);
		box-shadow: none;
		font: 600 .95rem var(--font-text);
		opacity: 0;
		translate: 0 calc(100% + 14px);
	}

	.card__add-label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}

	.card__quick {
		position: absolute;
		top: 18px;
		inset-inline-end: 18px;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: 50%;
		background: var(--ivory);
		color: var(--olive);
		cursor: pointer;
		opacity: 0;
		translate: 0 -8px;
		transition: opacity .3s .06s, translate .45s var(--ease) .06s, background-color .25s, color .25s;
	}

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

	.card__quick:hover {
		background: var(--olive);
		border-color: var(--olive);
		color: var(--ivory);
	}

	.card:hover .card__add,
	.card:has(:focus-visible) .card__add,
	.card:hover .card__quick,
	.card:has(:focus-visible) .card__quick {
		opacity: 1;
		translate: 0 0;
	}
}

@media (max-width: 599px) {
	.card__body { padding: .7rem .75rem .85rem; }
	.card__title { font-size: 1.12rem; }
	.card .price-tag > .money .money__n { font-size: 1.4rem; }

	.card__badge {
		top: 10px;
		inset-inline-start: 10px;
	}
}

/* Prices
   ========================================================================== */

.price-tag {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .15rem .7rem;
	margin: 0;
}

.money { white-space: nowrap; }

.money__n {
	font: 600 1.65rem/1 var(--font-display);
	color: var(--olive-deep);
}

.money__c {
	font-size: .78rem;
	font-weight: 600;
	color: var(--muted);
}

.price-tag.is-sale > .money .money__n { color: var(--clay); }

.price-tag__was {
	color: var(--muted);
	text-decoration-color: var(--clay);
}

.price-tag__was .money__n {
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--muted);
}

.price-tag__off {
	align-self: center;
	padding: .1em .75em;
	border-radius: 999px;
	background: var(--clay);
	color: var(--ivory);
	font-size: .8rem;
	font-weight: 700;
}

/* WooCommerce's own price text, for product types without a price tag. */
.price del,
.price-tag > del:not(.price-tag__was) {
	margin-inline-end: .35em;
	color: var(--muted);
	font-weight: 400;
}

.price ins,
.price-tag ins {
	color: var(--clay);
	text-decoration: none;
}

/* Product rails
   ========================================================================== */

.rail {
	--rail-n: 2.25;
	--rail-gap: clamp(.75rem, 2.4vw, 1.5rem);
	position: relative;
	container-type: inline-size;
}

@media (min-width: 768px) {
	.rail { --rail-n: 3; }
}

@media (min-width: 1100px) {
	.rail { --rail-n: 4; }
}

.rail__track {
	display: grid;
	grid-auto-columns: calc((100% - var(--rail-gap) * (var(--rail-n) - 1)) / var(--rail-n));
	grid-auto-flow: column;
	gap: var(--rail-gap);
	/* Room for the lifted card and its shadow inside the scroller. */
	margin-block: -10px -30px;
	padding-block: 10px 30px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.rail__track::-webkit-scrollbar { display: none; }

.rail__track > * { scroll-snap-align: start; }

/* Phones: the row runs to the screen's edges, so the next card peeks in. */
@media (max-width: 767px) {
	.rail__track {
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
		scroll-padding-inline: var(--gutter);
	}
}

/* The arrows sit at the middle of the photos: a card's photo is 4/3 of its width. */
.rail__btn {
	position: absolute;
	top: calc((100cqi - var(--rail-gap) * (var(--rail-n) - 1)) / var(--rail-n) * 2 / 3 - 24px);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--ivory);
	color: var(--olive);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	transition: background-color .25s, color .25s, opacity .3s;
}

.rail__btn:hover {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--ivory);
}

.rail__btn:disabled {
	opacity: 0;
	pointer-events: none;
}

.rail__btn--prev { inset-inline-start: -24px; }
.rail__btn--prev .icon { scale: -1 1; }
.rail__btn--next { inset-inline-end: -24px; }

@media (hover: none), (pointer: coarse), (max-width: 767px) {
	.rail__btn { display: none; }
}

/* Occasions
   ========================================================================== */

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

.occasion {
	display: flex;
	align-items: center;
	gap: .9rem;
	height: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--ivory);
	color: var(--olive);
	text-decoration: none;
	transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.occasion:hover {
	border-color: var(--brass);
	box-shadow: var(--shadow-soft);
	transform: translateY(-2px);
}

.occasion__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--olive);
}

.occasion__name { font: 600 1.35rem/1.2 var(--font-display); }

@media (min-width: 800px) {
	.occasions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Photo bands between the rows (Unsplash photos, never products; see build_images.py)
   ========================================================================== */

.band {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(440px, 64vh, 640px);
	overflow: hidden;
	background: var(--sand);
	isolation: isolate;
}

.band__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	transition: clip-path 1.3s var(--ease);
}

/* The photo is taller than the band, so it can move slower than the page (--shift, app.js). */
.band__img {
	position: absolute;
	top: -10%;
	left: 0;
	width: 100%;
	height: 120%;
	object-fit: cover;
	translate: 0 var(--shift, 0px);
}

.band__wrap { display: flex; }
.band--end .band__wrap { justify-content: flex-end; }

.band__card { margin-block: clamp(2.5rem, 6vw, 4rem); }

.band__title {
	margin: 0 0 .5rem;
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	line-height: 1.15;
	color: var(--olive-deep);
}

.band__text {
	margin: 0 0 1.4rem;
	color: var(--muted);
}

.band .btn .icon {
	width: 18px;
	height: 18px;
}

/* With the script: the photo opens like a curtain and the card rises, once. */
.reveal .band__media { clip-path: inset(7% 6% round 18px); }
.reveal .band.is-in .band__media { clip-path: inset(0 round 0); }

.reveal .band__card {
	opacity: 0;
	translate: 0 34px;
	transition: opacity .9s var(--ease) .3s, translate 1s var(--ease) .3s;
}

.reveal .band.is-in .band__card {
	opacity: 1;
	translate: 0 0;
}

.band--closing { min-height: clamp(480px, 72vh, 680px); }

@media (max-width: 699px) {
	.band {
		align-items: flex-end;
		min-height: 560px;
	}

	.band__card {
		max-width: none;
		margin-block: 0 var(--gutter);
		padding: 1.4rem 1.3rem;
	}
}

/* Boxes: a photo beside four cards
   ========================================================================== */

.duo__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.duo__media {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow);
}

.duo__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: scale 1.2s var(--ease);
}

.duo__media:hover img { scale: 1.04; }

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

@media (min-width: 900px) {
	.duo__grid { grid-template-columns: .85fr 1.15fr; }
}

/* «واتساب» and «اتصل بنا» with both branches
   ========================================================================== */

.pick { position: relative; }

.pick__btn {
	list-style: none;
	user-select: none;
}

.pick__btn::-webkit-details-marker { display: none; }

.pick[open] .pick__btn {
	background: var(--olive);
	color: var(--ivory);
}

.pick__list {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	z-index: 5;
	min-width: 260px;
	margin: 0;
	padding: .4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--ivory);
	box-shadow: var(--shadow);
	list-style: none;
}

/* In the slider and the bands the list opens upwards, inside the photo. */
.slide__cta .pick__list,
.band .pick__list {
	top: auto;
	bottom: calc(100% + 8px);
}

.pick__list a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem .8rem;
	border-radius: var(--radius);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}

.pick__list a:hover {
	background: var(--sand);
	color: var(--olive-deep);
}

.pick__num {
	color: var(--muted);
	font-weight: 400;
}

/* Story
   ========================================================================== */

.story__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.story__text p:not(.label) {
	max-width: 32em;
	color: var(--muted);
}

.story__text .section-title { margin-bottom: 1rem; }

.story__photos {
	position: relative;
	justify-self: center;
	width: 100%;
	max-width: 460px;
	min-height: 440px;
}

.story__photo {
	position: absolute;
	width: 54%;
	border: 10px solid var(--ivory);
	box-shadow: var(--shadow);
}

.story__photo--a {
	top: 0;
	inset-inline-start: 4%;
	transform: rotate(-2.2deg);
}

.story__photo--b {
	bottom: 0;
	inset-inline-end: 4%;
	transform: rotate(2.6deg);
}

@media (min-width: 900px) {
	.story__grid { grid-template-columns: 1fr 1fr; }
	.story__photos { min-height: 520px; }
}

/* Steps
   ========================================================================== */

.steps {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps li {
	position: relative;
	padding: 1.6rem 1.4rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--linen);
}

.steps__n {
	display: block;
	margin-bottom: .5rem;
	font: 600 2.8rem/1 var(--font-display);
	color: var(--brass);
}

.steps h3 {
	margin: 0 0 .35rem;
	font-size: 1.5rem;
}

.steps p {
	margin: 0;
	font-size: .95rem;
	color: var(--muted);
}

@media (min-width: 700px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* Branches and rating
   ========================================================================== */

.branches {
	display: grid;
	gap: 1.1rem;
}

.rating {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	border-radius: var(--radius-card);
	background: var(--olive);
	color: var(--ivory);
}

.rating__score {
	margin: 0;
	font: 600 5rem/1 var(--font-display);
}

.rating__stars {
	display: flex;
	gap: .2rem;
	margin: .5rem 0 .6rem;
}

.rating__stars .icon {
	width: 20px;
	height: 20px;
	fill: var(--brass-light);
	stroke: var(--brass-light);
}

.rating__text {
	margin: 0;
	color: var(--on-deep-2);
}

.branch {
	padding: 1.6rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--ivory);
}

.branch .label { margin-bottom: .4rem; }

.branch__name {
	margin: 0 0 .9rem;
	font-size: 1.65rem;
}

.branch__name a {
	color: var(--olive);
	text-decoration: none;
}

.branch__facts {
	display: grid;
	gap: .55rem;
	margin: 0 0 1.3rem;
	padding: 0;
	font-size: .93rem;
	line-height: 1.6;
	color: var(--muted);
	list-style: none;
}

.branch__facts li {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
}

.branch__facts .icon {
	width: 19px;
	height: 19px;
	margin-top: .15em;
	color: var(--brass);
}

.branch__facts a {
	color: var(--olive);
	font-weight: 600;
	text-underline-offset: 3px;
}

.branch__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

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

.rating__links {
	display: grid;
	gap: .45rem;
	margin: 1.3rem 0 0;
	padding: 0;
	list-style: none;
}

.rating__links a {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(226, 201, 143, .5);
	color: var(--ivory);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
}

.rating__links .icon {
	width: 16px;
	height: 16px;
	color: var(--brass-light);
	transition: transform .3s var(--ease);
}

.rating__links a:hover .icon { transform: translateX(-4px); }

/* On the home page each branch card opens with its map, toned to the page's beige. */
.branch__map {
	margin: -1.6rem -1.5rem 1.3rem;
	overflow: hidden;
	border-radius: var(--radius-card) var(--radius-card) 0 0;
	aspect-ratio: 16 / 9;
	background: var(--sand);
}

.branch__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(.3) sepia(.12);
}

@media (min-width: 900px) {
	.branches { grid-template-columns: .8fr 1fr 1fr; }
}

/* Pages and their content
   ========================================================================== */

.page-hero {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.8rem, 3vw, 2.6rem);
	border-bottom: 1px solid var(--line);
	background: var(--ivory);
}

.page-title {
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1.1;
}

.page-lede {
	max-width: 40em;
	margin: 1rem 0 0;
	color: var(--muted);
}

.crumbs {
	margin-bottom: 1rem;
	font-size: .84rem;
	color: var(--muted);
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover { color: var(--olive); }

.prose { padding-bottom: clamp(3rem, 6vw, 5rem); }

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose .af-h2 {
	margin: 2.2em 0 .7em;
	font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.prose h3 { font-size: 1.45rem; }

.prose a {
	color: var(--olive);
	text-decoration-color: var(--brass);
	text-underline-offset: 4px;
}

.prose ul:not([class]),
.prose ol:not([class]) { padding-inline-start: 1.3em; }

.af-lede {
	padding-inline-start: 1.2rem;
	border-inline-start: 2px solid var(--brass);
	font-size: 1.2rem;
	line-height: 1.9;
	color: var(--ink);
}

.af-grid,
.af-branches {
	display: grid;
	gap: 1rem;
	padding: 0;
	list-style: none;
}

.af-grid li {
	display: flex;
	gap: 1rem;
	padding: 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--ivory);
}

.af-n {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sand);
	font: 600 1.45rem/1 var(--font-display);
	color: var(--olive);
}

.af-grid h3 {
	margin: 0 0 .3rem;
	font-size: 1.3rem;
}

.af-grid p {
	margin: 0;
	font-size: .95rem;
	color: var(--muted);
}

.af-note {
	padding: 1rem 1.2rem;
	border-radius: var(--radius-card);
	background: var(--sand);
	font-size: .95rem;
}

.af-branch {
	padding: 1.3rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--ivory);
}

.af-branch h3 { margin: 0 0 .3rem; }

.af-addr {
	margin: 0 0 .9rem;
	font-size: .93rem;
	color: var(--muted);
}

.af-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0 0 .8rem;
}

.prose .af-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .45em 1.1em;
	border: 1px solid var(--olive);
	border-radius: var(--radius);
	color: var(--olive);
	font-size: .92rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .25s, color .25s;
}

.prose .af-btn:hover,
.prose .af-call {
	background: var(--olive);
	color: var(--ivory);
}

.prose .af-call:hover { background: var(--olive-deep); }

.prose .af-map { border-color: var(--line-strong); }

.af-hours {
	margin: 0;
	font-size: .85rem;
	color: var(--muted);
}

.af-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	padding: 0;
	list-style: none;
}

.prose .af-chips a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: .3em 1em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--ivory);
	color: var(--ink);
	font-size: .92rem;
	text-decoration: none;
}

.prose .af-chips a:hover {
	border-color: var(--olive);
	color: var(--olive);
}

.af-faq { border-top: 1px solid var(--line); }

.af-faq details { border-bottom: 1px solid var(--line); }

.af-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	color: var(--olive);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.af-faq summary::-webkit-details-marker { display: none; }

.af-faq summary::after {
	content: "+";
	flex: none;
	font: 400 1.6rem/1 var(--font-text);
	color: var(--brass-ink);
	transition: transform .3s var(--ease);
}

.af-faq details[open] summary::after { transform: rotate(45deg); }

.af-a {
	padding: 0 0 1.1rem;
	color: var(--muted);
}

.af-cta {
	padding: clamp(1.4rem, 3vw, 2rem);
	border-radius: var(--radius-card);
	background: var(--olive-deep);
	color: var(--on-deep-2);
}

.af-cta h2 {
	margin-top: 0;
	color: var(--ivory);
}

.prose .af-cta .af-btn {
	border-color: var(--ivory);
	background: transparent;
	color: var(--ivory);
}

.prose .af-cta .af-call {
	background: var(--ivory);
	color: var(--olive-deep);
}

@media (min-width: 700px) {
	.af-grid,
	.af-branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cta-band {
	padding-block: clamp(2.5rem, 5vw, 3.5rem);
	background: var(--sand);
}

.cta-band__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.cta-band .label { margin-bottom: .3rem; }

.cta-band__title {
	margin: 0;
	font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.3 var(--font-display);
	color: var(--olive);
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.post-list {
	display: grid;
	gap: 1.5rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

.post-list__title {
	margin: 0 0 .3rem;
	font-size: 1.7rem;
}

.post-list__title a {
	color: var(--olive);
	text-decoration: none;
}

/* Shop lists
   ========================================================================== */

.shop {
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.filters {
	display: grid;
	gap: .7rem;
	margin-bottom: 1.6rem;
}

.shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-bottom: 1.4rem;
	font-size: .92rem;
	color: var(--muted);
}

.shop-bar p { margin: 0; }

.woocommerce-ordering select,
.field input,
.field select,
.field textarea,
.qty input {
	font: inherit;
	color: var(--ink);
}

.woocommerce-ordering select {
	min-height: 44px;
	padding: .4em 2.4em .4em 1em;
	padding-inline: 1em 2.4em;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%234A5733' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left .8em center;
	font-size: .92rem;
	appearance: none;
	cursor: pointer;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 .6rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination a.page-numbers:hover {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--ivory);
}

.empty {
	padding: 3rem 1rem;
	text-align: center;
	color: var(--muted);
}

/* Single product
   ========================================================================== */

.product { padding-block: clamp(1.2rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }

.product__grid {
	display: grid;
	gap: 2rem;
}

.product__media {
	position: relative;
	margin: 0;
	padding: 2%;
	border-radius: var(--radius-card);
	background: var(--ivory);
	box-shadow: 0 0 0 1px var(--line);
	isolation: isolate;
}

.product__media::after {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid rgba(162, 132, 74, .45);
	border-radius: 4px;
	pointer-events: none;
}

.product__media img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.product__thumbs {
	display: flex;
	gap: .5rem;
	margin-top: .75rem;
}

.product__thumbs button {
	width: 72px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--ivory);
	cursor: pointer;
	isolation: isolate;
}

.product__thumbs button[aria-current="true"] { border-color: var(--olive); }

.product__thumbs img {
	display: block;
	mix-blend-mode: multiply;
}

.product__title {
	margin: .2rem 0 .5rem;
	font-size: clamp(2.3rem, 5vw, 3.3rem);
	line-height: 1.1;
}

.product__price { margin: .4rem 0 1.1rem; }

.product__price > .money .money__n { font-size: clamp(2.2rem, 4vw, 2.8rem); }
.product__price .price-tag__was .money__n { font-size: 1.35rem; }

.product__note {
	margin: 0;
	font-size: 1.04rem;
	color: var(--muted);
}

.buy {
	display: flex;
	gap: .75rem;
	margin: 1.6rem 0 1rem;
}

.buy .btn { flex: 1; }

.qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--ivory);
}

.qty button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 48px;
	border: 0;
	background: none;
	color: var(--olive);
	cursor: pointer;
}

.qty button .icon {
	width: 18px;
	height: 18px;
}

.qty input {
	width: 40px;
	border: 0;
	background: none;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1.6rem;
	font-size: .92rem;
	color: var(--muted);
}

.ask a {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	padding: .3em .85em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--olive);
	font-weight: 600;
	text-decoration: none;
}

.ask a:hover { border-color: var(--olive); }

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

.assure {
	display: grid;
	gap: .7rem;
	margin: 0;
	padding: 1.3rem 0 0;
	border-top: 1px solid var(--line);
	font-size: .94rem;
	line-height: 1.6;
	color: var(--muted);
	list-style: none;
}

.assure li {
	display: flex;
	gap: .65rem;
}

.assure .icon {
	width: 20px;
	height: 20px;
	color: var(--brass);
}

.product__more {
	display: grid;
	gap: 2rem;
	margin-top: clamp(2rem, 5vw, 3.5rem);
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
}

.product__more h2 {
	font-size: 1.8rem;
	margin-bottom: .6rem;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.product__grid {
		grid-template-columns: 1.05fr .95fr;
		gap: 4rem;
		align-items: start;
	}

	.product__info {
		position: sticky;
		top: calc(var(--head) + 24px);
	}

	.product__more { grid-template-columns: 1.4fr 1fr; }
}

/* Basket
   ========================================================================== */

.basket__empty {
	padding: 3rem 1rem;
	text-align: center;
	color: var(--muted);
}

.basket__empty .icon {
	width: 46px;
	height: 46px;
	margin-bottom: .5rem;
	color: var(--brass);
}

.basket__items {
	display: grid;
	gap: .9rem;
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.bitem {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: .85rem;
	align-items: center;
	padding-bottom: .9rem;
	border-bottom: 1px solid var(--line);
}

.bitem__media {
	display: block;
	width: 70px;
	height: 88px;
	border-radius: 6px;
	background: var(--linen);
	isolation: isolate;
}

.bitem__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.bitem__name {
	display: block;
	font: 600 1.15rem/1.3 var(--font-display);
	color: var(--ink);
	text-decoration: none;
}

.bitem__price {
	font-size: .88rem;
	color: var(--muted);
}

.bitem__side {
	display: grid;
	justify-items: end;
	gap: .3rem;
}

.bitem .qty button {
	width: 34px;
	height: 36px;
}

.bitem .qty input,
.bitem .qty output {
	width: 28px;
	font-weight: 600;
	text-align: center;
}

.bitem__remove {
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-size: .8rem;
	text-decoration: underline;
	cursor: pointer;
}

.field {
	display: grid;
	gap: .35rem;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	min-width: 0;
}

.field__label {
	padding: 0;
	font-size: .88rem;
	font-weight: 600;
	color: var(--olive);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 46px;
	padding: .6em .8em;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--linen);
	font-size: 1rem;
}

.field textarea {
	resize: vertical;
	line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: 2px solid var(--olive);
	outline-offset: 0;
	border-color: transparent;
}

.field.is-error input,
.field.is-error select { border-color: var(--clay); }

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}

.seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
}

.seg__opt {
	position: relative;
}

.seg__opt input {
	position: absolute;
	opacity: 0;
}

.seg__opt span {
	display: block;
	padding: .65em .5em;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--linen);
	color: var(--ink);
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}

.seg__opt input:checked + span {
	background: var(--olive);
	border-color: var(--olive);
	color: var(--ivory);
}

.seg__opt input:focus-visible + span {
	outline: 2px solid var(--olive);
	outline-offset: 2px;
}

.basket__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 .3rem;
	font-weight: 600;
}

.basket__total strong {
	font: 600 1.8rem var(--font-display);
	color: var(--olive);
}

.basket__note {
	margin: 0 0 .9rem;
	font-size: .82rem;
	line-height: 1.6;
	color: var(--muted);
}

/* Quick view: a dialog in the middle of the screen, a sheet from the bottom on phones
   ========================================================================== */

.drawer--quick,
.admin-bar .drawer--quick {
	top: 50%;
	bottom: auto;
	left: 50%;
	width: min(920px, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: var(--radius-card);
	opacity: 0;
	transform: translate(-50%, -47%) scale(.97);
	transition: transform .45s var(--ease), opacity .3s;
}

.drawer--quick.is-open {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.quick__close {
	position: absolute;
	top: .75rem;
	inset-inline-end: .75rem;
	z-index: 2;
	background: var(--ivory);
	box-shadow: 0 0 0 1px var(--line);
}

.quick {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.quick__media {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 4;
	background: var(--sand);
	isolation: isolate;
}

.quick__media::after {
	content: "";
	position: absolute;
	inset: 16px;
	border: 1px solid rgba(162, 132, 74, .6);
	pointer-events: none;
}

.quick__media img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 2%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.quick__info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2.5rem 2.25rem 2rem;
}

.quick__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.9rem, 3.2vw, 2.5rem);
	line-height: 1.15;
}

.quick__price .price-tag > .money .money__n { font-size: 2.3rem; }

.quick__desc {
	margin: 1rem 0 0;
	color: var(--muted);
}

.quick .buy { margin: 1.5rem 0 1.25rem; }

.quick .link-more { align-self: flex-start; }

@media (max-width: 699px) {
	.drawer--quick,
	.admin-bar .drawer--quick {
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 92dvh;
		border-radius: 16px 16px 0 0;
		opacity: 1;
		transform: translateY(100%);
	}

	.drawer--quick.is-open { transform: none; }

	.quick { grid-template-columns: 1fr; }

	.quick__media {
		aspect-ratio: auto;
		height: 42dvh;
	}

	.quick__info { padding: 1.5rem 1.25rem 1.5rem; }
}

/* Footer
   ========================================================================== */

.site-foot {
	padding-top: clamp(3rem, 6vw, 4.5rem);
	background: var(--olive-deep);
	color: var(--on-deep-2);
	font-size: .95rem;
}

.site-foot__grid {
	display: grid;
	gap: 2.4rem;
}

.brand--foot {
	margin: 0;
	color: var(--ivory);
}

.brand--foot .brand__logo {
	width: 56px;
	height: 56px;
	box-shadow: none;
}

.site-foot__slogan {
	margin: 1rem 0 .4rem;
	font: 500 1.55rem/1.4 var(--font-display);
	color: var(--ivory);
}

.site-foot__title {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	color: var(--ivory);
}

.site-foot__list {
	display: grid;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-foot a {
	color: var(--on-deep-2);
	text-decoration: none;
}

.site-foot a:hover {
	color: var(--ivory);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.site-foot__branches li {
	display: grid;
	gap: .1rem;
}

.site-foot .site-foot__phone {
	justify-self: start;
	font-weight: 600;
	color: var(--ivory);
}

.social {
	display: flex;
	gap: .5rem;
}

.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(217, 205, 181, .35);
	border-radius: 50%;
}

.social a:hover { border-color: var(--ivory); }

.site-foot__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .4rem 2rem;
	margin-top: 3rem;
	padding-block: 1.4rem;
	border-top: 1px solid rgba(217, 205, 181, .18);
	font-size: .84rem;
}

.site-foot__base p { margin: 0; }

@media (min-width: 700px) {
	.site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
	.site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}

/* Reveal on scroll (only once the script runs)
   ========================================================================== */

.reveal [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

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

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.reveal [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.marquee__track {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
		animation: none;
	}

	.marquee__list[aria-hidden] { display: none; }
	.slide__img { scale: 1; }
}
