/* =============================================================
   Nikmehr — Design tokens & global layout
   Brand: #0B1C45 (primary)  /  #FF9900 (accent)
   ============================================================= */

:root {
	/* Brand */
	--nik-primary: #0B1C45;
	--nik-primary-700: #0f2456;
	--nik-primary-600: #163167;
	--nik-primary-500: #1e3f80;
	--nik-accent: #FF9900;
	--nik-accent-600: #e88a00;

	/* Special-offers red (پیشنهاد ویژه). A punchy crimson that stands apart from
	   the brand orange while staying warm; -600 is the darker gradient stop. */
	--nik-deal: #E01F3D;
	--nik-deal-600: #B4142E;

	/* Neutrals */
	--nik-bg: #ffffff;
	--nik-bg-soft: #f6f8fb;
	--nik-bg-muted: #eef2f7;
	--nik-border: #e2e8f0;
	--nik-text: #1a2332;
	--nik-text-soft: #5a6b85;
	--nik-text-faint: #8a97ab;

	/* States */
	--nik-success: #0f6e56;
	--nik-success-bg: #e7f4ee;

	/* Layout */
	--nik-container: 1280px;
	--nik-radius: 10px;
	--nik-radius-sm: 6px;
	--nik-gap: 16px;

	/* Type */
	--nik-font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--nik-bg);
	color: var(--nik-text);
	font-family: var(--nik-font);
	line-height: 1.7;
	direction: rtl;
	/* Guard against stray horizontal overflow (e.g. an off-canvas drawer parked
	   just off-screen). `clip` stops sideways scrolling without trapping the
	   sticky/fixed elements the way `hidden` would. */
	overflow-x: clip;
}

/* Apply the Persian font to form controls and WooCommerce widgets too. */
input, button, select, textarea, .woocommerce, .woocommerce-page {
	font-family: var(--nik-font);
}

a { color: var(--nik-primary-500); text-decoration: none; }
a:hover { color: var(--nik-accent-600); }

img { max-width: 100%; height: auto; display: block; }

.container {
	max-width: var(--nik-container);
	margin-inline: auto;
	padding-inline: 16px;
	width: 100%;
}

/* Accessibility helpers */
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%); height: 1px; width: 1px;
	margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
	/* Hidden off-screen without widening the page (no -9999px, which overflows
	   in RTL). Becomes visible only when focused. */
	position: absolute; top: 0; inset-inline-start: 8px; z-index: 1000;
	transform: translateY(-150%);
	background: var(--nik-primary); color: #fff; padding: 10px 16px;
	transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(8px); outline: 2px solid #fff; outline-offset: 2px; color: #fff; }
#primary:focus { outline: none; }

/* Buttons */
.nik-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 20px; border-radius: var(--nik-radius-sm);
	font-weight: 600; font-size: 14px; cursor: pointer;
	border: 1px solid transparent; transition: background .15s, color .15s;
}
.nik-btn--primary {
	background: var(--nik-accent); color: #1a1a1a;
	box-shadow: 0 6px 16px -4px rgba(255,153,0,.55);
}
.nik-btn--primary:hover { background: var(--nik-accent-600); color: #1a1a1a; }
.nik-btn--ghost { background: transparent; color: var(--nik-text-soft); border-color: var(--nik-border); }
.nik-btn--ghost:hover { color: var(--nik-accent-600); border-color: var(--nik-accent); }

/* Section heading */
.nik-section { padding-block: 40px; }
.nik-section__head {
	margin-bottom: 22px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	column-gap: 16px;
}
.nik-section__title {
	display: flex; align-items: center; gap: 11px;
	font-size: 22px; font-weight: 800; color: var(--nik-primary); margin: 0;
	grid-column: 1; grid-row: 1;
}
.nik-section__title::before {
	content: ''; width: 5px; height: 24px;
	background: linear-gradient(180deg, var(--nik-accent), var(--nik-accent-600));
	border-radius: 3px;
}
.nik-section__sub {
	color: var(--nik-text-soft); margin: 7px 0 0; padding-inline-start: 16px; font-size: 14px;
	grid-column: 1; grid-row: 2;
}
/* The "view all" link and the carousel controls sit on the inline-end,
   spanning the title rows so they stay vertically centered. */
.nik-section__more {
	font-size: 13px; font-weight: 700; color: var(--nik-accent-600);
	display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
	grid-column: 2; grid-row: 1 / -1; align-self: center;
}
.nik-section__more:hover { color: var(--nik-accent); }

/* Grid helpers */
.nik-grid { display: grid; gap: var(--nik-gap); }
.nik-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nik-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nik-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .nik-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .nik-grid--4, .nik-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .nik-grid--4, .nik-grid--3, .nik-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Icons */
.nik-icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; }

