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

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
	color: var(--c-ink);
	background: var(--c-surface);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; } /* zero specificity: components override freely */

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

/* Skip link: clipped (not pushed off-screen, which widens RTL pages) until focused. */
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; inset-inline-start: var(--gutter); top: var(--gutter); z-index: 100; background: var(--c-surface); padding: .5em 1em; }

.loop { display: grid; gap: var(--loop-gap, 16px); }
.loop--grid { grid-template-columns: repeat(auto-fill, minmax(var(--loop-min, 220px), 1fr)); }
.loop--slider { /* items per view: set --per-view on the slider (default 4); see slider.css */
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--per-view, 4) - 1) * var(--loop-gap, 16px)) / var(--per-view, 4));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}
.loop--slider > li { scroll-snap-align: start; }

/* Type styles — match Figma text styles (IRANYekan/*). */
h1, h2, h3, h4, h5, h6, p { margin: 0; }
.t-display-l { font-size: var(--fs-display-l); line-height: var(--lh-display-l); font-weight: 800; letter-spacing: -.25px; }
.t-display-m { font-size: var(--fs-display-m); line-height: var(--lh-display-m); font-weight: 700; letter-spacing: -.25px; }
.t-display-s { font-size: var(--fs-display-s); line-height: var(--lh-display-s); font-weight: 500; letter-spacing: 0; }
.t-headline-l { font-size: var(--fs-headline-l); line-height: var(--lh-headline-l); font-weight: 700; letter-spacing: 0; }
.t-headline-m { font-size: var(--fs-headline-m); line-height: var(--lh-headline-m); font-weight: 500; letter-spacing: 0; }
.t-headline-s { font-size: var(--fs-headline-s); line-height: var(--lh-headline-s); font-weight: 500; letter-spacing: 0; }
.t-title-l { font-size: var(--fs-title-l); line-height: var(--lh-title-l); font-weight: 700; letter-spacing: 0; }
.t-title-m { font-size: var(--fs-title-m); line-height: var(--lh-title-m); font-weight: 700; letter-spacing: .15px; }
.t-title-s { font-size: var(--fs-title-s); line-height: var(--lh-title-s); font-weight: 700; letter-spacing: .1px; }
.t-label-l { font-size: var(--fs-label-l); line-height: var(--lh-label-l); font-weight: 500; letter-spacing: .1px; }
.t-label-m { font-size: var(--fs-label-m); line-height: var(--lh-label-m); font-weight: 500; letter-spacing: .1px; }
.t-label-s { font-size: var(--fs-label-s); line-height: var(--lh-label-s); font-weight: 500; letter-spacing: .1px; }
.t-body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); font-weight: 400; letter-spacing: .25px; }
.t-body-m { font-size: var(--fs-body-m); line-height: var(--lh-body-m); font-weight: 400; letter-spacing: .25px; }
.t-body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); font-weight: 400; letter-spacing: 0; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
/* Icons: font glyphs (span.icon) and SVG fallbacks (svg.icon) size the same way. */
.icon {
	flex: none;
	display: inline-block;
	width: 1em;
	height: 1em;
	font-size: 24px;
}
span.icon {
	font-family: "icomoon";
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	speak: never;
	user-select: none;
	-webkit-font-smoothing: antialiased;
}

/* Buttons — use on <a> or <button>. Modifiers: --primary, --lg.
   Doubled classes (.btn.btn--primary) outrank Elementor's kit `a` colours while it is active. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-8);
	height: 50px;
	padding-inline: var(--sp-24);
	border: 0;
	border-radius: var(--r-16);
	font-size: var(--fs-label-l);
	line-height: var(--lh-label-l);
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, box-shadow .15s, translate .15s;
}
.btn .icon { font-size: 18px; }
.btn.btn--primary { color: var(--n-100); background: var(--blue); box-shadow: 0 8px 24px rgb(0 170 233 / .25); }
.btn.btn--primary:hover { color: var(--n-100); background: var(--blue-hover); box-shadow: 0 10px 28px rgb(0 170 233 / .35); }
.btn.btn--primary:active { background: var(--blue-active); translate: 0 1px; }
.btn--lg { height: 64px; padding-inline: var(--sp-32); font-size: var(--fs-body-l); }
.btn:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
.btn.btn--ghost { color: var(--n-10); background: var(--n-97); font-weight: 700; }
.btn.btn--ghost:hover { color: var(--n-10); background: var(--n-93); }
.btn.btn--cta { color: var(--n-100); background: var(--orange); box-shadow: 0 8px 24px rgb(255 130 14 / .25); }
.btn.btn--cta:hover { color: var(--n-100); background: var(--orange-hover); }
.btn.btn--cta:active { background: var(--orange-active); translate: 0 1px; }

/* Pills — tabs and chip links (best-seller tabs, blog categories). Active: aria-selected or aria-current. */
.pill {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-8);
	height: 48px;
	padding-inline: var(--sp-16);
	border: 0;
	border-radius: var(--r-16);
	color: var(--n-10);
	background: var(--n-100);
	box-shadow: 0 4px 16px rgb(0 0 0 / .06);
	font-size: var(--fs-label-l);
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: color .15s, background-color .15s, box-shadow .15s;
}
.pill:hover:not([aria-selected="true"]):not([aria-current]) { color: var(--blue); background: var(--blue-light); box-shadow: 0 6px 18px rgb(0 170 233 / .12); }
.pill[aria-selected="true"], .pill[aria-current] { color: var(--n-100); background: var(--blue); box-shadow: 0 6px 18px rgb(0 170 233 / .35); }
.pill:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.pill small { color: inherit; opacity: .7; font-weight: 500; }
@media (max-width: 769px) { .pill { height: 40px; } }

