/* ==========================================================================
   Area Rugs Sub-category Page
   Matches the "area rug page for living room" mockup (Monday.com asset).
   ========================================================================== */

/* 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. */

/* ---------- Reset / base ---------- */
.ar-page {
	font-family: Quicksand, 'Segoe UI', sans-serif;
	color: #333;
	-webkit-font-smoothing: antialiased;
}
.ar-page *,
.ar-page *::before,
.ar-page *::after { box-sizing: border-box; }
.ar-page img { display: block; max-width: 100%; }

.ar-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

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

/* ---------- 2. Hero banner ---------- */
.ar-hero-wrap { margin-top: 30px; }
.ar-hero {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}
.ar-hero img {
	width: 100%;
	aspect-ratio: 2.65;
	object-fit: cover;
}
/* The headline sits ON the photograph, and the photograph is a cream rug on
   a pale floor. White type with a text-shadow was unreadable against it —
   "ground up with area rugs." disappeared into the rug. Slide 8 does not
   put bare type on the image either: it lays a translucent panel behind it
   and sets the type dark. That panel is reproduced here, but kept INSIDE the
   image; on the slide it overhangs the left edge, which is a drawing defect,
   not something to build. */
.ar-hero__text {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 5%;
	transform: translateY(-50%);
	max-width: min(46%, 460px);
	background: rgba(255, 255, 255, .84);
	color: #2e2a26;
	padding: 22px 26px;
	border-radius: 4px;
	font-weight: 500;
	font-size: clamp(18px, 2.4vw, 34px);
	line-height: 1.35;
	letter-spacing: .01em;
}

/* ---------- 5. Product grid ---------- */
.ar-products-wrap {
	margin-top: 40px;
	padding-bottom: 70px;
}
.ar-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.ar-product-card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
	border-radius: 8px;
	overflow: hidden;
}
.ar-product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(60, 50, 40, .12);
}
.ar-product-card__img-wrap {
	background: #f9f6f2;
	aspect-ratio: 1;
	overflow: hidden;
}
.ar-product-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .2s;
}
.ar-product-card:hover .ar-product-card__img-wrap img { opacity: .92; }
.ar-product-card__price {
	font-family: Quicksand, sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #2e2a26;
	padding: 10px 12px;
	background: #fff;
}
.ar-products-empty {
	grid-column: 1 / -1;
	text-align: center;
	font-family: Quicksand, sans-serif;
	font-size: 16px;
	color: #999;
	padding: 60px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ar-product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.ar-titlebar__heading { font-size: 27px; }
	.ar-hero img { aspect-ratio: 1.8; }
	.ar-hero__text {
		font-size: clamp(16px, 4vw, 22px);
		left: 4%;
		max-width: min(62%, 380px);
		padding: 16px 18px;
	}
	.ar-product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 480px) {
	/* Below the image rather than on it, so it needs no translucency. */
	.ar-hero__text {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		max-width: none;
		border-radius: 0;
		background: #2e2a26;
		color: #fff;
		text-align: center;
		padding: 18px 20px;
		font-size: 18px;
	}
}
