/* Scoped catalog controls: no WooCommerce checkout fields are selected here. */
.catalog-tools { margin: -12px 0 29px; padding: 20px 22px 16px; min-width: 0; border: 1px solid var(--line, #dfd6c6); background: #fbf9f4; color: var(--ink, #211d16); }
.catalog-tools *, .catalog-tools *::before, .catalog-tools *::after { box-sizing: border-box; }
.catalog-tools [hidden] { display: none !important; }
.catalog-tools-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 16px; }
.catalog-tools-heading > p { margin: 0; color: var(--muted, #716b60); font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; }
.catalog-tools .catalog-tools-reset { padding: 7px 0; min-height: 36px; border: 0; background: transparent; color: var(--gold, #82672f); font: 500 11px/1.5 var(--sans, Arial, sans-serif); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.catalog-tools-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.55fr); align-items: end; gap: 16px; }
.catalog-tools-field { min-width: 0; display: flex; flex-direction: column; gap: 7px; font-size: 11px; line-height: 1.5; }
.catalog-tools select, .catalog-tools input[type="number"] { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid var(--line, #dfd6c6); border-radius: 0; padding: 10px 12px; background: #fff; color: var(--ink, #211d16); font: 12px/1.4 var(--sans, Arial, sans-serif); }
.catalog-tools select { text-overflow: ellipsis; }
.catalog-tools input::placeholder { color: #8d8578; opacity: 1; }
.catalog-tools-price { padding: 0; min-width: 0; margin: 0; border: 0; }
.catalog-tools-price legend { float: none; padding: 0; margin: 0 0 7px; color: inherit; font-size: 11px; line-height: 1.5; }
.catalog-tools-price-inputs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.catalog-tools-price-inputs label { min-width: 0; }
.catalog-tools-price-inputs > span { font-size: 12px; color: var(--muted, #716b60); }
.catalog-tools-stock { display: flex; align-items: center; gap: 9px; min-height: 44px; min-width: 0; font-size: 11px; line-height: 1.5; cursor: pointer; }
.catalog-tools-stock input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--gold, #82672f); }
.catalog-tools-store-row { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; min-width: 0; margin-top: 12px; }
.catalog-tools .catalog-tools-store-change { min-height: 44px; margin: 0; padding: 9px 0; border: 0; background: transparent; color: var(--gold, #82672f); font: 500 11px/1.5 var(--sans, Arial, sans-serif); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.catalog-tools-store-hint { margin: 0; color: var(--muted, #716b60); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.catalog-tools-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; border-top: 1px solid var(--line, #dfd6c6); padding-top: 12px; margin-top: 9px; }
.catalog-tools-count { margin: 0; color: var(--muted, #716b60); font-size: 10px; line-height: 1.6; }
.catalog-tools-count:empty { display: none; }
.catalog-tools-chips { min-width: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-tools-chips:empty { display: none; }
.catalog-tools-chips > :is(button, span) { max-width: 100%; min-height: 33px; padding: 7px 10px; border: 1px solid #d8c7a2; border-radius: 0; background: #f3ede1; color: var(--ink, #211d16); font: 10px/1.5 var(--sans, Arial, sans-serif); overflow-wrap: anywhere; }
.catalog-tools-chips > button { cursor: pointer; }
.catalog-tools-error { margin: 10px 0 0; color: #8d3324; font-size: 11px; line-height: 1.6; }
.catalog-tools [aria-invalid="true"] { border-color: #a84938 !important; }
.catalog-tools :is(button, input, select):focus-visible { outline: 2px solid var(--gold, #82672f); outline-offset: 3px; }
.catalog-tools :is(button, input, select):disabled { opacity: .52; cursor: default; }
.catalog-tools-stock:has(input:disabled) { color: #8d8578; cursor: default; }
.catalog-tools-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .catalog-tools { margin-top: -7px; margin-bottom: 23px; padding: 16px 14px 13px; }
  .catalog-tools-heading { margin-bottom: 12px; gap: 4px 12px; }
  .catalog-tools-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 10px; }
  .catalog-tools-price { grid-column: 1 / -1; }
  .catalog-tools select, .catalog-tools input[type="number"] { font-size: 16px; padding: 10px 9px; }
  .catalog-tools-stock { font-size: 11px; }
  .catalog-tools-store-row { gap: 0 13px; }
  .catalog-tools-store-hint { flex-basis: 100%; }
  .catalog-tools-status { gap: 9px; }
  .catalog-tools-chips { flex-basis: 100%; }
  .catalog-tools-chips > :is(button, span) { min-height: 38px; }
}
