/* ==========================================================================
   Shop / Archive Page — Iniyam Gifts v3.0
   Premium editorial gift-shop grid. Full redesign.
   Token reference: --ig-primary #2d6970 | --ig-accent #ca8c7c
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page-level wrapper — max-width, no sidebar (forced by PHP)
   -------------------------------------------------------------------------- */
.ig-shop-archive .ast-container,
.woocommerce-shop .ast-container,
.tax-product_cat .ast-container,
.tax-product_tag .ast-container,
.woocommerce-archive .ast-container {
	max-width: 1440px !important;
	padding: 0 24px 64px !important;
}

/* Bottom spacing for grid when no pagination is present */
.woocommerce-archive main.site-main,
.tax-product_cat main.site-main,
.tax-product_tag main.site-main,
.woocommerce-shop main.site-main,
.woocommerce-archive ul.products,
.tax-product_cat ul.products,
.tax-product_tag ul.products,
.woocommerce-shop ul.products {
	margin-bottom: 48px !important;
}

/* ── Sidebar: suppress on all shop/archive pages (CSS failsafe for Astra layout filter) ── */
.ig-shop-archive #secondary,
.woocommerce-shop #secondary,
.tax-product_cat #secondary,
.tax-product_tag #secondary {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
}

/* ── Primary: force full width when sidebar is absent & remove left/right borders ── */
.ig-shop-archive #primary,
.woocommerce-shop #primary,
.tax-product_cat #primary,
.tax-product_tag #primary,
.woocommerce-archive #primary,
.woocommerce-archive .site-main,
.tax-product_cat .site-main,
.woocommerce-shop .site-main {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	flex: 1 1 100% !important;
	padding: 0 !important;
	border-left: none !important;
	border-right: none !important;
}

/* Remove unwanted borders on product grid list */
.woocommerce-archive ul.products,
.tax-product_cat ul.products,
.woocommerce-shop ul.products {
	border-left: none !important;
	border-right: none !important;
}

/* ── Suppress WooCommerce archive header H1 + Astra page-title section ──
   PHP: woocommerce_show_page_title → __return_false (primary control)
   CSS: belt-and-braces failsafe for cache / Astra-version edge cases     */
.woocommerce-products-header,
.ig-shop-archive .ast-page-title-wrap,
.ig-shop-archive .ast-breadcrumbs-wrap,
.tax-product_cat .ast-page-title-wrap,
.tax-product_cat .ast-breadcrumbs-wrap,
.tax-product_tag .ast-page-title-wrap,
.tax-product_tag .ast-breadcrumbs-wrap,
.woocommerce-shop .ast-page-title-wrap,
.woocommerce-shop .ast-breadcrumbs-wrap,
.woocommerce-archive .ig-hero-breadcrumbs,
.tax-product_cat .ig-hero-breadcrumbs,
.tax-product_tag .ig-hero-breadcrumbs,
.woocommerce-shop .ig-hero-breadcrumbs,
.woocommerce-archive .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-breadcrumb,
.tax-product_tag .woocommerce-breadcrumb,
.woocommerce-shop .woocommerce-breadcrumb {
	display: none !important;
}

/* --------------------------------------------------------------------------
   2. Hero Banner Strip
   -------------------------------------------------------------------------- */
.ig-shop-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(
		130deg,
		var(--ig-primary) 0%,
		var(--ig-primary-dark) 60%,
		#163840 100%
	);
	border-radius: 20px;
	margin-bottom: 32px;
	padding: 52px 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

/* Decorative radial glow */
.ig-shop-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			ellipse 480px 320px at 80% 50%,
			rgba(202, 140, 124, 0.22) 0%,
			transparent 70%
		),
		radial-gradient(
			ellipse 200px 200px at 10% 80%,
			rgba(255, 255, 255, 0.04) 0%,
			transparent 70%
		);
	pointer-events: none;
}

/* Decorative dots grid */
.ig-shop-hero::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 40%;
	background-image: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.1) 1px,
		transparent 1px
	);
	background-size: 22px 22px;
	pointer-events: none;
}

