/* Thicket Pulse — shop */

.tp-shop {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.75rem) clamp(1rem, 3vw, 2rem) 3.5rem;
}

.tp-shop__mast {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.tp-shop__mast h1 {
  margin: 0.3rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.8vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tp-shop__mast p {
  margin: 0;
  max-width: 48ch;
  color: var(--tp-mute);
  line-height: 1.5;
}

.tp-shop__stat {
  min-width: 7.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--tp-radius);
  background: var(--tp-pine);
  color: #f5fff7;
  text-align: center;
  box-shadow: 0 14px 28px rgba(31, 74, 56, 0.22);
}

.tp-shop__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tp-shop__stat span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.tp-shop__command {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.tp-shop__seek {
  flex: 1 1 16rem;
  display: flex;
  min-height: 2.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--tp-panel);
  border: 1.5px solid var(--tp-line);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

.tp-shop__seek:focus-within {
  border-color: var(--tp-vein);
  box-shadow: 0 0 0 4px rgba(46, 184, 176, 0.14);
}

.tp-shop__seek input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 1rem;
  font: inherit;
  outline: none;
  color: var(--tp-ink);
}

.tp-shop__seek button {
  appearance: none;
  border: 0;
  padding: 0 1.15rem;
  background: var(--tp-flare);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.tp-shop__seek button:hover { background: #ff6f45; }

.tp-shop__aisles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 11rem);
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0 1rem;
  scroll-snap-type: x mandatory;
  margin-bottom: 0.35rem;
}

.tp-shop__aisle {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--tp-radius-sm);
  background: var(--tp-panel);
  border: 1.5px solid var(--tp-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--tp-snap), border-color 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.tp-shop__aisle:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 184, 176, 0.4);
  box-shadow: 0 12px 24px rgba(21, 36, 28, 0.07);
}

.tp-shop__aisle.is-active {
  background: var(--tp-pine);
  color: #f5fff7;
  border-color: var(--tp-pine);
}

.tp-shop__aisle-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tp-shop__aisle-name {
  font-size: 0.78rem;
  line-height: 1.3;
  opacity: 0.85;
}

.tp-shop__filters {
  margin-bottom: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px solid var(--tp-line);
  box-shadow: 0 14px 32px rgba(21, 36, 28, 0.06);
}

.tp-shop__filters[hidden] { display: none !important; }

.tp-shop__filters-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tp-shop__filters-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.tp-shop__filters-head p {
  margin: 0.25rem 0 0;
  color: var(--tp-mute);
  font-size: 0.88rem;
}

.tp-shop__filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tp-shop__filter-grid fieldset {
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--tp-radius-sm);
  border: 1px solid var(--tp-line);
  background: var(--tp-meadow);
}

.tp-shop__filter-grid legend {
  padding: 0 0.3rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-pine);
}

.tp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.4rem 0;
  font-size: 0.84rem;
  color: var(--tp-ink);
  cursor: pointer;
}

.tp-check input { margin-top: 0.15rem; accent-color: var(--tp-flare); }

.tp-shop__filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tp-shop__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tp-shop__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.tp-shop__sort-label {
  margin-right: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-shop__sort-opt {
  appearance: none;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-panel);
  color: var(--tp-mute);
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--tp-snap), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tp-shop__sort-opt:hover {
  transform: translateY(-1px);
  color: var(--tp-ink);
}

.tp-shop__sort-opt.is-active {
  background: var(--tp-flare);
  border-color: var(--tp-flare);
  color: #fff;
}

.tp-shop__field {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.tp-shop__field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-mute);
}

.tp-shop__field input {
  min-height: 2.4rem;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1.5px solid var(--tp-line);
  background: #fff;
  font: inherit;
}

.tp-shop__empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--tp-radius);
  background: var(--tp-panel);
  border: 1px dashed var(--tp-line);
}

.tp-shop__empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

.tp-shop__empty p {
  margin: 0 0 1rem;
  color: var(--tp-mute);
}

.tp-shop__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.tp-seed {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--tp-snap);
}

.tp-seed:hover { transform: translateY(-5px); }

.tp-seed__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background: var(--tp-meadow);
  border: 1px solid var(--tp-line);
}

.tp-seed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--tp-ease);
}

.tp-seed:hover .tp-seed__media img { transform: scale(1.06); }

.tp-seed__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.tp-seed__badge--out { background: var(--tp-ink); }
.tp-seed__badge--sale { background: var(--tp-flare); }

.tp-seed__price {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(244, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--tp-pine);
}

.tp-seed__price s {
  margin-right: 0.3rem;
  color: var(--tp-mute);
  font-weight: 600;
}

.tp-seed__cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tp-vein);
}

.tp-seed__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.tp-shop__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.tp-page {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--tp-line);
  background: var(--tp-panel);
  color: var(--tp-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.25s var(--tp-snap), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tp-page:hover {
  transform: translateY(-2px);
  border-color: var(--tp-vein);
}

.tp-page.is-current {
  background: var(--tp-pine);
  border-color: var(--tp-pine);
  color: #f5fff7;
}

.tp-page--ellipsis {
  border: 0;
  background: transparent;
}

.tp-shop__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tp-line);
  color: var(--tp-mute);
  font-size: 0.82rem;
}

.tp-shop__foot a {
  color: var(--tp-pine);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
}

.tp-btn__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--tp-flare);
  color: #fff;
  font-size: 0.65rem;
}

.tp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .tp-shop__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-shop__filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tp-shop__mast { grid-template-columns: 1fr; }
  .tp-shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-shop__filter-grid { grid-template-columns: 1fr; }
}
