/**
 * Shop & product-category archives — navy theme (matches home / About / Services).
 * Loads after product-card.css and shop-sidebar.css.
 */

body.jit-product-cards {
	--sd-bg: #0c2550;
	--sd-bg-2: #0f2d5e;
	--sd-ice: #dcefff;
	--sd-muted: rgba(220, 239, 255, 0.62);
	--sd-line: rgba(220, 239, 255, 0.12);
	--sd-sky: #5fb4ff;
	--sd-ease: cubic-bezier(0.22, 1, 0.36, 1);
	background: var(--sd-bg);
}

body.jit-product-cards #wrapper,
body.jit-product-cards #main {
	background: var(--sd-bg);
}

body.jit-product-cards #main {
	background:
		radial-gradient(ellipse 50% 30% at 70% 0%, rgba(47, 134, 214, 0.18), transparent 70%),
		var(--sd-bg);
	padding-bottom: 60px;
}

/* =========================================================
   HERO
   ========================================================= */
.jit-shop-hero {
	position: relative;
	padding: 64px 0 34px;
	color: var(--sd-ice);
	background:
		radial-gradient(ellipse 45% 90% at 85% 40%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
		radial-gradient(ellipse 60% 60% at 0% 100%, rgba(22, 66, 126, 0.8), transparent 70%),
		linear-gradient(135deg, #0b234b 0%, #0e3166 60%, #113f7d 100%);
	overflow: hidden;
}

.jit-shop-hero__bg {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(95, 180, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(95, 180, 255, 0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent);
	animation: jitShopGrid 40s linear infinite;
	pointer-events: none;
}

@keyframes jitShopGrid {
	to { background-position: 48px 48px; }
}

.jit-shop-hero__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}

.jit-shop-hero__copy {
	max-width: 720px;
	animation: jitShopUp 0.9s var(--sd-ease) both;
}

@keyframes jitShopUp {
	from { opacity: 0; transform: translateY(18px); }
}

.jit-shop-hero__crumbs {
	margin-bottom: 18px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sd-muted);
}

.jit-shop-hero__crumbs a {
	color: var(--sd-muted);
	text-decoration: none;
	transition: color 0.25s ease;
}

.jit-shop-hero__crumbs a:hover {
	color: #fff;
}

.jit-shop-hero__crumbs .sep {
	margin: 0 10px;
	opacity: 0.5;
}

.jit-shop-hero__title {
	margin: 0 0 14px;
	font-size: clamp(34px, 4.2vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: #fff;
}

.jit-shop-hero__lead {
	max-width: 600px;
	margin: 0 0 14px;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--sd-muted);
}

.jit-shop-hero__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 14px 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--sd-line);
	font-size: 13px;
	color: var(--sd-muted);
}

.jit-shop-hero__count::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
	animation: jitShopBlink 2.4s ease-in-out infinite;
}

@keyframes jitShopBlink {
	50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.jit-shop-hero__count b {
	color: #fff;
	font-weight: 700;
}

/* Brand logo on a light glass plate */
.jit-shop-hero__logo {
	flex-shrink: 0;
	display: block;
	width: 300px;
	padding: 20px 26px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6), 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
	animation: jitShopUp 0.9s var(--sd-ease) 0.15s both;
	transition: transform 0.4s var(--sd-ease);
}

.jit-shop-hero__logo:hover {
	transform: translateY(-3px);
}

.jit-shop-hero__logo img {
	display: block;
	width: 100%;
	height: auto;
}

/* Category chips */
.jit-shop-chips {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
	animation: jitShopUp 0.9s var(--sd-ease) 0.25s both;
}

.jit-shop-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid var(--sd-line);
	background: rgba(255, 255, 255, 0.04);
	color: var(--sd-ice);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--sd-ease);
}

.jit-shop-chip span {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--sd-muted);
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
}

.jit-shop-chip:hover {
	color: #fff;
	border-color: color-mix(in srgb, var(--accent) 60%, transparent);
	transform: translateY(-2px);
}

.jit-shop-chip.is-active {
	color: #fff;
	border-color: transparent;
	background: var(--accent);
	box-shadow: 0 10px 24px -12px var(--accent);
}

