/* ── Page ─────────────────────────────────────────────────────────────────── */
.pfw-page { max-width: 900px; }
.pfw-header { margin-bottom: 28px; }
.pfw-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.pfw-sub { color: #666; margin: 0; font-size: 14px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.pfw-section { margin-bottom: 40px; }
.pfw-section-title {
  font-size: 17px; font-weight: 700; margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px;
}
.pfw-count {
  background: #f59e0b; color: #fff; font-size: 12px;
  padding: 2px 8px; border-radius: 20px; font-weight: 600;
}
.pfw-section-desc { color: #666; font-size: 14px; margin: 0 0 16px; }

/* ── Collection grid ──────────────────────────────────────────────────────── */
.pfw-empty { background: #fafafa; border: 1px dashed #ddd; border-radius: 10px; padding: 28px; text-align: center; }
.pfw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.pfw-card {
  border: 1px solid #eee; border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s;
}
.pfw-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pfw-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f9f9f9; }
.pfw-card-body { padding: 10px 12px 12px; }
.pfw-card-title { font-size: 13px; font-weight: 600; color: #1a1a1a; text-decoration: none; display: block; line-height: 1.3; margin-bottom: 4px; }
.pfw-card-price { font-size: 13px; color: #f59e0b; font-weight: 700; margin-bottom: 8px; }
.pfw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pfw-tag {
  font-size: 10px; padding: 2px 7px; border-radius: 20px;
  border: 1px solid #eee; color: #444;
}
.pfw-tag-when { background: #f0f9ff; border-color: #bae6fd; color: #0369a1; }
.pfw-remove-btn {
  font-size: 11px; color: #ef4444; background: none; border: 1px solid #fecaca;
  border-radius: 6px; padding: 3px 8px; cursor: pointer; width: 100%;
}
.pfw-remove-btn:hover { background: #fef2f2; }

/* ── Gap cards ────────────────────────────────────────────────────────────── */
.pfw-gaps { display: flex; flex-direction: column; gap: 14px; }
.pfw-gap-card {
  display: flex; align-items: center; gap: 20px;
  border: 1px solid #fde68a; background: #fffbeb;
  border-radius: 10px; padding: 16px 20px;
  flex-wrap: wrap;
}
.pfw-gap-info { flex: 1; min-width: 180px; }
.pfw-gap-info strong { font-size: 15px; color: #1a1a1a; }
.pfw-gap-info p { font-size: 13px; color: #666; margin: 4px 0 0; }
.pfw-gap-suggestion {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px;
}
.pfw-gap-suggestion img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.pfw-gap-title { font-size: 13px; font-weight: 600; color: #1a1a1a; text-decoration: none; display: block; margin-bottom: 2px; }
.pfw-gap-price { font-size: 13px; color: #f59e0b; font-weight: 700; margin-bottom: 6px; }
.pfw-btn-small { font-size: 12px !important; padding: 4px 12px !important; }

/* ── Occasion tabs ────────────────────────────────────────────────────────── */
.pfw-occasion-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pfw-occ-tab {
  padding: 8px 16px; border-radius: 20px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 13px; cursor: pointer; transition: all .15s;
}
.pfw-occ-tab.active, .pfw-occ-tab:hover {
  background: #f59e0b; border-color: #f59e0b; color: #fff;
}
.pfw-occ-panel { display: none; }
.pfw-occ-panel.active { display: block; }
.pfw-occ-product {
  display: flex; align-items: center; gap: 20px;
  background: #f9fafb; border: 1px solid #eee; border-radius: 12px; padding: 20px;
  max-width: 480px;
}
.pfw-occ-product img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pfw-occ-label { font-size: 12px; color: #888; margin: 0 0 6px; }
.pfw-occ-title { font-size: 16px; font-weight: 700; color: #1a1a1a; text-decoration: none; display: block; margin-bottom: 6px; }
.pfw-occ-price { font-size: 15px; color: #f59e0b; font-weight: 700; margin-bottom: 12px; }

/* ── Product page button ──────────────────────────────────────────────────── */
.pfw-toggle-btn { background: #fff !important; color: #1a1a1a !important; border: 1px solid #d1d5db !important; }
.pfw-toggle-btn.in-wardrobe { border-color: #f59e0b !important; color: #f59e0b !important; }
.pfw-toggle-btn:hover { border-color: #f59e0b !important; }

@media (max-width: 600px) {
  .pfw-grid { grid-template-columns: repeat(2, 1fr); }
  .pfw-gap-card { flex-direction: column; align-items: flex-start; }
}
