/* Make the expanded collection discoverable without altering the approved
   emerald surface, card composition, header or featured product order. */
/* When larger text needs more room, keep Search and Coin size on-screen.
   Ordinary text retains the approved single row; mobile already stacks. */
.catalog-page .collection-heading{flex-wrap:wrap}
/* A native in-page return preserves every filter and works without scripting.
   It stays in document flow, clear of product photographs and controls. */
.catalog-page .catalog-return{display:flex;justify-content:center;margin:0 0 24px;padding:0 20px}
.catalog-page .catalog-return a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 14px;color:#e1cf9d;font:inherit;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.catalog-page .catalog-return a:hover{color:#f6e7bf}
.catalog-page .catalog-return a:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
@media(forced-colors:active){.catalog-page .catalog-return a{color:LinkText}.catalog-page .catalog-return a:focus-visible{outline-color:Highlight}}
.catalog-page .browse-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.catalog-page .sort-field{display:flex;align-items:center;gap:10px;margin-left:auto;min-width:0}
.catalog-page .sort-field label{font-size:12px;color:#e5dfce}
.catalog-page .sort-field select{min-height:44px;max-width:100%;width:170px;padding:8px 12px;border:1px solid #b8a36380;background:#071910d9;color:#f2e8cf;font:inherit;font-size:12px;border-radius:0}
.catalog-page .sort-field select:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
.catalog-page .catalog-tools .catalog-status,
.catalog-page .catalog-tools:has(.filter-summary:not([hidden])) .catalog-status{position:static;display:flex;justify-content:space-between;gap:12px 24px;max-width:none;margin:9px 0 12px;font-size:12px;line-height:1.5}
.catalog-page #result-count{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;flex-shrink:0;color:#e1cf9d}
.catalog-page .catalog-status p:last-child{max-width:none;text-align:right}
@media(max-width:760px){
 .catalog-page .browse-row{gap:8px}
 /* Let enlarged labels reflow without changing the ordinary single row. */
 .catalog-page .metal-filters{flex-basis:100%;width:100%;flex-wrap:wrap;min-width:0;max-width:100%}
 .catalog-page .sort-field{margin-top:3px}
 .catalog-page .catalog-tools .catalog-status,
 .catalog-page .catalog-tools:has(.filter-summary:not([hidden])) .catalog-status{flex-wrap:wrap;gap:4px;margin-top:8px;margin-bottom:2px;font-size:11px}
 .catalog-page .catalog-status p:last-child{text-align:left;flex-basis:100%}
 .catalog-page #result-count{min-width:0;max-width:100%;flex-shrink:1}
 .catalog-page .primary-filters label[for="size"]{white-space:normal}
 /* Grid children and long display words must also yield to narrow text views. */
 .catalog-page .collection-guide>*,.catalog-page .footer-content>*{min-width:0}
 .catalog-page .collection-guide h2,.catalog-page .footer-brand{overflow-wrap:anywhere}
}

/* v221: shown only when catalogue enhancement could not initialize. */
.catalog-page .catalog-availability{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;margin:14px 0 4px;padding:16px 0;border-top:1px solid #b8a36366;color:#f2e8cf;font-size:13px;line-height:1.65}
.catalog-page .catalog-availability p{max-width:66ch}
.catalog-page .catalog-availability button{flex-shrink:0;min-height:44px;padding:8px 18px;border:1px solid #b8a36380;background:#071910d9;color:#ebce85;font:inherit}
.catalog-page .catalog-availability button:hover{border-color:#ebce85}
.catalog-page .catalog-availability button:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
@media(max-width:760px){.catalog-page .catalog-availability{align-items:flex-start;flex-direction:column;gap:10px;margin-top:12px}}

/* v228: explicit condition discovery; product order and marble stay unchanged. */
.catalog-page .mint-field{display:flex;align-items:center;gap:10px;min-width:0}
.catalog-page .mint-field label{font-size:12px;color:#e5dfce}
.catalog-page .mint-field select{min-height:44px;width:192px;max-width:100%;padding:8px 12px;border:1px solid #b8a36380;background:#071910d9;color:#f2e8cf;font:inherit;font-size:12px;border-radius:0}
.catalog-page .mint-field select:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
@media(max-width:760px){
 .catalog-page .mint-field{width:100%;justify-content:space-between}
 .catalog-page .mint-field select{flex:1;min-width:0;width:auto;max-width:280px}
}
@media(forced-colors:active){
 .catalog-page .mint-field select{background:Canvas;color:CanvasText;border-color:ButtonText}
 .catalog-page .mint-field select:focus-visible{outline-color:Highlight}
}
.catalog-page .catalog-refinements{display:flex;align-items:center;justify-content:flex-end;gap:12px 20px;flex-wrap:wrap;min-width:0;margin-left:auto}
.catalog-page .condition-field{display:flex;align-items:center;gap:10px;min-width:0}
.catalog-page .condition-field label{font-size:12px;color:#e5dfce}
.catalog-page .condition-field select{min-height:44px;width:248px;max-width:100%;padding:8px 12px;border:1px solid #b8a36380;background:#071910d9;color:#f2e8cf;font:inherit;font-size:12px;border-radius:0}
.catalog-page .condition-field select:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
@media(max-width:760px){
 .catalog-page .catalog-refinements{width:100%;gap:8px;margin:0}
 .catalog-page .condition-field{width:100%;justify-content:space-between}
 .catalog-page .condition-field select{flex:1;min-width:0;width:auto;max-width:280px}
 /* Keep all three labelled native refinements on one clean mobile axis. */
 .catalog-page .catalog-refinements>.mint-field,
 .catalog-page .catalog-refinements>.condition-field,
 .catalog-page .catalog-refinements>.sort-field{display:grid;grid-template-columns:minmax(56px,max-content) minmax(0,1fr);width:100%;gap:10px;margin:0}
 .catalog-page .catalog-refinements>div select{width:100%;max-width:none;min-width:0}
}
@media(forced-colors:active){
 .catalog-page .condition-field select{background:Canvas;color:CanvasText;border-color:ButtonText}
 .catalog-page .condition-field select:focus-visible{outline-color:Highlight}
}

/* v230: failure-only recovery. The original link and photograph dimensions stay
   intact; status text must not inherit fractional coin scaling. */
.catalog-page .collection-section .product-card[data-photo-state] .product-photo{transform:none}
.catalog-page .collection-section .product-card[data-photo-state] .product-photo img{visibility:hidden}
.catalog-page .collection-section .product-card[data-photo-state] .product-actions{display:flex;flex-direction:column;align-items:center;gap:8px}
.catalog-page .collection-section .product-card[data-photo-state] .product-actions>a:first-child{width:180px;max-width:100%}
.catalog-page .catalog-photo-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;color:#e5dfce;font-size:13px;line-height:1.6;text-align:center;text-wrap:balance}
.catalog-page .product-card .product-actions .catalog-photo-retry{display:inline-flex;justify-content:center;align-items:center;min-height:44px;width:180px;max-width:100%;padding:8px 12px;border:1px solid #b8a36380;background:#071910d9;color:#ebce85;font:inherit;font-size:12px;line-height:1.5;text-align:center;cursor:pointer;scroll-margin-top:260px}
.catalog-page .product-card .product-actions .catalog-photo-retry:hover{border-color:#ebce85;text-decoration:none}
.catalog-page .product-card .catalog-photo-retry:focus-visible{outline:2px solid #ebce85;outline-offset:3px}
.catalog-page .product-card .catalog-photo-retry[aria-disabled="true"]{cursor:progress}
.catalog-page .product-card .catalog-photo-message[hidden],.catalog-page .product-card .catalog-photo-retry[hidden]{display:none}
.catalog-page .catalog-photo-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(forced-colors:active){
 .catalog-page .catalog-photo-message{color:CanvasText}
 .catalog-page .product-card .product-actions .catalog-photo-retry{background:Canvas;color:ButtonText;border-color:ButtonText}
 .catalog-page .product-card .catalog-photo-retry:focus-visible{outline-color:Highlight}
}

/* v234: give the two boxed Silver editions the same photo-first mobile rhythm
   as the Gold cases. Keep the original artwork, coin scales and shared stone. */
@media(max-width:760px){
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"]{
  grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;
  gap:16px;min-height:0;padding:20px 20px 28px;text-align:center;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-photo{
  width:100%;height:clamp(250px,72vw,320px);min-height:0;max-width:none;
  aspect-ratio:auto;align-items:center;justify-content:center;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .mask-boxed-set{
  position:static;width:100%;height:100%;max-width:320px;max-height:100%;
  aspect-ratio:auto;object-fit:contain;margin:0;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-info{
  width:100%;max-width:380px;margin-inline:auto;padding:0;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-metal{display:none}
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-info h3{
  width:100%;max-width:none;font-size:clamp(24px,6.5vw,28px);line-height:1.12;margin:0 0 10px;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-actions{
  align-items:center;justify-content:center;
 }
 .catalog-page .collection-section .product-card.is-boxed[data-metal="silver"] .product-actions>a:first-child{
  width:180px;max-width:100%;min-height:44px;
 }
}
/* Empty results offer precise, optional recovery without discarding the rest. */
.empty-state .filter-recovery { margin: 0 auto 26px; max-width: 650px; }
.empty-state .filter-recovery[hidden] { display: none; }
.empty-state .filter-recovery > p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; }
.filter-recovery-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-recovery-choices button { min-height: 44px; max-width: 100%; padding: 11px 16px; border: 1px solid #ccb77b80; border-radius: 2px; background: #0c1915; color: #ecdbb0; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.filter-recovery-choices button:hover { background: #192c23; border-color: #ccb77b; }
.filter-recovery-choices button:focus-visible { outline: 2px solid #ecdbb0; outline-offset: 4px; }
@media (forced-colors: active) {
 .filter-recovery-choices button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
 .filter-recovery-choices button:focus-visible { outline-color: Highlight; }
}
