@charset "UTF-8";
/* ================= Base da página (mantido) ================ */
@media (max-width: 1080px) {
  html {
    font-size: 93.75%;
  }
}
@media (max-width: 720px) {
  html {
    font-size: 87.5%;
  }
}

body {
  background-color: var(--bs-gray-100);
}

/* respiro lateral */
#wrapper {
  width: 80%;
  margin: 0 auto;
  padding-inline: 12px;
}

@media (min-width: 1200px) {
  #wrapper {
    padding-inline: 16px;
  }
}
/* Mesmo respiro do .container da home no celular. */
@media (max-width: 727px) {
  #wrapper {
    width: 100%;
    padding-inline: 0.75rem;
  }
}
@media (min-width: 576px) and (max-width: 727px) {
  #wrapper {
    max-width: 540px;
  }
}
/* layout */
#container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

@media (max-width: 727px) {
  #container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}
h1 {
  color: var(--bs-primary);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  padding-block: 1rem;
}

span.results {
  color: var(--bs-gray-900);
  display: block;
}

#main-content {
  width: 100%;
}

#main-content .search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.725rem;
}

@media (max-width: 727px) {
  #main-content .search-header {
    padding-inline: 8px;
  }
}
/* botão filtrar */
#main-content .search-header #btn-filter-mobile {
  background: transparent;
  border: 1px solid var(--bs-gray-500);
  border-radius: 0.5rem;
  color: var(--bs-primary);
  padding: 0.25rem 0.5rem;
  transition: 0.2s;
}

#main-content .search-header #btn-filter-mobile:hover {
  background: var(--bs-primary);
  color: #fff;
}

/* “Ordenar por” sem quebrar */
#div_select_ord.form-floating {
  width: auto !important;
}

.sel.sel--black-panther {
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
  min-width: 170px;
}

.sel.sel--black-panther .sel__placeholder {
  white-space: nowrap;
}

/* filtro lateral só desktop */
#filter-container {
  display: none;
}

@media (min-width: 728px) {
  #btn-filter-mobile, #offcanvasWithBothOptions {
    display: none;
  }
  #filter-container {
    display: block;
    position: sticky;
    top: 110px;
  }
}
/* ========================= Tema do Filtro =================== */
:root {
  --brand: #ab1eb9;
  --line: #e9e9ee;
  --bg-sheet: rgba(0,0,0,.35);
  --shadow-soft: 0 10px 30px rgba(22,22,26,.06);
  --radius: 18px;
}

/* use #filter para não afetar os cards de produto */
#filter {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

#filter .card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
}

#filter .section {
  margin-bottom: 14px;
}

#filter .filter-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #6b6b6b;
  margin-bottom: 10px;
}

/* ---------- GRID DE TAMANHOS (DESKTOP) ---------- */
#content-sizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

@media (min-width: 1200px) {
  #content-sizes {
    gap: 12px;
  }
}
/* chips */
#content-sizes .spanSizeSearch,
#condition .spanCondicao,
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.06s;
}

#content-sizes .spanSizeSearch:hover,
#condition .spanCondicao:hover {
  border-color: var(--brand);
  background: rgba(171, 30, 185, 0.06);
}

#content-sizes .spanSizeSearch:active,
#condition .spanCondicao:active {
  transform: translateY(1px);
}

#content-sizes .spanSizeSearch.spanSizeActive,
#condition .spanCondicao.spanSizeActive,
.chip.is-active {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(171, 30, 185, 0.09);
}

#content-sizes .spanSizeSearch:focus-visible,
#condition .spanCondicao:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- CONDIÇÃO (lado a lado) ---------- */
#condition {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 8px;
}

#condition .spanCondicao {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 86px;
}

/* divisor entre seções */
#filter .section + .section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ações */
.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding-left: 8px;
}

:is(#filter, #filter-sheet) .btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.06s, box-shadow 0.2s, background 0.2s;
}

:is(#filter, #filter-sheet) .btn:active {
  transform: translateY(1px);
}

:is(#filter, #filter-sheet) .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

:is(#filter, #filter-sheet) .btn-primary:hover {
  filter: brightness(1.06);
}

:is(#filter, #filter-sheet) .btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #3a3a3a;
}

:is(#filter, #filter-sheet) .btn-ghost:hover {
  background: #fafafa;
}

/* =================== Bottom-sheet (mobile) =================== */
.sheet {
  display: none;
}

.sheet[aria-hidden=false] {
  display: block;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--bg-sheet);
  z-index: 1100;
}

.sheet-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-soft);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  z-index: 1110;
  animation: sheetUp 0.25s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-head strong {
  font-weight: 800;
}

.sheet-head .icon-btn {
  border: 0;
  background: transparent;
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.sheet-body {
  padding: 12px 14px 6px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* dentro do sheet: reaproveita o filtro, sem sombra e com padding amigável */
#sheet-filter-slot #filter {
  box-shadow: none;
  border-radius: 12px;
  padding: 10px 10px 6px;
}

#sheet-filter-slot #filter .filter-actions {
  display: none;
}

/* usa os botões do rodapé */
/* grid de tamanhos no sheet (aperta um pouco pra caber melhor) */
#sheet-filter-slot #content-sizes {
  gap: 8px;
}

/* The filter sheet keeps its own scroll area and comfortable touch targets. */
#filter-sheet .sheet-panel { max-height: 82dvh; border-radius: 26px 26px 0 0; color: #252331; }
#filter-sheet .sheet-head, #filter-sheet .sheet-foot { flex-shrink: 0; }
#filter-sheet .sheet-body { min-height: 0; }
#filter-sheet .sheet-head .icon-btn { width: 44px; height: 44px; border-radius: 50%; background: #f3eef9; color: #6523a0; }
#filter-sheet .sheet-foot .btn { min-height: 44px; }
#filter-sheet .sheet-foot .btn-primary { background: #9926f0; color: #fff; }
#sheet-filter-slot #filter .card-title { display: none; }
#sheet-filter-slot #filter #content-sizes { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); }
#sheet-filter-slot #filter #content-sizes button { width: 100%; min-height: 44px; max-width: none; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { #filter-sheet .sheet-panel { animation: none; } }
