/* Shop / category / tag / product-search archive. Cards match #hxh .pc on the home page. */

html.hx-shop-html,
html.hx-shop-html body,
body.hx-shop-page {
  margin: 0;
  padding: 0;
  background: #F6F0E6;
  min-height: 100%;
}
html.hx-shop-html.admin-bar #hxs .topbar { top: 32px; }
@media (max-width: 782px) {
  html.hx-shop-html.admin-bar #hxs .topbar { top: 46px; }
}

#hxs {
  --rust: #C05133; --rust-dark: #9A4129; --rust-mid: #A34428;
  --rust-soft: #D0664A; --rust-tint: #F6E5E0;
  --cream: #F6F0E6; --cream-2: #EDE4D4; --paper: #FFFBF5;
  --ink: #2A2420; --body: #3E352E; --muted: #7A6E62;
  --gold: #C4A35A; --gold-soft: #E8D7A8; --sage: #5F734F; --line: #E6DAC8;
  --shadow: 0 10px 30px rgba(42,36,32,.08);
  --radius: 22px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Palatino Linotype", serif;
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --page-pad: 20px;
  font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.5;
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
#hxs *, #hxs *::before, #hxs *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
#hxs button, #hxs input, #hxs select { font-family: inherit; color: inherit; }
#hxs button { cursor: pointer; border: 0; background: none; padding: 0; }
#hxs img { max-width: 100%; display: block; }
#hxs a { color: var(--rust); }
#hxs h1, #hxs h2, #hxs h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.01em; }
#hxs p { margin: 0; }
#hxs [hidden] { display: none !important; }
#hxs .wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-pad); width: 100%; }
#hxs > main.wrap { flex: 1 0 auto; padding-top: 22px; padding-bottom: 28px; }
#hxs > #hxf { margin-top: auto; flex: 0 0 auto; width: 100%; }

/* top bar (matches the home page) */
#hxs .topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px var(--page-pad); background: rgba(246,240,230,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(230,218,200,.7); }
#hxs .logo { display: flex; align-items: center; gap: 0; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
#hxs .logo img { height: 42px; width: auto; }
#hxs .nav-desk { display: none; }
#hxs .round { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
#hxs .round svg { width: 20px; height: 20px; }
#hxs .topbar .btn { width: auto; min-height: 42px; padding: 0 16px; font-size: 14px; display: none; }
#hxs .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px var(--page-pad) 18px; display: none; }
#hxs .menu.open { display: block; }
#hxs .menu a { display: block; padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15.5px; border-bottom: 1px solid var(--line); }
#hxs .menu a:last-child { border-bottom: 0; }
#hxs .menu .sell { color: var(--rust); }

#hxs .btn { min-height: 56px; border-radius: 999px; font-weight: 800; font-size: 16.5px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; width: 100%; transition: transform .12s, background .15s; }
#hxs .btn:active { transform: scale(.98); }
#hxs .btn-primary { background: var(--rust); color: #fff; box-shadow: 0 10px 22px rgba(192,81,51,.28); }
#hxs .btn-primary:hover { background: var(--rust-mid); color: #fff; }
#hxs .btn-soft { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }

#hxs .preview-banner {
  margin: 12px var(--page-pad) 0; padding: 10px 14px; border-radius: 14px;
  background: var(--rust-tint); color: var(--rust-dark); font-weight: 800; font-size: 14px;
}

/* page header */
#hxs .shop-head { margin: 4px 0 16px; }
#hxs .shop-title { font-size: 32px; line-height: 1.15; }
#hxs .shop-count { margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 15px; }

/* category chips */
#hxs .chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--page-pad)) 18px;
  padding: 0 var(--page-pad) 4px;
}
#hxs .chips::-webkit-scrollbar { display: none; }
#hxs .chip {
  flex: 0 0 auto; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 13.5px; text-decoration: none;
  display: inline-flex; align-items: center; white-space: nowrap;
}
#hxs .chip.on,
#hxs .chip[aria-current="page"] {
  background: var(--rust); color: #fff; border-color: var(--rust);
}
#hxs .chip:hover { border-color: var(--rust-soft); }

/* sort + count toolbar */
#hxs .shop-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 16px; flex-wrap: wrap;
}
#hxs .shop-tools-count { color: var(--muted); font-weight: 700; font-size: 13.5px; }
#hxs .shop-tools-sort .woocommerce-ordering { margin: 0; }
#hxs .shop-tools-sort select {
  min-height: 42px; padding: 0 36px 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237A6E62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8l4 4 4-4'/></svg>") no-repeat right 10px center;
  background-size: 18px;
  font-weight: 800; font-size: 14px; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  box-shadow: none;
}
#hxs .shop-hooks-before { margin: 0 0 12px; }
#hxs .shop-hooks-before:empty { display: none; }