/* =============================================================
   Topbar
   ============================================================= */
.nik-topbar {
	background: var(--nik-bg-soft);
	color: var(--nik-text-soft);
	font-size: 12.5px;
	border-bottom: 1px solid var(--nik-border);
}
.nik-topbar__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 38px; gap: 12px; flex-wrap: wrap;
}
.nik-topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nik-topbar__item {
	display: inline-flex; align-items: center; gap: 6px; padding-block: 7px;
}
.nik-topbar__item--muted { color: var(--nik-text-faint); }
.nik-topbar__item--accent { color: var(--nik-accent-600); font-weight: 700; }
.nik-topbar__icon { flex-shrink: 0; opacity: .85; }

/* =============================================================
   Header
   ============================================================= */
.nik-header {
	background: #ffffff;
	color: var(--nik-text);
	position: relative;
	box-shadow: 0 4px 18px -12px rgba(11, 28, 69, .35);
}
/* Subtle accent hairline at the bottom edge. */
.nik-header::after {
	content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--nik-accent), transparent);
	opacity: .7;
}
.nik-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 84px; padding-block: 14px;
}
.nik-header__brand { display: flex; align-items: center; gap: 12px; color: var(--nik-primary); flex-shrink: 0; }
.nik-header__brand:hover { color: var(--nik-primary); }
.nik-header__logo {
	width: 48px; height: 48px; flex-shrink: 0;
	object-fit: contain; display: block;
	transition: transform .25s ease;
}
.nik-header__brand:hover .nik-header__logo {
	transform: translateY(-1px) scale(1.04);
}
.nik-header__brand--logotype { min-width: 0; }
.nik-header__logotype {
	display: block; width: auto; height: auto; max-width: 210px; max-height: 58px;
	object-fit: contain; transition: transform .25s ease;
}
.nik-header__brand--logotype:hover .nik-header__logotype { transform: translateY(-1px); }
.nik-header__brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.nik-header__name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--nik-primary); }
.nik-header__tagline { font-size: 11px; color: var(--nik-text-soft); }

