:root {
  --catalog-surface: #111111;
  --catalog-surface-soft: #181818;
  --catalog-line: #2b2b2b;
  --catalog-yellow: #ffd21c;
  --catalog-red: #ef2525;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: -4px 0 24px;
  padding: 14px;
  background: linear-gradient(135deg, #121212, #0d0d0d);
  border: 1px solid var(--catalog-line);
  border-radius: 14px;
}

.catalog-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 13px;
  background: #080808;
  border: 1px solid #333;
  border-radius: 10px;
}

.catalog-search:focus-within {
  border-color: var(--catalog-yellow);
  box-shadow: 0 0 0 3px rgba(255, 210, 28, .1);
}

.catalog-search input,
.catalog-sort {
  min-height: 44px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.catalog-search input {
  width: 100%;
}

.catalog-search input::placeholder {
  color: #7d7d7d;
}

.catalog-sort {
  padding: 0 38px 0 13px;
  background: #080808;
  border: 1px solid #333;
  border-radius: 10px;
  cursor: pointer;
}

.catalog-count {
  color: #a7a7a7;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

#catalogo .grid.catalog-ready {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#catalogo .card.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #141414 0%, #0f0f0f 100%);
  border-color: var(--catalog-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

#catalogo .card.catalog-card:hover {
  transform: translateY(-5px);
  border-color: #494949;
  box-shadow: 0 20px 42px rgba(0, 0, 0, .38);
}

#catalogo .catalog-card .gallery {
  padding: 0;
  background: #090909;
}

#catalogo .catalog-card .main-photo {
  height: 300px;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 210, 28, .08), transparent 48%),
    #0a0a0a;
}

#catalogo .catalog-card .mainimg {
  padding: 10px;
  transition: transform .3s ease;
}

#catalogo .catalog-card:hover .mainimg {
  transform: scale(1.025);
}

#catalogo .catalog-card .watermark {
  width: 88px;
  height: 50px;
  right: 10px;
  bottom: 10px;
}

#catalogo .catalog-card .thumbs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 10px 12px 12px;
}

#catalogo .catalog-card .thumbwrap {
  height: 58px;
}

#catalogo .catalog-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

#catalogo .catalog-card .body h3 {
  min-height: 2.6em;
  margin-bottom: 9px;
  font-size: 19px;
  line-height: 1.3;
}

#catalogo .catalog-card .desc {
  display: -webkit-box;
  min-height: 4.65em;
  margin: 0;
  overflow: hidden;
  color: #aaa;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#catalogo .catalog-card .specs {
  grid-template-columns: 1fr;
  margin: 15px 0 0;
}

#catalogo .catalog-card .specs span {
  padding: 8px 10px;
}

#catalogo .catalog-card .price {
  margin: auto 0 14px;
  padding-top: 18px;
  font-size: 25px;
}

.stock-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 7px 10px;
  color: #d8ffd9;
  background: rgba(20, 116, 41, .92);
  border: 1px solid rgba(140, 255, 157, .25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  backdrop-filter: blur(8px);
}

.stock-chip.out {
  color: #ffd9d9;
  background: rgba(139, 25, 25, .94);
  border-color: rgba(255, 153, 153, .25);
}

.card-actions {
  display: grid;
  gap: 9px;
}

.catalog-detail,
#catalogo .catalog-card .cart-add,
#catalogo .catalog-card .pay-now {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  margin: 0;
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.catalog-detail {
  color: #080808;
  background: var(--catalog-yellow);
}

#catalogo .catalog-card .cart-add {
  color: #fff;
  background: var(--catalog-red);
}

#catalogo .catalog-card .pay-now {
  color: #fff;
  background: #202020;
  border: 1px solid #393939;
}

.catalog-detail:hover,
#catalogo .catalog-card .cart-add:hover,
#catalogo .catalog-card .pay-now:hover {
  filter: brightness(1.08);
}

#catalogo .catalog-card button:disabled {
  color: #777;
  background: #242424;
  cursor: not-allowed;
  filter: none;
}

.catalog-whatsapp {
  display: block;
  margin-top: 12px;
  color: #aaa;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.catalog-whatsapp:hover {
  color: #fff;
}

.catalog-empty {
  padding: 42px 22px;
  color: #aaa;
  background: #101010;
  border: 1px dashed #393939;
  border-radius: 14px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  #catalogo .grid.catalog-ready {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-sort {
    width: 100%;
  }

  .catalog-count {
    padding: 0 2px 2px;
  }

  #catalogo .grid.catalog-ready {
    grid-template-columns: 1fr;
  }

  #catalogo .catalog-card .main-photo {
    height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #catalogo .card.catalog-card,
  #catalogo .catalog-card .mainimg {
    transition: none;
  }
}
