.shop-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.shop-search input {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0.75rem 1rem;
  font: inherit;
}

.shop-search input:focus {
  outline: none;
  border-color: rgba(232, 130, 10, 0.55);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shop-filter-empty {
  margin-top: 1.25rem;
  color: var(--muted-2);
  font-size: 14px;
}

.shop-row-title {
  display: grid;
  gap: 4px;
}

.shop-row-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-list {
  display: grid;
  gap: 10px;
}

.shop-list-head,
.shop-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1.6fr) 140px 100px 140px;
  gap: 16px;
  align-items: center;
}

.shop-list-head {
  padding: 0 14px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-row {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.shop-row:hover {
  border-color: rgba(232, 130, 10, 0.45);
}

.shop-row-photo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-soft);
  background: #14171e;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.shop-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-row-title a {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  text-decoration: none;
}

.shop-row-title a:hover {
  color: var(--accent);
}

.shop-row-price {
  display: grid;
  gap: 2px;
}

.shop-row-price strong,
.shop-price strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
}

.shop-row-price span,
.shop-price span {
  font-size: 12px;
  color: var(--muted);
}

.shop-row-qty {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted-2);
}

.shop-row-qty .is-out,
.shop-qty-badge .is-out {
  color: #c87878;
}

.shop-row-action {
  justify-self: end;
}

.shop-row-action .btn {
  padding: 0.55rem 0.9rem;
  font-size: 13px;
}

.shop-empty {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 2.5rem 1.75rem;
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.shop-empty p {
  margin: 0;
  color: var(--muted-2);
  max-width: 420px;
}

.shop-detail {
  padding-top: 7rem;
}

.shop-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted-2);
  font-size: 14px;
}

.shop-back:hover {
  color: var(--accent);
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 2rem;
  align-items: start;
}

.shop-detail-photo {
  border: 1px solid var(--line);
  background: #0d0f14;
  overflow: hidden;
}

.shop-detail-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  padding: 12px;
}

.shop-detail-body h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.4rem 0 1.1rem;
  line-height: 1.2;
}

.shop-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.shop-qty-badge {
  font-size: 14px;
  color: var(--muted-2);
}

.shop-detail-desc {
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 1.5rem;
  max-width: 640px;
}

@media (max-width: 900px) {
  .shop-list-head {
    display: none;
  }

  .shop-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "photo title"
      "photo price"
      "photo qty"
      "action action";
    gap: 8px 14px;
  }

  .shop-row-photo { grid-area: photo; }
  .shop-row-title { grid-area: title; }
  .shop-row-price { grid-area: price; }
  .shop-row-qty { grid-area: qty; }
  .shop-row-action {
    grid-area: action;
    justify-self: stretch;
  }

  .shop-row-action .btn {
    width: 100%;
    text-align: center;
  }

  .shop-detail-grid {
    grid-template-columns: 1fr;
  }
}
