/* Appily Thirtyseven — Plot Market shop
   New layout: command bar + aisle rail + refine dock + product shelves */

.page-shop-plot {
  --plot-ink: #04261f;
  --plot-deep: #0a3d32;
  --plot-leaf: #0f8f72;
  --plot-mint: #2ee6a8;
  --plot-sky: #d6f3ea;
  --plot-wash: #eef9f4;
  --plot-paper: #f7fcfa;
  --plot-coral: #ff6b4a;
  --plot-gold: #e8c547;
  --plot-muted: #4d6b62;
  --plot-line: rgba(4, 38, 31, 0.12);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-shop-plot .page-main {
  padding-top: 0;
  font-family: var(--font-body);
  color: var(--plot-ink);
  background:
    radial-gradient(ellipse 60% 35% at 90% 0%, rgba(232, 197, 71, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 30% at 5% 8%, rgba(46, 230, 168, 0.16), transparent 50%),
    linear-gradient(180deg, var(--plot-sky) 0%, var(--plot-wash) 28%, var(--plot-paper) 60%, #fff 100%);
}

.a37-plot {
  padding-bottom: 3.5rem;
}

/* —— Command bar —— */
.a37-plot-command {
  position: relative;
  padding: 2.2rem 0 1.6rem;
  overflow: hidden;
  isolation: isolate;
}

.a37-plot-command-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 16px,
      rgba(15, 143, 114, 0.04) 16px,
      rgba(15, 143, 114, 0.04) 17px
    );
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  animation: a37PlotMesh 32s linear infinite;
}

@keyframes a37PlotMesh {
  to { transform: translateX(28px); }
}

.a37-plot-command-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.5rem 2rem;
  align-items: end;
}

.a37-plot-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plot-leaf);
}

.a37-plot-command-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--plot-ink);
}

.a37-plot-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--plot-muted);
}

.a37-plot-lede strong {
  color: var(--plot-leaf);
  font-weight: 750;
}

.a37-plot-search {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.3rem 0.3rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(4, 38, 31, 0.1);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s, transform 0.3s var(--ease-spring);
}

.a37-plot-search:focus-within {
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px rgba(4, 38, 31, 0.14),
    0 0 0 3px rgba(46, 230, 168, 0.25);
}

.a37-plot-search-icon {
  display: flex;
  color: var(--plot-leaf);
  opacity: 0.85;
}

.a37-plot-search input {
  flex: 1;
  border: 0;
  min-width: 0;
  padding: 0.85rem 0.55rem;
  font: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: var(--plot-ink);
}

.a37-plot-search input:focus { outline: none; }
.a37-plot-search input::placeholder { color: var(--plot-muted); }

.a37-plot-search button {
  flex-shrink: 0;
  border: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plot-ink);
  background: linear-gradient(135deg, var(--plot-mint), #7ef0c4);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(46, 230, 168, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.a37-plot-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(46, 230, 168, 0.45);
}

/* —— Aisle rail —— */
.a37-plot-aisles {
  padding: 0.25rem 0 0.5rem;
}

.a37-plot-aisles-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.4rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.a37-plot-aisle {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 132px;
  padding: 0.95rem 1.05rem;
  border-radius: 1.15rem;
  text-decoration: none !important;
  color: var(--plot-ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--plot-line);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(4, 38, 31, 0.05);
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.25s, background 0.25s;
}

.a37-plot-aisle::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--aisle-accent, var(--plot-mint));
  opacity: 0.55;
  transition: opacity 0.25s, width 0.25s;
}

.a37-plot-aisle.tone-mint { --aisle-accent: var(--plot-mint); }
.a37-plot-aisle.tone-teal { --aisle-accent: var(--plot-leaf); }
.a37-plot-aisle.tone-coral { --aisle-accent: var(--plot-coral); }
.a37-plot-aisle.tone-gold { --aisle-accent: var(--plot-gold); }

.a37-plot-aisle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(4, 38, 31, 0.1);
  border-color: rgba(46, 230, 168, 0.4);
  text-decoration: none !important;
}

.a37-plot-aisle.is-active {
  background: linear-gradient(145deg, var(--plot-deep), var(--plot-ink));
  color: #fff;
  border-color: rgba(46, 230, 168, 0.3);
  box-shadow: 0 18px 36px rgba(4, 38, 31, 0.22);
}

.a37-plot-aisle.is-active::before {
  width: 100%;
  opacity: 0.12;
  background: var(--plot-mint);
}

.a37-plot-aisle-label {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 11ch;
}

.a37-plot-aisle-count {
  position: relative;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(46, 230, 168, 0.2);
  color: var(--plot-leaf);
}

.a37-plot-aisle.is-active .a37-plot-aisle-count {
  background: rgba(46, 230, 168, 0.95);
  color: var(--plot-ink);
}

/* —— Stage —— */
.a37-plot-stage {
  padding-top: 0.75rem;
}

