:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #fff;
  color: #171717;
  --ink: #111;
  --muted: #565656;
  --line: #e7e7e7;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.showcase { width: min(calc(100% - 1.5rem), 65rem); margin: auto; padding: clamp(.85rem, 2vw, 1.7rem) 0 3rem; }
.hero {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .1rem .1rem .8rem;
  border-bottom: 1px solid var(--line);
}
.mark { display: block; border-radius: .6rem; filter: grayscale(1) brightness(.58); }
h1 { margin: 0; font-size: clamp(1.27rem, 4vw, 1.7rem); font-weight: 750; line-height: 1.05; letter-spacing: -.05em; }
.search-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease);
}
.search-toggle:hover { background: #eaeaea; border-color: #d6d6d6; }
.search-toggle:active { transform: scale(.95); }
.search-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.search-bar {
  padding: .75rem .1rem .1rem;
  animation: searchIn 220ms var(--ease) both;
}
.search-field {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: 0 .5rem 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5f5f5;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.search-field:focus-within {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 16px #0000000d;
}
.search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: 0 0 auto;
}
.search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  outline: none;
  padding: .55rem 0;
}
.search-field input::placeholder { color: #7a7a7a; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.search-clear:hover { background: #e8e8e8; color: var(--ink); }
.search-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.search-status {
  margin: 0 0 .75rem .2rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}
.filters {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .7rem .2rem .75rem;
  scrollbar-width: thin;
  scrollbar-color: #dbdbdb transparent;
}
.filters a { display: grid; align-items: center; flex: 0 0 auto; min-height: 44px; padding: .28rem .82rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--ink); background: #f5f5f5; font-size: .86rem; font-weight: 650; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: white; }
.filters a:not([aria-current]):hover { background: #eaeaea; }
.filters a:focus-visible { outline-offset: -3px; }
.filters a[aria-current]:focus-visible { outline-color: white; }
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.3rem); }
.product { min-width: 0; }
.product:nth-child(-n+6) { animation: enter 640ms var(--ease) both; animation-delay: 80ms; }
.product:nth-child(3n+2) { animation-delay: 125ms; }
.product:nth-child(3n+3) { animation-delay: 170ms; }
.product a {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: clamp(.85rem, 2vw, 1.3rem);
  overflow: hidden;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 220ms ease;
}
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
figure { position: relative; display: grid; place-items: center; margin: 0; aspect-ratio: 1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
figure img { display: block; width: 100%; height: 100%; position: absolute; object-fit: contain; inset: 0; transition: transform 560ms var(--ease); }
.image-fallback { color: var(--muted); text-align: center; padding: .6rem; font-size: .875rem; }
.featured { position: absolute; inset: .55rem auto auto .55rem; padding: .27rem .55rem; border-radius: 2rem; color: #fffaf2; background: var(--ink); font-size: .75rem; font-weight: 650; }
.product-copy { display: flex; flex: 1; flex-direction: column; gap: clamp(.65rem, 2vw, 1.15rem); padding: clamp(.6rem, 2vw, 1.2rem); }
.product h2 { margin: 0; font-size: clamp(.9rem, 1.8vw, 1.12rem); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.shop-cta { display: grid; place-items: center; margin-top: auto; min-height: 44px; padding: .35rem; border-radius: .6rem; color: #fff; background: var(--ink); font-size: .86rem; font-weight: 650; text-align: center; transition: background 220ms ease; }
@media (hover: hover) {
  .product a:hover { transform: translateY(-3px); border-color: #ccc; box-shadow: 0 12px 25px #00000012; }
  .product a:hover img { transform: scale(1.04); }
  .product a:hover .shop-cta { background: #303030; }
}
.product a:active { transform: scale(.985); }
.empty { padding: clamp(2.4rem, 7vw, 6rem) 1rem; text-align: center; background: #f5f5f5; border: 1px solid var(--line); border-radius: 1.2rem; }
.empty h2 { margin: 0; font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.5rem, 4vw, 2.45rem); }
.empty p { margin: .7rem 0 0; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.empty-btn {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: .45rem 1.05rem;
  border-radius: 2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.empty-btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.empty-btn:hover { opacity: .9; }
.pages { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.pages a { padding: .7rem 1rem; border-radius: .6rem; border: 1px solid var(--line); background: #f5f5f5; color: var(--ink); font-weight: 650; }
@media (min-width: 44rem) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes searchIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }
