.pos-catalog-card {
  border-color: #ccd7e6;
  background: linear-gradient(145deg, #f4f7fb 0%, #eef3f8 100%);
  box-shadow: 0 8px 24px rgba(8, 38, 95, .09);
  padding-top: 12px;
}

.pos-catalog-card .pos-search-row {
  padding: 4px 6px;
  border: 1px solid #d8e1ec;
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
}

.pos-catalog-card .catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pos-catalog-card .product-tile {
  display: flex;
  flex-direction: column;
  padding: 6px 6px 7px;
  border: 1px solid #aec2dc;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #f5f8fc 72%, #fffaf0 100%);
  box-shadow:
    inset 0 2px 0 rgba(254, 192, 5, .35),
    0 5px 14px rgba(8, 38, 95, .11);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.pos-catalog-card .product-tile img {
  width: 100%;
  height: 94px;
  min-height: 94px;
  max-height: 94px;
  padding: 0;
  border: 1px solid rgba(8, 38, 95, .08);
  border-radius: 8px;
  background: #f1f4f9;
  object-fit: cover;
  object-position: center;
  margin-bottom: 5px;
  display: block;
}

.pos-catalog-card .product-tile img[src*="logo-app.png"] {
  object-fit: contain;
  padding: 12px;
  background: #f7f9fc;
}

.pos-catalog-card .product-tile b {
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.22;
  min-height: 28px;
  max-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin: 0 0 5px;
}

.pos-catalog-card .product-tile .product-tile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: auto 0 0;
  padding: 4px 6px;
  border-radius: 7px;
  border: 1px solid #e6dfc8;
  background: linear-gradient(90deg, #f1f5fa 0%, #fff7df 100%);
  color: var(--navy);
}

.pos-catalog-card .product-tile .product-tile-meta em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #52627a;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pos-catalog-card .product-tile .product-tile-meta em svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: #31557f;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pos-catalog-card .product-tile .product-tile-meta strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 900;
}

.pos-catalog-card .product-tile:hover {
  border-color: #d9a900;
  background: linear-gradient(145deg, #ffffff 0%, #fff9e8 100%);
  box-shadow: 0 9px 23px rgba(8, 38, 95, .15);
  transform: translateY(-2px);
}

.pos-catalog-card .product-tile:focus-visible {
  border-color: var(--yellow);
  outline: 3px solid rgba(254, 192, 5, .2);
  outline-offset: 1px;
}

.pos-catalog-card .product-tile:active {
  transform: translateY(0);
  box-shadow: 0 3px 9px rgba(8, 38, 95, .09);
}

/* Destaque do item presente no carrinho do PDV com borda temática e badge de contagem */
.pos-catalog-card .product-tile {
  position: relative;
}

.pos-catalog-card .product-tile.in-cart {
  border-color: var(--yellow, #fec005) !important;
  background: linear-gradient(145deg, #ffffff 0%, #fffdf5 60%, #fff7d6 100%) !important;
  box-shadow:
    0 0 0 2px var(--yellow, #fec005),
    0 8px 22px rgba(8, 38, 95, .15) !important;
  transform: translateY(-1px);
}

.pos-catalog-card .product-tile.in-cart:hover {
  border-color: #d9a900 !important;
  box-shadow:
    0 0 0 2px var(--yellow, #fec005),
    0 10px 26px rgba(8, 38, 95, .2) !important;
  transform: translateY(-2px);
}

.pos-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--navy, #08265f);
  color: #ffffff !important;
  border: 2px solid #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 19px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(8, 38, 95, .3);
  pointer-events: none;
}
