:root {
  --wyd-f1: #1b1413;
  --wyd-f2: #16110e;
  --wyd-cu: #856454;
  --wyd-cu2: #5d4a42;
  --wyd-txt: #cdc1b2;
  --wyd-ttl: #f7ece1;
  --wyd-dim: #8a7a6c;
  --wyd-dim2: #6f635a;
  --wyd-gold: #ffcc00;
  --wyd-ink: rgba(0, 0, 0, 0.9);
  --wyd-sel: #e25d1e;
  --wyd-sel-escuro: #b33f12;
  --wyd-sel-borda: #8f3a12;
  --wyd-sel-brilho: #f5ac54;
  --wyd-sel-texto: #fff6e8;
  --wyd-sel-grad: linear-gradient(180deg, #b33f12 0%, #c44d1a 45%, #d3561e 80%, #e25d1e 100%);
  --wyd-placa: linear-gradient(180deg, #45302a 0%, #3a2721 55%, #301f1a 100%);
  --wyd-placa-hover: linear-gradient(180deg, #543b31 0%, #45302a 55%, #3a2721 100%);
  --wyd-linha-hover: rgba(177, 67, 23, 0.16);
  --wyd-linha-par: rgba(255, 255, 255, 0.022);
  --wyd-moldura-fb: #342b27;
  --wyd-slot-bg: #252322;
  --wyd-slot: 44px;
  --wyd-orn-w: 204px;
  --wyd-fonte: Tahoma, Verdana, "Noto Sans", sans-serif;
  --wyd-sombra-caixa: inset 0 0 14px rgba(0, 0, 0, 0.55);
}

.wyd-painel {
  position: relative;
  padding: 8px 10px;
  border-style: solid;
  border-width: 48px 32px 36px 32px;
  border-color: var(--wyd-moldura-fb);
  border-image-source: var(--wyd-moldura);
  border-image-slice: 48 32 36 32;
  border-image-repeat: repeat;
  background-color: var(--wyd-f1);
  background-clip: padding-box;
  color: var(--wyd-txt);
  font-family: var(--wyd-fonte);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
  image-rendering: pixelated;
  scroll-margin-top: calc(var(--masthead-stack-height, 64px) + 18px);
}

.wyd-painel--loja {
  --wyd-moldura: url("../images/panel/moldura-loja.webp");
  --wyd-orn: url("../images/panel/orn-loja.webp");
  --wyd-orn-w: 204px;
  --wyd-f1: #1b1413;
  --wyd-slot-bg: #252322;
}

.wyd-painel--drops {
  --wyd-moldura: url("../images/panel/moldura-drops.webp");
  --wyd-orn: url("../images/panel/orn-drops.webp");
  --wyd-orn-w: 206px;
  --wyd-f1: #1f1b1a;
  --wyd-slot-bg: #282726;
  --wyd-moldura-fb: #352f2b;
}

.wyd-painel__orn {
  position: absolute;
  top: -48px;
  left: 50%;
  width: var(--wyd-orn-w);
  max-width: 100%;
  height: 48px;
  margin-left: calc(var(--wyd-orn-w) / -2);
  background-image: var(--wyd-orn);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.wyd-painel__titulo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 12px;
  margin: 0 0 9px;
  padding: 0 2px 7px;
  border-bottom: 1px solid var(--wyd-cu);
  color: var(--wyd-ttl);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 19px;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 7px rgba(0, 0, 0, 0.55);
  text-transform: uppercase;
}

.wyd-painel__titulo > * {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.wyd-painel__corpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.wyd-painel__rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 10px;
  margin: 9px 0 0;
  padding: 6px 2px 0;
  border-top: 1px solid var(--wyd-cu2);
  color: var(--wyd-dim2);
  font-size: 11px;
  line-height: 1.5;
}

.wyd-painel__rodape > * {
  margin: 0;
}

.wyd-abas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.wyd-abas > li {
  display: flex;
  min-width: 0;
}

.wyd-aba {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid var(--wyd-cu2);
  background: var(--wyd-placa);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--wyd-txt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px var(--wyd-ink);
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .wyd-aba:not(.is-active, [aria-current="page"]):hover {
    border-color: var(--wyd-cu);
    background: var(--wyd-placa-hover);
    color: var(--wyd-ttl);
  }
}

.wyd-aba.is-active,
.wyd-aba[aria-current="page"] {
  border-color: var(--wyd-sel-borda);
  background: var(--wyd-sel-grad);
  box-shadow:
    inset 0 1px 0 var(--wyd-sel-brilho),
    inset 0 -1px 0 rgba(255, 157, 61, 0.75),
    0 0 7px rgba(226, 93, 30, 0.35);
  color: var(--wyd-sel-texto);
  cursor: default;
  text-shadow: 0 1px 2px rgba(50, 8, 0, 0.9);
}

.wyd-aba:focus-visible {
  outline: 2px solid var(--wyd-sel-brilho);
  outline-offset: 1px;
}

.wyd-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--wyd-slot, 44px));
  gap: 3px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.wyd-grade > li {
  display: flex;
  min-width: 0;
}

.wyd-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--wyd-slot, 44px);
  height: var(--wyd-slot, 44px);
  border: 1px solid var(--wyd-cu2);
  background: var(--wyd-slot-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  color: var(--wyd-txt);
  text-decoration: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .wyd-slot:hover {
    border-color: var(--wyd-cu);
    box-shadow:
      inset 0 0 0 1px rgba(245, 172, 84, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 7px rgba(226, 93, 30, 0.25);
  }
}

.wyd-slot:focus-visible {
  outline: 2px solid var(--wyd-sel-brilho);
  outline-offset: 1px;
}

.wyd-painel .wyd-slot__icone {
  --wyd-icone-px: 40px;
  display: block;
  flex: none;
  width: var(--wyd-icone-px);
  height: var(--wyd-icone-px);
}

.wyd-slot__qtd,
.wyd-slot__sanc {
  position: absolute;
  right: 1px;
  bottom: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 12px;
  pointer-events: none;
  text-shadow:
    0 1px 2px var(--wyd-ink),
    0 0 3px rgba(0, 0, 0, 0.8);
}

.wyd-slot__qtd {
  color: #ffffff;
}

.wyd-slot__sanc {
  color: var(--wyd-gold);
}

.wyd-ficha {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--wyd-cu);
  background: var(--wyd-f2);
  box-shadow: var(--wyd-sombra-caixa);
  min-width: 0;
}

