/**
 * Pixi FluentCart Grid styles.
 */

.pixi-fcg-wrapper {
	--pixi-fcg-accent: #2563eb;
	--pixi-fcg-sale: #e11d48;
	--pixi-fcg-img-height: 300px;
	--pixi-fcg-img-padding: 0;
	--pixi-fcg-img-border: none;
	--pixi-fcg-img-radius: 8px;
	--pixi-fcg-img-shadow: none;
}

/* Filter bar */
.pixi-fcg-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.pixi-fcg-filter button {
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
	transition: all 0.2s ease;
}

.pixi-fcg-filter button:hover {
	border-color: var(--pixi-fcg-accent);
	color: var(--pixi-fcg-accent);
}

.pixi-fcg-filter button.is-active {
	background: var(--pixi-fcg-accent);
	border-color: var(--pixi-fcg-accent);
	color: #fff;
}

/* 5-column custom helper (Bootstrap has no col-lg-2.4) */
@media (min-width: 992px) {
	.pixi-fcg-col.col-lg-custom-5 {
		flex: 0 0 auto;
		width: 20%;
	}
}

/* Card base */
.pixi-fcg-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #eef2f7;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pixi-fcg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

/* ===== IMAGE SECTION ===== */
.pixi-fcg-thumb {
	position: relative;
	overflow: hidden;
	height: var(--pixi-fcg-img-height);
	padding: var(--pixi-fcg-img-padding);
	border: var(--pixi-fcg-img-border);
	border-radius: var(--pixi-fcg-img-radius);
	box-shadow: var(--pixi-fcg-img-shadow);
}

.pixi-fcg-thumb .pixi-fcg-img,
.pixi-fcg-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.pixi-fcg-card:hover .pixi-fcg-img {
	transform: scale(1.05);
}

.pixi-fcg-noimg {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.pixi-fcg-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--pixi-fcg-sale);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	z-index: 2;
}

.pixi-fcg-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	flex: 1 1 auto;
}

/* When the image sits between two text segments (Content Order), avoid
   doubled-up padding pressed right against it. */
.pixi-fcg-thumb + .pixi-fcg-body {
	padding-top: 0;
}

.pixi-fcg-body:has(+ .pixi-fcg-thumb) {
	padding-bottom: 0;
}

/* Pricing at top */
.pixi-fcg-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
}

.pixi-fcg-price-sale {
	color: var(--pixi-fcg-sale);
}

.pixi-fcg-price-regular {
	color: #0f172a;
}

.pixi-fcg-price del.pixi-fcg-price-regular {
	color: #94a3b8;
	font-size: 15px;
	font-weight: 500;
}

.pixi-fcg-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.pixi-fcg-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pixi-fcg-title a:hover {
	color: var(--pixi-fcg-accent);
}

.pixi-fcg-category {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
	display: inline-block;
	align-self: flex-start;
}

.pixi-fcg-excerpt {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.55;
}

.pixi-fcg-actions {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.pixi-fcg-btn {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
}

/* Details Button */
.pixi-fcg-btn--details {
	background: #f1f5f9;
	color: #0f172a;
	border-color: #e2e8f0;
}

.pixi-fcg-btn--details:hover {
	background: #f1f5f9;
	color: #0f172a;
	border-color: var(--pixi-fcg-accent);
}

/* Checkout Button */
.pixi-fcg-btn--checkout {
	background: var(--pixi-fcg-accent);
	color: #fff;
	border-color: var(--pixi-fcg-accent);
}

.pixi-fcg-btn--checkout:hover {
	filter: brightness(0.92);
	border-color: var(--pixi-fcg-accent);
	color: #fff;
}

.pixi-fcg-empty {
	padding: 40px;
	text-align: center;
	color: #64748b;
	background: #f8fafc;
	border-radius: 12px;
}

/* Loading state */
.pixi-fcg-grid-container.is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ================================================================
 * Style 2 — Overlay Hover
 * Image fills the card; details sit in a panel that lifts on hover.
 * ================================================================ */
.pixi-fcg-card--style-2 {
	position: relative;
	border: none;
}

.pixi-fcg-card--style-2 .pixi-fcg-thumb {
	aspect-ratio: 3 / 4;
	height: auto;
}

.pixi-fcg-card--style-2 .pixi-fcg-thumb img,
.pixi-fcg-card--style-2 .pixi-fcg-noimg {
	height: 100%;
	width: 100%;
	object-fit: cover;
	padding-top: 0;
}

.pixi-fcg-card--style-2 .pixi-fcg-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 70%, transparent 100%);
	color: #fff;
	gap: 8px;
	padding: 20px 18px;
}

.pixi-fcg-card--style-2 .pixi-fcg-title a {
	color: #fff;
}

.pixi-fcg-card--style-2 .pixi-fcg-title a:hover {
	color: #cbd5e1;
}

.pixi-fcg-card--style-2 .pixi-fcg-excerpt,
.pixi-fcg-card--style-2 .pixi-fcg-category,
.pixi-fcg-card--style-2 .pixi-fcg-price-regular {
	color: #e2e8f0;
}

.pixi-fcg-card--style-2 .pixi-fcg-price del.pixi-fcg-price-regular {
	color: #94a3b8;
}

/* Actions hidden until hover for a cleaner overlay */
.pixi-fcg-card--style-2 .pixi-fcg-actions {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin-top: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.pixi-fcg-card--style-2:hover .pixi-fcg-actions {
	max-height: 80px;
	opacity: 1;
	margin-top: 8px;
}

.pixi-fcg-card--style-2 .pixi-fcg-btn--details {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.pixi-fcg-card--style-2 .pixi-fcg-btn--details:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}
