/**
 * Shop 列表 — Neway t4（archive-product.php）
 */
.nw-shop {
  --nw-max: 1200px;
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 16px 72px;
  font-family: var(--nw-font, system-ui, Inter, "PingFang TC", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif);
  color: var(--nw-ink, #181818);
  background: #fff;
}
.nw-shop-intro { padding: 28px 0 18px; }
.nw-shop-intro-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nw-shop-sub { margin: 8px 0 0; color: var(--nw-ink-muted, #5a5a5a); font-size: .95rem; max-width: 36em; }
.nw-shop-count { font-size: .875rem; color: var(--nw-ink-muted); }
.nw-shop-count strong { color: var(--nw-ink); }

.nw-shop-pills-wrap {
  position: sticky; top: 12px; z-index: 20;
  padding: 0 0 8px;
}
.nw-shop-pills {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px;
  border-radius: 1rem;
  border: 1px solid rgba(24,24,24,.08);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(24,24,24,.06);
  -webkit-overflow-scrolling: touch;
}
.nw-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(24,24,24,.05);
  color: #555 !important;
  font: 600 .875rem/1.2 var(--nw-font);
  text-decoration: none !important;
  transition: background .2s var(--nw-ease), color .2s;
}
.nw-pill:hover { background: rgba(24,24,24,.1); color: #181818 !important; }
.nw-pill.is-on { background: var(--nw-brand-600, #A85A16); color: #fff !important; }

.nw-shop-body { padding-top: 20px; }
.nw-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 768px) {
  .nw-shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
@media (min-width: 1100px) {
  .nw-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.nw-pcard, .nw-pcard-static {
  display: flex; flex-direction: column;
  border-radius: 1rem;
  text-decoration: none !important;
  color: inherit;
  transition: transform .35s var(--nw-ease), box-shadow .35s;
}
.nw-pcard:hover { transform: translateY(-4px); }
.nw-pcard-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f3f1;
}
.nw-pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--nw-ease); }
.nw-pcard:hover .nw-pcard-media img { transform: scale(1.04); }
.nw-pcard-tag {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--nw-brand-600); color: #fff;
  font: 600 .7rem/1.2 var(--nw-font);
}
.nw-pcard-body { display: grid; gap: 4px; padding: 12px 4px 4px; }
.nw-pcard-brand { font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: #999; text-transform: none; }
.nw-pcard-title { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--nw-ink); }
.nw-pcard-hl { font-size: .8125rem; color: #666; line-height: 1.45; }
.nw-pcard-price { font-size: 1rem; font-weight: 600; color: var(--nw-ink); margin-top: 4px; }
.nw-pcard-price small { font-weight: 500; color: #888; font-size: .75rem; }
.nw-pcard-shop {
  border: 1px dashed rgba(24,24,24,.15);
  background: #fafafa;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
}
.nw-pcard-h { flex-direction: row; gap: 14px; align-items: center; border: 1px solid rgba(24,24,24,.08); padding: 12px; border-radius: 1rem; background: #fff; }
.nw-pcard-h .nw-pcard-media { width: 96px; flex-shrink: 0; aspect-ratio: 4/5; }
.nw-pcard-h .nw-pcard-body { padding: 0; }

.nw-empty {
  text-align: center;
  border: 1px solid rgba(24,24,24,.08);
  background: #fafafa;
  border-radius: 1rem;
  padding: 56px 24px;
}
.nw-empty-ico {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 1rem; background: #fff; color: #999;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(24,24,24,.06);
  font-size: 1.25rem;
}
.nw-empty-ico svg { width: 28px; height: 28px; }
.nw-empty h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; }
.nw-empty p { margin: 0 auto 22px; max-width: 28em; color: #666; font-size: .9375rem; }

.nw-shop-cta {
  margin-top: 48px;
  padding: 36px 24px;
  border-radius: 1rem;
  background: #181818;
  color: #fff;
  text-align: center;
}
.nw-shop-cta h2 { margin: 0 0 10px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; }
.nw-shop-cta p { margin: 0 auto 22px; max-width: 36em; color: rgba(255,255,255,.55); font-size: .95rem; }
.nw-shop-cta .nw-btn { background: var(--nw-brand-600); }

/* Hide default Woo chrome when custom archive is used */
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop ul.products,
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-shop .woocommerce-notices-wrapper { display: none !important; }
body.woocommerce-shop .ast-container > .woocommerce { margin: 0; padding: 0; }
