/*
Theme Name: NHI Medikal
Theme URI: https://www.nhimedikal.com/
Author: NHI Medikal
Description: A premium B2B catalogue theme for medical aesthetic devices, professional beauty equipment and dermocosmetics. Built for a five-language site (Turkish, English, Arabic, Russian, Ukrainian) with full RTL support, no page builder and no e-commerce — the only conversion paths are quote requests, WhatsApp and the inquiry form.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nhi-medikal
Tags: catalogue, business, rtl-language-support, translation-ready, custom-logo, custom-menu
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

/* The palette is petrol on neutral: a deep blue-green accent over off-white and
   cool grey surfaces. It replaced a warm bone-and-bronze scheme, which read as
   brown; nothing here carries a warm tint, including the shadows and borders,
   because a single warm surface among neutrals is what made the previous
   version look beige rather than designed.

   One tone is held back on purpose. Product specifications, SKUs and technical
   tables use a neutral slate ink rather than the petrol accent, so the accent
   never decorates data. Petrol is for brand and navigation; data stays quiet. */

:root {
	/* Ink — near-black with a trace of blue, never brown. */
	--ink:        #14191a;
	--ink-2:      #374144;
	--muted:      #687376;
	--muted-2:    #97a2a5;

	/* Surfaces — off-white and cool grey. No cream. */
	--bg:         #fafbfb;
	--bg-soft:    #eff3f3;
	--bg-softer:  #f6f9f9;
	--bg-deep:    #101a1c;   /* Deep petrol-black, for inverted sections. */
	--line:       #dfe6e6;
	--line-soft:  #ebf0f0;

	/* Accents — petrol leads, a lighter aqua supports. */
	--petrol:      #1d5b63;
	--petrol-deep: #17474d;
	--petrol-tint: #e3eff0;
	--aqua:        #4e9aa0;
	--aqua-tint:   #eaf3f4;
	--rose:        #b76e79;
	--rose-tint:   #f8eff0;

	/* Technical surfaces only — spec tables, SKUs, measurements. */
	--slate:      #2f3a44;
	--slate-2:    #5b6773;
	--slate-tint: #eef1f4;

	--ok:         #2f6b57;
	--warn:       #8a4a1e;

	/* Legacy aliases. --blue and --gold are referenced in dozens of rules; they
	   resolve to the new accents so nothing renders in an abandoned palette.
	   The original soft gold is gone deliberately — it was the one remaining
	   brown, and it fought the petrol wherever the two met. */
	--blue:       var(--petrol);
	--blue-deep:  var(--petrol-deep);
	--blue-tint:  var(--petrol-tint);
	--gold:       var(--aqua);
	--gold-tint:  var(--aqua-tint);
	--bronze:      var(--petrol);
	--bronze-deep: var(--petrol-deep);
	--bronze-tint: var(--petrol-tint);

	/* Type scale — fluid, and wider than before at the top end. An editorial
	   serif needs room to be worth using; at the old display size it just looked
	   like a sans with curls. */
	--fs-display: clamp(2.6rem, 1.4rem + 5vw, 5.25rem);
	--fs-h1:      clamp(2.1rem, 1.4rem + 2.9vw, 3.6rem);
	--fs-h2:      clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem);
	--fs-h3:      clamp(1.25rem, 1.08rem + 0.7vw, 1.6rem);
	--fs-h4:      clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
	--fs-body:    1.0625rem;
	--fs-sm:      0.9375rem;
	--fs-xs:      0.8125rem;

	/* Rhythm */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	--wrap:       1240px;
	--wrap-wide:  1440px;
	--wrap-text:  760px;

	--radius:     14px;
	--radius-sm:  8px;
	--radius-lg:  22px;

	/* Shadows carry a trace of the accent rather than pure grey, which keeps the
	   page in one light without introducing warmth. */
	--shadow-sm:  0 1px 2px rgba(16, 34, 38, 0.05), 0 1px 3px rgba(16, 34, 38, 0.04);
	--shadow:     0 4px 12px rgba(16, 34, 38, 0.06), 0 12px 28px rgba(16, 34, 38, 0.05);
	--shadow-lg:  0 12px 32px rgba(16, 34, 38, 0.10), 0 32px 64px rgba(16, 34, 38, 0.07);

	--ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
	--dur:        220ms;
	--dur-slow:   700ms;

	/* Typefaces.

	   Per script rather than one family for all of them. A Latin serif has no
	   Arabic glyphs, and letting it fall back mid-heading is exactly what makes
	   multilingual sites look broken. Arabic gets Amiri, a real Naskh, so its
	   headings carry the same editorial weight rather than looking like a
	   different site. The stacks below list each script's face first and let the
	   browser pick by coverage. */
	--font-display: "Playfair Display", "Amiri", Georgia, "Times New Roman", serif;
	--font:         "Inter", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont,
	                "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;

	/* Technical data. Tabular figures so specification columns align, which is
	   the whole point of the clinical half of the palette. */
	--font-num: "Inter", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Arabic reverses the pairing: Amiri leads for display, Plex Sans Arabic for
   text. Declared on [lang] so a stray Latin word inside Arabic copy still
   resolves through the same stack rather than dropping to a system fallback. */
