/* ========================================
   Gift Registry Page
   ======================================== */

.page-gifts {
  background: var(--off-white);
}

/* Page Header */
.page-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 14px 0;
}
.page-header .container {
  display: flex; align-items: center; justify-content: space-between;
}
.back-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--forest) !important;
}
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: var(--forest-dark) !important; }

.page-logo {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--black);
}
.page-logo .gold { color: var(--gold); }

/* Hero */
.gifts-hero {
  padding: 100px 0 40px; text-align: center;
  background: var(--white);
}
.gifts-hero .section-tag { margin-bottom: 8px; }
.gifts-hero h1 {
  font-family: var(--font-display); font-size: clamp(28px, 6vw, 40px);
  font-weight: 500; color: var(--forest-dark); margin-bottom: 12px;
}
.gifts-hero h1 em { color: var(--gold-dark); }
.gifts-hero p {
  font-size: 15px; color: var(--text-muted); max-width: 500px;
  margin: 0 auto; line-height: 1.7;
}

/* Gate */
.gifts-gate { padding: 40px 0; }
.gate-card {
  max-width: 400px; margin: 0 auto; text-align: center;
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 36px 24px; border-radius: 12px;
}
.gate-card .lock-icon { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--gold-dark); }
.gate-card .lock-icon svg { width: 100%; height: 100%; }
.gate-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* Filter */
.gifts-filter {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 8px 20px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--text-body);
  border-radius: 20px; cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover { border-color: var(--forest); }
.filter-btn.active {
  background: var(--forest); color: var(--white); border-color: var(--forest);
}

/* Grid */
.gifts-grid-section { padding: 20px 0 60px; }

.gifts-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}

.gift-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
  transition: all 0.3s ease; cursor: pointer;
  position: relative;
}
.gift-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.gift-card.taken {
  opacity: 0.55; pointer-events: none;
}
.gift-card.taken::after {
  content: 'TAKEN'; position: absolute; top: 16px; right: 16px;
  background: var(--forest); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 4px;
}

.gift-card-inner { padding: 24px 20px; }

.gift-card-icon {
  width: 48px; height: 48px; margin-bottom: 14px;
  background: var(--off-white); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.gift-card h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  color: var(--forest-dark); margin-bottom: 4px;
}

.gift-card-desc {
  font-size: 13px; color: var(--text-muted); margin-bottom: 12px;
  line-height: 1.6;
}

.gift-card-price {
  font-family: var(--font-body); font-size: 18px; font-weight: 700;
  color: var(--gold-dark);
}
.gift-card-price span {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
}

.gift-card-footer {
  padding: 12px 20px; border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.gift-card-action {
  font-size: 12px; font-weight: 600; color: var(--forest);
  letter-spacing: 1px; text-transform: uppercase;
}

/* Gift Modal */
.gift-modal-content {
  max-width: 440px; text-align: left;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 24px;
  color: var(--text-muted); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-dark); }

.gift-modal-header { text-align: center; margin-bottom: 20px; }
.gift-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: var(--off-white); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.gift-modal-header h3 {
  font-family: var(--font-display); font-size: 24px; color: var(--forest-dark);
}
.gift-modal-price {
  font-size: 20px; font-weight: 700; color: var(--gold-dark); margin-top: 4px;
}
.gift-modal-desc {
  font-size: 14px; color: var(--text-muted); text-align: center;
  margin-bottom: 24px; line-height: 1.7;
}

.buy-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold-dark) !important;
  text-decoration: underline !important;
}

/* Responsive */
@media (min-width: 480px) {
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .gifts-grid { grid-template-columns: repeat(3, 1fr); }
}
