/* ============================================
   PRESENTES & CATÁLOGO — Chá de Casa Nova
   ============================================ */

/* Seção de Presentes Geral */
.presentes {
  background-color: var(--color-section-light);
}

.presentes__header {
  margin-bottom: var(--space-2xl);
}

.section-title--light {
  color: var(--color-dark-2);
}

.section-subtitle--light {
  color: rgba(40, 35, 35, 0.6);
}

/* ============================================
   LINHA HORIZONTAL DE PRESENTES (HOME)
   ============================================ */
.presentes__horizontal-container {
  position: relative;
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-md);
}

.presentes__horizontal-scroll {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--space-md) 0 var(--space-xl);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.presentes__horizontal-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.presentes__horizontal-scroll .presente-card {
  flex: 0 0 280px;
  max-width: 280px;
}

/* Botões de navegação horizontal */
.presentes__scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-cream-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-fast);
  color: var(--color-gold-dark);
}

.presentes__scroll-btn:hover {
  background: var(--color-gold-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.presentes__scroll-btn--left {
  left: -10px;
}

.presentes__scroll-btn--right {
  right: -10px;
}

.presentes__scroll-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (max-width: 1100px) {
  .presentes__scroll-btn {
    display: none;
  }
}

/* ============================================
   GRID DE PRESENTES (CATÁLOGO COMPLETO)
   ============================================ */
.presentes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  width: 100%;
  margin-bottom: var(--space-3xl);
}

/* ============================================
   CARD DE PRESENTE
   ============================================ */
.presente-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-cream-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-base);
  cursor: pointer;
}

.presente-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
  border-color: var(--color-gold-light);
}

.presente-card__image-wrap {
  width: 100%;
  aspect-ratio: 1.1;
  position: relative;
  overflow: hidden;
  background: var(--color-section-mid);
}

.presente-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.presente-card:hover .presente-card__image-wrap img {
  transform: scale(1.04);
}

.presente-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5efe7, #ede4d8);
}

.presente-card__image-placeholder svg {
  width: 44px;
  height: 44px;
  stroke: rgba(159, 111, 79, 0.25);
  fill: none;
  stroke-width: 1.2;
}

/* Badge de Status */
.presente-card__status-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
}

.badge--available {
  background: #fff;
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold-light);
}

.badge--reserved {
  background: var(--color-gold-deeper);
  color: #fff;
}

.badge--partial {
  background: #fdf5eb;
  color: #c9803b;
  border: 1px solid rgba(201, 128, 59, 0.2);
}

/* Favorito (Wishlist) */
.presente-card__wish {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(13, 11, 11, 0.4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  z-index: 1;
  outline: none;
}

.presente-card__wish:hover {
  color: #e05c5c;
  background: #fff;
}

.presente-card__wish.active {
  color: #e05c5c;
  background: #fff;
}

.presente-card__wish svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.5;
}

/* Corpo do Card */
.presente-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.presente-card__category {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-dark);
  margin-bottom: 4px;
}

.presente-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--color-dark-2);
  margin-bottom: var(--space-xs);
  line-height: 1.35;
}

.presente-card__desc {
  font-size: var(--fs-xs);
  color: rgba(40, 35, 35, 0.6);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

/* Barra de progresso para parciais */
.presente-card__progress {
  margin-bottom: var(--space-md);
}

.presente-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: rgba(40, 35, 35, 0.5);
  margin-bottom: 4px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-section-mid);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--color-gold-dark);
  border-radius: var(--radius-full);
}

/* Rodapé do Card */
.presente-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-cream-soft);
}

.presente-card__price {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-dark-2);
}

.presente-card__btn {
  background: transparent;
  border: 1px solid var(--color-gold-dark);
  color: var(--color-gold-dark);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.presente-card__btn:hover {
  background: var(--color-gold-dark);
  color: #fff;
}

.presente-card__btn--reserved {
  background: var(--color-section-mid);
  border-color: var(--color-cream-muted);
  color: var(--color-cream-muted);
  cursor: not-allowed;
}

.presente-card__btn--reserved:hover {
  background: var(--color-section-mid);
  color: var(--color-cream-muted);
}

/* ============================================
   CONTROLES DE FILTRO E BUSCA (CATÁLOGO)
   ============================================ */
.presentes__controls {
  max-width: var(--container-lg);
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
  max-width: 400px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: rgba(13, 11, 11, 0.4);
  fill: none;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-cream-soft);
  background: #fff;
  font-size: var(--fs-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-gold-dark);
}

/* Categorias Horizontais */
.categorias {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: 4px 0 var(--space-md);
  width: 100%;
  scrollbar-width: none;
}

.categorias::-webkit-scrollbar {
  display: none;
}

.categoria-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--color-cream-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  outline: none;
}

.categoria-btn:hover {
  background: var(--color-section-mid);
}

.categoria-btn.active {
  background: var(--color-gold-dark);
  color: #fff;
  border-color: var(--color-gold-dark);
}

.categoria-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.categoria-btn.active svg {
  stroke: #fff;
}

.cat-count {
  font-size: 8px;
  padding: 2px 6px;
  background: rgba(13, 11, 11, 0.05);
  border-radius: var(--radius-full);
  color: rgba(13, 11, 11, 0.5);
  font-weight: 700;
}

.categoria-btn.active .cat-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Ordenação Select */
.sort-select {
  padding: 10px var(--space-lg);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-cream-soft);
  background: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-dark-3);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--color-gold-dark);
}

/* Empty State */
.presentes__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-4xl) 0;
  color: rgba(13, 11, 11, 0.4);
}

.presentes__empty svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  margin-bottom: var(--space-md);
}

.presentes__empty p {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
}

/* Paginação Carregar Mais */
.presentes__load-more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Animação dos Cards */
.presente-card.card-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 768px) {
  .presentes__controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .sort-select {
    width: 100%;
  }
}