[lang="ar"], [lang="ar"] * {
	--font-display: "Amiri", "Playfair Display", Georgia, serif;
	--font:         "IBM Plex Sans Arabic", "Inter", "Noto Sans Arabic", Arial, sans-serif;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.68;
	font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* clip, not hidden.
	   overflow-x: hidden makes the body a scroll container. Under dir="rtl"
	   that container's origin sits at its right edge, so any horizontal
	   overflow leaves the viewport showing the empty side of the scroll box —
	   the Arabic pages rendered as a blank white screen. overflow-x: clip
	   suppresses the same overflow without creating a scroll container. */
	overflow-x: clip;
}

/* Headings carry the display serif. Weight drops to 500–600 because a high
   contrast serif at 700 turns muddy at large sizes, and the tracking goes
   slightly negative only on the biggest steps — a serif set tight at body size
   loses its counters. */
h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 560;
	line-height: 1.1;
	letter-spacing: -0.012em;
	color: var(--ink);
	margin: 0 0 var(--sp-4);
	text-wrap: balance;
}

/* h4 and below stay in the sans. They are labels and sub-heads doing structural
   work, not editorial statements, and a serif at that size just adds noise. */
h4, h5, h6 {
	font-family: var(--font);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.006em;
	color: var(--ink);
	margin: 0 0 var(--sp-4);
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.004em; }
h4 { font-size: var(--fs-h4); }

/* Amiri sits noticeably smaller on the body than Playfair at the same px size,
   and Arabic needs more leading to stay readable. */
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
	color: var(--blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--dur) var(--ease);
}
a:hover { color: var(--blue-deep); }

img, svg, video, iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: 1.35em; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--sp-7) 0;
}

table { border-collapse: collapse; width: 100%; }

button { font: inherit; }

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

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

.skip-link {
	position: absolute;
	inset-inline-start: var(--sp-4);
	top: -100px;
	z-index: 999;
	padding: var(--sp-3) var(--sp-5);
	background: var(--ink);
	color: #fff;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
	transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--sp-5);
}

.wrap--wide { max-width: var(--wrap-wide); }
.wrap--text { max-width: var(--wrap-text); }

.section { padding-block: clamp(3rem, 1.5rem + 6vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 3.5rem); }
.section--soft { background: var(--bg-soft); }
.section--line { border-top: 1px solid var(--line); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }

/* Section headings ------------------------------------------------------- */

.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}

.section__title { margin: 0; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: 640;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

.lede {
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
	line-height: 1.65;
	color: var(--ink-2);
	max-width: 62ch;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 0.82rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
	            border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
	background: var(--blue);
	color: #fff;
	box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-deep); color: #fff; box-shadow: var(--shadow); }

.btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); background: var(--bg-soft); }

