/* category-fur-babies.css
 * Styles for the Fur Babies category landing page.
 *
 * Brand tokens:
 *   teal     #a2d8d6  (--pop-teal)
 *   blush    #f1e9e3
 *   cream    #f4ede4  (--pop-cream)
 *   ink      #1c3a39  (--pop-ink)
 *   font     Quicksand, sans-serif
 *
 * Matches mockup: "fur babies category page layout mock up.png"
 */

/* ===== Reset ===== */
.fb-redesign { font-family: Quicksand, sans-serif; color: #333; }
.fb-redesign * { box-sizing: border-box; }
.fb-redesign img { display: block; }
.fb-section { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== 1. Title bar ===== */
.fb-titlebar {
	background: #f8f8f8;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 26px 20px;
}
.fb-titlebar h1 {
	font-family: Quicksand, sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1;
	color: #2e2a26;
	margin: 0;
	letter-spacing: 0.01em;
}
.fb-dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 12px;
}
.fb-dots span {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: block;
}
.fb-dot-1 { background: #ff66c4; }
.fb-dot-2 { background: #ff914d; }
.fb-dot-3 { background: #03989e; }
.fb-dot-4 { background: #ff5757; }

/* ===== 2. Category cards ===== */
.fb-cats {
	margin-top: 38px;
	margin-bottom: 50px;
}
/* Tile geometry measured off "fur babies category page layout mock up.png":
   two 271px squares on a 19px gutter (mock px 975 / 69 at 5184 wide). */
.fb-grid {
	display: flex;
	justify-content: center;
	gap: 19px;
}
.fb-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	width: 271px;
	transition: transform 0.2s ease;
}
.fb-card:hover {
	transform: translateY(-4px);
}
.fb-card-img-wrap {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(60, 50, 40, 0.10);
}
.fb-card-img-wrap img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: opacity 0.25s ease;
}
.fb-card:hover .fb-card-img-wrap img {
	opacity: 0.92;
}
.fb-card-label {
	display: block;
	margin-top: 14px;
	font-family: Quicksand, sans-serif;
	font-weight: 400;
	font-size: 22px;
	color: #2e2a26;
	text-align: center;
	letter-spacing: 0.01em;
}

/* ===== 3. Collections / Filters ===== */
.fb-collections {
	margin-bottom: 60px;
}
.fb-filters-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}
.fb-filter-group {
	flex: 1 1 0;
	min-width: 240px;
}
.fb-filter-heading {
	font-family: Quicksand, sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #2e2a26;
	margin: 0 0 12px;
}

/* Tags */
.fb-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.fb-tag {
	display: inline-block;
	padding: 5px 14px;
	border: 1px solid #d4cec6;
	border-radius: 20px;
	font-family: Quicksand, sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #555;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.fb-tag:hover {
	background: #a2d8d6;
	color: #1c3a39;
	border-color: #a2d8d6;
}

/* Search */
.fb-search-wrap {
	margin-top: 4px;
}
.fb-search {
	width: 100%;
	max-width: 200px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid #d4cec6;
	border-radius: 6px;
	font-family: Quicksand, sans-serif;
	font-size: 12px;
	color: #333;
	background: #fff;
}
.fb-search::placeholder {
	color: #aaa;
}

/* Color dots */
.fb-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.fb-color-dot {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid transparent;
	transition: border-color 0.2s ease, transform 0.15s ease;
	cursor: pointer;
}
.fb-color-dot:hover {
	border-color: #333;
	transform: scale(1.15);
}
/* White swatch needs a visible border */
.fb-color-dot[style*="f5f5f5"] {
	border-color: #d4cec6;
}

/* Product grid wrapper */
.fb-product-grid {
	margin-top: 12px;
}
.fb-product-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.fb-product-tile {
	display: block;
	text-decoration: none;
	transition: transform .2s;
}
.fb-product-tile:hover {
	transform: translateY(-3px);
}
/* The tinted, rounded box wraps the image only — artist/title/price sit on the
   page background beneath it, as in the mock. */
.fb-product-tile__img-wrap {
	border-radius: 8px;
	overflow: hidden;
	background: #f4ede4;
	transition: box-shadow .2s;
}
.fb-product-tile:hover .fb-product-tile__img-wrap {
	box-shadow: 0 4px 20px rgba(60,50,40,.12);
}
.fb-product-tile img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}
@media (max-width: 900px) { .fb-product-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 580px) { .fb-product-tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
/* Ensure WooCommerce product grid inherits clean spacing */
.fb-product-grid .products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.fb-product-grid .products li.product {
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;
}
.fb-product-grid .products li.product img {
	border-radius: 8px;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.fb-titlebar h1 { font-size: 27px; }
	.fb-grid { gap: 28px; }
	.fb-card { width: 220px; }
	.fb-card-label { font-size: 18px; }
	.fb-filters-row { flex-direction: column; gap: 24px; }
	.fb-product-grid .products {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 480px) {
	.fb-grid {
		flex-direction: column;
		align-items: center;
		gap: 32px;
	}
	.fb-card { width: 260px; }
	.fb-cats { margin-top: 24px; margin-bottom: 36px; }
	.fb-product-grid .products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 16px;
	}
}
