/* wp-content/themes/mimgold/assets/css/base.css
   Design tokens, reset, typography, buttons, header, footer, product card, shared UI.
   RTL-first: logical properties only. Mobile-first: 768px tablet, 1024px desktop. */

/* ============================== Fonts ============================== */
@font-face {
	font-family: "IRANYekanX";
	src: url("../fonts/IRANYekanX-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IRANYekanX";
	src: url("../fonts/IRANYekanX-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ============================== Tokens ============================== */
:root {
	/* Warm monochrome canvas + brand green + desaturated gold accent */
	--bg: #ffffff;
	--canvas: #f6f2ec;
	--sand: #ebe2d7;
	--taupe: #cfc2b3;
	--ink: #1d2520;
	--ink-2: #3c4540;
	--muted: #7b766e;
	--line: rgba(29, 37, 32, .1);
	--line-strong: rgba(29, 37, 32, .2);
	--green: #173f31;
	--green-2: #20523f;
	--gold: #ad8a55;
	--gold-soft: #f4ecdf;
	--danger: #9f2f2d;
	--danger-soft: #fbeceb;

	--font: "IRANYekanX", Tahoma, sans-serif;

	/* Spacing: section gap 30px mobile / 40px tablet / 50px desktop (client request) */
	--section-space: 30px;
	--section-space-sm: 20px;
	--container-pad: 16px;
	--container-max: 1440px;
	--gap: 16px;

	/* Type scale (mobile) */
	--fs-display: 32px;
	--fs-h1: 22px;
	--fs-h2: 19px;
	--fs-h3: 16px;
	--fs-body: 15px;
	--fs-small: 13px;
	--fs-tiny: 12px;
	--lh-heading: 1.45;
	--lh-body: 1.9;

	--r-sm: 2px;
	--r-img: 4px; /* soft corner on every contained image / media box */
	--r: 6px;
	--r-lg: 14px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--ease-soft: cubic-bezier(.32, .72, 0, 1);
	--shadow-soft: 0 18px 40px -22px rgba(29, 37, 32, .18);

	--hdr-h: 60px;
	--mbar-h: 0px;
}

@media (min-width: 768px) {
	:root {
		--section-space: 40px;
		--section-space-sm: 25px;
		--container-pad: 28px;
		--gap: 24px;
		--fs-display: 48px;
		--fs-h1: 26px;
		--fs-h2: 22px;
	}
}

@media (min-width: 1024px) {
	:root {
		--section-space: 50px;
		--section-space-sm: 30px;
		--container-pad: 40px;
		--gap: 30px;
		--fs-display: 68px;
		--fs-h1: 30px;
		--fs-h2: 24px;
		--fs-h3: 17px;
		--fs-body: 16px;
		--fs-small: 14px;
		--hdr-h: 76px;
	}
}

/* ============================== Reset ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	padding-block-end: var(--mbar-h);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: var(--lh-heading); color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.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-link {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
	transition: top .3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============================== Layout ============================== */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}
.section { padding-block: var(--section-space); }
.section--tight { padding-block: var(--section-space-sm); }
/* Two plain sections in a row share one gap instead of doubling it. Sections with a background band
   or a border line (stories, brands) keep their full padding, and so does the section after them. */
.section:not(.trust, .article-products, .about__trust, .seo-box, .stories, .brands) + .section:not(.trust, .article-products, .about__trust, .seo-box, .stories, .brands) { padding-block-start: 0; }

/* ============================== Type helpers ============================== */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-tiny);
	color: var(--gold);
	margin-block-end: 10px;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
}
.eyebrow--light { color: var(--ink-2); }

.sec-head { margin-block-end: 20px; }
.sec-head__title { font-size: var(--fs-h2); }
.sec-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
}
.sec-head__tools { display: flex; align-items: center; gap: 20px; }
@media (min-width: 1024px) { .sec-head { margin-block-end: 30px; } }

.link-line {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-small);
	padding-block: 6px;
	white-space: nowrap;
}
.link-line::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 2px;
	height: 1px;
	background: currentColor;
	transform-origin: right;
	transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(.35); }
.link-line .ico { transition: transform .5s var(--ease); }
.link-line:hover .ico { transform: translateX(-4px); }

.prose p + p { margin-block-start: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose h2, .prose h3 { margin-block: 1.4em .5em; }

/* ============================== Buttons ============================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Button-in-button trailing icon */
.btn--icon { padding-inline-end: 8px; }
.btn__ico {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(127, 127, 127, .14);
	transition: transform .5s var(--ease);
}
.btn--icon:hover .btn__ico { transform: translateX(-4px) scale(1.05); }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: var(--ink);
	transition: background-color .3s var(--ease);
}
.icon-btn:hover { background: var(--canvas); }

