/* subcategory-curtains.css
 * Styles for the Curtains sub-category page template.
 * Follows the Poppsee brand system (Quicksand / Playfair Display,
 * cream + teal palette, pill CTAs).
 *
 * Mockup: "curtains category for Living room" (Monday.com, June 2026)
 */

/* The shape/size row is NOT styled here. It is the shared component in
 * inc/poppsee-shape-row.php, styled by css/poppsee-shape-row.css, and it is
 * the same row on every Home & Living category page. Curtains and Area Rugs
 * each carried their own copy while Throw Pillows and Blankets had none --
 * three implementations of one component and one hole. Do not re-add a
 * per-page copy. */
/* 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. */

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

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

/* ============================================================ */
/* 2. Hero banner                                                */
/* ============================================================ */
.ct-hero-wrap { margin-top: 30px; }

.ct-hero {
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	min-height: 280px;
}

.ct-hero-copy {
	flex: 0 0 50%;
	max-width: 50%;
	background: #e8b9a0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 48px;
}
.ct-hero-copy p {
	font-family: Quicksand, sans-serif;
	font-weight: 500;
	font-size: clamp(18px, 2.2vw, 28px);
	line-height: 1.45;
	color: #1c1c1c;
	margin: 0;
	max-width: 380px;
}

.ct-hero-photo {
	flex: 0 0 50%;
	max-width: 50%;
	position: relative;
	background: #f1e9e3;
}
.ct-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ============================================================ */
/* 5. Product grid                                               */
/* ============================================================ */
.ct-products-wrap {
	margin-top: 40px;
	margin-bottom: 70px;
}

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

.ct-product-card {
	display: block;
	text-decoration: none;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .2s ease;
	background: #fff;
}
.ct-product-card:hover {
	box-shadow: 0 6px 24px rgba(60, 50, 40, .12);
	transform: translateY(-3px);
}

.ct-product-img-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: #faf8f5;
}
.ct-product-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s ease;
}
.ct-product-card:hover .ct-product-img-wrap img {
	opacity: .92;
}

.ct-product-card__price {
	font-family: Quicksand, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #2e2a26;
	padding: 10px 12px;
	background: #fff;
}

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

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

	.ct-hero { flex-direction: column; }
	.ct-hero-copy,
	.ct-hero-photo {
		flex: none;
		max-width: 100%;
		width: 100%;
	}
	.ct-hero-copy { padding: 32px 24px; }
	.ct-hero-copy p { font-size: clamp(16px, 4.2vw, 22px); max-width: none; }

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

/* ============================================================ */
/* Responsive — mobile (480px)                                   */
/* ============================================================ */
@media (max-width: 480px) {
	.ct-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

	.ct-hero-wrap { margin-top: 18px; }
	.ct-products-wrap { margin-top: 28px; margin-bottom: 50px; }
}
