/* MessageCard Boutique v4.8.0 — SEARCH RESULT PAGE ONLY.
 * Search header, filters, cards and pagination match the existing catalog.
 * Depends on the existing v2.2/v2.3 catalog design and the v4.7.9 search form.
 * No global select/button rules; no checkout/account/cart changes.
 */
body.tpl_messagecard .mc22-catalog.mc480-search-page { min-width:0; }
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-hero {
  min-height:195px;
  padding-top:42px!important;
  padding-bottom:43px!important;
  background:linear-gradient(112deg,#f8f0e9 0%,#f8f2ed 63%,#f4eae4 100%)!important;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page #searchResultsDefaultHeading {
  margin:0 0 8px!important; padding:0!important;
  color:#61473e!important;font-weight:500;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc22-hero-lead strong { color:#8b594b;font-weight:700;overflow-wrap:anywhere; }
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-results {
  padding-top:46px!important;padding-bottom:70px!important;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc479-catalog-search { max-width:1230px;margin-bottom:32px; }
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-toolbar {
  max-width:1230px;margin:0 auto 24px!important;
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-heading { min-width:0; }
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-toolbar h2 {
  margin:0!important;color:#49352e;font-weight:500;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper {
  float:none!important;flex:0 1 auto!important;
  margin:0!important;padding:0!important;background:transparent!important;
  border:0!important;color:#715e54!important;max-width:100%;min-width:0;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper form {
  display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;
  margin:0!important;min-width:0;max-width:100%;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper label {
  float:none!important;color:#766259!important;font-size:13px!important;
  width:auto!important;margin:0!important;padding:0!important;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper select {
  float:none!important;flex:0 1 auto!important;flex-basis:auto!important;appearance:auto;background-color:#fff!important;color:#4e3a34!important;
  border:1px solid #d9c5ba!important;border-radius:8px!important;
  min-height:44px!important;height:44px!important;padding:6px 12px!important;
  font-size:14px!important;max-width:min(100%,300px)!important;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-list,
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-grid { min-width:0; }
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-return {
  margin:28px auto 0;text-align:center;max-width:1230px;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-return a {
  display:inline-flex;gap:12px;align-items:center;justify-content:center;
  padding:10px 20px;min-height:44px;border:1px solid #cda99b;
  border-radius:999px;background:#fff;color:#81584b;text-decoration:none;
  font-size:13px;font-weight:700;line-height:1.5;
}
body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-return a:hover { background:#f5e9e3; }
body.tpl_messagecard .mc22-catalog.mc480-search-page :is(a,button,select,input):focus-visible {
  outline:3px solid #ad7f6e!important;outline-offset:3px;
}
/* Search results reuse the catalog-card classes; mobile overrides are scoped. */
@media (max-width:740px) {
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-hero {
    min-height:154px;padding:30px 18px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page #searchResultsDefaultHeading { font-size:29px!important; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-results {
    padding:27px 14px 55px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc479-catalog-search { margin-bottom:25px; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-toolbar {
    display:block;margin-bottom:22px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper {
    width:100%!important;display:block!important;margin-top:17px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper form {
    display:flex!important;align-items:flex-start;flex-direction:column;gap:7px;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page #filter-wrapper select {
    width:100%!important;max-width:100%!important;flex:0 0 46px!important;flex-basis:46px!important;height:46px!important;font-size:16px!important;min-height:46px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-photo { height:155px!important;padding:9px!important; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-info { padding:12px!important;min-height:169px; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-title { font-size:14px!important;line-height:1.55; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-price { font-size:16px!important; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-link {
    min-height:44px!important;font-size:12px!important;padding:9px 6px!important;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-pagination { gap:9px; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-page-links a {
    min-width:38px;min-height:38px;display:inline-flex;align-items:center;justify-content:center;
  }
}
@media (max-width:359px) {
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-grid,
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-grid[data-count] {
    grid-template-columns:minmax(0,1fr)!important;max-width:320px;margin-left:auto;margin-right:auto;
  }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-photo { height:235px!important; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc23-product-info { min-height:0; }
  body.tpl_messagecard .mc22-catalog.mc480-search-page .mc480-search-results { padding-left:12px!important;padding-right:12px!important; }
}
