/* =============================================================================
   marketplace.css — project-local component styles for InventaCloud-Marketplace.
   Additive only.  No IC token / color redefinitions; everything here is layout
   and pattern CSS for components that don't exist in the shared ic-* stack
   (vendor / catalog cards, items thumbnail strip, heart-favorite toggle, mode
   tabs, etc).
   ============================================================================= */

/* ---------- Mode tabs (Browse: Catalogs | Vendors) ---------------------- */
.ic-mode-tabs {
	display: inline-flex;
	gap: .25rem;
	padding: .25rem;
	border-radius: 999px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
}
.ic-mode-tab {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1rem;
	border-radius: 999px;
	color: var(--ic-body-color, #e8eaf2);
	background: transparent;
	font-size: .85rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: all 160ms var(--ic-easing, cubic-bezier(.2,.8,.2,1));
}
.ic-mode-tab:hover { background: rgba(255,255,255,.06); }
.ic-mode-tab.is-active {
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, #6f42c1 22%, transparent);
}
.ic-mode-tab.is-active i { color: #fff; }

/* ---------- Card wrap (positioning context for the heart) -------------- */
.ic-card-wrap { display: flex; }
.ic-card-wrap > a { width: 100%; }

/* ---------- Vendor / catalog card surface -------------------------------
   Hover treatment: no movement (translateY removed — the lift was visually
   noisy in dense grids and worse on touch where there's no hover). Instead,
   a brand-purple animated glow that breathes at ~2.4s. The pulse runs
   only while hovered so neighbouring cards stay calm.

   Implementation note: the glow lives on its own keyframe so it can stack
   with the existing .ic-card-hover-glow base ring without fighting it —
   we drive box-shadow + border-color from this rule and let the animation
   modulate the intensity. */
.ic-vendor-card {
	transition: border-color 200ms var(--ic-easing, ease),
	            box-shadow   200ms var(--ic-easing, ease);
	display: flex;
}
.ic-vendor-card .card-body { display: flex; flex-direction: column; }
.ic-vendor-card:hover {
	border-color: color-mix(in srgb, var(--ic-primary, #3874ff) 55%, var(--ic-border-color, rgba(255,255,255,.08)));
	animation: ic-card-glow-pulse 2.4s var(--ic-easing, ease-in-out) infinite;
}

@keyframes ic-card-glow-pulse {
	0%, 100% {
		box-shadow:
			0 0 0 1px color-mix(in srgb, var(--ic-primary, #3874ff) 40%, transparent),
			0 0 24px color-mix(in srgb, var(--ic-primary, #3874ff) 28%, transparent),
			0 8px 28px rgba(0, 0, 0, 0.42);
	}
	50% {
		box-shadow:
			0 0 0 1px color-mix(in srgb, var(--ic-primary, #3874ff) 65%, transparent),
			0 0 44px color-mix(in srgb, var(--ic-primary, #3874ff) 50%, transparent),
			0 10px 32px rgba(0, 0, 0, 0.5);
	}
}

/* Honor reduced-motion: keep the glow but skip the breathing pulse so
   anyone with motion-sensitivity preferences gets a static brighter
   highlight instead of an animation. */
@media (prefers-reduced-motion: reduce) {
	.ic-vendor-card:hover {
		animation: none;
		box-shadow:
			0 0 0 1px color-mix(in srgb, var(--ic-primary, #3874ff) 55%, transparent),
			0 0 36px color-mix(in srgb, var(--ic-primary, #3874ff) 38%, transparent),
			0 8px 28px rgba(0, 0, 0, 0.45);
	}
}

.ic-vendor-card-link { color: inherit; text-decoration: none; }

/* Logo "chip" frame — neutral surface + padding + object-fit: contain so
   square wordmarks, wide horizontal logos, and tall vertical marks all fit
   without cropping. The initials chip (gradient) is the fallback when no
   logo URL exists; it stays prominent and on-brand. */
.ic-vendor-card__logo-frame,
.ic-vendor-card__initials {
	width: 72px; height: 72px;
	flex-shrink: 0;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ic-vendor-card__logo-frame {
	background: #fff;
	border: 1px solid rgba(255,255,255,.12);
	padding: 4px;
	overflow: hidden;
}
.ic-vendor-card__logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.ic-vendor-card__initials {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .04em;
	color: #fff;
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
}

/* Mini logo / initials used inside the catalog card's vendor row. Same
   chip-frame pattern at 26x26. */
.ic-mini-logo-frame,
.ic-mini-initials {
	width: 32px; height: 32px;
	flex-shrink: 0;
	border-radius: 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.ic-mini-logo-frame {
	background: #fff;
	border: 1px solid rgba(255,255,255,.12);
	padding: 3px;
	overflow: hidden;
}
.ic-mini-logo-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.ic-mini-initials {
	font-weight: 600;
	font-size: 10px;
	letter-spacing: .02em;
	color: #fff;
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
}

.ic-vendor-card__cta {
	width: 32px; height: 32px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,.04);
	color: var(--ic-body-color, #e8eaf2);
	font-size: 12px;
	transition: background 160ms var(--ic-easing, ease),
	            transform 160ms var(--ic-easing, ease),
	            color 160ms var(--ic-easing, ease);
}
.ic-vendor-card:hover .ic-vendor-card__cta {
	background: #6f42c1;
	color: #fff;
	transform: translateX(2px);
}

.ic-line-clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ic-line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Heart / favorite toggle ------------------------------------- */
.ic-fav-btn {
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 2;
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.10);
	background: color-mix(in srgb, var(--ic-body-bg, #0b0e16) 80%, #000);
	color: var(--ic-body-secondary, #94a3b8);
	font-size: 14px;
	cursor: pointer;
	transition: all 160ms var(--ic-easing, cubic-bezier(.2,.8,.2,1));
	-webkit-tap-highlight-color: transparent;
}
.ic-fav-btn:hover {
	border-color: color-mix(in srgb, #ef4488 50%, transparent);
	color: #ef4488;
	transform: scale(1.06);
}
.ic-fav-btn.is-favorited {
	background: color-mix(in srgb, #ef4488 18%, transparent);
	border-color: color-mix(in srgb, #ef4488 50%, transparent);
	color: #ef4488;
}
.ic-fav-btn.is-favorited:hover { color: #fb5e9f; }
.ic-fav-btn:disabled { opacity: .5; cursor: not-allowed; }

@keyframes ic-fav-pulse {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.18); }
	60%  { transform: scale(.96); }
	100% { transform: scale(1); }
}
.ic-fav-btn.is-pulsing { animation: ic-fav-pulse 320ms var(--ic-easing, ease-out); }

/* ---------- Catalog card item thumbnail strip --------------------------- */
.ic-items-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: .5rem;
}
.ic-items-strip--empty {
	display: flex;
	padding: .75rem;
	border-radius: .5rem;
	background: rgba(255,255,255,.025);
	border: 1px dashed rgba(255,255,255,.08);
}
.ic-item-thumb {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .25rem;
	min-width: 0;
}
.ic-item-thumb img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: .5rem;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
}
.ic-item-thumb__placeholder {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	border-radius: .5rem;
	background: rgba(255,255,255,.025);
	border: 1px solid rgba(255,255,255,.06);
	color: var(--ic-body-tertiary, rgba(255,255,255,.35));
	font-size: 14px;
}
.ic-item-thumb__label {
	font-size: .68rem;
	color: var(--ic-body-tertiary, rgba(255,255,255,.55));
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Discontinued items — visual treatment so resellers can see what's being
   phased out without ambiguity. Source data flows from the InventaCloud-App
   Discontinued module (see project_discontinued_module). Two states:
   discontinued NOW = red "Discontinued" pill; discontinued in the FUTURE =
   amber "Phasing out" pill (rendered by the view based on date comparison). */
.ic-item-thumb--discontinued img {
	opacity: 0.55;
	filter: grayscale(0.4);
}
.ic-item-thumb--discontinued .ic-item-thumb__placeholder {
	opacity: 0.55;
}
.ic-item-thumb__disc-badge {
	position: absolute;
	top: .35rem;
	left: .35rem;
	font-size: .58rem;
	padding: .2rem .5rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	z-index: 2;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ic-item-thumb { position: relative; }

@media (max-width: 991.98px) {
	.ic-items-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ic-items-strip .ic-item-thumb:nth-child(5) { display: none; }
}
@media (max-width: 575.98px) {
	.ic-items-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ic-items-strip .ic-item-thumb:nth-child(n+4) { display: none; }
}

/* ---------- Verified-manufacturer explainer ---------------------------- */
.ic-verified-strip {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--ic-primary, #3874ff) 8%, transparent),
		color-mix(in srgb, #6f42c1 8%, transparent));
	border: 1px solid color-mix(in srgb, var(--ic-primary, #3874ff) 22%, transparent);
}
.ic-verified-icon {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	color: #fff;
	font-size: 16px;
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
	box-shadow: 0 4px 14px color-mix(in srgb, #6f42c1 22%, transparent);
}
.ic-verified-criteria {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}
.ic-verified-criteria__item {
	display: flex;
	gap: .65rem;
}
.ic-verified-criteria__item > i {
	color: var(--ic-success, #22c55e);
	font-size: 14px;
	margin-top: 2px;
	flex-shrink: 0;
}
@media (max-width: 767.98px) {
	.ic-verified-criteria { grid-template-columns: 1fr; gap: .85rem; }
}

/* ---------- Pagination strip (used on /listing/) ------------------------ */
.ic-pagination__list { gap: .25rem; flex-wrap: wrap; justify-content: center; }
.ic-pagination__list .page-link {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px;
	padding: .45rem .7rem;
	border-radius: .5rem;
	border: 1px solid rgba(255,255,255,.10);
	background: rgba(255,255,255,.025);
	color: var(--ic-body-color, #e8eaf2);
	font-size: .85rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: all 140ms var(--ic-easing, ease);
}
.ic-pagination__list .page-link:hover {
	background: rgba(255,255,255,.06);
	border-color: rgba(255,255,255,.18);
	color: #fff;
}
.ic-pagination__list .page-item.active .page-link {
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px color-mix(in srgb, #6f42c1 22%, transparent);
}
.ic-pagination__list .page-item.disabled .page-link {
	opacity: .45;
	cursor: not-allowed;
	background: rgba(255,255,255,.015);
}

/* ---------- Empty state icon (used in /favorites/ + /listing/) ---------- */
.ic-empty-icon {
	width: 64px; height: 64px;
	border-radius: 18px;
	background: rgba(255,255,255,.04);
	display: flex; align-items: center; justify-content: center;
	font-size: 24px;
	color: var(--ic-body-secondary, #94a3b8);
}

/* ---------- Sidebar nav badges (Access Requests count + unread) ---------- */
.ic-nav-badge {
	display: inline-flex;
	align-items: center; justify-content: center;
	min-width: 22px; height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	font-size: .68rem; font-weight: 700;
	line-height: 1;
}
.ic-nav-badge--pending {
	background: color-mix(in srgb, var(--ic-warning, #f5803e) 22%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-warning, #f5803e) 45%, transparent);
	color: var(--ic-warning, #f5803e);
}
.ic-nav-badge--unread {
	background: var(--ic-primary, #3874ff);
	color: #fff;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ic-primary, #3874ff) 25%, transparent);
}

/* ---------- Subtle button variants used across drawer + thread + cards ---------- */
.btn-subtle-success {
	background: color-mix(in srgb, var(--ic-success, #25b003) 15%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-success, #25b003) 35%, transparent);
	color: var(--ic-success, #25b003);
}
.btn-subtle-success:hover {
	background: color-mix(in srgb, var(--ic-success, #25b003) 22%, transparent);
	border-color: color-mix(in srgb, var(--ic-success, #25b003) 55%, transparent);
	color: #fff;
}
.btn-subtle-warning {
	background: color-mix(in srgb, var(--ic-warning, #f5803e) 15%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-warning, #f5803e) 35%, transparent);
	color: var(--ic-warning, #f5803e);
}
.btn-subtle-warning:hover {
	background: color-mix(in srgb, var(--ic-warning, #f5803e) 22%, transparent);
	border-color: color-mix(in srgb, var(--ic-warning, #f5803e) 55%, transparent);
	color: #fff;
}

/* ---------- Subtle alert variants (extends Phoenix base)
   Project rule: text, icon, links, and emphasis inside an alert must read
   in the alert's own variant color so the surface looks intentional rather
   than a desaturated body-text overlay. Strong/links inside lighten further
   for legibility. */
.alert-subtle-success {
	background: color-mix(in srgb, var(--ic-success, #25b003) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-success, #25b003) 30%, transparent);
	color: color-mix(in srgb, var(--ic-success, #25b003) 88%, #fff);
}
.alert-subtle-warning {
	background: color-mix(in srgb, var(--ic-warning, #f5803e) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-warning, #f5803e) 30%, transparent);
	color: color-mix(in srgb, var(--ic-warning, #f5803e) 88%, #fff);
}
.alert-subtle-danger {
	background: color-mix(in srgb, var(--ic-danger, #e63757) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-danger, #e63757) 30%, transparent);
	color: color-mix(in srgb, var(--ic-danger, #e63757) 88%, #fff);
}
.alert-subtle-secondary {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	color: var(--ic-body-color, #e8eaf2);
}
.alert-subtle-primary {
	background: color-mix(in srgb, var(--ic-primary, #3874ff) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-primary, #3874ff) 30%, transparent);
	color: color-mix(in srgb, var(--ic-primary, #3874ff) 92%, #fff);
}

/* Inline emphasis inside alerts uses the brightest end of the variant ramp
   so headlines and links don't drop back to the muted body color. */
.alert-subtle-success strong, .alert-subtle-success a:not(.btn) {
	color: color-mix(in srgb, var(--ic-success, #25b003) 60%, #fff);
}
.alert-subtle-warning strong, .alert-subtle-warning a:not(.btn) {
	color: color-mix(in srgb, var(--ic-warning, #f5803e) 60%, #fff);
}
.alert-subtle-danger strong, .alert-subtle-danger a:not(.btn) {
	color: color-mix(in srgb, var(--ic-danger, #e63757) 60%, #fff);
}
.alert-subtle-primary strong, .alert-subtle-primary a:not(.btn) {
	color: color-mix(in srgb, var(--ic-primary, #3874ff) 60%, #fff);
}

/* ---------- ic-badge variants used by drawer + inbox rows ---------- */
.ic-badge-success {
	background: color-mix(in srgb, var(--ic-success, #25b003) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-success, #25b003) 38%, transparent);
	color: var(--ic-success, #25b003);
}
.ic-badge-warning {
	background: color-mix(in srgb, var(--ic-warning, #f5803e) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-warning, #f5803e) 38%, transparent);
	color: var(--ic-warning, #f5803e);
}
.ic-badge-primary {
	background: color-mix(in srgb, var(--ic-primary, #3874ff) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--ic-primary, #3874ff) 38%, transparent);
	color: #fff;
}

/* ---------- Card type pill (Vendor / Catalog) ---------------------------
   Same brand-purple chip language as the drawer's .ic-offcanvas-pill so
   resellers see a consistent type-identifier whether they're browsing the
   listing or have a drawer open. Smaller scale than the drawer pill since
   it sits inside a card. */
.ic-card-type-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 999px;
	background: color-mix(in srgb, #6f42c1 14%, transparent);
	border: 1px solid color-mix(in srgb, #6f42c1 38%, transparent);
	color: color-mix(in srgb, #b18cff 88%, #fff);
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	width: max-content;
}
.ic-card-type-pill i {
	font-size: .7rem;
	opacity: .9;
}

/* =============================================================================
   Drawer-shared styles — used by both /listing/vendor/ and /listing/catalog/
   chunks. Previously inlined inside vendor.cfm's <style> block which meant
   the catalog drawer (loaded standalone from the listing) had no styling
   for the lightbox / protected preview strip / request modal. Living in the
   shared sheet keeps every drawer surface consistent.
============================================================================= */

/* ---------- Sample-image strip (protected previews) --------------------- */
.ic-items-strip--protected { position: relative; }
.ic-items-strip--protected .ic-item-thumb {
	cursor: zoom-in;
	transition: transform 140ms var(--ic-easing, ease);
}
.ic-items-strip--protected .ic-item-thumb:hover { transform: translateY(-2px); }
.ic-items-strip--protected .ic-item-thumb::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(15,17,22,.55) 100%);
	opacity: 0; transition: opacity 140ms var(--ic-easing, ease);
	border-radius: inherit;
	pointer-events: none;
}
.ic-items-strip--protected .ic-item-thumb:hover::after { opacity: 1; }
.ic-items-strip__stamp {
	position: absolute; right: 6px; bottom: 6px;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(15,17,22,.85);
	border: 1px solid rgba(255,255,255,.10);
	color: var(--ic-body-color, #e8eaf2);
	font-size: .68rem; font-weight: 500;
	display: inline-flex; align-items: center;
	backdrop-filter: blur(4px);
	pointer-events: none;
}

/* ---------- Static (non-anchor) card wrapper ---------------------------- */
.ic-card-static.ic-vendor-card-link { cursor: default; }
.ic-card-static.ic-vendor-card-link .ic-card-hover-glow:hover { box-shadow: none; }

/* ---------- Request-access modal ---------------------------------------- */
.ic-request-modal__vendor { font-weight: 600; }
.ic-request-modal__scope  { color: var(--ic-accent, #38bdf8); }
.ic-text-link             { color: var(--ic-accent, #38bdf8); text-decoration: underline; }

/* ---------- Lightbox (Swiper-powered) -----------------------------------
   Mobile-first: 25px breathing room on every edge at <576px. At sm+ the
   dialog grows to 1100px max with standard 1.5rem margins. The flex chain
   on body/swiper/slide keeps the image inside the dialog without scroll. */
.ic-lightbox .modal-dialog {
	max-width: calc(100vw - 50px);
	max-height: calc(100vh - 50px);
	margin: 25px auto;
}
@media (min-width: 576px) {
	.ic-lightbox .modal-dialog {
		max-width: min(94vw, 1100px);
		max-height: calc(100vh - 3rem);
		margin: 1.5rem auto;
	}
}
.ic-lightbox .modal-content {
	background: linear-gradient(180deg,
		color-mix(in srgb, var(--ic-surface, #0f1116) 96%, transparent) 0%,
		color-mix(in srgb, var(--ic-surface, #0f1116) 92%, transparent) 100%);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--ic-primary, #3874ff) 22%, transparent),
		0 22px 60px rgba(0,0,0,.5),
		0 0 60px color-mix(in srgb, var(--ic-primary, #3874ff) 18%, transparent);
	backdrop-filter: blur(10px);
	max-height: calc(100vh - 50px);
	overflow: hidden;
}
@media (min-width: 576px) {
	.ic-lightbox .modal-content { max-height: calc(100vh - 3rem); }
}
.ic-lightbox .modal-body {
	padding: 0;
	display: flex; align-items: stretch; justify-content: stretch;
	min-height: 0;
	flex: 1 1 auto;
	overflow: hidden;
}
.ic-lightbox__swiper {
	width: 100%;
	flex: 1 1 auto;
	min-height: 0;
}
.ic-lightbox .swiper-slide {
	display: flex; align-items: center; justify-content: center;
	padding: 1.25rem;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
@media (max-width: 575.98px) {
	.ic-lightbox .swiper-slide { padding: 0.5rem; border-radius: 8px; }
}
.ic-lightbox .swiper-slide img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

/* Close button — primary-tinted on hover. */
.ic-lightbox__close {
	position: absolute; top: 12px; right: 12px;
	z-index: 5;
	background: rgba(15,17,22,.65);
	border: 1px solid rgba(255,255,255,.12);
	color: #fff;
	backdrop-filter: blur(6px);
	transition: all 140ms var(--ic-easing, ease);
}
.ic-lightbox__close:hover {
	background: color-mix(in srgb, var(--ic-primary, #3874ff) 22%, rgba(15,17,22,.85));
	border-color: color-mix(in srgb, var(--ic-primary, #3874ff) 55%, transparent);
	color: #fff;
}

/* Swiper nav arrows — purple gradient with white CSS-drawn chevrons. */
.ic-lightbox .swiper-button-prev,
.ic-lightbox .swiper-button-next {
	width: 44px; height: 44px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
	border: 1px solid color-mix(in srgb, #6f42c1 55%, transparent);
	box-shadow: 0 6px 18px color-mix(in srgb, #6f42c1 30%, transparent);
	display: flex; align-items: center; justify-content: center;
	margin-top: -22px;
	transition: all 160ms var(--ic-easing, ease);
}
.ic-lightbox .swiper-button-prev:hover,
.ic-lightbox .swiper-button-next:hover {
	filter: brightness(1.12);
	box-shadow: 0 0 26px color-mix(in srgb, #6f42c1 45%, transparent);
	color: #fff;
}
.ic-lightbox .swiper-button-prev::after,
.ic-lightbox .swiper-button-next::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}
.ic-lightbox .swiper-button-prev::after { transform: rotate(-135deg); margin-left: 4px; }
.ic-lightbox .swiper-button-next::after { transform: rotate(45deg);   margin-right: 4px; }
.ic-lightbox .swiper-button-disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 575.98px) {
	.ic-lightbox .swiper-button-prev,
	.ic-lightbox .swiper-button-next { display: none; }
}

/* Pagination — glass pill, brand-gradient active bullet. */
.ic-lightbox .swiper-pagination {
	bottom: 12px;
	display: inline-flex;
	gap: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(15,17,22,.55);
	border: 1px solid rgba(255,255,255,.08);
	backdrop-filter: blur(6px);
}
.ic-lightbox .swiper-pagination-bullet {
	background: rgba(255,255,255,.45);
	opacity: 1;
	width: 8px; height: 8px;
	transition: all 160ms var(--ic-easing, ease);
}
.ic-lightbox .swiper-pagination-bullet:hover { background: rgba(255,255,255,.75); }
.ic-lightbox .swiper-pagination-bullet-active {
	background: linear-gradient(135deg, var(--ic-primary, #3874ff), #6f42c1);
	width: 22px;
	border-radius: 999px;
	box-shadow: 0 0 12px color-mix(in srgb, var(--ic-primary, #3874ff) 50%, transparent);
}

/* Zoom-mode visual hint when a slide is pinched/double-tap-zoomed. */
.ic-lightbox .swiper-slide-zoomed img {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ic-primary, #3874ff) 35%, transparent);
	border-radius: 4px;
}