.ig-shop-hero__content {
	position: relative;
	z-index: 1;
	max-width: 560px;
}

.ig-shop-hero__eyebrow {
	display: inline-block;
	background: rgba(202, 140, 124, 0.25);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--ig-font);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 16px;
}

.ig-shop-hero__title {
	font-family: var(--ig-font-display) !important;
	font-size: clamp(26px, 3.2vw, 40px) !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1.2 !important;
	margin: 0 0 12px !important;
	letter-spacing: -0.01em !important;
}

.ig-shop-hero__title em {
	font-style: italic !important;
	color: #f7c5b4 !important;
}

.ig-shop-hero__sub {
	font-family: var(--ig-font) !important;
	font-size: 14.5px !important;
	color: rgba(255, 255, 255, 0.75) !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}

/* Hero accent badge on the right side */
.ig-shop-hero__accent {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.ig-shop-hero__stat {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	padding: 20px 28px;
	text-align: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ig-shop-hero__stat-num {
	display: block !important;
	font-family: var(--ig-font-display) !important;
	font-size: 34px !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	line-height: 1 !important;
}

.ig-shop-hero__stat-label {
	display: block !important;
	font-size: 12px !important;
	color: rgba(255, 255, 255, 0.72) !important;
	font-weight: 500 !important;
	margin-top: 4px !important;
	letter-spacing: 0.04em !important;
}

/* Category archive hero variant */
.ig-shop-hero--category {
	background: linear-gradient(
		130deg,
		var(--ig-primary-dark) 0%,
		var(--ig-primary) 100%
	);
	padding: 36px 48px;
}

@media (max-width: 768px) {
	.ig-shop-hero {
		padding: 36px 28px;
		flex-direction: column;
		text-align: center;
		border-radius: 16px;
		margin-bottom: 24px;
	}
	.ig-shop-hero__accent {
		display: none;
	}
	.ig-shop-hero__content {
		max-width: 100%;
	}
	.ig-shop-hero__title {
		font-size: clamp(22px, 5vw, 30px);
	}
}

/* --------------------------------------------------------------------------
   3. Controls Toolbar (Static layout — non-sticky on desktop)
   -------------------------------------------------------------------------- */
.ig-shop-toolbar {
	position: relative !important;
	top: auto !important;
	z-index: 10 !important;
	background: rgba(248, 250, 252, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--ig-border-light);
	border-radius: 14px;
	padding: 10px 20px;
	margin-bottom: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.22s ease;
}

.ig-shop-toolbar__left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ig-shop-toolbar__count {
	font-family: var(--ig-font);
	font-size: 13px;
	color: var(--ig-muted);
	white-space: nowrap;
}

.ig-shop-toolbar__count strong {
	color: var(--ig-heading);
	font-weight: 700;
}

/* Sort dropdown inside toolbar — override WooCommerce default */
.ig-shop-toolbar .woocommerce-ordering {
	margin: 0 !important;
}

.ig-shop-toolbar .woocommerce-ordering select {
	border: 1.5px solid var(--ig-border) !important;
	border-radius: var(--ig-r-pill) !important;
	padding: 7px 36px 7px 14px !important;
	font-family: var(--ig-font) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--ig-heading) !important;
	background: var(--ig-white) !important;
	cursor: pointer !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%232d6970' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 13px center !important;
	transition: border-color 0.22s ease !important;
	box-shadow: none !important;
	min-width: 180px !important;
}

.ig-shop-toolbar .woocommerce-ordering select:focus {
	border-color: var(--ig-primary) !important;
	box-shadow: 0 0 0 3px rgba(45, 105, 112, 0.09) !important;
}

.ig-shop-toolbar__right {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* View toggle buttons */
.ig-view-toggle {
	display: flex;
	align-items: center;
	background: var(--ig-white);
	border: 1.5px solid var(--ig-border);
	border-radius: 10px;
	padding: 3px;
	gap: 2px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ig-view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	color: var(--ig-subtle);
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
	padding: 0;
}

.ig-view-btn:hover {
	background: var(--ig-primary-light);
	color: var(--ig-primary);
}

.ig-view-btn.is-active {
	background: var(--ig-primary);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(45, 105, 112, 0.25);
}

.ig-view-btn svg {
	width: 15px;
	height: 15px;
	display: block;
}

/* Hide WC's own result count + ordering — removed at PHP level; CSS belt-and-braces */
.woocommerce-result-count,
nav.woocommerce-ordering {
	display: none !important;
}

/* Show ordering only INSIDE our toolbar */
.ig-shop-toolbar .woocommerce-result-count,
.ig-shop-toolbar nav.woocommerce-ordering {
	display: block !important;
}

/* --------------------------------------------------------------------------
   3b. Category Filter Chip Bar
   -------------------------------------------------------------------------- */
.ig-shop-filter-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	overflow-x: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none;
	padding-bottom: 4px; /* prevent clipping of box-shadow */
}

.ig-shop-filter-bar::-webkit-scrollbar {
	display: none;
}

.ig-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 18px;
	border-radius: 100px;
	background: var(--ig-white);
	border: 1.5px solid var(--ig-border);
	font-family: var(--ig-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--ig-body);
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
	cursor: pointer;
}

