.shop-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 2rem 4rem;
}

.shop-hero h1 {
  max-width: 980px;
  margin-bottom: 1.4rem;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: .87;
  letter-spacing: -.072em;
}

.shop-hero > p:last-child { max-width: 760px; font-size: 1.15rem; }
.catalog-shell { max-width: 1320px; margin: 0 auto; padding: 2rem 2rem 7rem; }
.catalog-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.catalog-heading h2 { max-width: 760px; margin-bottom: 0; }
.catalog-count { margin: 0 0 .5rem; font-weight: 800; white-space: nowrap; }

.catalog-controls {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
  padding: 1.1rem;
  border: 2px solid var(--cocoa);
  border-radius: 1.25rem;
  color: var(--cocoa);
  background: var(--butter);
}

.category-filter { min-width: 0; margin: 0; padding: 0; flex: 1; border: 0; }
.category-filter legend,
.catalog-controls label { font-weight: 800; }
.category-filter legend,
.catalog-controls span { margin-bottom: .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.category-tabs { display: flex; flex-wrap: wrap; gap: .55rem; }
.category-tab {
  min-height: 3rem;
  padding: .68rem .95rem;
  border: 2px solid var(--cocoa);
  border-radius: 999px;
  color: var(--text);
  background: var(--white);
  font: 800 .9rem/1.25 "Poppins", ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}
.category-tab-all { background: #eee7f7; }
.category-tab-systems { background: #d4e5f1; }
.category-tab-stickers { background: #d3e0cd; }
.category-tab-yarn { background: #f3d4d1; }
.category-tab:hover:not(:disabled) { filter: brightness(.97) saturate(1.08); transform: translateY(-1px); }
.category-tab.is-selected { color: var(--white); background: var(--action-blue); box-shadow: 3px 3px 0 var(--cocoa); }
.category-tab:disabled { opacity: .72; cursor: not-allowed; }
.catalog-controls label { display: grid; min-width: min(100%, 240px); gap: .4rem; }
.catalog-controls label:last-child { width: min(100%, 280px); }
.catalog-controls select {
  width: 100%;
  min-height: 3rem;
  padding: .65rem 2.5rem .65rem .8rem;
  border: 2px solid var(--cocoa);
  border-radius: .75rem;
  color: #171717;
  background: var(--white);
  font: inherit;
}

.category-tab:focus-visible,
.catalog-controls select:focus-visible,
.shop-product-action:focus-visible { outline: 4px solid rgba(49, 95, 120, .35); outline-offset: 2px; }
.shop-status { padding: 2.5rem; border: 2px dashed var(--cocoa); border-radius: 1.25rem; color: var(--cocoa); background: var(--lilac); text-align: center; }
.shop-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.shop-product-card { display: flex; overflow: hidden; flex-direction: column; border: 2px solid var(--cocoa); border-radius: 1.4rem; color: var(--cocoa); background: var(--white); box-shadow: var(--shadow); }
.shop-product-image { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--cocoa); background: var(--lilac); }
.shop-product-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-placeholder { display: grid; height: 100%; place-items: center; padding: 2rem; background: linear-gradient(135deg, var(--lavender), var(--blue)); font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.35rem; font-weight: 900; text-align: center; }
.shop-product-copy { display: flex; min-height: 330px; padding: 1.45rem; flex: 1; flex-direction: column; }
.shop-product-type { margin: 0 0 .65rem; color: #5d4771; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.shop-product-card h3 { margin-bottom: .7rem; font-size: 1.65rem; }
.shop-product-description { font-size: .95rem; }
.shop-product-footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: auto; padding-top: 1rem; }
.shop-product-price { font-family: "Raleway", ui-sans-serif, system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; }
.shop-product-action { padding: .7rem .9rem; border: 2px solid var(--action-blue); border-radius: .75rem; color: var(--white); background: var(--action-blue); font-weight: 850; text-decoration: none; }
.shop-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; max-width: 1180px; margin: 0 auto 7rem; padding: clamp(2rem, 5vw, 4rem); border: 2px solid var(--cocoa); border-radius: 1.6rem; color: var(--cocoa); background: var(--sage); box-shadow: var(--shadow); }
.shop-note h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.shop-note > p { margin-bottom: 0; font-size: 1.08rem; }

@media (max-width: 960px) {
  .shop-product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shop-hero { padding: 3.5rem 1.1rem 2.5rem; }
  .shop-hero h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .catalog-shell { padding: 1.5rem 1.1rem 5rem; }
  .catalog-heading { display: block; }
  .catalog-count { margin-top: 1rem; white-space: normal; }
  .catalog-controls { align-items: stretch; flex-direction: column; }
  .catalog-controls label:last-child { width: 100%; }
  .category-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
  .category-tab { width: 100%; min-height: 3.35rem; padding: .65rem .55rem; border-radius: 1rem; font-size: .82rem; }
  .shop-product-grid { grid-template-columns: 1fr; }
  .shop-product-copy { min-height: 0; }
  .shop-note { grid-template-columns: 1fr; margin: 0 1rem 5rem; padding: 2rem 1.2rem; }
}
