/* Premium ecommerce-style product cards */
.product-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.45rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
  box-shadow: 0 24px 55px rgba(15, 23, 42, .14);
}

.product-card-media-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.product-card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3.25;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .08));
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease, filter .32s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.product-card-badges {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: calc(100% - 6rem);
}

.product-card-badges .badge {
  border-radius: 999px;
  padding: .38rem .62rem;
  border: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  font-size: .72rem;
  font-weight: 650;
}

.product-card-badges .text-bg-light {
  color: #101828 !important;
  background: rgba(255, 255, 255, .94) !important;
}

.product-card-badges .text-bg-warning {
  color: #111827 !important;
  background: #ffc107 !important;
}

.product-card-quick-actions {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 3;
  display: flex;
  gap: .45rem;
}

.product-card-icon-action {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  color: #0f172a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.product-card-icon-action:hover,
.product-card-icon-action:focus-visible {
  color: #fff;
  background: #1a73e8;
  transform: translateY(-2px);
}

.product-card-icon-action--whatsapp:hover,
.product-card-icon-action--whatsapp:focus-visible {
  background: #128c4a;
}

.product-card .card-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.product-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .3rem;
}

.product-card-category {
  margin: 0;
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-card-stock {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  white-space: nowrap;
  padding: .32rem .55rem;
  color: #047857;
  background: #dcfce7;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.product-card-stock::before {
  content: "";
  width: .42rem;
  height: .42rem;
  background: currentColor;
  border-radius: 999px;
}

.product-card-title {
  margin: .3rem 0 .35rem;
  color: #f95e26;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.28;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover,
.product-card-title a:focus-visible {
  color: #1a73e8;
}

.product-card-sku {
  margin-bottom: .5rem;
  color: #667085;
  font-size: .82rem;
  font-weight: 650;
}

.product-card-description {
  display: -webkit-box;
  min-height: 2.7em;
  margin-bottom: .65rem;
  overflow: hidden;
  color: #475467;
  font-size: .86rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-trust {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .8rem;
  color: #f79009;
  font-weight: 850;
}

.product-card-trust span {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
  background: #f79009;
  border-radius: 999px;
  font-size: .78rem;
}

.product-card-trust small {
  color: #f79009;
  font-size: .82rem;
  font-weight: 850;
}

.product-card-price {
  margin-bottom: 1rem !important;
  color: #3e3f41;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.product-card .btn-primary {
  min-height: 2.9rem;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: 0 12px 24px rgba(26, 115, 232, .22);
  font-weight: 900;
}

.product-card .btn-primary:hover,
.product-card .btn-primary:focus-visible {
  background: #155fc2;
  box-shadow: 0 16px 30px rgba(26, 115, 232, .28);
}

@media (max-width: 575.98px) {
  .product-card-media {
    aspect-ratio: 4 / 3.45;
  }

  .product-card-icon-action {
    width: 2.35rem;
    height: 2.35rem;
  }

  .product-card .card-body {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .category-products-toolbar {
    align-items: stretch;
  }

  .category-products-toolbar > .d-flex {
    width: 100%;
  }

  .category-products-toolbar .btn[data-bs-target="#category-filter-drawer"] {
    min-height: 2.65rem;
    padding-inline: 1rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
  }

  .category-sort-form {
    width: 100%;
  }

  .category-sort-form .input-group {
    flex-wrap: nowrap;
  }

  .category-sort-form .form-select {
    min-width: 0;
    font-size: .88rem;
  }

  .category-sort-form .btn {
    font-size: .86rem;
    font-weight: 700;
  }
}
