/* Archive pages: campaigns, influencers, events, brands, products */

/* ── Header ────────────────────────────────────────────────────────────── */
.camp-header,
.inf-header,
.event-header,
.brand-header,
.product-header {
	background: var(--surface);
	padding: 4rem 0 3rem;
	margin-bottom: 0;
}

.camp-header__title,
.inf-header__title,
.event-header__title,
.brand-header__title,
.product-header__title {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 1rem;
	color: var(--on-surface);
	letter-spacing: -0.02em;
}

.camp-header__title em,
.inf-header__title em,
.event-header__title em,
.brand-header__title em,
.product-header__title em {
	font-style: italic;
	color: var(--primary);
}

.camp-header__sub,
.inf-header__sub,
.event-header__sub,
.brand-header__sub,
.product-header__sub {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--on-surface-variant);
	max-width: 640px;
}

.immi-inf-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 2.5rem;
}

/* ── Controls (Search + Sort) ──────────────────────────────────────────── */
.camp-controls,
.inf-controls,
.event-controls,
.brand-controls,
.product-controls {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	box-sizing: border-box;
	padding: 0.55rem max(1rem, env(safe-area-inset-right)) 0.85rem max(1rem, env(safe-area-inset-left));
	background: color-mix(in srgb, var(--surface) 88%, white);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(215, 195, 199, 0.5);
	position: sticky;
	top: var(--immi-sticky-nav-offset, 0px);
	z-index: 40;
	box-shadow: 0 6px 28px rgba(153, 65, 90, 0.07);
}

.camp-controls__inner,
.inf-controls__inner,
.event-controls__inner,
.brand-controls__inner,
.product-controls__inner {
	background: var(--surface-container-lowest);
	border: 1px solid rgba(215, 195, 199, 0.35);
	border-radius: var(--radius-pill);
	padding: 0.55rem 0.55rem 0.55rem 1.35rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	box-shadow: 0 4px 20px rgba(153, 65, 90, 0.06);
}

/* Match influencer archive behavior: toolbar pins to viewport top on desktop. */
@media (min-width: 901px) {
	body.post-type-archive-immi_product .immi-nav {
		position: relative;
		top: auto;
		z-index: 2;
	}

	body.post-type-archive-immi_product .product-controls {
		top: 0;
		z-index: 45;
		padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
	}

	body.post-type-archive-immi_brand .immi-nav {
		position: relative;
		top: auto;
		z-index: 2;
	}

	body.post-type-archive-immi_brand .brand-controls {
		top: 0;
		z-index: 45;
		padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
	}

	body.post-type-archive-immi_event .immi-nav {
		position: relative;
		top: auto;
		z-index: 2;
	}

	body.post-type-archive-immi_event .event-controls {
		top: 0;
		z-index: 45;
		padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
	}

	body.post-type-archive-immi_campaign .immi-nav {
		position: relative;
		top: auto;
		z-index: 2;
	}

	body.post-type-archive-immi_campaign .camp-controls {
		top: 0;
		z-index: 45;
		padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
	}
}

.search-field {
	flex: 1;
	min-width: 200px;
	position: relative;
	display: flex;
	align-items: center;
	background: var(--surface-container-lowest);
	border: none;
	border-radius: var(--radius-pill, 999px);
	padding: 0.5rem 1rem;
}

.search-icon {
	color: var(--on-surface-variant);
	margin-right: 0.5rem;
	font-size: 1.1rem;
}

.search-field input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 0.95rem;
	color: var(--on-surface);
	outline: none;
}

.search-field input[type="search"]::placeholder {
	color: var(--on-surface-variant);
}

.result-count {
	font-size: 0.85rem;
	color: var(--on-surface-variant);
	margin: 0;
	white-space: nowrap;
}

.result-count .num {
	font-weight: 700;
	color: var(--on-surface);
}

.filter-select-wrap {
	position: relative;
}

.filter-select-wrap--inline {
	display: inline-block;
}

.filter-select {
	border: 1px solid rgba(217, 192, 196, 0.3);
	border-radius: 0.65rem;
	background: var(--surface-container-lowest);
	color: var(--on-surface);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.5rem 0.8rem;
	cursor: pointer;
	font-family: 'Space Grotesk', sans-serif;
}

.filter-select:hover {
	border-color: rgba(217, 192, 196, 0.5);
	background: var(--surface-container-low);
}