/* Readable rich text — article content, SEO text. */
.prose { color: var(--n-30); font-size: var(--fs-body-l); line-height: 1.9; }
.prose > * + * { margin-top: var(--sp-16); }
body .prose h2, body .prose h3, body .prose h4 { color: var(--n-10); font-weight: 700; line-height: 1.6; }
body .prose h2 { font-size: var(--fs-title-l); }
body .prose h3 { font-size: var(--fs-title-m); }
.prose ul, .prose ol { padding-inline-start: var(--sp-24); }
.prose li + li { margin-top: var(--sp-8); }
.prose a, .prose a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.prose strong { color: var(--n-10); }

@media (max-width: 769px) { .prose { font-size: var(--fs-body-m); } }

/* ---------- Notices: every WooCommerce message / info / error (and the theme's own) share the toast's look ----------
   Dark rounded card, white text, a coloured circle icon at the start (green check / blue «i» / red «!»), and any
   link or button inside as orange text with an arrow at the far end. WooCommerce's own CSS is off (inc/woocommerce.php). */
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
	--notice-icon: var(--c-success);
	--notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--sp-8) var(--sp-12);
	margin: 0 0 var(--sp-16);
	padding: var(--sp-12) var(--sp-16);
	border-radius: var(--r-16);
	color: var(--n-100);
	background: var(--n-10);
	box-shadow: 0 10px 30px rgb(0 0 0 / .15);
	font-size: var(--fs-body-m);
	line-height: 1.8;
	list-style: none;
	-webkit-font-smoothing: antialiased; /* light text on dark */
	-moz-osx-font-smoothing: grayscale;
}
:where(.woocommerce-info, .wc-block-components-notice-banner.is-info) {
	--notice-icon: var(--blue);
	--notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E");
}
:where(.woocommerce-error, .wc-block-components-notice-banner.is-error) {
	--notice-icon: var(--c-danger);
	--notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6.5v7M12 17.5v.5'/%3E%3C/svg%3E");
}
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner)::before {
	content: "";
	flex: none;
	align-self: flex-start;
	width: 22px;
	height: 22px;
	margin-block: 3px; /* centres on the first text line */
	border-radius: var(--r-pill);
	background: var(--notice-icon) var(--notice-glyph) center / 13px no-repeat;
}
/* Error lists: one icon, the messages stacked beside it */
.woocommerce-error { position: relative; display: block; padding-inline-start: calc(var(--sp-16) + 22px + var(--sp-12)); }
.woocommerce-error::before { position: absolute; top: var(--sp-12); inset-inline-start: var(--sp-16); }
.woocommerce-error li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-12); }
.woocommerce-error li + li { margin-top: 4px; }
.wc-block-components-notice-banner > svg { display: none; } /* blocks ship their own icon: ours replaces it */
.wc-block-components-notice-banner__content { flex: 1; }

/* Links and buttons inside notices (WooCommerce prints the button first): orange text + arrow, at the far end */
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :is(a, .button) {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	color: var(--orange-hover); /* a touch deeper: bright bold orange blooms on the dark card */
	background: none;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
:where(.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner) :is(a.button, .wc-forward, .button) { order: 2; margin-inline-start: auto; }
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :is(a.button, .wc-forward, .button)::after { content: "←"; transition: translate .2s; }
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :is(a, .button):hover { color: var(--orange); text-decoration: none; }
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) :is(a.button, .wc-forward, .button):hover::after { translate: -3px 0; }
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus { outline: none; } /* WooCommerce focuses a new notice for screen readers */
:where(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.woocommerce-notices-wrapper:empty { display: none; }
.breadcrumbs + .woocommerce-notices-wrapper:not(:empty) { margin-top: var(--crumbs-gap); } /* same breathing room as the rest of the page */
.woocommerce-notices-wrapper > :last-child { margin-bottom: 0; }
