/* ===== NHJ Collection — 5-column product grid ===== */

.nhj-coll {
  --nhj-bg: #ffffff;
  --nhj-surface: #ffffff;
  --nhj-surface-2: #f5f5f5;
  --nhj-border: #e0ddd6;
  --nhj-border-md: #ccc8bf;
  --nhj-border-dk: #b0ab9f;
  --nhj-text: #111110;
  --nhj-text-2: #5a5852;
  --nhj-text-3: #9a9690;
  --nhj-ink: #1a1916;
  --nhj-r: 10px;
  --nhj-r-sm: 6px;

  background: var(--nhj-bg);
  color: var(--nhj-text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  padding-block-end: 80px;
}

.nhj-coll__bc {
  font-size: 11.5px;
  color: var(--nhj-text-3);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nhj-coll__bc a {
  color: var(--nhj-text-3);
  text-decoration: none;
}

.nhj-coll__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.nhj-coll__title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.nhj-coll__title {
  font-size: 20px;
  font-weight: 500;
}

.nhj-coll__count {
  font-size: 13px;
  color: var(--nhj-text-3);
}

/* Search & Filter bar */
.nhj-search-bar {
  background: var(--nhj-surface);
  border: 1px solid var(--nhj-border);
  border-radius: var(--nhj-r);
  padding: 16px 18px;
  margin-bottom: 20px;
}

.nhj-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.nhj-search-input-wrap {
  flex: 1 1 auto;
  position: relative;
}

.nhj-search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nhj-text-3);
  pointer-events: none;
}

.nhj-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--nhj-border-md);
  border-radius: var(--nhj-r-sm);
  padding: 0 12px 0 36px;
  font-size: 13.5px;
  font-family: 'DM Sans', sans-serif;
  background: var(--nhj-surface);
  color: var(--nhj-text);
  outline: none;
  transition: border-color 0.15s;
}

.nhj-search-input:focus {
  border-color: var(--nhj-ink);
}

.nhj-search-input::placeholder {
  color: var(--nhj-text-3);
}

.nhj-sort-select {
  height: 38px;
  border: 1px solid var(--nhj-border-md);
  border-radius: var(--nhj-r-sm);
  padding: 0 32px 0 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  background: var(--nhj-surface);
  color: var(--nhj-text);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9690' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.nhj-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.nhj-filter-label-txt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--nhj-text-3);
  margin-right: 4px;
}

.nhj-f-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--nhj-border-md);
  border-radius: 20px;
  font-size: 12px;
  color: var(--nhj-text-2);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  background: var(--nhj-surface);
}

.nhj-f-chip:hover {
  border-color: var(--nhj-border-dk);
}

.nhj-f-chip.is-on {
  border-color: var(--nhj-ink);
  background: var(--nhj-ink);
  color: #ffffff;
}

.nhj-f-chip input {
  display: none;
}

.nhj-filter-divider {
  width: 1px;
  height: 18px;
  background: var(--nhj-border);
  margin: 0 4px;
}

.nhj-filter-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nhj-f-btn-sm {
  padding: 5px 14px;
  border: 1px solid var(--nhj-border-md);
  border-radius: var(--nhj-r-sm);
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  background: var(--nhj-surface);
  color: var(--nhj-text-2);
  transition: all 0.15s;
}

.nhj-f-btn-sm:hover {
  border-color: var(--nhj-ink);
  color: var(--nhj-text);
}

/* Product grid */
.nhj-prod-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .nhj-prod-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nhj-prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nhj-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nhj-coll__inner {
    padding: 0 16px;
  }
}

