/* Mobile discovery starts with one search field, immediately below the header. */
#home-product-search { display: none; }
@media (max-width: 800px) {
  body.winter-shop #home-product-search:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 16px 12px;
    padding: 4px 5px 4px 14px;
    border: 1px solid #a2afa4;
    border-radius: 16px;
    background: #fffcf6;
  }
  #home-product-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    font-size: 16px;
    color: #173b33;
    background: transparent;
    border: 0;
  }
  #home-product-search input::placeholder { color: #58665e; }
  #home-product-search button {
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #185344;
    color: #fff9ec;
    font-weight: 750;
  }
  html[data-theme=dark] #home-product-search:not([hidden]) { background: #223c34; border-color: #607a68; }
  html[data-theme=dark] #home-product-search input { color: #fff9ec; }
  html[data-theme=dark] #home-product-search input::placeholder { color: #c7d7c8; }
  html[data-theme=dark] #home-product-search button { background: #f4db9f; color: #243b30; }
  .winter-shop:not(.catalogue-page) #catalog-tools .search-box { display: none; }
  .winter-shop #catalog-tools .sort-label { min-width: 0; max-width: 100%; }
  .winter-shop #catalog-tools .sort-label select { max-width: 100%; }
}
html[data-theme=dark] body.winter-shop #gift-promotion .eyebrow { color: #ffdca3; }

#catalog-filter-area:not([hidden]) { display:contents; }
.catalog-filter-fields { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#filter-toggle { display:none; }
#winter-purpose-tabs, #active-catalog-filters {
 display:flex; flex-wrap:wrap; align-items:center; gap:6px; flex-basis:100%;
}
#winter-purpose-tabs[hidden], #active-catalog-filters[hidden], #catalog-filter-area[hidden] { display:none; }
#winter-purpose-tabs button, #active-catalog-filters button, #filter-toggle, .catalog-empty button {
 border:1px solid #bacfc0; background:#f6faf3; color:#244536; border-radius:20px;
 padding:.48rem .82rem; font:inherit; font-size:.9rem; font-weight:650; cursor:pointer;
}
#winter-purpose-tabs button[aria-pressed=true] { background:#194a39; color:white; border-color:#194a39; }
#active-catalog-filters button { max-width:100%; overflow-wrap:anywhere; color:#443862; background:#f0eafa; border-color:#cfc1de; }
.catalog-empty { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:1.5rem; }
.catalog-empty strong { flex-basis:100%; }
.catalog-empty a { color:inherit; text-decoration:underline; }
html[data-theme=dark] :is(#winter-purpose-tabs button,#active-catalog-filters button,#filter-toggle,.catalog-empty button) { color:#f5efd9; background:#293e36; border-color:#648073; }
html[data-theme=dark] #winter-purpose-tabs button[aria-pressed=true] { color:#213a30; background:#f5dca4; border-color:#f5dca4; }
@media(max-width:800px) {
 body.catalogue-page #catalog-tools { align-items:center; gap:7px; }
 body.catalogue-page #catalog-tools .search-box { flex:1 1 9rem; min-width:0; margin:0; }
 body.catalogue-page #catalog-tools .search-box input { width:100%; min-width:0; font-size:16px; }
 #filter-toggle { display:block; min-height:42px; }
 #filter-toggle[aria-expanded=false] + .catalog-filter-fields { display:none; }
 .catalog-filter-fields { flex:1 1 100%; padding:.7rem; border:1px solid var(--line,#ccd8cf); border-radius:14px; }
 #catalog-tools .catalog-filter-fields label { flex:1 1 110px; }
 #winter-purpose-tabs { gap:4px; }
 #winter-purpose-tabs button { padding:.35rem .65rem; min-height:36px; }
 body.catalogue-page #result-count { margin:0; }
}
@media(max-width:800px) {
 body.catalogue-page #catalog-back { margin-bottom:8px; }
 body.catalogue-page #catalog.winter-collection .section-head { padding:8px 16px; margin-bottom:8px; }
 body.catalogue-page #catalog-tools .search-box { height:44px; padding:0 10px; }
 body.catalogue-page #catalog-tools .search-box > span { line-height:1; }
 body.catalogue-page #winter-purpose-tabs { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
 body.catalogue-page #winter-purpose-tabs button { flex:0 0 auto; padding:5px 8px; font-size:13px; }
 body.catalogue-page #active-catalog-filters { flex:1 1 140px; }
 body.catalogue-page #active-catalog-filters + #result-count { flex:0 0 auto; }
}