.round-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s;
}
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn.swiper-button-disabled { opacity: .3; pointer-events: none; }
.slider-arrows { display: none; gap: 8px; }
@media (min-width: 1024px) { .slider-arrows { display: flex; } }

/* Tags on cards */
.tag {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: var(--fs-tiny);
	background: #fff;
	color: var(--ink);
}
.tag--sale { background: var(--gold-soft); color: #7a5a25; }
.tag--out { background: var(--danger-soft); color: var(--danger); }

/* Image placeholder (until real photos are uploaded) */
.ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--sand), var(--canvas) 70%);
	color: var(--taupe);
}

/* ============================== Announcement bar ============================== */
.announce {
	position: relative;
	background: var(--sand);
	color: var(--ink-2);
	font-size: var(--fs-tiny);
	text-align: center;
}
.announce__track {
	display: grid;
	min-height: 36px;
	padding-inline: 44px;
}
.announce__msg {
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
	pointer-events: none;
}
.announce__msg.is-active { opacity: 1; transform: none; pointer-events: auto; }
.announce__msg a { text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
	position: absolute;
	inset-inline-end: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	opacity: .7;
}
.announce__close:hover { opacity: 1; }

/* ============================== Header ============================== */
.hdr {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(255, 255, 255, .94);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .hdr { top: 46px; }
@media (min-width: 783px) { .admin-bar .hdr { top: 32px; } }
@media (max-width: 600px) { .admin-bar .hdr { top: 0; } }

.hdr__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	height: var(--hdr-h);
	transition: height .5s var(--ease);
}
.hdr__start, .hdr__end { display: flex; align-items: center; gap: 2px; }
.hdr__end { justify-content: flex-end; }
.hdr__logo { justify-self: center; }

.logo { display: flex; align-items: center; gap: 8px; transition: transform .5s var(--ease); transform-origin: center; }
.logo__img { width: auto; max-height: 40px; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__text { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

.hdr__search {
	display: none;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding-inline: 4px 14px;
	font-size: var(--fs-small);
	color: var(--ink-2);
}
.hdr__search:hover { color: var(--ink); }
.hdr__hide-sm { display: none; }

.hdr-count {
	position: absolute;
	top: 6px;
	inset-inline-end: 4px;
	min-width: 17px;
	height: 17px;
	padding-inline: 4px;
	border-radius: 999px;
	background: var(--green);
	color: #fff;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
}

/* Burger -> X morph */
.burger { position: relative; width: 20px; height: 14px; }
.burger i {
	position: absolute;
	inset-inline-start: 0;
	height: 1.5px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
	transition: transform .5s var(--ease), opacity .3s;
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; width: 70%; }
.burger i:nth-child(3) { top: 12px; }
.is-drawer-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-drawer-open .burger i:nth-child(2) { opacity: 0; }
.is-drawer-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav */
.hdr__nav { display: none; }
.nav__list {
	display: flex;
	justify-content: center;
	gap: 6px 34px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav__list > li { position: relative; }
.nav__list > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-block: 12px 14px;
	font-size: var(--fs-small);
	color: var(--ink-2);
	transition: color .3s var(--ease);
}
.nav__list > li > a::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 8px;
	height: 1px;
	background: var(--ink);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--ease);
}
.nav__list > li:hover > a,
.nav__list > .current-menu-item > a,
.nav__list > .current-menu-ancestor > a { color: var(--ink); }
.nav__list > li:hover > a::after,
.nav__list > .current-menu-item > a::after,
.nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); transform-origin: right; }
.nav__list .ico-chev-d { opacity: .6; transition: transform .4s var(--ease); }
.nav__list > li:hover .ico-chev-d { transform: rotate(180deg); }

.nav__list .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -20px;
	min-width: 220px;
	margin: 0;
	padding: 12px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a {
	display: block;
	padding: 8px 20px;
	font-size: var(--fs-small);
	color: var(--ink-2);
	transition: color .3s, background-color .3s;
}
.nav__list .sub-menu a:hover { color: var(--ink); background: var(--canvas); }

/* Gold price chip */
.gold-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-tiny);
	color: var(--ink-2);
	white-space: nowrap;
	line-height: 1.4;
}
.gold-chip__dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
	flex: none;
}
.gold-chip__dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--gold);
	animation: mimg-pulse 2.4s var(--ease) infinite;
}
.gold-chip__price b { font-size: 14px; color: var(--ink); font-weight: 700; }
.gold-chip__time { color: var(--muted); padding-inline-start: 8px; border-inline-start: 1px solid var(--line); }
.gold-chip.is-updated .gold-chip__price b { animation: mimg-flash 1.2s var(--ease); }
.gold-chip--header { display: none; padding-inline-start: 14px; margin-inline-start: 6px; border-inline-start: 1px solid var(--line); }
.gold-chip--header .gold-chip__label { display: none; }

