/**
 * Intrinsic Blue — Shop / product archive
 * Geometry follows the supplied shop-page-standalone reference while
 * products, categories, ordering and pagination remain WooCommerce driven.
 */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag {
	overflow-x: hidden;
	background: #0A0C16 !important;
}

/* Remove Astra/Woo wrappers that were creating the stray left-side "Shop"
   title and extra vertical whitespace in the live page. */
body.woocommerce-shop .site-content > .ast-container,
body.tax-product_cat .site-content > .ast-container,
body.tax-product_tag .site-content > .ast-container {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.woocommerce-shop #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.woocommerce-shop .ast-woocommerce-container,
body.tax-product_cat .ast-woocommerce-container,
body.tax-product_tag .ast-woocommerce-container,
body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	background: #0A0C16 !important;
}

body.woocommerce-shop #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary {
	display: none !important;
}

body.woocommerce-shop .entry-header,
body.woocommerce-shop .entry-title,
body.woocommerce-shop .page-title,
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .woocommerce-products-header__title,
body.woocommerce-shop .woocommerce-breadcrumb,
body.tax-product_cat .entry-header,
body.tax-product_cat .entry-title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .entry-header,
body.tax-product_tag .entry-title,
body.tax-product_tag .woocommerce-products-header__title {
	display: none !important;
}

/* ---------- Hero ---------- */
.ib-shop-hero {
	position: relative;
	width: 100vw;
	height: 355px;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding: 0;
	background-color: #0A0C16;
	background-image: url('../images/shop-hero.jpg');
	background-size: cover;
	background-position: center 52%;
	text-align: center;
	overflow: hidden;
}

.ib-shop-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(4,26,45,.82), rgba(14,43,73,.69) 45%, rgba(9,30,54,.72));
}

.ib-shop-hero__inner {
	position: relative;
	z-index: 1;
	height: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 81px 20px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ib-shop-hero__eyebrow,
.ib-shop-hero .ib-pill.ib-shop-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 23px;
	margin: 0;
	padding: 6px 17px 5px;
	border: 1px solid rgba(122,213,255,.38);
	border-radius: 14px;
	background: rgba(111,191,232,.17);
	color: #73d3fa;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05px;
}

.ib-shop-hero h1,
.ib-shop-hero .ib-heading-display--lg {
	margin: 27px 0 33px;
	font-family: var(--ib-font-display);
	font-style: italic;
	font-weight: 500;
	font-size: 50px;
	line-height: 1;
	letter-spacing: -1.3px;
	color: #f7f7fb;
	text-shadow: 0 1px 2px rgba(0,0,0,.22);
}

.ib-shop-hero__subtext {
	max-width: 680px;
	margin: 0;
	color: #d6dce5;
	font-size: 17px;
	line-height: 1.22;
	font-weight: 400;
}

/* ---------- Toolbar ---------- */
.ib-shop-filters-row {
	width: 1007px;
	max-width: calc(100% - 36px);
	height: 36px;
	margin: 48px auto 31px !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
}

