/* products.php: the product grid (design option A from the 2026-11 refresh) */

#products #content { float: none; font-family: Inter, system-ui, -apple-system, sans-serif; color: #1d1d1f; }
#products .prPage { max-width: 1216px; margin: 0 auto; padding: 136px 32px 128px; box-sizing: border-box; }
#products .prPage a { color: #1d1d1f; text-decoration: none; }

/* intro */
.prIntro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.prIntroText { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.prEyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #2e7d3e; }
.prIntro h1 { margin: 0; font-size: 56px; line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.prLede { margin: 0; font-size: 17px; line-height: 1.55; color: #5f5f63; max-width: 340px; }

/* filter bar */
.prFilterBar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; margin-bottom: 40px; border-bottom: 1px solid #ececea; }
.prFilterBar[hidden] { display: none; }
.prChips { display: flex; flex-wrap: wrap; gap: 8px; }
.prChip { font: 500 15px Inter, system-ui, sans-serif; height: 44px; padding: 0 16px 0 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1d1d1f; border: 1px solid #dcdcd8; transition: border-color .15s, background-color .15s; }
.prChip:hover { border-color: #1d1d1f; }
.prChip[aria-pressed="true"] { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.prChipCount { font-size: 12px; font-weight: 600; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #f1f1ef; color: #5f5f63; }
.prChip[aria-pressed="true"] .prChipCount { background: rgba(255,255,255,0.18); color: #fff; }
.prShowing { margin: 0; font-size: 14px; color: #6e6e73; }

/* grid */
.prGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 24px; }
.prCard { display: flex; flex-direction: column; gap: 20px; }
.prCard[hidden] { display: none; }
.prCardWide { grid-column: span 2; }
.prTile { position: relative; height: 280px; border-radius: 22px; background: #f3f2ef; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prTile img { max-width: 66%; max-height: 66%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.prCardWide .prTile img { max-width: 40%; }
.prCard:hover .prTile img { transform: translateY(-6px) scale(1.03); }
.prBadge { position: absolute; top: 16px; left: 16px; z-index: 1; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; background: #fff; color: #24642f; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.prLabel { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; max-width: 460px; }
.prFamily { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6e6e73; }
.prName { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.prCardWide .prName { font-size: 24px; }
.prSub { font-size: 15px; line-height: 1.45; color: #5f5f63; }
.prMore { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: #2e7d3e; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.prCard:hover .prMore, .prCard:focus-visible .prMore { opacity: 1; transform: none; }
.prCard:hover .prName { color: #2e7d3e; }

/* older (clearance) products */
.prOlder { margin-top: 96px; }
.prOlder[hidden] { display: none; }
.prOlder h2 { margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid #ececea; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

@media (max-width: 640px) {
	#products .prPage { padding: 96px 16px 80px; }
	.prIntro h1 { font-size: 40px; }
	.prCardWide { grid-column: auto; }
	.prCardWide .prTile img { max-width: 66%; }
	.prTile { height: 240px; }
}
@media (hover: none) {
	.prMore { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.prTile img, .prMore { transition: none; }
	.prCard:hover .prTile img { transform: none; }
}
