/* ==========================================================================
   AR Instruments — Shop (premium soft cards + AJAX filters)
   ========================================================================== */

:root {
	--ar-brand: #00a8e8;
	--ar-brand-dark: #1d2764;
	--ar-brand-soft: #e8f6fc;
	--ar-brand-mid: #b8e4f6;
	--ar-ink: #142033;
	--ar-muted: #5c6778;
	--ar-line: #d7e4f2;
	--ar-surface: #ffffff;
	--ar-page: #f4f7fb;
	--ar-radius: 18px;
	--ar-radius-sm: 12px;
	--ar-shadow: 0 16px 40px rgba(29, 39, 100, 0.12);
	--ar-shadow-soft: 0 10px 26px rgba(29, 39, 100, 0.08);
	--ar-container: 1280px;
}

body.ar-shop-page {
	background:
		radial-gradient(900px 380px at 8% -8%, rgba(0, 168, 232, 0.12), transparent 55%),
		radial-gradient(700px 320px at 100% 0%, rgba(29, 39, 100, 0.08), transparent 50%),
		var(--ar-page);
	color: var(--ar-ink);
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
}

body.ar-shop-page .ar-shop-shell,
body.ar-shop-page .ar-shop-filters,
body.ar-shop-page .ar-shop-toolbar {
	font-family: "Inter Tight", sans-serif;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
}

body.ar-shop-page .ar-shop-shell :is(h1, h2, h3, h4, h5, h6, .elementor-heading-title) {
	letter-spacing: 0.01em !important;
	word-spacing: 0.03em;
}

body.ar-shop-page .site-main,
body.ar-shop-page .content-area,
body.ar-shop-page .page-content {
	background: transparent;
}

body.ar-shop-page .woocommerce-products-header {
	display: none;
}

body.ar-shop-page .woocommerce-breadcrumb {
	max-width: var(--ar-container);
	margin: 80px auto 0;
	padding: 0 1rem;
	font-size: 0.86rem;
	color: var(--ar-muted);
}

body.ar-shop-page .woocommerce-breadcrumb a {
	color: var(--ar-brand);
	text-decoration: none;
}

.ar-shop-shell {
	max-width: var(--ar-container);
	width: 100%;
	margin: 0 auto;
	padding: 0.85rem 1rem 64px;
	box-sizing: border-box;
}

/* Compact hero */
.ar-shop-hero {
	margin: 0 0 1.35rem;
	padding: 1.25rem 1.35rem 1.3rem;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 246, 254, 0.98) 100%);
	border: 1px solid rgba(215, 228, 242, 0.95);
	border-radius: 20px;
	box-shadow: var(--ar-shadow-soft);
}

.ar-shop-eyebrow {
	margin: 0 0 0.35rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ar-brand);
}

.ar-shop-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.65rem, 2.5vw, 2.15rem);
	line-height: 1.28;
	font-weight: 800;
	color: var(--ar-brand-dark);
	letter-spacing: 0.01em;
	font-family: "Maven Pro", sans-serif;
}

.ar-shop-desc {
	margin: 0;
	max-width: 58ch;
	color: var(--ar-muted);
	font-size: 0.96rem;
	line-height: 1.65;
	letter-spacing: 0.01em;
	word-spacing: 0.04em;
}

.ar-shop-hero-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-bottom: 0.4rem;
}

.ar-shop-hero-row .ar-shop-title {
	margin: 0;
}

.ar-shop-crumb {
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	color: var(--ar-muted);
}

.ar-shop-crumb a {
	color: var(--ar-brand);
	text-decoration: none;
}

.ar-shop-crumb a:hover {
	text-decoration: underline;
}

.ar-shop-count-pill {
	display: inline-flex;
	align-items: center;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	background: linear-gradient(135deg, #00a8e8 0%, #0066cc 100%);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	box-shadow: 0 8px 18px rgba(0, 168, 232, 0.28);
}

.ar-shop-cat-chips {
	margin-top: 1.05rem;
	padding-top: 0.95rem;
	border-top: 1px solid rgba(215, 228, 242, 0.95);
}

.ar-shop-cat-chips-label {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ar-muted);
}