.ig-filter-chip:hover {
	border-color: var(--ig-primary);
	color: var(--ig-primary);
	background: var(--ig-primary-light);
}

.ig-filter-chip.is-active {
	background: var(--ig-primary);
	border-color: var(--ig-primary);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(45, 105, 112, 0.28);
}

.ig-filter-chip__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 18px;
	padding: 0 6px;
	border-radius: 100px;
	font-size: 10px;
	font-weight: 700;
	background: var(--ig-border-light);
	color: var(--ig-muted);
	transition:
		background 0.18s ease,
		color 0.18s ease;
}

.ig-filter-chip.is-active .ig-filter-chip__count {
	background: rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.9);
}

.ig-filter-chip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(45, 105, 112, 0.1);
	color: var(--ig-primary);
	transition: background 0.18s ease;
}

.ig-filter-chip.is-active .ig-filter-chip__icon {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.ig-filter-chip__icon svg {
	width: 10px;
	height: 10px;
	display: block;
}

@media (max-width: 600px) {
	.ig-shop-toolbar {
		flex-wrap: wrap;
		gap: 10px;
		padding: 10px 14px;
		border-radius: 12px;
		top: 60px;
	}
	.ig-shop-toolbar__count {
		font-size: 12px;
	}
}

/* --------------------------------------------------------------------------
   4. Active Filter Tags
   -------------------------------------------------------------------------- */
.ig-shop-filters-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.woocommerce .widget_layered_nav_filters ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.woocommerce .widget_layered_nav_filters ul li a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	background: var(--ig-primary-light);
	color: var(--ig-primary);
	border-radius: var(--ig-r-pill);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.18s ease;
}

.woocommerce .widget_layered_nav_filters ul li a:hover {
	background: var(--ig-primary);
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   5. Product Grid — CSS Grid
   -------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	width: 100% !important;
}

/* Stagger reveal — base state (set by JS after IntersectionObserver fires) */
.woocommerce ul.products li.product.ig-pc {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.45s ease,
		transform 0.45s ease;
}

