/* =====================================================================
   FullRack theme — main stylesheet
   Dark industrial design system for server & network equipment shop
   ===================================================================== */

/* ---------- Fonts (self-hosted Vazirmatn) ---------- */
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
	font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--ink: #080b10;
	--surface: #0e131a;
	--raised: #151c26;
	--raised-2: #1c2531;
	--line: #232d3b;
	--line-soft: #1a222d;
	--muted: #8b98a9;
	--text: #e6edf5;
	--brand: #00e5a0;
	--brand-dk: #00b381;
	--brand-glow: rgba(0, 229, 160, .18);
	--amber: #ffb020;
	--danger: #ff5c5c;

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

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
	--shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);

	--container: 1280px;
	--header-h: 68px;

	--ease: cubic-bezier(.4, 0, .2, 1);
	--grad: linear-gradient(135deg, #00e5a0 0%, #00b3ff 100%);
}

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

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

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: Vazirmatn, 'IRANSans', 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: #6bffd4; }
ul, ol { padding-inline-start: 1.2em; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; }

/* ---------- Layout helpers ---------- */
.fr-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.fr-main { display: block; }
.fr-py-4 { padding-block: 1rem; }
.fr-py-6 { padding-block: 1.5rem; }
.fr-py-8 { padding-block: 2rem; }
.fr-py-10 { padding-block: 2.5rem; }
.fr-py-12 { padding-block: 3rem; }
.fr-py-16 { padding-block: 4rem; }
.fr-py-20 { padding-block: 5rem; }
.fr-muted { color: var(--muted); }
.fr-site { display: flex; flex-direction: column; min-height: 100vh; }

.fr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.fr-layout-main { min-width: 0; }

