/* Listagens no visual novo (categoria, busca, ofertas). Código: scripts/catalogo.js */
  body { overflow-x: clip; }
  .dk-cat { --hdr: 0px; padding-bottom: 72px; }
  .dk-cat__bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }

  /* topo */
  .dk-cat__hero { overflow: hidden; background: #05060b; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dk-cat__wall { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 8px; padding: 18px 0 18px 18px; opacity: 0; transition: opacity .6s ease;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
  .dk-cat__wall.is-on { opacity: .55; }
  .dk-cat__wall img { width: 100%; height: 100%; object-fit: cover; background: #151821; }
  .dk-cat__hin { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 34px; padding-bottom: 38px; }
  .dk-cat__crumbs { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: #8d92a0; }
  .dk-cat__crumbs a { color: #a9adb8; }
  .dk-cat__crumbs a:hover { color: #fff; }
  .dk-cat__crumbs i { font-size: 11px; color: #5c6170; }
  .dk-cat__brand { display: flex; align-items: center; gap: 14px; }
  .dk-cat__logo { display: grid; place-items: center; width: 52px; height: 52px; background: #fff; }
  .dk-cat__logo img { width: 30px; height: 30px; }
  .dk-cat__title { margin: 0; font-size: clamp(32px, 1.4rem + 2vw, 52px); font-weight: 800; line-height: 1; color: #fff; }
  .dk-cat__sub { max-width: 520px; margin: 0; font-size: 15px; line-height: 1.6; color: #a9adb8; }
  .dk-cat__perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
  .dk-cat__perks li { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; color: #d4d6de; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
  .dk-cat__perks li i { font-size: 16px; color: #3b82f6; }
  .dk-cat__perks li b { color: #fff; font-weight: 800; }

  /* barra fixa */
  .dk-cat__bar { position: sticky; top: var(--hdr); z-index: 15; background: #0b0d13; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dk-cat__bin { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .dk-cat__q { position: relative; display: block; flex: 1; min-width: 0; max-width: 520px; }
  .dk-cat__q i { position: absolute; left: 14px; top: 50%; z-index: 1; transform: translateY(-50%); font-size: 17px; color: #8d92a0; pointer-events: none; }
  .dk-cat .dk-cat__q input { display: block; width: 100%; height: 42px !important; min-height: 42px; margin: 0; padding: 0 14px 0 42px !important; font-size: 14.5px; color: #fff; background: #151821 !important; border: 1px solid rgba(255,255,255,.08) !important; outline: none; -webkit-appearance: none; appearance: none; }
  .dk-cat__q input:focus { border-color: #3b82f6 !important; }
  .dk-cat__q input::placeholder { color: #6b6e79; }
  .dk-cat__sort { flex: none; width: 200px; margin-left: auto; }
  .dk-cat__sort .dk-sort-btn { height: 42px; background: #151821; border: 1px solid rgba(255,255,255,.08); }
  .dk-cat__sort .dk-sort-btn::before { content: "Ordenar:"; margin-right: 6px; color: #8d92a0; font-size: 13px; }
  .dk-cat__sort .dk-sort-btn span { flex: 1; text-align: left; }
  .dk-cat__flt { flex: none; }
  .dk-cat .dk-flt-toggle { display: inline-flex !important; width: auto; height: 42px; padding: 0 16px; background: #151821; border: 1px solid rgba(255,255,255,.08); }
  .dk-cat .dk-flt-toggle:hover { border-color: rgba(255,255,255,.2); }

  /* a barra fica abaixo do cabeçalho (camada 20, sugestões da busca por cima); com a gaveta aberta ela sobe */
  body.dk-flt-lock .dk-cat__bar { z-index: 95; }
  /* filtros: gaveta lateral em qualquer tela */
  .dk-cat .dk-flt-panel { display: none !important; }
  .dk-cat .dk-flt.is-open .dk-flt-panel { display: block !important; position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 90; width: min(380px, 92vw); max-height: none; overflow-y: auto; padding: 20px 22px 24px; background: #0e1017; border-left: 1px solid rgba(255,255,255,.08); }
  .dk-cat .dk-flt.is-open .dk-flt-backdrop:not([hidden]) { display: block !important; z-index: 89; }
  .dk-cat .dk-flt.is-open .dk-flt-close { display: inline-flex !important; }
  .dk-cat .dk-flt.is-open .dk-flt-apply { display: flex !important; gap: 5px; }
  .dk-cat .dk-flt-panel { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }

  /* resultados */
  .dk-cat__main { padding-top: 20px; }
  .dk-cat .dk-gbar { flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
  .dk-cat .dk-gbar::-webkit-scrollbar { display: block; height: 6px; }
  .dk-cat .dk-gbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
  .dk-cat .dk-gbar-chip { height: 36px; padding: 0 14px; font-size: 13.5px; background: transparent; border: 1px solid rgba(255,255,255,.12); }
  .dk-cat .dk-gbar-chip:hover { border-color: rgba(255,255,255,.3); background: transparent; }
  .dk-cat .dk-gbar-chip.is-active { background: #3b82f6; border-color: #3b82f6; }
  .dk-cat .dk-flt-toolbar { margin-bottom: 16px; }
  .dk-cat__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .dk-cat__grid.hidden { display: none; }

  /* card 16:9 */
  .dk-wc { position: relative; display: flex; flex-direction: column; min-width: 0; color: #fff; background: #11131a; border: 1px solid rgba(255,255,255,.06); transition: border-color .15s, transform .15s; }
  .dk-wc:hover { border-color: rgba(59,130,246,.6); transform: translateY(-3px); }
  .dk-wc:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .dk-wc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1a1c24; }
  .dk-wc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
  .dk-wc:hover .dk-wc__media img { transform: scale(1.05); }
  .dk-wc__tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
  .dk-wc__tags em { padding: 2px 7px; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .02em; }
  .dk-wc__off { color: #fff; background: #e0234e; }
  .dk-wc__pre { color: #1a1300; background: #fbbf24; text-transform: uppercase; }
  .dk-wc__sold { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: #fff; background: rgba(0,0,0,.6); }
  .dk-wc.is-out .dk-wc__media img { filter: grayscale(.7); }
  .dk-wc__body { display: flex; flex-direction: column; flex: 1; gap: 4px; padding: 12px 14px 14px; }
  .dk-wc__name { display: -webkit-box; overflow: hidden; min-height: 2.6em; font-size: 14.5px; font-weight: 700; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dk-wc__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8d92a0; }
  .dk-wc__meta img { width: 13px; height: 13px; filter: brightness(0) invert(.75); }
  .dk-wc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
  .dk-wc__price { display: flex; flex-direction: column; line-height: 1.15; }
  .dk-wc__price s { font-size: 12px; color: #6b6f7a; }
  .dk-wc__price b { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
  .dk-wc .dk-card__cart { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font-size: 19px; color: #fff; background: #3b82f6; cursor: pointer; transition: background-color .15s; }
  .dk-wc .dk-card__cart:hover { background: #4f8ff7; }
  .dk-wc .dk-card__cart.is-added { background: #22c55e; }

  .dk-cat__state { padding: 64px 12px; text-align: center; font-size: 14px; color: #8d92a0; }
  .dk-cat__state.hidden { display: none; }
  /* paginação: afastada dos cards, botões quadrados e "…" entre os grupos */
  .dk-cat__main > [id$="-pagination"] { margin-top: 36px; gap: 6px; }
  .dk-cat__main > [id$="-pagination"] button { width: 40px; height: 40px; font-size: 14px; font-weight: 600; }
  .dk-cat__main > [id$="-pagination"] .dk-pg-gap { display: grid; place-items: center; width: 24px; height: 40px; color: #6b6e79; }
  @media (max-width: 767px) { .dk-cat__main > [id$="-pagination"] { margin-top: 24px; gap: 4px; } .dk-cat__main > [id$="-pagination"] button { width: 36px; height: 36px; } }

  @media (max-width: 1279px) { .dk-cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 1023px) {
    .dk-cat__wall { width: 70%; grid-template-columns: repeat(2, 1fr); }
    .dk-cat__sort { width: 170px; }
    .dk-cat__sort .dk-sort-btn::before { display: none; }
  }
  @media (max-width: 767px) {
    .dk-cat__wall { display: none; }
    .dk-cat__hin { gap: 10px; padding-top: 22px; padding-bottom: 24px; }
    .dk-cat__logo { width: 40px; height: 40px; }
    .dk-cat__logo img { width: 23px; height: 23px; }
    .dk-cat__sub { font-size: 13.5px; }
    .dk-cat__perks li { height: 30px; padding: 0 10px; font-size: 12px; }
    .dk-cat__bin { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
    .dk-cat__q { flex-basis: 100%; max-width: none; }
    .dk-cat__sort { flex: 1; width: auto; margin-left: 0; }
    .dk-cat__flt { flex: 1; }
    .dk-cat .dk-flt-toggle { width: 100%; }
    .dk-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dk-wc__body { padding: 9px 10px 11px; }
    .dk-wc__name { font-size: 13px; }
    .dk-wc__meta { font-size: 11px; }
    .dk-wc__price b { font-size: 15.5px; }
    .dk-wc .dk-card__cart { width: 34px; height: 34px; font-size: 16px; }
  }

  /* ícone no lugar do logo (busca, ofertas) */
  .dk-cat__logo--ic { color: #05060b; font-size: 28px; }
  /* busca: atalhos no topo */
  .dk-cat__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  .dk-cat .dk-quick { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 34px; padding: 0 12px; font-size: 13px; font-weight: 600; color: #d4d6de; white-space: nowrap; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
  .dk-cat .dk-quick i { font-size: 16px; color: #3b82f6; }
  .dk-cat .dk-quick:hover { color: #fff; border-color: rgba(255,255,255,.22); }
  .dk-cat .dk-quick.is-on { color: #fff; background: #3b82f6; border-color: #3b82f6; box-shadow: none; }
  .dk-cat .dk-quick.is-on i { color: #fff; }
  .dk-cat--search .dk-gbar { display: none !important; }
  /* busca sem resultado: convite para o WhatsApp (estilo .dk-sr__ask vem do scripts/busca.js) */
  .dk-cat #search-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .dk-cat #search-empty.hidden { display: none; }
  .dk-cat #search-empty .dk-sp-empty { font-size: 15px; color: #d4d4d8; }
  .dk-cat #search-empty .dk-sr__ask { align-items: center; text-align: center; max-width: 420px; margin: 0; padding: 18px 20px; }
  @media (max-width: 767px) { .dk-cat__logo--ic { font-size: 22px; } .dk-cat .dk-quick { height: 30px; padding: 0 10px; font-size: 12px; } }

  /* ---- barra em abas (estilo "Jogue mais por menos") ---- */
  .dk-cat__bar { background: rgba(5,6,11,.97); border-bottom: 0; }
  .dk-cat__bin { align-items: flex-end; gap: 20px; padding-top: 14px; padding-bottom: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dk-cat__tabs { display: flex; flex: 1; min-width: 0; gap: 26px; overflow-x: auto; scrollbar-width: none; }
  .dk-cat__tabs::-webkit-scrollbar { display: none; }
  .dk-cat__tab { position: relative; flex: none; padding: 8px 0 14px; color: #8a90a0; font-size: 14px; font-weight: 600; white-space: nowrap; background: none; border: 0; cursor: pointer; transition: color .15s; -webkit-tap-highlight-color: transparent; }
  .dk-cat__tab:hover { color: #d4d8e2; }
  .dk-cat__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #3b82f6; transform: scaleX(0); transition: transform .2s ease; }
  .dk-cat__tab[aria-selected="true"] { color: #fff; }
  .dk-cat__tab[aria-selected="true"]::after { transform: none; }
  .dk-cat__tab:focus { outline: none; }
  .dk-cat__tab:focus-visible { color: #fff; }
  .dk-cat__tools { display: flex; flex: none; align-items: center; gap: 8px; padding-bottom: 10px; }
  .dk-cat .dk-cat__tools .dk-cat__q { flex: none; width: 260px; max-width: none; }
  .dk-cat .dk-cat__tools .dk-cat__q i { left: 12px; font-size: 16px; }
  .dk-cat .dk-cat__tools .dk-cat__q input { height: 36px !important; min-height: 36px; padding: 0 12px 0 36px !important; font-size: 14px; background: rgba(255,255,255,.05) !important; border: 1px solid rgba(255,255,255,.1) !important; }
  .dk-cat .dk-cat__tools .dk-cat__q input:focus { border-color: #3b82f6 !important; }
  .dk-cat .dk-cat__tools .dk-flt-toggle { height: 36px; padding: 0 12px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background-color .15s; }
  .dk-cat .dk-cat__tools .dk-flt-toggle:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); }
  .dk-cat .dk-cat__tools .dk-flt-toggle i { font-size: 16px; }
  @media (max-width: 767px) {
    .dk-cat__bin { flex-wrap: wrap; gap: 0; padding-top: 10px; }
    .dk-cat__tools { order: -1; width: 100%; padding-bottom: 4px; }
    .dk-cat .dk-cat__tools .dk-cat__q { flex: 1; width: auto; }
    .dk-cat__flt { flex: none; }
    .dk-cat .dk-cat__tools .dk-flt-toggle { width: auto; }
    .dk-cat__tabs { flex-basis: 100%; gap: 22px; }
    .dk-cat__tab { padding: 10px 0 12px; font-size: 13.5px; }
  }


  /* a barra fica no lugar dela na página: não acompanha a rolagem nem gruda embaixo da navbar */
  .dk-cat__bar { position: relative; top: auto; }