.btn--rose {
	background: var(--rose);
	color: #fff;
}
.btn--rose:hover { background: #a25b66; color: #fff; }

/* WhatsApp inline, in the page.
   The brand green is a slab of #1faf54 against bone and bronze, and in the hero
   it fought the primary CTA for attention while looking like it belonged to a
   different site. Inline it becomes a quiet outlined button — the glyph carries
   the recognition, which is all it needs when the label already says WhatsApp.
   The floating button keeps the real brand green: that one is found by colour,
   at the edge of the screen, with no label on mobile. */
.btn--whatsapp {
	background: transparent;
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--line);
}

.btn--whatsapp:hover {
	background: var(--bg-soft);
	color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--muted-2);
}

.btn--whatsapp svg { color: #1faf54; }

.btn--lg { padding: 1rem 2rem; font-size: var(--fs-body); }
.btn--block { display: flex; width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line-soft);
}

.topbar {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--fs-xs);
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 40px;
	padding-block: var(--sp-2);
}

.topbar__contact {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__contact li { margin: 0; }

.topbar a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.topbar a:hover { color: #fff; }

.header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	min-height: 78px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	text-decoration: none;
	color: var(--ink);
	flex: none;
}

.brand__mark {
	width: 42px;
	height: 42px;
	border-radius: 11px;
	object-fit: cover;
	flex: none;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__tag {
	font-size: 0.6875rem;
	font-weight: 560;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

/* Primary navigation ----------------------------------------------------- */

.nav-primary { margin-inline-start: auto; }

.nav-primary ul {
	display: flex;
	align-items: center;
	gap: var(--sp-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-primary li { position: relative; margin: 0; }

.nav-primary a {
	display: block;
	padding: 0.55rem 0.85rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	font-weight: 550;
	color: var(--ink-2);
	text-decoration: none;
	white-space: nowrap;
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-ancestor > a {
	color: var(--blue);
	background: var(--blue-tint);
}

/* Dropdowns */
.nav-primary .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	min-width: 240px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: var(--sp-2);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-primary .sub-menu a { padding: 0.5rem 0.7rem; white-space: normal; }

/* Header actions --------------------------------------------------------- */

.header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	flex: none;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-2);
	cursor: pointer;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* Language switcher ------------------------------------------------------
   Namespaced deliberately. A bare .lang collides with plugins that bind data
   to class names generically — CookieAdmin walks a class→value map and does
   element.innerHTML = value, so a `lang` class anywhere on the page gets
   overwritten with its language object, rendering as "[object Object]". */

.nhi-langswitch { position: relative; }

.nhi-langswitch__current {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	height: 42px;
	padding-inline: 0.9rem;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink-2);
	cursor: pointer;
}
.nhi-langswitch__current:hover { border-color: var(--blue); color: var(--blue); }
.nhi-langswitch__current svg { width: 14px; height: 14px; opacity: 0.6; }

.nhi-langswitch__list {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	min-width: 190px;
	margin: 0;
	padding: var(--sp-2);
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
	z-index: 30;
}

.nhi-langswitch[data-open="true"] .nhi-langswitch__list,
.nhi-langswitch:focus-within .nhi-langswitch__list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nhi-langswitch__list li { margin: 0; }

.nhi-langswitch__list a {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0.5rem 0.7rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--ink-2);
	text-decoration: none;
}
.nhi-langswitch__list a:hover { background: var(--bg-soft); color: var(--ink); }
.nhi-langswitch__list .is-current a { color: var(--blue); font-weight: 620; }

.nhi-langswitch__code {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--muted);
}

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero {
	position: relative;
	background: linear-gradient(168deg, var(--bg-soft) 0%, var(--bg) 55%, var(--petrol-tint) 100%);
	overflow: hidden;
}

.hero::after {
	/* A single soft light source, echoing the product photography. */
	content: "";
	position: absolute;
	inset-inline-end: -12%;
	top: -30%;
	width: 62vw;
	height: 62vw;
	max-width: 900px;
	max-height: 900px;
	background: radial-gradient(circle, rgba(29, 91, 99, 0.11) 0%, rgba(29, 91, 99, 0) 68%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: var(--sp-8);
	padding-block: clamp(3rem, 1.5rem + 7vw, 6.5rem);
}

.hero__title {
	font-size: var(--fs-display);
	margin-bottom: var(--sp-5);
}

.hero__lede { margin-bottom: var(--sp-6); }

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-bottom: var(--sp-6);
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-6);
	margin: 0;
	padding-top: var(--sp-5);
	border-top: 1px solid var(--line);
}

.hero__stat dt {
	font-size: var(--fs-xs);
	font-weight: 560;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: var(--sp-1);
}

.hero__stat dd {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 680;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.hero__media {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	aspect-ratio: 4 / 3;
	background: var(--bg-soft);
}

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

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
	.hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   7. Cards
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover {
	border-color: var(--line);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bg-soft);
	overflow: hidden;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease);
}