.ar-shop-cat-chips-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ar-shop-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.48rem 0.85rem;
	border: 1px solid rgba(0, 168, 232, 0.22);
	border-radius: 999px;
	background: #fff;
	color: var(--ar-brand-dark);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	word-spacing: 0.02em;
	box-shadow: 0 6px 16px rgba(29, 39, 100, 0.06);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ar-shop-cat-chip em {
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--ar-brand);
	background: var(--ar-brand-soft);
	border-radius: 999px;
	padding: 0.1rem 0.45rem;
}

.ar-shop-cat-chip:hover {
	transform: translateY(-1px);
	border-color: rgba(0, 168, 232, 0.55);
	background: var(--ar-brand-soft);
	color: var(--ar-brand-dark);
}

.ar-shop-subcats {
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(215, 227, 242, 0.95);
}

.ar-shop-subcats-label {
	display: block;
	margin-bottom: 0.55rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ar-muted);
}

.ar-shop-subcats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ar-shop-subcat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.42rem 0.75rem;
	border-radius: 999px;
	background: #fff;
	color: var(--ar-ink);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	box-shadow: var(--ar-shadow-soft);
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ar-shop-subcat em {
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--ar-brand);
	background: var(--ar-brand-soft);
	border-radius: 999px;
	padding: 0.08rem 0.42rem;
}

.ar-shop-subcat:hover {
	transform: translateY(-1px);
	color: var(--ar-brand-dark);
}

.ar-shop-subcat.is-active {
	background: var(--ar-brand);
	color: #fff;
}

.ar-shop-subcat.is-active em {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

body.ar-shop-search .ar-shop-hero {
	background: linear-gradient(135deg, #ffffff 0%, #eaf3fb 100%);
	border: 0;
	border-radius: 16px;
	padding: 1.1rem 1.2rem 1.15rem;
	box-shadow: var(--ar-shadow-soft);
	border-bottom: 0;
}

body.ar-shop-category .ar-shop-hero {
	padding-bottom: 1rem;
}

.ar-shop-layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

/* Sticky filters (desktop) — stay visible while products scroll */
body.ar-shop-page .site-main,
body.ar-shop-page .content-area,
body.ar-shop-page #content,
body.ar-shop-page .ar-shop-shell,
body.ar-shop-page .ar-shop-layout {
	overflow: visible !important;
}

.ar-shop-filters {
	--ar-filters-top: 96px;
	position: sticky;
	top: var(--ar-filters-top);
	z-index: 40;
	align-self: start;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(215, 228, 242, 0.95);
	border-radius: 20px;
	box-shadow: var(--ar-shadow-soft);
	padding: 1.15rem 1.1rem 1.2rem;
	max-height: calc(100vh - var(--ar-filters-top) - 1rem);
	overflow: hidden;
}

body.admin-bar .ar-shop-filters {
	--ar-filters-top: 128px;
}

@media (max-width: 782px) {
	body.admin-bar .ar-shop-filters {
		--ar-filters-top: 142px;
	}
}

.ar-shop-filters-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	margin-bottom: 1.1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--ar-line);
}

.ar-shop-filters-eyebrow {
	margin: 0 0 0.2rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ar-brand);
}

.ar-shop-filters-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var(--ar-brand-dark);
	font-family: "Maven Pro", sans-serif;
}

.ar-shop-filter-form {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: 0;
}

.ar-shop-filters-close {
	display: none;
	border: 0;
	background: var(--ar-brand-soft);
	color: var(--ar-brand-dark);
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.ar-filter-block {
	margin-bottom: 1.15rem;
}

.ar-filter-block--cats {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	margin-bottom: 0.85rem;
}

.ar-filter-label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ar-muted);
}

.ar-filter-cats-scroll {
	flex: 1;
	min-height: 180px;
	max-height: min(420px, calc(100vh - 22rem));
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.35rem 0.45rem 0.35rem 0.15rem;
	margin: 0 -0.15rem;
	border: 1px solid rgba(215, 228, 242, 0.95);
	border-radius: 14px;
	background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 168, 232, 0.55) rgba(29, 39, 100, 0.06);
}

.ar-filter-cats-scroll:focus-visible {
	outline: 2px solid rgba(0, 168, 232, 0.45);
	outline-offset: 2px;
}

.ar-filter-cats-scroll::-webkit-scrollbar {
	width: 8px;
}

.ar-filter-cats-scroll::-webkit-scrollbar-track {
	background: rgba(29, 39, 100, 0.05);
	border-radius: 999px;
	margin: 6px 0;
}

