/*
 * "By Category" page on phones (Figma Mobile Design "Categories" 1300:31764), see inc/mobile-pages.php.
 * Page 757; every card is the Category Card component (78438f: .brxe-8e37a1 photo, .brxe-f122c9 footer,
 * .brxe-fa9ca5 title, .brxe-76e3db description, .brxe-d5a5f6 arrow). Component rules are class-based, so
 * the card classes are repeated (.brxe-x.brxe-x) to outrank them. Phones only: 767px = mobile_landscape.
 */
@media (max-width: 767px) {
	.page-id-757 #brxe-0sib8r {
		padding: 0;
	}

	.page-id-757 #brxe-12hcz2 {
		gap: 0;
		width: 100%;
		max-width: none;
	}

	/* Each group: 40px band, heading 24px, 20px side gutters (Figma). */
	.page-id-757 #brxe-fzo95y,
	.page-id-757 #brxe-tdbjgj,
	.page-id-757 #brxe-mbv587,
	.page-id-757 #brxe-m3hgmk {
		gap: var(--space-20);
		width: 100%;
		padding: var(--space-40) var(--space-20);
	}

	.page-id-757 #brxe-tdbjgj,
	.page-id-757 #brxe-m3hgmk {
		background: var(--color-surface-sand);
	}

	.page-id-757 #brxe-98amfa,
	.page-id-757 #brxe-nkfb9u,
	.page-id-757 #brxe-x6bq7s,
	.page-id-757 #brxe-tghk0r {
		font-size: 20px;
		font-weight: 600;
		line-height: 1.25;
	}

	/* Shared card look: cream card, 10px corners, title 18px, arrow in a 26px outlined circle. */
	.page-id-757 .brxe-78438f.brxe-78438f {
		overflow: hidden;
		border: var(--hairline) solid var(--color-border-subtle);
		border-radius: var(--radius-card);
		background: var(--color-surface-cream);
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
	}

	.page-id-757 .brxe-78438f .brxe-f122c9.brxe-f122c9 {
		align-items: center;
		gap: var(--space-10);
		padding: var(--space-10);
		background: var(--color-surface-cream);
	}

	.page-id-757 .brxe-78438f .brxe-fa9ca5.brxe-fa9ca5 {
		font-size: 18px;
		line-height: 1.15;
	}

	.page-id-757 .brxe-78438f .brxe-76e3db.brxe-76e3db {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		font-size: 13px;
		line-height: 1.35;
		color: var(--color-ink-muted);
	}

	.page-id-757 .brxe-78438f .brxe-d5a5f6.brxe-d5a5f6 {
		flex: none;
		width: 26px;
		height: 26px;
		border: var(--hairline) solid var(--color-brand-deep);
		border-radius: var(--radius-pill);
		background: transparent;
		color: var(--color-brand-deep);
	}

	/* Bedsheets: 2 × 2 grid, 150px photos. */
	.page-id-757 #brxe-dolhvh {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 15px;
	}

	.page-id-757 #brxe-dolhvh .brxe-8e37a1.brxe-8e37a1 {
		height: 150px;
	}

	/* Bedsheet Sets and Collections: one swiping row of 167px cards. */
	.page-id-757 #brxe-jfdyhg,
	.page-id-757 .brxe-wslxbu {
		position: relative;
		display: flex !important; /* .collections-grid forces a 1-column grid with !important. */
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 10px;
		margin: 0 calc(var(--space-20) * -1);
		padding: 0 var(--space-20) 4px;
		width: calc(100% + 2 * var(--space-20));
		max-width: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--space-20); /* Snap cards to the 20px gutter, not the screen edge. */
		scrollbar-width: none;
	}

	.page-id-757 #brxe-jfdyhg::-webkit-scrollbar,
	.page-id-757 .brxe-wslxbu::-webkit-scrollbar {
		display: none;
	}

	.page-id-757 #brxe-jfdyhg > *,
	.page-id-757 .brxe-wslxbu > * {
		flex: 0 0 167px;
		width: 167px;
		scroll-snap-align: start;
	}

	.page-id-757 #brxe-tjvxrr {
		width: 100%;
	}

	.page-id-757 #brxe-jfdyhg .brxe-8e37a1.brxe-8e37a1,
	.page-id-757 .brxe-wslxbu .brxe-8e37a1.brxe-8e37a1 {
		height: 150px;
	}

	.page-id-757 #brxe-jfdyhg .brxe-78438f.brxe-78438f,
	.page-id-757 .brxe-wslxbu .brxe-78438f.brxe-78438f {
		height: 100%;
	}

	.page-id-757 #brxe-jfdyhg .brxe-f122c9.brxe-f122c9,
	.page-id-757 .brxe-wslxbu .brxe-f122c9.brxe-f122c9 {
		flex: 1;
		align-items: flex-start; /* Title right under the photo; the arrow sits at the card's bottom. */
	}

	.page-id-757 #brxe-jfdyhg .brxe-d5a5f6.brxe-d5a5f6,
	.page-id-757 .brxe-wslxbu .brxe-d5a5f6.brxe-d5a5f6 {
		align-self: flex-end;
	}

	/* Promo: photo behind the copy, fading to cream on the left (Figma "Upgrade Your Bedroom"). */
	.page-id-757 #brxe-ohb06g {
		width: calc(100% - 2 * var(--space-20));
		min-height: 272px;
		margin: var(--space-40) var(--space-20);
		overflow: hidden;
		border-radius: var(--radius-card);
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	}

	.page-id-757 #brxe-8g97os {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: right center;
	}

	/* Fade as a pseudo-element: Bricks' lazy loading strips the fade block's background until it is in view. */
	.page-id-757 #brxe-d7zjk3 {
		display: none;
	}

	.page-id-757 #brxe-ohb06g::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(90deg, rgba(253, 233, 204, 0.95) 40%, rgba(253, 233, 204, 0) 90%);
	}

	.page-id-757 #brxe-4mvrao {
		display: none;
	}

	.page-id-757 #brxe-gr10xo {
		position: relative;
		z-index: 2;
		gap: var(--space-15);
