/* Busca de produtos compartilhada pelos cabeçalhos do site. */
.search-sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-search {
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  height:44px;
  padding:4px 5px 4px 17px;
  border:1px solid rgba(17,21,24,.12);
  border-radius:999px;
  background:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.16);
  transition:box-shadow .2s ease,transform .2s ease;
}

.site-search:focus-within {
  box-shadow:0 0 0 3px rgba(255,196,0,.27),0 8px 24px rgba(0,0,0,.2);
}

.site-search input {
  flex:1 1 auto;
  width:100%;
  min-width:0;
  height:100%;
  padding:0;
  border:0;
  outline:0;
  color:#171b1e;
  background:transparent;
  font:500 13px/1.2 Inter,Arial,sans-serif;
}

.site-search input::placeholder { color:#767d81; opacity:1; }
.site-search input::-webkit-search-cancel-button { cursor:pointer; }

.site-search button {
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  color:#111518;
  background:#ffc400;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease;
}

.site-search button:hover { transform:scale(1.06); background:#ffd43b; }
.site-search button:focus-visible { outline:3px solid #111518; outline-offset:2px; }
.site-search svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.catalog-header .catalog-brand { margin-right:0; }
.catalog-empty { grid-column:1 / -1; margin:10px 0; padding:24px; border:1px dashed rgba(255,255,255,.28); border-radius:14px; color:#e0e2e2; text-align:center; }

@media (min-width:981px) {
  .header .site-search-home { flex:0 1 280px; min-width:210px; max-width:300px; margin-left:0; }
  .catalog-header .site-search-catalog { flex:1 1 240px; max-width:420px; margin-right:auto; }
  .referral-header .site-search-referral { flex:1 1 240px; max-width:420px; margin-inline:auto; }
}

@media (max-width:980px) {
  .header .nav {
    height:auto;
    min-height:72px;
    flex-wrap:wrap;
    gap:8px;
    padding:8px 0 10px;
  }
  .header .nav .brand { order:1; }
  .header .nav .menu-toggle { order:2; }
  .header .nav .site-search-home {
    order:3;
    flex:0 0 100%;
    width:100%;
    max-width:none;
    margin:0;
  }
  .header .nav { padding-right:0; }
  .header .menu { top:124px; }
  .header-mascot { top:4px; bottom:auto; }
  .hero { padding-top:124px; }

  .catalog-header .header-inner {
    min-height:0;
    flex-wrap:wrap;
    gap:8px 12px;
    padding-block:10px;
  }
  .catalog-header .catalog-brand { order:1; margin-right:0; }
  .catalog-header .header-link { order:2; margin-left:auto; }
  .catalog-header .header-whatsapp { order:3; }
  .catalog-header .site-search-catalog {
    order:4;
    flex:0 0 100%;
    width:100%;
    max-width:none;
    margin:0;
  }
  .catalog-header-mascot { top:4px; bottom:auto; }
}

@media (max-width:700px) {
  .referral-header { flex-wrap:wrap; gap:9px 12px; }
  .referral-brand { order:1; }
  .referral-header .back-link { order:2; margin-left:auto; }
  .referral-header .site-search-referral {
    order:3;
    flex:0 0 100%;
    width:100%;
    max-width:none;
    margin:0;
  }
}

@media (max-width:680px) {
  .header .nav { width:calc(100% - 24px); padding-right:0; }
  .header .menu { top:124px; }
  .hero { padding-top:124px; }

  .catalog-header .header-inner {
    flex-wrap:wrap;
    gap:8px;
    padding-right:58px;
  }
  .catalog-header .catalog-brand img.brand-logo { width:128px; }
  .catalog-header .site-search-catalog { flex-basis:100%; }
  .catalog-header-mascot { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .site-search,.site-search button { transition:none; }
}
