/*!
 * sale.css -http://kodester.com/
 * Version - 2.5.0
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2026 Kasanova
 */

/* ===== SALE HERO (gradient kuning/oranye) ===== */
.sale-hero {
  position: relative;
  border-radius: var(--r3);
  overflow: hidden;
  padding: 24px 20px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #92400e 0%, #d97706 40%, #f59e0b 70%, #fbbf24 100%);
}
.sale-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .06;
  pointer-events: none;
  z-index: 1;
}
.sale-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.sale-hero .free-hero-inner {
  position: relative;
  z-index: 2;
}
.sale-hero .free-hero-content h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}
.sale-hero .free-hero-content p {
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}
.sale-hero .free-hero-content p strong {
  font-weight: 800;
  font-size: .85rem;
}

/* ===== SALE CODE CARD ===== */
.sale-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--s3);
  border: 1px dashed var(--bd2);
  border-radius: var(--r);
  padding: 6px 10px;
}
.sale-code-text {
  font-size: .92rem;
  font-weight: 800;
  color: var(--ylw);
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.sale-copy-btn {
  height: 28px;
  padding: 0 12px;
  background: var(--grn);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: .2s;
  font-family: inherit;
}
.sale-copy-btn:hover {
  background: var(--grn2);
  transform: translateY(-1px);
}
.sale-copy-btn.copied {
  background: var(--ylw);
  color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sale-hero {
    padding: 20px 16px 16px;
  }
  .sale-hero .free-hero-content h1 {
    font-size: .95rem;
  }
  .sale-hero .free-hero-content p {
    font-size: .72rem;
  }
  .sale-hero .free-hero-bottom {
    gap: 14px;
  }
  .sale-hero .free-hero-stats {
    gap: 12px;
  }
  .sale-hero .free-stat-item .free-stat-num {
    font-size: .8rem;
  }
}
@media (max-width: 480px) {
  .sale-hero {
    padding: 16px 14px 14px;
  }
  .sale-hero .free-hero-content h1 {
    font-size: .85rem;
  }
  .sale-hero .free-hero-content p {
    font-size: .68rem;
  }
  .sale-hero .free-hero-content p strong {
    font-size: .76rem;
  }
  .sale-hero .free-hero-bottom {
    flex-direction: column;
    gap: 10px;
  }
  .sale-hero .free-hero-stats {
    gap: 10px;
  }
  .sale-hero .free-hero-cd {
    padding: 5px 10px;
  }
  .sale-code-text {
    font-size: .8rem;
  }
}
