.scripts-section {
  background: #0c0c0c;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.section-title {
  font-size: 32px;
  color: #00d8ff;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 30px;
}

.scroll-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
}

.scripts-scroll {
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: 10px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.script-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: #1a1a1a;
  border: 2px solid transparent;
  padding: 20px;
  border-radius: 10px;
  min-height: 280px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideInLeft 0.8s ease forwards;
  text-decoration: none;
}

.script-card:hover {
  transform: translateY(-5px);
  border-color: #00d8ff;
}

.scripts-scroll .script-card:nth-child(1) { animation-delay: 0.2s; }
.scripts-scroll .script-card:nth-child(2) { animation-delay: 0.4s; }
.scripts-scroll .script-card:nth-child(3) { animation-delay: 0.6s; }
.scripts-scroll .script-card:nth-child(4) { animation-delay: 0.8s; }
.scripts-scroll .script-card:nth-child(5) { animation-delay: 1.0s; }
.scripts-scroll .script-card:nth-child(6) { animation-delay: 1.2s; }
.scripts-scroll .script-card:nth-child(7) { animation-delay: 1.4s; }
.scripts-scroll .script-card:nth-child(8) { animation-delay: 1.6s; }
.scripts-scroll .script-card:nth-child(9) { animation-delay: 1.8s; }
.scripts-scroll .script-card:nth-child(10) { animation-delay: 2.0s; }

@keyframes slideInLeft {
  0% { transform: translateX(-40px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.script-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.script-card h3 {
  font-size: 16px;
  color: #00d8ff;
  margin-bottom: 5px;
}

.script-card .price {
  font-size: 17px;
  color: #00ff99;
  font-weight: bold;
  margin-bottom: 6px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  margin-left: 8px;
}

.sold-count {
  font-size: 14px;
  color: #ffd700;
  margin-bottom: 6px;
}

.license {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 6px;
}

.stars {
  font-size: 15px;
  color: #f7d71e;
  margin-bottom: 6px;
}

.stars span {
  color: #fff;
  margin-left: 5px;
}

.star.full { color: #f7d71e; }
.star.half { color: #f7d71e; opacity: 0.5; }
.star.empty { color: #444; }

@media (max-width: 768px) {
  .script-card { flex: 0 0 80%; }
}

@media (max-width: 480px) {
  .script-card { flex: 0 0 95%; }
}

.product-card *,
.script-card * {
  text-decoration: none !important;
}

.product-card,
.script-card {
  text-decoration: none !important;
  color: inherit;
}