.hdr__gold-sm { border-top: 1px solid var(--line); }
.gold-chip--strip { justify-content: center; width: 100%; min-height: 34px; padding-inline: var(--container-pad); }

@keyframes mimg-pulse {
	0% { transform: scale(.6); opacity: .9; }
	100% { transform: scale(1.6); opacity: 0; }
}
@keyframes mimg-flash {
	0%, 100% { color: var(--ink); }
	30% { color: var(--gold); }
}

@media (min-width: 1024px) {
	.hdr__burger, .hdr__show-sm, .hdr__gold-sm { display: none; }
	.hdr__search, .hdr__hide-sm { display: inline-flex; }
	.icon-btn.hdr__hide-sm { display: inline-grid; } /* keep the icon centered in its hover circle */
	.hdr__nav { display: block; border-top: 1px solid var(--line); }
	.logo__img { max-height: 48px; }
	.logo__text { font-size: 28px; }
	.logo__mark { width: 38px; height: 38px; }
	.hdr.is-stuck .hdr__top { height: 62px; }
	/* The 14px the top row loses stays in the page flow as margin: content below never moves,
	   so the scroll position is not adjusted and the compact state cannot flip back and forth (jitter). */
	.hdr.is-stuck { margin-block-end: 14px; }
	/* Even easing for the compact <-> full switch (the site's expo ease moves almost all 14px at once and reads as a jump). */
	.hdr { transition: margin-block-end .4s ease-in-out; }
	.hdr__top { transition: height .4s ease-in-out; }
	.logo { transition: transform .4s ease-in-out; }
	.hdr.is-stuck .logo { transform: scale(.86); }
}
@media (min-width: 1200px) {
	.gold-chip--header { display: inline-flex; }
}
@media (min-width: 1400px) {
	.gold-chip--header .gold-chip__label { display: inline; }
}

/* ============================== Search panel ============================== */
.search-panel {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 60;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow-soft);
	animation: mimg-drop .5s var(--ease);
}
.search-panel__in {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 110px;
}
.search-form {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid var(--ink);
	padding-block: 8px;
}
.search-form input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 0;
	background: none;
	font-size: 18px;
	outline: none;
}
.search-form input::placeholder { font-size: 14px; color: var(--muted); }
.search-form .btn { display: none; }
@media (min-width: 768px) {
	.search-form input { font-size: 22px; }
	.search-form input::placeholder { font-size: 16px; }
	.search-form .btn { display: inline-flex; }
}
@keyframes mimg-drop { from { transform: translateY(-100%); } to { transform: none; } }

/* ============================== Drawer (mobile menu) ============================== */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 37, 32, .35);
	animation: mimg-fade .4s var(--ease);
}
.drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(88vw, 380px);
	display: flex;
	flex-direction: column;
	background: #fff;
	animation: mimg-slide-in .55s var(--ease-soft);
}
.drawer.is-closing .drawer__panel { animation: mimg-slide-out .35s var(--ease) forwards; }
.drawer.is-closing .drawer__backdrop { animation: mimg-fade .35s var(--ease) reverse forwards; }
.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px 10px 20px;
	padding-inline-start: 20px;
	border-bottom: 1px solid var(--line);
}
.drawer__brand { font-weight: 700; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__list, .drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	font-size: 16px;
	opacity: 0;
	transform: translateY(14px);
	animation: mimg-rise .6s var(--ease) forwards;
	animation-delay: calc(var(--i, 0) * 50ms + 120ms);
}
.drawer__list .ico-chev-d { transition: transform .4s var(--ease); }
.drawer__list .is-open > a .ico-chev-d { transform: rotate(180deg); }
.drawer__list .sub-menu { display: none; padding-block-end: 12px; }
.drawer__list .is-open > .sub-menu { display: block; }
.drawer__list .sub-menu a { display: block; padding: 8px 14px; color: var(--ink-2); font-size: var(--fs-small); }
.drawer__foot { display: grid; gap: 4px; padding: 16px 20px 24px; border-top: 1px solid var(--line); background: var(--canvas); }
.drawer__link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-small); }
html.is-locked, html.is-locked body { overflow: hidden; }

@keyframes mimg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mimg-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mimg-slide-out { from { transform: none; } to { transform: translateX(100%); } }
@keyframes mimg-rise { to { opacity: 1; transform: none; } }