.nik-header__search {
	flex: 1; display: flex; align-items: center;
	background: var(--nik-bg-soft); border-radius: 999px; overflow: hidden;
	min-width: 0; max-width: 640px; margin-inline: auto;
	padding-inline-start: 16px;
	border: 1px solid var(--nik-border);
	box-shadow: none;
	transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.nik-header__search:hover { background: #fff; }
.nik-header__search:focus-within {
	background: #fff; border-color: var(--nik-accent);
	box-shadow: 0 0 0 4px rgba(255, 153, 0, .18);
}
.nik-header__search-icon { color: var(--nik-text-faint); flex-shrink: 0; }
.nik-header__search input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0;
	padding: 12px 12px; font-size: 14px; font-family: inherit; background: transparent;
	color: var(--nik-text);
}
.nik-header__search input[type="search"]::placeholder { color: var(--nik-text-faint); }
.nik-header__search-btn {
	border: 0; cursor: pointer; padding: 0 26px; align-self: stretch;
	background: linear-gradient(135deg, var(--nik-accent), var(--nik-accent-600));
	color: #1a1a1a; font-weight: 800; font-size: 13.5px;
	transition: filter .18s ease;
}
.nik-header__search-btn:hover { filter: brightness(1.06); }

.nik-header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nik-header__action {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	color: var(--nik-text-soft); font-size: 11px; font-weight: 600; position: relative;
	padding: 8px 12px; border-radius: 12px; background: none; border: 0; cursor: pointer; font-family: inherit;
	transition: color .18s ease, background .18s ease, transform .12s ease;
}
/* The search toggle is a mobile affordance only; on desktop the full search bar
   is always visible, so the icon button is hidden. */
.nik-header__action--search { display: none; }
.nik-header__action:hover {
	color: var(--nik-primary); background: var(--nik-bg-soft);
}
.nik-header__action:active { transform: translateY(1px); }
.nik-header__action-icon { stroke-width: 1.7; }
.nik-header__action-iconwrap { position: relative; display: inline-flex; }

/* Highlighted "instant quote" action — orange, draws the eye next to the
   plainer account/wishlist actions. A small lightning badge marks it as fast. */
.nik-header__action--quote {
	color: #fff; background: var(--nik-accent);
	font-weight: 700;
}
.nik-header__action--quote:hover { color: #fff; background: var(--nik-accent-600); }
.nik-header__action--quote .nik-header__action-icon { stroke: #fff; }
.nik-header__action-bolt {
	position: absolute; top: -6px; inset-inline-start: -8px;
	width: 18px; height: 18px; border-radius: 50%;
	display: grid; place-items: center;
	background: #fff; color: var(--nik-accent-600);
	border: 2px solid var(--nik-accent);
}
.nik-header__action--quote:hover .nik-header__action-bolt { border-color: var(--nik-accent-600); }
.nik-header__cart { color: var(--nik-primary); }
.nik-header__cart:hover { color: var(--nik-accent-600); background: rgba(255, 153, 0, .12); }
.nik-header__cart-count {
	position: absolute; top: -7px; inset-inline-start: -9px;
	background: var(--nik-accent); color: #1a1a1a;
	font-size: 10px; font-weight: 800; min-width: 18px; height: 18px;
	border-radius: 9px; display: grid; place-items: center; padding-inline: 4px;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(255, 153, 0, .5);
}

/* =============================================================
   Primary nav / mega menu
   ============================================================= */
.nik-nav {
	background: #ffffff;
	border-bottom: 1px solid var(--nik-border);
	position: sticky;
	top: var(--nik-nav-sticky-top, 0px);
	z-index: 75;
	transition: box-shadow .24s ease, border-color .24s ease;
}
.admin-bar .nik-nav { --nik-nav-sticky-top: 32px; }
.nik-nav.is-stuck {
	border-bottom-color: rgba(11, 28, 69, .12);
	box-shadow: 0 10px 28px -18px rgba(11, 28, 69, .55);
}
/* Accent hairline at the bottom edge — mirrors the header, so the nav bar
   reads as a distinct, separated band. */
.nik-nav::after {
	content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--nik-accent), transparent);
	opacity: .7;
}
/* Single row: every category sits inline with tight spacing; a faint divider
   separates each item so the dense bar still reads cleanly. */
.nik-nav__list {
	display: flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 0; list-style: none;
	align-items: stretch;
}
.nik-nav__list > li { flex-shrink: 0; }
/* Faint hairline divider between top-level items (not before the first). */
.nik-nav__list > li + li {
	border-inline-start: 1px solid var(--nik-border);
}
.nik-nav__list > li > a {
	display: flex; align-items: center; gap: 4px; white-space: nowrap;
	padding: 12px 11px; font-size: 12.5px; color: var(--nik-text); font-weight: 600;
	position: relative; transition: color .18s ease, background .18s ease;
}
/* Animated underline pill instead of a hard 3px border. */
.nik-nav__list > li > a::after {
	content: ''; position: absolute; inset-inline: 11px; bottom: 5px; height: 2px;
	background: var(--nik-accent); border-radius: 2px;
	transform: scaleX(0); transform-origin: center; transition: transform .22s ease;
}
.nik-nav__list > li > a:hover,
.nik-nav__list > li.current-menu-item > a {
	color: var(--nik-primary); background: var(--nik-bg-soft);
}
.nik-nav__list > li > a:hover::after,
.nik-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }

/* ---- Overflow ("…") menu ------------------------------------ */
/* JS shows this and moves trailing items into it once the bar is full. */
.nik-nav__item--overflow { margin-inline-start: auto; } /* push to the end */
.nik-nav__overflow-btn {
	display: flex; align-items: center; justify-content: center;
	height: 100%; min-height: 42px; padding: 0 12px;
	background: none; border: 0; cursor: pointer; color: var(--nik-text-soft);
	transition: color .18s ease, background .18s ease;
}
.nik-nav__item--overflow:hover > .nik-nav__overflow-btn,
.nik-nav__item--overflow:focus-within > .nik-nav__overflow-btn {
	color: var(--nik-primary); background: var(--nik-bg-soft);
}
/* The overflow panel opens DOWN like a first-level dropdown; edge-anchoring is
   handled below (mirrors the first-level rule specificity). */
.nik-nav__sub--overflow { min-width: 220px; }
/* Items living inside the overflow panel read as normal vertical rows. */
.nik-nav__sub--overflow > .nik-nav__item { border: 0; }

/* ---- Multi-level dynamic dropdowns -------------------------- */
/* The bar items can have flyout submenus. The first level drops DOWN below
   the nav bar; every deeper level flies out to the side (start side = right
   in RTL, so visually they cascade leftwards). Pure-CSS hover reveal. */
.nik-nav__item { position: relative; }
.nik-nav__item > a { display: flex; align-items: center; }

/* The caret on items that have children. Points DOWN at rest; flips to UP on
   hover/focus of a top-level item. */
.nik-nav__caret { flex-shrink: 0; opacity: .6; transition: transform .2s ease; }
.nik-nav__list > .nik-nav__item.has-children:hover > a .nik-nav__caret,
.nik-nav__list > .nik-nav__item.has-children:focus-within > a .nik-nav__caret { transform: rotate(180deg); }
/* Deeper-level carets point toward the flyout direction (inline-start = left
   in RTL): rotate the down-chevron 90° clockwise. */