.card:hover .card__media img { transform: scale(1.035); }

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--sp-5);
	gap: var(--sp-2);
}

.card__brand {
	font-size: var(--fs-xs);
	font-weight: 640;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.card__title {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 620;
	line-height: 1.36;
	letter-spacing: -0.01em;
}

.card__title a { color: inherit; text-decoration: none; }

/* Stretched link keeps the whole card clickable without nesting anchors. */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

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

.card__excerpt {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--muted);
	line-height: 1.6;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
	margin-top: auto;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--line-soft);
	font-size: var(--fs-xs);
	color: var(--muted);
}

/* Technical figures: tabular so columns line up, and slate rather than warm ink.
   This is the clinical half of the palette doing its job. */
.card__sku,
.product__ids dd,
.spec-table td,
.spec-table th,
.filters__count {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1, "kern" 1;
}

.card__sku { font-family: var(--font-num); letter-spacing: 0.02em; color: var(--slate-2); }

.badge {
	position: absolute;
	top: var(--sp-3);
	inset-inline-start: var(--sp-3);
	z-index: 2;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 660;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--ink);
	color: #fff;
}

.badge--rose { background: var(--rose); }
.badge--gold { background: var(--gold); color: #2b2311; }

/* Category card ---------------------------------------------------------- */

.cat-card {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	background: var(--bg-soft);
}

.cat-card img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 600ms var(--ease);
}
.cat-card:hover img { transform: scale(1.05); }

.cat-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--sp-5);
	background: linear-gradient(to top, rgba(12, 20, 22, 0.78) 0%, rgba(12, 20, 22, 0.15) 52%, rgba(12, 20, 22, 0) 100%);
	color: #fff;
}

.cat-card__title { margin: 0; font-size: 1.1rem; font-weight: 650; color: #fff; }
.cat-card__count { font-size: var(--fs-xs); opacity: 0.82; }

/* Brand card ------------------------------------------------------------- */

.brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-5);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand-card:hover { border-color: var(--line); box-shadow: var(--shadow); }

.brand-card__mark {
	width: 68px; height: 68px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--bg-soft);
}

.brand-card__name { font-size: var(--fs-sm); font-weight: 640; color: var(--ink); }
.brand-card__meta { font-size: var(--fs-xs); color: var(--muted); }

/* ==========================================================================
   8. Product page
   ========================================================================== */

.breadcrumb {
	padding-block: var(--sp-4);
	font-size: var(--fs-xs);
	color: var(--muted);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb li { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 560; }

.product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	padding-bottom: var(--sp-8);
}

@media (max-width: 940px) {
	.product__top { grid-template-columns: 1fr; }
}

/* Gallery ---------------------------------------------------------------- */

.gallery__main {
	position: relative;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-soft);
}

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

.gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	gap: var(--sp-3);
	margin-top: var(--sp-3);
	padding: 0;
	list-style: none;
}

.gallery__thumbs li { margin: 0; }

.gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-soft);
	cursor: pointer;
	transition: border-color var(--dur) var(--ease);
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--muted-2); }
.gallery__thumb[aria-current="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

/* Summary ---------------------------------------------------------------- */

.product__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	margin-bottom: var(--sp-4);
	padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink-2);
	font-size: var(--fs-sm);
	font-weight: 560;
}
.product__brand:hover { border-color: var(--blue); color: var(--blue); }
.product__brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.product__title { margin-bottom: var(--sp-4); }