.wyd-ficha::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(133, 100, 84, 0.26);
  pointer-events: none;
}

.wyd-ficha > * {
  position: relative;
  z-index: 1;
}

.wyd-ficha__nome {
  margin: 0;
  color: var(--wyd-ttl);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-shadow: 0 1px 2px var(--wyd-ink);
  text-transform: uppercase;
}

.wyd-ficha__linha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0;
  color: var(--wyd-txt);
  font-size: 11px;
  line-height: 1.5;
}

.wyd-ficha__preco {
  margin: 0;
  color: var(--wyd-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px var(--wyd-ink);
}

.wyd-lista {
  max-height: var(--wyd-lista-max, 420px);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--wyd-cu);
  background: var(--wyd-f2);
  box-shadow: var(--wyd-sombra-caixa);
  list-style: none;
  min-width: 0;
  overscroll-behavior: contain;
  scrollbar-color: #5b4238 #120c0a;
  scrollbar-width: thin;
}

.wyd-lista::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.wyd-lista::-webkit-scrollbar-track {
  border: 0;
  background: #120c0a;
  box-shadow: none;
}

.wyd-lista::-webkit-scrollbar-thumb {
  border: 0;
  background: linear-gradient(180deg, #5b4238, #3a2a23);
  box-shadow: inset 0 0 0 1px #6f564a;
}

.wyd-lista::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d5044, #46332b);
  box-shadow: inset 0 0 0 1px #836857;
}

.wyd-lista > li {
  display: flex;
  min-width: 0;
}

.wyd-lista__item {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-height: 15px;
  min-width: 0;
  padding: 0 8px;
  color: var(--wyd-txt);
  font-size: 12px;
  line-height: 15px;
  text-decoration: none;
  transition:
    color 120ms ease,
    background 120ms ease;
}

.wyd-lista :where(li:nth-child(even)) .wyd-lista__item,
.wyd-lista .wyd-lista__item:where(:nth-child(even)) {
  background: var(--wyd-linha-par);
}

@media (hover: hover) and (pointer: fine) {
  .wyd-lista .wyd-lista__item:not(.is-active, [aria-current="page"]):hover {
    background: var(--wyd-linha-hover);
    color: var(--wyd-ttl);
  }
}

.wyd-lista .wyd-lista__item.is-active,
.wyd-lista .wyd-lista__item[aria-current="page"] {
  background: var(--wyd-sel-grad);
  box-shadow:
    inset 0 1px 0 var(--wyd-sel-brilho),
    inset 0 0 0 1px var(--wyd-sel-borda);
  color: var(--wyd-sel-texto);
  text-shadow: 0 1px 2px rgba(50, 8, 0, 0.9);
}

.wyd-lista__item:focus-visible {
  outline: 2px solid var(--wyd-sel-brilho);
  outline-offset: -2px;
}

.wyd-lista__meta {
  flex: none;
  margin-left: auto;
  color: var(--wyd-dim);
  font-size: 11px;
  white-space: nowrap;
}

.wyd-lista__item.is-active .wyd-lista__meta,
.wyd-lista__item[aria-current="page"] .wyd-lista__meta {
  color: rgba(255, 246, 232, 0.86);
}