.fr-skip {
	position: absolute; right: -999px; top: 0; z-index: 999;
	background: var(--brand); color: var(--ink); padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.fr-skip:focus { right: 0; }

/* ---------- Buttons ---------- */
.fr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .72rem 1.4rem; border-radius: var(--radius-sm);
	font-weight: 700; font-size: .92rem; line-height: 1;
	border: 1px solid transparent; background: transparent; color: var(--text);
	transition: all .18s var(--ease); white-space: nowrap; text-align: center;
}
.fr-btn:hover { transform: translateY(-1px); }
.fr-btn-primary { background: var(--brand); color: #04140e; box-shadow: 0 6px 20px var(--brand-glow); }
.fr-btn-primary:hover { background: #2ff0b4; color: #04140e; box-shadow: 0 10px 28px rgba(0, 229, 160, .3); }
.fr-btn-ghost { border-color: var(--line); color: var(--text); background: var(--raised); }
.fr-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.fr-btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.fr-btn-sm { padding: .5rem .95rem; font-size: .82rem; }
.fr-btn-block { width: 100%; }
.btn { display: inline-flex; align-items: center; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.current { background: var(--brand); color: #04140e; border-color: var(--brand); }

.fr-icon-btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--radius-sm);
	border: 1px solid var(--line); background: var(--raised); color: var(--text);
	transition: all .18s var(--ease);
}
.fr-icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.fr-icon-btn--sm { width: 34px; height: 34px; }
.fr-cart-count {
	position: absolute; top: -6px; left: -6px; min-width: 18px; height: 18px; padding: 0 4px;
	background: var(--brand); color: #04140e; border-radius: 9px;
	font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center;
}

.fr-link-more { font-size: .88rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.fr-link-more:hover { color: var(--brand); }
.fr-link-more span { transition: transform .2s var(--ease); display: inline-block; }
.fr-link-more:hover span { transform: translateX(-4px); }

.fr-eyebrow {
	display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em;
	color: var(--brand); text-transform: uppercase; margin-bottom: .5rem;
}

.fr-grad {
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Topbar ---------- */
.fr-topbar { background: #05080c; border-bottom: 1px solid var(--line-soft); font-size: .8rem; }
.fr-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.fr-topbar-info, .fr-topbar-note { display: flex; align-items: center; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.fr-topbar-info li, .fr-topbar-note li { display: flex; align-items: center; gap: .4rem; color: var(--muted); }
.fr-topbar-info a { color: var(--muted); }
.fr-topbar-info a:hover { color: var(--brand); }
.fr-topbar-note li { position: relative; }
.fr-topbar-note li + li::before { content: ''; position: absolute; right: -.55rem; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--line); }

/* ---------- Header ---------- */
.fr-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(8, 11, 16, .88); backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-soft);
}
.fr-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.fr-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.fr-logo-mark { color: var(--brand); display: grid; place-items: center; }
.fr-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.fr-logo-text strong { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.fr-logo-text em { font-style: normal; font-size: .68rem; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.custom-logo-link img { max-height: 42px; width: auto; }

.fr-nav { flex: 1; }
.fr-nav-list { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.fr-nav-list > li { position: relative; }
.fr-nav-list > li > a {
	display: block; padding: .55rem .8rem; border-radius: var(--radius-sm);
	color: var(--text); font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.fr-nav-list > li > a:hover, .fr-nav-list > li.current-menu-item > a { color: var(--brand); background: var(--raised); }
.fr-nav-list .sub-menu {
	position: absolute; top: 100%; right: 0; min-width: 210px; z-index: 60;
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
	padding: .5rem; list-style: none; margin: .5rem 0 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: all .18s var(--ease); box-shadow: var(--shadow-md);
}
.fr-nav-list > li:hover > .sub-menu, .fr-nav-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.fr-nav-list .sub-menu a { display: block; padding: .45rem .7rem; border-radius: 6px; color: var(--text); font-size: .87rem; }
.fr-nav-list .sub-menu a:hover { background: var(--raised-2); color: var(--brand); }

.fr-header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }

.fr-mobile-toggle { display: none; flex-direction: column; gap: 4px; }
.fr-mobile-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.fr-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fr-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fr-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.fr-mobile-nav {
	position: fixed; inset: calc(var(--header-h) + 38px) 0 0; z-index: 99;
	background: var(--ink); padding: 1.5rem 20px; overflow-y: auto;
}
.fr-mobile-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.fr-mobile-list li a { display: block; padding: .85rem .5rem; border-bottom: 1px solid var(--line-soft); color: var(--text); font-weight: 600; }
.fr-mobile-list .sub-menu { list-style: none; padding-inline-start: 1rem; }

/* ---------- Search bar ---------- */
.fr-searchbar { border-top: 1px solid var(--line-soft); background: var(--surface); }
.fr-searchbar[hidden] { display: none; }
.fr-search-form { position: relative; display: flex; align-items: center; gap: .5rem; padding: 1rem 0; }
.fr-searchbar .fr-search-form { padding: 1rem 0; }
.fr-search-form input[type="search"] {
	flex: 1; background: var(--raised); border: 1px solid var(--line); color: var(--text);
	padding: .7rem 1rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
}
.fr-search-form input::placeholder { color: var(--muted); }
.fr-search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.fr-search-form button { background: var(--raised-2); border: 1px solid var(--line); color: var(--text); padding: .65rem .9rem; border-radius: var(--radius-sm); display: grid; place-items: center; }
.fr-search-form button:hover { border-color: var(--brand); color: var(--brand); }

.fr-search-results {
	position: absolute; top: 100%; right: 0; left: 52px; z-index: 80;
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.fr-search-results[hidden] { display: none; }
.fr-sr-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); }
.fr-sr-item:last-child { border-bottom: 0; }
.fr-sr-item:hover { background: var(--raised-2); }
.fr-sr-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--raised-2); flex-shrink: 0; }
.fr-sr-body { flex: 1; min-width: 0; }
.fr-sr-title { font-size: .88rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-sr-meta { font-size: .75rem; color: var(--muted); }
.fr-sr-price { font-size: .85rem; color: var(--brand); font-weight: 700; white-space: nowrap; }
.fr-sr-empty { padding: 1.2rem; text-align: center; color: var(--muted); font-size: .88rem; }

/* ---------- Hero ---------- */
.fr-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.fr-hero-grid-bg {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(0, 229, 160, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 229, 160, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
	pointer-events: none;
}
.fr-hero-inner {
	position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
	gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.fr-hero-badge {
	display: inline-flex; align-items: center; gap: .5rem;
	background: rgba(0, 229, 160, .08); border: 1px solid rgba(0, 229, 160, .25);
	color: var(--brand); padding: .35rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
	margin-bottom: 1.2rem;
}
.fr-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: fr-pulse 2s infinite; }
@keyframes fr-pulse {
	0% { box-shadow: 0 0 0 0 rgba(0, 229, 160, .6); }
	70% { box-shadow: 0 0 0 8px rgba(0, 229, 160, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}
.fr-hero-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; margin-bottom: 1rem; }
.fr-hero-text { font-size: clamp(.95rem, 1.5vw, 1.08rem); color: var(--muted); max-width: 46ch; margin-bottom: 2rem; }
.fr-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.5rem; }
.fr-hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.fr-hero-stats div { display: flex; flex-direction: column; }
.fr-hero-stats strong { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.2; }
.fr-hero-stats span { font-size: .82rem; color: var(--muted); }

/* Rack visual */
.fr-hero-visual { display: grid; place-items: center; }
.fr-rack {
	position: relative; width: 100%; max-width: 440px;
	background: linear-gradient(180deg, #0b0f15, #10161e);
	border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 14px; display: flex; flex-direction: column; gap: 8px;
	box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .04);
	overflow: hidden;
}
.fr-rack-unit {
	display: flex; align-items: center; gap: .7rem;
	background: var(--raised); border: 1px solid var(--line-soft); border-radius: 8px;
	padding: .6rem .8rem; font-size: .78rem; color: var(--muted);
	animation: fr-slide-in .6s var(--ease) both; animation-delay: calc(var(--i) * .09s);
}
@keyframes fr-slide-in { from { opacity: 0; transform: translateX(18px); } }
.fr-leds { display: flex; gap: 3px; flex-shrink: 0; }
.fr-leds i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .9; }
.fr-leds i:nth-child(2) { animation: fr-blink 1.4s infinite .3s; }
.fr-leds i:nth-child(3) { animation: fr-blink 1.4s infinite .7s; }
@keyframes fr-blink { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
.fr-rack-label { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-rack-state { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.fr-rack-state--ok { background: var(--brand); }
.fr-rack-state--warn { background: var(--amber); }
.fr-rack-scan {
	position: absolute; top: 0; right: 0; left: 0; height: 60px;
	background: linear-gradient(180deg, transparent, rgba(0, 229, 160, .07), transparent);
	animation: fr-scan 4.5s linear infinite; pointer-events: none;
}
@keyframes fr-scan { 0% { transform: translateY(-60px); } 100% { transform: translateY(460px); } }

/* ---------- Trust bar ---------- */
.fr-trust { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.fr-trust-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; list-style: none; margin: 0; padding: 1.1rem 0; }
.fr-trust-list li { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); font-weight: 600; }
.fr-trust-list svg { color: var(--brand); flex-shrink: 0; }

/* ---------- Sections ---------- */
.fr-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.fr-section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.fr-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.fr-section-title { margin: 0 0 .25rem; }
.fr-section-sub { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Category cards ---------- */
.fr-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.fr-cat-card {
	display: flex; align-items: center; gap: .9rem;
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.1rem 1.2rem; color: var(--text);
	transition: all .2s var(--ease);
}
.fr-cat-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text); }
.fr-cat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: rgba(0, 229, 160, .09); color: var(--brand); }
.fr-cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.fr-cat-body strong { font-size: .98rem; font-weight: 700; }
.fr-cat-body em { font-style: normal; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-cat-count { font-size: .72rem; color: var(--muted); background: var(--raised-2); padding: .2rem .5rem; border-radius: 5px; white-space: nowrap; }

/* ---------- Builder CTA ---------- */
.fr-builder-cta { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: linear-gradient(180deg, #060a0e, var(--ink)); border-block: 1px solid var(--line-soft); }
.fr-builder-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.fr-builder-copy h2 { margin-bottom: .75rem; }
.fr-builder-copy > p { color: var(--muted); margin-bottom: 1.5rem; }
.fr-check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .6rem; }
.fr-check-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.fr-check-list span { color: var(--brand); font-weight: 800; flex-shrink: 0; }

.fr-builder-mock { background: #0a0f15; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); font-family: ui-monospace, Menlo, Consolas, monospace; }
.fr-mock-head { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; background: #0d131a; border-bottom: 1px solid var(--line); }
.fr-mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.fr-mock-dot:first-child { background: #ff5f57; } .fr-mock-dot:nth-child(2) { background: #febc2e; } .fr-mock-dot:nth-child(3) { background: #28c840; }
.fr-mock-head em { margin-inline-start: auto; font-style: normal; font-size: .7rem; color: var(--muted); direction: ltr; }
.fr-mock-body { padding: 1.1rem; display: grid; gap: .55rem; }
.fr-mock-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line-soft); }
.fr-mock-row span { color: var(--muted); }
.fr-mock-row b { font-weight: 600; color: var(--text); text-align: left; }
.fr-mock-meters { display: grid; gap: .5rem; padding-top: .5rem; }
.fr-meter label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }
.fr-meter label em { font-style: normal; color: var(--brand); font-weight: 700; }
.fr-meter > span { display: block; height: 5px; background: var(--raised-2); border-radius: 3px; overflow: hidden; }
.fr-meter i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.fr-mock-total { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; padding: .8rem .9rem; background: rgba(0, 229, 160, .07); border: 1px solid rgba(0, 229, 160, .22); border-radius: var(--radius-sm); }
.fr-mock-total span { font-size: .78rem; color: var(--muted); }
.fr-mock-total b { font-size: .95rem; color: var(--brand); }

/* ---------- Use-case cards ---------- */
.fr-usecase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.fr-usecase-card {
	position: relative; display: flex; flex-direction: column; gap: .35rem;
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.3rem 1.2rem 1.5rem; color: var(--text); transition: all .2s var(--ease);
	overflow: hidden;
}
.fr-usecase-card::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transition: transform .25s var(--ease); }
.fr-usecase-card:hover { border-color: var(--brand); transform: translateY(-3px); color: var(--text); }
.fr-usecase-card:hover::before { transform: scaleY(1); }
.fr-usecase-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 229, 160, .09); color: var(--brand); margin-bottom: .3rem; }
.fr-usecase-card strong { font-size: 1rem; }
.fr-usecase-card em { font-style: normal; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.fr-usecase-arrow { position: absolute; bottom: 1rem; left: 1.2rem; color: var(--brand); opacity: 0; transform: translateX(-8px); transition: all .2s var(--ease); }
.fr-usecase-card:hover .fr-usecase-arrow { opacity: 1; transform: none; }

/* ---------- Service cards ---------- */
.fr-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.fr-service-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; transition: all .2s var(--ease); }
.fr-service-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.fr-service-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(0, 229, 160, .09); color: var(--brand); margin-bottom: .8rem; }
.fr-service-card strong { display: block; font-size: 1rem; margin-bottom: .3rem; }
.fr-service-card p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ---------- Product cards ---------- */
.fr-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.fr-product-card {
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: all .22s var(--ease);
}
.fr-product-card:hover { border-color: rgba(0, 229, 160, .4); transform: translateY(-4px); box-shadow: var(--shadow-md); }

.fr-product-thumb { position: relative; display: block; aspect-ratio: 4/3; background: #0c1117; overflow: hidden; }
.fr-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.fr-product-card:hover .fr-product-thumb img { transform: scale(1.05); }
.fr-product-thumb-ph { display: grid; place-items: center; height: 100%; color: var(--line); }

.fr-product-badges { position: absolute; top: .7rem; right: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.fr-badge { font-size: .7rem; font-weight: 800; padding: .22rem .55rem; border-radius: 5px; letter-spacing: .01em; }
.fr-badge--new { background: var(--brand); color: #04140e; }
.fr-badge--stock { background: rgba(255, 176, 32, .18); color: var(--amber); border: 1px solid rgba(255, 176, 32, .3); }
.fr-badge--sale { background: var(--danger); color: #fff; }
.fr-badge--out { position: absolute; top: .7rem; left: .7rem; background: rgba(8, 11, 16, .9); color: var(--muted); border: 1px solid var(--line); }

.fr-product-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.fr-product-cat { font-size: .74rem; color: var(--brand); font-weight: 700; margin-bottom: .35rem; }
.fr-product-title { font-size: .96rem; font-weight: 700; line-height: 1.5; margin: 0 0 .7rem; min-height: 2.9em; }
.fr-product-title a { color: var(--text); }
.fr-product-title a:hover { color: var(--brand); }

.fr-product-specs { list-style: none; margin: 0 0 .9rem; padding: .6rem 0; display: grid; gap: .3rem; border-block: 1px solid var(--line-soft); flex: 1; }
.fr-product-specs li { display: flex; justify-content: space-between; gap: .6rem; font-size: .74rem; line-height: 1.5; }
.fr-product-specs span { color: var(--muted); flex-shrink: 0; }
.fr-product-specs em { font-style: normal; color: var(--text); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fr-product-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .7rem; }
.fr-product-price { display: flex; flex-direction: column; gap: .1rem; }
.fr-product-price .price, .fr-product-price > span:first-child { color: var(--brand); font-size: 1.02rem; font-weight: 800; }
.fr-product-price del { color: var(--muted); font-size: .82rem; opacity: .7; }
.fr-product-price ins { text-decoration: none; color: var(--brand); font-weight: 800; }
.fr-stock-note { font-style: normal; font-size: .72rem; color: var(--muted); }
.fr-product-actions { display: flex; gap: .4rem; align-items: center; }

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { margin: 0; width: auto !important; float: none !important; }
.woocommerce span.onsale { display: none; }

/* ---------- Page hero / breadcrumb ---------- */
.fr-page-hero { background: var(--surface); border-bottom: 1px solid var(--line-soft); padding-block: clamp(2rem, 4vw, 3.2rem); }
.fr-page-hero .fr-page-title { margin-bottom: .35rem; }
.fr-page-sub { color: var(--muted); margin: 0; max-width: 65ch; }
.fr-page-desc { margin-top: 1rem; color: var(--muted); }
.fr-page-head { margin-bottom: 2rem; }
.fr-page-title { margin-bottom: .3rem; }

.fr-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.fr-breadcrumb a { color: var(--muted); }
.fr-breadcrumb a:hover { color: var(--brand); }
.fr-breadcrumb span { color: var(--line); }

/* ---------- Shop layout + filters ---------- */
.fr-shop-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 2rem; align-items: start; }

.fr-filters {
	position: sticky; top: calc(var(--header-h) + 20px);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto;
}
.fr-filters-head { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 5; }
.fr-filters-title { font-size: 1rem; margin: 0; flex: 1; }
.fr-filters-reset { background: none; border: 0; color: var(--muted); font-size: .78rem; padding: 0; text-decoration: underline; }
.fr-filters-reset:hover { color: var(--danger); }
.fr-filters-close { display: none; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; }

.fr-filter-search { padding: .9rem 1.1rem .3rem; }
.fr-filter-search input {
	width: 100%; background: var(--raised); border: 1px solid var(--line); color: var(--text);
	padding: .55rem .75rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .85rem;
}
.fr-filter-search input:focus { outline: none; border-color: var(--brand); }

.fr-filter-group { border-bottom: 1px solid var(--line-soft); }
.fr-filter-group > summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; font-size: .88rem; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.fr-filter-group > summary::-webkit-details-marker { display: none; }
.fr-filter-group > summary::after { content: '+'; color: var(--brand); font-weight: 800; font-size: 1rem; }
.fr-filter-group[open] > summary::after { content: '−'; }

.fr-filter-list { list-style: none; margin: 0; padding: 0 1.1rem 1rem; display: grid; gap: .1rem; max-height: 260px; overflow-y: auto; }
.fr-filter-list--tree { max-height: 320px; }
.fr-filter-list label { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; cursor: pointer; font-size: .85rem; }
.fr-filter-list label:hover { color: var(--brand); }
.fr-filter-list input[type="checkbox"] { appearance: none; width: 15px; height: 15px; border: 1.5px solid var(--line); border-radius: 4px; flex-shrink: 0; position: relative; cursor: pointer; transition: all .15s; margin: 0; }
.fr-filter-list input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.fr-filter-list input[type="checkbox"]:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #04140e; font-size: .68rem; font-weight: 900; }
.fr-filter-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-filter-list em { font-style: normal; font-size: .72rem; color: var(--muted); }
.fr-filter-subtree { list-style: none; padding-inline-start: 1rem; margin: 0; }
.fr-filter-subtree .fr-depth-3 label { font-size: .8rem; }

.fr-price-range { padding: 0 1.1rem 1.1rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.fr-price-range input {
	flex: 1; min-width: 90px; background: var(--raised); border: 1px solid var(--line); color: var(--text);
	padding: .5rem .6rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .8rem;
}
.fr-price-range input:focus { outline: none; border-color: var(--brand); }
.fr-price-range span { color: var(--muted); }
.fr-price-range small { width: 100%; font-size: .72rem; color: var(--muted); }

/* Shop toolbar */
.fr-shop-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.fr-shop-count { font-size: .86rem; color: var(--muted); }
.fr-shop-sort { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--muted); }
.fr-shop-sort select {
	background: var(--raised); border: 1px solid var(--line); color: var(--text);
	padding: .45rem .7rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .84rem;
}
.fr-shop-sort select:focus { outline: none; border-color: var(--brand); }
.fr-filters-open { display: none; }

.fr-active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.fr-active-filters[hidden] { display: none; }
.fr-chip {
	display: inline-flex; align-items: center; gap: .35rem;
	background: rgba(0, 229, 160, .1); border: 1px solid rgba(0, 229, 160, .25);
	color: var(--brand); padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.fr-chip button { background: none; border: 0; color: inherit; font-size: 1rem; line-height: 1; padding: 0; }

.fr-load-more { display: flex; justify-content: center; margin-top: 2rem; }

/* ---------- Pagination ---------- */
.fr-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 2.5rem; }
.fr-pagination .btn { min-width: 40px; justify-content: center; }
.fr-pagination .btn.current { background: var(--brand); color: #04140e; border-color: var(--brand); font-weight: 800; }

/* ---------- Single product ---------- */
.fr-product-layout {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}
.fr-product-single { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.fr-product-layout .fr-sidebar { grid-column: 3; grid-row: 1; }
.fr-product-layout .fr-product-single { grid-column: 2; }
.fr-product-layout .fr-product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }

.fr-product-main-thumb { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: grid; place-items: center; }
.fr-product-main-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fr-product-main-thumb--ph { color: var(--line); }

.fr-product-summary-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.fr-product-summary-cats a { font-size: .76rem; background: var(--raised); border: 1px solid var(--line); color: var(--muted); padding: .2rem .6rem; border-radius: 999px; }
.fr-product-summary-cats a:hover { color: var(--brand); border-color: var(--brand); }
.fr-product-single-title { font-size: clamp(1.35rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.fr-product-brand { font-size: .84rem; color: var(--muted); margin-bottom: .8rem; }
.fr-product-brand strong { color: var(--brand); }
.fr-product-single-price { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; margin-bottom: 1rem; border-block: 1px solid var(--line); }
.fr-product-single-price .price, .fr-product-single-price > span:first-child { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.fr-instock { font-size: .8rem; color: var(--brand); background: rgba(0, 229, 160, .1); border: 1px solid rgba(0, 229, 160, .25); padding: .2rem .6rem; border-radius: 999px; }
.fr-product-single-excerpt { color: var(--muted); margin-bottom: 1.5rem; }
.fr-product-single-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.fr-product-single-actions form { display: contents; }
.fr-product-single-actions input[type="number"] { width: 84px; background: var(--raised); border: 1px solid var(--line); color: var(--text); padding: .6rem; border-radius: var(--radius-sm); font-family: inherit; }

.fr-single-assurance { list-style: none; padding: 1.1rem; margin: 0 0 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
.fr-single-assurance li { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--muted); }
.fr-single-assurance span { color: var(--brand); font-weight: 800; }

.fr-single-builder-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.2rem; background: rgba(0, 229, 160, .06); border: 1px solid rgba(0, 229, 160, .22); border-radius: var(--radius); }
.fr-single-builder-cta div { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.fr-single-builder-cta strong { font-size: .92rem; }
.fr-single-builder-cta span { font-size: .8rem; color: var(--muted); }

/* Tabs */
.fr-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fr-tabs-nav { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.fr-tab {
	background: none; border: 0; padding: 1rem 1.5rem; color: var(--muted);
	font-weight: 700; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap;
	transition: all .18s var(--ease);
}
.fr-tab:hover { color: var(--text); }
.fr-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); background: rgba(0, 229, 160, .04); }
.fr-tab-panel { display: none; padding: 1.8rem; }
.fr-tab-panel.is-active { display: block; }

.fr-specs-table th, .fr-specs-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .89rem; text-align: right; }
.fr-specs-table th { width: 220px; color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, .015); }
.fr-specs-table tr:hover td, .fr-specs-table tr:hover th { background: rgba(0, 229, 160, .03); }
.fr-specs-table td { color: var(--text); font-weight: 500; }

.fr-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.fr-tags a { font-size: .78rem; background: var(--raised); border: 1px solid var(--line); color: var(--muted); padding: .25rem .65rem; rounded: 999px; border-radius: 999px; }
.fr-tags a:hover { color: var(--brand); border-color: var(--brand); }

.fr-inquiry-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.fr-inquiry-box h2 { margin-bottom: .35rem; }
.fr-inquiry-box > p { color: var(--muted); }

/* ---------- Forms ---------- */
.fr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fr-form-title { grid-column: 1/-1; margin: 0 0 .3rem; font-size: 1.1rem; }
.fr-field { display: flex; flex-direction: column; gap: .35rem; }
.fr-field-full { grid-column: 1/-1; }
.fr-field label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.fr-field input, .fr-field textarea, .fr-field select {
	background: var(--raised); border: 1px solid var(--line); color: var(--text);
	padding: .7rem .85rem; border-radius: var(--radius-sm); font-family: inherit; font-size: .9rem; width: 100%;
}
.fr-field input:focus, .fr-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.fr-field textarea { resize: vertical; min-height: 90px; }
.fr-form button { grid-column: 1/-1; }
.fr-form-msg { grid-column: 1/-1; margin: 0; font-size: .86rem; min-height: 1.2em; }
.fr-form-msg.is-ok { color: var(--brand); }
.fr-form-msg.is-err { color: var(--danger); }
.fr-inquiry-section { background: var(--surface); border-top: 1px solid var(--line-soft); }
.fr-inquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.fr-inquiry-copy h2 { margin-bottom: .6rem; }

/* ---------- Prose ---------- */
.fr-prose { line-height: 2; }
.fr-prose h2 { font-size: 1.4rem; margin: 2rem 0 .7rem; }
.fr-prose h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.fr-prose p, .fr-prose li { color: #c3cdd9; }
.fr-prose strong { color: var(--text); }
.fr-prose ul, .fr-prose ol { margin: 0 0 1.2rem; }
.fr-prose li { margin-bottom: .35rem; }
.fr-prose table th, .fr-prose table td { border: 1px solid var(--line); padding: .7rem .9rem; font-size: .88rem; }
.fr-prose table th { background: var(--raised); color: var(--text); }
.fr-prose blockquote { border-inline-start: 3px solid var(--brand); margin: 1.5rem 0; padding: .5rem 1.2rem; background: var(--raised); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.fr-prose code { background: var(--raised-2); padding: .12rem .4rem; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: .88em; color: var(--brand); }

/* ---------- Article ---------- */
.fr-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.fr-article--wide { max-width: 900px; margin-inline: auto; }
.fr-article-title { margin-bottom: .4rem; }
.fr-article-meta { display: flex; gap: .5rem; font-size: .82rem; color: var(--muted); padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.fr-article-meta a { color: var(--muted); }
.fr-article-meta a:hover { color: var(--brand); }
.fr-article-thumb { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; }
.fr-article-thumb img { width: 100%; }
.fr-cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: 900px; margin: 2rem auto 0; padding: 1.4rem 1.6rem; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); }
.fr-cta-bar p { margin: 0; color: var(--muted); }

/* ---------- Post cards ---------- */
.fr-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.fr-post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .2s var(--ease); }
.fr-post-card:hover { border-color: rgba(0, 229, 160, .35); transform: translateY(-3px); }
.fr-post-card-thumb { display: block; aspect-ratio: 16/9; background: #0c1117; }
.fr-post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fr-post-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.fr-post-card-meta { display: flex; gap: .4rem; font-size: .76rem; color: var(--muted); margin-bottom: .5rem; }
.fr-post-card-meta a { color: var(--brand); }
.fr-post-card h3 { font-size: 1rem; margin-bottom: .5rem; line-height: 1.55; }
.fr-post-card h3 a { color: var(--text); }
.fr-post-card h3 a:hover { color: var(--brand); }
.fr-post-card p { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; flex: 1; line-height: 1.75; }
.fr-post-card-more { font-size: .82rem; font-weight: 700; color: var(--brand); }

/* ---------- Sidebar / widgets ---------- */
.fr-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.fr-widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.fr-widget-title { font-size: .95rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.fr-widget-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.fr-widget-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; color: var(--text); font-size: .86rem; }
.fr-widget-list a:hover { color: var(--brand); }
.fr-widget-list span { color: var(--muted); font-size: .76rem; }
.fr-widget-cta { background: rgba(0, 229, 160, .05); border-color: rgba(0, 229, 160, .2); }
.fr-widget-cta p { font-size: .85rem; color: var(--muted); }

/* ---------- Empty states ---------- */
.fr-empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.fr-empty h2 { margin-bottom: .4rem; }
.fr-empty p { color: var(--muted); margin-bottom: 1.2rem; }
.fr-cart-empty { text-align: center; padding: 4rem 1rem; }
.fr-cart-empty svg { margin: 0 auto 1.2rem; color: var(--line); }
.fr-cart-empty h2 { margin-bottom: .4rem; }
.fr-cart-empty p { color: var(--muted); margin-bottom: 1.5rem; }
.fr-cart-empty-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Cart / Checkout / Account ---------- */
.woocommerce table.shop_table, .woocommerce-page table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-bottom: 1px solid var(--line-soft); padding: .9rem 1rem; }
.woocommerce table.shop_table th { background: var(--raised); font-size: .85rem; color: var(--muted); }
.woocommerce table.shop_table td { font-size: .9rem; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--brand) !important; color: #04140e !important; font-weight: 700;
	padding: .75rem 1.4rem !important; border-radius: var(--radius-sm) !important; border: 0 !important; font-size: .9rem !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #2ff0b4 !important; }
.woocommerce form .form-row { margin-bottom: 1rem; }
.woocommerce form .form-row label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; font-weight: 600; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce .select2-container .select2-selection--single {
	background: var(--raised) !important; border: 1px solid var(--line) !important; color: var(--text) !important;
	padding: .65rem .8rem !important; border-radius: var(--radius-sm) !important; font-family: inherit !important;
}
.woocommerce input.input-text:focus { border-color: var(--brand) !important; }
.woocommerce .quantity input.qty { width: 76px; }
.woocommerce-privacy-policy-text, .woocommerce-privacy-policy-content { font-size: .78rem; color: var(--muted); }
.woocommerce-order, .woocommerce-customer-logout { max-width: 900px; margin-inline: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.woocommerce-MyAccount-navigation a { display: block; padding: .55rem .9rem; border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; }
.woocommerce-MyAccount-navigation a:hover, .woocommerce-MyAccount-navigation .is-active a { background: var(--raised); color: var(--brand); }
.woocommerce-MyAccount-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.woocommerce-message, .woocommerce-info { background: var(--raised) !important; border: 1px solid var(--line) !important; border-inline-start: 3px solid var(--brand) !important; border-radius: var(--radius-sm) !important; color: var(--text) !important; }
.woocommerce-error { border-inline-start-color: var(--danger) !important; }
.woocommerce-message a.button, .woocommerce-info a.button { float: left; margin-inline-end: 1em; }
.fr-cart-wrap, .fr-checkout-wrap, .fr-account-wrap { max-width: 1000px; margin-inline: auto; }
.fr-checkout-wrap { max-width: 820px; }
.woocommerce-billing-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.5rem; }
.woocommerce-checkout-review-order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.woocommerce-terms-and-conditions-wrapper { margin-top: 1rem; }

/* ---------- Cart page layout ---------- */
.fr-cart-columns { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.fr-cart-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: sticky; top: calc(var(--header-h) + 20px); }
.fr-cart-summary h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.fr-cart-total { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.fr-cart-total.grand { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.05rem; font-weight: 800; }
.fr-cart-total.grand strong { color: var(--brand); }
.fr-cart-summary .button { width: 100%; margin-top: 1rem; }

/* ---------- Comments ---------- */
.fr-comments { margin-top: 2rem; }
.fr-comments-title { font-size: 1.1rem; margin-bottom: 1rem; }
.fr-comment-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.comment-list .comment { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.comment-list .comment-author { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-author .fn { font-weight: 700; font-size: .9rem; font-style: normal; }
.comment-list .comment-metadata { font-size: .76rem; color: var(--muted); }
.comment-list .comment-content { font-size: .88rem; color: #c3cdd9; }
.comment-respond { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.comment-reply-title { font-size: 1.05rem; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
	background: var(--raised-2); border: 1px solid var(--line); color: var(--text);
	padding: .65rem .85rem; border-radius: var(--radius-sm); width: 100%; font-family: inherit; margin-bottom: 1rem;
}
.comment-form textarea { min-height: 110px; }

/* ---------- Contact ---------- */
.fr-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ---------- 404 ---------- */
.fr-404 { text-align: center; max-width: 640px; margin-inline: auto; }
.fr-404-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: -.5rem; }
.fr-404 h1 { margin-bottom: .5rem; }
.fr-404 > p { color: var(--muted); margin-bottom: 2rem; }
.fr-404-search { margin-bottom: 1.5rem; }
.fr-404-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.fr-404-suggest { text-align: start; padding-top: 2rem; border-top: 1px solid var(--line); }
.fr-404-suggest h2 { font-size: 1rem; margin-bottom: .8rem; }
.fr-404-suggest ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.fr-404-suggest li a { display: block; font-size: .82rem; background: var(--raised); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; color: var(--muted); }
.fr-404-suggest li a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- Footer ---------- */
.fr-footer { background: #05080c; border-top: 1px solid var(--line-soft); margin-top: auto; }
.fr-footer-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
	padding: 2.2rem 0; border-bottom: 1px solid var(--line-soft);
}
.fr-footer-cta h2 { margin-bottom: .25rem; font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.fr-footer-cta p { margin: 0; color: var(--muted); font-size: .9rem; }
.fr-footer-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

.fr-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding: 3rem 0; }
.fr-footer-col h3 { font-size: .95rem; margin-bottom: 1rem; }
.fr-logo--footer { color: var(--text); margin-bottom: 1rem; }
.fr-footer-about p { font-size: .86rem; color: var(--muted); max-width: 40ch; }
.fr-footer-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.fr-footer-badges span { font-size: .72rem; color: var(--muted); background: var(--raised); border: 1px solid var(--line); padding: .2rem .55rem; border-radius: 5px; }
.fr-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.fr-footer-list a { color: var(--muted); font-size: .86rem; }
.fr-footer-list a:hover { color: var(--brand); }
.fr-footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fr-footer-contact li { display: flex; align-items: flex-start; gap: .55rem; font-size: .86rem; color: var(--muted); }
.fr-footer-contact svg { color: var(--brand); flex-shrink: 0; margin-top: .28rem; }
.fr-footer-contact a { color: var(--muted); }
.fr-footer-contact a:hover { color: var(--brand); }

.fr-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 0; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); }
.fr-footer-bottom p { margin: 0; }
.fr-footer-note { opacity: .7; }

/* ---------- Mobile bar ---------- */
.fr-mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.fr-hero-inner { grid-template-columns: 1fr; }
	.fr-hero-visual { order: -1; }
	.fr-hero-title { text-align: start; }
	.fr-rack { max-width: 100%; }
	.fr-builder-inner { grid-template-columns: 1fr; gap: 2.5rem; }
	.fr-inquiry-grid, .fr-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
	.fr-product-layout { grid-template-columns: 1fr; gap: 2rem; }
	.fr-product-layout .fr-sidebar { grid-column: 1; grid-row: auto; }
	.fr-product-layout .fr-product-single { grid-column: 1; }
	.fr-product-single { grid-template-columns: 1fr; gap: 2rem; }
	.fr-product-gallery { position: static !important; }
	.fr-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.fr-cart-columns { grid-template-columns: 1fr; }
	.fr-cart-summary { position: static; }
}

@media (max-width: 900px) {
	.fr-nav, .fr-topbar-note { display: none; }
	.fr-mobile-toggle { display: flex; }
	.fr-header-cta { display: none; }
	.fr-mobile-nav[hidden] { display: none; }
	.fr-shop-layout { grid-template-columns: 1fr; }
	.fr-filters {
		position: fixed; inset: 0; z-index: 200; max-height: 100vh; height: 100%;
		border-radius: 0; border: 0; transform: translateX(100%); transition: transform .25s var(--ease);
	}
	.fr-filters.is-open { transform: none; }
	.fr-filters-close { display: block; }
	.fr-filters-open { display: inline-flex; }
	.fr-layout { grid-template-columns: 1fr; }
	.fr-sidebar { position: static; }
}

@media (max-width: 640px) {
	body { font-size: 14px; }
	.fr-container { padding-inline: 15px; }
	.fr-product-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
	.fr-product-body { padding: .8rem .85rem .9rem; }
	.fr-product-title { font-size: .86rem; }
	.fr-product-specs li { font-size: .7rem; }
	.fr-product-foot { flex-direction: column; align-items: stretch; gap: .5rem; }
	.fr-product-actions { justify-content: space-between; }
	.fr-form { grid-template-columns: 1fr; padding: 1.2rem; }
	.fr-footer-grid { grid-template-columns: 1fr; }
	.fr-footer-bottom { flex-direction: column; text-align: center; }
	.fr-hero-stats { gap: 1.5rem; }
	.fr-single-assurance { grid-template-columns: 1fr; }
	.fr-usecase-grid, .fr-service-grid, .fr-cat-grid { grid-template-columns: 1fr; }
	.fr-tab { padding: .8rem 1rem; font-size: .84rem; }
	.fr-mobile-bar {
		display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0;
		background: rgba(8, 11, 16, .97); border-top: 1px solid var(--line); z-index: 150;
		backdrop-filter: blur(12px);
	}
	.fr-mobile-bar-item {
		display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem;
		color: var(--muted); font-size: .72rem; font-weight: 600; position: relative;
	}
	.fr-mobile-bar-item:hover { color: var(--brand); }
	.fr-mobile-bar-item .fr-cart-count { top: 2px; left: 50%; margin-left: -20px; }
	.fr-footer { margin-bottom: 58px; }
	.fr-specs-table th { width: auto; font-size: .8rem; }
	.fr-specs-table th, .fr-specs-table td { padding: .6rem .5rem; font-size: .8rem; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.fr-header, .fr-footer, .fr-mobile-bar, .fr-filters, .fr-topbar, .fr-product-single-actions, .fr-inquiry-box { display: none !important; }
	body { background: #fff; color: #000; }
}

/* =====================================================================
   WooCommerce Blocks (cart / checkout / account)
   ===================================================================== */
.wc-block-cart, .wp-block-woocommerce-cart,
.wc-block-checkout, .wp-block-woocommerce-checkout {
	--wp--preset--color--base: var(--surface);
	--wp--preset--color--contrast: var(--text);
	--wp--preset--color--primary: var(--brand);
	--wp--preset--color--primary-contrast: #04140e;
	color: var(--text);
	max-width: 1000px;
	margin-inline: auto;
}

.wc-block-components-text-input input, .wc-block-components-textarea textarea,
.wc-block-components-select__container select {
	background: var(--raised) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text) !important;
	padding: .7rem .85rem !important;
	font-family: inherit !important;
}
.wc-block-components-text-input input:focus { border-color: var(--brand) !important; }
.wc-block-components-text-input__label, .wc-block-components-textarea__label,
.wc-block-form-label { color: var(--muted) !important; font-size: .82rem !important; }

.wc-block-cart-items td, .wc-block-cart-items th,
.wc-block-components-product-name a, .wc-block-components-product-name,
.wc-block-components-product-price, .wc-block-components-order-summary-item__total-price {
	color: var(--text) !important;
}
.wc-block-components-product-name a:hover { color: var(--brand) !important; }
.wc-block-cart-items__row { border-bottom: 1px solid var(--line-soft) !important; }
.wc-block-components-product-image img { border-radius: var(--radius-sm); background: #0c1117; }

.wc-block-components-button {
	background: var(--brand) !important;
	color: #04140e !important;
	font-weight: 700 !important;
	border-radius: var(--radius-sm) !important;
	padding: .8rem 1.6rem !important;
	border: 0 !important;
}
.wc-block-components-button:hover { background: #2ff0b4 !important; }
.wc-block-components-button.is-link {
	background: transparent !important; color: var(--muted) !important; text-decoration: underline;
}
.wc-block-components-button__text { color: inherit !important; }

.wc-block-components-totals-title, .wc-block-components-sidebar-layout .wc-block-components-title {
	color: var(--text) !important;
}
.wc-block-components-sidebar {
	background: var(--surface) !important;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	padding: 1.4rem !important;
}
.wc-block-components-totals-item__value { color: var(--text) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--brand) !important; font-weight: 800; font-size: 1.1rem;
}
.wc-block-components-totals-footer-item::before {
	content: ''; display: block; height: 1px; background: var(--line); margin: .8rem 0;
}
.wc-block-components-totals-item { color: var(--muted) !important; }

.wc-block-cart-empty-cart__title, .wc-block-cart__empty-cart__title { color: var(--text) !important; }
.wc-block-components-empty-state__title { color: var(--text) !important; }
.wc-block-components-empty-state__description { color: var(--muted) !important; }
.wc-block-components-empty-state svg { color: var(--line) !important; }

.wc-block-components-notice-banner { border-radius: var(--radius-sm) !important; }
.wc-block-components-radio-control__input { accent-color: var(--brand); }
.wc-block-components-payment-method label { color: var(--text) !important; }
.wc-block-components-express-payment__title, .wc-block-components-express-payment__description {
	background: var(--surface) !important; color: var(--muted) !important; border-radius: var(--radius-sm) !important;
}

.fr-page-hero + .fr-py-12 .wc-block-components-title { margin-top: 0; }
.fr-account-wrap { max-width: 1000px; }
.wc-block-components-panel__button, .wc-block-components-navigation {
	background: var(--surface) !important; color: var(--text) !important; border-radius: var(--radius-sm) !important;
}
.wc-block-components-navigation__item a { color: var(--text) !important; }
.wc-block-components-navigation__item a:hover { color: var(--brand) !important; }
.wc-block-components-navigation__item.is-active { background: var(--raised-2) !important; }
.wc-block-components-navigation__item.is-active a { color: var(--brand) !important; }
.wc-block-components-orders-list { border-radius: var(--radius) !important; }

@media (max-width: 900px) {
	.wc-block-components-sidebar-layout { display: block !important; }
}

/* =====================================================================
   Server builder page (preview state)
   ===================================================================== */
.fr-builder-steps {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: .8rem; margin-bottom: 2.5rem;
}
.fr-builder-step {
	display: flex; align-items: center; gap: .8rem;
	background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem;
	position: relative;
}
.fr-builder-step::after {
	content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
	background: var(--grad); border-radius: 3px 0 0 3px;
}
.fr-builder-step-num {
	display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
	border-radius: 50%; background: rgba(0, 229, 160, .12); color: var(--brand); font-weight: 800;
}
.fr-builder-step div { display: flex; flex-direction: column; line-height: 1.4; }
.fr-builder-step strong { font-size: .95rem; }
.fr-builder-step em { font-style: normal; font-size: .78rem; color: var(--muted); }

.fr-builder-soon {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: clamp(1.8rem, 4vw, 3rem); text-align: center; max-width: 720px; margin-inline: auto;
}
.fr-builder-soon h2 { margin-bottom: .6rem; }
.fr-builder-soon p { color: var(--muted); }
.fr-builder-soon-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

.fr-builder-preview {
	max-width: 720px; margin: 2rem auto 0;
	background: #0a0f15; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.fr-builder-preview h3 { font-size: .9rem; padding: .9rem 1.1rem; margin: 0; background: #0d131a; border-bottom: 1px solid var(--line); font-family: inherit; color: var(--muted); font-weight: 600; }
.fr-builder-preview .fr-mock-body { padding: 1.1rem; display: grid; gap: .55rem; }
.fr-builder-preview .fr-mock-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line-soft); font-family: ui-monospace, Menlo, Consolas, monospace; }
.fr-builder-preview .fr-mock-row span { color: var(--muted); }
.fr-builder-preview .fr-mock-row b { font-weight: 600; color: var(--text); text-align: left; }
.fr-builder-preview .fr-mock-meters { display: grid; gap: .5rem; padding-top: .5rem; }
.fr-builder-preview .fr-meter label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: .25rem; font-family: Vazirmatn, sans-serif; }
.fr-builder-preview .fr-meter label em { font-style: normal; color: var(--brand); font-weight: 700; }
.fr-builder-preview .fr-meter > span { display: block; height: 5px; background: var(--raised-2); border-radius: 3px; overflow: hidden; }
.fr-builder-preview .fr-meter i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.fr-builder-preview .fr-mock-total { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; padding: .8rem .9rem; background: rgba(0, 229, 160, .07); border: 1px solid rgba(0, 229, 160, .22); border-radius: var(--radius-sm); font-family: Vazirmatn, sans-serif; }
.fr-builder-preview .fr-mock-total span { font-size: .78rem; color: var(--muted); }
.fr-builder-preview .fr-mock-total b { font-size: .95rem; color: var(--brand); }

/* =====================================================================
   Brand logos
   ===================================================================== */
.fr-brands-band {
	border-block: 1px solid var(--line-soft);
	background: var(--surface);
	padding-block: 1.4rem 1.5rem;
}
.fr-brands-label {
	display: block;
	text-align: center;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--muted);
	margin: 0 auto 1rem;
	max-width: 60ch;
	padding-inline: 1rem;
}
.fr-brands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	max-width: 720px;
	margin-inline: auto;
}
.fr-brand {
	display: grid;
	place-items: center;
	width: 54px;
	height: 40px;
	padding: .4rem .45rem;
	background: var(--raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	transition: all .2s var(--ease);
}
.fr-brand img {
	width: 100%;
	height: 100%;
	max-width: 32px;
	max-height: 24px;
	object-fit: contain;
	filter: grayscale(1) brightness(1.8);
	opacity: .7;
	transition: all .2s var(--ease);
}
.fr-brand:hover { border-color: var(--brand); transform: translateY(-2px); }
.fr-brand:hover img { filter: none; opacity: 1; }

.fr-brand-logo {
	width: 20px;
	height: 20px;
	max-width: 20px;
	max-height: 20px;
	object-fit: contain;
	filter: brightness(1.7) grayscale(.15);
	opacity: .85;
	flex-shrink: 0;
	align-self: center;
}
.fr-brand-logo--lg { width: 24px; height: 24px; display: inline-block; vertical-align: -5px; margin-inline-end: .4rem; }
.fr-product-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.fr-product-meta .fr-product-cat { margin-bottom: 0; }
.fr-product-thumb-ph img {
	width: 52px;
	height: 40px;
	object-fit: contain;
	filter: brightness(1.4) grayscale(.2);
	opacity: .85;
}
.fr-product-brand { display: flex; align-items: center; gap: .3rem; }

/* =====================================================================
   RTL polish
   ===================================================================== */

/* Latin-only fields stay LTR */
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"],
.fr-mock-head em,
.fr-mock-row b,
.fr-mock-total b,
.fr-rack-label,
.fr-specs-table td,
.fr-hero-stats strong,
.fr-btn,
code {
	direction: ltr;
	text-align: start;
}
body:dir(rtl) .fr-mock-head em { text-align: right; }

/* Prose inside RTL */
.fr-prose { text-align: start; }

/* Technical values stay readable */
.fr-specs-table { direction: rtl; }

/* Direction-independent shadows and overlays */
.fr-nav-list .sub-menu { right: 0; left: auto; }
.fr-usecase-arrow { left: 1.2rem; right: auto; }

/* Scrollbar for dark theme */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #33404f; }

/* Selection */
::selection { background: var(--brand); color: #04140e; }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible,
.fr-cat-card:focus-visible, .fr-usecase-card:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Native form control colors */
select option { background: var(--raised); color: var(--text); }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* LTR island for phone numbers in footer/topbar */
[dir="ltr"] { display: inline-block; }
/* =====================================================================
   Invoice builder entry points
   ===================================================================== */
.fr-btn-line {
	border-color: var(--brand);
	color: var(--brand);
	background: rgba(0, 229, 160, .06);
}
.fr-btn-line:hover { background: var(--brand); color: #04140e; }

/* =====================================================================
   Clients / references
   ===================================================================== */
.fr-clients-band { border-top: 1px solid var(--line-soft); }

.fr-clients {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fr-clients--list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.fr-client {
	display: flex;
	align-items: center;
	gap: .8rem;
	background: var(--raised);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: .8rem .9rem;
	color: var(--text);
	transition: all .2s var(--ease);
	height: 100%;
}
.fr-client:hover {
	border-color: var(--brand);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	color: var(--text);
}

.fr-client__mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 7px;
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
}
.fr-client__mark img {
	width: 100%;
	height: 100%;
	max-width: 34px;
	max-height: 26px;
	object-fit: contain;
	filter: grayscale(1) brightness(1.8);
	opacity: .75;
	transition: all .2s var(--ease);
}
.fr-client:hover .fr-client__mark img { filter: none; opacity: 1; }
.fr-client:hover .fr-client__mark { border-color: rgba(0, 229, 160, .4); }

.fr-client__initials {
	font-size: .9rem;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -.02em;
}

.fr-client__body {
	display: flex;
	flex-direction: column;
	line-height: 1.45;
	min-width: 0;
	flex: 1;
}
.fr-client__name {
	font-size: .88rem;
	font-weight: 700;
	color: var(--text);
}
.fr-client:hover .fr-client__name { color: var(--brand); }
.fr-client__host {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: .68rem;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fr-client__ind {
	font-size: .72rem;
	color: var(--brand);
	opacity: .85;
}

@media (max-width: 640px) {
	.fr-clients { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
	.fr-client { flex-direction: column; text-align: center; gap: .5rem; padding: .9rem .5rem; }
	.fr-client__body { align-items: center; }
	.fr-client__host { max-width: 100%; }
}

/* =====================================================================
   Stock display (price block removed)
   ===================================================================== */
.fr-stock-label {
	display: block;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--muted);
	margin-bottom: .15rem;
}
.fr-stock-label--muted { color: var(--amber); }
.fr-product-stockline { padding: .9rem 0; margin-bottom: 1rem; border-block: 1px solid var(--line); }
.fr-product-stockline .fr-instock { font-size: .84rem; }

/* =====================================================================
   Sidebar rail — designed layout
   ===================================================================== */
.fr-sidebar {
	position: sticky;
	top: calc(var(--header-h) + 20px);
	display: flex;
	flex-direction: column;
	gap: .85rem;
	max-height: calc(100vh - var(--header-h) - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-inline-end: .25rem;
}

/* ---------- Card ---------- */
.fr-sb-card {
	background: var(--raised);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	flex-shrink: 0;
}

/* Head with a notched rule, matching the site's datasheet language */
.fr-sb-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1rem;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}
.fr-sb-head__bar {
	display: block;
	width: 3px;
	height: 15px;
	border-radius: 2px;
	background: var(--grad);
	flex-shrink: 0;
}
.fr-sb-head__title {
	margin: 0;
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
}
.fr-sb-head__sub {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: .66rem;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	padding: .1rem .4rem;
	border-radius: 4px;
	flex-shrink: 0;
}
.fr-sb-head__more {
	font-size: .72rem;
	color: var(--muted);
	text-decoration: none;
	flex-shrink: 0;
	transition: color .18s var(--ease);
}
.fr-sb-head__more:hover { color: var(--brand); }

/* ---------- Search ---------- */
.fr-sb-search {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .85rem 1rem .6rem;
}
.fr-sb-search input {
	flex: 1;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	padding: .55rem .75rem;
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: .84rem;
	transition: border-color .15s, box-shadow .15s;
}
.fr-sb-search input::placeholder { color: #4a5566; }
.fr-sb-search input:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-glow);
}
.fr-sb-search button {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	transition: all .18s var(--ease);
}
.fr-sb-search button:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.fr-sb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	padding: 0 1rem .9rem;
}
.fr-sb-tags a {
	font-size: .72rem;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	padding: .18rem .55rem;
	border-radius: 999px;
	transition: all .18s var(--ease);
}
.fr-sb-tags a:hover {
	color: var(--brand);
	border-color: var(--brand);
	background: rgba(0, 229, 160, .07);
}

/* ---------- Table of contents ---------- */
.fr-sb-toc {
	padding: .5rem .6rem .7rem;
	display: flex;
	flex-direction: column;
	max-height: 320px;
	overflow-y: auto;
}
.fr-sb-toc__item {
	position: relative;
	display: block;
	padding: .42rem .6rem .42rem 1.1rem;
	border-radius: 5px;
	font-size: .82rem;
	line-height: 1.6;
	color: var(--muted);
	transition: all .16s var(--ease);
	border-inline-start: 2px solid transparent;
}
.fr-sb-toc__item::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--line);
	transform: translateY(-50%);
	transition: background .16s, box-shadow .16s;
}
.fr-sb-toc__item:hover {
	color: var(--text);
	background: var(--raised-2);
}
.fr-sb-toc__item:hover::before { background: var(--brand); }
.fr-sb-toc__item--l3 {
	font-size: .78rem;
	padding-inline-start: 1.8rem;
	color: #6b7787;
}

/* ---------- Nav (category list) ---------- */
.fr-sb-nav {
	padding: .5rem .6rem .7rem;
	display: flex;
	flex-direction: column;
	gap: .1rem;
	max-height: 300px;
	overflow-y: auto;
}
.fr-sb-nav__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	padding: .45rem .6rem;
	border-radius: 5px;
	font-size: .84rem;
	color: var(--text);
	transition: all .16s var(--ease);
}
.fr-sb-nav__item:hover { background: var(--raised-2); color: var(--brand); }
.fr-sb-nav__item.is-active {
	background: rgba(0, 229, 160, .08);
	color: var(--brand);
	font-weight: 700;
}
.fr-sb-nav__item em {
	font-style: normal;
	font-family: ui-monospace, Menlo, monospace;
	font-size: .68rem;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--line);
	padding: .05rem .35rem;
	border-radius: 4px;
	flex-shrink: 0;
}

/* ---------- Post list ---------- */
.fr-sb-posts { list-style: none; margin: 0; padding: .5rem .6rem .7rem; }
.fr-sb-posts li + li { border-top: 1px solid var(--line-soft); }
.fr-sb-posts a {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	padding: .55rem .5rem;
	border-radius: 5px;
	color: var(--text);
	transition: all .16s var(--ease);
}
.fr-sb-posts a:hover { background: var(--raised-2); }
.fr-sb-posts time {
	font-family: ui-monospace, Menlo, monospace;
	font-size: .66rem;
	color: var(--muted);
	letter-spacing: .02em;
}
.fr-sb-posts span {
	font-size: .82rem;
	line-height: 1.6;
	transition: color .16s var(--ease);
}
.fr-sb-posts a:hover span { color: var(--brand); }

/* ---------- Product list ---------- */
.fr-sb-products { list-style: none; margin: 0; padding: .5rem .6rem .7rem; }
.fr-sb-products li + li { border-top: 1px solid var(--line-soft); }
.fr-sb-products a {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .55rem .5rem;
	border-radius: 5px;
	color: var(--text);
	transition: all .16s var(--ease);
}
.fr-sb-products a:hover { background: var(--raised-2); }
.fr-sb-products__mark {
	display: grid;
	place-items: center;
	width: 32px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 5px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--line);
	overflow: hidden;
}
.fr-sb-products__mark img {
	width: 100%;
	height: 100%;
	max-width: 24px;
	max-height: 18px;
	object-fit: contain;
	filter: brightness(1.6) grayscale(.15);
}
.fr-sb-products__body { min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.fr-sb-products__name {
	font-size: .8rem;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .16s var(--ease);
}
.fr-sb-products a:hover .fr-sb-products__name { color: var(--brand); }
.fr-sb-products__stock { font-size: .68rem; color: var(--muted); }

/* ---------- Action card ---------- */
.fr-sb-card--action {
	background:
		radial-gradient(120% 100% at 100% 0%, rgba(0, 229, 160, .10), transparent 60%),
		var(--raised);
	border-color: rgba(0, 229, 160, .22);
	padding: 1.1rem;
}
.fr-sb-kicker {
	display: inline-block;
	font-family: ui-monospace, Menlo, monospace;
	font-size: .64rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: .5rem;
}
.fr-sb-card__title {
	margin: 0 0 .45rem;
	font-size: .95rem;
	line-height: 1.6;
	letter-spacing: -.01em;
}
.fr-sb-text {
	margin: 0 0 .9rem;
	font-size: .8rem;
	line-height: 1.8;
	color: var(--muted);
}
.fr-sb-actions { display: flex; flex-direction: column; gap: .4rem; }
.fr-sb-list {
	list-style: none;
	margin: .9rem 0 0;
	padding: .8rem 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: .4rem;
}
.fr-sb-list li {
	position: relative;
	padding-inline-start: 1.1rem;
	font-size: .76rem;
	color: var(--muted);
}
.fr-sb-list li::before {
	content: '✓';
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	color: var(--brand);
	font-weight: 800;
}

/* Any extra registered widgets, if the admin adds them */
.fr-sidebar__extras { display: flex; flex-direction: column; gap: .85rem; }
.fr-sidebar__extras .fr-widget { border-radius: var(--radius); }
.fr-sidebar__extras .fr-widget-title { font-size: .9rem; }
.fr-sidebar__extras .wp-block-heading { font-size: .9rem; }
.fr-sidebar__extras ul { list-style: none; padding: 0; margin: 0; }
.fr-sidebar__extras li { padding: .3rem 0; font-size: .84rem; border-bottom: 1px solid var(--line-soft); }
.fr-sidebar__extras li a { color: var(--text); }
.fr-sidebar__extras li a:hover { color: var(--brand); }
.fr-sidebar__extras .wp-block-latest-comments { font-size: .82rem; color: var(--muted); }

/* Scrollbar inside the rail */
.fr-sidebar::-webkit-scrollbar { width: 5px; }
.fr-sidebar::-webkit-scrollbar-track { background: transparent; }
.fr-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.fr-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-inline-end: 0;
	}
	.fr-sb-toc, .fr-sb-nav { max-height: none; }
}

@media (max-width: 640px) {
	.fr-sb-actions { flex-direction: row; flex-wrap: wrap; }
	.fr-sb-actions .fr-btn { flex: 1; min-width: 130px; }
}

/* =====================================================================
   Quote-only mode — no figures anywhere
   ===================================================================== */
.fr-sb-quote {
	font-family: Vazirmatn, sans-serif;
	font-size: .72rem;
	font-weight: 700;
	color: var(--brand);
	background: rgba(0, 229, 160, .09);
	border: 1px solid rgba(0, 229, 160, .28);
	padding: .1rem .45rem;
	border-radius: 4px;
	white-space: nowrap;
}
.fr-sb-opt__price:has(.fr-sb-quote) { white-space: nowrap; }
.fr-sb-quote-note {
	margin: .6rem 0 0;
	font-size: .72rem;
	line-height: 1.7;
	color: #6b7787;
	text-align: center;
}

.fr-iq-line__quote {
	font-family: Vazirmatn, sans-serif;
	font-size: .72rem;
	color: var(--brand);
	background: rgba(0, 229, 160, .09);
	border: 1px solid rgba(0, 229, 160, .25);
	padding: .1rem .45rem;
	border-radius: 4px;
}
.fr-iq-total-row--grand b { font-family: Vazirmatn, sans-serif; font-size: .9rem; }

/* Belt-and-braces: hide any price block Woo may still emit */
.woocommerce .price,
.woocommerce span.woocommerce-Price-amount,
.wc-block-components-product-price { display: none !important; }