.jit-shop-chip.is-active span {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

/* =========================================================
   Toolbar (result count + sorting) — Flatsome title bar
   ========================================================= */
body.jit-product-cards .shop-page-title {
	background: var(--sd-bg) !important;
	border-bottom: 1px solid var(--sd-line);
}

body.jit-product-cards .shop-page-title .page-title-inner {
	padding-top: 14px;
	padding-bottom: 14px;
	min-height: 0;
}

body.jit-product-cards .shop-page-title .woocommerce-breadcrumb,
body.jit-product-cards .shop-page-title .breadcrumbs {
	visibility: hidden;
}

body.jit-product-cards .woocommerce-result-count {
	color: var(--sd-muted) !important;
	font-size: 13.5px;
}

body.jit-product-cards .woocommerce-ordering select {
	height: 42px;
	padding: 0 38px 0 16px;
	border: 1px solid var(--sd-line) !important;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.05) !important;
	color: var(--sd-ice) !important;
	box-shadow: none !important;
	font-size: 13.5px;
}

body.jit-product-cards .woocommerce-ordering select option {
	color: #0b1729;
}

/* =========================================================
   Sidebar
   ========================================================= */
body.jit-product-cards #shop-sidebar.sidebar-inner {
	position: sticky;
	top: 110px;
	background: linear-gradient(170deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--sd-line);
	border-radius: 20px;
	box-shadow: none;
}

body.jit-product-cards #shop-sidebar .widget {
	border-bottom-color: var(--sd-line);
}

body.jit-product-cards #shop-sidebar .jit-shop-widget__title,
body.jit-product-cards #shop-sidebar .widget-title {
	color: #fff;
	border-left-color: var(--sd-sky);
}

body.jit-product-cards #shop-sidebar input[type="search"] {
	height: 46px;
	border: 1px solid var(--sd-line) !important;
	border-radius: 12px 0 0 12px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	color: #fff !important;
	box-shadow: none !important;
}

body.jit-product-cards #shop-sidebar input[type="search"]::placeholder {
	color: var(--sd-muted);
}

body.jit-product-cards #shop-sidebar .ux-search-submit {
	height: 46px;
	border-radius: 0 12px 12px 0 !important;
	background: linear-gradient(120deg, #1660a8, #2f86d6) !important;
}

body.jit-product-cards #shop-sidebar .product-categories li {
	border-color: var(--sd-line) !important;
}

body.jit-product-cards #shop-sidebar .product-categories a {
	color: var(--sd-ice) !important;
	transition: color 0.25s ease, padding-left 0.3s var(--sd-ease);
}

body.jit-product-cards #shop-sidebar .product-categories .children a {
	color: var(--sd-muted) !important;
}

body.jit-product-cards #shop-sidebar .product-categories a:hover {
	color: #fff !important;
	padding-left: 4px;
}

body.jit-product-cards #shop-sidebar .product-categories .current-cat > a {
	color: var(--sd-sky) !important;
	font-weight: 600;
}

body.jit-product-cards #shop-sidebar .product-categories .children {
	border-color: var(--sd-line) !important;
}

body.jit-product-cards #shop-sidebar .toggle {
	border-color: var(--sd-line) !important;
	background: rgba(255, 255, 255, 0.04) !important;
	color: var(--sd-ice) !important;
}

body.jit-product-cards #shop-sidebar .count {
	color: var(--sd-muted);
	opacity: 0.7;
}

/* =========================================================
   Product cards
   ========================================================= */
body.jit-product-cards .jit-product-card__inner {
	position: relative;
	padding: 10px;
	background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
	border: 1px solid var(--sd-line);
	border-radius: 20px;
	box-shadow: none;
	transition: transform 0.5s var(--sd-ease), border-color 0.4s ease, box-shadow 0.5s var(--sd-ease), background-color 0.4s ease;
}

body.jit-product-cards .jit-product-card:hover .jit-product-card__inner {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--accent) 55%, transparent);
	box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

body.jit-product-cards .jit-product-card__image-wrap {
	border-radius: 14px;
	background: #f4f7fb;
	overflow: hidden;
}

body.jit-product-cards .jit-product-card__image-wrap img {
	transition: transform 0.7s var(--sd-ease), opacity 0.4s ease;
}

body.jit-product-cards .jit-product-card:hover .jit-product-card__image-wrap img:first-child {
	transform: scale(1.06);
}

/* Old overlay CTA / accent line: replaced by the footer arrow */
body.jit-product-cards .jit-product-card__hover,
body.jit-product-cards .jit-product-card__accent {
	display: none !important;
}