/* Dock */
.a37-plot-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--plot-line);
  box-shadow: 0 12px 28px rgba(4, 38, 31, 0.06);
  backdrop-filter: blur(12px);
}

.a37-plot-dock-left,
.a37-plot-dock-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.a37-plot-refine-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(46, 230, 168, 0.4);
  border-radius: 999px;
  background: rgba(46, 230, 168, 0.12);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plot-ink);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.a37-plot-refine-btn:hover,
.a37-plot-refine-btn.is-open {
  background: var(--plot-ink);
  color: var(--plot-mint);
  border-color: var(--plot-ink);
  box-shadow: 0 8px 20px rgba(4, 38, 31, 0.18);
}

.a37-plot-refine-ico {
  width: 14px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.a37-plot-refine-ico::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}

.a37-plot-refine-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: var(--plot-coral);
  color: #fff;
}

.a37-plot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.a37-plot-chip {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--plot-leaf);
  background: rgba(46, 230, 168, 0.15);
  border: 1px solid rgba(46, 230, 168, 0.3);
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.a37-plot-chip:hover {
  background: var(--plot-ink);
  color: var(--plot-mint);
}

.a37-plot-sort {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(4, 38, 31, 0.06);
}

.a37-plot-sort-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--plot-muted);
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.a37-plot-sort-btn:hover { color: var(--plot-ink); }

.a37-plot-sort-btn.is-active {
  background: #fff;
  color: var(--plot-ink);
  box-shadow: 0 4px 12px rgba(4, 38, 31, 0.08);
}

.a37-plot-view {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--plot-ink);
}

.a37-plot-view-btn {
  border: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.a37-plot-view-btn.is-active {
  background: var(--plot-mint);
  color: var(--plot-ink);
}

/* Refine panel (full-width dock, not sidebar) */
.a37-plot-refine {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 244, 0.9));
  border: 1px solid rgba(46, 230, 168, 0.3);
  box-shadow: 0 18px 40px rgba(4, 38, 31, 0.08);
  animation: a37PlotRefineIn 0.35s var(--ease-out);
}

@keyframes a37PlotRefineIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.a37-plot-refine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.35rem;
}

.a37-plot-refine-block {
  margin: 0;
  padding: 0;
  border: 0;
}

.a37-plot-refine-block--wide {
  grid-column: 1 / -1;
}

.a37-plot-refine-block legend {
  margin-bottom: 0.55rem;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plot-leaf);
}

.a37-plot-refine-hint {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  color: var(--plot-muted);
}

.a37-plot-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.a37-plot-check input { accent-color: var(--plot-leaf); }
.a37-plot-check em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--plot-muted);
}

.a37-plot-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.a37-plot-prices label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plot-muted);
}

.a37-plot-prices input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--plot-line);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: var(--plot-ink);
  box-sizing: border-box;
}

.a37-plot-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.a37-plot-tag {
  cursor: pointer;
}

.a37-plot-tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.a37-plot-tag span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  border: 1px solid var(--plot-line);
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.a37-plot-tag span em {
  font-style: normal;
  opacity: 0.6;
  font-size: 0.68rem;
}

.a37-plot-tag input:checked + span {
  background: var(--plot-ink);
  border-color: var(--plot-ink);
  color: var(--plot-mint);
  font-weight: 650;
}

.a37-plot-tag:hover span {
  border-color: rgba(46, 230, 168, 0.5);
  transform: translateY(-1px);
}

.a37-plot-refine-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--plot-line);
}

.a37-plot-apply {
  padding: 0.7rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plot-ink);
  background: linear-gradient(135deg, var(--plot-mint), #7ef0c4);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(46, 230, 168, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.a37-plot-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(46, 230, 168, 0.45);
}

.a37-plot-reset,
.a37-plot-refine-close {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--plot-muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  padding: 0.45rem 0.6rem;
}

.a37-plot-reset:hover,
.a37-plot-refine-close:hover {
  color: var(--plot-ink);
}

/* Empty */
.a37-plot-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px dashed rgba(15, 143, 114, 0.3);
}

.a37-plot-empty-mark {
  font-size: 2rem;
  color: var(--plot-mint);
  margin-bottom: 0.75rem;
}

.a37-plot-empty p {
  margin: 0 0 1rem;
  color: var(--plot-muted);
}

.a37-plot-empty a {
  display: inline-flex;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--plot-ink) !important;
  background: var(--plot-mint);
  text-decoration: none !important;
}

/* —— Shelf view —— */
.a37-plot-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.a37-plot-card--shelf {
  display: flex;
  flex-direction: column;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--plot-line);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(4, 38, 31, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.3s;
}

@media (prefers-reduced-motion: no-preference) {
  .a37-plot-card--shelf {
    animation: a37PlotCardIn 0.55s var(--ease-out) both;
    animation-delay: var(--card-delay, 0s);
  }
}

@keyframes a37PlotCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.a37-plot-card--shelf:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(4, 38, 31, 0.12);
  border-color: rgba(46, 230, 168, 0.4);
}

