/* Search fits the existing catalogue heading; the original card layout is retained. */
.catalog-heading__tools {display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:24px;align-items:start;margin-top:14px;}
body #primary .catalog-heading__tools>p {margin:0;max-width:none;}
.catalog-search {min-width:0;margin:0;}
.catalog-search__field {display:flex;align-items:center;position:relative;background:#fffdf8;border:1px solid #cbb99d;border-radius:8px;min-height:48px;box-shadow:0 2px 6px #4b391008;}
.catalog-search__field:focus-within {border-color:#896536;box-shadow:0 0 0 3px #89653620;}
.catalog-search__icon {position:absolute;left:14px;color:#896536;pointer-events:none;}
.catalog-search input[type=search] {width:100%;min-width:0;height:48px;min-height:48px;border:0;background:transparent;box-shadow:none;border-radius:8px;padding:10px 44px 10px 42px;font:inherit;font-size:16px;color:#2d271f;outline:none;}
.catalog-search input::placeholder {color:#827b70;opacity:1;}
.catalog-search input::-webkit-search-cancel-button {display:none;}
.catalog-search__clear {position:absolute;right:2px;top:2px;width:44px;height:44px;min-width:44px;padding:0;border:0;box-shadow:none;background:transparent;color:#6d6253;font-size:25px;line-height:1;cursor:pointer;}
.catalog-search__clear:focus-visible {outline:2px solid #896536;outline-offset:-4px;}
/* Announce result changes to assistive technology without visible count text. */
body #primary .catalog-search__count {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.catalog-product-list>.catalog-product-card[hidden], .catalog-search__clear[hidden], .catalog-search-empty[hidden] {display:none!important;}
.catalog-search-empty {padding:36px 24px;text-align:center;border:1px solid #e2d8c8;background:#fffdf8;border-radius:8px;}
.catalog-search-empty button {margin-top:12px;min-height:44px;padding:10px 20px;background:#896536;border:0;border-radius:24px;color:white;cursor:pointer;font:inherit;}
@media(max-width:1100px){.catalog-heading__tools{grid-template-columns:1fr;gap:16px;}.catalog-search{width:min(100%,400px);justify-self:end;}}
@media(max-width:760px){.catalog-search{width:100%;}.catalog-heading__tools{gap:16px;}}