body.jit-product-cards .jit-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 8px 4px;
	background: transparent;
}

body.jit-product-cards .jit-product-card__category {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: color-mix(in srgb, var(--accent) 65%, #fff);
}

body.jit-product-cards .jit-product-card__category::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 10px var(--accent);
}

body.jit-product-cards .jit-product-card__title {
	margin: 0 0 14px;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.4;
}

body.jit-product-cards .jit-product-card__title a {
	color: #fff !important;
	background: linear-gradient(90deg, currentColor, currentColor) 0 100% / 0 1px no-repeat;
	text-decoration: none;
	transition: background-size 0.45s var(--sd-ease);
}

body.jit-product-cards .jit-product-card:hover .jit-product-card__title a {
	background-size: 100% 1px;
}

body.jit-product-cards .jit-product-card__excerpt {
	color: var(--sd-muted);
}

body.jit-product-cards .jit-product-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--sd-line);
}

body.jit-product-cards .jit-product-card__sku {
	overflow: hidden;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--sd-muted);
	white-space: nowrap;
	text-overflow: ellipsis;
	font-variant-numeric: tabular-nums;
}

body.jit-product-cards .jit-product-card__go {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--sd-line);
	color: var(--sd-ice);
	transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.45s var(--sd-ease), color 0.3s ease;
}

body.jit-product-cards .jit-product-card:hover .jit-product-card__go {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	transform: rotate(-45deg);
}

/* Cards fade up as they enter */
@supports (animation-timeline: view()) {
	body.jit-product-cards .products .jit-product-card {
		animation: jitShopUp linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}
}

/* =========================================================
   Pagination, notices
   ========================================================= */
body.jit-product-cards .woocommerce-pagination .page-numbers li > * {
	border-color: var(--sd-line) !important;
	background: rgba(255, 255, 255, 0.04);
	color: var(--sd-ice) !important;
}

body.jit-product-cards .woocommerce-pagination .page-numbers .current {
	background: var(--sd-sky) !important;
	border-color: var(--sd-sky) !important;
	color: #0b1729 !important;
}

body.jit-product-cards .woocommerce-info,
body.jit-product-cards .woocommerce-no-products-found {
	color: var(--sd-ice);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 849px) {
	.jit-shop-hero {
		padding: 40px 0 26px;
	}

	.jit-shop-hero__inner {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 22px;
	}

	.jit-shop-hero__logo {
		width: 220px;
		padding: 14px 18px;
	}

	.jit-shop-chips {
		flex-wrap: nowrap;
		margin-top: 22px;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.jit-shop-chip {
		flex-shrink: 0;
	}

	body.jit-product-cards #shop-sidebar.sidebar-inner {
		position: static;
	}

	body.jit-product-cards .jit-product-card__inner {
		padding: 7px;
		border-radius: 16px;
	}

	body.jit-product-cards .jit-product-card__title {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jit-shop-hero *,
	body.jit-product-cards .products .jit-product-card {
		animation: none !important;
	}
}

/* Sidebar search: the wrapper (.flex-row) carries the field look */
body.jit-product-cards #shop-sidebar .widget_product_search .flex-row {
	border: 1px solid var(--sd-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
}

body.jit-product-cards #shop-sidebar .widget_product_search .flex-row:focus-within {
	border-color: var(--sd-sky);
	box-shadow: 0 0 0 3px rgba(95, 180, 255, 0.18);
}

body.jit-product-cards #shop-sidebar .widget_product_search .search-field {
	height: 44px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	font-size: 14px;
}

body.jit-product-cards #shop-sidebar .widget_product_search .search-field::placeholder {
	color: var(--sd-muted);
}

body.jit-product-cards #shop-sidebar .widget_product_search .ux-search-submit {
	height: 44px;
	min-height: 44px;
	border-radius: 0 !important;
	background: linear-gradient(120deg, #1660a8, #2f86d6) !important;
}

/* Sort select: light chevron */
body.jit-product-cards .woocommerce-ordering select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23dcefff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
}

body.jit-product-cards .jit-product-card__category {
	text-transform: uppercase;
}

/* Mobile "Filter" toggle */
body.jit-product-cards .category-filtering a,
body.jit-product-cards .filter-button {
	color: var(--sd-ice) !important;
}