.ar-filter-cats-scroll::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(0, 168, 232, 0.75) 0%, rgba(0, 102, 204, 0.85) 100%);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

.ar-filter-cats-scroll::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, rgba(34, 184, 239, 0.9) 0%, rgba(0, 102, 204, 1) 100%);
	background-clip: padding-box;
}

.ar-filter-input {
	width: 100%;
	border: 1px solid #e3ebf5;
	border-radius: 11px;
	padding: 0.6rem 0.75rem;
	font-size: 0.93rem;
	line-height: 1.45;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	color: var(--ar-ink);
	background: #f7faff;
	min-height: 44px;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ar-filter-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--ar-brand);
	box-shadow: 0 0 0 3px rgba(30, 90, 168, 0.14);
}

.ar-filter-price-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.4rem;
	align-items: center;
}

.ar-filter-price-sep {
	color: var(--ar-muted);
	font-weight: 700;
}

.ar-filter-group {
	border: 1px solid rgba(215, 228, 242, 0.9);
	border-radius: 12px;
	margin-bottom: 0.45rem;
	background: #f8fbfe;
	overflow: hidden;
}

.ar-filter-group-summary {
	list-style: none;
	cursor: pointer;
	padding: 0.2rem 0.35rem;
	background: transparent;
}

.ar-filter-group[open] {
	background: #fff;
	border-color: rgba(0, 168, 232, 0.35);
	box-shadow: 0 8px 18px rgba(0, 168, 232, 0.08);
}

.ar-filter-group-summary::-webkit-details-marker {
	display: none;
}

.ar-filter-sublist,
.ar-filter-tags {
	list-style: none;
	margin: 0;
	padding: 0 0.35rem 0.45rem 0.85rem;
}

.ar-filter-sublist li,
.ar-filter-tags li {
	margin: 0;
}

.ar-filter-cats {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ar-filter-check--root {
	border: 1px solid rgba(215, 228, 242, 0.9);
	border-radius: 12px;
	margin-bottom: 0.45rem;
	padding: 0.55rem 0.65rem !important;
	background: #f8fbfe;
}

.ar-filter-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.42rem 0.35rem;
	cursor: pointer;
	font-size: 0.9rem;
	color: var(--ar-ink);
	width: 100%;
	border-radius: 9px;
	transition: background 0.15s ease;
}

.ar-filter-check:hover {
	background: var(--ar-brand-soft);
}

.ar-filter-check span {
	flex: 1;
	min-width: 0;
	line-height: 1.45;
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
}

.ar-filter-check em {
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ar-brand);
	background: var(--ar-brand-soft);
	border-radius: 999px;
	padding: 0.12rem 0.48rem;
	min-width: 1.6rem;
	text-align: center;
}

.ar-filter-check input {
	accent-color: var(--ar-brand);
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.ar-filter-tags {
	max-height: 210px;
	overflow: auto;
	border: 1px solid rgba(215, 228, 242, 0.95);
	border-radius: 12px;
	padding: 0.25rem 0.35rem 0.25rem 0.25rem;
	background: #f7faff;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 168, 232, 0.55) rgba(29, 39, 100, 0.06);
}

.ar-filter-tags::-webkit-scrollbar {
	width: 7px;
}

.ar-filter-tags::-webkit-scrollbar-track {
	background: rgba(29, 39, 100, 0.05);
	border-radius: 999px;
}

.ar-filter-tags::-webkit-scrollbar-thumb {
	background: rgba(0, 168, 232, 0.55);
	border-radius: 999px;
}

.ar-filter-actions {
	display: grid;
	gap: 0.45rem;
	flex-shrink: 0;
	position: sticky;
	bottom: 0;
	padding-top: 0.75rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.ar-filter-apply {
	border: 0;
	border-radius: 12px;
	min-height: 46px;
	padding: 0.7rem 1rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(180deg, #22b8ef 0%, #00a8e8 55%, #0066cc 100%);
	box-shadow: 0 10px 20px rgba(0, 168, 232, 0.28);
}

.ar-filter-apply:hover {
	filter: brightness(1.04);
}

.ar-filter-clear {
	text-align: center;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--ar-muted);
	text-decoration: none;
	padding: 0.35rem;
}

.ar-filter-clear:hover {
	color: var(--ar-brand-dark);
	text-decoration: underline;
}

/* ---------- Main / loader ---------- */
.ar-shop-main {
	min-width: 0;
	position: relative;
}

.ar-shop-results {
	min-height: 280px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ar-shop-loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: rgba(238, 243, 249, 0.78);
	backdrop-filter: blur(4px);
	border-radius: 18px;
}

.ar-shop-loader[hidden] {
	display: none !important;
}

.ar-shop-spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid var(--ar-brand-mid);
	border-top-color: var(--ar-brand);
	animation: arShopSpin 0.7s linear infinite;
}

.ar-shop-loader-text {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ar-brand-dark);
}