/* ============================== Image corners ============================== */
/* One small radius for every contained image/media box (full-bleed hero and round/arch shapes keep their own). */
.pcard__media,
.post-card__media,
.promo,
.feat__main,
.feat__small,
.plp-banner,
.pdp-media__item,
.pdp-thumbs img,
.prose img,
.entry img,
.wp-block-image img {
	border-radius: var(--r-img);
	overflow: hidden;
}

/* ============================== Product card ============================== */
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--canvas);
}
.pcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease), opacity .7s var(--ease);
}
.pcard__img--alt { position: absolute; inset: 0; opacity: 0; }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard--swap:hover .pcard__img--alt { opacity: 1; }
.pcard__body { padding-block-start: 14px; }

/* Gap between amount and "تومان" (the &nbsp; collapses visually between LTR digits and RTL text). */
.woocommerce-Price-currencySymbol { margin-inline-start: .3em; }

/* Wishlist heart (cards + product page) */
.wish {
	display: inline-grid;
	place-items: center;
	color: var(--ink);
	transition: color .3s var(--ease), transform .2s var(--ease);
}
.wish:active { transform: scale(.9); }
.wish[aria-pressed="true"] { color: var(--danger); }
.wish[aria-pressed="true"] .ico path { fill: currentColor; }
.pcard__wish {
	position: absolute;
	top: 8px;
	inset-inline-end: 8px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	opacity: 0;
	transition: opacity .3s var(--ease), color .3s var(--ease);
}
.pcard:hover .pcard__wish, .pcard__wish:focus-visible, .pcard__wish[aria-pressed="true"] { opacity: 1; }
@media (hover: none) { .pcard__wish { opacity: 1; } }
.pcard__title {
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__meta { font-size: var(--fs-tiny); color: var(--muted); margin-block-start: 2px; }
.pcard__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-block-start: 6px;
	flex-wrap: wrap;
}
.pcard__price { font-size: var(--fs-small); color: var(--ink); }
.pcard__price del { color: var(--muted); font-size: var(--fs-tiny); margin-inline-end: 4px; }
.pcard__price ins { text-decoration: none; }
.pcard__weight {
	font-size: var(--fs-tiny);
	color: var(--muted);
	padding-inline-start: 8px;
	border-inline-start: 1px solid var(--line);
}

/* ============================== Footer ============================== */
.ftr__text { font-size: var(--fs-small); }
.ftr__muted { color: var(--muted); }
.ftr__cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 10px; }
.social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.ftr__main { background: var(--canvas); }
.ftr__grid { display: grid; gap: 36px; padding-block: 30px; }
.ftr__name { font-size: 20px; font-weight: 700; margin-block-end: 10px; }
.ftr__brand .ftr__text { max-width: 46ch; }
.ftr__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; }
.ftr__badges img { max-height: 90px; width: auto; background: #fff; border-radius: var(--r); padding: 6px; }
.footer-col__title { font-size: var(--fs-small); font-weight: 700; color: var(--ink); margin-block-end: 14px; }
.footer-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col__list a { font-size: var(--fs-small); color: var(--ink-2); transition: color .3s; }
.footer-col__list a:hover { color: var(--ink); }
.ftr__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 20px;
	padding-block: 18px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-tiny);
}
.ftr__credit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .3s; }
.ftr__credit:hover { color: var(--ink); }
.ftr__credit img { width: 72px; height: auto; }

/* Contact column */
.ftr__contact-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ftr__contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-small); }
.ftr__contact-list .ico { flex: none; margin-block-start: 3px; color: var(--gold); }
.ftr__contact-list small { display: block; font-size: var(--fs-tiny); color: var(--muted); }
.ftr__contact-list b { font-weight: 400; color: var(--ink-2); }
.ftr__contact-list a { color: var(--ink-2); transition: color .3s; }
.ftr__contact-list a:hover { color: var(--ink); }

/* 4 columns: brand | links | links | contact */
.ftr__grid { grid-template-columns: 1fr 1fr; }
.ftr__brand, .ftr__contact { grid-column: 1 / -1; }
@media (min-width: 1024px) {
	.ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 48px; padding-block: 50px; }
	.ftr__brand, .ftr__contact { grid-column: auto; }
}