/* product cards — same structure and look as home "Latest arrivals" */
#hxs .grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#hxs .pc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 6px 18px rgba(42,36,32,.06);
  display: flex; flex-direction: column;
  width: 100%; max-width: none; flex: none;
}
#hxs .pc:hover { border-color: var(--rust-soft); box-shadow: 0 8px 20px rgba(192,81,51,.10); }
#hxs .pc .ph { aspect-ratio: 1 / 1; position: relative; background: var(--cream-2); overflow: hidden; }
#hxs .pc .ph img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100%; object-fit: cover; display: block; position: relative; z-index: 0; }
#hxs .ph-badges { position: absolute; left: 8px; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
#hxs .ph-badges .sold,
#hxs .ph-badges .dep,
#hxs .ph-badges .ribbon { position: static; left: auto; top: auto; right: auto; margin: 0; max-width: 100%; box-sizing: border-box; }
#hxs .sold { background: var(--rust); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .12em; padding: 5px 10px; border-radius: 99px; }
#hxs .dep { background: rgba(255,251,245,.94); color: var(--ink); font-weight: 800; font-size: 11px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); }
#hxs .ribbon { background: var(--rust); color: #fff; font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; box-shadow: 0 4px 12px rgba(192,81,51,.28); }
#hxs .pc .pb { padding: 11px 13px 14px; display: flex; flex-direction: column; flex: 1; }
#hxs .pc .pk { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--rust); text-transform: uppercase; }
#hxs .pc .pn { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; margin: 2px 0 8px; min-height: 2.3em; }
#hxs .pc .pp { font-weight: 800; font-size: 17px; }
#hxs .pc .pp .pk { display: inline; margin-left: 8px; font-size: 11px; letter-spacing: .08em; vertical-align: middle; }
#hxs .pc.is-sold .pp { color: var(--muted); text-decoration: none; font-weight: 400; }
#hxs .pc.is-sold .pp .woocommerce-Price-amount,
#hxs .pc.is-sold .pp .woocommerce-Price-amount bdi { color: var(--muted); font-weight: 800; text-decoration: line-through; }
#hxs .pc.is-sold .pp .hx-price-status { color: var(--muted); font-weight: 400; text-decoration: none; }
#hxs .pc .meta { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.35; }
#hxs .pc .meta span { display: block; }
#hxs .pc.is-feat { border: 1.5px solid var(--gold-soft); box-shadow: 0 12px 30px rgba(42,36,32,.1), 0 0 0 1px rgba(196,163,90,.28); }
/* Featured ribbon lives in .ph-badges now. */

/* empty */
#hxs .shop-empty {
  background: var(--paper); border: 1.5px dashed var(--line); border-radius: 22px;
  padding: 36px 22px 32px; text-align: center;
}
#hxs .shop-empty h2 { font-size: 24px; margin: 0 0 8px; }
#hxs .shop-empty p { margin: 0 auto 18px; color: var(--body); font-weight: 600; max-width: 36ch; }
#hxs .shop-empty .btn { width: auto; display: inline-flex; min-height: 48px; padding: 0 22px; }
#hxs .shop-empty-hooks .woocommerce-info,
#hxs .shop-empty-hooks .wc-block-components-notice-banner { display: none; }

/* pagination */
#hxs .shop-pager { margin-top: 22px; }
#hxs .woocommerce-pagination, #hxs .shop-pager ul { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
#hxs .woocommerce-pagination a,
#hxs .woocommerce-pagination span,
#hxs .shop-pager a,
#hxs .shop-pager span.page-numbers {
  min-height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 800; text-decoration: none; box-shadow: none;
}
#hxs .woocommerce-pagination span.current,
#hxs .shop-pager span.current {
  background: var(--rust); color: #fff; border-color: var(--rust);
}

@media (min-width: 720px) {
  #hxs .shop-title { font-size: 36px; }
  #hxs .grid-cards { grid-template-columns: repeat(3, 1fr); }
  #hxs .pc .pn { font-size: 18px; }
}
@media (min-width: 1024px) {
  #hxs { --page-pad: 24px; }
  #hxs .nav-desk { display: flex; align-items: center; gap: 18px; margin-right: 8px; }
  #hxs .nav-desk a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 14px; }
  #hxs .topbar .menu-btn { display: none; }
  #hxs .topbar .btn { display: inline-flex; }
  #hxs .logo { flex: 0 0 auto; }
  #hxs .topbar { padding: 8px var(--page-pad); }
  #hxs .logo img { height: 48px; }
  #hxs .grid-cards { grid-template-columns: repeat(4, 1fr); }
  #hxs .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}


/* Genetics subcategory chips (Semen, Embryos, …) under the main row. */
#hxs .chips-sub { margin-top: -4px; margin-bottom: 16px; }
#hxs .chips-sub .chip { font-size: 13px; }

/* Guest / unverified card CTA — the card itself is the link, so this is a label only. */
#hxs .pc .hx-mo-view {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 10px; min-height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 13px; letter-spacing: 0;
  text-transform: none;
}
#hxs .pc:hover .hx-mo-view { border-color: var(--rust); color: var(--rust); }
