/* MSK Developers — Product cards & pages */

.product-card {
  position: relative;
  text-align: left;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px hsl(var(--p) / 0.15);
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.product-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.75;
  margin: 0.75rem 0 1rem;
}

.product-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

/* Products listing */
.products-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .products-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.products-search {
  width: 100%;
  max-width: 28rem;
}

.products-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-filter-btn.is-active {
  background: hsl(var(--p));
  color: hsl(var(--pc));
  border-color: hsl(var(--p));
}

.product-card-hidden {
  display: none !important;
}

/* BarahBatti product page */
.product-theme-village {
  --product-accent: #8B4513;
  --product-accent-light: #D2B48C;
  --product-bg: linear-gradient(160deg, #2d1810 0%, #1a0f0a 50%, #0f0805 100%);
}

.product-hero {
  background: var(--product-bg, linear-gradient(160deg, hsl(var(--b2)) 0%, hsl(var(--b1)) 100%));
  color: #f5f0e8;
  padding: 3rem 1rem 4rem;
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(210, 180, 140, 0.12), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(139, 69, 19, 0.2), transparent 45%);
  pointer-events: none;
}

.product-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .product-hero-inner {
    grid-template-columns: auto 1fr;
  }
}

.product-hero-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 1rem 0 1.5rem;
}

.product-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.product-screenshot {
  background: linear-gradient(145deg, rgba(139, 69, 19, 0.35), rgba(45, 24, 16, 0.8));
  border: 1px solid rgba(210, 180, 140, 0.25);
  border-radius: 1rem;
  padding: 1.25rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-screenshot:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 69, 19, 0.25);
}

.product-screenshot-title {
  font-weight: 700;
  color: #D2B48C;
  margin-bottom: 0.35rem;
}

.product-screenshot-caption {
  font-size: 0.8rem;
  opacity: 0.8;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--b2));
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.product-feature-item::before {
  content: "✓";
  color: hsl(var(--p));
  font-weight: 700;
}

.product-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.85rem;
}

.product-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: hsl(var(--p));
  color: hsl(var(--pc));
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-req-table {
  width: 100%;
  border-collapse: collapse;
}

.product-req-table th,
.product-req-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--bc) / 0.1);
}

.product-req-table th {
  width: 40%;
  opacity: 0.75;
  font-weight: 600;
}

.product-download-band {
  background: hsl(var(--b2));
  border-top: 1px solid hsl(var(--bc) / 0.08);
  border-bottom: 1px solid hsl(var(--bc) / 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover,
  .product-screenshot:hover {
    transform: none;
  }
}