/* ============================== SEO box (home + shop archives) ============================== */
.seo-box { background: var(--canvas); }
.seo-box__in { max-width: 900px; }
.seo-box__title { font-size: var(--fs-h3); font-weight: 700; margin-block-end: 14px; }
.seo-box__body { color: var(--ink-2); font-size: var(--fs-small); }
.js .seo-box__body:not(.is-open) {
	max-height: 11em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
	mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.seo-box__toggle { margin-block-start: 10px; }
.seo-box__toggle .ico { transition: transform .4s var(--ease); }
.seo-box__toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.no-js .seo-box__toggle { display: none; }

/* ============================== Floating contact ============================== */
.float-contact {
	position: fixed;
	inset-inline-end: 16px;
	bottom: calc(var(--mbar-h) + 16px);
	z-index: 45;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.float-contact__btn {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	box-shadow: 0 14px 30px -12px rgba(23, 63, 49, .55);
	transition: transform .3s var(--ease), background-color .3s;
}
.float-contact__btn:hover { background: var(--green-2); }
.float-contact__btn:active { transform: scale(.95); }
.float-contact__menu {
	display: grid;
	gap: 2px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-soft);
	animation: mimg-rise-in .4s var(--ease);
}
.float-contact__menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding-inline: 12px 22px;
	border-radius: var(--r);
	font-size: var(--fs-small);
}
.float-contact__menu a:hover { background: var(--canvas); }
@keyframes mimg-rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================== Mobile bottom bar ============================== */
.mbar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 44;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	height: 62px;
	padding-block-end: env(safe-area-inset-bottom);
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
}
.mbar a, .mbar button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	font-size: 11px;
	color: var(--muted);
}
.mbar [aria-current="page"] { color: var(--ink); }
.mbar .hdr-count { top: 6px; inset-inline-end: calc(50% - 22px); }
@media (max-width: 1023px) { :root { --mbar-h: 62px; } }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ============================== Scroll reveal ============================== */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .9s var(--ease), transform .9s var(--ease);
	transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Installment line (product page, cart, checkout). */
.inst { display: flex; align-items: center; gap: 8px; margin-block: 6px 0; font-size: var(--fs-small); color: var(--ink-2); }
.inst b { font-weight: 500; color: var(--ink); }
.inst__logo { width: auto; height: 22px; }
.inst-row td { padding-block-start: 0; border: 0; }

/* Skeleton placeholders while AJAX content loads (live search, "load more" on shop pages). */
.skel {
	display: block;
	border-radius: var(--r-img);
	background: linear-gradient(90deg, var(--canvas) 25%, var(--sand) 50%, var(--canvas) 75%) 0 0 / 200% 100%;
	animation: skel 1.4s linear infinite;
}
@keyframes skel { to { background-position: -200% 0; } }
.skel--line { height: 12px; }
.skel--short { width: 45%; }
.pcard--skel .pcard__media { background: none; }
.pcard--skel .skel--media { width: 100%; height: 100%; border-radius: 0; }
.pcard--skel .pcard__body { display: grid; gap: 10px; padding-block-start: 14px; }
.sr__skel { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; padding: 8px; }
.sr__skel .skel--thumb { width: 56px; height: 56px; }
.sr__skel span:last-child { display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ============================== Generic pages ============================== */
.page-head { padding-block: var(--section-space-sm) 0; }
.page-head__title { font-size: var(--fs-h1); }
.entry { padding-block: var(--section-space-sm) var(--section-space); max-width: 820px; }
.notfound { text-align: center; padding-block: var(--section-space); }
.notfound__code { font-size: var(--fs-display); line-height: 1; color: var(--taupe); }
.notfound .search-form { max-width: 520px; margin: 28px auto; }
.post-list { display: grid; gap: 28px; padding-block: var(--section-space-sm) var(--section-space); }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.pagination { display: flex; justify-content: center; gap: 6px; padding-block-end: var(--section-space); }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 10px;
	border: 1px solid var(--line); border-radius: var(--r-sm); font-size: var(--fs-small);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================== Mini-cart drawer ============================== */
.minicart { position: fixed; inset: 0; z-index: 75; }
.minicart__backdrop { position: absolute; inset: 0; background: rgba(29, 37, 32, .35); animation: mimg-fade .4s var(--ease); }
.minicart__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(92vw, 420px);
	display: flex;
	flex-direction: column;
	background: #fff;
	animation: mimg-mini-in .5s var(--ease-soft);
}
.minicart.is-closing .minicart__panel { animation: mimg-mini-out .3s var(--ease) forwards; }
.minicart.is-closing .minicart__backdrop { animation: mimg-fade .3s var(--ease) reverse forwards; }
@keyframes mimg-mini-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes mimg-mini-out { from { transform: none; } to { transform: translateX(-100%); } }
.minicart__head { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; padding-inline: 20px 10px; border-bottom: 1px solid var(--line); }
.minicart__title { font-size: var(--fs-h3); font-weight: 700; }
.minicart .widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.minicart-extra { padding: 14px 20px 0; display: grid; gap: 10px; }
.woocommerce-mini-cart { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 6px 20px; }
.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 72px 1fr;
	column-gap: 14px;
	padding-block: 16px;
	padding-inline-end: 28px;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-small);
}
.woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: var(--ink); }
.woocommerce-mini-cart-item img { grid-row: span 3; width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-img); background: var(--canvas); }
.woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 14px;
	inset-inline-end: 0;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 18px;
	color: var(--muted);
}
.woocommerce-mini-cart-item .remove:hover { background: var(--canvas); color: var(--danger); }
.woocommerce-mini-cart-item .variation { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0; font-size: var(--fs-tiny); color: var(--muted); }
.woocommerce-mini-cart-item .variation dt, .woocommerce-mini-cart-item .variation dd { margin: 0; }
.woocommerce-mini-cart-item .variation dd p { display: inline; margin: 0; }
.woocommerce-mini-cart-item .quantity { font-size: var(--fs-tiny); color: var(--ink-2); }
.woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 16px 20px 6px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-small);
}
.woocommerce-mini-cart__total strong { font-weight: 400; color: var(--muted); }
.woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
.woocommerce-mini-cart__buttons .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	font-size: var(--fs-small);
	font-weight: 700;
	color: var(--ink);
}
.woocommerce-mini-cart__buttons .button.checkout { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-mini-cart__buttons .button.checkout:hover { background: var(--green); }
.woocommerce-mini-cart__empty-message { padding: 40px 20px; text-align: center; color: var(--muted); }

/* Price lock + reward progress (mini-cart, cart, checkout) */
.lock-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--r);
	background: var(--gold-soft);
	font-size: var(--fs-tiny);
	color: #6b4f22;
}
.lock-note b { font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.tier { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: var(--fs-tiny); }
.tier__text, .tier__done { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-2); }
.tier__text b { font-weight: 700; color: var(--ink); }
.tier__text .ico { color: var(--gold); flex: none; }
.tier__bar { height: 4px; border-radius: 4px; background: var(--canvas); overflow: hidden; }
.tier__bar span { display: block; height: 100%; border-radius: 4px; background: var(--green); transition: width .6s var(--ease); }
.tier__done { color: var(--green); }

