/* =============================================================
   Artistaria Studio — Produtos relacionados
   ============================================================= */

/* ── Seção ─────────────────────────────────────────────────── */

.as-related {
  max-width: 1200px;
  margin: 56px auto 0;
  padding: 0 24px 64px;
}

/* ── Cabeçalho ─────────────────────────────────────────────── */

.as-related__head {
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.as-related__title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  margin: 0 0 6px !important;
  line-height: 1.2;
}

.as-related__subtitle {
  font-size: .92rem !important;
  color: #888888 !important;
  margin: 0 !important;
  font-weight: 400 !important;
  font-style: normal !important;
  text-decoration: none !important;
}

/* ── Grid ──────────────────────────────────────────────────── */

.as-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.as-related__grid:has(> :only-child) {
  grid-template-columns: minmax(0, 420px);
}

/* ── Card ──────────────────────────────────────────────────── */

.as-related__card {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
  border: 1px solid #eeeeee !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.as-related__card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.14) !important;
  transform: translateY(-4px);
}

/* ── Imagem ────────────────────────────────────────────────── */

.as-related__card-img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  text-decoration: none !important;
}

.as-related__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.as-related__card:hover .as-related__card-img {
  transform: scale(1.05);
}

/* ── Corpo ─────────────────────────────────────────────────── */

.as-related__card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Badge decorativo */
.as-related__card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF8DC;
  border: 1px solid #F5C400;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .70rem;
  font-weight: 700;
  color: #8a6d00 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  width: fit-content;
}

.as-related__card-badge::before {
  content: '★';
  color: #F5C400;
  font-size: .72rem;
}

/* Título */
.as-related__card-title {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3;
}

.as-related__card-title a,
.as-related__card-title a:visited,
.as-related__card-title a:hover {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

/* Frase */
.as-related__card-phrase {
  margin: 0 !important;
  font-size: .84rem !important;
  color: #666666 !important;
  line-height: 1.55;
  font-style: normal !important;
  font-weight: 400 !important;
}

/* Divisor */
.as-related__card-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 2px 0;
}

/* Preço */
.as-related__card-price {
  margin: 0 !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
}

.as-related__card-price-label {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: #999999 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}

/* Botão */
.as-related__card-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 13px 28px !important;
  background: #F5C400 !important;
  color: #1a1a1a !important;
  font-size: .88rem !important;
  font-weight: 700 !important;
  text-align: center;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .02em;
}

.as-related__card-btn::after {
  content: '→';
  font-size: .9rem;
  transition: transform .15s;
}

.as-related__card-btn:hover {
  background: #E0B400 !important;
  color: #1a1a1a !important;
  transform: none;
}

.as-related__card-btn:hover::after {
  transform: translateX(3px);
}

/* ── Responsivo ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .as-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .as-related {
    padding: 0 16px 40px;
    margin-top: 40px;
  }
  .as-related__grid,
  .as-related__grid:has(> :only-child) {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .as-related__title { font-size: 1.3rem !important; }
  .as-related__card-body { padding: 18px 18px 22px; }
}