.a37-plot-card--shelf.tone-mint { --card-accent: var(--plot-mint); }
.a37-plot-card--shelf.tone-teal { --card-accent: var(--plot-leaf); }
.a37-plot-card--shelf.tone-coral { --card-accent: var(--plot-coral); }
.a37-plot-card--shelf.tone-gold { --card-accent: var(--plot-gold); }

.a37-plot-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.05;
  text-decoration: none !important;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--card-accent, var(--plot-mint)) 28%, transparent), transparent 60%),
    linear-gradient(165deg, #fff 0%, var(--plot-sky) 100%);
  overflow: hidden;
}

.a37-plot-card-glow {
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: a37PlotGlow 5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes a37PlotGlow {
  from { transform: scale(0.9); opacity: 0.5; }
  to { transform: scale(1.15); opacity: 0.9; }
}

.a37-plot-card-media img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(4, 38, 31, 0.14));
  transition: transform 0.45s var(--ease-spring);
}

.a37-plot-card--shelf:hover .a37-plot-card-media img {
  transform: scale(1.08) translateY(-4px);
}

.a37-plot-card-tag {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.a37-plot-card-tag--sale {
  left: 0.75rem;
  background: linear-gradient(135deg, var(--plot-coral), #ff8f55);
  color: #fff;
  box-shadow: 0 8px 16px rgba(255, 107, 74, 0.3);
}

.a37-plot-card-tag--out {
  right: 0.75rem;
  background: rgba(4, 38, 31, 0.75);
  color: #fff;
}

.a37-plot-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 1.05rem 1.1rem;
  border-top: 1px solid var(--plot-line);
  flex: 1;
}

.a37-plot-card-cat {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, var(--plot-leaf));
}

.a37-plot-card-body h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.35;
}

.a37-plot-card-body h3 a {
  color: var(--plot-ink);
  text-decoration: none !important;
}

.a37-plot-card-body h3 a:hover { color: var(--plot-leaf); }

.a37-plot-card-meta {
  margin: 0;
  font-size: 0.74rem;
  color: var(--plot-muted);
}

.a37-plot-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.a37-plot-card-price {
  margin: 0;
  font-size: 0.95rem;
}

.a37-plot-card-price s {
  font-size: 0.78rem;
  color: var(--plot-muted);
  margin-right: 0.3rem;
}

.a37-plot-card-price strong {
  color: var(--plot-leaf);
  font-weight: 750;
}

.a37-plot-card-cta {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plot-ink) !important;
  background: rgba(46, 230, 168, 0.25);
  border: 1px solid rgba(46, 230, 168, 0.4);
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.a37-plot-card-cta:hover {
  background: var(--plot-ink);
  color: var(--plot-mint) !important;
  transform: translateY(-1px);
}

.a37-plot-card.is-sold-out {
  opacity: 0.72;
}

.a37-plot-card.is-sold-out .a37-plot-card-media img,
.a37-plot-card.is-sold-out .a37-plot-card-frame img {
  filter: grayscale(0.55) opacity(0.8);
}

/* —— Board view —— */
.a37-plot-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.a37-plot-card--board {
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--plot-line);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(4, 38, 31, 0.05);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.a37-plot-card--board:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(4, 38, 31, 0.1);
}

.a37-plot-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.a37-plot-card-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: linear-gradient(165deg, #fff, var(--plot-sky));
}

.a37-plot-card-frame img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: transform 0.35s var(--ease-spring);
}

.a37-plot-card--board:hover .a37-plot-card-frame img {
  transform: scale(1.07);
}

.a37-plot-card-copy {
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid var(--plot-line);
}

.a37-plot-card-copy .a37-plot-card-cat {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--plot-leaf);
}

.a37-plot-card-copy h3 {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--plot-ink);
}

/* Pagination */
.a37-plot .a37-shop-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
}

.a37-plot .a37-page-num,
.a37-plot .a37-page-arrow {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--plot-ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--plot-line);
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.a37-plot .a37-page-num:hover,
.a37-plot .a37-page-arrow:hover {
  border-color: rgba(46, 230, 168, 0.5);
  transform: translateY(-1px);
}

.a37-plot .a37-page-num.is-active {
  background: var(--plot-ink);
  color: var(--plot-mint);
  border-color: var(--plot-ink);
}

.a37-plot .a37-page-gap {
  color: var(--plot-muted);
  padding: 0 0.2rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .a37-plot-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a37-plot-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .a37-plot-command-inner {
    grid-template-columns: 1fr;
  }

  .a37-plot-refine-grid {
    grid-template-columns: 1fr;
  }

  .a37-plot-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .a37-plot-shelf { grid-template-columns: 1fr; }
  .a37-plot-dock-right { width: 100%; justify-content: space-between; }
  .a37-plot-sort { flex: 1; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .a37-plot-command-mesh,
  .a37-plot-card-glow,
  .a37-plot-card--shelf,
  .a37-plot-refine {
    animation: none !important;
  }
}