/* ============================== Instant search results ============================== */
/* Scoped to the panel: WordPress also puts a "search-results" class on <body> of search pages. */
.search-panel .search-results {
	display: grid;
	gap: 24px;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding-block: 8px 28px;
	transition: opacity .2s var(--ease);
}
.search-panel .search-results.is-loading { opacity: .55; }
@media (min-width: 768px) { .search-panel .search-results { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; } }
.sr__title { margin-block-end: 10px; font-size: var(--fs-tiny); color: var(--gold); }
.sr__products { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sr__product {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 6px;
	border-radius: var(--r);
	transition: background-color .25s var(--ease);
}
.sr__product:hover, .sr__product:focus-visible { background: var(--canvas); outline: none; }
.sr__product img, .sr__ph { width: 56px; height: 56px; border-radius: var(--r-img); object-fit: cover; background: var(--canvas); }
.sr__name { font-size: var(--fs-small); color: var(--ink); }
.sr__price { font-size: var(--fs-tiny); color: var(--ink-2); white-space: nowrap; }
.sr__side { display: grid; gap: 22px; align-content: start; }
.sr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sr__links a { display: block; padding: 6px 8px; border-radius: var(--r); font-size: var(--fs-small); color: var(--ink-2); }
.sr__links a:hover, .sr__links a:focus-visible { background: var(--canvas); color: var(--ink); outline: none; }
.sr__links small { color: var(--muted); }
.sr__all { justify-self: start; }
.sr__empty { padding-block: 10px; color: var(--muted); font-size: var(--fs-small); }

/* ============================== Post card (home, magazine, product page) ============================== */
.post-card { position: relative; display: grid; gap: 14px; align-content: start; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--canvas); }
.post-card__img, .post-card__media .ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease);
}
.post-card:hover .post-card__img { transform: scale(1.05); }
.post-card__meta { font-size: var(--fs-tiny); color: var(--muted); }
.post-card__title { font-size: var(--fs-h3); line-height: 1.7; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-small); margin-block-start: 6px; }

/* ============================== Stories ============================== */
.stories { border-bottom: 1px solid var(--line); }
.stories__list {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-block: 4px;
}
.stories__list::-webkit-scrollbar { display: none; }
.stories__item { flex: none; scroll-snap-align: start; }
.stories__link { display: grid; justify-items: center; gap: 8px; width: 84px; }
.stories__ring {
	position: relative;
	display: block;
	width: 76px;
	height: 76px;
	padding: 3px;
	border-radius: 50%;
	border: 1px solid var(--gold);
	transition: transform .5s var(--ease);
}
.stories__img, .stories__ring .ph {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}
.stories__ring .ph svg { width: 26px; height: 26px; }
.stories__link:hover .stories__ring { transform: scale(1.05); }
.stories__title { font-size: var(--fs-tiny); color: var(--ink-2); text-align: center; line-height: 1.5; }
@media (min-width: 1024px) {
	.stories__list { justify-content: center; gap: 34px; }
	.stories__link { width: 96px; }
	.stories__ring { width: 88px; height: 88px; }
}