@keyframes arShopSpin {
	to {
		transform: rotate(360deg);
	}
}

.ar-shop-main.is-loading .ar-shop-results {
	opacity: 0.4;
	pointer-events: none;
}

.ar-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.05rem;
	background: #fff;
	border: 1px solid rgba(215, 228, 242, 0.95);
	border-radius: 14px;
	box-shadow: var(--ar-shadow-soft);
}

body.ar-shop-page .woocommerce-result-count,
body.ar-shop-page .woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}

body.ar-shop-page .woocommerce-result-count {
	color: var(--ar-muted);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
}

body.ar-shop-page .woocommerce-ordering select {
	border: 1px solid #e3ebf5;
	border-radius: 10px;
	padding: 0.45rem 2rem 0.45rem 0.75rem;
	min-height: 42px;
	background: #f7faff;
	color: var(--ar-ink);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.01em;
}

/* ---------- Premium soft product cards ---------- */
body.ar-shop-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem !important;
	margin: 0 !important;
	padding: 0;
	clear: both;
	background: transparent;
}

body.ar-shop-page ul.products::before,
body.ar-shop-page ul.products::after {
	display: none !important;
	content: none !important;
}

body.ar-shop-page ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 16px !important;
	box-shadow: var(--ar-shadow-soft) !important;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.ar-shop-page ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: var(--ar-shadow) !important;
}

body.ar-shop-page ul.products li.product .ar-shop-card-media {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: 0;
	background: linear-gradient(160deg, #e7f1fb 0%, #f5f9fd 48%, #eaf2f9 100%);
	position: relative;
}

body.ar-shop-page ul.products li.product .ar-shop-card-media::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 28%;
	background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55));
	pointer-events: none;
}

body.ar-shop-page ul.products li.product a img,
body.ar-shop-page .ar-shop-card-media img {
	margin: 0 !important;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	padding: 1.35rem;
	background: transparent !important;
	border-radius: 0;
	transition: transform 0.35s ease;
}

body.ar-shop-page ul.products li.product:hover .ar-shop-card-media img {
	transform: scale(1.04);
}

/* Body of card */
body.ar-shop-page ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none !important;
	color: inherit;
}

.ar-shop-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0;
	padding: 0.95rem 1rem 0.35rem;
}

.ar-shop-card-cat {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ar-brand);
}

.ar-shop-card-sku {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--ar-brand-dark);
	letter-spacing: 0.02em;
	white-space: nowrap;
	background: var(--ar-brand-soft);
	border-radius: 999px;
	padding: 0.18rem 0.55rem;
}

body.ar-shop-page ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.98rem !important;
	font-weight: 700 !important;
	line-height: 1.45;
	color: var(--ar-ink);
	padding: 0 1rem !important;
	margin: 0 0 0.55rem !important;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	min-height: 2.7em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.ar-shop-page ul.products li.product .price {
	color: var(--ar-ink) !important;
	font-weight: 800;
	font-size: 1.12rem;
	margin: 0 0 0.85rem !important;
	padding: 0 1rem;
	letter-spacing: 0.01em;
}

body.ar-shop-page ul.products li.product .price .woocommerce-Price-currencySymbol {
	color: var(--ar-brand);
	font-weight: 700;
	margin-right: 0.08em;
}

body.ar-shop-page ul.products li.product .button,
body.ar-shop-page ul.products li.product a.button {
	display: none !important;
}

.ar-shop-view {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 1rem 1rem;
	padding: 0.65rem 0.85rem !important;
	min-height: 42px;
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--ar-brand) !important;
	text-decoration: none !important;
	background: var(--ar-brand-soft) !important;
	border: 0 !important;
	border-radius: 11px !important;
	box-shadow: none !important;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ar-shop-view::after {
	content: '→';
	transition: transform 0.2s ease;
}

.ar-shop-view:hover {
	background: var(--ar-brand) !important;
	color: #fff !important;
}

