/* subcategory-throw-pillows.css
 * Throw Pillows sub-category page — matches the
 * "Product Category Page mock up.png" mockup from Monday.com.
 *
 * Uses brand tokens from poppsee-brand.css (:root --pop-* vars).
 * Loaded conditionally on the Throw Pillows page via functions.php.
 */

/* The Collections + Filter-by-color band is NOT styled here. It is the shared
 * component in inc/poppsee-category-filters.php, styled by
 * css/poppsee-category-filters.css, and it is the same band on every category
 * page. This file once carried its own copy of that band -- selectors only,
 * because the markup was never rendered -- so the page shipped a stylesheet
 * for a filter bar no shopper could see. Do not re-add a per-page copy. */


/* ============================================================ */
/* 0. Page reset                                                 */
/* ============================================================ */

.tp-page {
	font-family: 'Quicksand', sans-serif;
	color: #2e2a26;
	line-height: 1.5;
}
.tp-page *,
.tp-page *::before,
.tp-page *::after {
	box-sizing: border-box;
}
.tp-page img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ============================================================ */
/* 1. Title bar                                                  */
/* ============================================================ */

.tp-titlebar {
	width: 100%;
	text-align: center;
	padding: 28px 20px 16px;
	background: #f8f8f8;
}

.tp-titlebar__heading {
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
	font-size: 32px;
	line-height: 1;
	color: #2e2a26;
	margin: 0;
	letter-spacing: 0.01em;
}

.tp-dots {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 12px;
}

.tp-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: block;
}
.tp-dot--pink   { background: #ff66c4; }
.tp-dot--orange { background: #ff914d; }
.tp-dot--teal   { background: #03989e; }
.tp-dot--red    { background: #ff5757; }

/* ============================================================ */
/* 2. Hero banner                                                */
/* ============================================================ */

.tp-hero {
	display: flex;
	align-items: stretch;
	max-width: 1180px;
	margin: 30px auto 0;
	padding: 0 20px;
	gap: 0;
}

.tp-hero__photo {
	flex: 0 0 55%;
	max-width: 55%;
	overflow: hidden;
	border-radius: 8px 0 0 8px;
}
.tp-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tp-hero__copy {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f6f1ec;
	padding: 40px 32px;
	text-align: center;
	border-radius: 0 8px 8px 0;
}

.tp-hero__title {
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
	font-size: clamp(22px, 2.6vw, 34px);
	color: #2e2a26;
	margin: 0 0 12px;
	letter-spacing: 0.01em;
	line-height: 1.2;
}

.tp-hero__subtitle {
	font-family: 'Quicksand', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 1.4vw, 18px);
	color: #5a5550;
	margin: 0;
	font-style: normal;
}

/* ============================================================ */
/* 3. Collections                                                */
/* ============================================================ */

.tp-collections {
	max-width: 1180px;
	margin: 52px auto 60px;
	padding: 0 20px;
}

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

.tp-product-card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}
.tp-product-card:hover {
	transform: translateY(-3px);
}

.tp-product-card__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 6px;
	background: #f4ede4;
}
.tp-product-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.2s ease;
}
.tp-product-card:hover .tp-product-card__img-wrap img {
	opacity: 0.92;
}

.tp-product-card__price {
	display: block;
	font-family: 'Quicksand', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #2e2a26;
	margin-top: 8px;
	text-align: left;
}

/* ============================================================ */
/* 4. Responsive — tablet (768px)                                */
/* ============================================================ */

@media (max-width: 768px) {
	.tp-titlebar__heading {
		font-size: 26px;
	}

	.tp-hero {
		flex-direction: column;
		margin-top: 20px;
	}
	.tp-hero__photo {
		flex: none;
		max-width: 100%;
		border-radius: 8px 8px 0 0;
	}
	.tp-hero__copy {
		border-radius: 0 0 8px 8px;
		padding: 28px 24px;
	}

	.tp-product-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

/* ============================================================ */
/* 5. Responsive — mobile (480px)                                */
/* ============================================================ */

@media (max-width: 480px) {
	.tp-titlebar {
		padding: 22px 16px 14px;
	}
	.tp-titlebar__heading {
		font-size: 22px;
	}
	.tp-dots {
		gap: 7px;
		margin-top: 10px;
	}
	.tp-dot {
		width: 11px;
		height: 11px;
	}

	.tp-hero {
		padding: 0 12px;
	}
	.tp-hero__copy {
		padding: 22px 16px;
	}
	.tp-hero__title {
		font-size: 20px;
	}
	.tp-hero__subtitle {
		font-size: 14px;
	}

	.tp-collections {
		padding: 0 12px;
		margin-top: 36px;
		margin-bottom: 44px;
	}

	.tp-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.tp-product-card__price {
		font-size: 13px;
		margin-top: 6px;
	}
}