.woocommerce ul.products li.product.ig-pc.ig-pc--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger delays 1–12 */
.woocommerce ul.products li.product.ig-pc:nth-child(1) {
	transition-delay: 0s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(2) {
	transition-delay: 0.06s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(3) {
	transition-delay: 0.12s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(4) {
	transition-delay: 0.18s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(5) {
	transition-delay: 0.06s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(6) {
	transition-delay: 0.12s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(7) {
	transition-delay: 0.18s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(8) {
	transition-delay: 0.24s;
}
.woocommerce ul.products li.product.ig-pc:nth-child(n + 9) {
	transition-delay: 0.1s;
}

@media (max-width: 1200px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 860px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px !important;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 12px !important;
	}
}

/* --------------------------------------------------------------------------
   6. Product Card — .ig-pc Component
   -------------------------------------------------------------------------- */
.woocommerce ul.products li.product.ig-pc,
.woocommerce-page ul.products li.product.ig-pc {
	background: var(--ig-white) !important;
	border: 1.5px solid var(--ig-border-light) !important;
	border-radius: 18px !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
	transition:
		opacity 0.45s ease,
		transform 0.45s ease,
		box-shadow 0.3s ease,
		border-color 0.3s ease !important;
	position: relative !important;
}

.woocommerce ul.products li.product.ig-pc:hover {
	box-shadow: 0 12px 40px rgba(45, 105, 112, 0.13) !important;
	border-color: rgba(45, 105, 112, 0.2) !important;
}

/* Suppress Astra / WC default link styles inside card */
/* .woocommerce ul.products li.product.ig-pc a,
.woocommerce ul.products li.product.ig-pc .woocommerce-LoopProduct-link {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
} */

/* ── Thumbnail wrap ── */
.ig-pc__thumb-wrap {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--ig-bg);
	flex-shrink: 0;
}

.ig-pc__image-link {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}

.ig-pc__thumb-wrap img,
.ig-pc__image-link img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hide duplicate images injected by WC/Astra hooks */
.ig-pc__thumb-wrap img:nth-of-type(n + 2),
.ig-pc__image-link img:nth-of-type(n + 2) {
	display: none !important;
}

.woocommerce ul.products li.product.ig-pc:hover .ig-pc__thumb-wrap img {
	transform: scale(1.06) !important;
}

/* ── Badge row ── */
.ig-pc__badge-row {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 10;
	display: flex;
	gap: 6px;
	pointer-events: none;
}

.ig-pc__badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--ig-font);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 100px;
	line-height: 1;
}

.ig-pc__badge--sale {
	background: var(--ig-accent);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(202, 140, 124, 0.4);
}

.ig-pc__badge--new {
	background: var(--ig-primary);
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(45, 105, 112, 0.3);
}

/* ── Wishlist heart ── */
.ig-pc__wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(0, 0, 0, 0.06);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--ig-subtle);
	transition:
		color 0.22s ease,
		background 0.22s ease,
		transform 0.22s ease;
	padding: 0;
}

.ig-pc__wishlist:hover {
	color: #e05a7a;
	background: rgba(255, 255, 255, 0.98);
	transform: scale(1.1);
}

.ig-pc__wishlist.is-active {
	color: #e05a7a;
}

.ig-pc__wishlist.is-active svg {
	fill: #e05a7a;
}

.ig-pc__wishlist svg {
	width: 15px;
	height: 15px;
	display: block;
	transition: fill 0.22s ease;
}

/* ── Slide-up CTA overlay ── */
.ig-pc__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 18px;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity 0.28s ease,
		transform 0.28s ease;
	pointer-events: none;
	z-index: 5;
	background: linear-gradient(
		to top,
		rgba(22, 56, 64, 0.72) 0%,
		transparent 55%
	);
}

.woocommerce ul.products li.product.ig-pc:hover .ig-pc__overlay {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ig-pc__overlay .button,
.ig-pc__overlay a.button,
.ig-pc__overlay-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 10px 24px !important;
	background: #ffffff !important;
	color: var(--ig-primary) !important;
	font-family: var(--ig-font) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	border-radius: 100px !important;
	border: none !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition:
		background 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease !important;
	width: auto !important;
	margin: 0 !important;
	min-width: unset !important;
	max-width: unset !important;
	aspect-ratio: unset !important;
}

.ig-pc__overlay .button:hover,
.ig-pc__overlay a.button:hover {
	background: var(--ig-primary) !important;
	color: #ffffff !important;
	box-shadow: 0 6px 24px rgba(45, 105, 112, 0.38) !important;
}

/* ── Card body ── */
.ig-pc__body {
	padding: 14px 16px 8px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 5px !important;
	flex-grow: 1 !important;
}