.ar-shop-view:hover::after {
	transform: translateX(3px);
}

/* Pagination */
body.ar-shop-page .woocommerce-pagination {
	margin-top: 0.5rem;
	text-align: center;
}

body.ar-shop-page .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	gap: 0.35rem;
	border: 0;
	padding: 0;
}

body.ar-shop-page .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

body.ar-shop-page .woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.65rem;
	border-radius: 11px;
	border: 0;
	background: #fff;
	color: var(--ar-ink);
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--ar-shadow-soft);
}

body.ar-shop-page .woocommerce-pagination .page-numbers.current,
body.ar-shop-page .woocommerce-pagination a.page-numbers:hover {
	background: var(--ar-brand);
	color: #fff;
}

.ar-shop-filter-toggle {
	display: none;
	width: 100%;
	margin-bottom: 0.85rem;
	border: 1px solid rgba(0, 168, 232, 0.28);
	border-radius: 14px;
	min-height: 48px;
	background: linear-gradient(135deg, #ffffff 0%, #e8f6fc 100%);
	color: var(--ar-brand-dark);
	font-weight: 800;
	cursor: pointer;
	box-shadow: var(--ar-shadow-soft);
}

.ar-shop-filter-backdrop {
	display: none;
}

body.ar-shop-filters-open {
	overflow: hidden;
}

@media (max-width: 980px) {
	body.ar-shop-page .woocommerce-breadcrumb {
		margin-top: 48px;
	}

	.ar-shop-shell {
		padding: 0.75rem 1rem 48px;
	}

	.ar-shop-layout {
		grid-template-columns: 1fr;
	}

	.ar-shop-filter-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ar-shop-filters {
		--ar-filters-top: 0px;
		position: fixed;
		z-index: 10050;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(360px, 92vw);
		max-height: none;
		border-radius: 0 18px 18px 0;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
		box-shadow: 8px 0 40px rgba(20, 63, 120, 0.18);
		align-self: stretch;
	}

	body.admin-bar .ar-shop-filters {
		--ar-filters-top: 0px;
		top: 0;
	}

	body.ar-shop-filters-open .ar-shop-filters {
		transform: translateX(0);
	}

	.ar-filter-cats-scroll {
		max-height: calc(100vh - 20rem);
	}

	.ar-shop-filters-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.ar-shop-filter-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 10040;
		background: rgba(20, 32, 51, 0.45);
	}

	.ar-shop-filter-backdrop[hidden] {
		display: none !important;
	}

	body.ar-shop-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	body.ar-shop-page ul.products {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

/* ==========================================================================
   Category pages — premium AR Instruments catalog
   ========================================================================== */

body.ar-shop-category {
	background:
		radial-gradient(900px 420px at 0% -5%, rgba(19, 74, 130, 0.07), transparent 55%),
		radial-gradient(700px 360px at 100% 8%, rgba(8, 125, 182, 0.06), transparent 50%),
		linear-gradient(180deg, #f5f8fc 0%, #eef3f8 40%, #f7f9fc 100%);
}

body.ar-shop-category .woocommerce-breadcrumb {
	display: none;
}

.ar-cat-banner {
	position: relative;
	isolation: isolate;
	/* True full-bleed edge-to-edge (Hello Elementor boxed content parent) */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 4.75rem 0 2rem;
	color: #fff;
	background-color: #000a33;
	background-image: var(--ar-cat-banner-bg);
	background-size: cover;
	background-position: bottom center;
	background-repeat: no-repeat;
	overflow: hidden;
	box-sizing: border-box;
}

/* Parent wrappers must not clip the full-bleed banner */
body.ar-shop-category #content,
body.ar-shop-category .site-main,
body.ar-shop-category .page-content,
body.ar-shop-category .content-area {
	max-width: none !important;
	overflow: visible !important;
	width: 100% !important;
}

.ar-cat-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(115deg, rgba(0, 10, 51, 0.94) 0%, rgba(29, 39, 100, 0.88) 48%, rgba(0, 87, 184, 0.82) 100%);
}

.ar-cat-banner::after {
	content: '';
	position: absolute;
	right: -8%;
	bottom: -40%;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
	pointer-events: none;
	z-index: -1;
}

.ar-cat-banner-inner {
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	padding: 0 1.25rem;
	position: relative;
	box-sizing: border-box;
}

.ar-cat-banner-eyebrow {
	margin: 0 0 0.55rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.ar-cat-banner-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	margin-bottom: 0.65rem;
}

.ar-cat-banner-title {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.22;
	color: #fff !important;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.ar-cat-banner-count {
	display: inline-flex;
	align-items: center;
	padding: 0.38rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: #fff;
}

.ar-cat-banner-crumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.88rem;
}

.ar-cat-banner-crumb li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: rgba(255, 255, 255, 0.88);
}