/* ── Layout Grid ───────────────────────────────────────────────────────── */
.camp-layout,
.inf-layout,
.event-layout,
.brand-layout,
.product-layout {
	padding: 3rem 0;
}

/* Pages without a sidebar: single full-width column */
.camp-layout__inner,
.event-layout__inner {
	display: block;
}

/* Pages with a sidebar: sidebar + content two-column grid */
.brand-layout__inner,
.product-layout__inner {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

/*
 * Influencer archive: `.inf-layout__inner` wraps a single `.inf-grid` (sidebar + results live inside it).
 * Do not apply a two-column template here — that would confine `.inf-grid` to the first ~280px track.
 */
.inf-layout__inner {
	display: block;
}

/* Sidebar-less grids fill full width naturally */
.camp-grid,
.event-grid {
	display: grid;
}

/* Sidebar grids occupy the content column */
.inf-grid,
.brand-results,
.product-results {
	min-width: 0;
}

/* ── Sidebar Filters ───────────────────────────────────────────────────── */
.filter-sidebar {
	background: var(--surface-container-lowest);
	border: 1px solid rgba(217, 192, 196, 0.2);
	border-radius: 0.85rem;
	padding: 1.5rem;
	height: fit-content;
	position: sticky;
	top: 100px;
	box-shadow: 0 4px 16px rgba(153, 65, 90, 0.06);
}

.filter-sidebar__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(217, 192, 196, 0.2);
}

.filter-count {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.filter-count__num {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--on-surface);
	line-height: 1;
}

.filter-count__label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--on-surface-variant);
}

.immi-sidebar-clear-btn {
	background: none;
	border: none;
	color: var(--primary);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding: 0;
}

.immi-sidebar-clear-btn:hover {
	color: var(--primary-container);
}

/* ── Filter Sections ───────────────────────────────────────────────────── */
.filter-section {
	margin-bottom: 1.5rem;
}

.filter-section:last-child {
	margin-bottom: 0;
}

.filter-heading {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--on-surface);
	margin: 0 0 0.75rem;
	padding: 0;
}

.filter-heading--row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.filter-unit {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--on-surface-variant);
	text-transform: none;
	letter-spacing: normal;
}

.filter-label-small {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--on-surface-variant);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.35rem;
}

.filter-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.filter-check-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	padding: 0.35rem 0;
	font-size: 0.9rem;
	color: var(--on-surface-variant);
	user-select: none;
}

.filter-check-item input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--primary);
	cursor: pointer;
	flex-shrink: 0;
}

.filter-check-item:hover {
	color: var(--on-surface);
}

.filter-date-inputs {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.filter-input-date {
	width: 100%;
	padding: 0.5rem 0.7rem;
	border: 1px solid rgba(217, 192, 196, 0.3);
	border-radius: 0.55rem;
	background: var(--surface-container-low);
	font-size: 0.85rem;
	color: var(--on-surface);
}

.filter-input-date:focus {
	outline: 2px solid var(--primary);
	outline-offset: 1px;
}

.filter-pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.filter-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	border-radius: 9999px;
	border: 1px solid rgba(217, 192, 196, 0.3);
	background: var(--surface-container-low);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--on-surface-variant);
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-pill:hover {
	background: var(--surface-container);
	border-color: rgba(217, 192, 196, 0.5);
	color: var(--on-surface);
}

.filter-pill.is-active {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--on-primary);
}

.clear-link {
	width: 100%;
	background: none;
	border: none;
	padding: 0.85rem 0;
	margin-top: 1rem;
	border-top: 1px solid rgba(217, 192, 196, 0.2);
	color: var(--primary);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	transition: color 0.2s ease;
}

.clear-link:hover {
	color: var(--primary-container);
}

.clear-arrow {
	font-size: 1.1rem;
}

/* ── Results Area ──────────────────────────────────────────────────────── */
.camp-results,
.inf-results,
.event-results,
.product-results {
	min-width: 0;
}

/* ── Grid Cards ────────────────────────────────────────────────────────── */
.camp-grid,
.event-grid,
.brand-grid,
.product-grid {
	display: grid;
	gap: 1.5rem;
}

