/* =============================================================
   Nikmehr — Home page sections
   ============================================================= */

/* ---------------- Hero (light & minimal) ---------------- */
.nik-hero {
	position: relative; isolation: isolate; overflow: hidden;
	/* Plain white surface — the product shots have white backgrounds, so the
	   dynamic backdrop blends seamlessly into it. */
	background: #ffffff;
	color: var(--nik-text);
	border-bottom: 1px solid var(--nik-border);
}
/* Decorative, faded circuit-board motif (on-brand: برق و اتوماسیون). Pure CSS
   data-URI so it costs no extra request; kept very low-opacity so it never
   competes with the content. Masked to fade out toward the centre/bottom. */
.nik-hero::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='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%230B1C45' stroke-width='1.4'%3E%3Cpath d='M20 20h50v30h40v-30h50'/%3E%3Cpath d='M20 90h30v40h60v-40h70'/%3E%3Cpath d='M90 20v40M160 90v70M40 160v-30'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3Ccircle cx='160' cy='20' r='4'/%3E%3Ccircle cx='90' cy='60' r='4'/%3E%3Ccircle cx='50' cy='90' r='4'/%3E%3Ccircle cx='110' cy='90' r='4'/%3E%3Ccircle cx='160' cy='160' r='4'/%3E%3Ccircle cx='40' cy='130' r='4'/%3E%3Crect x='66' y='46' width='8' height='8'/%3E%3Crect x='106' y='86' width='8' height='8'/%3E%3C/svg%3E");
	background-size: 200px 200px;
	opacity: .05;
	/* Two fade zones — top-right and bottom-left — so neither corner looks bare,
	   while the centre (where the text lives) stays clean. */
	-webkit-mask-image:
		radial-gradient(80% 90% at 100% 0%, #000 0%, transparent 60%),
		radial-gradient(70% 80% at 0% 100%, #000 0%, transparent 58%);
	mask-image:
		radial-gradient(80% 90% at 100% 0%, #000 0%, transparent 60%),
		radial-gradient(70% 80% at 0% 100%, #000 0%, transparent 58%);
}
.nik-hero__inner {
	position: relative;
	padding-block: 64px; min-height: 380px;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
	gap: 40px;
}
.nik-hero__content { position: relative; z-index: 3; max-width: 560px; }
.nik-hero__badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12.5px; font-weight: 700;
	background: #fff4e2; color: var(--nik-accent-600);
	border: 1px solid #ffd699;
	padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.nik-hero__title {
	font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.4;
	margin: 0 0 16px; color: var(--nik-primary);
}
.nik-hero__title em { font-style: normal; color: var(--nik-accent-600); }
.nik-hero__text { font-size: 15.5px; line-height: 2; color: var(--nik-text-soft); margin: 0 0 24px; max-width: 48ch; }
.nik-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- Hero media (stats column + centred showcase) ---------------- */
.nik-hero__media {
	position: relative; z-index: 2;
	display: flex; align-items: center; gap: 28px;
}

/* ---------------- Centred product showcase ---------------- */
/* Best-seller images cross-fade as a solid, centred product shot, with a
   vertical slide indicator on the inline-start (right, RTL) edge and the
   product name captioned underneath. */
.nik-hero__showcase {
	position: relative; flex-shrink: 0;
	width: clamp(240px, 28vw, 360px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "stage ticks";
	align-items: stretch; gap: 16px;
}

/* Stage — clickable, holds the cross-fading product shots, the gradient sheen
   and the overlaid product name. */
.nik-hero__stage {
	grid-area: stage;
	position: relative; aspect-ratio: 1 / 1;
	display: block; border-radius: 16px; overflow: hidden;
	text-decoration: none;
}
.nik-hero__bg-slide {
	position: absolute;
	/* Inset (instead of inset:0) gives breathing room so the product is shown
	   "from further back" and doesn't touch the stage edges — same intent as the
	   grid cards. The sheen + caption stay full-bleed (they're separate layers),
	   so legibility of the overlaid name is unaffected. */
	inset: clamp(16px, 9%, 34px);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	opacity: 0; transition: opacity 1.1s ease;
}
.nik-hero__bg-slide.is-active { opacity: 1; }
.nik-hero__slide-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* Bottom-up gradient sheen so the overlaid name stays legible. */
.nik-hero__sheen {
	position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top,
		rgba(11,28,69,.62) 0%,
		rgba(11,28,69,.30) 26%,
		rgba(11,28,69,0) 55%);
}

/* Product name overlaid on the bottom of the image. A reserved two-line height
   and bottom-anchored flex keep it from shifting when the next name is a
   different length (which otherwise looked like a jitter on slide change). */
.nik-hero__caption {
	position: absolute; inset-inline: 12px; inset-block-end: 12px;
	margin: 0;
	display: flex; align-items: flex-end; justify-content: center;
	min-height: 2.8em; text-align: center;
	font-size: 14px; font-weight: 800; line-height: 1.4; color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
	transition: opacity .35s ease;
}
.nik-hero__caption.is-swapping { opacity: 0; }
.nik-hero__stage,
.nik-hero__stage:hover .nik-hero__caption { text-decoration: none; }

/* Vertical slide indicator on the inline-end (left, RTL) edge — a column of
   rounded dashes; the active one is longer, coloured, and grows a forward
   arrowhead built from its own ::before / ::after. */
.nik-hero__ticks {
	grid-area: ticks;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px;
}
/* Each tick is a FIXED-height (34px) hit area, so the active dash growing
   inside it never reflows the column — that reflow was the jitter on slide
   change. The visible dash is drawn by ::before and just changes its own
   size/colour, leaving the button's footprint constant. */
.nik-hero__tick {
	position: relative;
	width: 12px; height: 34px; padding: 0; border: 0;
	background: transparent;
	cursor: pointer; appearance: none; -webkit-appearance: none;
	display: flex; align-items: center; justify-content: center;
}
.nik-hero__tick::before {
	content: '';
	width: 4px; height: 18px; border-radius: 4px;
	background: var(--nik-border);
	transition: height .35s ease, background .35s ease, width .35s ease;
}
.nik-hero__tick:hover::before { background: var(--nik-text-soft); }
.nik-hero__tick.is-active::before {
	height: 34px; width: 5px;
	background: var(--nik-accent-600);
}
.nik-hero__tick.is-active:hover::before { background: var(--nik-accent-600); }
/* Forward arrowhead — a solid filled triangle, the same height as the active
   dash, pointing toward the product image (always to the physical right, since
   the stage sits to the right of the ticks). */
.nik-hero__tick.is-active::after {
	content: ''; position: absolute;
	top: 50%; left: 100%; margin-left: 4px;
	transform: translateY(-50%);
	width: 0; height: 0;
	border-top: 17px solid transparent;
	border-bottom: 17px solid transparent;
	border-left: 12px solid var(--nik-accent-600);
}

/* ---------------- Stat boxes (column, left of showcase, no float) ---------------- */
.nik-hero__stats {
	display: flex; flex-direction: column; gap: 16px; margin: 0;
	width: 144px; flex: 0 0 144px;
}
.nik-stat {
	display: flex; flex-direction: column; gap: 2px; text-align: center;
	background: rgba(255,255,255,.9);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.7);
	border-radius: 14px; padding: 12px 18px; min-width: 110px;
	box-shadow: 0 18px 38px -18px rgba(11,28,69,.55);
}
.nik-stat__num { display: block; font-size: 22px; font-weight: 800; color: var(--nik-accent-600); line-height: 1.2; }
.nik-stat__label { font-size: 11.5px; color: var(--nik-text-soft); white-space: normal; overflow-wrap: anywhere; }

/* ---------------- Trust strip ---------------- */
.nik-trust { background: var(--nik-bg-soft); border-bottom: 1px solid var(--nik-border); }
.nik-trust__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.nik-trust__item {
	display: flex; align-items: center; gap: 12px;
	padding: 18px 20px; border-inline-start: 1px solid var(--nik-border);
}
.nik-trust__item:first-child { border-inline-start: 0; }
.nik-trust__icon {
	display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
	border-radius: 12px; color: var(--nik-primary);
	background: linear-gradient(135deg, rgba(11,28,69,.08), rgba(255,153,0,.12));
	border: 1px solid var(--nik-border);
	transition: color .25s ease, background .25s ease, transform .25s ease;
}
.nik-trust__item:hover .nik-trust__icon {
	color: var(--nik-accent-600); transform: translateY(-2px);
	background: linear-gradient(135deg, rgba(255,153,0,.16), rgba(11,28,69,.08));
}
/* Uploaded image/SVG: drop the coloured chip (no square background/border). The 42px
   box is kept so the layout stays put; the image fits inside it. */
.nik-trust__icon--img,
.nik-trust__item:hover .nik-trust__icon--img {
	background: none; border: 0; border-radius: 0;
}
.nik-trust__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nik-trust__title { display: block; font-size: 13.5px; font-weight: 700; color: var(--nik-text); }
.nik-trust__sub { display: block; font-size: 12px; color: var(--nik-text-soft); }

/* ---------------- Brand card (modern monogram / logo) ---------------- */
.nik-brand-card {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background: #fff; border: 1px solid var(--nik-border);
	border-radius: 16px; padding: 20px 14px; min-height: 150px; text-align: center;
	transition: border-color .22s, transform .22s;
}
.nik-brand-card:hover {
	border-color: var(--nik-accent);
	transform: translateY(-4px);
}
.nik-brand-card__logo {
	width: 76px; height: 76px; aspect-ratio: 1; flex-shrink: 0;
	display: grid; place-items: center; overflow: hidden;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--nik-border);
	transition: transform .25s ease;
}
.nik-brand-card:hover .nik-brand-card__logo { transform: scale(1.05); }
.nik-brand-card__logo img {
	display: block; width: 100%; height: 100%;
	max-width: none; max-height: none;
	object-fit: contain; object-position: 50% 50%;
	padding: 6px; margin: 0;
}
.nik-brand-card__monogram {
	font-size: 22px; font-weight: 800; letter-spacing: .02em;
	background: linear-gradient(135deg, var(--nik-primary-500), var(--nik-primary));
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--nik-primary);
	direction: ltr;
}
.nik-brand-card__name { font-size: 13.5px; font-weight: 700; color: var(--nik-text); line-height: 1.5; }
.nik-brand-card__count { font-size: 11.5px; color: var(--nik-text-soft); }

