/* ============================================================
   SHOP — all-products catalog page
   ============================================================
   Same aqua palette and editorial typography as the landing
   pages, so the cards read as one system. Layout: sticky filter
   sidebar + fcard grid (borrowed from the landing pages'
   featured-picks section) with a grid/compact toggle.
   ============================================================ */

:root{
	/* Aqua palette (matches bathroom-cleaning) */
	--bg:        #F4F7F6;
	--bg-warm:   #EDF3F2;
	--bg-sub:    #E2ECEB;
	--card:      #FFFFFF;
	--ink:       #0F2225;
	--ink-2:     #3A4F52;
	--ink-3:     #6B7D80;
	--rule:      #D6DEDE;
	--accent:    #1F6F7A;
	--accent-2:  #6FB4BA;
	--accent-soft:#CDE2E3;

	--serif: 'Newsreader', 'Times New Roman', serif;
	--sans:  'DM Sans', system-ui, sans-serif;
	--mono:  'IBM Plex Mono', ui-monospace, monospace;
}

.shop-sec .eyebrow{
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-2);
	display: block;
	margin-bottom: 14px;
}
.shop-head h1{
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(40px, 5.5vw, 76px);
	line-height: 1.03;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}
.shop-head .lede{
	color: var(--ink-2);
	font-size: 17px;
	max-width: 52ch;
	margin: 0;
}
.shop-head{
	display: flex; justify-content: space-between; align-items: end;
	gap: 24px; flex-wrap: wrap;
	margin-bottom: clamp(28px, 4vw, 44px);
}

/* view toggle (same pattern as the landing pages) */
.view-toggle{
	display: inline-flex;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r-pill);
	padding: 4px;
	flex-shrink: 0;
}
.view-toggle button{
	background: transparent; border: 0; cursor: pointer;
	padding: 8px 16px;
	border-radius: var(--r-pill);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-3);
	transition: background .15s ease, color .15s ease;
}
.view-toggle button.is-active{ background: var(--ink); color: var(--bg); }

/* ============================================================
   LAYOUT — sidebar + grid
   ============================================================ */
.shop-layout{
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: start;
}
.shop-filters{
	position: sticky;
	top: 88px;
}
.filter-title{
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin: 0 0 14px;
}
.shop-filters ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-filters a{
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 12px;
	border-radius: var(--r-sm);
	font-size: 14px;
	color: var(--ink-2);
	transition: background .15s ease, color .15s ease;
}
.shop-filters a:hover{ background: var(--bg-warm); color: var(--ink); }
.shop-filters a.is-active{ background: var(--ink); color: var(--bg); }
.shop-filters .count{
	font-family: var(--mono);
	font-size: 11px;
	color: var(--ink-3);
}
.shop-filters a.is-active .count{ color: color-mix(in oklab, var(--bg) 70%, transparent); }

/* ============================================================
   PRODUCT CARDS — fcard, borrowed from featured-picks
   ============================================================ */
.shop-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.fcard{
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--rule);
	border-radius: var(--r-md);
	overflow: hidden;
	text-decoration: none; color: inherit;
	position: relative;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.fcard:hover{
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 30%, transparent);
}
.fcard .img{
	aspect-ratio: 1/1;
	background:
		radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent-soft) 80%, white) 0%, transparent 55%),
		radial-gradient(circle at 70% 80%, color-mix(in oklab, var(--accent-2) 55%, white) 0%, transparent 60%),
		var(--bg-warm);
	position: relative;
	display: flex; align-items: center; justify-content: center;
	border-bottom: 1px solid var(--rule);
	overflow: hidden;
}
.fcard .img::after{
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(45deg, transparent 0 8px, color-mix(in oklab, var(--ink) 4%, transparent) 8px 9px);
	opacity: .5;
}
.fcard .img img{
	width: 100%; height: 100%;
	object-fit: contain;
	padding: 6%;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}
.fcard .img:has(img){ background: var(--card); }
.fcard .img:has(img)::after{ content: none; }
.fcard .img .ph{
	position: relative; z-index: 1;
	font-family: var(--mono); font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--ink-2);
	background: color-mix(in oklab, var(--bg) 85%, transparent);
	padding: 5px 9px; border-radius: var(--r-pill);
	text-align: center;
}
.fcard .body{
	padding: 16px;
	display: flex; flex-direction: column;
	gap: 6px; flex: 1;
}
.fcard .cat{
	font-family: var(--mono);
	font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--accent);
}
.fcard .title{
	font-family: var(--serif);
	font-size: 21px;
	line-height: 1.15;
	color: var(--ink);
	font-weight: 400;
}
.fcard .foot{
	margin-top: auto;
	padding-top: 14px;
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px;
}
.fcard .price{ font-family: var(--mono); font-size: 13px; color: var(--ink); }
.fcard .cta{
	background: var(--ink); color: var(--bg);
	padding: 8px 14px; border-radius: var(--r-pill);
	font-size: 12px; font-weight: 600;
	display: inline-flex; align-items: center; gap: 6px;
	transition: background .15s ease, color .15s ease;
}
.fcard:hover .cta{ background: var(--accent); color: #fff; }

/* compact view */
.shop-sec[data-view="compact"] .shop-grid{
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.shop-sec[data-view="compact"] .fcard{
	flex-direction: row;
	align-items: stretch;
}
.shop-sec[data-view="compact"] .fcard .img{
	flex: 0 0 96px;
	aspect-ratio: 1;
	border-bottom: none;
	border-right: 1px solid var(--rule);
}
.shop-sec[data-view="compact"] .fcard .img .ph{ display: none; }
.shop-sec[data-view="compact"] .fcard .body{ padding: 12px 14px; gap: 3px; }
.shop-sec[data-view="compact"] .fcard .title{ font-size: 15px; }
.shop-sec[data-view="compact"] .fcard .foot{ padding-top: 6px; }
.shop-sec[data-view="compact"] .fcard .cta{ padding: 5px 11px; font-size: 11px; }

/* ============================================================
   PAGINATION + DISCLOSURE
   ============================================================ */
.shop-pagination{
	margin-top: clamp(28px, 4vw, 44px);
	display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
	font-family: var(--mono); font-size: 13px;
}
.shop-pagination .page-numbers{
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--rule); border-radius: var(--r-pill);
	color: var(--ink-2);
}
.shop-pagination .page-numbers.current{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-pagination a.page-numbers:hover{ border-color: var(--ink); color: var(--ink); }

/* sits in the header, above the first affiliate link (FTC) */
.shop-disclosure{
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--ink-3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
	/* Sidebar becomes a scrollable chip row above the grid */
	.shop-layout{ grid-template-columns: 1fr; }
	.shop-filters{ position: static; }
	.shop-filters ul{
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 6px;
	}
	.shop-filters ul::-webkit-scrollbar{ display: none; }
	.shop-filters a{
		white-space: nowrap;
		border: 1px solid var(--rule);
		border-radius: var(--r-pill);
		padding: 8px 14px;
	}
	.shop-filters a.is-active{ border-color: var(--ink); }
	.shop-grid{ grid-template-columns: repeat(2, 1fr); }
	.shop-sec[data-view="compact"] .shop-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
	.shop-grid{ grid-template-columns: 1fr; }
}