.wyd-busca {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  margin: 0;
  min-width: 0;
}

.wyd-busca > label {
  grid-column: 1 / -1;
  color: var(--wyd-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.wyd-busca__input {
  min-width: 0;
  height: 22px;
  padding: 0 7px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--wyd-cu);
  background: var(--wyd-f2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
  color: var(--wyd-ttl);
  font-family: inherit;
  font-size: 12px;
  line-height: 20px;
}

.wyd-busca__input::placeholder {
  color: var(--wyd-dim2);
  opacity: 1;
}

.wyd-busca__input:focus {
  border-color: var(--wyd-sel-escuro);
}

.wyd-busca__input:focus-visible {
  outline: 2px solid var(--wyd-sel-brilho);
  outline-offset: 1px;
}

.wyd-busca__botao {
  height: 22px;
  padding: 0 12px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--wyd-cu2);
  background: var(--wyd-placa);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.5);
  color: var(--wyd-txt);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 18px;
  text-shadow: 0 1px 1px var(--wyd-ink);
  text-transform: uppercase;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .wyd-busca__botao:hover {
    border-color: var(--wyd-cu);
    background: var(--wyd-placa-hover);
    color: var(--wyd-ttl);
  }
}

.wyd-busca__botao:focus-visible {
  outline: 2px solid var(--wyd-sel-brilho);
  outline-offset: 1px;
}

.wyd-meta {
  display: grid;
  gap: 2px;
  margin: 0;
  min-width: 0;
}

.wyd-meta__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  padding: 3px 0;
  border-bottom: 1px solid rgba(93, 74, 66, 0.34);
  min-width: 0;
}

.wyd-meta__item:last-child {
  border-bottom: 0;
}

.wyd-meta__rotulo {
  margin: 0;
  color: var(--wyd-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.wyd-meta__valor {
  margin: 0;
  color: var(--wyd-ttl);
  font-size: 12px;
  line-height: 1.45;
}

.wyd-vazio {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 22px 12px;
  border: 1px solid var(--wyd-cu2);
  background: var(--wyd-f2);
  box-shadow: var(--wyd-sombra-caixa);
  color: var(--wyd-dim);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.wyd-vazio > * {
  margin: 0;
}

.wyd-duplas {
  display: grid;
  align-items: start;
  gap: 10px;
  min-width: 0;
}

.wyd-duplas > * {
  min-width: 0;
}

.wyd-painel [hidden],
.wyd-painel[hidden],
.wyd-duplas [hidden],
.wyd-duplas[hidden] {
  display: none !important;
}

@media (min-width: 521px) {
  .wyd-grade {
    justify-content: start;
  }
}

@media (min-width: 620px) {
  .wyd-abas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 921px) {
  .wyd-duplas {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 920px) {
  .wyd-lista {
    --wyd-lista-max: 300px;
  }
}

@media (max-width: 520px) {
  .wyd-painel {
    border-width: 48px 16px 36px 16px;
    padding: 8px 7px;
  }

  .wyd-ficha {
    padding: 10px;
  }

  .wyd-meta__item {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

@media (max-width: 283px) {
  .wyd-painel__orn {
    display: none;
  }
}

@media (pointer: coarse) {
  .wyd-aba {
    height: 28px;
    line-height: 26px;
  }

  .wyd-lista__item {
    min-height: 30px;
  }

  .wyd-busca__input {
    height: 34px;
    font-size: 16px;
    line-height: 32px;
  }

  .wyd-busca__botao {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wyd-aba,
  .wyd-slot,
  .wyd-lista__item,
  .wyd-busca__input,
  .wyd-busca__botao {
    transition: none;
  }
}

.wyd-ficha {
  scroll-margin-top: calc(var(--masthead-stack-height, 64px) + 18px);
}

@media (min-width: 1025px) {
  .loja-section .guides-rail__list,
  .droplist-section .guides-rail__list {
    display: flex;
    flex-wrap: wrap;
  }

  .loja-section .guides-rail__list > li,
  .droplist-section .guides-rail__list > li {
    flex: 0 1 auto;
  }
}

.loja-section .wyd-painel,
.droplist-section .wyd-duplas {
  width: 100%;
  margin-inline: auto;
}

.loja-section .wyd-painel {
  max-width: 1000px;
}

.droplist-section .wyd-duplas {
  max-width: 1280px;
}

@media (min-width: 921px) {
  .loja-section .wyd-duplas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  }

  .loja-section .wyd-ficha {
    scroll-margin-top: 100vh;
  }
}

@media (max-width: 920px) {
  .droplist-section .guides-rail__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    gap: 6px;
    padding-bottom: 6px;
  }

  .droplist-section .guides-rail__list > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .droplist-section .guides-rail__item {
    white-space: nowrap;
  }
}