/* ---------------- Category card (modern image) ---------------- */
.nik-cat-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--nik-border);
	border-radius: 16px; overflow: hidden; min-height: 0;
	position: relative; isolation: isolate;
	transition: border-color .22s, transform .22s;
}
.nik-cat-card:hover {
	border-color: var(--nik-accent);
	transform: translateY(-4px);
}
.nik-cat-card__media {
	position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
	background: var(--nik-bg-soft);
}
.nik-cat-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.nik-cat-card:hover .nik-cat-card__media img { transform: scale(1.08); }
/* Single-tone gradient halo so the image reads as one premium tile. */
.nik-cat-card__media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,28,69,0) 35%, rgba(11,28,69,.55) 100%);
	opacity: .9; transition: opacity .25s ease;
}
.nik-cat-card:hover .nik-cat-card__media::after { opacity: 1; }
/* Monogram fallback when a category has no image */
.nik-cat-card__monogram {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-size: 40px; font-weight: 800; color: #fff; opacity: .9;
	background: linear-gradient(135deg, var(--nik-primary-500), var(--nik-primary));
}
.nik-cat-card__body {
	display: flex; flex-direction: column; gap: 3px;
	padding: 12px 14px; flex: 1;
}
.nik-cat-card__name { font-size: 14.5px; font-weight: 800; color: var(--nik-text); }
.nik-cat-card__count { font-size: 12px; color: var(--nik-text-soft); }
/* Arrow chip overlaid on the image, bottom inline-start */
.nik-cat-card__arrow {
	position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1;
	width: 34px; height: 34px; display: grid; place-items: center;
	border-radius: 10px; color: #fff;
	background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
	backdrop-filter: blur(3px);
	transition: background .2s ease, transform .2s ease, color .2s ease, border-color .2s ease;
}
.nik-cat-card:hover .nik-cat-card__arrow {
	background: var(--nik-accent); border-color: var(--nik-accent); color: #1a1a1a;
	transform: translateX(-2px);
}