.nhj-card {
  background: var(--nhj-surface);
  border: 1px solid var(--nhj-border);
  border-radius: var(--nhj-r);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.nhj-card:hover {
  border-color: var(--nhj-border-dk);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nhj-card.is-hidden {
  display: none;
}

.nhj-card-img {
  aspect-ratio: 1;
  background: var(--nhj-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nhj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nhj-card-img__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nhj-text-3);
}

.nhj-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nhj-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nhj-badge--stock {
  background: #f0f7f0;
  border: 1px solid #b8d8b8;
  color: #2a5a2a;
}

.nhj-badge--order {
  background: var(--nhj-surface-2);
  border: 1px solid var(--nhj-border-md);
  color: var(--nhj-text-2);
}

.nhj-badge--arrival {
  background: #fff8e6;
  border: 1px solid #e8d098;
  color: #6a4800;
}

.nhj-card-body {
  padding: 12px 14px 14px;
}

.nhj-card-num {
  font-size: 10px;
  color: var(--nhj-text-3);
  font-family: 'DM Mono', monospace;
  margin-bottom: 4px;
}

.nhj-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--nhj-text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.nhj-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.nhj-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  background: var(--nhj-surface-2);
  overflow: hidden;
}

.nhj-swatch-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nhj-swatch-more {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nhj-surface-2);
  border: 1px solid var(--nhj-border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--nhj-text-3);
  font-weight: 500;
}

.nhj-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--nhj-text);
}

.nhj-card-price__sub {
  font-size: 11px;
  color: var(--nhj-text-3);
  margin-top: 1px;
}

.nhj-card-price--locked {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--nhj-text-3);
}

.nhj-card-price--ask {
  font-size: 13px;
  font-weight: 600;
  color: var(--nhj-ink);
}

.nhj-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: var(--nhj-text-3);
}

.nhj-no-results svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.nhj-pagination {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--nhj-text-3);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nhj-pagination a,
.nhj-pagination span {
  padding: 6px 12px;
  border-radius: var(--nhj-r-sm);
  border: 1px solid var(--nhj-border-md);
  color: var(--nhj-text-2);
  text-decoration: none;
  background: var(--nhj-surface);
}

.nhj-pagination a:hover {
  border-color: var(--nhj-ink);
  color: var(--nhj-text);
}

.nhj-pagination .is-current {
  background: var(--nhj-ink);
  color: #ffffff;
  border-color: var(--nhj-ink);
}

/* ===== フィルタ行の統一（在庫区分 / 原産国 / 組成 / バックル / カテゴリ / タグ） =====
   すべての行を「ラベル（固定幅）＋チップ群」の同じ構造・同じ余白で揃える。 */
.nhj-filter-row + .nhj-filter-row { margin-top: 10px; }
.nhj-filter-row { align-items: flex-start; flex-wrap: nowrap; }
.nhj-filter-row > .nhj-filter-label-txt {
  flex: 0 0 auto;
  width: 84px;
  padding-top: 5px;   /* チップ1行目の文字と高さを合わせる */
}
.nhj-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.nhj-attr-select {
  font-family: inherit;
  font-size: 12px;
  color: var(--nhj-text, #1a1916);
  background: #fff;
  border: 1px solid var(--nhj-line, #e4e0d8);
  border-radius: 999px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1916' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.nhj-attr-select:focus { outline: none; border-color: var(--nhj-text, #1a1916); }

/* ===== アイコン主体のフィルタ見出し / ソート ===== */
.nhj-filter-label-txt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--nhj-text-2, #5a5852);
  white-space: nowrap;
}
.nhj-filter-label-txt svg { flex: 0 0 auto; opacity: .75; }

.nhj-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--nhj-line, #e4e0d8);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
}
.nhj-sort-wrap .nhj-sort-ico { flex: 0 0 auto; opacity: .8; }
.nhj-sort-wrap .nhj-sort-select { border: none; background: transparent; padding: 8px 4px; font-size: 12px; }

/* カテゴリチップのアイコン */
.nhj-f-chip svg.nhj-chip-ico { width: 12px; height: 12px; opacity: .7; margin-right: 3px; flex: 0 0 auto; }

/* SP価格バッジ（商品詳細 main-nhj-product.css と同じ見た目に揃える）。
   sp_price タグを持つ顧客にだけ出力される。 */
.nhj-sp-badge {
  display: inline-block;
  margin-right: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #1a1916;
  color: #fafaf8;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: middle;
}
