/* Medina Smart Search — scoped to .msf-widget to avoid WoodMart overrides. */
.msf-widget {
  --msf-accent: #EF5F18;
  --msf-border: #e7e8e8;
  --msf-ink: #262b29;
  --msf-muted: #7a807d;
  --msf-bg: #fff;
  position: relative;
  width: 100%;
  color: var(--msf-ink);
  font-family: inherit;
  font-size: 14px;
}
.msf-widget *, .msf-widget *::before, .msf-widget *::after { box-sizing: border-box; }
.msf-widget [hidden] { display: none !important; }
.msf-widget .msf-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.msf-widget:focus-within { z-index: 30; }
.msf-widget .msf-form { margin: 0; position: relative; }
.msf-widget .msf-top {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.msf-widget .msf-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--msf-border);
  border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.msf-widget .msf-search-wrap:focus-within {
  border-color: var(--msf-accent);
  box-shadow: 0 0 0 3px rgba(239, 95, 24, .10);
}
.msf-widget input.msf-search {
  flex: 1 1 auto;
  width: 100%; min-width: 0; height: 48px; min-height: 48px;
  margin: 0; padding: 0 6px 0 17px;
  border: 0; border-radius: 12px; box-shadow: none; outline: none;
  background: transparent; color: var(--msf-ink); font: inherit; font-size: 15px;
}
.msf-widget input.msf-search:focus { background: transparent; box-shadow: none; border: 0; outline: 0; }
.msf-widget input.msf-search::placeholder { color: #969b98; opacity: 1; }
.msf-widget button.msf-search-action {
  flex: 0 0 43px; width: 43px; height: 43px; min-height: 43px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 3px 0 0; padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: var(--msf-accent); box-shadow: none;
  cursor: pointer; line-height: 1;
}
.msf-widget button.msf-search-action:hover { background: #fff1e9; color: var(--msf-accent); }
.msf-widget button.msf-toggle, .msf-widget button.msf-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; min-height: 50px; padding: 0 19px; border-radius: 12px;
  box-shadow: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  line-height: 1.15; white-space: nowrap; text-transform: none; letter-spacing: normal;
}
.msf-widget button.msf-toggle {
  flex: 0 0 50px; width: 50px; padding: 0;
  background: var(--msf-accent); color: #fff; border: 1px solid var(--msf-accent);
}
.msf-widget button.msf-toggle:hover, .msf-widget button.msf-toggle.is-active {
  background: #ce4f11; color: #fff; border-color: #ce4f11;
}
.msf-widget button.msf-apply { background: var(--msf-accent); color: #fff; border: 1px solid var(--msf-accent); }
.msf-widget button.msf-apply:hover { background: #ce4f11; border-color: #ce4f11; color: #fff; }
.msf-widget button:focus-visible, .msf-widget a:focus-visible, .msf-widget select:focus-visible, .msf-widget input:focus-visible { outline: 2px solid var(--msf-accent); outline-offset: 2px; }
.msf-widget .msf-filters { margin-top: 10px; padding: 20px; background: #fff; border: 1px solid var(--msf-border); border-radius: 15px; box-shadow: 0 10px 32px rgba(25,31,29,.045); }
.msf-widget .msf-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.msf-widget .msf-control { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; color: var(--msf-ink); font-weight: 400; }
.msf-widget .msf-control__label { font-size: 12px; font-weight: 700; color: #646b67; }
.msf-widget .msf-control select, .msf-widget .msf-control input {
  width: 100%; height: 43px; min-height: 43px; margin: 0; padding: 0 13px;
  color: var(--msf-ink); background: #fff; border: 1px solid var(--msf-border);
  border-radius: 9px; outline: 0; font: inherit; font-size: 14px; box-shadow: none;
}
.msf-widget .msf-control select:focus, .msf-widget .msf-control input:focus { border-color: var(--msf-accent); }
.msf-widget .msf-filter-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #f0f0f0; margin-top: 20px; padding-top: 17px; }
.msf-widget .msf-checks, .msf-widget .msf-filter-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.msf-widget .msf-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; color: #444a46; font-size: 14px; font-weight: 500; }
.msf-widget .msf-check input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--msf-accent); }
.msf-widget .msf-reset { color: #737975; text-decoration: underline; font-weight: 600; }
.msf-widget .msf-reset:hover { color: var(--msf-accent); }
.msf-widget button.msf-apply { min-height: 42px; height: 42px; padding: 0 20px; }
.msf-widget .msf-suggestions {
  position: absolute; top: calc(100% + 8px); left: -1px; right: -1px;
  z-index: 9999; max-height: 420px; overflow-y: auto; background: #fff;
  border-radius: 14px; border: 1px solid var(--msf-border);
  box-shadow: 0 18px 48px rgba(0,0,0,.13); padding: 8px;
}
.msf-widget a.msf-suggestion { display: flex; min-height: 68px; padding: 8px; gap: 12px; align-items: center; border-radius: 9px; color: #262b29; text-decoration: none; }
.msf-widget a.msf-suggestion:hover, .msf-widget a.msf-suggestion.is-selected { background: #fff4ee; color: #262b29; }
.msf-widget .msf-suggestion__img { display: flex; flex: 0 0 52px; width: 52px; height: 52px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #f1f1f1; border-radius: 8px; background: #fff; }
.msf-widget .msf-suggestion__img img { max-width: 100%; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.msf-widget .msf-suggestion__info { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 4px; }
.msf-widget .msf-suggestion__name { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 13px; font-weight: 650; line-height: 1.35; }
.msf-widget .msf-suggestion__sku { font-size: 11px; color: var(--msf-muted); }
.msf-widget .msf-suggestion__price { flex: 0 0 auto; color: var(--msf-accent); font-size: 13px; font-weight: 750; text-align: right; }
.msf-widget .msf-suggestion__price del { display: block; font-size: 11px; color: #929793; font-weight: 400; }
.msf-widget .msf-suggestion__price ins { color: var(--msf-accent); text-decoration: none; }
.msf-widget .msf-no-results { padding: 16px 12px; color: #6f7772; font-size: 13px; }
.msf-widget a.msf-all-results { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid #f0f1f0; text-decoration: none; color: var(--msf-accent); font-weight: 700; font-size: 13px; }
.msf-widget a.msf-all-results:hover { color: #c64b0e; }
.msf-widget--compact input.msf-search { height: 42px; min-height: 42px; }
.msf-widget--compact button.msf-search-action { width: 38px; height: 38px; min-height: 38px; flex-basis: 38px; }
.msf-widget--compact button.msf-toggle { height: 44px; min-height: 44px; width: 44px; flex-basis: 44px; }
@media (max-width: 1000px) { .msf-widget .msf-filter-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) {
  .msf-widget .msf-top { gap: 8px; }
  .msf-widget .msf-search-wrap { border-radius: 10px; }
  .msf-widget input.msf-search { font-size: 14px; height: 44px; min-height: 44px; padding-left: 12px; }
  .msf-widget button.msf-search-action { width: 38px; height: 38px; min-height: 38px; flex-basis: 38px; margin-right: 3px; }
  .msf-widget button.msf-toggle { height: 46px; min-height: 46px; width: 46px; flex-basis: 46px; padding: 0; font-size: 13px; border-radius: 10px; gap: 6px; }
  .msf-widget button.msf-toggle svg { width: 19px; height: 19px; }
  .msf-widget .msf-filters { padding: 14px; border-radius: 12px; }
  .msf-widget .msf-filter-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .msf-widget .msf-filter-foot { align-items: stretch; }
  .msf-widget .msf-filter-actions { width: 100%; justify-content: space-between; }
  .msf-widget .msf-suggestions { left: -1px; right: -115px; max-height: 360px; }
  .msf-widget .msf-suggestion__img { width: 44px; height: 44px; flex-basis: 44px; }
  .msf-widget .msf-suggestion__price { font-size: 12px; }
}
@media (max-width: 360px) {
  .msf-widget .msf-top { gap: 6px; }
  .msf-widget input.msf-search { font-size: 13px; }
  .msf-widget button.msf-toggle { padding: 0; gap: 4px; }
  .msf-widget .msf-suggestions { right: -106px; }
}
