/* Pot Bench Market — shop (CityTribe)
   Sticky soil-tray filters · chalk price tags · terracotta pots.
   Not Cold Frame / Bubble Sheet / Canopy / Sail / Drift. */
@import url("https://fonts.googleapis.com/css2?family=Potta+One&family=Public+Sans:ital,wght@0,500;0,600;0,700;0,800;1,500&display=swap");

.page-a103-potbench {
  --pb-ink: #1A1410;
  --pb-mute: #5A4638;
  --pb-clay: #C45C2A;
  --pb-clay-deep: #9A4420;
  --pb-leaf: #1A9B6C;
  --pb-leaf-deep: #0F7A52;
  --pb-coral: #FF5A3D;
  --pb-coral-deep: #D43822;
  --pb-teal: #00A8A0;
  --pb-teal-deep: #007A74;
  --pb-sun: #FFE566;
  --pb-sun-ink: #1A1410;
  --pb-chalk: #F5F0E0;
  --pb-chalk-line: #3A3428;
  --pb-soil: #3D2A1A;
  --pb-soil-light: #5C4030;
  --pb-bench: #D4B896;
  --pb-bench-deep: #B89870;
  --pb-kraft: #FFF8E8;
  --pb-field: #F5F0E6;
  --pb-field-cool: #E8F5EE;
  --pb-surface: #FFFFFF;
  --pb-radius: 12px;
  --pb-font-display: "Potta One", system-ui, sans-serif;
  --pb-font-body: "Public Sans", system-ui, sans-serif;
  font-family: var(--pb-font-body);
  color: var(--pb-ink);
  background:
    radial-gradient(ellipse 40% 28% at 10% 0%, rgba(196, 92, 42, 0.14), transparent 55%),
    radial-gradient(ellipse 36% 24% at 90% 4%, rgba(26, 155, 108, 0.12), transparent 50%),
    linear-gradient(170deg, var(--pb-field) 0%, var(--pb-field-cool) 48%, #FFF6E8 100%);
}

.pb-stage { padding-bottom: 56px; }

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

.pb-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pb-clay-deep);
}

.pb-mast {
  padding: 28px 0 16px;
}
.pb-mast h1 {
  margin: 0;
  font-family: var(--pb-font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}
.pb-lede {
  margin: 10px 0 0;
  max-width: 52ch;
  font-weight: 600;
  color: var(--pb-mute);
}

/* Filter console — relative in flow (not sticky) */
.pb-console {
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 0.97) 0%, rgba(245, 240, 230, 0.92) 70%, transparent 100%);
}

.pb-bench-edge {
  height: 10px;
  margin-bottom: 4px;
}
.pb-bench-grain {
  display: block;
  height: 100%;
  border-radius: 4px 4px 0 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--pb-bench-deep),
      var(--pb-bench-deep) 12px,
      var(--pb-bench) 12px,
      var(--pb-bench) 24px
    );
  border: 2px solid var(--pb-ink);
  border-bottom: none;
}

.pb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--pb-soil);
  border: 3px solid var(--pb-ink);
  border-radius: var(--pb-radius) var(--pb-radius) 0 0;
  color: var(--pb-chalk);
}

.pb-search {
  flex: 1 1 200px;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.pb-search input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--pb-ink);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
  background: var(--pb-chalk);
  color: var(--pb-ink);
}
.pb-search input:focus {
  outline: 3px solid var(--pb-leaf);
  outline-offset: 1px;
}
.pb-search-btn {
  border: 2px solid var(--pb-ink);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  background: var(--pb-sun);
  color: var(--pb-sun-ink);
  cursor: pointer;
  white-space: nowrap;
}