/* Sidebar + results: two columns (not three equal tracks). */
.inf-grid {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

/* Influencer directory: exactly three cards per row on wide viewports. */
.creator-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.ihs-campaign-grid,
.event-card-grid,
.brand-grid,
.product-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

/* ── Campaign Card ─────────────────────────────────────────────────────── */
.ihs-campaign-card {
	background: var(--surface-container-lowest);
	border: 1px solid color-mix(in oklab, var(--primary-container) 32%, white);
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 8px 24px rgba(153, 65, 90, 0.06);
}

.ihs-campaign-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(153, 65, 90, 0.12);
}

.ihs-campaign-card__image {
	width: 100%;
	height: 180px;
	background: var(--surface-container-high);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.ihs-campaign-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ihs-campaign-card__image-ph {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		rgba(247, 141, 167, 0.08),
		rgba(247, 141, 167, 0.08) 10px,
		rgba(247, 141, 167, 0.04) 10px,
		rgba(247, 141, 167, 0.04) 20px
	);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ihs-campaign-card__ph-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--on-surface-variant);
	opacity: 0.6;
}

.ihs-campaign-card__badges {
	display: flex;
	gap: 0.6rem;
	padding: 0.8rem;
	flex-wrap: wrap;
	align-items: flex-start;
}

.ihs-campaign-card__status {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.ihs-campaign-card__status-dot {
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
}

.ihs-campaign-card__status--open {
	background: rgba(22, 108, 53, 0.15);
	color: #166c35;
}

.ihs-campaign-card__status--open .ihs-campaign-card__status-dot {
	background: #166c35;
}

.ihs-campaign-card__status--closing {
	background: rgba(251, 146, 60, 0.15);
	color: #d97706;
}

.ihs-campaign-card__status--closing .ihs-campaign-card__status-dot {
	background: #d97706;
}

.ihs-campaign-card__status--closed {
	background: rgba(153, 65, 90, 0.15);
	color: #7f1d1d;
}

.ihs-campaign-card__status--closed .ihs-campaign-card__status-dot {
	background: #7f1d1d;
}

.ihs-campaign-card__creators {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.68rem;
	font-weight: 700;
	background: rgba(153, 65, 90, 0.08);
	color: var(--on-surface);
}

.ihs-campaign-card__body {
	padding: 1.1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ihs-campaign-card__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--on-surface);
}

.ihs-campaign-card__byline {
	margin: 0;
	font-size: 0.8rem;
	color: var(--primary);
	font-weight: 600;
}

.ihs-campaign-card__cta {
	margin-top: auto;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ihs-campaign-card__cta--disabled {
	color: #586173;
	text-decoration: none;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Brand Card ────────────────────────────────────────────────────────── */
.brand-card {
	background: var(--surface-container-lowest);
	border: 1px solid color-mix(in oklab, var(--primary-container) 32%, white);
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 8px 24px rgba(153, 65, 90, 0.06);
}

.brand-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(153, 65, 90, 0.12);
}

.brand-card__logo {
	width: 100%;
	height: 140px;
	background: var(--surface-container-high);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	padding: 1rem;
}

.brand-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand-card__logo-ph {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		rgba(247, 141, 167, 0.08),
		rgba(247, 141, 167, 0.08) 10px,
		rgba(247, 141, 167, 0.04) 10px,
		rgba(247, 141, 167, 0.04) 20px
	);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.brand-card__ph-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--on-surface-variant);
	opacity: 0.6;
	word-break: break-word;
}

.brand-card__featured-badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: var(--primary);
	color: var(--on-primary);
	box-shadow: 0 2px 8px rgba(153, 65, 90, 0.2);
}

.brand-card__body {
	padding: 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.brand-card__name {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--on-surface);
}

.brand-card__region {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--primary);
}

.brand-card__description {
	margin: 0;
	font-size: 0.85rem;
	color: var(--on-surface-variant);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.brand-card__product-count {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--on-surface-variant);
	background: rgba(153, 65, 90, 0.07);
	border-radius: 9999px;
	padding: 0.25rem 0.65rem;
	width: fit-content;
}

.brand-card__cta {
	margin-top: auto;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.brand-results {
	min-width: 0;
}

/* ── Event Card ────────────────────────────────────────────────────────── */
.event-card-public {
	background: var(--surface-container-lowest);
	border: 1px solid color-mix(in oklab, var(--primary-container) 40%, white);
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 8px 28px rgba(153, 65, 90, 0.08);
}

.event-card-public:hover {
	transform: translateY(-6px);
	box-shadow: 0 32px 64px rgba(153, 65, 90, 0.14);
}

.event-card-public__thumb {
	height: 200px;
	background: var(--surface-container-high);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.event-card-public__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(
		45deg,
		rgba(247, 141, 167, 0.08),
		rgba(247, 141, 167, 0.08) 10px,
		rgba(247, 141, 167, 0.04) 10px,
		rgba(247, 141, 167, 0.04) 20px
	);
}

.event-card__placeholder .material-symbols-outlined {
	font-size: 2.5rem;
	color: var(--primary);
}

.event-card-public__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	font-size: 0.6rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.7rem;
	border-radius: 9999px;
}