.product__summary { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: var(--sp-5); }

.product__ids {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-6);
	margin: 0 0 var(--sp-5);
	padding: var(--sp-4) 0;
	border-block: 1px solid var(--line);
	font-size: var(--fs-sm);
}

.product__ids dt { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.product__ids dd { margin: 0; font-family: var(--font-num); font-weight: 560; }
.product__id { display: flex; flex-direction: column; gap: 2px; }

.product__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-bottom: var(--sp-5);
}

.product__assurance {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: var(--sp-5);
	background: var(--bg-soft);
	border-radius: var(--radius);
	list-style: none;
	font-size: var(--fs-sm);
	color: var(--ink-2);
}

.product__assurance li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	margin: 0;
}

.product__assurance svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }

/* Body sections ---------------------------------------------------------- */

.product__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 1rem + 4vw, 4rem); }

@media (max-width: 1040px) {
	.product__body { grid-template-columns: 1fr; }
}

.prose { font-size: var(--fs-body); line-height: 1.75; color: var(--ink-2); }
.prose h2 { margin-top: var(--sp-7); font-size: var(--fs-h2); color: var(--ink); }
.prose h3 { margin-top: var(--sp-6); font-size: var(--fs-h3); color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: var(--sp-5); }
.prose strong { color: var(--ink); font-weight: 620; }

.prose blockquote {
	margin: var(--sp-6) 0;
	padding: var(--sp-5) var(--sp-6);
	border-inline-start: 3px solid var(--blue);
	background: var(--bg-soft);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 1.09rem;
	color: var(--ink);
}

.feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--sp-3);
	margin: 0 0 var(--sp-6);
	padding: 0;
	list-style: none;
}

.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	margin: 0;
	padding: var(--sp-4);
	background: var(--bg-soft);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--ink-2);
}

.feature-list svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue); }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.tag-list li { margin: 0; }

.tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: var(--fs-xs);
	color: var(--ink-2);
	text-decoration: none;
	background: #fff;
}
.tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

/* Spec table ------------------------------------------------------------- */

.spec-table-wrap { overflow-x: auto; margin-bottom: var(--sp-6); border: 1px solid var(--line); border-radius: var(--radius); }

.spec-table { font-size: var(--fs-sm); }

.spec-table th,
.spec-table td { padding: 0.85rem var(--sp-5); text-align: start; vertical-align: top; }

.spec-table th {
	width: 42%;
	font-weight: 560;
	color: var(--muted);
	background: var(--bg-softer);
	border-inline-end: 1px solid var(--line-soft);
}

.spec-table td { color: var(--ink); }
.spec-table tr + tr th,
.spec-table tr + tr td { border-top: 1px solid var(--line-soft); }

/* FAQ -------------------------------------------------------------------- */

.faq { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); }

.faq__item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
}

.faq__item[open] { border-color: var(--line); box-shadow: var(--shadow-sm); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
}

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

.faq__q::after {
	content: "";
	width: 10px; height: 10px;
	flex: none;
	border-right: 2px solid var(--muted);
	border-bottom: 2px solid var(--muted);
	transform: rotate(45deg);
	transition: transform var(--dur) var(--ease);
}

.faq__item[open] .faq__q::after { transform: rotate(-135deg); }

.faq__a { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-sm); color: var(--ink-2); }

/* Downloads -------------------------------------------------------------- */

.downloads { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-6); padding: 0; list-style: none; }
.downloads li { margin: 0; }