.pb-soil-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.pb-soil-label {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.pb-soil-label strong { color: var(--pb-sun); }
.pb-soil-tray {
  position: relative;
  width: 72px;
  height: 14px;
  border: 2px solid var(--pb-chalk);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.pb-soil-tray i {
  display: block;
  height: 100%;
  width: var(--pb-fill, 40%);
  background: linear-gradient(90deg, var(--pb-clay), var(--pb-leaf));
  transition: width 0.4s ease;
}
.pb-soil-meter.is-pulse .pb-soil-tray i {
  animation: pbSoilPulse 0.55s ease;
}
@keyframes pbSoilPulse {
  0% { width: 0; }
  100% { width: var(--pb-fill, 40%); }
}

.pb-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.pb-sort select {
  border: 2px solid var(--pb-ink);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  background: var(--pb-chalk);
  color: var(--pb-ink);
}

/* Soil tray filters (slide drawers — not hinged lids) */
.pb-trays {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
  background: var(--pb-bench);
  border: 3px solid var(--pb-ink);
  border-top: none;
  border-radius: 0 0 var(--pb-radius) var(--pb-radius);
  position: relative;
}

.pb-tray { position: relative; }

.pb-tray-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border: 2.5px solid var(--pb-ink);
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  background: var(--pb-kraft);
  color: var(--pb-ink);
  box-shadow: 3px 3px 0 rgba(26, 20, 16, 0.18);
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease;
}
.pb-tray-lip {
  width: 18px;
  height: 8px;
  border: 2px solid var(--pb-ink);
  border-radius: 3px 3px 0 0;
  background: var(--pb-soil-light);
  margin-top: -2px;
  transition: transform 0.28s ease;
}
.pb-tray-btn--leaf { background: #E0FFF0; }
.pb-tray-btn--leaf .pb-tray-lip { background: var(--pb-leaf); }
.pb-tray-btn--chalk { background: var(--pb-chalk); }
.pb-tray-btn--chalk .pb-tray-lip { background: #8A8070; }
.pb-tray-btn--coral { background: #FFE8E0; }
.pb-tray-btn--coral .pb-tray-lip { background: var(--pb-coral); }
.pb-tray-btn--teal { background: #E0FFFC; }
.pb-tray-btn--teal .pb-tray-lip { background: var(--pb-teal); }

.pb-tray-btn[aria-expanded="true"],
.pb-tray-btn.is-slide {
  transform: translateY(4px);
  box-shadow: 1px 1px 0 rgba(26, 20, 16, 0.2);
}
.pb-tray-btn[aria-expanded="true"] .pb-tray-lip,
.pb-tray-btn.is-slide .pb-tray-lip {
  transform: translateY(3px) scaleX(1.15);
}

.pb-tray-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 220px;
  max-width: min(320px, 88vw);
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  background: var(--pb-kraft);
  border: 3px solid var(--pb-ink);
  border-radius: var(--pb-radius);
  box-shadow: 5px 5px 0 rgba(26, 20, 16, 0.2);
  display: grid;
  gap: 8px;
}
.pb-tray-panel[hidden] {
  display: none !important;
}
.pb-tray:has(.pb-tray-btn[aria-expanded="true"]) {
  z-index: 60;
}
.pb-tray:nth-child(n + 3) .pb-tray-panel {
  left: auto;
  right: 0;
}
.pb-tray-panel label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pb-note {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pb-mute);
}
.pb-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pb-price-row input {
  width: 100%;
  border: 2px solid var(--pb-ink);
  border-radius: 8px;
  padding: 8px;
  font: inherit;
  font-weight: 600;
  background: var(--pb-surface);
}
.pb-apply {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid var(--pb-ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  background: var(--pb-leaf);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.pb-apply:hover { background: var(--pb-leaf-deep); }

.pb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 0 4px;
}
.pb-chip {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 2px solid var(--pb-ink);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--pb-surface);
}
.pb-chip--leaf { background: #D8FFE8; }
.pb-chip--chalk { background: var(--pb-chalk); }
.pb-chip--coral { background: #FFE4DC; }
.pb-chip--teal { background: #D8FFFB; }
.pb-chip--sun { background: var(--pb-sun); }
.pb-clear {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pb-coral-deep);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

/* Product pots */
.pb-shelf { padding-top: 18px; }

.pb-empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--pb-kraft);
  border: 3px dashed var(--pb-bench-deep);
  border-radius: var(--pb-radius);
}
.pb-empty p {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1.1rem;
}

.pb-pots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 16px;
}

.pb-pot {
  position: relative;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .pb-pot:not(.is-in) {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  .pb-pot.is-in {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--pb-i, 0) * 40ms);
  }
}
.pb-pot:hover {
  transform: translateY(-4px);
}
.pb-pot.is-sold-out { filter: grayscale(0.45); opacity: 0.7; }
.pb-pot.is-sold-out.is-in { opacity: 0.7; }

.pb-pot-rim {
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 12px;
  border: 2.5px solid var(--pb-ink);
  border-radius: 6px 6px 0 0;
  background: var(--pb-clay);
  z-index: 2;
}
.pb-pot--leaf .pb-pot-rim { background: var(--pb-leaf); }
.pb-pot--coral .pb-pot-rim { background: var(--pb-coral); }
.pb-pot--teal .pb-pot-rim { background: var(--pb-teal); }
.pb-pot--sun .pb-pot-rim { background: var(--pb-sun); }
.pb-pot--clay .pb-pot-rim { background: var(--pb-clay); }

.pb-pot-num {
  position: absolute;
  top: 18px;
  left: 10px;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  background: var(--pb-ink);
  color: var(--pb-sun);
  border-radius: 4px;
}

.pb-pot-media {
  position: relative;
  display: block;
  margin-top: 8px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--pb-ink);
  border-radius: 8px 8px 40% 40% / 8px 8px 18% 18%;
  background:
    linear-gradient(180deg, transparent 70%, var(--pb-soil) 70%),
    var(--pb-field-cool);
  box-shadow: 4px 4px 0 rgba(26, 20, 16, 0.14);
}
.pb-pot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pb-sale {
  position: absolute;
  top: 10px;
  right: 8px;
  z-index: 2;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--pb-coral);
  color: #fff;
  border: 2px solid var(--pb-ink);
  border-radius: 6px;
  transform: rotate(6deg);
}