.event-badge--live {
	background: rgba(22, 108, 53, 0.2);
	color: #166c35;
}

.event-badge--past {
	background: rgba(153, 65, 90, 0.18);
	color: #7f1d1d;
}

.event-badge--draft {
	background: rgba(106, 90, 94, 0.18);
	color: #6a5a5e;
}

.event-card-public__body {
	padding: 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.event-card-public__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--on-surface);
	line-height: 1.3;
}

.event-card-public__meta {
	margin: 0;
	font-size: 0.8rem;
	color: var(--on-surface-variant);
}

.event-card-public__location {
	margin: 0;
	font-size: 0.8rem;
	color: var(--on-surface-variant);
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.event-card-public__location::before {
	content: '📍';
	font-size: 0.9rem;
}

.event-card-public__stats {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 0.9rem;
	background: var(--surface-container-low);
	border-radius: 0.65rem;
	margin-top: 0.5rem;
}

.event-card-public__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.8rem;
	color: var(--on-surface-variant);
}

.event-card-public__row strong {
	color: var(--on-surface);
	font-weight: 700;
}

/* ── Empty State ───────────────────────────────────────────────────────── */
.camp-grid__empty,
.inf-empty,
.event-empty,
.brand-grid__empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 2rem;
	color: var(--on-surface-variant);
}

.inf-empty__glyph,
.event-empty__glyph {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.inf-empty h3,
.event-empty h3 {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	color: var(--on-surface);
}

.inf-empty p,
.event-empty p {
	margin: 0;
	font-size: 0.9rem;
}

/* ── Pagination ────────────────────────────────────────────────────────── */
.immi-pagination,
.inf-loadmore,
.event-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
	flex-wrap: wrap;
	margin-bottom: 3rem;
}

.pagination-btn,
.pagination-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border: 1px solid rgba(217, 192, 196, 0.3);
	border-radius: 0.5rem;
	background: var(--surface-container-lowest);
	color: var(--on-surface);
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pagination-btn:hover {
	border-color: var(--primary);
	background: var(--primary);
	color: var(--on-primary);
}

.pagination-page--active {
	border-color: var(--primary);
	background: var(--primary);
	color: var(--on-primary);
	cursor: default;
}

.pagination-ellipsis {
	color: var(--on-surface-variant);
	font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
/* ── Product Card ──────────────────────────────────────────────────────── */
.product-card {
	background: var(--surface-container-lowest);
	border: 1px solid color-mix(in oklab, var(--primary-container) 32%, white);
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 8px 24px rgba(153, 65, 90, 0.06);
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(153, 65, 90, 0.12);
}

.product-card__image {
	width: 100%;
	height: 200px;
	background: var(--surface-container-high);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

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

.product-card__image-ph {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		45deg,
		rgba(247, 141, 167, 0.08),
		rgba(247, 141, 167, 0.08) 10px,
		rgba(247, 141, 167, 0.04) 10px,
		rgba(247, 141, 167, 0.04) 20px
	);
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-card__ph-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--on-surface-variant);
	opacity: 0.6;
}

.product-card__stock {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	font-size: 0.6rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.7rem;
	border-radius: 9999px;
}

.product-card__stock--in {
	background: rgba(22, 108, 53, 0.2);
	color: #166c35;
}

.product-card__stock--out {
	background: rgba(153, 65, 90, 0.15);
	color: #7f1d1d;
}

.product-card__body {
	padding: 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.product-card__title {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--on-surface);
}

.product-card__brand {
	margin: 0;
	font-size: 0.8rem;
	color: var(--primary);
	font-weight: 600;
}

.product-card__price {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--on-surface);
	padding: 0.5rem 0;
	border-top: 1px solid rgba(217, 192, 196, 0.15);
	border-bottom: 1px solid rgba(217, 192, 196, 0.15);
}