/* Category chip */
.ig-pc__cat-chip {
	display: inline-block;
	font-family: var(--ig-font);
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ig-primary);
	background: var(--ig-primary-light);
	padding: 3px 10px;
	border-radius: 100px;
	align-self: center;
}

/* Product title */
.ig-pc__title {
	font-family: var(--ig-font) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: var(--ig-dark) !important;
	line-height: 1.42 !important;
	margin: 0 !important;
	padding: 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.ig-pc__title a {
	color: var(--ig-dark) !important;
	text-decoration: none !important;
	transition: color 0.18s ease !important;
}

.ig-pc__title a:hover {
	color: var(--ig-primary) !important;
}

/* Star rating */
.ig-pc__rating {
	line-height: 1;
}

/* ── Card footer — price on line 1, full-width CTA button on line 2 ── */
.ig-pc__footer {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 10px !important;
	padding: 12px 16px 16px !important;
	border-top: 1.5px solid var(--ig-border-light) !important;
	margin-top: auto !important;
}

/* Price Row */
.ig-pc__price-wrap {
	width: 100% !important;
}

.ig-pc__price-wrap .price {
	margin: 0 !important;
	font-family: var(--ig-font) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: var(--ig-primary) !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: baseline !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
	line-height: 1.2 !important;
}

.ig-pc__price-wrap .price del {
	font-size: 12px !important;
	color: var(--ig-subtle) !important;
	font-weight: 400 !important;
	text-decoration: line-through !important;
}

.ig-pc__price-wrap .price ins {
	background: transparent !important;
	text-decoration: none !important;
	font-weight: 800 !important;
}

/* Action container */
.ig-pc__action-wrap {
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	z-index: 10 !important;
}

/* Footer Add-to-Cart / Select Options / Read More button — Full Width on New Line */
a.ig-pc__btn,
button.ig-pc__btn,
.ig-pc__btn,
.ig-pc__action-wrap a,
.ig-pc__action-wrap button {
	width: 100% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	height: 36px !important;
	padding: 0 16px !important;
	background: linear-gradient(
		135deg,
		var(--ig-primary-dark, #1e4d52) 0%,
		#163840 100%
	) !important;
	color: #ffffff !important;
	font-family: var(--ig-font) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase !important;
	border-radius: 100px !important;
	border: none !important;
	box-shadow: 0 3px 10px rgba(30, 77, 82, 0.25) !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	visibility: visible !important;
	opacity: 1 !important;
	box-sizing: border-box !important;
	transition:
		box-shadow 0.22s ease,
		filter 0.22s ease,
		transform 0.18s ease !important;
	max-width: unset !important;
	aspect-ratio: unset !important;
	margin: 0 !important;
	line-height: 1 !important;
}

/* Cart icon — Add to cart */
a.ig-pc__btn:not(.product_type_variable)::before,
.ig-pc__btn:not(.product_type_variable)::before,
.ig-pc__action-wrap .add_to_cart_button::before {
	content: "" !important;
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	flex-shrink: 0 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E") !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

/* Options icon — Select options (variable products) */
a.ig-pc__btn.product_type_variable::before,
.ig-pc__btn.product_type_variable::before,
.ig-pc__action-wrap .product_type_variable::before {
	content: "" !important;
	display: inline-block !important;
	width: 14px !important;
	height: 14px !important;
	flex-shrink: 0 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

/* Mobile small font size for Add to Cart & Select Options buttons */
@media (max-width: 640px) {
	a.ig-pc__btn,
	button.ig-pc__btn,
	.ig-pc__btn,
	.ig-pc__action-wrap a,
	.ig-pc__action-wrap button {
		font-size: 9.5px !important;
		font-weight: 700 !important;
		letter-spacing: 0.03em !important;
		height: 32px !important;
		padding: 0 8px !important;
		gap: 4px !important;
	}

	a.ig-pc__btn::before,
	button.ig-pc__btn::before,
	.ig-pc__btn::before,
	.ig-pc__action-wrap a::before,
	.ig-pc__action-wrap button::before {
		width: 12px !important;
		height: 12px !important;
	}
}

a.ig-pc__btn:hover,
.ig-pc__btn:hover,
.ig-pc__action-wrap a:hover,
.ig-pc__action-wrap button:hover {
	background: linear-gradient(
		135deg,
		var(--ig-primary, #2d6970) 0%,
		var(--ig-primary-dark, #1e4d52) 100%
	) !important;
	box-shadow: 0 6px 20px rgba(30, 77, 82, 0.38) !important;
	filter: brightness(1.08) !important;
	color: #ffffff !important;
}

/* View cart link after add-to-cart */
.ig-pc__action-wrap .added_to_cart {
	display: none !important;
}

/* ── Suppress any direct child button injected by Astra hooks outside footer ── */
.woocommerce ul.products li.product.ig-pc > .button,
.woocommerce ul.products li.product.ig-pc > a.button {
	display: none !important;
}

/* --------------------------------------------------------------------------
   7. List View Mode — .ig-view-list body class
   -------------------------------------------------------------------------- */
body.ig-view-list .woocommerce ul.products,
body.ig-view-list .woocommerce-page ul.products,
.ig-view-list ul.products {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: 1fr !important;
	gap: 16px !important;
}

body.ig-view-list .woocommerce ul.products li.product.ig-pc,
body.ig-view-list .woocommerce-page ul.products li.product.ig-pc,
.ig-view-list ul.products li.product.ig-pc {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch !important;
	border-radius: 16px !important;
	height: auto !important;
	min-height: 180px !important;
	width: 100% !important;
}

body.ig-view-list .ig-pc__thumb-wrap,
.ig-view-list .ig-pc__thumb-wrap {
	width: 220px !important;
	flex-shrink: 0 !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 16px 0 0 16px !important;
	overflow: hidden !important;
}

body.ig-view-list .ig-pc__body,
.ig-view-list .ig-pc__body {
	padding: 20px 24px !important;
	gap: 8px !important;
	flex: 1 1 auto !important;
	justify-content: center !important;
}

body.ig-view-list .ig-pc__title,
.ig-view-list .ig-pc__title {
	font-size: 16px !important;
	-webkit-line-clamp: 2 !important;
}

body.ig-view-list .ig-pc__footer,
.ig-view-list .ig-pc__footer {
	padding: 20px 24px !important;
	border-top: none !important;
	border-left: 1.5px solid var(--ig-border-light) !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	justify-content: center !important;
	gap: 14px !important;
	min-width: 180px !important;
	margin-top: 0 !important;
}

body.ig-view-list .ig-pc__overlay,
.ig-view-list .ig-pc__overlay {
	display: none !important;
}

@media (max-width: 640px) {
	body.ig-view-list .woocommerce ul.products li.product.ig-pc,
	.ig-view-list ul.products li.product.ig-pc {
		flex-direction: column !important;
	}
	body.ig-view-list .ig-pc__thumb-wrap,
	.ig-view-list .ig-pc__thumb-wrap {
		width: 100% !important;
		aspect-ratio: 4 / 3 !important;
		border-radius: 16px 16px 0 0 !important;
	}
	body.ig-view-list .ig-pc__footer,
	.ig-view-list .ig-pc__footer {
		min-width: unset !important;
		border-left: none !important;
		border-top: 1.5px solid var(--ig-border-light) !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
	}
}

/* --------------------------------------------------------------------------
   8. Category Thumbnail Cards
   -------------------------------------------------------------------------- */
.woocommerce ul.products li.product-category {
	text-align: center !important;
}

.woocommerce ul.products li.product-category a img {
	height: 180px !important;
	width: 100% !important;
	object-fit: cover !important;
	border-radius: 14px 14px 0 0 !important;
}

.woocommerce ul.products li.product-category h2 {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: var(--ig-heading) !important;
	margin: 14px 16px 4px !important;
}

.woocommerce ul.products li.product-category .count {
	font-size: 12px !important;
	color: var(--ig-muted) !important;
	margin: 0 16px 16px !important;
}

/* --------------------------------------------------------------------------
   9. WooCommerce Pagination
   -------------------------------------------------------------------------- */
.woocommerce-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-pagination ul.page-numbers li {
	display: block;
}

.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	font-family: var(--ig-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--ig-body);
	background: var(--ig-white);
	border: 1.5px solid var(--ig-border-light);
	text-decoration: none;
	transition: all 0.18s ease;
}

.woocommerce-pagination ul.page-numbers li span.page-numbers.current,
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
	background: var(--ig-primary);
	color: #ffffff;
	border-color: var(--ig-primary);
}

.woocommerce-pagination ul.page-numbers li a.page-numbers.prev,
.woocommerce-pagination ul.page-numbers li a.page-numbers.next {
	width: auto;
	padding: 0 16px;
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   10. Empty State
   -------------------------------------------------------------------------- */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-no-products-found {
	text-align: center;
	padding: 72px 48px;
	background: var(--ig-white);
	border: 1.5px solid var(--ig-border-light);
	border-radius: 20px;
	font-family: var(--ig-font);
	font-size: 15px;
	color: var(--ig-muted);
	box-shadow: none !important;
}

.woocommerce .woocommerce-info::before {
	display: none;
}

/* --------------------------------------------------------------------------
   11. Sidebar Widgets (if sidebar ever enabled)
   -------------------------------------------------------------------------- */
.woocommerce-page #secondary {
	background: rgba(255, 255, 255, 0.8) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid var(--ig-border-light) !important;
	border-radius: 18px !important;
	padding: 28px !important;
	box-shadow: var(--ig-shadow-xs) !important;
	box-sizing: border-box !important;
}

.woocommerce-page #secondary .widget {
	margin-bottom: 32px !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.woocommerce-page #secondary .widget:last-child {
	margin-bottom: 0 !important;
}

.woocommerce-page #secondary .widget-title,
.woocommerce-page #secondary .widget h2,
.woocommerce-page #secondary .widget h3 {
	font-family: var(--ig-font) !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	color: var(--ig-dark) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	margin: 0 0 16px 0 !important;
	padding: 0 0 10px 0 !important;
	border-bottom: 2px solid var(--ig-primary-light) !important;
}

.woocommerce-page #secondary .widget ul {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.woocommerce-page #secondary .widget ul li {
	padding: 9px 0 !important;
	border-bottom: 1px solid var(--ig-border-light) !important;
	font-size: 13px !important;
	color: var(--ig-body) !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
}

.woocommerce-page #secondary .widget ul li:last-child {
	border-bottom: none !important;
}

