/* ==========================================================================
   Kitchen & Dining category page
   Matches: "kitchen dining category page layout mock up.png"
   Brand palette: teal #a2d8d6 / blush #f1e9e3 / Quicksand
   ========================================================================== */

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

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

/* ---------- 2. Category cards ---------- */
.kd-cats {
	margin-top: 30px;
	margin-bottom: 40px;
}

.kd-grid-top {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-bottom: 24px;
}

.kd-grid-bottom {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.kd-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	transition: transform .2s ease;
}
.kd-card:hover {
	transform: translateY(-3px);
}

.kd-card-img {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	background: #f4ede4;
	box-shadow: 0 2px 12px rgba(60, 50, 40, .08);
}
.kd-card-img img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: opacity .25s ease;
}
.kd-card:hover .kd-card-img img {
	opacity: .9;
}

.kd-card-label {
	display: block;
	margin-top: 10px;
	font-family: Quicksand, sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #2e2a26;
	text-align: center;
	letter-spacing: .01em;
}

/* ---------- 3. Collections ---------- */
.kd-collections {
	padding: 0 0 70px;
}

/*
 * The filter band is the SHARED component — poppsee_render_category_filters()
 * in inc/poppsee-category-filters.php, styled by css/poppsee-category-filters.css.
 * It renders .pfilters / .pfilters__chip / .pfilters__swatch, and this page calls
 * it from kitchen_dining_template.php.
 *
 * A per-page copy used to live here: .kd-filters, .kd-filter-label, .kd-tabs,
 * .kd-tab, .kd-tab-active, .kd-color-dots, .kd-cdot — 64 lines of CSS for markup
 * no template ever emitted, which is exactly why the missing band looked
 * finished to anyone reading the stylesheet. Deleted. Do not re-add a per-page
 * filter bar here; change the shared component instead.
 */

/* Product grid */
.kd-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.kd-product {
	display: block;
	text-decoration: none;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 6px rgba(60, 50, 40, .06);
	transition: box-shadow .2s, transform .2s;
}
.kd-product:hover {
	box-shadow: 0 4px 18px rgba(60, 50, 40, .12);
	transform: translateY(-2px);
}

.kd-product-img img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.kd-product-price {
	display: block;
	padding: 8px 12px;
	font-family: Quicksand, sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: #a2d8d6;
	text-align: center;
}

.kd-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
}
.kd-empty p {
	font-family: Quicksand, sans-serif;
	font-size: 18px;
	color: #888;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.kd-titlebar h1 { font-size: 27px; }

	.kd-grid-top {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.kd-grid-bottom {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.kd-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	.kd-titlebar { padding: 20px 16px; }
	.kd-titlebar h1 { font-size: 24px; }
	.kd-dots span { width: 11px; height: 11px; }

	.kd-grid-top {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.kd-grid-bottom {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.kd-card-label { font-size: 14px; }

	.kd-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.kd-product-price { font-size: 13px; padding: 6px 10px; }
}