/* 		width: 260px;
		max-width: 75%; */
		padding: var(--space-40) var(--space-20);
	}

	.page-id-757 #brxe-v83x80 {
		font-size: 22px;
		line-height: 1.2;
	}

	.page-id-757 #brxe-a9kvhn {
		font-size: 13px;
	}

	.page-id-757 #brxe-xwowbq {
/* 		margin-top: var(--space-10); */
		padding: var(--space-15) var(--space-25);
		font-size: 14px;
	}

	/* More Products: white list cards, photo left (123×100), copy, arrow on the right. */
	.page-id-757 #brxe-2k655r {
		display: flex;
		flex-direction: column;
		gap: var(--space-15);
		width: 100%;
	}

	.page-id-757 #brxe-mjiszb {
		display: block;
		position: relative;
		width: 100%;
	}

	.page-id-757 #brxe-2k655r .brxe-78438f.brxe-78438f {
		flex-direction: row;
		align-items: center;
		gap: var(--space-15);
		padding: var(--space-15);
		background: var(--color-on-accent);
	}

	.page-id-757 #brxe-2k655r .brxe-8e37a1.brxe-8e37a1 {
		flex: 0 0 123px;
		width: 123px;
		height: 100px;
		overflow: hidden;
		border-radius: 4px;
	}

	.page-id-757 #brxe-2k655r .brxe-f122c9.brxe-f122c9 {
		flex: 1;
		min-width: 0;
		padding: 0;
		background: transparent;
	}

	.page-id-757 #brxe-2k655r .brxe-76e3db.brxe-76e3db {
		-webkit-line-clamp: 4;
	}

	/* Section order as in Figma: Bedsheets, Bedsheet Sets, promo, Collections (the "Categories" loop), More Products, trust card. */
	.page-id-757 #brxe-12hcz2 {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		max-width: 100%;
	}

	.page-id-757 #brxe-fzo95y { order: 1; }
	.page-id-757 #brxe-tdbjgj { order: 2; }
	.page-id-757 #brxe-ohb06g { order: 3; }
	.page-id-757 #brxe-mbv587 { order: 4; }
	.page-id-757 #brxe-m3hgmk { order: 5; }
	.page-id-757 #brxe-12hcz2 > .brxe-eexkew { order: 6; }

	/* No breadcrumb on this page in Figma. */
	.page-id-757 #frame-8-breadcrumb {
		display: none;
	}

	/* Trust list (shared component eexkew, this page only): one rounded sand card with 20px side margins; rows with
	   the icon left, title and line under it, divided by hairlines (Figma). */
	.page-id-757 #brxe-12hcz2 > .brxe-eexkew {
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		align-self: stretch; /* the column centres its children */
		width: calc(100% - 2 * var(--space-20));
		max-width: none;
		margin: var(--space-40) var(--space-20);
		padding: var(--space-10) var(--space-20);
		border: var(--hairline) solid var(--color-border-subtle);
		border-radius: 16px;
		background: var(--color-surface-sand);
		box-shadow: 0 2px 8px rgba(43, 32, 22, 0.06);
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew > div {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: var(--space-16);
		width: 100%;
		margin: 0;
		padding: 18px 0;
		border: 0;
		border-bottom: var(--hairline) solid var(--color-border-subtle);
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew > div:last-child {
		border-bottom: 0;
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew > div > .brxe-shortcode {
		flex: 0 0 40px;
		width: 40px;
		height: 40px;
		padding: 0;
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew > div > .brxe-shortcode svg {
		width: 100%;
		height: 100%;
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew > div > .brxe-div {
		flex: 1 1 auto;
		min-width: 0;
		gap: 2px;
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew .brxe-text-basic:first-child {
		font-family: var(--font-display);
		font-size: 17px;
		font-weight: 600;
		line-height: 1.25;
		color: var(--color-ink);
	}

	.page-id-757 #brxe-12hcz2 > .brxe-eexkew .brxe-text-basic:not(:first-child) {
		font-size: 14px;
		line-height: 1.4;
		color: var(--color-ink-soft);
	}
}

/* Bedsheets size cards: no size / pillow-cover line ("90 × 60 in · 1 Pillow Cover"), on phones and desktop
   (requested 2026-11-13; the homepage "Shop by Bed Size" tiles already hide it). */
.page-id-757 #brxe-dolhvh .brxe-76e3db {
	display: none;
}

/* Card hover on phones (By Category): the component's desktop hover turns the panel brown with white text; here the
   panel stays cream (above), so the title and text keep their colours, the photo does not zoom out of its frame,
   and only the border and arrow change. */
@media (max-width: 767px) {
	.page-id-757 .brxe-78438f:is(:hover, :focus-visible) .brxe-fa9ca5.brxe-fa9ca5 {
		color: var(--color-ink);
	}

	.page-id-757 .brxe-78438f:is(:hover, :focus-visible) .brxe-76e3db.brxe-76e3db {
		color: var(--color-ink-muted);
	}

	.page-id-757 .brxe-78438f:is(:hover, :focus-visible) .brxe-f122c9.brxe-f122c9 {
		background-color: var(--color-surface-cream);
	}

	.page-id-757 .brxe-78438f:is(:hover, :focus-visible) .brxe-8e37a1.brxe-8e37a1 {
		scale: none;
	}

	.page-id-757 .brxe-78438f.brxe-78438f:is(:hover, :focus-visible) {
		border-color: var(--color-brand-deep);
	}
}