.woocommerce-page #secondary .widget ul li a {
	color: var(--ig-body) !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: color 0.18s ease !important;
}

.woocommerce-page #secondary .widget ul li a:hover {
	color: var(--ig-primary) !important;
}

.woocommerce-page #secondary .widget ul li .count {
	font-size: 10px !important;
	font-weight: 700 !important;
	background: var(--ig-bg) !important;
	color: var(--ig-muted) !important;
	padding: 3px 8px !important;
	border-radius: var(--ig-r-pill) !important;
}

/* Price filter widget */
.woocommerce .widget_price_filter .price_slider {
	margin-bottom: 22px !important;
	background: var(--ig-bg) !important;
	height: 5px !important;
	border-radius: 3px !important;
	border: none !important;
}

.woocommerce .widget_price_filter .price_slider_amount {
	font-size: 13px !important;
	color: var(--ig-body) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
	background: var(--ig-primary) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	background: var(--ig-accent) !important;
	border: 2.5px solid #ffffff !important;
	box-shadow: var(--ig-shadow-sm) !important;
	top: -5px !important;
	cursor: pointer !important;
	outline: none !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
	background: var(--ig-primary) !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	padding: 8px 16px !important;
	border-radius: var(--ig-r-pill) !important;
	float: right !important;
}