.pb-chalk {
  margin-top: 10px;
  padding: 12px 12px 14px;
  background: var(--pb-chalk);
  border: 2.5px solid var(--pb-chalk-line);
  border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(26, 20, 16, 0.1);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(58, 52, 40, 0.08) 27px,
      rgba(58, 52, 40, 0.08) 28px
    );
}
.pb-aisle {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pb-clay-deep);
  margin-bottom: 4px;
}
.pb-chalk h2 {
  margin: 0 0 6px;
  font-family: var(--pb-font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
}
.pb-chalk h2 a {
  color: inherit;
  text-decoration: none;
}
.pb-chalk h2 a:hover { color: var(--pb-leaf-deep); }

.pb-price {
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}
.pb-price s {
  font-size: 0.85rem;
  color: var(--pb-mute);
  font-weight: 600;
}
.pb-price strong {
  font-size: 1.15rem;
  color: var(--pb-ink);
}

.pb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--pb-ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  background: var(--pb-leaf);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}
.pb-cta:hover {
  background: var(--pb-leaf-deep);
  transform: translateY(-1px);
}
.pb-cta.is-disabled {
  background: #A89888;
  color: #2A2218;
  pointer-events: none;
  box-shadow: none;
}

/* Pagination under pot bench */
.page-a103-potbench .a103-shop-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 28px 0 8px;
}
.page-a103-potbench .a103-page-num,
.page-a103-potbench .a103-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 2.5px solid var(--pb-ink);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--pb-ink);
  background: var(--pb-chalk);
}
.page-a103-potbench .a103-page-num.is-active {
  background: var(--pb-clay);
  color: #fff;
}
.page-a103-potbench .a103-page-gap {
  font-weight: 700;
  color: var(--pb-mute);
}

@media (max-width: 640px) {
  .pb-bar { flex-direction: column; align-items: stretch; }
  .pb-soil-meter { justify-content: space-between; }
  .pb-tray-panel,
  .pb-tray:nth-child(n + 3) .pb-tray-panel {
    left: 0;
    right: auto;
    max-width: calc(100vw - 48px);
  }
  .pb-pots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 420px) {
  .pb-pots { grid-template-columns: 1fr; }
  .pb-cta,
  .pb-apply,
  .pb-search-btn { width: 100%; }
}