.ar-cat-banner-crumb li:not(:last-child)::after {
	content: '›';
	opacity: 0.75;
	margin-left: 0.1rem;
	font-weight: 700;
}

.ar-cat-banner-crumb a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.ar-cat-banner-crumb a:hover {
	border-bottom-color: rgba(255, 255, 255, 0.7);
}

.ar-shop-shell--landing {
	max-width: 1140px;
	padding-top: 2.75rem;
	padding-bottom: 4rem;
}

/* Intro — premium two-column */
.ar-cat-intro--landing {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 2rem 2.5rem;
	align-items: start;
	margin: 0 0 2.75rem;
	padding: 1.75rem 1.75rem 1.85rem;
	background: #fff;
	border: 1px solid rgba(215, 227, 242, 0.95);
	border-radius: 20px;
	box-shadow: 0 18px 48px rgba(19, 74, 130, 0.07);
}

.ar-cat-intro-kicker {
	margin: 0 0 0.4rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #087db6;
}

.ar-cat-intro-heading {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 2.2vw, 1.7rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	color: #0d355e;
	line-height: 1.28;
}

.ar-cat-intro-lead,
.ar-cat-intro-copy > p:not(.ar-cat-intro-kicker):not(.ar-cat-intro-sub) {
	margin: 0 0 1.15rem;
	font-size: 0.98rem;
	line-height: 1.65;
	color: #3a4a5c;
}

.ar-cat-intro-media {
	margin: 0;
	position: relative;
}

.ar-cat-intro-media::before {
	content: '';
	position: absolute;
	inset: 14px -12px -12px 14px;
	border-radius: 16px;
	background: #134a82;
	z-index: 0;
}

.ar-cat-intro-img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 16px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	box-shadow: 0 16px 36px rgba(13, 53, 94, 0.22);
}

.ar-cat-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.ar-cat-checklist li {
	display: grid;
	grid-template-columns: 1.15rem minmax(0, 1fr);
	column-gap: 0.7rem;
	align-items: start;
	margin: 0;
	padding: 0.55rem 0.75rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #1c2a3a;
	background: #f4f8fc;
	border-radius: 10px;
	border: 1px solid rgba(215, 227, 242, 0.8);
}

.ar-cat-checklist li > span:last-child {
	display: block;
	min-width: 0;
	padding-top: 0;
}

.ar-cat-checklist strong {
	display: inline;
	font-weight: 800;
	color: #0d355e;
	line-height: 1.45;
}

.ar-cat-check {
	display: block;
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.12rem 0 0;
	border-radius: 4px;
	background: linear-gradient(145deg, #134a82, #087db6);
	position: relative;
	box-shadow: 0 2px 6px rgba(19, 74, 130, 0.28);
}

.ar-cat-check::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 45%;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -55%) rotate(45deg);
	box-sizing: border-box;
}

/* Leaf boxed intro */
.ar-cat-intro--boxed {
	margin: 0 0 1.85rem;
	padding: 1.5rem 1.6rem 1.55rem;
	background: #fff;
	border: 1px solid rgba(215, 227, 242, 0.95);
	border-radius: 18px;
	box-shadow: 0 14px 36px rgba(19, 74, 130, 0.06);
	position: relative;
	overflow: hidden;
}

.ar-cat-intro--boxed::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #134a82, #087db6);
}

.ar-cat-intro-sub {
	margin: 0 0 0.75rem;
	font-size: 1.02rem;
	font-weight: 700;
	color: #134a82;
}

.ar-cat-intro--boxed p:not(.ar-cat-intro-kicker):not(.ar-cat-intro-sub) {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #3a4a5c;
}

.ar-cat-intro--boxed p + p {
	margin-top: 0.85rem;
}

/* Range section + cards */
.ar-cat-range {
	margin-top: 0.35rem;
}

.ar-cat-range-head {
	margin: 0 0 1.35rem;
	text-align: left;
}