.download {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
	background: #fff;
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.download:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

.download svg { width: 22px; height: 22px; flex: none; color: var(--rose); }
.download__name { font-size: var(--fs-sm); font-weight: 560; }
.download__kind { font-size: var(--fs-xs); color: var(--muted); }

/* Sticky sidebar --------------------------------------------------------- */

.product__aside { position: sticky; top: 100px; align-self: start; display: grid; gap: var(--sp-4); }

.panel {
	padding: var(--sp-5);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.panel--accent { background: var(--bg-soft); border-color: transparent; }
.panel__title { margin: 0 0 var(--sp-3); font-size: var(--fs-h4); }
.panel__text { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }

/* ==========================================================================
   9. Archive & filters
   ========================================================================== */

.page-head { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head__title { margin-bottom: var(--sp-3); }
.page-head__count { font-size: var(--fs-sm); color: var(--muted); }

.catalogue { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); padding-block: var(--sp-7); }

@media (max-width: 940px) {
	.catalogue { grid-template-columns: 1fr; }
}

/* Nothing here scrolls on its own.
   The sidebar previously had overflow-y on itself AND on every term list,
   producing a scrollbar inside a scrollbar — hard to operate and it hid the
   options the visitor came to find. Long vocabularies are handled by collapsing
   instead: groups are <details>, and anything past the first eight terms sits
   behind a "+N more" disclosure.

   Sticky is conditional, and that is the important part. A sticky element taller
   than the viewport pins in place while the page scrolls past it, so its lower
   half can never be brought into view — with the category facet expanded the
   sidebar measured 3589px against a 900px viewport and 3089px of it was
   unreachable at any scroll position. Pinning is therefore applied by script
   only while the sidebar actually fits (see initStickyFilters). Static is the
   safe default: it scrolls with the page, so everything is always reachable
   even with no JavaScript. */

.filters { align-self: start; }

@media (min-width: 941px) {
	.filters.is-pinned { position: sticky; top: 100px; }
}

/* Facet group ------------------------------------------------------------ */

.facet {
	border-bottom: 1px solid var(--line);
	padding-bottom: var(--sp-3);
	margin-bottom: var(--sp-3);
}

.facet:last-child { border-bottom: 0; margin-bottom: 0; }

.facet__title {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-2) 0;
	font-size: var(--fs-xs);
	font-weight: 660;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.facet__title::-webkit-details-marker { display: none; }
.facet__title:hover { color: var(--ink-2); }

.facet__chevron {
	width: 15px;
	height: 15px;
	margin-inline-start: auto;
	flex: none;
	transition: transform var(--dur) var(--ease);
}

.facet[open] > .facet__title .facet__chevron { transform: rotate(180deg); }

/* Count of active selections, so a collapsed group still shows it is filtering. */
.facet__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--blue);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0;
}

/* Term list -------------------------------------------------------------- */

.filters__list {
	margin: 0 0 var(--sp-1);
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1px;
}

.filters__list li { margin: 0; }

.filters__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: 0.4rem 0.55rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: var(--ink-2);
	text-decoration: none;
}

.filters__item:hover { background: var(--bg-soft); color: var(--ink); }

.filters__item[aria-pressed="true"] {
	background: var(--blue-tint);
	color: var(--blue);
	font-weight: 580;
}

/* Long category names wrap rather than truncate — a filter you cannot read
   is not a filter. The count stays put on its own line. */
.filters__name { min-width: 0; overflow-wrap: break-word; }

.filters__count {
	flex: none;
	font-size: var(--fs-xs);
	color: var(--muted-2);
	font-family: var(--font-num);
	font-variant-numeric: tabular-nums;
}

.filters__item[aria-pressed="true"] .filters__count { color: var(--blue); }

/* "+N more" disclosure --------------------------------------------------- */

.facet__more > summary {
	display: inline-block;
	padding: 0.35rem 0.55rem;
	font-size: var(--fs-xs);
	font-weight: 600;
	color: var(--blue);
	cursor: pointer;
	list-style: none;
	border-radius: var(--radius-sm);
}

.facet__more > summary::-webkit-details-marker { display: none; }
.facet__more > summary:hover { background: var(--blue-tint); }
.facet__more[open] > summary { color: var(--muted); }

/* The control kept reading "+18 more" after it had been opened, which left no
   obvious way back. Both labels are in the markup and the open state picks one,
   so the swap costs no JavaScript. */
.facet__more > summary .facet__more-close { display: none; }
.facet__more[open] > summary .facet__more-open { display: none; }
.facet__more[open] > summary .facet__more-close { display: inline; }

