/* ── IGcr Theme — Dark Mode ────────────────────────────────────────────────
 *
 * Overrides theme custom properties, plugin --igcr-* tokens, and hardcoded
 * colors used throughout plugin blocks for full dark mode support.
 * All plugin overrides are harmless if the plugin is inactive.
 * ────────────────────────────────────────────────────────────────────────── */

@media ( prefers-color-scheme: dark ) {

	/* ── Theme tokens (matches Instagram.com dark mode) ── */
	:root {
		/* Core palette */
		--igcr-theme-bg: #0d0f14;
		--igcr-theme-bg-card: #0d0f14;
		--igcr-theme-text: #f5f5f5;
		--igcr-theme-text-secondary: #a8a8a8;
		--igcr-theme-text-muted: #737373;
		--igcr-theme-border: #262626;
		--igcr-theme-border-light: #262626;
		--igcr-theme-link: #e0f1ff;
		--igcr-theme-shadow: 0 4px 12px rgba( 0, 0, 0, 0.4 );

		/* Semantic status */
		--igcr-theme-success: #22c55e;
		--igcr-theme-success-bg: #0a2e1a;
		--igcr-theme-success-text: #86efac;
		--igcr-theme-danger: #ef4444;
		--igcr-theme-danger-bg: #2d0a0a;
		--igcr-theme-danger-text: #fca5a5;
		--igcr-theme-danger-subtle: #ed4956;
		--igcr-theme-danger-subtle-bg: rgba( 237, 73, 86, 0.12 );
		--igcr-theme-info: #3b82f6;
		--igcr-theme-info-bg: #0a1a2e;
		--igcr-theme-info-text: #93c5fd;
		--igcr-theme-warning: #f59e0b;

		/* Primary button + social — accent-driven via inline CSS */

		/* Overlay */
		--igcr-theme-overlay: rgba( 0, 0, 0, 0.75 );

		/* Landing page */
		--igcr-theme-landing-heading: #f1f5f9;
		--igcr-theme-landing-sub: #94a3b8;
		--igcr-theme-landing-muted: #94a3b8;
		--igcr-theme-landing-bg: #0a0a0a;
		--igcr-theme-landing-bg-alt: #111111;
		--igcr-theme-landing-hero-mid: #0f1a2a;
		--igcr-theme-landing-hero-end: #0a1420;
		--igcr-theme-landing-border: #262626;
		--igcr-theme-landing-footer-bg: #000000;
		--igcr-theme-landing-nav-bg: rgba( 10, 10, 10, 0.92 );
		--igcr-theme-landing-nav-border: rgba( 255, 255, 255, 0.06 );
	}

	/* ── WP preset color overrides (theme.json defines light-only values) ── */
	:root {
		--wp--preset--color--base: #0d0f14;
		--wp--preset--color--body-bg: #0d0f14;
		--wp--preset--color--contrast: #f5f5f5;
		--wp--preset--color--secondary: #a8a8a8;
		--wp--preset--color--muted: #737373;
		--wp--preset--color--border: #262626;
		--wp--preset--color--link: #e0f1ff;
		--wp--preset--color--accent: var( --igcr-theme-accent );
	}

	/* ── Plugin tokens (Instagram.com dark palette) ── */
	:root {
		/* Accent — driven by theme accent color */
		--igcr-accent: var( --igcr-theme-accent );
		--igcr-accent-hover: var( --igcr-theme-accent-hover );
		--igcr-accent-light: rgba( 0, 149, 246, 0.15 );
		--igcr-accent-rgb: 0, 149, 246;

		/* Semantic */
		--igcr-success: #22c55e;
		--igcr-success-hover: #16a34a;
		--igcr-warning: #f59e0b;
		--igcr-danger: #ef4444;
		--igcr-danger-hover: #dc2626;
		--igcr-info: #60a5fa;

		/* Neutrals — Instagram.com exact values */
		--igcr-text: #f5f5f5;
		--igcr-text-secondary: #a8a8a8;
		--igcr-text-muted: #737373;
		--igcr-border: #262626;
		--igcr-border-light: #262626;
		--igcr-bg: #0d0f14;
		--igcr-bg-subtle: #121212;
		--igcr-bg-muted: #262626;

		/* Shadows */
		--igcr-shadow-sm: 0 1px 3px rgba( 0, 0, 0, 0.3 );
		--igcr-shadow: 0 4px 12px rgba( 0, 0, 0, 0.4 );
		--igcr-shadow-lg: 0 12px 40px rgba( 0, 0, 0, 0.5 );
	}

	body {
		background: #0d0f14;
		color: #f5f5f5;
	}

	/* ── Headings (scoped to theme areas) ── */

	.igcr-main h1, .igcr-main h2, .igcr-main h3,
	.igcr-main h4, .igcr-main h5, .igcr-main h6,
	.igcr-login-page h1, .igcr-login-page h2,
	.wp-block-post-title,
	.wp-block-query-title,
	.wp-block-heading {
		color: #f5f5f5;
	}

	/* ── Theme chrome ── */

	.igcr-sidebar-wrap {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-sidebar {
		background: #0d0f14;
	}

	.igcr-nav-item:hover {
		background: rgba( 255, 255, 255, 0.1 );
	}

	.igcr-more-menu {
		background: #262626;
		border-color: #363636;
	}

	.igcr-more-item:hover {
		background: #363636;
	}

	.igcr-mobile-header {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-mobile-footer {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-search-box {
		background: #262626;
	}

	.igcr-search-input {
		color: #f5f5f5;
	}

	.igcr-search-input::placeholder {
		color: #737373;
	}

	/* Theme footer */
	.igcr-site-footer {
		border-color: #262626;
	}

	.igcr-footer-menu a {
		color: #737373;
	}

	.igcr-footer-menu a:hover {
		color: #a8a8a8;
	}

	.igcr-footer-copy {
		color: #737373;
	}

	/* ── Links (scoped to theme areas — avoid WP admin modals) ── */

	.igcr-main a,
	.igcr-sidebar a,
	.igcr-login-page a,
	.igcr-site-footer a {
		color: #e0f1ff;
	}

	.igcr-main a:hover,
	.igcr-sidebar a:hover,
	.igcr-login-page a:hover,
	.igcr-site-footer a:hover {
		color: #ffffff;
	}

	.wp-block-post-title a {
		color: #f5f5f5;
	}

	/* ── Plugin: Account cards ── */

	.igcr-account-card {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-account-card:hover {
		box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.4 );
	}

	.igcr-account-type--business {
		background: #1a2a3a;
		color: var( --igcr-theme-accent );
	}

	.igcr-account-type--creator {
		background: #2a1a3a;
		color: #c4a0e0;
	}

	.igcr-account-stats span {
		color: #a8a8a8;
	}

	.igcr-avatar-placeholder {
		background: #262626;
		color: #737373;
	}

	/* ── Plugin: Profile page ── */

	.igcr-profile-card {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-profile-bio {
		color: #dbdbdb;
	}

	.igcr-profile-website a {
		color: var( --igcr-theme-accent );
	}

	.igcr-action-btn {
		background: #262626;
		color: #dbdbdb;
		border-color: #363636;
	}

	.igcr-action-btn:hover {
		background: #363636;
		color: #f5f5f5;
	}

	.igcr-content-tabs {
		border-color: #262626;
	}

	.igcr-tab-btn {
		color: #737373;
	}

	.igcr-tab-btn.is-active {
		color: #f5f5f5;
		border-color: #f5f5f5;
	}

	.igcr-grid-item {
		background: #0d0f14;
	}

	/* Admin panel */
	.igcr-admin-panel {
		background: #121212;
		border-color: #262626;
	}

	.igcr-sync-bar {
		background: #121212;
		border-color: #262626;
	}

	.igcr-profile-meta dt {
		color: #737373;
	}

	.igcr-profile-meta dd {
		color: #dbdbdb;
	}

	/* Create post modal */
	.igcr-modal-overlay {
		background: rgba( 0, 0, 0, 0.8 );
	}

	.igcr-modal-content,
	.igcr-create-post-modal {
		background: #262626;
		border-color: #262626;
		color: #f5f5f5;
	}

	.igcr-modal-close {
		color: #a8a8a8;
	}

	/* ── Plugin: Single post ── */

	.igcr-single-caption {
		color: #dbdbdb;
	}

	.igcr-single-date {
		color: #737373;
	}

	.igcr-single-back {
		color: #a8a8a8;
	}

	.igcr-single-username {
		color: #f5f5f5;
	}

	.igcr-view-on-ig {
		color: #737373;
	}

	.igcr-view-on-ig:hover {
		color: #dbdbdb;
	}

	.igcr-media-image {
		background: #0d0f14;
	}

	.igcr-carousel {
		background: #0d0f14;
	}

	/* ── Plugin: Comments ── */

	.igcr-comments-section,
	.comments-area.igcr-comments-section {
		border-color: #262626;
	}

	.igcr-comments-title,
	.comments-title.igcr-comments-title {
		color: #a8a8a8;
	}

	.comment-body.igcr-comment-body,
	.igcr-comment-bubble {
		background: transparent;
		color: #f5f5f5;
	}

	.igcr-comment--ours .comment-body.igcr-comment-body,
	.igcr-comment--ours .igcr-comment-bubble {
		background: #1a3a5c;
	}

	.comment-author .fn.igcr-comment-author-name,
	.igcr-comment-author {
		color: #f5f5f5;
	}

	.comment-metadata.igcr-comment-time,
	.igcr-comment-time {
		color: #737373;
	}

	.igcr-comments-empty,
	.no-comments.igcr-comments-empty {
		color: #737373;
	}

	.igcr-reply-toggle,
	.comment-reply-link.igcr-reply-toggle {
		color: var( --igcr-theme-accent );
	}

	.igcr-reply-context {
		background: #1a3a5c;
		color: var( --igcr-theme-accent );
	}

	.igcr-reply-title,
	.comment-reply-title.igcr-reply-title {
		color: #a8a8a8;
	}

	/* Comment form */
	.igcr-comment-textarea {
		background: #262626;
		border-color: #363636;
		color: #f5f5f5;
	}

	.igcr-comment-textarea:focus {
		border-color: var( --igcr-theme-accent );
	}

	.igcr-comment-status--error {
		color: #ef4444;
	}

	/* ── Plugin: Messages / DM ── */

	.igcr-messages-wrap {
		background: #0d0f14;
	}

	.igcr-dm-header {
		border-color: #262626;
	}

	.igcr-dm-title {
		color: #f5f5f5;
	}

	.igcr-dm-threads-panel {
		border-color: #262626;
	}

	.igcr-dm-thread {
		border-color: #1a1a1a;
	}

	.igcr-dm-thread:hover {
		background: #121212;
	}

	.igcr-dm-thread.is-active {
		background: #121830;
	}

	.igcr-dm-thread-name {
		color: #f5f5f5;
	}

	.igcr-dm-thread-preview {
		color: #737373;
	}

	.igcr-dm-conversation-panel {
		border-color: #262626;
	}

	.igcr-dm-message--theirs .igcr-dm-bubble {
		background: #262626;
		color: #f5f5f5;
	}

	.igcr-dm-message--ours .igcr-dm-bubble {
		background: #1a3a5c;
		color: #f5f5f5;
	}

	.igcr-dm-reply-form {
		border-color: #262626;
	}

	.igcr-dm-reply-input {
		background: #262626;
		border-color: #363636;
		color: #f5f5f5;
	}

	.igcr-dm-auth-notice {
		background: #121212;
		color: #a8a8a8;
	}

	/* ── Plugin: Automation / Flows ── */

	.igcr-auto-wrap {
		color: #f5f5f5;
	}

	.igcr-auto-card {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-auto-card-header {
		color: #f5f5f5;
	}

	.igcr-auto-notice {
		background: rgba( 0, 149, 246, 0.15 );
		color: var( --igcr-theme-accent );
	}

	.igcr-auto-keywords-section,
	.igcr-auto-menu-section,
	.igcr-auto-icebreakers-section {
		border-color: #262626;
	}

	/* Toggle switch */
	.igcr-toggle-track {
		background: #363636;
	}

	.igcr-toggle-track.is-active {
		background: #22c55e;
	}

	/* ── Plugin: Onboarding ── */

	.igcr-account-card--selectable {
		border-color: #262626;
	}

	.igcr-account-card--selectable:hover {
		border-color: #363636;
	}

	.igcr-account-card--selected {
		border-color: var( --igcr-theme-accent );
	}

	.igcr-onboard-url-row {
		background: #121212;
	}

	.igcr-onboard-url {
		color: var( --igcr-theme-accent );
	}

	.igcr-card-body {
		background: #121212;
	}

	/* ── Plugin: Buttons & inputs (hardcoded colors) ── */

	/* Buttons with #f5f5f5 / #f0f0f0 backgrounds */
	.igcr-sync-btn,
	.igcr-connect-btn--outline {
		background: #262626;
		border-color: #363636;
		color: #dbdbdb;
	}

	.igcr-sync-btn:hover,
	.igcr-connect-btn--outline:hover {
		background: #262626;
	}

	/* Select/dropdown inputs */
	.igcr-account-picker,
	.igcr-dm-account-select,
	.igcr-auto-template-picker,
	.igcr-post-auto-template-picker {
		background: #262626;
		border-color: #363636;
		color: #f5f5f5;
	}

	/* Generic inputs (scoped to theme areas — avoid WP admin modals) */
	.igcr-main input[type="text"],
	.igcr-main input[type="email"],
	.igcr-main input[type="tel"],
	.igcr-main input[type="number"],
	.igcr-main input[type="password"],
	.igcr-main input[type="search"],
	.igcr-main input[type="url"],
	.igcr-main textarea,
	.igcr-main select,
	.igcr-login-page input[type="text"],
	.igcr-login-page input[type="email"],
	.igcr-login-page input[type="password"],
	.igcr-login-page input[type="search"],
	.igcr-login-page textarea,
	.igcr-login-page select {
		background: #262626;
		border-color: #363636;
		color: #f5f5f5;
		color-scheme: dark;
	}

	.igcr-main input[type="text"]:focus,
	.igcr-main input[type="email"]:focus,
	.igcr-main input[type="tel"]:focus,
	.igcr-main input[type="number"]:focus,
	.igcr-main input[type="password"]:focus,
	.igcr-main input[type="search"]:focus,
	.igcr-main input[type="url"]:focus,
	.igcr-main textarea:focus,
	.igcr-main select:focus,
	.igcr-login-page input[type="text"]:focus,
	.igcr-login-page input[type="email"]:focus,
	.igcr-login-page input[type="password"]:focus,
	.igcr-login-page textarea:focus,
	.igcr-login-page select:focus {
		border-color: var( --igcr-theme-accent );
	}

	/* Separator borders (scoped) */
	.igcr-main hr {
		border-color: #262626;
	}

	/* ── Plugin: Danger zones ── */

	.igcr-danger-zone {
		background: #1a0a0a;
		border-color: #3a1a1a;
	}

	/* ── Plugin: Status badges ── */

	.igcr-sync-badge {
		color: var( --igcr-theme-accent );
	}

	.igcr-sync-spinner {
		border-color: rgba( 0, 149, 246, 0.25 );
		border-top-color: var( --igcr-theme-accent );
	}

	/* ── Content typography ── */

	.igcr-main blockquote {
		border-color: #363636;
		color: #a8a8a8;
	}

	.igcr-main blockquote cite {
		color: #737373;
	}

	.igcr-main th {
		color: #a8a8a8;
	}

	.igcr-main th,
	.igcr-main td {
		border-color: #262626;
	}

	.igcr-main code {
		background: #1a1a1a;
		color: #f5f5f5;
	}

	.igcr-main pre {
		background: #121212;
	}

	.igcr-main mark {
		background: rgba( 0, 149, 246, 0.15 );
		color: #f5f5f5;
	}

	.igcr-main details {
		border-color: #262626;
	}

	.igcr-main figcaption {
		color: #737373;
	}

	/* ── WP blocks in dark mode ── */

	.wp-block-post-excerpt {
		color: #a8a8a8;
	}

	.wp-block-query-pagination a {
		color: #a8a8a8;
	}

	.wp-block-query-pagination a:hover {
		color: #f5f5f5;
	}

	/* WP comment blocks */
	.wp-block-comment-author-name {
		color: #f5f5f5;
	}

	.wp-block-comment-content {
		color: #dbdbdb;
	}

	.wp-block-comment-date {
		color: #737373;
	}

	/* Feed cards */
	.igcr-feed-card {
		background: transparent;
	}

	/* ── Login page ── */

	.igcr-login-page .igcr-login-hero {
		background: #0d0f14;
	}

	.igcr-login-page .igcr-login-form-col {
		background: #0d0f14;
	}

	.igcr-login-card {
		background: #0d0f14;
		border-color: #262626;
	}

	.igcr-login-field input {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
	}

	.igcr-login-field input:focus {
		border-color: #737373;
	}

	.igcr-login-field input::placeholder {
		color: #737373;
	}

	.igcr-login-divider::before,
	.igcr-login-divider::after {
		background: #262626;
	}

	.igcr-login-register {
		border-color: #262626;
	}

	/* ── Header menu (sidebar) ── */

	.igcr-header-menu-wrap {
		border-color: #262626;
	}

	/* ── WooCommerce ── */

	/* Product grid cards — flush with background like Instagram */
	.wc-block-grid__product,
	.wp-block-woocommerce-product-template > li {
		background: transparent;
		border-color: #262626;
	}

	.wc-block-grid__product:hover,
	.wp-block-woocommerce-product-template > li:hover {
		box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.4 );
	}

	.wc-block-grid__product-title a,
	.wp-block-woocommerce-product-template .wp-block-post-title a {
		color: #f5f5f5;
	}

	/* Product gallery */
	.woocommerce-product-gallery,
	.wp-block-woocommerce-product-image-gallery {
		background: #121212;
	}

	/* Tables (cart, checkout) */
	.woocommerce table.shop_table {
		border-color: #262626;
	}

	.woocommerce table.shop_table th {
		background: #121212;
		border-color: #262626;
		color: #a8a8a8;
	}

	.woocommerce table.shop_table td {
		border-color: #262626;
		color: #f5f5f5;
	}

	/* Cart totals */
	.woocommerce .cart_totals,
	.wc-block-cart__totals {
		background: #121212;
		border-color: #262626;
	}

	/* Payment box */
	.woocommerce .woocommerce-checkout-payment,
	.wc-block-checkout__payment-method {
		background: #121212;
		border-color: #262626;
	}

	/* Breadcrumbs */
	.igcr-breadcrumbs a {
		color: #a8a8a8;
	}

	.igcr-breadcrumbs a:hover {
		color: #f5f5f5;
	}

	.igcr-breadcrumb-sep {
		color: #737373;
	}

	/* Product tabs */
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		border-color: #262626;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		color: #737373;
	}

	.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
		color: #f5f5f5;
		border-bottom-color: #f5f5f5;
	}

	.woocommerce div.product .woocommerce-tabs .panel {
		color: #a8a8a8;
	}

	/* Product meta */
	.product_meta,
	.wp-block-woocommerce-product-meta {
		border-color: #262626;
		color: #a8a8a8;
	}

	.product_meta a,
	.wp-block-woocommerce-product-meta a {
		color: var( --igcr-theme-accent );
	}

	/* My Account — nav icons: invert dark strokes to light (except red logout) */
	.igcr-wc-account .woocommerce-MyAccount-navigation ul li:not(.woocommerce-MyAccount-navigation-link--customer-logout) a::before {
		filter: brightness( 0 ) invert( 1 );
	}

	/* Account forms — subtle inset contrast against card bg */
	.igcr-wc-account .woocommerce-EditAccountForm input.input-text,
	.igcr-wc-account .woocommerce-address-fields input.input-text,
	.igcr-wc-account .woocommerce-address-fields select {
		background: #121212;
		border-color: #363636;
	}

	.igcr-wc-account .woocommerce-EditAccountForm input.input-text:focus,
	.igcr-wc-account .woocommerce-address-fields input.input-text:focus,
	.igcr-wc-account .woocommerce-address-fields select:focus {
		border-color: var( --igcr-theme-btn-primary );
	}

	/* Orders table — inset rows */
	.igcr-wc-account .woocommerce-orders-table th {
		background: #121212;
	}

	/* Addresses — inset cards */
	.igcr-wc-account .woocommerce-Address {
		background: #121212;
	}

	/* ── WooCommerce forms — global dark mode (select, option, Select2, checkout) ── */

	/* Native select + option elements */
	.woocommerce select,
	.woocommerce-page select,
	.wc-block-checkout select,
	.wc-block-cart select {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
		color-scheme: dark;
	}

	.woocommerce option,
	.woocommerce-page option {
		background: #121212;
		color: #f5f5f5;
	}

	/* Native input, textarea across all WC forms */
	.woocommerce input[type="text"],
	.woocommerce input[type="email"],
	.woocommerce input[type="tel"],
	.woocommerce input[type="url"],
	.woocommerce input[type="password"],
	.woocommerce input[type="number"],
	.woocommerce input[type="search"],
	.woocommerce textarea,
	.woocommerce-page input[type="text"],
	.woocommerce-page input[type="email"],
	.woocommerce-page input[type="tel"],
	.woocommerce-page input[type="url"],
	.woocommerce-page input[type="password"],
	.woocommerce-page input[type="number"],
	.woocommerce-page textarea {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
	}

	.woocommerce input:focus,
	.woocommerce textarea:focus,
	.woocommerce select:focus,
	.woocommerce-page input:focus,
	.woocommerce-page textarea:focus,
	.woocommerce-page select:focus {
		border-color: var( --igcr-theme-accent );
	}

	/* Select2 / selectWoo (country/state dropdowns) */
	.select2-container--default .select2-selection--single,
	.select2-container--default .select2-selection--multiple {
		background: #121212 !important;
		border-color: #363636 !important;
		color: #f5f5f5 !important;
	}

	.select2-container--default .select2-selection--single .select2-selection__rendered {
		color: #f5f5f5 !important;
	}

	.select2-container--default .select2-selection--single .select2-selection__placeholder {
		color: #737373 !important;
	}

	.select2-container--default .select2-selection--single .select2-selection__arrow b {
		border-color: #737373 transparent transparent transparent !important;
	}

	/* Dropdown panel */
	.select2-dropdown {
		background: #1a1a1a !important;
		border-color: #363636 !important;
	}

	/* Search field inside dropdown */
	.select2-search--dropdown .select2-search__field {
		background: #121212 !important;
		border-color: #363636 !important;
		color: #f5f5f5 !important;
	}

	/* Results container */
	.select2-results {
		background: #1a1a1a !important;
	}

	.select2-results__options {
		background: #1a1a1a !important;
	}

	/* All options — base dark text */
	.select2-results__option {
		color: #f5f5f5 !important;
		background: #1a1a1a !important;
	}

	/* Currently selected option (aria-selected=true) */
	.select2-container--default .select2-results__option[aria-selected="true"],
	.select2-container--default .select2-results__option--selected,
	.select2-results__option[aria-selected="true"] {
		background: #262626 !important;
		color: #f5f5f5 !important;
	}

	/* Hovered / highlighted option */
	.select2-container--default .select2-results__option--highlighted,
	.select2-container--default .select2-results__option--highlighted[aria-selected],
	.select2-container--default .select2-results__option--highlighted[aria-selected="true"],
	.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
	.select2-results__option.select2-results__option--highlighted {
		background: var( --igcr-theme-accent ) !important;
		color: #fff !important;
	}

	/* Select2 clear button */
	.select2-container--default .select2-selection__clear {
		color: #737373;
	}

	/* WC Block checkout form fields */
	.wc-block-components-text-input input,
	.wc-block-components-text-input textarea,
	.wc-block-components-combobox input,
	.wc-block-components-combobox select,
	.wc-block-components-form .wc-block-components-text-input input {
		background: #121212 !important;
		border-color: #363636 !important;
		color: #f5f5f5 !important;
	}

	.wc-block-components-text-input input:focus,
	.wc-block-components-combobox input:focus {
		border-color: var( --igcr-theme-accent ) !important;
	}

	/* WC Block combobox dropdown (country/state in block checkout) */
	.wc-block-components-combobox .wc-block-components-combobox__menu {
		background: #1a1a1a;
		border-color: #363636;
	}

	.wc-block-components-combobox .wc-block-components-combobox__option {
		color: #f5f5f5;
	}

	.wc-block-components-combobox .wc-block-components-combobox__option:hover,
	.wc-block-components-combobox .wc-block-components-combobox__option--selected {
		background: #262626;
	}

	/* WC form labels */
	.woocommerce form .form-row label,
	.woocommerce-page form .form-row label {
		color: #f5f5f5;
	}

	/* WC form placeholders */
	.woocommerce input::placeholder,
	.woocommerce textarea::placeholder,
	.woocommerce-page input::placeholder,
	.woocommerce-page textarea::placeholder {
		color: #737373;
	}

	/* Related products border */
	.woocommerce .related.products,
	.wp-block-woocommerce-related-products {
		border-color: #262626;
	}

	/* Quantity input */
	.woocommerce .quantity .qty {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
	}

	/* Variation selects */
	.woocommerce div.product form.cart .variations select {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
	}

	.woocommerce div.product form.cart .variations label {
		color: #f5f5f5;
	}

	/* WC block form fields */
	.wc-block-components-text-input input,
	.wc-block-components-text-input textarea,
	.wc-block-components-combobox input,
	.wc-block-components-combobox select {
		background: #121212;
		border-color: #363636;
		color: #f5f5f5;
	}

	.wc-block-components-text-input label,
	.wc-block-components-combobox label {
		color: #a8a8a8;
	}

	/* Short description */
	.woocommerce div.product .woocommerce-product-details__short-description {
		color: #a8a8a8;
	}

	/* Star ratings background */
	.woocommerce .star-rating::before {
		color: #363636;
	}

	/* WC block product name + price (hardcoded in WC CSS) */
	.wc-block-components-product-name,
	.wc-block-components-product-name a {
		color: #f5f5f5;
	}

	.wc-block-components-product-price,
	.wc-block-components-product-price__value {
		color: #f5f5f5;
	}

	/* WC block totals (cart, checkout) */
	.wc-block-components-totals-item__label,
	.wc-block-components-totals-item__value {
		color: #f5f5f5;
	}

	.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
	.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
		color: #f5f5f5;
	}

	/* WC block order summary */
	.wc-block-components-order-summary-item__description {
		color: #a8a8a8;
	}

	/* WC block quantity selector */
	.wc-block-components-quantity-selector {
		border-color: #363636;
	}

	.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
		background: #121212;
		color: #f5f5f5;
	}

	.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
		background: #121212;
		color: #f5f5f5;
	}

	/* WC block radio controls (shipping, payment) */
	.wc-block-components-radio-control__option {
		color: #f5f5f5;
	}

	.wc-block-components-radio-control__description {
		color: #a8a8a8;
	}

	/* WC block sidebar layout (checkout) */
	.wc-block-components-sidebar-layout .wc-block-components-main {
		background: transparent;
	}

	/* WC block checkout sidebar */
	.wc-block-checkout__sidebar {
		background: #121212;
		border-color: #262626;
	}

	/* WC block product details tabs (block version) */
	.wc-block-components-tab-panel .wc-block-components-tab-panel__tab {
		color: #737373;
	}

	.wc-block-components-tab-panel .wc-block-components-tab-panel__tab--active {
		color: #f5f5f5;
		border-bottom-color: #f5f5f5;
	}

	/* WC mini cart */
	.wc-block-mini-cart__drawer {
		background: #0d0f14;
		color: #f5f5f5;
	}

	/* Product image zoom icon */
	.woocommerce-product-gallery .woocommerce-product-gallery__trigger {
		background: rgba( 13, 15, 20, 0.7 );
		color: #f5f5f5;
	}

	/* ── Landing page ── */

	.igcr-landing-hero .igcr-hero-img {
		filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
	}

	.igcr-feature-card:hover {
		box-shadow: 0 8px 32px rgba(61,103,146,0.12);
	}

	/* Out of stock / stock status */
	.woocommerce-variation-availability p.stock,
	p.stock.out-of-stock {
		color: var( --igcr-theme-danger );
	}

	p.stock.in-stock {
		color: var( --igcr-theme-success );
	}
}