.ar-cat-range-kicker {
	margin: 0 0 0.35rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #087db6;
}

.ar-cat-range-title {
	margin: 0;
	font-size: clamp(1.3rem, 2vw, 1.55rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	word-spacing: 0.03em;
	line-height: 1.28;
	color: #0d355e;
}

.ar-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.45rem;
}

.ar-cat-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(215, 227, 242, 0.9);
	box-shadow: 0 10px 28px rgba(19, 74, 130, 0.07);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.ar-cat-card:hover {
	transform: translateY(-6px);
	border-color: rgba(19, 74, 130, 0.28);
	box-shadow: 0 22px 48px rgba(19, 74, 130, 0.16);
}

.ar-cat-card-media {
	display: block;
	background: linear-gradient(165deg, #e8f1f9 0%, #f7fafc 55%, #eef4fa 100%);
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
}

.ar-cat-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ar-cat-card:hover .ar-cat-card-media img {
	transform: scale(1.05);
}

.ar-cat-card-count {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	min-width: 2rem;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: rgba(13, 53, 94, 0.88);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	text-align: center;
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ar-cat-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	padding: 0.85rem 0.95rem;
	background: linear-gradient(135deg, #134a82 0%, #0d355e 100%);
}

.ar-cat-card-label {
	display: block;
	color: #fff;
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.25;
}

.ar-cat-card-cta {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.85;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	transition: opacity 0.2s ease, background 0.2s ease;
}

.ar-cat-card:hover .ar-cat-card-cta {
	opacity: 1;
	background: rgba(255, 255, 255, 0.22);
}

/* Leaf category: soft premium product cards */
body.ar-shop-leaf-cat .ar-shop-shell {
	max-width: 1140px;
	padding-top: 2.25rem;
	padding-bottom: 3.5rem;
}

body.ar-shop-leaf-cat .ar-shop-main--leaf {
	position: relative;
}

body.ar-shop-leaf-cat .ar-shop-toolbar {
	margin-bottom: 1.15rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid rgba(215, 227, 242, 0.95);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(19, 74, 130, 0.05);
}

body.ar-shop-leaf-cat ul.products li.product {
	border-radius: 16px !important;
	box-shadow: 0 10px 28px rgba(19, 74, 130, 0.07) !important;
	border: 1px solid rgba(215, 227, 242, 0.95) !important;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.ar-shop-leaf-cat ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: 0 20px 42px rgba(19, 74, 130, 0.14) !important;
}

body.ar-shop-leaf-cat ul.products li.product .ar-shop-card-media {
	background: linear-gradient(165deg, #eef4fa, #f8fafc);
}

body.ar-shop-leaf-cat ul.products li.product .ar-shop-card-media::after {
	display: none;
}

body.ar-shop-leaf-cat .ar-shop-card-meta {
	display: none;
}

body.ar-shop-leaf-cat ul.products li.product .woocommerce-loop-product__title {
	margin: 0 !important;
	padding: 0.85rem 0.95rem !important;
	min-height: 0;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	line-height: 1.35;
	text-align: center;
	color: #fff !important;
	background: linear-gradient(135deg, #134a82 0%, #0d355e 100%);
	-webkit-line-clamp: 3;
}

body.ar-shop-leaf-cat ul.products li.product .price,
body.ar-shop-leaf-cat .ar-shop-view {
	display: none !important;
}

body.ar-shop-leaf-cat ul.products li.product .woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
}

@media (max-width: 960px) {
	.ar-cat-intro--landing {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.ar-cat-intro-media {
		order: -1;
		max-width: 520px;
	}

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

@media (max-width: 640px) {
	.ar-cat-banner {
		padding: 3.4rem 0 1.5rem;
	}

	.ar-cat-banner-inner {
		padding: 0 1rem;
	}

	.ar-cat-banner-title {
		font-size: clamp(1.55rem, 7vw, 2rem);
		line-height: 1.2;
		word-break: break-word;
	}

	.ar-cat-banner-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.ar-cat-checklist label {
		align-items: flex-start;
	}

	.ar-cat-intro--landing,
	.ar-cat-intro--boxed {
		padding: 1.2rem 1.15rem 1.3rem;
		border-radius: 16px;
	}

	.ar-cat-intro-media::before {
		inset: 10px -8px -8px 10px;
	}

	.ar-cat-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
		gap: 1.15rem;
	}
}


