/* ============================================================
   CURCUMELLI — shop.css (M3, ported from the prototype assets/style.css)
   Product card (shared: home, shop, related, posts), archive layout, filters, sort, chips, pagination,
   annual drops strip, auctions page, catalogue empty states.
   Loaded on every page (cards appear site-wide) — keep selectors scoped.
   ============================================================ */

/* ---------- product grid ---------- */
ul.products { list-style: none; margin: 0; padding: 0; }
ul.products > li { list-style: none; }

/* ---------- product card ---------- */
.card { position: relative; min-width: 0; }
.card .ph { position: relative; display: block; aspect-ratio: 1 / 1.08; overflow: hidden; background: var(--tile, #ece7dc); }
.card .ph img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .6, .2, 1), opacity .4s;
}
.card .ph img.second { position: absolute; inset: 0; opacity: 0; }
/* Touch screens never hover: the second photo is not even downloaded there (a lazy image that is not displayed is not
   fetched; design phase 3 — half the card photo weight on phones). */
@media (hover: none) {
  .card .ph img.second { display: none; }
}
@media (hover: hover) {
  .card:hover .ph.has-second img.first { opacity: 0; }
  .card:hover .ph img.second { opacity: 1; }
  .card:hover .ph img { transform: scale(1.045); }
}
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
  padding: 6px 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  pointer-events: none;
}
.badge.auction { background: var(--footer); color: var(--gold); border-color: var(--footer); }
.badge.sold { background: var(--bronze); color: #fff; border-color: var(--bronze); }
.card.is-sold .ph img { filter: grayscale(.35); }

.card .meta { padding: 16px 4px 0; text-align: center; }
.card .cat { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.card .cat .no { font-family: var(--serif); font-size: 11px; letter-spacing: .16em; text-transform: none; color: var(--bronze); white-space: nowrap; }
.card .cat .cn + .no::before { content: "\00B7"; margin: 0 .7em; color: var(--ink-mute); }
/* Narrow cards: the number on its own line (it never breaks, so beside a long category it ran past the card). */
@media (max-width: 560px) {
  .card .cat .no { display: block; margin-top: 3px; }
  .card .cat .cn + .no::before { content: none; }
}
.card .title {
  font-family: var(--serif); font-size: 16.5px; font-weight: 400; line-height: 1.35; margin: 7px 0 8px; letter-spacing: .02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* One link per card: the title link stretches over the whole card. */
.card .title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .title a:hover, .card:hover .title a { color: var(--bronze); }
.card .title a:focus-visible { outline: none; }
.card:has(.title a:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 4px; }
.card .price { font-size: 13.5px; color: var(--ink); font-weight: 500; letter-spacing: .06em; }
.card .price .from {
  font-size: 10.5px; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; margin-right: 6px; font-weight: 400;
}
.card .price del { color: var(--ink-mute); font-weight: 400; margin-right: 6px; }
.card .price ins { text-decoration: none; }
.card.is-sold .price { color: var(--ink-soft); }
.card .status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 7px;
  font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.card .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.card .status-live { color: var(--bronze); }
.card .status-live::before { animation: curc-pulse 1.8s ease-in-out infinite; }
.card .status-ended { color: var(--ink-mute); }
@keyframes curc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- archive: intro under the hero ---------- */
/* (term description / shop intro is now the .page-hero .lead — base.css) */

/* ---------- archive layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 90px; }
.shop-layout.no-aside { grid-template-columns: minmax(0, 1fr); }
.shop-results { min-width: 0; }
.shop-results.is-busy { opacity: .55; transition: opacity .2s; }

/* ---------- filters ---------- */
aside.filters { min-width: 0; }
.filters-panel > summary {
  display: none; list-style: none; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  padding: 13px 18px; border: 1px solid var(--ink); text-align: center; margin-bottom: 22px; background: transparent;
}
.filters-panel > summary::-webkit-details-marker { display: none; }
.filters-panel > summary .n { color: var(--bronze); margin-left: 4px; }
.filters-hint { margin: 0 0 22px; font-size: 11.5px; letter-spacing: .06em; line-height: 1.5; color: var(--ink-soft); }
.filters-hint[hidden] { display: none; }
.fgroup { margin-bottom: 34px; }
.fgroup-title {
  font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
}
.fgroup label {
  display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--ink-soft);
  padding: 3px 0; margin-bottom: 3px; cursor: pointer; /* 24 px rows (the box and its label are one target), same pitch */
}
.fgroup label:hover, .fgroup label.is-checked { color: var(--ink); }
.fgroup input[type="checkbox"] { accent-color: var(--bronze); width: 15px; height: 15px; flex: none; margin: 0; cursor: pointer; }
.fgroup .lbl { min-width: 0; overflow-wrap: anywhere; }
.fgroup-kat .lbl { text-transform: uppercase; letter-spacing: .02em; }
.fgroup .count { margin-left: auto; padding-left: 8px; font-size: 11px; color: var(--ink-mute); }
.filters-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.filters-apply { width: 100%; }
.filters-actions[hidden] { display: none; }
.clear-all {
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bronze); border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.clear-all:hover { color: var(--bronze-dark); }

/* ---------- results toolbar ---------- */
.shop-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.shop-top .found { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-soft); }
.shop-sort { display: flex; gap: 8px; align-items: center; }
.shop-sort select {
  font-family: var(--sans); font-size: 12px; letter-spacing: .08em; padding: 10px 14px; min-height: 40px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 0; cursor: pointer;
}
.shop-sort select:focus-visible { border-color: var(--bronze); outline: 2px solid var(--bronze); outline-offset: 2px; }
.shop-top .found:focus { outline: none; }
.shop-top .found:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.shop-sort-go {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 14px; min-height: 40px; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
}
.shop-sort-go[hidden], .curc-js .shop-sort-go[data-curc-nojs] { display: none; }

/* ---------- active filter chips ---------- */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -6px 0 28px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 13px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 12px; letter-spacing: .04em; line-height: 1.4; transition: border-color .2s, color .2s;
}
.filter-chip .icon { width: 12px; height: 12px; }
.filter-chip:hover { border-color: var(--bronze); color: var(--bronze); }
.active-filters .clear-all { margin-left: 6px; }

