/* ==========================================================================
   FEATURED — assets/css/sections/featured.css
   SENV Theme · Grid de produtos em destaque
   ========================================================================== */

.senv-featured {
  background-color: var(--senv-noir);
  padding: var(--senv-section-gap) 0;
}

/* Cabeçalho de seção */
.senv-section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.senv-section-header h2 {
  font-family: var(--senv-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--senv-offwhite);
  margin: 0;
  flex: 1;
  text-align: left;
}

.senv-section-header__link {
  font-family: var(--senv-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--senv-gold);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.senv-section-header__link:hover {
  opacity: 0.7;
}

.senv-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Grid de produtos */
.senv-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card de produto */
.senv-product-card {
  position: relative;
  background-color: #0f0d0c;
  border: 1px solid rgba(184, 146, 74, 0.08);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.senv-product-card:hover {
  border-color: rgba(184, 146, 74, 0.3);
  transform: translateY(-4px);
}

/* Imagem */
.senv-product-card__image {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #1a1614;
}

.senv-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.senv-product-card:hover .senv-product-card__image img {
  transform: scale(1.05);
}

/* Badge */
.senv-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-family: var(--senv-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--senv-gold);
  color: var(--senv-noir);
  border-radius: 1px;
}

.senv-product-card__badge--sale {
  background-color: #c0392b;
  color: #fff;
}

/* Wishlist */
.senv-product-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 7, 0.65);
  border: 1px solid rgba(184, 146, 74, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: var(--senv-offwhite);
  transition: background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
}

.senv-product-card__wishlist:hover {
  background: var(--senv-gold);
  color: var(--senv-noir);
}

/* Body do card */
.senv-product-card__body {
  padding: 16px 18px 20px;
}

.senv-product-card__category {
  display: block;
  font-family: var(--senv-font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--senv-gold);
  margin-bottom: 6px;
}

.senv-product-card__name {
  font-family: var(--senv-font-heading);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.35;
}

.senv-product-card__name a {
  color: var(--senv-offwhite);
  text-decoration: none;
  transition: color 0.2s ease;
}

.senv-product-card__name a:hover {
  color: var(--senv-gold);
}

/* Preço */
.senv-product-card__pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.senv-product-card__price {
  font-family: var(--senv-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--senv-offwhite);
}

.senv-product-card__price-old {
  font-size: 0.8rem;
  color: rgba(226, 201, 176, 0.4);
  text-decoration: line-through;
}

/* Botão adicionar */
.senv-product-card__btn {
  display: block;
  width: 100%;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  font-family: var(--senv-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(184, 146, 74, 0.4);
  color: var(--senv-gold);
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.senv-product-card__btn:hover {
  background: var(--senv-gold);
  color: var(--senv-noir);
  border-color: var(--senv-gold);
}

/* Estado vazio */
.senv-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(226, 201, 176, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .senv-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .senv-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 32px;
  }

  .senv-section-header .senv-label {
    order: 0;
  }

  .senv-section-header h2 {
    order: 1;
    flex: unset;
  }

  .senv-section-header__link {
    order: 2;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .senv-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
