/* Coplost Enterprises — Plot Ticker shop (shop.php only)
   Independent zph-* system. Not sh-* / a67-tile / orbit shop patterns. */

.page-shop.zph-shop {
  --zph-ink: #0f1419;
  --zph-slate: #2c3644;
  --zph-fog: #eef2f6;
  --zph-paper: #f7f8fa;
  --zph-line: rgba(15, 20, 25, 0.12);
  --zph-lime: #d4ff4f;
  --zph-lime-ink: #1a2800;
  --zph-coral: #ff5e4d;
  --zph-cyan: #1ec8c0;
  --zph-display: "Fraunces", Georgia, serif;
  --zph-sans: "Outfit", "Segoe UI", sans-serif;
  --zph-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zph-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

.page-shop.zph-shop.a67-body {
  margin: 0;
  color: var(--zph-ink);
  font-family: var(--zph-sans);
  background: var(--zph-paper);
}

.page-shop .a67-root-bare {
  padding: 0;
  overflow: visible;
}

.page-shop .a67-main {
  overflow: visible;
}

.zph-world {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: 1.1rem clamp(1rem, 3vw, 2rem) 2.5rem;
  overflow-x: clip;
}

.zph-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(212, 255, 79, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 10%, rgba(255, 94, 77, 0.12), transparent 50%),
    linear-gradient(165deg, #fbfcfd 0%, var(--zph-fog) 50%, #e5ebf1 100%);
}

.zph-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  animation: zph-drift 16s ease-in-out infinite alternate;
}

.zph-flare-a {
  width: min(40vw, 26rem);
  height: min(40vw, 26rem);
  top: 10%;
  right: -8%;
  background: rgba(30, 200, 192, 0.22);
}

.zph-flare-b {
  width: min(34vw, 20rem);
  height: min(34vw, 20rem);
  bottom: 5%;
  left: -6%;
  background: rgba(212, 255, 79, 0.25);
  animation-delay: -5s;
}

.zph-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 20, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 25, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 25%, #000 20%, transparent 75%);
}

/* Topbar */
.zph-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: zph-rise 0.5s var(--zph-ease) both;
}

.zph-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.zph-mark-seal {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  background: var(--zph-ink);
  color: var(--zph-lime);
  font-family: var(--zph-sans);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  transition: transform 0.35s var(--zph-spring);
}

.zph-mark:hover .zph-mark-seal {
  transform: rotate(8deg) scale(1.06);
}

.zph-mark-name {
  font-family: var(--zph-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.zph-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.95rem;
}

.zph-top-nav a {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--zph-slate);
  text-decoration: none;
}

.zph-top-nav a:hover {
  color: var(--zph-ink);
}

.zph-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--zph-ink) !important;
  color: var(--zph-lime) !important;
  font-weight: 700 !important;
  transition: transform 0.3s var(--zph-spring);
}

.zph-cart:hover {
  transform: translateY(-2px) scale(1.03);
}

.zph-cart em {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--zph-lime);
  color: var(--zph-lime-ink);
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
}

.zph-cart em[hidden] {
  display: none;
}

/* Hero */
.zph-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--zph-line);
  animation: zph-rise 0.55s var(--zph-ease) 0.04s both;
}

.zph-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zph-slate);
}

.zph-hero h1 {
  margin: 0;
  display: grid;
  gap: 0.15rem;
}

.zph-brand {
  font-family: var(--zph-display);
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.zph-lane {
  font-family: var(--zph-sans);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--zph-coral);
  letter-spacing: -0.02em;
}

.zph-lede {
  margin: 0.7rem 0 0;
  max-width: 42ch;
  color: var(--zph-slate);
  font-size: 1.02rem;
  line-height: 1.5;
}

.zph-hero-stats {
  display: flex;
  gap: 1.25rem;
}

.zph-hero-stats div {
  display: grid;
  gap: 0.15rem;
  min-width: 4.5rem;
}

.zph-hero-stats strong {
  font-family: var(--zph-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.zph-hero-stats span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zph-slate);
}

