/* Products page */

.nav__links a.is-active:not(.btn)::after { width: 100%; }

/* Page header */
.phero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.phero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin-bottom: 1rem; }
.phero h1 em { font-style: italic; color: var(--red); }
.phero p { color: var(--ink-soft); max-width: 52ch; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }

/* Shared bits */
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.pimg { overflow: hidden; background: linear-gradient(110deg, var(--cream) 30%, #fff 50%, var(--cream) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.pimg:has(img[data-loaded]) { animation: none; background: #fff; }
.pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { padding: 3rem 0; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }
.empty a { color: var(--red); font-weight: 600; }

/* Filter bar */
.filterbar { position: sticky; top: 76px; z-index: 20; background: rgba(250, 245, 236, .94); backdrop-filter: blur(10px); padding: 1rem 0; border-bottom: 1px solid var(--sand); }
.filterbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.chipbar { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 2px solid var(--sand); background: transparent; padding: .55rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink); transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip small { opacity: .6; font-weight: 500; margin-left: .3rem; }
.psearch { width: min(300px, 100%); padding: .8rem 1.1rem .8rem 2.7rem; border: 2px solid var(--sand); border-radius: 999px; font: inherit; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161412' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1rem center / 17px; }
.psearch:focus { outline: none; border-color: var(--red); }

/* Grid */
.grid-meta { padding: 1.5rem 0 1rem; color: var(--ink-soft); font-size: .9rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; padding-bottom: 5rem; }
.pcard { background: var(--white); border-radius: 20px; overflow: hidden; cursor: pointer; text-align: left; border: 0; font: inherit; color: inherit; padding: 0; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; animation: pop .4s both; }
.pcard:hover, .pcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); outline: none; }
.pcard:hover img { transform: scale(1.06); }
.pcard .pimg { aspect-ratio: 4 / 3; }
.pcard__body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .2rem; position: relative; }
.pcard__title { font-size: 1.2rem; padding-right: 2.6rem; margin: 0; }
.pcard__go { position: absolute; right: 1.1rem; bottom: 1.1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--red); font-weight: 700; transition: background .2s, color .2s; }
.pcard:hover .pcard__go { background: var(--red); color: var(--white); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { margin-bottom: 1.8rem; }
.cta-band .btn { background: var(--white); color: var(--red); }

/* Responsive */
@media (max-width: 820px) {
  .filterbar .chipbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .filterbar .chipbar::-webkit-scrollbar { display: none; }
  .psearch { width: 100%; }
}
@media (max-width: 520px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .pcard__title { font-size: 1rem; padding-right: 0; }
  .pcard__body { padding: .8rem; }
  .pcard__go { display: none; }
}

.seo-list { padding-bottom: 4rem; }
.seo-list h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.seo-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--ink-soft); }

/* Reserve space so the footer doesn't jump when the grid renders */
#app:empty { min-height: 140vh; }