.ib-category-pills {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ib-shop-filters-row .ib-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 16px;
	border: 1px solid #4c4c59;
	border-radius: 18px;
	background: #24242f;
	color: #dddde4;
	font-family: var(--ib-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 34px;
	white-space: nowrap;
}


.ib-category-filter {
	font: inherit;
	cursor: pointer;
}

.ib-category-filter:disabled {
	cursor: wait;
	opacity: .72;
}

ul.products.is-filtering {
	opacity: .55;
	pointer-events: none;
	transition: opacity .16s ease;
}

.ib-load-more-wrap[hidden] {
	display: none !important;
}
.ib-shop-filters-row .ib-pill.is-active {
	border-color: #5652f6;
	background: #5652f6;
	color: #fff;
}

.ib-sort-control {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 13px;
	flex: 0 0 auto;
	color: #7f7f8b;
	font-size: 14px;
	white-space: nowrap;
}

.ib-orderby-form {
	margin: 0 !important;
	display: block;
}

.ib-orderby-select,
body.woocommerce .ib-orderby-select {
	width: 113px;
	min-width: 113px;
	height: 35px;
	margin: 0 !important;
	padding: 0 35px 0 13px !important;
	border: 1px solid #41414f !important;
	border-radius: 10px !important;
	background-color: #181822 !important;
	background-image: linear-gradient(45deg,transparent 50%,#bfc0cb 50%), linear-gradient(135deg,#bfc0cb 50%,transparent 50%) !important;
	background-position: calc(100% - 16px) 14px, calc(100% - 12px) 14px !important;
	background-size: 4px 4px,4px 4px !important;
	background-repeat: no-repeat !important;
	color: #d7d7df !important;
	font-family: var(--ib-font-body);
	font-size: 14px;
	line-height: 35px;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
}

/* ---------- WooCommerce product grid ---------- */
body.woocommerce-shop .woocommerce ul.products,
body.tax-product_cat .woocommerce ul.products,
body.tax-product_tag .woocommerce ul.products,
body.woocommerce-shop ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
	width: 1007px !important;
	max-width: calc(100% - 36px) !important;
	margin: 0 auto !important;
	padding: 0 !important;
	display: grid !important;
	grid-template-columns: repeat(3, 320px) !important;
	gap: 23px 24px !important;
	justify-content: center;
	list-style: none !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
	display: none !important;
	content: none !important;
}

/* ---------- Reference-sized product cards ---------- */
body.woocommerce-shop .ib-product-card,
body.tax-product_cat .ib-product-card,
body.tax-product_tag .ib-product-card {
	width: 320px !important;
	height: 393px;
	min-height: 393px;
	margin: 0 !important;
	border: 1px solid #4b4b58;
	border-radius: 14px;
	background: #171721;
	box-shadow: none;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: none;
}

body.woocommerce-shop .ib-product-card:hover,
body.tax-product_cat .ib-product-card:hover,
body.tax-product_tag .ib-product-card:hover {
	transform: none;
}

body.woocommerce-shop .ib-product-card__link,
body.tax-product_cat .ib-product-card__link,
body.tax-product_tag .ib-product-card__link {
	display: flex;
	flex-direction: column;
	min-height: 0;
	color: inherit;
}

body.woocommerce-shop .ib-product-card__media,
body.tax-product_cat .ib-product-card__media,
body.tax-product_tag .ib-product-card__media {
	width: 100%;
	height: 261px;
	min-height: 261px;
	flex: 0 0 261px;
	aspect-ratio: auto;
	background: #292933;
	overflow: hidden;
}

body.woocommerce-shop .ib-product-card__media img,
body.tax-product_cat .ib-product-card__media img,
body.tax-product_tag .ib-product-card__media img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transform: none !important;
}