/* Clear all -------------------------------------------------------------- */

.filters__reset {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-4);
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: var(--rose-tint);
	color: var(--rose);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-decoration: none;
}

.filters__reset:hover { background: #f2e3e5; color: #a25b66; }
.filters__reset svg { width: 13px; height: 13px; }

.catalogue__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-5);
}

.active-facets { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-5); padding: 0; list-style: none; }
.active-facets li { margin: 0; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 0.3rem 0.55rem 0.3rem 0.8rem;
	background: var(--blue-tint);
	border-radius: 999px;
	font-size: var(--fs-xs);
	color: var(--blue);
	text-decoration: none;
	font-weight: 560;
}
.chip:hover { background: var(--bronze-tint); color: var(--blue-deep); }
.chip svg { width: 13px; height: 13px; }

select.sort {
	padding: 0.5rem 2.2rem 0.5rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7684' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 15px;
	font-size: var(--fs-sm);
	color: var(--ink-2);
	appearance: none;
	cursor: pointer;
}

.filters-toggle { display: none; }

@media (max-width: 940px) {
	.filters-toggle { display: inline-flex; }
	.filters { display: none; }
	.filters.is-open { display: block; }
}

/* Empty state ------------------------------------------------------------ */

.empty {
	padding: var(--sp-8) var(--sp-5);
	text-align: center;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}

/* Pagination ------------------------------------------------------------- */

.pagination { display: flex; justify-content: center; margin-top: var(--sp-7); }

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.6rem;
	margin: 0 3px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	color: var(--ink-2);
	text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination .dots { border-color: transparent; }

/* ==========================================================================
   10. Forms
   ========================================================================== */

.field { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }

.field__label { font-size: var(--fs-sm); font-weight: 560; color: var(--ink-2); }
.field__label .req { color: var(--rose); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
	width: 100%;
	padding: 0.72rem 0.95rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-family: inherit;
	font-size: var(--fs-sm);
	color: var(--ink);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(29, 91, 99, 0.16);
}

textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

::placeholder { color: var(--muted-2); }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--sp-4); }

.form-note { font-size: var(--fs-xs); color: var(--muted); }

/* Honeypot — hidden from people, still present for naive bots.
   Deliberately NOT `left: -9999px`: an absolutely positioned element with no
   positioned ancestor resolves against the initial containing block, so body's
   overflow clip does not apply to it. Under dir="rtl" that offset extends the
   document by 9999px and the viewport ends up on the empty side of it — the
   whole Arabic site rendered as a blank page. Clipping to a 1px box hides it
   just as well without touching layout in either direction. */
.hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.notice {
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius-sm);
	margin-bottom: var(--sp-5);
	font-size: var(--fs-sm);
}

.notice--success { background: #e8f6ef; color: var(--ok); }
.notice--error { background: #fdeeea; color: var(--warn); }

/* Search form ------------------------------------------------------------ */

.searchform { display: flex; gap: var(--sp-2); }
.searchform input[type="search"] { flex: 1; }

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(3rem, 10vh, 8rem) var(--sp-5);
	background: rgba(12, 20, 22, 0.58);
	backdrop-filter: blur(4px);
}

.search-overlay.is-open { display: flex; }

.search-overlay__panel {
	width: 100%;
	max-width: 640px;
	padding: var(--sp-6);
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   11. Inquiry & WhatsApp
   ========================================================================== */

.inquiry {
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	background: var(--bg-soft);
	border-radius: var(--radius-lg);
}

.whatsapp-float {
	position: fixed;
	inset-inline-end: clamp(1rem, 2vw, 1.75rem);
	bottom: clamp(1rem, 2vw, 1.75rem);
	z-index: 300;
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	padding: 0.85rem 1.1rem;
	background: #1faf54;
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	font-size: var(--fs-sm);
	font-weight: 600;
	box-shadow: 0 8px 26px rgba(31, 175, 84, 0.34);
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.whatsapp-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(31, 175, 84, 0.42); }
.whatsapp-float svg { width: 22px; height: 22px; flex: none; }

@media (max-width: 620px) {
	.whatsapp-float__label { display: none; }
	.whatsapp-float { padding: 0.9rem; }
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); font-size: var(--fs-sm); }

.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer__main {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: var(--sp-6);
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

@media (max-width: 900px) { .footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__main { grid-template-columns: 1fr; } }

.footer__title {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-xs);
	font-weight: 660;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.footer__menu { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.footer__menu li { margin: 0; }

.footer__about { max-width: 34ch; margin-bottom: var(--sp-5); }

.footer__brand { display: inline-flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer__brand span { color: #fff; font-size: 1.1rem; font-weight: 700; }

.footer__contact { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-3); }
.footer__contact li { display: flex; gap: var(--sp-3); margin: 0; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; opacity: 0.6; }

.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }

.socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.34); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-block: var(--sp-5);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: var(--fs-xs);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.footer__legal li { margin: 0; }

/* ==========================================================================
   13. Utilities & misc
   ========================================================================== */

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--sp-7); }