/* Board: tuner + floor */
.zph-board {
  display: grid;
  grid-template-columns: minmax(11.5rem, 14rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  animation: zph-rise 0.55s var(--zph-ease) 0.08s both;
}

/* Vertical aisle tuner */
.zph-tuner {
  position: sticky;
  top: 1rem;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: 1.4rem;
  background: var(--zph-ink);
  color: #f4f7fb;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 90% 100%, 0 100%);
}

.zph-tuner-label {
  margin: 0 0 0.85rem;
  padding: 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.82);
}

.zph-tuner-track {
  position: relative;
  display: grid;
  gap: 0.2rem;
}

.zph-tuner-needle {
  position: absolute;
  left: 0;
  right: 0;
  height: 2.85rem;
  border-radius: 0.85rem;
  background: linear-gradient(90deg, var(--zph-lime), rgba(212, 255, 79, 0.55));
  box-shadow: 0 8px 22px rgba(212, 255, 79, 0.25);
  transition: transform 0.4s var(--zph-spring), height 0.25s;
  z-index: 0;
  pointer-events: none;
}

.zph-dial {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.55rem;
  border-radius: 0.85rem;
  text-decoration: none;
  color: rgba(244, 247, 251, 0.78);
  transition: color 0.2s;
}

.zph-dial em {
  font-style: normal;
  font-family: var(--zph-display);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.55;
}

.zph-dial span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.zph-dial:hover {
  color: #fff;
}

.zph-dial.is-on {
  color: var(--zph-lime-ink);
}

.zph-dial.is-on em {
  opacity: 0.75;
  color: var(--zph-lime-ink);
}

/* Floor */
.zph-floor {
  min-width: 0;
}

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

.zph-seek {
  display: flex;
  flex: 1 1 16rem;
  max-width: 28rem;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1.5px solid var(--zph-line);
  box-shadow: 0 10px 28px rgba(15, 20, 25, 0.05);
  transition: border-color 0.2s, box-shadow 0.25s;
}

.zph-seek:focus-within {
  border-color: rgba(255, 94, 77, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 94, 77, 0.1);
}

.zph-seek input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-weight: 550;
  color: var(--zph-ink);
  outline: none;
}

.zph-seek button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.7rem 1.1rem;
  border-radius: 0.85rem;
  background: var(--zph-coral);
  color: #fff;
  font: inherit;
  font-weight: 750;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
  transition: transform 0.3s var(--zph-spring), background 0.2s;
}

.zph-seek button:hover {
  transform: scale(1.04);
  background: #ff4632;
}

.zph-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.zph-sort select {
  appearance: none;
  border: 1.5px solid var(--zph-line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%233a4554' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  padding: 0.65rem 2.1rem 0.65rem 0.85rem;
  border-radius: 0.85rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--zph-ink);
  cursor: pointer;
}

.zph-density {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1.5px solid var(--zph-line);
}

.zph-density button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--zph-slate);
  transition: background 0.2s, color 0.2s, transform 0.25s var(--zph-spring);
}

.zph-density button.is-on {
  background: var(--zph-ink);
  color: var(--zph-lime);
}

.zph-density button:hover:not(.is-on) {
  color: var(--zph-ink);
}

/* Product plates — unique cards */
.zph-plot {
  display: grid;
  gap: 0.95rem;
}

.zph-plot.is-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zph-plot.is-strip {
  grid-template-columns: 1fr;
}

.zph-plate.is-resort {
  animation: zph-rise 0.4s var(--zph-ease) both;
}

.zph-plot.is-strip .zph-plate {
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr);
  align-items: stretch;
}

.zph-plate:hover {
  transform: translateY(-6px) rotate(-0.35deg);
  border-color: transparent;
  box-shadow: 0 22px 44px rgba(15, 20, 25, 0.12);
}

.zph-plate-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--zph-fog);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.zph-plot.is-strip .zph-plate-media {
  aspect-ratio: auto;
  min-height: 100%;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.zph-plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--zph-ease);
}

.zph-plate:hover .zph-plate-media img {
  transform: scale(1.1) translate(-2%, 1%);
}

.zph-plate-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.6rem;
  background: var(--zph-lime);
  color: var(--zph-lime-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 0 100%);
}