/* ---------- no results / empty states ---------- */
.shop-noresults { padding: 56px 24px; text-align: center; border: 1px solid var(--line); background: var(--paper); }
.shop-noresults p { font-size: 22px; margin-bottom: 22px; }
.shop-empty { max-width: 640px; margin: 0 auto; padding: 24px 0 10px; text-align: center; }
.shop-empty .shop-empty-crest { height: 76px; width: auto; margin: 0 auto 22px; }
.shop-empty .eyebrow { margin-bottom: 12px; }
.shop-empty h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: .02em; margin-bottom: 14px; }
.shop-empty > p { color: var(--ink-soft); max-width: 50ch; margin: 0 auto; }
.shop-empty .curc-nl { margin: 28px auto 26px; max-width: 520px; text-align: left; }
.shop-empty > .btn { margin-top: 26px; }
.shop-empty-latest { margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }

/* ---------- newsletter form (catalogue variants) ---------- */
.curc-nl-row { display: flex; border: 1px solid var(--line); background: var(--paper); }
.cform.curc-nl .curc-nl-row input[type="email"] {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 18px; font-size: 13px; letter-spacing: .04em;
}
.curc-nl-row .btn { flex: none; min-height: 50px; padding: 0 26px; }
.cform.curc-nl .consent { margin-top: 14px; }
.curc-nl-dark .curc-nl-row { border-color: #57503e; background: transparent; }
.cform.curc-nl-dark .curc-nl-row input[type="email"] { color: #f4efe4; }
.cform.curc-nl-dark .curc-nl-row input[type="email"]::placeholder { color: #8d8674; }
.curc-nl-dark .curc-nl-row .btn { background: var(--gold); border-color: var(--gold); color: var(--footer); }
.curc-nl-dark .curc-nl-row .btn:hover { background: #fff; border-color: #fff; }
.cform.curc-nl-dark .consent { color: var(--dark-soft); }
.cform.curc-nl-dark .consent input { accent-color: var(--gold); }
.cform.curc-nl-dark .form-message.is-success { color: var(--gold); }

/* ---------- pagination ---------- */
.woocommerce-pagination { margin-top: 60px; }
.woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.woocommerce-pagination li > .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--paper); font-size: 13px; letter-spacing: .06em; color: var(--ink);
  transition: border-color .2s, color .2s;
}
.woocommerce-pagination a.page-numbers:hover { border-color: var(--bronze); color: var(--bronze); }
.woocommerce-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.woocommerce-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Woo notices on catalogue pages (woo.css is not loaded here) ---------- */
.shop-results .woocommerce-notices-wrapper:empty { display: none; }
.shop-results .woocommerce-message, .shop-results .woocommerce-info, .shop-results .woocommerce-error {
  list-style: none; margin: 0 0 24px; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--bronze); font-size: 13.5px;
}
.shop-results .woocommerce-error { border-left-color: var(--error); }

/* ---------- annual drops strip ---------- */
.drops-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 34px; padding: 0; list-style: none; }
.drop-tile { border: 1px solid var(--line); background: var(--paper); padding: 18px 20px; min-width: 0; }
.drop-tile .m { font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.drop-tile .n { font-family: var(--serif); font-size: 17px; line-height: 1.4; letter-spacing: .03em; margin-top: 7px; }
.drop-tile.next { background: var(--footer); border-color: var(--footer); }
.drop-tile.next .m { color: var(--gold); }
.drop-tile.next .n { color: #f7f3e8; }
.drop-tile .cd { font-size: 11px; letter-spacing: .1em; color: var(--dark-soft); margin-top: 8px; }
/* Featured drop whose auction is open for bids (SPEC §16.9): "Live now" with a pulsing dot. */
.drop-tile .live-flag { display: inline-flex; align-items: center; gap: 8px; }
.drop-tile .live-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; animation: curc-pulse 1.8s ease-in-out infinite; }

/* ---------- auctions page ---------- */
.auctions-page { padding-top: 56px; padding-bottom: 90px; }
.auctions-page .drops-strip { margin-bottom: 64px; }
.auc-section + .auc-section { margin-top: 76px; }
.auc-section .section-head { margin-bottom: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.auc-section .section-head .eyebrow { margin-bottom: 6px; }

/* empty auctions page = next drop feature (home auction-feature look) */
.auc-empty { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--footer); color: #ded7c6; }
.auc-empty.has-img { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; }
.auc-empty .img { position: relative; overflow: hidden; min-height: 320px; }
.auc-empty .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.auc-empty .copy { padding: 64px 60px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.auc-empty .eyebrow { color: var(--gold); }
.auc-empty h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.18; color: #f7f3e8; margin: 16px 0 18px; }
.auc-empty .copy > p { color: var(--dark-soft); max-width: 48ch; }
.auc-empty .countdown { display: flex; gap: 26px; margin: 30px 0 6px; min-height: 64px; }
.auc-empty .countdown .unit { text-align: center; }
.auc-empty .countdown .num { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; }
.auc-empty .countdown .word { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: #8d8674; margin-top: 8px; }
.auc-empty .live-flag { display: inline-flex; align-items: center; gap: 10px; }
.auc-empty .live-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; animation: curc-pulse 1.8s ease-in-out infinite; }
.auc-empty .auc-cd-label { margin-top: 26px; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--dark-soft); }
.auc-empty .auc-cd-label + .countdown { margin-top: 14px; }
.auc-empty .countdown-ended { font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: .02em; color: var(--gold); align-self: center; }
.auc-empty-nl { width: 100%; max-width: 520px; margin: 30px 0 30px; padding-top: 28px; border-top: 1px solid var(--dark-line); }
.auc-empty-nl h3 { font-family: var(--serif); font-size: 22px; color: #f7f3e8; margin-bottom: 6px; }
.auc-empty-nl > p { font-size: 13.5px; color: var(--dark-soft); margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .auc-empty .copy { padding: 54px 40px; }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .filters-panel > summary { display: block; }
  .filters-panel:not([open]) { margin-bottom: 10px; }
  .filters-panel[open] { margin-bottom: 34px; }
  .filters-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .filters-form .filters-actions { grid-column: 1 / -1; }
  .fgroup label { padding: 3px 0; margin-bottom: 5px; }
  .shop-sort select { font-size: 16px; }
  .drops-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auctions-page { padding-top: 36px; }
  .auc-empty.has-img { grid-template-columns: minmax(0, 1fr); }
  .auc-empty .img { min-height: 280px; }
  .auc-empty .copy { padding: 48px 32px; }
  .cform.curc-nl .curc-nl-row input[type="email"] { font-size: 16px; }
}
@media (max-width: 560px) {
  .filters-form { grid-template-columns: minmax(0, 1fr); }
  .shop-top { margin-bottom: 20px; }
  .card .meta { padding-top: 12px; }
  .card .title { font-size: 15px; }
  .card .price { font-size: 13px; }
  .badge { top: 10px; left: 10px; padding: 5px 9px; font-size: 8.5px; letter-spacing: .16em; }
  .drop-tile { padding: 14px 14px; }
  .drop-tile .n { font-size: 15.5px; }
  .auc-section + .auc-section { margin-top: 56px; }
  .shop-empty-latest { margin-top: 52px; padding-top: 34px; }
  .auc-empty .copy { padding: 40px 22px; }
  .auc-empty .countdown { gap: 16px; }
  .auc-empty .countdown .num { font-size: 32px; }
  .woocommerce-pagination { margin-top: 44px; }
}
@media (max-width: 420px) {
  .curc-nl-row { flex-direction: column; }
  .curc-nl-row .btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .card .status-live::before { animation: none; }
}
