/* ── Shop: filter bar + pagination ─────────────────────────────────── */

/* Announcement bar separator */
.jsh-announcement__sep { opacity: 0.5; }

/* Icon buttons (dark-toggle, account, etc.) */
.jsh-icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--jsh-surface-2); border: 1px solid var(--jsh-border);
  color: var(--jsh-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background var(--jsh-duration) var(--jsh-ease);
}
.jsh-icon-btn:hover { background: var(--jsh-border); }

/* Cart count badge */
.jsh-cart-count--hidden { display: none; }

/* ── Filter bar ─────────────────────────────────────────────────────── */
.jsh-shop-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 24px 0;
}
.jsh-shop-filter {
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--jsh-font-body); font-weight: 600; font-size: 13px;
  border: 1.5px solid var(--jsh-border);
  background: transparent; color: var(--jsh-text);
  cursor: pointer;
  transition: background var(--jsh-duration) var(--jsh-ease),
              border-color var(--jsh-duration) var(--jsh-ease),
              color var(--jsh-duration) var(--jsh-ease);
}
.jsh-shop-filter.is-active,
.jsh-shop-filter:hover {
  background: var(--jsh-accent);
  border-color: var(--jsh-accent);
  color: var(--jsh-accent-fg);
}

/* ── Product grid ───────────────────────────────────────────────────── */
.jsh-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .jsh-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .jsh-product-grid { grid-template-columns: 1fr; }
}

/* ── Product card ───────────────────────────────────────────────────── */
.jsh-product-card {
  background: var(--jsh-surface);
  border: 1px solid var(--jsh-border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform 150ms var(--jsh-ease), box-shadow 150ms var(--jsh-ease);
}
.jsh-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(14,26,20,0.10);
}
.jsh-product-card__image {
  position: relative; aspect-ratio: 1/1;
  background: linear-gradient(180deg, var(--jsh-cream-soft), var(--jsh-cream-warm));
  display: flex; align-items: center; justify-content: center;
  color: var(--jsh-accent); overflow: hidden;
}
body.jsh-dark .jsh-product-card__image {
  background: linear-gradient(180deg, var(--jsh-forest-dark), var(--jsh-forest-deep));
}
/* Ensure WC-generated img tags fill the card consistently */
.jsh-product-card__image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10%;
  box-sizing: border-box;
}
.jsh-product-card__badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--jsh-font-mono); font-size: 9px;
  letter-spacing: 1.4px; font-weight: 700; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px;
  background: var(--jsh-accent); color: var(--jsh-accent-fg);
}
.jsh-product-card__badge--gold {
  background: var(--jsh-gold); color: var(--jsh-forest-deep);
}
.jsh-product-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.jsh-product-card__tag {
  font-family: var(--jsh-font-mono); font-size: 10px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--jsh-text-dim);
}
.jsh-product-card__name {
  font-family: var(--jsh-font-body); font-weight: 700;
  font-size: 16px; color: var(--jsh-text);
  margin: 6px 0; line-height: 1.2;
}
.jsh-product-card__rating {
  display: flex; align-items: center; gap: 4px;
  color: var(--jsh-gold); font-size: 12px;
}
.jsh-product-card__rating span { color: var(--jsh-text-soft); font-family: var(--jsh-font-mono); }
.jsh-product-card__footer {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: auto; padding-top: 16px;
}
.jsh-product-card__price {
  font-family: var(--jsh-font-display); font-size: 24px; color: var(--jsh-text);
}
.jsh-product-card__add {
  padding: 8px 14px; border-radius: 999px; border: none;
  font-family: var(--jsh-font-body); font-weight: 700; font-size: 12px;
  background: var(--jsh-accent); color: var(--jsh-accent-fg);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 150ms;
}
.jsh-product-card__add:hover { opacity: 0.85; }
.jsh-product-card__add--added {
  background: var(--jsh-text); color: var(--jsh-bg);
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.jsh-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 40px; padding-bottom: 16px;
}
.jsh-pagination__btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--jsh-border);
  color: var(--jsh-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms, border-color 150ms;
}
.jsh-pagination__btn:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.jsh-pagination__btn:not(:disabled):hover {
  background: var(--jsh-surface-2);
}
.jsh-pagination__nums { display: flex; gap: 6px; }
.jsh-pagination__num {
  min-width: 40px; height: 40px; border-radius: 10px; padding: 0 12px;
  background: transparent; border: 1px solid var(--jsh-border);
  font-family: var(--jsh-font-mono); font-weight: 700; font-size: 14px;
  color: var(--jsh-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.jsh-pagination__num.is-active {
  background: var(--jsh-accent); border-color: var(--jsh-accent);
  color: var(--jsh-accent-fg);
}
.jsh-pagination__num:not(.is-active):hover {
  background: var(--jsh-surface-2);
}