.zph-plate-peek {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
  background: rgba(15, 20, 25, 0.88);
  color: var(--zph-lime);
  font-size: 0.78rem;
  font-weight: 750;
  border-radius: 0.7rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.35s var(--zph-spring);
}

.zph-plate:hover .zph-plate-peek {
  opacity: 1;
  transform: none;
}

.zph-plate-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
}

.zph-plate-aisle {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f766e;
}

.zph-plate-title {
  margin: 0;
  font-family: var(--zph-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.zph-plate-title a {
  text-decoration: none;
  color: inherit;
}

.zph-plate-title a:hover {
  color: var(--zph-coral);
}

.zph-plate-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.zph-plate-price {
  font-family: var(--zph-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.zph-plate-sku {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--zph-slate);
  font-variant-numeric: tabular-nums;
}

/* Empty */
.zph-empty {
  text-align: center;
  padding: 3.25rem 1.5rem;
  border-radius: 1.4rem;
  background: #fff;
  border: 1.5px dashed var(--zph-line);
}

.zph-empty-title {
  margin: 0 0 0.4rem;
  font-family: var(--zph-display);
  font-size: 1.65rem;
  font-weight: 700;
}

.zph-empty-sub {
  margin: 0 0 1.25rem;
  color: var(--zph-slate);
}

.zph-empty-btn {
  display: inline-flex;
  padding: 0.85rem 1.25rem;
  background: var(--zph-ink);
  color: var(--zph-lime);
  font-weight: 750;
  text-decoration: none;
  border-radius: 0.9rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 100%, 0 100%);
  transition: transform 0.3s var(--zph-spring);
}

.zph-empty-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Pagination restyle for this page */
.page-shop.zph-shop .catalog-pagination .pagination-inner {
  margin-top: 1.75rem;
  gap: 0.55rem;
}

.page-shop.zph-shop .catalog-pagination .pagination-num,
.page-shop.zph-shop .catalog-pagination .pagination-btn {
  border-radius: 0.75rem;
  border: 1.5px solid var(--zph-line);
  background: #fff;
  box-shadow: none;
  color: var(--zph-ink);
  font-family: var(--zph-sans);
}

.page-shop.zph-shop .catalog-pagination .pagination-num:hover,
.page-shop.zph-shop .catalog-pagination .pagination-btn:not(.is-disabled):hover {
  background: var(--zph-coral);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.page-shop.zph-shop .catalog-pagination .pagination-num.is-active {
  background: var(--zph-ink);
  border-color: transparent;
  color: var(--zph-lime);
}

/* Foot */
.zph-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--zph-line);
  color: var(--zph-slate);
  font-size: 0.82rem;
  font-weight: 600;
}

.zph-foot p {
  margin: 0;
}

.zph-foot nav {
  display: flex;
  gap: 0.85rem;
}

.zph-foot a {
  color: var(--zph-ink);
  font-weight: 700;
  text-decoration: none;
}

.zph-foot a:hover {
  color: var(--zph-coral);
}

@keyframes zph-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes zph-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-5%, 7%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .zph-topbar,
  .zph-hero,
  .zph-board,
  .zph-plate,
  .zph-flare {
    animation: none !important;
  }

  .zph-tuner-needle {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .zph-plot.is-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .zph-board {
    grid-template-columns: 1fr;
  }

  .zph-tuner {
    position: static;
    clip-path: none;
  }

  .zph-tuner-track {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .zph-tuner-needle {
    display: none;
  }

  .zph-dial {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
  }

  .zph-dial.is-on {
    background: var(--zph-lime);
  }

  .zph-dial em {
    display: none;
  }
}

@media (max-width: 560px) {
  .zph-plot.is-gallery,
  .zph-plot.is-strip {
    grid-template-columns: 1fr;
  }

  .zph-plot.is-strip .zph-plate {
    grid-template-columns: 1fr;
  }

  .zph-seek {
    flex: 1 1 100%;
    max-width: none;
  }

  .zph-hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .zph-world {
    padding-bottom: 4.5rem;
  }
}
