/**
 * ═══════════════════════════════════════════════════════════
 * SIGNATURE MARKETPLACE — Product Card Styles
 * ═══════════════════════════════════════════════════════════
 * Premium marketplace layout for Blacksweety Signature Collection
 * ═══════════════════════════════════════════════════════════
 */

/* ─── Section Wrapper ─── */
.marketplace-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #0a1218 0%, #0d1a1f 50%, #0a1218 100%);
  position: relative;
  overflow: hidden;
}

.marketplace-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 238, 250, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.marketplace-section::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 238, 250, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── Filter Buttons ─── */
.marketplace-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  padding: 0;
  list-style: none;
}

.marketplace-filter li {
  cursor: pointer;
  padding: 10px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.marketplace-filter li:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(41, 238, 250, 0.08);
  border-color: rgba(41, 238, 250, 0.2);
}

.marketplace-filter li.active {
  color: #0d1717;
  background: linear-gradient(135deg, #29eefa 0%, #00c9d9 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(41, 238, 250, 0.3), 0 0 40px rgba(41, 238, 250, 0.1);
}

/* ─── Products Grid ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ─── Product Card ─── */
.product-card {
  background: rgba(19, 31, 31, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(41, 238, 250, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: cardFadeIn 0.5s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(41, 238, 250, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(41, 238, 250, 0.2);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(41, 238, 250, 0.06);
}

.product-card:hover::before {
  opacity: 1;
}

/* ─── Card Image ─── */
.product-card__img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0a1218;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

/* Category badge on image */
.product-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0d1717;
  background: linear-gradient(135deg, #29eefa 0%, #00c9d9 100%);
  box-shadow: 0 4px 15px rgba(41, 238, 250, 0.3);
  z-index: 2;
}

/* Price badge on image */
.product-card__price-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 18px;
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.product-card__price-badge span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  margin-right: 2px;
}

/* ─── Card Content ─── */
.product-card__content {
  padding: 24px 24px 28px;
}

.product-card__name {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__desc {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── WhatsApp Buy Button ─── */
.product-card__buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.product-card__buy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.product-card__buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35);
  color: #ffffff;
  text-decoration: none;
}

.product-card__buy-btn:hover::before {
  opacity: 1;
}

.product-card__buy-btn i {
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.product-card__buy-btn span {
  position: relative;
  z-index: 1;
}

/* WhatsApp icon pulse */
.product-card:hover .product-card__buy-btn i {
  animation: waPulse 1s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ─── Loading Skeletons ─── */
.product-skeleton {
  background: rgba(19, 31, 31, 0.8);
  border: 1px solid rgba(41, 238, 250, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

.product-skeleton__img {
  width: 100%;
  height: 280px;
  background: linear-gradient(110deg, #131f1f 30%, #1a2d2d 50%, #131f1f 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.product-skeleton__content {
  padding: 24px;
}

.product-skeleton__line {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(110deg, #131f1f 30%, #1a2d2d 50%, #131f1f 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  margin-bottom: 12px;
}

.product-skeleton__line--title {
  height: 20px;
  width: 75%;
}

.product-skeleton__line--desc {
  width: 100%;
}

.product-skeleton__line--desc2 {
  width: 60%;
}

.product-skeleton__line--btn {
  height: 48px;
  width: 100%;
  border-radius: 14px;
  margin-top: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty State ─── */
.products-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.products-empty i {
  font-size: 56px;
  color: rgba(41, 238, 250, 0.2);
  margin-bottom: 20px;
  display: block;
}

.products-empty h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 10px;
}

.products-empty p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* ─── Filter transition ─── */
.product-card.filter-hidden {
  display: none;
}

.product-card.filter-visible {
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .marketplace-section {
    padding: 50px 0 70px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card__img-wrapper {
    height: 240px;
  }

  .marketplace-filter {
    gap: 8px;
    margin-bottom: 36px;
  }

  .marketplace-filter li {
    padding: 8px 20px;
    font-size: 13px;
  }

  .product-card__content {
    padding: 20px 20px 24px;
  }

  .product-card__name {
    font-size: 16px;
  }

  .product-card__desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .product-card__img-wrapper {
    height: 200px;
  }

  .product-card__buy-btn {
    padding: 12px 20px;
    font-size: 13px;
  }
}