/* ============================== Chip (internal links, magazine categories, tags) ============================== */
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding-inline: 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--fs-small);
	color: var(--ink-2);
	transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.post-card__meta .sep, .article__meta .sep { margin-inline: 6px; opacity: .6; }

/* ============================== Mega menu (desktop) ============================== */
@media (min-width: 1024px) {
	.hdr__nav { position: relative; }
	.nav__list > li.is-mega { position: static; }
	.mega-panel {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		z-index: 5;
		background: #fff;
		border-top: 1px solid var(--line);
		box-shadow: 0 24px 40px -28px rgba(29, 37, 32, .3);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
	}
	.nav__list > li.is-mega:hover > .mega-panel,
	.nav__list > li.is-mega:focus-within > .mega-panel { opacity: 1; visibility: visible; transform: none; }
	.mega__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cols banner" "brands brands"; gap: 24px 48px; padding-block: 28px; }
	.mega__cols { grid-area: cols; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 56px; list-style: none; margin: 0; padding: 0; } /* compact columns, start-aligned */
	.mega__head { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); font-weight: 700; color: var(--ink); }
	.mega__head:hover { color: var(--green); }
	.mega__img { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; background: var(--canvas); }
	.mega__img img { width: 100%; height: 100%; object-fit: cover; }
	.mega__col { min-width: 140px; }
	.mega__links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; } /* aligned with the column title, no indent */
	.mega__links a { display: block; padding-block: 2px; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-2); }
	.mega__links a:hover { color: var(--ink); }
	.mega__banner { grid-area: banner; position: relative; display: block; width: 240px; aspect-ratio: 1; border-radius: var(--r-img); overflow: hidden; }
	.mega__banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
	.mega__banner:hover img { transform: scale(1.04); }
	.mega__banner span { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(0deg, rgba(29, 37, 32, .6), transparent); color: #fff; font-size: var(--fs-small); }
	.mega__in .mega__brands { /* beats the ul[role=list] reset */  grid-area: brands; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; list-style: none; margin: 8px 0 0; padding: 30px 0 4px; border-top: 1px solid var(--line); }
	.mega__brands img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
	.mega__brands a:hover img { filter: none; opacity: 1; }
	.mega__brands li { font-size: var(--fs-small); color: var(--muted); }
}

/* Sticky mobile banner */
.blog-sticky {
	position: fixed;
	inset-inline: 12px;
	bottom: calc(var(--mbar-h) + 12px);
	z-index: 42;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px 8px 8px;
	padding-inline: 8px 14px;
	border-radius: var(--r-lg);
	background: var(--green);
	color: #fff;
	box-shadow: 0 14px 30px -14px rgba(23, 63, 49, .6);
	font-size: var(--fs-small);
	transform: translateY(160%);
	transition: transform .5s var(--ease-soft);
}
.blog-sticky.is-visible { transform: none; }
.blog-sticky__img { width: 44px; height: 44px; border-radius: var(--r); object-fit: cover; flex: none; }
.blog-sticky__text { flex: 1; }
.blog-sticky ~ .float-contact, .has-blog-sticky .float-contact { bottom: calc(var(--mbar-h) + 84px); }
@media (min-width: 1024px) { .blog-sticky { display: none; } }

/* ============================== Hairline ornaments (mimg_ornament) ============================== */
.orn { display: block; overflow: visible; color: var(--gold); pointer-events: none; }
.orn path, .orn circle { vector-effect: non-scaling-stroke; }
.orn .draw { stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.orn .fill { fill: currentColor; opacity: .55; }
.orn .dot { fill: currentColor; }
/* Lines draw in once the wrapper is revealed (main.js adds .is-in). */
.js .reveal .orn .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-soft); }
.js .reveal.is-in .orn .draw { stroke-dashoffset: 0; }
.js .reveal .orn .fill, .js .reveal .orn .dot { opacity: 0; transition: opacity 1s var(--ease) 1.6s; }
.js .reveal.is-in .orn .fill { opacity: .55; }
.js .reveal.is-in .orn .dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal .orn .draw { stroke-dashoffset: 0; transition: none; }
	.js .reveal .orn .fill { opacity: .55; }
	.js .reveal .orn .dot { opacity: 1; }
}