.nik-nav__sub .nik-nav__caret { margin-inline-start: auto; transform: rotate(90deg); }

/* Submenu panels (shared) */
.nik-nav__sub {
	position: absolute; z-index: 60; min-width: 230px; margin: 0; padding: 6px;
	list-style: none; background: #fff;
	border: 1px solid var(--nik-border); border-radius: 12px;
	box-shadow: 0 18px 40px -16px rgba(11,28,69,.30);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
/* First level: drop straight down, aligned under the trigger. */
.nik-nav__list > .nik-nav__item > .nik-nav__sub {
	top: 100%; inset-inline-start: 0; margin-top: 6px;
}
/* Edge flip (first level): for the bar's leftmost items the start-anchored panel
   extends left and clips. JS adds --flip-top to re-anchor it to the item's end
   edge so it extends toward the inline end (right) instead. */
.nik-nav__list > .nik-nav__item > .nik-nav__sub--flip-top {
	inset-inline-start: auto; inset-inline-end: 0;
}
/* Deeper levels: fly out to the inline-start (left in RTL), top-aligned. */
.nik-nav__sub .nik-nav__sub {
	top: -7px; inset-inline-start: 100%; margin-inline-start: 6px; transform: translateX(0) translateY(6px);
}
/* Edge flip: when a deeper flyout would overflow the viewport on its natural
   side, JS adds .nik-nav__sub--flip so it opens toward the opposite side instead. */
.nik-nav__sub .nik-nav__sub.nik-nav__sub--flip {
	inset-inline-start: auto; inset-inline-end: 100%;
	margin-inline-start: 0; margin-inline-end: 6px;
}
/* Carets inside a flipped branch point the other way. */
.nik-nav__sub--flip .nik-nav__caret,
.nik-nav__item--flip > a .nik-nav__caret { transform: rotate(-90deg); }

/* Overflow panel anchors to the inline-end edge (the trigger sits there). The
   selector mirrors the first-level rule's specificity so it actually wins. */
.nik-nav__list > .nik-nav__item--overflow > .nik-nav__sub--overflow {
	inset-inline-start: auto; inset-inline-end: 0;
}

/* Reveal on hover / keyboard focus, one level at a time. Click-toggle
   (.is-open) covers touch / keyboard users on the overflow trigger. */
.nik-nav__item:hover > .nik-nav__sub,
.nik-nav__item:focus-within > .nik-nav__sub,
.nik-nav__item--overflow.is-open > .nik-nav__sub {
	opacity: 1; visibility: visible; transform: translateY(0);
	transition: opacity .18s ease, transform .18s ease;
}

/* Submenu links */
.nik-nav__sub .nik-nav__item > a {
	display: flex; align-items: center; gap: 6px;
	padding: 9px 12px; border-radius: 8px;
	font-size: 13px; font-weight: 600; color: var(--nik-text);
	transition: background .15s ease, color .15s ease;
}
.nik-nav__sub .nik-nav__item > a:hover,
.nik-nav__sub .nik-nav__item:focus-within > a {
	background: var(--nik-bg-soft); color: var(--nik-accent-600);
}
.nik-nav__sub .nik-nav__item > a > span { flex: 1; }

/* ---- Mobile chrome (burger / drawer head / backdrop) -------- */
/* Hidden on desktop; the media queries below switch them on. */
.nik-nav__burger,
.nik-nav__sticky-brand,
.nik-nav__menu-head,
.nik-nav__close,
.nik-nav__backdrop { display: none; }

/* =============================================================
   Footer (white · minimal · blueprint-signal motif · wave separator)
   ============================================================= */
.nik-footer {
	position: relative; isolation: isolate; overflow: hidden;
	margin-top: 64px; color: var(--nik-text-soft);
	background:
		radial-gradient(680px 300px at 88% 120%, rgba(255,153,0,.07), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, var(--nik-bg-soft) 100%);
}
/* Industrial gear / cog motif (on-brand for an electrical & automation supplier),
   in brand navy, very faint, fading out toward the bottom. */
.nik-footer::before {
	content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%230B1C45' stroke-width='3' stroke-linejoin='round'%3E%3Cg transform='translate(70 70)'%3E%3Cpath d='M0-42l7 2 4-9 9 4-2 9 8 5 7-7 7 7-7 7 5 8 9-2 4 9-9 4 2 7-2 7 9 4-4 9-9-2-5 8 7 7-7 7-7-7-8 5 2 9-9 4-4-9-7 2-7-2-4 9-9-4 2-9-8-5-7 7-7-7 7-7-5-8-9 2-4-9 9-4-2-7 2-7-9-4 4-9 9 2 5-8-7-7 7-7 7 7 8-5-2-9 9-4z'/%3E%3Ccircle r='15'/%3E%3C/g%3E%3Cg transform='translate(195 185) scale(.7)'%3E%3Cpath d='M0-42l7 2 4-9 9 4-2 9 8 5 7-7 7 7-7 7 5 8 9-2 4 9-9 4 2 7-2 7 9 4-4 9-9-2-5 8 7 7-7 7-7-7-8 5 2 9-9 4-4-9-7 2-7-2-4 9-9-4 2-9-8-5-7 7-7-7 7-7-5-8-9 2-4-9 9-4-2-7 2-7-9-4 4-9 9 2 5-8-7-7 7-7 7 7 8-5-2-9 9-4z'/%3E%3Ccircle r='15'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 300px 300px;
	background-repeat: repeat;
	opacity: .045;
	-webkit-mask-image: radial-gradient(120% 130% at 90% 100%, #000 0%, transparent 70%);
	mask-image: radial-gradient(120% 130% at 90% 100%, #000 0%, transparent 70%);
}

/* Elegant separator: a soft accent-tinted wave that carves the footer's band
   away from the (white) page content above. */
.nik-footer__divider { position: relative; line-height: 0; }
.nik-footer__divider svg { display: block; width: 100%; height: 46px; }
.nik-footer__divider path { fill: var(--nik-accent); }

.nik-footer__grid {
	display: grid; grid-template-columns: minmax(230px, 1.7fr) repeat(4, minmax(112px, 1fr)); gap: clamp(16px, 2vw, 26px);
	padding-block: 14px 38px;
}

/* Brand mark mirrors the header's logo. */
.nik-footer__brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px; color: var(--nik-primary); }
.nik-footer__brand:hover { color: var(--nik-primary); }
.nik-footer__logo {
	width: 44px; height: 44px; flex-shrink: 0;
	object-fit: contain; display: block;
}
.nik-footer__brand-name { font-size: 17px; font-weight: 800; color: var(--nik-primary); }

.nik-footer__title {
	position: relative; font-size: 14px; font-weight: 800; color: var(--nik-primary); margin: 0 0 16px; padding-bottom: 10px;
}
.nik-footer__title::after {
	content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
	width: 28px; height: 2px; border-radius: 2px; background: var(--nik-accent);
}
.nik-footer__about p { font-size: 13px; line-height: 1.9; margin: 0; max-width: 38ch; color: var(--nik-text-soft); }
.nik-footer__address {
	display: flex; align-items: flex-start; gap: 8px; max-width: 38ch;
	margin-top: 14px; color: var(--nik-text-soft); font-size: 12.5px; line-height: 1.9;
	font-style: normal;
}
.nik-footer__address svg { flex: 0 0 auto; margin-top: 4px; color: var(--nik-accent-600); }
.nik-footer__address span { flex: 1; text-align: justify; text-align-last: start; }
.nik-footer__list { list-style: none; margin: 0; padding: 0; }
.nik-footer__list li { margin-bottom: 10px; font-size: 13px; color: var(--nik-text-soft); }
.nik-footer__list a { color: var(--nik-text-soft); transition: color .15s ease, padding-inline-start .15s ease; }
.nik-footer__list a:hover { color: var(--nik-accent-600); padding-inline-start: 4px; }
.nik-footer__enamad { display: flex; align-items: flex-start; min-height: 88px; }
.nik-footer__enamad a { display: inline-flex; align-items: flex-start; justify-content: flex-start; max-width: 100%; }
.nik-footer__enamad img { display: block; width: auto; height: auto; max-width: 100%; max-height: 105px; object-fit: contain; }

.nik-footer__bottom { border-top: 1px solid var(--nik-border); }
.nik-footer__bottom-inner {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 8px; padding-block: 16px; font-size: 12px; color: var(--nik-text-faint);
}
.nik-footer__payment { color: var(--nik-text-soft); }

/* =============================================================
   Responsive (global)
   ============================================================= */

/* ---- Nav: tablet range — keep deep flyouts inside the viewport ----
   On narrower (but still pointer) screens the leftward cascade can run off the
   edge, so deeper submenus open toward the inline-END (right in RTL) instead. */
@media (min-width: 769px) and (max-width: 1100px) {
	.nik-nav__sub .nik-nav__sub {
		inset-inline-start: auto; inset-inline-end: 100%;
		margin-inline-start: 0; margin-inline-end: 6px;
	}
	.nik-nav__sub .nik-nav__sub .nik-nav__caret { transform: rotate(-90deg); }
}

/* ---- Nav: mobile — slide-in drawer with accordion drill-down ---- */
@media (max-width: 768px) {
	.nik-nav__inner {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 46px;
	}

	/* Burger trigger shows; the bar itself collapses to just the trigger. */
	.nik-nav__burger {
		display: inline-flex; align-items: center; gap: 9px;
		padding: 11px 4px; background: none; border: 0; cursor: pointer;
		font: inherit; font-size: 14px; font-weight: 700; color: var(--nik-primary);
	}
	.nik-nav__burger-bars { display: inline-grid; gap: 4px; width: 20px; }
	.nik-nav__burger-bars span { height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

	/* Kept in the row while transparent, so the animated entrance never causes
	   a layout shift when the category bar reaches the top of the viewport. */
	.nik-nav__sticky-brand {
		display: inline-flex;
		align-items: center;
		justify-content: flex-end;
		gap: 7px;
		max-width: min(48vw, 180px);
		min-width: 34px;
		min-height: 36px;
		color: var(--nik-primary);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(-18px) scale(.88) rotate(-2deg);
		transform-origin: left center;
		transition: opacity .3s ease, transform .42s cubic-bezier(.2,.9,.2,1.15), visibility 0s linear .42s;
	}
	[dir="ltr"] .nik-nav__sticky-brand {
		transform: translateX(18px) scale(.88) rotate(2deg);
		transform-origin: right center;
	}
	.nik-nav.is-stuck .nik-nav__sticky-brand {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0) scale(1) rotate(0);
		transition-delay: .04s, .04s, 0s;
	}
	.nik-nav__sticky-logo {
		width: 34px;
		height: 34px;
		flex: 0 0 34px;
		object-fit: contain;
	}
	.nik-nav__sticky-logotype {
		display: block;
		width: auto;
		height: auto;
		max-width: 150px;
		max-height: 34px;
		object-fit: contain;
	}
	.nik-nav__sticky-name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 13px;
		font-weight: 850;
	}

	/* Backdrop. */
	.nik-nav__backdrop {
		display: block; position: fixed; inset: 0; z-index: 80;
		background: rgba(11,28,69,.45); opacity: 0; visibility: hidden;
		transition: opacity .25s ease, visibility 0s linear .25s;
	}
	.nik-nav__backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

	/* Drawer: slides in from the inline-start (right in RTL). */
	.nik-nav__menu {
		position: fixed; z-index: 90; top: 0; bottom: 0; inset-inline-start: 0;
		width: min(86vw, 340px); background: #fff;
		box-shadow: 0 0 60px -10px rgba(11,28,69,.5);
		/* Hidden off-screen toward the inline-start edge. RTL: that edge is the
		   right, so a positive X translation pushes it off the right; LTR uses
		   a negative translation. Using logical-aware values avoids creating a
		   horizontal scrollbar from an element parked just off-screen. */
		transform: translateX(100%);
		transition: transform .28s cubic-bezier(.22,1,.36,1);
		display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
	}
	[dir="ltr"] .nik-nav__menu { transform: translateX(-100%); }
	.nik-nav__menu.is-open { transform: translateX(0); }

	.nik-nav__menu-head {
		display: flex; align-items: center; justify-content: space-between;
		padding: 16px 18px; border-bottom: 1px solid var(--nik-border);
		font-size: 15px; font-weight: 800; color: var(--nik-primary);
		position: sticky; top: 0; background: #fff; z-index: 1;
	}
	.nik-nav__close { display: inline-flex; background: none; border: 0; cursor: pointer; color: var(--nik-text-soft); padding: 4px; }
	.nik-nav__close:hover { color: var(--nik-accent-600); }

	/* List becomes a simple vertical stack. */
	.nik-nav__list { flex-direction: column; gap: 0; padding: 6px 0; flex-wrap: nowrap; }
	.nik-nav__list > .nik-nav__item > a,
	.nik-nav__sub .nik-nav__item > a {
		padding: 13px 18px; border-radius: 0; font-size: 14px; font-weight: 600;
	}
	.nik-nav__list > li > a::after { display: none; } /* drop the underline pill */
	.nik-nav__item { position: static; }

	/* The overflow ("…") kebab is irrelevant in the drawer — everything stacks. */
	.nik-nav__item--overflow { display: none; }

	/* Submenus: accordion. Collapsed by default; JS toggles `.is-open` on the
	   parent <li> to drill down one level at a time. Indented per depth. */
	.nik-nav__sub {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 0;
		min-width: 0; background: var(--nik-bg-soft);
		display: none;
	}
	.nik-nav__item.is-open > .nik-nav__sub { display: block; }
	.nik-nav__sub .nik-nav__item > a { padding-inline-start: 34px; }
	.nik-nav__sub .nik-nav__sub .nik-nav__item > a { padding-inline-start: 50px; }

	/* Caret: in the drawer it always points down and flips when its level opens. */
	.nik-nav__caret { transform: rotate(0deg) !important; margin-inline-start: auto; }
	.nik-nav__item.is-open > a .nik-nav__caret { transform: rotate(180deg) !important; }

	/* Tapping a parent with children toggles it rather than navigating (JS). */
	.nik-nav__item.has-children > a { position: relative; }
}

@media screen and (max-width: 782px) {
	.admin-bar .nik-nav { --nik-nav-sticky-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.nik-nav,
	.nik-nav__sticky-brand { transition: none; }
}

/* ---- Header + footer: tablet ---- */
@media (max-width: 900px) {
	/* Logo + all action icons (search included) sit on a single row. The search
	   bar is collapsed by default and drops down full-width below the row only
	   when the user taps the search icon (JS toggles `.is-open`). */
	.nik-header__inner { flex-wrap: wrap; row-gap: 10px; min-height: 0; }
	.nik-header__brand { margin-inline-end: auto; }

	.nik-header__action--search { display: flex; }

	.nik-header__search {
		order: 3; flex-basis: 100%; max-width: none; margin: 0;
		/* Collapsed: animate height to 0 so it tucks away cleanly. */
		display: none;
	}
	.nik-header__search.is-open { display: flex; }

	/* Footer: about sits full-width, followed by the four compact columns. */
	.nik-footer__grid { grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 8px 28px; }
	.nik-footer__col { padding: 22px; }
	/* About column spans the whole top row. */
	.nik-footer__about { grid-column: 1 / -1; }
	/* Hairline dividing the about block from the lists row. */
	.nik-footer__col:nth-child(n + 2) { border-top: 1px solid var(--nik-border); }
	/* Vertical hairlines between the four compact columns.
	   `border-inline-start` is the row-facing edge in both RTL and LTR. */
	.nik-footer__col:nth-child(n + 3) { border-inline-start: 1px solid var(--nik-border); }
}

/* ---- Header: mobile ---- */
@media (max-width: 560px) {
	.nik-topbar { font-size: 11.5px; }
	.nik-topbar__inner { justify-content: center; row-gap: 0; }
	.nik-topbar__group { justify-content: center; gap: 16px; }
	/* Keep only the essentials visible up top; the free-shipping line still shows. */
	.nik-topbar__item--muted { display: none; }

	.nik-header__inner { gap: 12px; }
	/* Hide the tagline so the brand name fits beside the action buttons. */
	.nik-header__tagline { display: none; }
	.nik-header__name { font-size: 15.5px; }
	.nik-header__logo { width: 40px; height: 40px; }
	.nik-header__logotype { max-width: 135px; max-height: 44px; }

	.nik-header__actions { gap: 2px; }
	/* Tight row: drop the text labels (icons stay); the orange quote tile keeps
	   its fill so it still stands out at a glance. */
	.nik-header__action { padding: 8px; gap: 0; }
	.nik-header__action > span:not(.nik-header__action-iconwrap) { display: none; }
	/* The "instant quote" label is worth keeping — shrink it instead of hiding. */
	.nik-header__action--quote { padding: 8px 10px; }

	/* Two balanced footer columns per row on phones. */
	.nik-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nik-footer__col:nth-child(n + 3) { border-inline-start: 0; }
	.nik-footer__col:nth-child(odd):not(.nik-footer__about) { border-inline-start: 1px solid var(--nik-border); }
	.nik-footer__bottom-inner { justify-content: center; text-align: center; }
	.nik-footer__payment { flex-basis: 100%; }
}

/* ---- Footer: narrow phones — keep the 2×2 compact grid, tighten spacing ---- */
@media (max-width: 420px) {
	.nik-footer { margin-top: 40px; }
	.nik-footer__about { padding: 18px 14px; }
	/* Compact columns: tighter padding while preserving comfortable tap targets. */
	.nik-footer__col:nth-child(n + 2) { padding: 16px 8px; }
	.nik-footer__title { font-size: 12.5px; }
	.nik-footer__list li { font-size: 12px; }
	.nik-footer__bottom-inner { justify-content: center; text-align: center; }
}

/* =============================================================
   Mini cart (slide-out drawer)
   ============================================================= */
.nik-cart-locked { overflow: hidden; }

.nik-cart-overlay {
	position: fixed; inset: 0; z-index: 120;
	background: rgba(11,28,69,.45);
	opacity: 0; transition: opacity .3s ease;
}
.nik-cart-overlay.is-open { opacity: 1; }

.nik-cart {
	position: fixed; z-index: 130; top: 0; bottom: 0; inset-inline-end: 0;
	width: min(92vw, 400px);
	display: flex; flex-direction: column;
	background: #fff; color: var(--nik-text);
	box-shadow: 0 0 60px -10px rgba(11,28,69,.5);
	/* Parked off-screen toward the inline-end edge (left in RTL). A negative
	   logical translation avoids spawning a horizontal scrollbar. */
	transform: translateX(-100%);
	transition: transform .3s cubic-bezier(.22,1,.36,1);
	visibility: hidden;
}
[dir="ltr"] .nik-cart { transform: translateX(100%); }
.nik-cart.is-open { transform: translateX(0); visibility: visible; }
.nik-cart.is-busy { pointer-events: none; }
.nik-cart.is-busy .nik-cart__inner { opacity: .5; transition: opacity .15s ease; }
/* Spinner while a cart op is in flight. */
.nik-cart.is-busy::after {
	content: ''; position: absolute; top: 50%; left: 50%; z-index: 2;
	width: 34px; height: 34px; margin: -17px 0 0 -17px;
	border: 3px solid var(--nik-border); border-top-color: var(--nik-accent);
	border-radius: 50%; animation: nik-cart-spin .7s linear infinite;
}
@keyframes nik-cart-spin { to { transform: rotate(360deg); } }

.nik-cart__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 20px; border-bottom: 1px solid var(--nik-border); flex-shrink: 0;
}
.nik-cart__title {
	display: flex; align-items: center; gap: 9px;
	margin: 0; font-size: 17px; font-weight: 800; color: var(--nik-primary);
}
.nik-cart__head-count {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px;
	padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 800;
	background: var(--nik-accent); color: #1a1a1a;
}
.nik-cart__close {
	display: inline-flex; padding: 4px; background: none; border: 0; cursor: pointer;
	color: var(--nik-text-soft); transition: color .15s ease;
}
.nik-cart__close:hover { color: var(--nik-accent-600); }

.nik-cart__inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nik-cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 0; }

