/* FireFruit Catalogue v2 — scoped styles */
.ffc {
	--ffc-ink: #161916;
	--ffc-muted: #7A766D;
	--ffc-line: #E8E4DC;
	--ffc-paper: #FAF9F6;
	--ffc-accent: #C9356B;
	--ffc-accent-dark: #A82855;
	--ffc-wa: #1FA855;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--ffc-ink);
	-webkit-font-smoothing: antialiased;
}
.ffc *, .ffc *::before, .ffc *::after { box-sizing: border-box; }

/* Header */
.ffc-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.ffc-eyebrow {
	display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px;
	font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ffc-muted); font-weight: 500;
}
.ffc-eyebrow::before, .ffc-eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--ffc-accent); }
.ffc-title {
	font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -.01em;
	font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 14px; color: var(--ffc-ink);
}
.ffc-title em { font-style: italic; color: var(--ffc-accent); }
.ffc-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ffc-muted); }

/* Controls */
.ffc-controls {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
	padding: 14px; background: var(--ffc-paper); border: 1px solid var(--ffc-line); border-radius: 14px;
	position: sticky; top: 12px; z-index: 5;
}
.ffc-search {
	flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
	height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--ffc-line); border-radius: 10px; color: var(--ffc-muted);
}
.ffc-search:focus-within { border-color: var(--ffc-ink); }
.ffc-search input {
	flex: 1; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
	height: 42px; padding: 0 !important; font: inherit; font-size: 14px; color: var(--ffc-ink); min-width: 0;
}
.ffc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ffc-chip {
	display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
	border: 1px solid var(--ffc-line); border-radius: 999px; background: #fff; color: var(--ffc-ink);
	font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s ease; line-height: 1;
}
.ffc-chip:hover { border-color: var(--ffc-ink); }
.ffc-chip.is-active { background: var(--ffc-ink); border-color: var(--ffc-ink); color: #fff; }
.ffc-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
#ffc-sort {
	height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--ffc-line); border-radius: 10px; background-color: #fff;
	font: inherit; font-size: 13px; color: var(--ffc-ink); cursor: pointer; min-width: 150px;
}
.ffc-tally { margin: 22px 2px 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ffc-muted); }

/* Grid */
.ffc-grid {
	list-style: none !important; margin: 0 !important; padding: 0 !important;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}
.ffc-card {
	margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--ffc-line); border-radius: 16px; overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ffc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(22,25,22,.35); border-color: #D9D3C8; }
.ffc-card[hidden] { display: none !important; }
.ffc-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ffc-paper); }
.ffc-media img, .ffc-media svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ffc-card:hover .ffc-media img, .ffc-card:hover .ffc-media svg { transform: scale(1.04); }
.ffc-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.ffc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.ffc-sku { font-size: 11px; letter-spacing: .12em; color: var(--ffc-muted); font-weight: 500; }
.ffc-tag {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
	background: var(--ffc-paper); font-size: 11px; font-weight: 500; color: var(--ffc-ink);
}
.ffc-name { margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -.005em; }
.ffc-name a { color: var(--ffc-ink) !important; text-decoration: none !important; }
.ffc-name a:hover { color: var(--ffc-accent) !important; }
.ffc-avail, .ffc-price { margin: 0; font-size: 12.5px; color: var(--ffc-muted); }
.ffc-price { color: var(--ffc-ink); font-weight: 600; font-size: 14px; }
.ffc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }

.ffc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
	height: 40px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 600; letter-spacing: .01em;
	text-decoration: none !important; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ffc-btn--primary { background: var(--ffc-ink); color: #fff !important; border: 1px solid var(--ffc-ink); }
.ffc-btn--primary:hover { background: var(--ffc-wa); border-color: var(--ffc-wa); }
.ffc-btn--ghost { background: #fff; color: var(--ffc-ink) !important; border: 1px solid var(--ffc-line); }
.ffc-btn--ghost:hover { border-color: var(--ffc-wa); color: var(--ffc-wa) !important; }
.ffc-btn svg { flex: none; }

.ffc-empty { text-align: center; padding: 56px 0; color: var(--ffc-muted); font-size: 15px; }

/* Single product */
.ffc-single { margin: 18px 0 24px; }
.ffc-single .ffc-actions { max-width: 460px; }
.ffc-single .ffc-btn { height: 46px; font-size: 13.5px; }

/* WooCommerce placeholder replacement */
.ffc-placeholder { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; }
.ffc-placeholder svg { width: 100%; height: 100%; display: block; }

@media (max-width: 640px) {
	.ffc-controls { position: static; }
	.ffc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ffc-body { padding: 12px 12px 14px; }
	.ffc-name { font-size: 16px; }
	.ffc-actions { grid-template-columns: 1fr; }
	.ffc-btn { height: 38px; font-size: 12px; }
	#ffc-sort { flex: 1; }
}

/* WooCommerce grids: WhatsApp buttons in place of Add to cart */
.ffc-loop { padding: 0 12px 14px; }
.ffc-loop .ffc-actions { grid-template-columns: 1fr; gap: 6px; padding-top: 4px; }
.ffc-loop .ffc-btn { width: 100%; }
.ffc-media { cursor: default; }