body.woocommerce-shop .ib-badge,
body.tax-product_cat .ib-badge,
body.tax-product_tag .ib-badge {
	left: 12px;
	top: 12px;
	height: 22px;
	min-width: 51px;
	padding: 0 10px;
	border-radius: 12px;
	background: #5b57f5;
	color: #d8f5ff;
	font-size: 11px;
	font-weight: 700;
	line-height: 22px;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

body.woocommerce-shop .ib-product-card__body,
body.tax-product_cat .ib-product-card__body,
body.tax-product_tag .ib-product-card__body {
	padding: 15px 15px 0;
	min-height: 0;
	flex: 1 1 auto;
}

body.woocommerce-shop .ib-product-card__category,
body.tax-product_cat .ib-product-card__category,
body.tax-product_tag .ib-product-card__category {
	margin: 0 0 9px;
	color: #8f8f9b;
	font-size: 11px;
	line-height: 1;
}

body.woocommerce-shop .ib-product-card .ib-product-card__title,
body.tax-product_cat .ib-product-card .ib-product-card__title,
body.tax-product_tag .ib-product-card .ib-product-card__title {
	margin: 0 0 8px;
	color: #f3f3f5;
	font-family: var(--ib-font-body);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.12;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.woocommerce-shop .ib-product-card__rating,
body.tax-product_cat .ib-product-card__rating,
body.tax-product_tag .ib-product-card__rating {
	height: 16px;
	margin: 0;
	gap: 5px;
}

body.woocommerce-shop .ib-product-card__rating .star-rating,
body.tax-product_cat .ib-product-card__rating .star-rating,
body.tax-product_tag .ib-product-card__rating .star-rating {
	font-size: 14px;
	line-height: 1;
}

body.woocommerce-shop .ib-product-card__review-count,
body.tax-product_cat .ib-product-card__review-count,
body.tax-product_tag .ib-product-card__review-count {
	font-size: 11px;
	color: #888895;
}

body.woocommerce-shop .ib-product-card__footer,
body.tax-product_cat .ib-product-card__footer,
body.tax-product_tag .ib-product-card__footer {
	min-height: 45px;
	margin-top: auto;
	padding: 0 15px 13px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

body.woocommerce-shop .ib-product-card__price .price,
body.tax-product_cat .ib-product-card__price .price,
body.tax-product_tag .ib-product-card__price .price {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: #74d9ff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

body.woocommerce-shop .ib-product-card__price .price del,
body.tax-product_cat .ib-product-card__price .price del,
body.tax-product_tag .ib-product-card__price .price del {
	margin: 0;
	color: #73737d;
	font-size: 12px;
	font-weight: 400;
	text-decoration-thickness: 1px;
}

body.woocommerce-shop .ib-product-card__price .price ins,
body.tax-product_cat .ib-product-card__price .price ins,
body.tax-product_tag .ib-product-card__price .price ins {
	color: #74d9ff;
	text-decoration: none;
}

body.woocommerce-shop .ib-product-card__add .ib-btn,
body.tax-product_cat .ib-product-card__add .ib-btn,
body.tax-product_tag .ib-product-card__add .ib-btn,
body.woocommerce-shop .ib-product-card__add .button,
body.tax-product_cat .ib-product-card__add .button,
body.tax-product_tag .ib-product-card__add .button {
	height: 28px !important;
	min-width: 58px !important;
	margin: 0 !important;
	padding: 0 11px !important;
	border: 1px solid #6872ff !important;
	border-radius: 8px !important;
	background: linear-gradient(135deg,#6157f1,#63c9f0) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 26px !important;
	box-shadow: none !important;
}

/* ---------- Load more ---------- */
.ib-load-more-wrap {
	width: 100%;
	margin: 50px 0 96px;
	display: flex;
	justify-content: center;
}

#ib-load-more-products,
body.woocommerce #ib-load-more-products {
	width: 201px;
	height: 46px;
	min-width: 201px;
	padding: 0 18px;
	border: 2px solid #5551f5;
	border-radius: 10px;
	background: transparent;
	color: #7bd8ff;
	font-size: 14px;
	font-weight: 700;
	box-shadow: none;
}

#ib-load-more-products.is-loading {
	position: relative;
	color: transparent;
}

#ib-load-more-products.is-loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: #7bd8ff;
	border-radius: 50%;
	animation: ib-spin .6s linear infinite;
}

@keyframes ib-spin { to { transform: rotate(360deg); } }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.ib-shop-hero { height: 310px; }
	.ib-shop-hero__inner { padding-top: 60px; }
	.ib-shop-hero h1,
	.ib-shop-hero .ib-heading-display--lg { font-size: 42px; }
	.ib-shop-hero__subtext { font-size: 15px; }

	.ib-shop-filters-row {
		width: auto;
		max-width: none;
		height: auto;
		margin: 36px 18px 31px !important;
		align-items: flex-start;
		gap: 16px;
	}

	.ib-category-pills { flex-wrap: wrap; }
	.ib-sort-control { flex-shrink: 0; }

	body.woocommerce-shop .woocommerce ul.products,
	body.tax-product_cat .woocommerce ul.products,
	body.tax-product_tag .woocommerce ul.products,
	body.woocommerce-shop ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products {
		width: auto !important;
		max-width: none !important;
		margin: 0 18px !important;
		grid-template-columns: repeat(2,minmax(0,1fr)) !important;
		gap: 18px !important;
	}

	body.woocommerce-shop .ib-product-card,
	body.tax-product_cat .ib-product-card,
	body.tax-product_tag .ib-product-card {
		width: auto !important;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 620px) {
	.ib-shop-hero { height: 280px; }
	.ib-shop-hero__inner { padding-top: 48px; }
	.ib-shop-hero__eyebrow { font-size: 10px; }
	.ib-shop-hero h1,
	.ib-shop-hero .ib-heading-display--lg {
		margin: 22px 0 24px;
		font-size: 36px;
	}
	.ib-shop-hero__subtext { font-size: 14px; }

	.ib-shop-filters-row {
		margin: 30px 14px 24px !important;
		flex-direction: column;
		align-items: stretch;
	}
	.ib-category-pills {
		width: 100%;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.ib-category-pills::-webkit-scrollbar { display:none; }
	.ib-sort-control { align-self: flex-end; margin-left: 0; }

	body.woocommerce-shop .woocommerce ul.products,
	body.tax-product_cat .woocommerce ul.products,
	body.tax-product_tag .woocommerce ul.products,
	body.woocommerce-shop ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products {
		margin: 0 14px !important;
		grid-template-columns: 1fr !important;
		gap: 18px !important;
	}

	body.woocommerce-shop .ib-product-card,
	body.tax-product_cat .ib-product-card,
	body.tax-product_tag .ib-product-card {
		width: 100% !important;
		height: 430px;
		min-height: 430px;
	}

	body.woocommerce-shop .ib-product-card__media,
	body.tax-product_cat .ib-product-card__media,
	body.tax-product_tag .ib-product-card__media {
		height: 295px;
		min-height: 295px;
		flex-basis: 295px;
	}
}

/* v2.5 — reference places the load-more control below the 3-column grid.
   Keep the control in the layout at all times; once the real WooCommerce
   query is exhausted it becomes a truthful non-interactive state rather
   than faking/duplicating products. */
.ib-load-more-wrap {
	min-height: 46px;
}

#ib-load-more-products.is-exhausted,
body.woocommerce #ib-load-more-products.is-exhausted {
	cursor: default;
	opacity: 1;
	box-shadow: none !important;
}
