/* Search and sorting share the shop's paper, forest and brass palette. */
.catalog-discovery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); gap: 22px; align-items: end; margin-top: 24px; }
.catalog-search, .catalog-sort { min-width: 0; }
.catalog-field-label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .035em; color: var(--ink); }
.catalog-search-field { display: flex; align-items: center; min-height: 52px; background: #faf6ed; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.catalog-search-field:focus-within { border-color: var(--forest, #132b22); outline: 2px solid var(--forest, #132b22); outline-offset: 2px; }
.catalog-search-field > svg { width: 20px; height: 20px; flex: 0 0 20px; margin-left: 16px; stroke: var(--ink); stroke-width: 1.35; }
.catalog-search-field input { min-width: 0; width: 100%; min-height: 50px; border: 0; outline: 0; border-radius: 0; background: transparent; color: var(--ink); padding: 12px; font-size: 13px; line-height: 1.4; }
.catalog-search-field input::placeholder { color: #6d7267; }
.catalog-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.catalog-search-field input:focus-visible { outline: none; }
.catalog-search-field button { align-self: stretch; flex: 0 0 44px; border: 0; background: transparent; color: var(--ink); font-size: 27px; line-height: 1; }
.catalog-search-field button:hover { background: #132b220a; }
.catalog-sort select { display: block; width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 0; background: #faf6ed; color: var(--ink); font-size: 13px; padding: 12px 14px; cursor: pointer; }
.catalog-discovery :disabled { cursor: wait; opacity: .65; }
.catalog-results-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 61px; border-bottom: 1px solid var(--line); margin-bottom: 26px; padding-block: 8px; }
.catalog-results-bar p { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.catalog-results-bar button { flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 11px; }
.catalog-results-bar button:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-results-bar button span { font-size: 18px; }
.catalog-product-title { display: block; color: inherit; }
.catalog-product-title:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.catalog-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 50px 24px; min-height: 290px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, #c1a16f12, transparent 75%), #faf6ed; }
.catalog-empty-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #c1a16f88; border-radius: 50%; margin-bottom: 18px; color: var(--ink); font-size: 23px; }
.catalog-empty h3 { font: 500 40px/1.05 var(--serif); color: var(--ink); letter-spacing: -.03em; }
.catalog-empty p { max-width: 410px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.catalog-empty-reset { min-height: 46px; margin-top: 24px; padding: 11px 22px; border: 1px solid var(--forest, #132b22); border-radius: 2px; background: var(--forest, #132b22); color: var(--ivory, #f6efdf); font-size: 12px; }
.catalog-empty-reset:hover { background: #243b2e; }
@media (max-width: 760px) {
  .catalog-discovery { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(170px, 195px); margin-top: 20px; }
  .catalog-search-field input, .catalog-sort select { font-size: 16px; }
  .catalog-results-bar { margin-bottom: 22px; }
  .catalog-empty { min-height: 270px; padding: 36px 22px; }
  .catalog-empty h3 { font-size: 35px; }
}
@media (max-width: 540px) {
  .catalog-discovery { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .catalog-sort { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
  .catalog-sort .catalog-field-label { margin: 0; }
  .catalog-sort select { min-height: 46px; padding-block: 9px; }
  .catalog-results-bar { gap: 12px; min-height: 56px; }
  .catalog-results-bar p, .catalog-results-bar button { font-size: 10px; }
  .catalog-results-bar button { gap: 7px; }
}

/* The photograph, product name, price and options stay in the same place in every card. */
.collection .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.collection .product-card { border: 1px solid #d8d0bd; border-radius: 3px; background: #faf6ed; box-shadow: 0 5px 18px #132b2206; }
.collection .product-visual { aspect-ratio: 3 / 4; background: #e3e4d8; border-bottom: 1px solid #132b2215; }
.collection .product-visual > img { object-fit: cover; filter: none; }
.collection .product-tag { max-width: calc(100% - 30px); padding: 6px 9px; color: #193729; background: #faf6edef; font-size: 8px; line-height: 1.5; letter-spacing: .06em; }
.collection .product-visual .circle-arrow { opacity: 1; transform: none; color: #193729; background: #faf6ed; }
.collection .product-meta { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin: 19px 20px 9px; }
.collection .product-meta .catalog-product-category { display: block; color: #5a6758; font-size: 9px; font-weight: 600; line-height: 1.6; letter-spacing: .055em; text-transform: uppercase; white-space: normal; }
.collection .product-meta h3 { min-height: 1.12em; max-width: none; font: 500 31px / 1.12 var(--serif); letter-spacing: -.025em; color: #193729; overflow-wrap: anywhere; }
.collection .product-card > p { margin: 0 20px 15px; max-width: none; min-height: 3.4em; font-size: 11px; line-height: 1.7; color: #5a6758; }
.collection .shop-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: auto 20px 0; padding: 15px 0 18px; border-color: #d8d0bd; }
.collection .shop-card-price { display: block; color: #193729; font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.collection .shop-card-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 45px; margin: 0; padding: 10px 13px; border: 1px solid #bdc6b5; border-radius: 2px; background: #f1f0e5; color: #193729; font-size: 12px; line-height: 1.5; font-weight: 500; text-align: left; transition: background .2s, border-color .2s; }
.collection .shop-card-action::after { flex-shrink: 0; font-size: 19px; line-height: 1; }
.collection .shop-card-action:hover { background: #e4e9da; color: #193729; border-color: #71866a; }
.collection .product-visual:focus-visible { outline: 2px solid #365c42; outline-offset: -5px; }
.collection .catalog-product-title:focus-visible { border-radius: 1px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .collection .product-grid { gap: 24px 18px; }
  .collection .product-meta { margin-inline: 16px; }
  .collection .product-meta h3 { font-size: 28px; }
  .collection .product-card > p, .collection .shop-card-footer { margin-inline: 16px; }
}
@media (max-width: 760px) {
  .collection .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .collection .product-meta { margin: 13px 12px 8px; gap: 7px; }
  .collection .product-meta .catalog-product-category { font-size: 8px; line-height: 1.65; min-height: 1.65em; letter-spacing: .035em; }
  .collection .product-meta h3 { font-size: clamp(22px, 5.8vw, 29px); min-height: 2.24em; }
  .collection .product-card > p { margin: 0 12px 13px; min-height: 3.4em; font-size: 10px; line-height: 1.7; }
  .collection .product-tag { top: 8px; left: 8px; padding: 4px 6px; max-width: calc(100% - 16px); font-size: 7px; letter-spacing: .015em; }
  .collection .product-visual .circle-arrow { display: none; }
  .collection .shop-card-footer { margin: auto 12px 0; padding: 12px 0 13px; gap: 10px; }
  .collection .shop-card-price { font-size: 15px; }
  .collection .shop-card-action { min-height: 44px; padding: 10px 9px; gap: 6px; font-size: 11px; }
  .collection .shop-card-action::after { font-size: 16px; }
}
@media (max-width: 370px) {
  .collection .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .collection .product-meta { margin: 12px 10px 7px; }
  .collection .product-meta .catalog-product-category { min-height: 3.3em; }
  .collection .product-meta h3 { font-size: 22px; }
  .collection .product-card > p { margin-inline: 10px; font-size: 10px; }
  .collection .product-tag { display: none; }
  .collection .shop-card-footer { margin-inline: 10px; }
  .collection .shop-card-action { font-size: 10px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .collection .shop-card-action { transition: none; } }