/* ---------------- Product card (flat / industrial) ----------------
   No shadows, no shine effects — clean borders and solid fills, suited to
   an industrial catalogue. Footer is a single row: price on one side, a
   compact square add-to-cart button on the other. */
.nik-product {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--nik-border);
	border-radius: var(--nik-radius); overflow: hidden; height: 100%;
	position: relative;
	transition: border-color .18s;
}
.nik-product:hover { border-color: var(--nik-primary-500); }

.nik-product__media {
	position: relative; display: grid; place-items: center;
	aspect-ratio: 1 / 1; overflow: hidden;
	background: #ffffff;
	border-bottom: 1px solid var(--nik-border);
	/* Breathing room so the product is shown "from a little further back"
	   (contain, not cover) and never touches the edges. Larger padding pulls the
	   product visually back, away from the card edges. */
	padding: clamp(18px, 13%, 40px);
}
.nik-product__media img {
	width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.nik-product__badge {
	position: absolute; top: 10px; inset-inline-end: 10px; z-index: 1;
	font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: var(--nik-radius-sm);
	line-height: 1;
}
.nik-product__badge--sale { background: var(--nik-accent); color: #1a1a1a; }
.nik-product__badge--out  { background: var(--nik-text-faint); color: #fff; }

.nik-product__body { padding: 13px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.nik-product__brand {
	align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--nik-text-soft);
}
.nik-product__name { font-size: 13.5px; font-weight: 700; line-height: 1.65; margin: 0; }
.nik-product__name a {
	color: var(--nik-text); display: -webkit-box;
	-webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em;
}
.nik-product__name a:hover { color: var(--nik-accent-600); }

/* Footer: price (start) + compact cart button (end), one row. */
.nik-product__foot {
	margin-top: auto; padding-top: 11px; border-top: 1px solid var(--nik-border);
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nik-product__price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nik-product__price-now { font-size: 16.5px; font-weight: 800; color: var(--nik-primary); white-space: nowrap; }
.nik-product__price-old {
	font-size: 12px; font-weight: 600; color: var(--nik-text-soft);
	text-decoration: line-through; text-decoration-color: var(--nik-accent);
	text-decoration-thickness: 1.5px; white-space: nowrap; order: -1;
}
.nik-product__price-call { font-size: 14px; font-weight: 700; color: var(--nik-text-soft); }
.nik-product__price .woocommerce-Price-amount { white-space: nowrap; }
.nik-product__price .woocommerce-Price-currencySymbol { font-size: .8em; font-weight: 700; color: var(--nik-text-soft); margin-inline-start: 2px; }
/* WooCommerce wraps range prices in <del>/<ins>; tame them to match. */
.nik-product__price del { color: var(--nik-text-soft); text-decoration: line-through; text-decoration-color: var(--nik-accent); }
.nik-product__price ins { text-decoration: none; }

/* Compact square add-to-cart button — flat orange, no shadow/shine. */
.nik-product__cart {
	flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	width: 42px; height: 42px; padding: 0; border-radius: var(--nik-radius-sm);
	font-size: 13px; font-weight: 700; cursor: pointer;
	color: #1a1a1a; border: 1px solid var(--nik-accent);
	background: var(--nik-accent);
	transition: background .15s, border-color .15s, color .15s;
}
.nik-product__cart:hover { background: var(--nik-accent-600); border-color: var(--nik-accent-600); color: #1a1a1a; }
.nik-product__cart:active { background: var(--nik-accent-600); }
.nik-product__cart-icon { flex-shrink: 0; }

/* Call-for-price card: keep «تماس بگیرید» on one readable line. The extra
   specificity also prevents WooCommerce/archive rules shrinking it to a square. */
.nik-product__foot .nik-product__cart.nik-call-btn--card {
	width: auto; min-width: 112px; height: 40px; padding: 0 11px; gap: 6px;
	color: #1a1a1a; background: var(--nik-accent); border-color: var(--nik-accent);
	font-size: 12.5px; font-weight: 800; line-height: 1;
}
.nik-product__foot .nik-product__cart.nik-call-btn--card:hover {
	color: #1a1a1a; background: var(--nik-accent-600); border-color: var(--nik-accent-600);
}
.nik-call-btn--card svg { width: 16px; height: 16px; flex-shrink: 0; }
.nik-call-btn--card .nik-call-btn__text { display: block; white-space: nowrap; line-height: 1; }

/* "view product" fallback for non-purchasable items: outlined, auto width. */
.nik-product__cart--view {
	width: auto; padding: 0 14px; background: #fff; color: var(--nik-primary);
	border: 1px solid var(--nik-border);
}
.nik-product__cart--view .nik-product__cart-text { position: static; }
.nik-product__cart--view:hover { background: var(--nik-bg-soft); color: var(--nik-primary); border-color: var(--nik-primary); }

/* WooCommerce AJAX add-to-cart states. The mini-cart drawer opening is the
   feedback now, so the button keeps its plain orange look after a successful
   add (no green "added" state, no injected ✓). */
.nik-product__cart.loading { opacity: .6; pointer-events: none; }
.nik-product__cart.added::after { content: none; display: none; }
/* Hide WooCommerce's auto-injected "View cart" link; the card stays compact. */
.nik-product__foot .added_to_cart { display: none; }

/* On narrow viewports (two-column grid on small phones) the price can crowd the
   fixed-width cart button. Keep them side by side; drop the currency unit
   ("تومان") onto its own line under the number and shrink the type a touch so
   the amount fits on one line instead of wrapping below the button. */
@media (max-width: 430px) {
	.nik-product__foot { gap: 8px; }
	.nik-product__foot--call { align-items: stretch; flex-direction: column; }
	.nik-product__foot--call .nik-product__price { align-items: center; }
	.nik-product__foot .nik-product__cart.nik-call-btn--card { width: 100%; min-width: 0; }
	.nik-product__price-now { font-size: 14.5px; }
	.nik-product__price-old { font-size: 10.5px; }
	/* wc_price() renders the amount as <span class="…amount"><bdi>NUMBER
	   <span class="…currencySymbol">تومان</span></bdi></span>, so stack on the
	   <bdi> (the actual flex parent of number + unit). */
	.nik-product__price .woocommerce-Price-amount,
	.nik-product__price .woocommerce-Price-amount bdi {
		display: inline-flex; flex-direction: column; line-height: 1.15;
	}
	.nik-product__price .woocommerce-Price-currencySymbol {
		font-size: .68em; font-weight: 600; color: var(--nik-text-faint); margin: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nik-product, .nik-product__cart { transition: none; }
	.nik-hero__bg-slide { transition: none; }
}

/* ---------------- Special offers band (Digikala-style, orange) ----------------
   A pinned feature product (with a countdown) on the start side, beside a
   horizontal carousel of the remaining deals. Flat orange band, no shadows. */
.nik-deals { padding-block: 32px; }
.nik-deals__band {
	display: grid; grid-template-columns: 248px minmax(0, 1fr);
	background: linear-gradient(180deg, var(--nik-deal) 0%, var(--nik-deal-600) 100%);
	border-radius: 14px; overflow: hidden;
}

/* --- Feature column (start) --- */
.nik-deals__feature-col {
	display: flex; flex-direction: column; gap: 12px;
	padding: 18px 16px; color: #fff;
}
.nik-deals__brand { display: flex; align-items: center; gap: 9px; }
.nik-deals__brand-bolt {
	display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
	border-radius: 9px; background: rgba(255,255,255,.2); color: #fff;
}
.nik-deals__brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.nik-deals__brand-title { font-size: 17px; font-weight: 800; color: #fff; }
.nik-deals__brand-sub { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.85); }

.nik-deals__feature {
	display: flex; flex-direction: column; gap: 9px;
	background: #fff; border-radius: var(--nik-radius); padding: 14px; color: var(--nik-text);
}
.nik-deals__feature-media {
	aspect-ratio: 1/1; background: #fff; border-radius: var(--nik-radius-sm);
	display: grid; place-items: center; overflow: hidden;
}
.nik-deals__feature-media img { width: 100%; height: 100%; object-fit: contain; }
.nik-deals__feature-name {
	font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--nik-text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nik-deals__feature-price { font-size: 16px; font-weight: 800; color: var(--nik-primary); }
.nik-deals__feature-price del { color: var(--nik-text-soft); font-weight: 500; font-size: 12px; text-decoration-color: var(--nik-deal); margin-inline-start: 6px; }
.nik-deals__feature-price ins { text-decoration: none; }

/* --- Countdown timer --- */
.nik-deals__timer { display: flex; flex-direction: column; gap: 7px; align-items: center; }
.nik-deals__timer-label { font-size: 12px; font-weight: 700; color: #fff; }
.nik-deals__timer-clock { display: flex; align-items: center; gap: 5px; direction: ltr; }
.nik-deals__timer-unit {
	display: grid; place-items: center; min-width: 38px; padding: 5px 4px;
	background: #fff; border-radius: var(--nik-radius-sm);
}
.nik-deals__timer-unit b { font-size: 17px; font-weight: 800; color: var(--nik-deal); font-variant-numeric: tabular-nums; }
.nik-deals__timer-colon { font-size: 16px; font-weight: 800; color: #fff; }

.nik-deals__all {
	margin-top: 2px; text-align: center; color: #fff; font-size: 12.5px; font-weight: 700;
	padding: 9px; border-radius: var(--nik-radius-sm);
	border: 1px solid rgba(255,255,255,.55);
	transition: background .15s, color .15s;
}
.nik-deals__all:hover { background: #fff; color: var(--nik-deal); }

/* --- Carousel column (end) --- */
/* Vertical flex so the carousel fills the height (matching the feature column)
   and the text footer sits at the bottom — no empty gap below the cards. */
.nik-deals__carousel-col {
	background: var(--nik-bg);
	margin: 6px; border-radius: 10px; padding: 12px 10px 10px;
	min-width: 0;
	display: flex; flex-direction: column;
}
/* Wrapper so the expiry overlay can cover only the carousel, not the strip. */
.nik-deals__carousel-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nik-deals__carousel {
	position: relative; margin: 0; flex: 1;
	display: flex; flex-direction: column; justify-content: flex-start;
}
.nik-deals__carousel .nik-carousel__track { align-items: stretch; }

/* --- Expiry overlay (fixed-date offers that have ended) --- */
.nik-deals__expired {
	position: absolute; inset: 0; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	padding: 16px; text-align: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .55);
	backdrop-filter: blur(7px) saturate(120%);
	-webkit-backdrop-filter: blur(7px) saturate(120%);
	border: 1px solid rgba(255, 255, 255, .6);
	animation: nik-deals-fade .25s ease both;
}
.nik-deals__expired[hidden] { display: none; }
.nik-deals__expired-box {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 18px 22px; max-width: 360px;
	background: rgba(255, 255, 255, .82);
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}
.nik-deals__expired-icon {
	display: grid; place-items: center; width: 56px; height: 56px;
	border-radius: 50%; color: var(--nik-accent-600);
	background: rgba(255, 138, 0, .12);
}
.nik-deals__expired-text { margin: 0; font-size: 15px; font-weight: 800; color: var(--nik-text); line-height: 1.7; }
@keyframes nik-deals-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nik-deals__expired { animation: none; } }

/* Configurable fast-shipping icon (replaces the default truck SVG). */
.nik-deals__foot-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Control strip below the carousel: arrow — promo banner — arrow.
   carousel.js mounts the two arrows at the two ends (see data-carousel-controls)
   and the banner fills the middle. */
.nik-deals__controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}
.nik-deals__controls .nik-carousel__nav--strip {
	position: static;
	flex: 0 0 auto;
	transform: none;
}
/* The arrows in the strip are always visible; disabled just dims them so the
   layout (arrow | banner | arrow) never collapses. */
.nik-deals__controls .nik-carousel__nav--strip.is-disabled {
	opacity: .3;
	pointer-events: none;
}

/* Promo banner: fills the space between the arrows, fixed height to match them. */
.nik-deals__promo {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	border-radius: var(--nik-radius-sm);
	overflow: hidden;
	display: block;
	background: var(--nik-bg-soft);
}
.nik-deals__promo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Empty-state placeholder shown until the admin sets a banner. */
.nik-deals__promo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px dashed var(--nik-border);
	background: var(--nik-bg-soft);
	color: var(--nik-text-faint);
	cursor: default;
}
.nik-deals__promo-ph {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
}

.nik-deals__slide {
	flex: 0 0 auto;
	/* Show ~4 cards on desktop; the carousel handles scroll/drag. */
	width: calc((100% - 3 * var(--nik-gap)) / 4);
	min-width: 180px;
}

/* Text footer fills the remaining height and balances the column. */
.nik-deals__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--nik-border);
	flex-wrap: wrap;
}
.nik-deals__foot-note {
	display: flex; align-items: center; gap: 7px; margin: 0;
	font-size: 12.5px; font-weight: 600; color: var(--nik-text-soft);
}
.nik-deals__foot-note svg { color: var(--nik-accent-600); flex-shrink: 0; }
.nik-deals__foot-hint { font-size: 11.5px; color: var(--nik-text-faint); }

@media (max-width: 1100px) {
	.nik-deals__slide { width: calc((100% - 2 * var(--nik-gap)) / 3); }
}
@media (max-width: 860px) {
	.nik-deals__band { grid-template-columns: 1fr; }
	.nik-deals__feature-col { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand timer" "feature feature" "all all"; gap: 12px 14px; align-items: center; }
	.nik-deals__brand { grid-area: brand; }
	.nik-deals__timer { grid-area: timer; align-items: flex-end; }
	.nik-deals__feature { grid-area: feature; flex-direction: row; align-items: center; }
	.nik-deals__feature-media { width: 84px; flex-shrink: 0; }
	.nik-deals__feature-name { flex: 1; }
	.nik-deals__all { grid-area: all; }
	.nik-deals__slide { width: calc((100% - var(--nik-gap)) / 2.2); }
}
@media (max-width: 560px) {
	.nik-deals__feature-col { grid-template-columns: 1fr; grid-template-areas: "brand" "timer" "feature" "all"; }
	.nik-deals__timer { align-items: center; }
	.nik-deals__slide { width: 70%; }
}

/* ---------------- CTA banners ---------------- */
.nik-cta {
	display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.nik-cta__card {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: auto 1fr auto; align-items: center;
	gap: 18px; padding: 26px 28px; border-radius: 16px;
	color: #fff; text-decoration: none;
	box-shadow: 0 10px 30px -12px rgba(11, 28, 69, .35);
	transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.nik-cta__card--consult {
	background: linear-gradient(135deg, var(--nik-primary) 0%, var(--nik-primary-500) 55%, #2a57a8 100%);
}
.nik-cta__card--quote {
	background: linear-gradient(135deg, #b45309 0%, var(--nik-accent-600) 55%, var(--nik-accent) 100%);
	box-shadow: 0 10px 30px -12px rgba(255, 153, 0, .45);
}
.nik-cta__card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -14px rgba(11, 28, 69, .45); color: #fff; }
.nik-cta__card--quote:hover { box-shadow: 0 20px 44px -14px rgba(255, 153, 0, .55); }
/* Image background: dark overlay so the white copy stays legible over any photo. */
.nik-cta__card--img::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(135deg, rgba(11,28,69,.72), rgba(11,28,69,.45));
}

/* Decorative moving glow */
.nik-cta__glow {
	position: absolute; inset-block-start: -60%; inset-inline-end: -20%;
	width: 280px; height: 280px; z-index: -1; pointer-events: none;
	background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
	transition: transform .5s ease, opacity .5s ease; opacity: .8;
}
.nik-cta__card:hover .nik-cta__glow { transform: translate(-30px, 30px) scale(1.15); opacity: 1; }

.nik-cta__icon {
	display: grid; place-items: center; width: 58px; height: 58px; flex-shrink: 0;
	border-radius: 14px; background: rgba(255, 255, 255, .15);
	backdrop-filter: blur(2px); border: 1px solid rgba(255, 255, 255, .25);
	transition: transform .35s ease, background .35s ease;
}
.nik-cta__card:hover .nik-cta__icon { transform: scale(1.06) rotate(-4deg); background: rgba(255, 255, 255, .24); }
/* Uploaded icon image/SVG: drop the glass chip, show the image inside the 58px box. */
.nik-cta__icon--img,
.nik-cta__card:hover .nik-cta__icon--img {
	background: none; border: 0; backdrop-filter: none;
}
.nik-cta__icon-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nik-cta__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nik-cta__badge {
	align-self: flex-start; font-size: 11px; font-weight: 700; line-height: 1;
	padding: 5px 10px; border-radius: 999px; margin-bottom: 3px;
	background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
}
.nik-cta__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.nik-cta__sub { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .85); }

.nik-cta__action {
	display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
	font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
	transition: background .3s ease, gap .3s ease;
}
.nik-cta__card:hover .nik-cta__action { background: rgba(255, 255, 255, .26); gap: 10px; }
.nik-cta__arrow { transition: transform .3s ease; }
.nik-cta__card:hover .nik-cta__arrow { transform: translateX(4px); }

@media (max-width: 860px) {
	.nik-cta { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
	.nik-cta__card { grid-template-columns: auto 1fr; padding: 20px; }
	.nik-cta__action { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
	.nik-cta__icon { width: 50px; height: 50px; }
	.nik-cta__title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.nik-cta__card, .nik-cta__icon, .nik-cta__glow, .nik-cta__action, .nik-cta__arrow { transition: none; }
	.nik-cta__card:hover { transform: none; }
}

/* ---------------- Experts ---------------- */
/* Keep four-card widths while distributing fewer cards across the full row. */
@media (min-width: 1025px) {
	.nik-experts .nik-grid {
		display: flex; flex-wrap: wrap; justify-content: space-between;
		gap: var(--nik-gap);
	}
	.nik-experts .nik-expert {
		flex: 0 0 calc((100% - 3 * var(--nik-gap)) / 4);
	}
}
/* The first advisor is the CEO; keep that card on its own row. */
@media (max-width: 1024px) {
	.nik-experts .nik-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nik-experts .nik-expert--0 { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.nik-experts .nik-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nik-expert {
	background: var(--nik-bg-soft); border: 1px solid var(--nik-border);
	border-radius: var(--nik-radius); padding: 20px 14px; text-align: center;
}
.nik-expert__avatar {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px;
	background: linear-gradient(135deg, var(--nik-primary-500), var(--nik-primary));
	overflow: hidden;
}
.nik-expert__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nik-expert__name { display: block; font-size: 14px; font-weight: 700; color: var(--nik-text); }
.nik-expert__role { display: block; font-size: 12px; color: var(--nik-text-soft); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	/* Single column: text on top, then the showcase centred with stats as a row. */
	.nik-hero__inner {
		padding-block: 40px; min-height: 0;
		grid-template-columns: 1fr; gap: 28px;
	}
	.nik-hero__content { max-width: none; }
	/* Centre the showcase + stats column so the slider isn't pushed to one side. */
	.nik-hero__media { flex-direction: column-reverse; align-items: center; gap: 24px; }
	/* Stack the slide indicator UNDER the stage as a horizontal row so the ticks
	   never overlap the product image on narrow screens, and centre the block. */
	.nik-hero__showcase {
		width: clamp(200px, 70vw, 300px); margin-inline: auto;
		grid-template-columns: 1fr;
		grid-template-areas: "stage" "ticks";
		gap: 12px;
	}
	.nik-hero__ticks { flex-direction: row; }
	/* Each tick is now a horizontal dash; the active one grows in width, and the
	   forward arrowhead (which pointed sideways at the image) is dropped here. */
	.nik-hero__tick { width: 24px; height: 14px; }
	.nik-hero__tick::before { width: 18px; height: 4px; }
	.nik-hero__tick.is-active::before { width: 26px; height: 5px; }
	.nik-hero__tick.is-active::after { display: none; }
	/* Stats become an in-flow row under the showcase — always three across, no wrap. */
	.nik-hero__stats {
		flex-direction: row; flex-wrap: nowrap; justify-content: center;
		gap: 12px; max-width: none; width: 100%; flex: 0 0 auto;
	}
	.nik-stat {
		text-align: center; min-width: 0; flex: 1 1 0;
		padding: 12px 6px; box-shadow: 0 2px 12px rgba(11,28,69,.06);
	}
	.nik-trust__grid { grid-template-columns: 1fr 1fr; }
	.nik-trust__item:nth-child(odd) { border-inline-start: 0; }
}
@media (max-width: 720px) {
	/* Match the polished 2×2 benefit cards used on the mobile product page. */
	.nik-trust { padding-block: 18px; background: transparent; border-bottom: 0; }
	.nik-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
	.nik-trust__item,
	.nik-trust__item:nth-child(odd),
	.nik-trust__item:nth-child(n+3) {
		min-width: 0; min-height: 88px; padding: 12px 10px;
		gap: 9px; border: 1px solid var(--nik-border); border-radius: 13px;
		background: linear-gradient(145deg, #fff 30%, rgba(255,153,0,.045) 100%);
		box-shadow: 0 8px 22px -18px rgba(11,28,69,.55);
	}
	.nik-trust__icon {
		width: 38px; height: 38px; flex: 0 0 38px;
		border-radius: 11px;
	}
	.nik-trust__icon--img,
	.nik-trust__item:hover .nik-trust__icon--img {
		background: #fff; border: 1px solid var(--nik-border); border-radius: 11px;
	}
	.nik-trust__img { width: 28px; height: 28px; margin: auto; }
	.nik-trust__text { min-width: 0; line-height: 1.45; }
	.nik-trust__title { font-size: 12px; line-height: 1.55; font-weight: 800; }
	.nik-trust__sub { font-size: 10.5px; line-height: 1.5; }
}
@media (max-width: 520px) {
	.nik-trust__grid { gap: 7px; }
	.nik-trust__item,
	.nik-trust__item:nth-child(odd),
	.nik-trust__item:nth-child(n+3) { min-height: 84px; padding: 10px 8px; gap: 7px; }
	.nik-trust__icon { width: 34px; height: 34px; flex-basis: 34px; }
	.nik-trust__img { width: 25px; height: 25px; }
	.nik-trust__title { font-size: 11.5px; }
	.nik-trust__sub { font-size: 10px; }
	/* Keep the three stat boxes side-by-side and readable on narrow phones. */
	.nik-hero__stats { gap: 6px; }
	.nik-stat { padding: 12px 4px; }
	.nik-stat__num { font-size: 18px; }
	.nik-stat__label { font-size: 10.5px; white-space: normal; line-height: 1.3; }
}

/* =============================================================
   Tabbed product carousels (.nik-tabbed-carousels)
   -------------------------------------------------------------
   One home section that merges «جدیدترین محصولات» with the admin-
   configured custom carousels. The tab bar sits where a section
   head normally would; clicking a tab swaps the carousel below.
   Markup reuses .nik-tabs but is styled standalone here because
   product.css (which styles .nik-tabs on the PDP) isn't loaded on
   the home page.
   ============================================================= */
.nik-carousel-tabs .nik-tabs__nav {
	display: flex; gap: 8px; margin-bottom: 22px;
	overflow-x: auto; scrollbar-width: none;
}
.nik-carousel-tabs .nik-tabs__nav::-webkit-scrollbar { display: none; }
.nik-carousel-tabs .nik-tabs__btn {
	position: relative; flex-shrink: 0; cursor: pointer; white-space: nowrap;
	background: var(--nik-bg-soft); border: 1px solid var(--nik-border);
	border-radius: 999px; padding: 10px 20px; font: inherit;
	font-size: 15px; font-weight: 700; color: var(--nik-text-soft);
	transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nik-carousel-tabs .nik-tabs__btn:hover { color: var(--nik-primary); border-color: var(--nik-primary); }
.nik-carousel-tabs .nik-tabs__btn.is-active {
	color: #fff; background: var(--nik-primary); border-color: var(--nik-primary);
	box-shadow: 0 8px 18px -10px rgba(11,28,69,.55);
}
.nik-carousel-tabs .nik-tabs__panel { animation: nik-cartab-in .25s ease; }
.nik-carousel-tabs .nik-tabs__panel[hidden] { display: none; }
.nik-carousel-tabs__lazy {
	display: grid; place-items: center; min-height: 330px;
	border: 1px dashed var(--nik-border); border-radius: 16px;
	background: linear-gradient(135deg, var(--nik-bg-soft), #fff);
	color: var(--nik-text-soft); font-size: 13px; text-align: center;
}
.nik-carousel-tabs__lazy.is-loading::before {
	content: ''; width: 24px; height: 24px; margin-inline-end: 9px;
	border: 3px solid var(--nik-border); border-top-color: var(--nik-accent);
	border-radius: 50%; animation: nik-carousel-lazy-spin .75s linear infinite;
}
.nik-carousel-tabs__lazy.is-loading { display: flex; align-items: center; justify-content: center; }
.nik-carousel-tabs__lazy.has-error { color: #b42318; border-color: rgba(180,35,24,.3); }
.nik-carousel-tabs__empty { min-height: 160px; display: grid; place-items: center; color: var(--nik-text-soft); }

/* Extra sections contain no product-card DOM until they approach the viewport. */
.nik-extra-carousel-section { content-visibility: auto; contain-intrinsic-size: auto 470px; }

@keyframes nik-carousel-lazy-spin { to { transform: rotate(360deg); } }

/* The prev/next controls live in a per-panel head, but visually they belong on
   the SAME row as the tab bar (tabs on the inline-start, arrows on the
   inline-end). Pin the active panel's head over the tab-bar row instead of
   letting it push the carousel down. */
.nik-carousel-tabs { position: relative; }
.nik-carousel-tabs .nik-tabs__nav { padding-inline-end: 100px; } /* keep tabs clear of the arrows */
.nik-carousel-tabs__controls-host {
	position: absolute; top: 0; inset-inline-end: 0;
	display: flex; align-items: center; min-height: 0; margin: 0;
	height: 40px; /* ~ tab-bar height, so the arrows sit centered on that row */
}
@keyframes nik-cartab-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
	.nik-carousel-tabs .nik-tabs__nav { gap: 6px; margin-bottom: 16px; }
	.nik-carousel-tabs .nik-tabs__btn { padding: 9px 16px; font-size: 14px; }
	/* Controls are hidden on touch (swipe) — reclaim the reserved space. */
	.nik-carousel-tabs .nik-tabs__nav { padding-inline-end: 0; }
	.nik-carousel-tabs__controls-host { display: none; }
	.nik-carousel-tabs__lazy { min-height: 285px; }
}

@media (prefers-reduced-motion: reduce) {
	.nik-carousel-tabs .nik-tabs__panel { animation: none; }
	.nik-carousel-tabs__lazy.is-loading::before { animation: none; }
}

/* POST fallback for product-card and sticky add-to-cart controls. */
.nik-cart-action { display: inline-flex; flex: 0 0 auto; margin: 0; padding: 0; border: 0; min-width: 0; }
.nik-cart-action .added_to_cart { display: none !important; }