.product-card__cta {
	margin-top: auto;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.product-card__cta--disabled {
	color: #586173;
	text-decoration: none;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
	.brand-layout__inner,
	.product-layout__inner {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 1024px) {
	.brand-layout__inner,
	.product-layout__inner {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 1.2rem;
	}

	.immi-inf-container {
		padding: 0 2rem;
	}

	.ihs-campaign-grid,
	.event-card-grid,
	.brand-grid,
	.product-card-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 1rem;
	}

	.creator-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 900px) {
	.brand-layout__inner,
	.product-layout__inner {
		grid-template-columns: 1fr;
		display: block;
	}

	body.post-type-archive-immi_brand .immi-archive-page .filter-sidebar,
	body.post-type-archive-immi_product .immi-archive-page .filter-sidebar {
		display: block;
		position: static;
		top: auto;
		left: auto;
		bottom: auto;
		width: 100%;
		max-height: none;
		transform: none;
		opacity: 1;
		visibility: visible;
		margin-bottom: 1rem;
	}
}

@media (max-width: 768px) {
	.brand-layout__inner,
	.product-layout__inner {
		grid-template-columns: 1fr;
	}

	.filter-sidebar {
		position: static;
		top: auto;
	}

	.camp-header,
	.inf-header,
	.event-header,
	.brand-header,
	.product-header {
		padding: 2.5rem 0 2rem;
	}

	.camp-header__title,
	.inf-header__title,
	.event-header__title,
	.brand-header__title,
	.product-header__title {
		font-size: clamp(1.5rem, 4vw, 2rem);
	}

	.camp-controls__inner,
	.inf-controls__inner,
	.event-controls__inner,
	.brand-controls__inner,
	.product-controls__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.search-field {
		order: 1;
	}

	.result-count {
		order: 3;
		text-align: center;
		width: 100%;
	}

	.filter-select-wrap {
		order: 2;
		width: 100%;
	}

	.filter-select {
		width: 100%;
	}

	.ihs-campaign-grid,
	.event-card-grid,
	.brand-grid,
	.product-card-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	.creator-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.inf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.immi-inf-container {
		padding: 0 1.5rem;
	}

	#immi-filter-toggle {
		display: flex;
	}
}

@media (max-width: 480px) {
	.immi-inf-container {
		padding: 0 1rem;
	}

	.camp-header__title,
	.inf-header__title,
	.event-header__title,
	.brand-header__title,
	.product-header__title {
		font-size: 1.5rem;
	}

	.ihs-campaign-grid,
	.event-card-grid,
	.brand-grid,
	.product-card-grid {
		grid-template-columns: 1fr;
	}

	.creator-grid {
		grid-template-columns: 1fr;
	}

	.inf-grid {
		grid-template-columns: 1fr;
	}

	.filter-sidebar {
		padding: 1.2rem;
	}
}

/* ── Skeleton Loading ──────────────────────────────────────────────────── */
.immi-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.grid-creator-card--skeleton,
.grid-event-card--skeleton,
.grid-product-card--skeleton {
	background: var(--surface-container-lowest);
	border: 1px solid rgba(217, 192, 196, 0.2);
	border-radius: 1rem;
	padding: 0;
	overflow: hidden;
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.sk-img {
	width: 100%;
	height: 180px;
	background: var(--surface-container-high);
}

.sk-line {
	height: 0.75rem;
	background: var(--surface-container-high);
	margin: 0.75rem;
	border-radius: 0.35rem;
}

.sk-line--title {
	height: 1rem;
	width: 85%;
}

.sk-line--short {
	width: 60%;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* ── Active Filters Bar ────────────────────────────────────────────────── */
.active-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem;
	margin-bottom: 1rem;
	background: rgba(247, 141, 167, 0.08);
	border: 1px solid rgba(247, 141, 167, 0.2);
	border-radius: 0.75rem;
}

.active-filter-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.75rem;
	background: var(--surface-container-lowest);
	border: 1px solid rgba(217, 192, 196, 0.3);
	border-radius: 9999px;
	font-size: 0.8rem;
	color: var(--on-surface);
}

.active-filter-item__remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.2rem;
	height: 1.2rem;
	margin-left: 0.25rem;
	background: rgba(153, 65, 90, 0.1);
	border: none;
	border-radius: 50%;
	color: var(--primary);
	cursor: pointer;
	font-size: 0.9rem;
	padding: 0;
}

.active-filter-item__remove:hover {
	background: rgba(153, 65, 90, 0.2);
}