.nik-cart__empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	height: 100%; padding: 40px 24px; text-align: center; color: var(--nik-text-soft);
}
.nik-cart__empty svg { color: var(--nik-border); }
.nik-cart__empty p { margin: 0; font-size: 14px; }

.nik-cart__list { list-style: none; margin: 0; padding: 0; }
.nik-cart__item {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start;
	padding: 14px 20px; border-bottom: 1px solid var(--nik-border);
}
.nik-cart__thumb {
	width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
	border: 1px solid var(--nik-border); background: var(--nik-bg-soft); flex-shrink: 0;
}
.nik-cart__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nik-cart__info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nik-cart__name {
	font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--nik-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nik-cart__name:hover { color: var(--nik-accent-600); }
.nik-cart__price { font-size: 13.5px; font-weight: 800; color: var(--nik-primary); }
.nik-cart__price .woocommerce-Price-currencySymbol { font-size: .82em; font-weight: 700; color: var(--nik-text-soft); margin-inline-start: 2px; }

.nik-cart__qty {
	display: inline-flex; align-items: center; gap: 0;
	border: 1px solid var(--nik-border); border-radius: 8px; overflow: hidden; width: fit-content;
}
.nik-cart__qty-btn {
	width: 28px; height: 28px; display: grid; place-items: center;
	background: var(--nik-bg-soft); border: 0; cursor: pointer;
	font-size: 16px; font-weight: 700; color: var(--nik-text-soft); line-height: 1;
	transition: background .15s ease, color .15s ease;
}
.nik-cart__qty-btn:hover { background: var(--nik-accent); color: #1a1a1a; }
.nik-cart__qty-num { min-width: 30px; text-align: center; font-size: 13px; font-weight: 800; }
.nik-cart__item.is-pending {
	opacity: .72;
}
.nik-cart__item.is-pending .nik-cart__thumb,
.nik-cart__item.is-pending .nik-cart__info {
	pointer-events: none;
}

.nik-cart__remove {
	display: inline-flex; padding: 5px; background: none; border: 0; cursor: pointer;
	color: var(--nik-text-faint); border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.nik-cart__remove:hover { color: #c0392b; background: rgba(192,57,43,.08); }

.nik-cart__foot {
	flex-shrink: 0; padding: 16px 20px;
	border-top: 1px solid var(--nik-border); background: var(--nik-bg-soft);
}
.nik-cart__subtotal {
	display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px;
	font-size: 14px; color: var(--nik-text-soft);
}
.nik-cart__subtotal strong { font-size: 18px; font-weight: 800; color: var(--nik-primary); }
.nik-cart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nik-cart__actions .nik-btn { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	.nik-cart, .nik-cart-overlay { transition: none; }
}
.nik-recaptcha {
	margin-block: 14px;
}

.nik-recaptcha small {
	color: var(--nik-color-muted, #667085);
	font-size: 12px;
}

/* 1.36.0: improve contrast of small muted header text. */
.nik-topbar__item--muted, .nik-header__search input[type="search"]::placeholder { color: var(--nik-text-soft); }
.nik-topbar__item--accent { color: #995600; }