/* Reveal-on-scroll.
   Scoped to .js so that without JavaScript — or if the script fails — the
   content is simply visible rather than permanently transparent. The hidden
   state is applied by script, never by default. */
/* Reveals travel further and settle more slowly than before, on an ease-out
   curve that decelerates hard at the end. The old 14px/600ms linear-ish move was
   too small to register as motion and too fast to feel considered. */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity var(--dur-slow) var(--ease-out),
		transform var(--dur-slow) var(--ease-out);
	transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Children of a staggered group come in one after another. The delay is set on
   the element by script, because the stagger has to follow DOM order within
   whichever group scrolled into view — a fixed nth-child rule would restart the
   sequence on every grid and cascade the whole page at once. */

/* Hero parallax. The media drifts slower than the page, which is the whole
   effect; --parallax is written by script from the scroll position. Kept on a
   composited transform so it never triggers layout. */
.hero__media {
	transform: translate3d(0, var(--parallax, 0px), 0);
	will-change: transform;
}

/* Counters hold their box while animating so the stats row does not reflow as
   digits change width — tabular figures plus a reserved minimum. */
.hero__stat dd {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

@media (prefers-reduced-motion: reduce) {
	.hero__media { transform: none; will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; }
}

/* Post/article body ------------------------------------------------------ */

.entry-meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); margin-bottom: var(--sp-4); }

.post-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-6); aspect-ratio: 16 / 9; background: var(--bg-soft); }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }

.wp-caption { margin-bottom: var(--sp-5); }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--muted); text-align: center; margin-top: var(--sp-2); }

.alignleft { float: left; margin: 0 var(--sp-5) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-5); }
.aligncenter { margin-inline: auto; }

/* ==========================================================================
   14. Mobile navigation
   ========================================================================== */

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }

	.nav-primary {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 500;
		width: min(88vw, 380px);
		padding: var(--sp-7) var(--sp-5) var(--sp-5);
		background: #fff;
		box-shadow: var(--shadow-lg);
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 300ms var(--ease);
	}

	body.nhi-rtl .nav-primary { inset: 0 auto 0 0; transform: translateX(-100%); }

	.nav-primary.is-open { transform: none; }

	.nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-primary a { padding: 0.75rem 0.6rem; font-size: 1rem; }

	.nav-primary .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-inline-start: 2px solid var(--line);
		border-radius: 0;
		padding: 0 0 0 var(--sp-4);
		margin-bottom: var(--sp-2);
	}

	.nav-scrim {
		position: fixed;
		inset: 0;
		z-index: 450;
		background: rgba(12, 20, 22, 0.48);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--dur) var(--ease), visibility var(--dur);
	}

	.nav-scrim.is-open { opacity: 1; visibility: visible; }

	.topbar__contact { display: none; }
}

/* ==========================================================================
   15. Print
   ========================================================================== */

@media print {
	.site-header, .site-footer, .whatsapp-float, .filters, .product__cta, .inquiry { display: none !important; }
	body { font-size: 11pt; }
	.product__top { grid-template-columns: 1fr; }
	a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