/* Flower: red petals, gentle sway from the vase mouth (stem ornament). */
.orn { --petal: #d9443a; --petal-dark: #a82d25; }
.orn .petal { fill: var(--petal); stroke: var(--petal-dark); stroke-width: .6; }
.orn .pistil { fill: #f3c27a; }
.orn .sway {
	transform-box: view-box;
	transform-origin: 60px 150px;
	animation: mimg-sway 3.6s ease-in-out infinite alternate;
}
@keyframes mimg-sway {
	0% { transform: rotate(-5deg); }
	100% { transform: rotate(5deg); }
}
.js .reveal .orn .petal, .js .reveal .orn .pistil { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .9s var(--ease) 1.4s, transform .9s var(--ease) 1.4s; }
.js .reveal.is-in .orn .petal, .js .reveal.is-in .orn .pistil { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.orn .sway { animation: none; }
	.js .reveal .orn .petal, .js .reveal .orn .pistil { opacity: 1; transform: none; transition: none; }
}

/* ============================== Heading accent (inner pages) ============================== */
/* A short red line under page and section titles — same red as the wishlist heart. Not on the home page. */
:root { --accent-red: var(--danger); }
body:not(.home) :is(
	.page-head__title, .blog-head__title, .calc-head__title, .article__title, .pdp-title,
	.sec-head__title, .contact__title, .calc-block h2, .comments__title,
	.plp-links__title, .seo-box__title, .quiz-result__title, .landing-block__title, .woocommerce-Reviews-title
)::after {
	content: "";
	display: block;
	width: 36px;
	height: 2px;
	margin-block-start: 10px;
	border-radius: 2px;
	background: var(--accent-red);
}
/* Centred headings get a centred line. */
body:not(.home) :is(.page-head--center .page-head__title, .notfound .page-head__title, .blog-head--home .blog-head__title, .calc-head__title, .article__head .article__title, .sec-head--center .sec-head__title, .quiz-result__title, .about__trust-title)::after { margin-inline: auto; }


/* ============================== Magazine grid (home blog section + magazine page) ============================== */
/* Base .post-card styles live in base.css (shared with the magazine and product pages). */
/* One framed large post + a 2×2 panel of small portrait tiles divided by hairline cross lines. */
.mag__grid { display: grid; gap: 32px; max-width: 1080px; margin-inline: auto; }

.mag-feature { position: relative; display: flex; flex-direction: column; gap: 14px; }
.mag-feature__link {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--r-img);
	background: var(--sand);
}
.mag-feature__img, .mag-feature__link .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mag-feature:hover .mag-feature__img { transform: scale(1.04); }
/* Inset hairline frame — the only thing on the photo. */
.mag-feature__frame { position: absolute; inset: 16px; z-index: 1; border: 1px solid rgba(255, 255, 255, .9); pointer-events: none; }
.mag-feature__meta { font-size: var(--fs-tiny); color: var(--muted); }
.mag-feature__title { font-size: var(--fs-h3); line-height: 1.7; }
.mag-feature__title a::after { content: ""; position: absolute; inset: 0; }
.mag-feature__excerpt { margin-block-start: 4px; font-size: var(--fs-small); color: var(--muted); }

.mag__quad { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-content: center; margin-block: 28px; }
/* The cross: a vertical and a horizontal hairline through the middle. */
.mag__quad::before,
.mag__quad::after { content: ""; position: absolute; background: var(--line-strong); pointer-events: none; }
.mag__quad::before { top: -28px; bottom: -28px; inset-inline-start: 50%; width: 1px; } /* runs past the tiles, like the reference */
.mag__quad::after { inset-inline: 0; top: 50%; height: 1px; }

.mag-tile { position: relative; display: grid; align-content: start; justify-items: center; gap: 4px; padding: 16px 12px; text-align: center; }
.mag-tile__media { display: block; width: 100%; max-width: 170px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--canvas); }
.mag-tile__img, .mag-tile__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mag-tile:hover .mag-tile__img { transform: scale(1.05); }
.mag-tile__meta { margin-block-start: 8px; font-size: var(--fs-tiny); color: var(--muted); }
.mag-tile__title {
	max-width: 22ch;
	font-size: var(--fs-small);
	font-weight: 700;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mag-tile__title a::after { content: ""; position: absolute; inset: 0; }

@media (min-width: 768px) {
	.mag-tile { padding: 22px 20px; }
}
@media (min-width: 1024px) {
	.mag__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
	.mag-feature__link { flex: 1; aspect-ratio: auto; min-height: 420px; }
	.mag-feature__frame { inset: 20px; }
	.mag-tile { padding: 26px 28px; }
	.mag-tile__media { max-width: 190px; }
}

.mag .sec-head { max-width: 1080px; margin-inline: auto; } /* aligned with the narrower grid */
